[03:21:30]OFD Sender: No OFD packet to send [03:21:35]OFD Sender: No OFD packet to send [03:21:40]OFD Sender: No OFD packet to send [03:21:45]OFD Sender: No OFD packet to send [03:21:50]OFD Sender: No OFD packet to send [03:21:55]OFD Sender: No OFD packet to send [03:22:00]OFD Sender: No OFD packet to send [03:22:05]OFD Sender: No OFD packet to send [03:22:10]OFD Sender: No OFD packet to send [03:22:15]OFD Sender: No OFD packet to send [03:22:20]OFD Sender: No OFD packet to send [03:22:25]OFD Sender: No OFD packet to send [03:22:30]OFD Sender: No OFD packet to send [03:22:35]OFD Sender: No OFD packet to send [03:22:40]OFD Sender: No OFD packet to send [03:22:45]OFD Sender: No OFD packet to send [03:22:50]OFD Sender: No OFD packet to send [03:22:55]OFD Sender: No OFD packet to send [03:23:00]OFD Sender: No OFD packet to send [03:23:05]OFD Sender: No OFD packet to send [03:23:10]OFD Sender: No OFD packet to send [03:23:15]OFD Sender: No OFD packet to send [03:23:20]OFD Sender: No OFD packet to send [03:23:25]OFD Sender: No OFD packet to send [03:23:30]OFD Sender: No OFD packet to send [03:23:35]OFD Sender: No OFD packet to send [03:23:40]OFD Sender: No OFD packet to send [03:23:45]OFD Sender: No OFD packet to send [03:23:50]OFD Sender: No OFD packet to send [03:23:55]OFD Sender: No OFD packet to send [03:24:00]OFD Sender: No OFD packet to send [03:24:05]OFD Sender: No OFD packet to send [03:24:10]OFD Sender: No OFD packet to send [03:24:15]OFD Sender: No OFD packet to send [03:24:20]OFD Sender: No OFD packet to send [03:24:25]OFD Sender: No OFD packet to send [03:24:30]OFD Sender: No OFD packet to send [03:24:35]OFD Sender: No OFD packet to send [03:24:40]OFD Sender: No OFD packet to send [03:24:45]OFD Sender: No OFD packet to send [03:24:50]OFD Sender: No OFD packet to send [03:24:55]OFD Sender: No OFD packet to send [03:25:00]OFD Sender: No OFD packet to send [03:25:05]OFD Sender: No OFD packet to send [03:25:10]OFD Sender: No OFD packet to send [03:25:15]OFD Sender: No OFD packet to send [03:25:20]OFD Sender: No OFD packet to send [03:25:25]OFD Sender: No OFD packet to send [03:25:30]OFD Sender: No OFD packet to send [03:25:35]OFD Sender: No OFD packet to send [03:25:40]OFD Sender: No OFD packet to send [03:25:45]OFD Sender: No OFD packet to send [03:25:50]OFD Sender: No OFD packet to send [03:25:55]OFD Sender: No OFD packet to send [03:26:00]OFD Sender: No OFD packet to send [03:26:05]OFD Sender: No OFD packet to send [03:26:10]OFD Sender: No OFD packet to send [03:26:15]OFD Sender: No OFD packet to send [03:26:20]OFD Sender: No OFD packet to send [03:26:25]OFD Sender: No OFD packet to send [03:26:30]OFD Sender: No OFD packet to send [03:26:35]OFD Sender: No OFD packet to send [03:26:40]OFD Sender: No OFD packet to send [03:26:45]OFD Sender: No OFD packet to send [03:26:50]OFD Sender: No OFD packet to send [03:26:55]OFD Sender: No OFD packet to send [03:27:00]OFD Sender: No OFD packet to send [03:27:05]OFD Sender: No OFD packet to send [03:27:10]OFD Sender: No OFD packet to send [03:27:15]OFD Sender: No OFD packet to send [03:27:20]OFD Sender: No OFD packet to send [03:27:25]OFD Sender: No OFD packet to send [03:27:30]OFD Sender: No OFD packet to send [03:27:35]OFD Sender: No OFD packet to send [03:27:40]OFD Sender: No OFD packet to send [03:27:45]OFD Sender: No OFD packet to send [03:27:50]OFD Sender: No OFD packet to send [03:27:55]OFD Sender: No OFD packet to send [03:28:00]OFD Sender: No OFD packet to send [03:28:05]OFD Sender: No OFD packet to send [03:28:10]OFD Sender: No OFD packet to send [03:28:15]OFD Sender: No OFD packet to send [03:28:20]OFD Sender: No OFD packet to send [03:28:25]OFD Sender: No OFD packet to send [03:28:30]OFD Sender: No OFD packet to send [03:28:35]OFD Sender: No OFD packet to send [03:28:40]OFD Sender: No OFD packet to send [03:28:45]OFD Sender: No OFD packet to send [03:28:50]OFD Sender: No OFD packet to send [03:28:55]OFD Sender: No OFD packet to send [03:29:00]OFD Sender: No OFD packet to send [03:29: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:01]OFD Sender: No OFD packet to send [03:30:06]OFD Sender: No OFD packet to send [03:30:11]OFD Sender: No OFD packet to send [03:30:16]OFD Sender: No OFD packet to send [03:30:21]OFD Sender: No OFD packet to send [03:30:26]OFD Sender: No OFD packet to send [03:30:31]OFD Sender: No OFD packet to send [03:30:36]OFD Sender: No OFD packet to send [03:30:41]OFD Sender: No OFD packet to send [03:30:46]OFD Sender: No OFD packet to send [03:30:51]OFD Sender: No OFD packet to send [03:30:56]OFD Sender: No OFD packet to send [03:31:01]OFD Sender: No OFD packet to send [03:31:06]OFD Sender: No OFD packet to send [03:31:11]OFD Sender: No OFD packet to send [03:31:16]OFD Sender: No OFD packet to send [03:31:21]OFD Sender: No OFD packet to send [03:31:26]OFD Sender: No OFD packet to send [03:31:31]OFD Sender: No OFD packet to send [03:31:36]OFD Sender: No OFD packet to send [03:31:41]OFD Sender: No OFD packet to send [03:31:46]OFD Sender: No OFD packet to send [03:31:51]OFD Sender: No OFD packet to send [03:31:56]OFD Sender: No OFD packet to send [03:32:01]OFD Sender: No OFD packet to send [03:32:06]OFD Sender: No OFD packet to send [03:32:11]OFD Sender: No OFD packet to send [03:32:16]OFD Sender: No OFD packet to send [03:32:21]OFD Sender: No OFD packet to send [03:32:26]OFD Sender: No OFD packet to send [03:32:31]OFD Sender: No OFD packet to send [03:32:36]OFD Sender: No OFD packet to send [03:32:41]OFD Sender: No OFD packet to send [03:32:46]OFD Sender: No OFD packet to send [03:32:51]OFD Sender: No OFD packet to send [03:32:56]OFD Sender: No OFD packet to send [03:33:01]OFD Sender: No OFD packet to send [03:33:06]OFD Sender: No OFD packet to send [03:33:11]OFD Sender: No OFD packet to send [03:33:16]OFD Sender: No OFD packet to send [03:33:21]OFD Sender: No OFD packet to send [03:33:26]OFD Sender: No OFD packet to send [03:33:31]OFD Sender: No OFD packet to send [03:33:36]OFD Sender: No OFD packet to send [03:33:41]OFD Sender: No OFD packet to send [03:33:46]OFD Sender: No OFD packet to send [03:33:51]OFD Sender: No OFD packet to send [03:33:56]OFD Sender: No OFD packet to send [03:34:01]OFD Sender: No OFD packet to send [03:34:06]OFD Sender: No OFD packet to send [03:34:11]OFD Sender: No OFD packet to send [03:34:16]OFD Sender: No OFD packet to send [03:34:21]OFD Sender: No OFD packet to send [03:34:26]OFD Sender: No OFD packet to send [03:34:31]OFD Sender: No OFD packet to send [03:34:36]OFD Sender: No OFD packet to send [03:34:41]OFD Sender: No OFD packet to send [03:34:46]OFD Sender: No OFD packet to send [03:34:51]OFD Sender: No OFD packet to send [03:34:56]OFD Sender: No OFD packet to send [03:35:01]OFD Sender: No OFD packet to send [03:35:06]OFD Sender: No OFD packet to send [03:35:11]OFD Sender: No OFD packet to send [03:35:16]OFD Sender: No OFD packet to send [03:35:21]OFD Sender: No OFD packet to send [03:35:26]OFD Sender: No OFD packet to send [03:35:31]OFD Sender: No OFD packet to send [03:35:36]OFD Sender: No OFD packet to send [03:35:41]OFD Sender: No OFD packet to send [03:35:46]OFD Sender: No OFD packet to send [03:35:51]OFD Sender: No OFD packet to send [03:35:56]OFD Sender: No OFD packet to send [03:36:01]OFD Sender: No OFD packet to send [03:36:06]OFD Sender: No OFD packet to send [03:36:11]OFD Sender: No OFD packet to send [03:36:16]OFD Sender: No OFD packet to send [03:36:21]OFD Sender: No OFD packet to send [03:36:26]OFD Sender: No OFD packet to send [03:36:31]OFD Sender: No OFD packet to send [03:36:36]OFD Sender: No OFD packet to send [03:36:41]OFD Sender: No OFD packet to send [03:36:46]OFD Sender: No OFD packet to send [03:36:51]OFD Sender: No OFD packet to send [03:36:56]OFD Sender: No OFD packet to send [03:37:01]OFD Sender: No OFD packet to send [03:37:06]OFD Sender: No OFD packet to send [03:37:11]OFD Sender: No OFD packet to send [03:37:16]OFD Sender: No OFD packet to send [03:37:21]OFD Sender: No OFD packet to send [03:37:26]OFD Sender: No OFD packet to send [03:37:31]OFD Sender: No OFD packet to send [03:37:36]OFD Sender: No OFD packet to send [03:37:41]OFD Sender: No OFD packet to send [03:37:46]OFD Sender: No OFD packet to send [03:37:51]OFD Sender: No OFD packet to send [03:37:56]OFD Sender: No OFD packet to send [03:38:01]OFD Sender: No OFD packet to send [03:38:06]OFD Sender: No OFD packet to send [03:38:11]OFD Sender: No OFD packet to send [03:38:16]OFD Sender: No OFD packet to send [03:38:21]OFD Sender: No OFD packet to send [03:38:26]OFD Sender: No OFD packet to send [03:38:31]OFD Sender: No OFD packet to send [03:38:36]OFD Sender: No OFD packet to send [03:38:41]OFD Sender: No OFD packet to send [03:38:46]OFD Sender: No OFD packet to send [03:38:51]OFD Sender: No OFD packet to send [03:38:56]OFD Sender: No OFD packet to send [03:39:01]OFD Sender: No OFD packet to send [03:39:06]OFD Sender: No OFD packet to send [03:39:11]OFD Sender: No OFD packet to send [03:39:16]OFD Sender: No OFD packet to send [03:39:21]OFD Sender: No OFD packet to send [03:39:26]OFD Sender: No OFD packet to send [03:39:31]OFD Sender: No OFD packet to send [03:39:36]OFD Sender: No OFD packet to send [03:39:41]OFD Sender: No OFD packet to send [03:39:46]OFD Sender: No OFD packet to send [03:39:51]OFD Sender: No OFD packet to send [03:39:56]OFD Sender: No OFD packet to send [03:40:01]OFD Sender: No OFD packet to send [03:40:06]OFD Sender: No OFD packet to send [03:40:11]OFD Sender: No OFD packet to send [03:40:16]OFD Sender: No OFD packet to send [03:40:21]OFD Sender: No OFD packet to send [03:40:26]OFD Sender: No OFD packet to send [03:40:31]OFD Sender: No OFD packet to send [03:40:36]OFD Sender: No OFD packet to send [03:40:41]OFD Sender: No OFD packet to send [03:40:46]OFD Sender: No OFD packet to send [03:40:51]OFD Sender: No OFD packet to send [03:40:56]OFD Sender: No OFD packet to send [03:41:01]OFD Sender: No OFD packet to send [03:41:06]OFD Sender: No OFD packet to send [03:41:11]OFD Sender: No OFD packet to send [03:41:16]OFD Sender: No OFD packet to send [03:41:21]OFD Sender: No OFD packet to send [03:41:26]OFD Sender: No OFD packet to send [03:41:31]OFD Sender: No OFD packet to send [03:41:36]OFD Sender: No OFD packet to send [03:41:41]OFD Sender: No OFD packet to send [03:41:46]OFD Sender: No OFD packet to send [03:41:51]OFD Sender: No OFD packet to send [03:41:56]OFD Sender: No OFD packet to send [03:42:01]OFD Sender: No OFD packet to send [03:42:06]OFD Sender: No OFD packet to send [03:42:11]OFD Sender: No OFD packet to send [03:42:16]OFD Sender: No OFD packet to send [03:42:21]OFD Sender: No OFD packet to send [03:42:26]OFD Sender: No OFD packet to send [03:42:31]OFD Sender: No OFD packet to send [03:42:36]OFD Sender: No OFD packet to send [03:42:41]OFD Sender: No OFD packet to send [03:42:46]OFD Sender: No OFD packet to send [03:42:51]OFD Sender: No OFD packet to send [03:42: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:32]OFD Sender: No OFD packet to send [03:50:37]OFD Sender: No OFD packet to send [03:50:42]OFD Sender: No OFD packet to send [03:50:47]OFD Sender: No OFD packet to send [03:50:52]OFD Sender: No OFD packet to send [03:50:57]OFD Sender: No OFD packet to send [03:51:02]OFD Sender: No OFD packet to send [03:51:07]OFD Sender: No OFD packet to send [03:51:12]OFD Sender: No OFD packet to send [03:51:17]OFD Sender: No OFD packet to send [03:51:22]OFD Sender: No OFD packet to send [03:51:27]OFD Sender: No OFD packet to send [03:51:32]OFD Sender: No OFD packet to send [03:51:37]OFD Sender: No OFD packet to send [03:51:42]OFD Sender: No OFD packet to send [03:51:47]OFD Sender: No OFD packet to send [03:51:52]OFD Sender: No OFD packet to send [03:51:57]OFD Sender: No OFD packet to send [03:52:02]OFD Sender: No OFD packet to send [03:52:07]OFD Sender: No OFD packet to send [03:52:12]OFD Sender: No OFD packet to send [03:52:17]OFD Sender: No OFD packet to send [03:52:22]OFD Sender: No OFD packet to send [03:52:27]OFD Sender: No OFD packet to send [03:52:32]OFD Sender: No OFD packet to send [03:52:37]OFD Sender: No OFD packet to send [03:52:42]OFD Sender: No OFD packet to send [03:52:47]OFD Sender: No OFD packet to send [03:52:52]OFD Sender: No OFD packet to send [03:52:57]OFD Sender: No OFD packet to send [03:53:02]OFD Sender: No OFD packet to send [03:53:07]OFD Sender: No OFD packet to send [03:53:12]OFD Sender: No OFD packet to send [03:53:17]OFD Sender: No OFD packet to send [03:53:22]OFD Sender: No OFD packet to send [03:53:27]OFD Sender: No OFD packet to send [03:53:32]OFD Sender: No OFD packet to send [03:53:37]OFD Sender: No OFD packet to send [03:53:42]OFD Sender: No OFD packet to send [03:53:47]OFD Sender: No OFD packet to send [03:53:52]OFD Sender: No OFD packet to send [03:53:57]OFD Sender: No OFD packet to send [03:54:02]OFD Sender: No OFD packet to send [03:54:07]OFD Sender: No OFD packet to send [03:54:12]OFD Sender: No OFD packet to send [03:54:17]OFD Sender: No OFD packet to send [03:54:22]OFD Sender: No OFD packet to send [03:54:27]OFD Sender: No OFD packet to send [03:54:32]OFD Sender: No OFD packet to send [03:54:37]OFD Sender: No OFD packet to send [03:54:42]OFD Sender: No OFD packet to send [03:54:47]OFD Sender: No OFD packet to send [03:54:52]OFD Sender: No OFD packet to send [03:54:57]OFD Sender: No OFD packet to send [03:55:02]OFD Sender: No OFD packet to send [03:55:07]OFD Sender: No OFD packet to send [03:55:12]OFD Sender: No OFD packet to send [03:55:17]OFD Sender: No OFD packet to send [03:55:22]OFD Sender: No OFD packet to send [03:55:27]OFD Sender: No OFD packet to send [03:55:32]OFD Sender: No OFD packet to send [03:55:37]OFD Sender: No OFD packet to send [03:55:42]OFD Sender: No OFD packet to send [03:55:47]OFD Sender: No OFD packet to send [03:55:52]OFD Sender: No OFD packet to send [03:55:57]OFD Sender: No OFD packet to send [03:56:02]OFD Sender: No OFD packet to send [03:56:07]OFD Sender: No OFD packet to send [03:56:12]OFD Sender: No OFD packet to send [03:56:17]OFD Sender: No OFD packet to send [03:56:22]OFD Sender: No OFD packet to send [03:56:27]OFD Sender: No OFD packet to send [03:56:32]OFD Sender: No OFD packet to send [03:56:37]OFD Sender: No OFD packet to send [03:56:42]OFD Sender: No OFD packet to send [03:56: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:42]OFD Sender: No OFD packet to send [04:10:47]OFD Sender: No OFD packet to send [04:10:52]OFD Sender: No OFD packet to send [04:10:57]OFD Sender: No OFD packet to send [04:11: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:43]OFD Sender: No OFD packet to send [04:27:48]OFD Sender: No OFD packet to send [04:27:53]OFD Sender: No OFD packet to send [04:27:58]OFD Sender: No OFD packet to send [04:28:03]OFD Sender: No OFD packet to send [04:28:08]OFD Sender: No OFD packet to send [04:28:13]OFD Sender: No OFD packet to send [04:28:18]OFD Sender: No OFD packet to send [04:28:23]OFD Sender: No OFD packet to send [04:28:28]OFD Sender: No OFD packet to send [04:28:33]OFD Sender: No OFD packet to send [04:28:38]OFD Sender: No OFD packet to send [04:28:43]OFD Sender: No OFD packet to send [04:28:48]OFD Sender: No OFD packet to send [04:28:53]OFD Sender: No OFD packet to send [04:28:58]OFD Sender: No OFD packet to send [04:29:03]OFD Sender: No OFD packet to send [04:29:08]OFD Sender: No OFD packet to send [04:29:13]OFD Sender: No OFD packet to send [04:29:18]OFD Sender: No OFD packet to send [04:29:23]OFD Sender: No OFD packet to send [04:29:28]OFD Sender: No OFD packet to send [04:29:33]OFD Sender: No OFD packet to send [04:29:38]OFD Sender: No OFD packet to send [04:29:43]OFD Sender: No OFD packet to send [04:29:48]OFD Sender: No OFD packet to send [04:29:53]OFD Sender: No OFD packet to send [04:29:58]OFD Sender: No OFD packet to send [04:30:03]OFD Sender: No OFD packet to send [04:30:08]OFD Sender: No OFD packet to send [04:30:13]OFD Sender: No OFD packet to send [04:30:18]OFD Sender: No OFD packet to send [04:30:23]OFD Sender: No OFD packet to send [04:30:28]OFD Sender: No OFD packet to send [04:30:33]OFD Sender: No OFD packet to send [04:30:38]OFD Sender: No OFD packet to send [04:30:43]OFD Sender: No OFD packet to send [04:30:48]OFD Sender: No OFD packet to send [04:30:53]OFD Sender: No OFD packet to send [04:30:58]OFD Sender: No OFD packet to send [04:31:03]OFD Sender: No OFD packet to send [04:31:08]OFD Sender: No OFD packet to send [04:31:13]OFD Sender: No OFD packet to send [04:31:18]OFD Sender: No OFD packet to send [04:31: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:44]OFD Sender: No OFD packet to send [04:44:49]OFD Sender: No OFD packet to send [04:44:54]OFD Sender: No OFD packet to send [04:44:59]OFD Sender: No OFD packet to send [04:45:04]OFD Sender: No OFD packet to send [04:45:09]OFD Sender: No OFD packet to send [04:45:14]OFD Sender: No OFD packet to send [04:45:19]OFD Sender: No OFD packet to send [04:45:24]OFD Sender: No OFD packet to send [04:45:29]OFD Sender: No OFD packet to send [04:45:34]OFD Sender: No OFD packet to send [04:45:39]OFD Sender: No OFD packet to send [04:45:44]OFD Sender: No OFD packet to send [04:45:49]OFD Sender: No OFD packet to send [04:45:54]OFD Sender: No OFD packet to send [04:45:59]OFD Sender: No OFD packet to send [04:46:04]OFD Sender: No OFD packet to send [04:46:09]OFD Sender: No OFD packet to send [04:46:14]OFD Sender: No OFD packet to send [04:46:19]OFD Sender: No OFD packet to send [04:46:24]OFD Sender: No OFD packet to send [04:46:29]OFD Sender: No OFD packet to send [04:46:34]OFD Sender: No OFD packet to send [04:46:39]OFD Sender: No OFD packet to send [04:46:44]OFD Sender: No OFD packet to send [04:46:49]OFD Sender: No OFD packet to send [04:46:54]OFD Sender: No OFD packet to send [04:46:59]OFD Sender: No OFD packet to send [04:47:04]OFD Sender: No OFD packet to send [04:47:09]OFD Sender: No OFD packet to send [04:47:14]OFD Sender: No OFD packet to send [04:47:19]OFD Sender: No OFD packet to send [04:47:24]OFD Sender: No OFD packet to send [04:47:29]OFD Sender: No OFD packet to send [04:47:34]OFD Sender: No OFD packet to send [04:47:39]OFD Sender: No OFD packet to send [04:47:44]OFD Sender: No OFD packet to send [04:47:49]OFD Sender: No OFD packet to send [04:47:54]OFD Sender: No OFD packet to send [04:47:59]OFD Sender: No OFD packet to send [04:48:04]OFD Sender: No OFD packet to send [04:48:09]OFD Sender: No OFD packet to send [04:48:14]OFD Sender: No OFD packet to send [04:48:19]OFD Sender: No OFD packet to send [04:48:24]OFD Sender: No OFD packet to send [04:48:29]OFD Sender: No OFD packet to send [04:48:34]OFD Sender: No OFD packet to send [04:48:39]OFD Sender: No OFD packet to send [04:48:44]OFD Sender: No OFD packet to send [04:48:49]OFD Sender: No OFD packet to send [04:48:54]OFD Sender: No OFD packet to send [04:48:59]OFD Sender: No OFD packet to send [04:49:04]OFD Sender: No OFD packet to send [04:49:09]OFD Sender: No OFD packet to send [04:49:14]OFD Sender: No OFD packet to send [04:49:19]OFD Sender: No OFD packet to send [04:49:24]OFD Sender: No OFD packet to send [04:49:29]OFD Sender: No OFD packet to send [04:49:34]OFD Sender: No OFD packet to send [04:49:39]OFD Sender: No OFD packet to send [04:49:44]OFD Sender: No OFD packet to send [04:49:49]OFD Sender: No OFD packet to send [04:49:54]OFD Sender: No OFD packet to send [04:49:59]OFD Sender: No OFD packet to send [04:50:04]OFD Sender: No OFD packet to send [04:50:09]OFD Sender: No OFD packet to send [04:50:14]OFD Sender: No OFD packet to send [04:50:19]OFD Sender: No OFD packet to send [04:50:24]OFD Sender: No OFD packet to send [04:50:29]OFD Sender: No OFD packet to send [04:50:34]OFD Sender: No OFD packet to send [04:50:39]OFD Sender: No OFD packet to send [04:50:44]OFD Sender: No OFD packet to send [04:50:49]OFD Sender: No OFD packet to send [04:50:54]OFD Sender: No OFD packet to send [04:50:59]OFD Sender: No OFD packet to send [04:51:04]OFD Sender: No OFD packet to send [04:51:09]OFD Sender: No OFD packet to send [04:51:14]OFD Sender: No OFD packet to send [04:51:19]OFD Sender: No OFD packet to send [04:51:24]OFD Sender: No OFD packet to send [04:51:29]OFD Sender: No OFD packet to send [04:51:34]OFD Sender: No OFD packet to send [04:51:39]OFD Sender: No OFD packet to send [04:51:44]OFD Sender: No OFD packet to send [04:51:49]OFD Sender: No OFD packet to send [04:51:55]OFD Sender: No OFD packet to send [04:52:00]OFD Sender: No OFD packet to send [04:52:05]OFD Sender: No OFD packet to send [04:52:10]OFD Sender: No OFD packet to send [04:52:15]OFD Sender: No OFD packet to send [04:52:20]OFD Sender: No OFD packet to send [04:52:25]OFD Sender: No OFD packet to send [04:52:30]OFD Sender: No OFD packet to send [04:52:35]OFD Sender: No OFD packet to send [04:52:40]OFD Sender: No OFD packet to send [04:52:45]OFD Sender: No OFD packet to send [04:52:50]OFD Sender: No OFD packet to send [04:52:55]OFD Sender: No OFD packet to send [04:53:00]OFD Sender: No OFD packet to send [04:53:05]OFD Sender: No OFD packet to send [04:53:10]OFD Sender: No OFD packet to send [04:53:15]OFD Sender: No OFD packet to send [04:53:20]OFD Sender: No OFD packet to send [04:53:25]OFD Sender: No OFD packet to send [04:53:30]OFD Sender: No OFD packet to send [04:53:35]OFD Sender: No OFD packet to send [04:53:40]OFD Sender: No OFD packet to send [04:53:45]OFD Sender: No OFD packet to send [04:53:50]OFD Sender: No OFD packet to send [04:53:55]OFD Sender: No OFD packet to send [04:54:00]OFD Sender: No OFD packet to send [04:54:05]OFD Sender: No OFD packet to send [04:54:10]OFD Sender: No OFD packet to send [04:54:15]OFD Sender: No OFD packet to send [04:54:20]OFD Sender: No OFD packet to send [04:54:25]OFD Sender: No OFD packet to send [04:54:30]OFD Sender: No OFD packet to send [04:54:35]OFD Sender: No OFD packet to send [04:54:40]OFD Sender: No OFD packet to send [04:54:45]OFD Sender: No OFD packet to send [04:54:50]OFD Sender: No OFD packet to send [04:54:55]OFD Sender: No OFD packet to send [04:55:00]OFD Sender: No OFD packet to send [04:55:05]OFD Sender: No OFD packet to send [04:55:10]OFD Sender: No OFD packet to send [04:55:15]OFD Sender: No OFD packet to send [04:55:20]OFD Sender: No OFD packet to send [04:55:25]OFD Sender: No OFD packet to send [04:55:30]OFD Sender: No OFD packet to send [04:55:35]OFD Sender: No OFD packet to send [04:55:40]OFD Sender: No OFD packet to send [04:55:45]OFD Sender: No OFD packet to send [04:55:50]OFD Sender: No OFD packet to send [04:55:55]OFD Sender: No OFD packet to send [04:56:00]OFD Sender: No OFD packet to send [04:56:05]OFD Sender: No OFD packet to send [04:56:10]OFD Sender: No OFD packet to send [04:56:15]OFD Sender: No OFD packet to send [04:56:20]OFD Sender: No OFD packet to send [04:56:25]OFD Sender: No OFD packet to send [04:56:30]OFD Sender: No OFD packet to send [04:56:35]OFD Sender: No OFD packet to send [04:56:40]OFD Sender: No OFD packet to send [04:56:45]OFD Sender: No OFD packet to send [04:56:50]OFD Sender: No OFD packet to send [04:56:55]OFD Sender: No OFD packet to send [04:57:00]OFD Sender: No OFD packet to send [04:57:05]OFD Sender: No OFD packet to send [04:57:10]OFD Sender: No OFD packet to send [04:57:15]OFD Sender: No OFD packet to send [04:57:20]OFD Sender: No OFD packet to send [04:57:25]OFD Sender: No OFD packet to send [04:57:30]OFD Sender: No OFD packet to send [04:57:35]OFD Sender: No OFD packet to send [04:57:40]OFD Sender: No OFD packet to send [04:57:45]OFD Sender: No OFD packet to send [04:57:50]OFD Sender: No OFD packet to send [04:57:55]OFD Sender: No OFD packet to send [04:58:00]OFD Sender: No OFD packet to send [04:58:05]OFD Sender: No OFD packet to send [04:58:10]OFD Sender: No OFD packet to send [04:58:15]OFD Sender: No OFD packet to send [04:58:20]OFD Sender: No OFD packet to send [04:58:25]OFD Sender: No OFD packet to send [04:58:30]OFD Sender: No OFD packet to send [04:58:35]OFD Sender: No OFD packet to send [04:58:40]OFD Sender: No OFD packet to send [04:58:45]OFD Sender: No OFD packet to send [04:58:50]OFD Sender: No OFD packet to send [04:58:55]OFD Sender: No OFD packet to send [04:59:00]OFD Sender: No OFD packet to send [04:59:05]OFD Sender: No OFD packet to send [04:59:10]OFD Sender: No OFD packet to send [04:59:15]OFD Sender: No OFD packet to send [04:59:20]OFD Sender: No OFD packet to send [04:59:25]OFD Sender: No OFD packet to send [04:59:30]OFD Sender: No OFD packet to send [04:59:35]OFD Sender: No OFD packet to send [04:59:40]OFD Sender: No OFD packet to send [04:59:45]OFD Sender: No OFD packet to send [04:59:50]OFD Sender: No OFD packet to send [04:59:55]OFD Sender: No OFD packet to send [05:00:00]OFD Sender: No OFD packet to send [05:00:05]OFD Sender: No OFD packet to send [05:00:10]OFD Sender: No OFD packet to send [05:00:15]OFD Sender: No OFD packet to send [05:00:20]OFD Sender: No OFD packet to send [05:00:25]OFD Sender: No OFD packet to send [05:00:30]OFD Sender: No OFD packet to send [05:00:35]OFD Sender: No OFD packet to send [05:00:40]OFD Sender: No OFD packet to send [05:00:45]OFD Sender: No OFD packet to send [05:00:50]OFD Sender: No OFD packet to send [05:00:55]OFD Sender: No OFD packet to send [05:01:00]OFD Sender: No OFD packet to send [05:01:05]OFD Sender: No OFD packet to send [05:01:10]OFD Sender: No OFD packet to send [05:01:15]OFD Sender: No OFD packet to send [05:01:20]OFD Sender: No OFD packet to send [05:01:25]OFD Sender: No OFD packet to send [05:01:30]OFD Sender: No OFD packet to send [05:01:35]OFD Sender: No OFD packet to send [05:01:40]OFD Sender: No OFD packet to send [05:01:45]OFD Sender: No OFD packet to send [05:01:46]accept exits with 7 [05:01:46]New connection [05:01:46]New thread 3067227492 created [05:01:46]Thread 3067084132 joined [05:01:46]Waiting for new connection... [05:01:46] Sock 7.Parse request [05:01:46]Sock 7.Check first char [05:01:46]Sock 7.First char is OK [05:01:46]request: POST /json_proto HTTP/1.0 [05:01:46]Method: POST [05:01:46]URL: /json_proto [05:01:46]Method is POST - this is cgi request [05:01:46]url: /json_proto [05:01:46]query_string will be loaded in cgi processing [05:01:46]execute_cgi json_proto POST (null) [05:01:46]execute_cgi path=json_proto method=POST [05:01:46]POST find Content-Length [05:01:46]Host: 172.17.38.133:8080 [05:01:46]Content-Length: 1212 [05:01:46]Content-Type: application/json [05:01:46] [05:01:46]POST finish read [05:01:46]Found Content-Length = 1212 [05:01:46]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 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. \u000A\u0421\u0447\u0435\u0442 N : (1)672804\u000A19.06.2024 04:39\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 21\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-5\u000A 40.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 2916.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\u000A00562\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:01:46]execute_script... [05:01:46]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 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. \u000A\u0421\u0447\u0435\u0442 N : (1)672804\u000A19.06.2024 04:39\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 21\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-5\u000A 40.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 2916.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\u000A00562\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:01:46]POST & json_proto [05:01:46]process_json_proto [05:01:46]json parsed OK: [05:01:46]protocol is kg_v1.0 [05:01:46]action value=print_text [05:01:46]process_action print_text [05:01:46]cmd_print_text [05:01:46]ExternCall_PrintAddStr [05:01:46]wPrintStart [05:01:46]Write to MH i2c: 01 00 00 13 8E A1 [05:01:46]Write i2c OK [05:01:46]MH_I2C_Read... [05:01:46]Read from MH i2c: 01 [05:01:46]MH_I2C_Read... [05:01:46]Read from MH i2c: 01 07 00 [05:01:46]MH_I2C_Read... [05:01:46]Read from MH i2c: 01 07 00 13 8E 00 00 00 00 00 FF 0F B6 [05:01:46]RasterBufferAndPrint [05:01:46]line *****ТОВАРНЫЙ ЧЕК***** [05:01:46]line АЗС 120 [05:01:46]line Партнер нефть [05:01:46]line 02508201610067 [05:01:46]line Кассир : Байбугуева Г. [05:01:46]line Счет N : (1)672804 [05:01:46]line 19.06.2024 04:39 [05:01:46]line ПРОДАЖА [05:01:46]line ТРК (МРК, ГНК): 21 [05:01:46]line Вид ГСМ : 2710194210 [05:01:46]line ДТ(л)-К-5 [05:01:46]line 40.000 x 72.90 [05:01:46]line ИТОГ: 2916.00 [05:01:46]line Тип оплаты: Талоны: Топливная Карта [05:01:46]line 00562 [05:01:46]line ______________________ [05:01:46]line (подпись) [05:01:46]written 0, free lines is 4095 [05:01:46]Write to MH i2c: 01 00 00 27 8E B5 [05:01:46]Write i2c OK [05:01:46]MH_I2C_Read... [05:01:46]Read from MH i2c: 01 [05:01:46]MH_I2C_Read... [05:01:46]Read from MH i2c: 01 07 00 [05:01:46]MH_I2C_Read... [05:01:46]Read from MH i2c: 01 07 00 27 8E 00 00 00 00 00 13 0E DD [05:01:46]RasterBufferAndPrint [05:01:46]line [05:01:46]line [05:01:46]line [05:01:46]line [05:01:46]line [05:01:46]written 0, free lines is 3604 [05:01:47]MH_Cut [05:01:47]Write to MH i2c: D1 01 00 2E 8E 01 8E [05:01:47]Write i2c OK [05:01:47]MH_I2C_Read... [05:01:47]Read from MH i2c: D1 [05:01:47]MH_I2C_Read... [05:01:47]Read from MH i2c: D1 01 00 [05:01:47]MH_I2C_Read... [05:01:47]Read from MH i2c: D1 01 00 2E 8E 00 8D [05:01:47]Write to MH i2c: 01 00 00 2F 8E BD [05:01:47]Write i2c OK [05:01:47]MH_I2C_Read... [05:01:47]*** Cut start [05:01:47]*** Partial cut [05:01:47]*** CUTSNS_PIN = 1 [05:01:47]*** CUTSNS_PIN = 0 [05:01:47]*** Brake cut motor [05:01:48]Read from MH i2c: 01 [05:01:48]MH_I2C_Read... [05:01:48]*** Stop cut motor [05:01:48]*** Cut end [05:01:48]Read from MH i2c: 01 07 00 [05:01:48]MH_I2C_Read... [05:01:48]Read from MH i2c: 01 07 00 2F 8E 00 00 00 00 00 FF 0F D2 [05:01:48]process_action print_text done [05:01:48]requested_data is exist [05:01:48]produce_requested_data [05:01:48]requested_item fm.sn is exist - process it [05:01:48]wFMCommunicate request_size=4 [05:01:48]MH_SAM_APDU [05:01:48]CAPDU: 80 11 00 00 [05:01:48]Write to MH i2c: E2 08 00 30 8E 80 11 00 00 00 00 00 00 38 [05:01:48]Write i2c OK [05:01:48]MH_I2C_Read... [05:01:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:01:48]Read from MH i2c: E2 [05:01:48]MH_I2C_Read... [05:01:48]Read from MH i2c: E2 17 00 [05:01:48]MH_I2C_Read... [05:01:48]Read from MH i2c: E2 17 00 30 8E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 8B [05:01:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [05:01:48]wFMCommunicate OK [05:01:48]requested_item fd.num is exist - process it [05:01:48]SAM_PROTO_GetFieldsCounters [05:01:48]wFMCommunicate request_size=4 [05:01:48]MH_SAM_APDU [05:01:48]CAPDU: 80 13 00 00 [05:01:48]Write to MH i2c: E2 08 00 31 8E 80 13 00 00 00 00 00 00 3B [05:01:48]Write i2c OK [05:01:48]MH_I2C_Read... [05:01:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:01:48]Read from MH i2c: E2 [05:01:48]MH_I2C_Read... [05:01:48]Read from MH i2c: E2 62 00 [05:01:48]MH_I2C_Read... [05:01:48]Read from MH i2c: E2 62 00 31 8E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 A1 94 01 00 0E 04 04 00 61 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 27 [05:01: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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 A1 94 01 00 0E 04 04 00 61 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 [05:01:48]wFMCommunicate OK [05:01:48]SAM_PROTO_GetFieldsCounters done [05:01:48]requested_item shift.num is exist - process it [05:01:48]requested_item shift.opened is exist - process it [05:01:48]req_shift_opened [05:01:48]FM_GetShiftState [05:01:48]SAM_PROTO_GetShiftState [05:01:48]wFMCommunicate request_size=4 [05:01:48]MH_SAM_APDU [05:01:48]CAPDU: 80 13 01 00 [05:01:48]Write to MH i2c: E2 08 00 32 8E 80 13 01 00 00 00 00 00 3D [05:01:48]Write i2c OK [05:01:48]MH_I2C_Read... [05:01:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:01:48]Read from MH i2c: E2 [05:01:48]MH_I2C_Read... [05:01:48]Read from MH i2c: E2 0E 00 [05:01:48]MH_I2C_Read... [05:01:48]Read from MH i2c: E2 0E 00 32 8E 00 09 00 01 04 26 72 66 00 00 00 00 90 00 4B [05:01:48]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [05:01:48]wFMCommunicate OK [05:01:48]SAM_PROTO_GetShiftState done [05:01:48]FM_GetShiftState done [05:01:48]req_shift_opened done [05:01:48]requested_item shift.open_date is exist - process it [05:01:48]req_shift_open_date [05:01:48]req_shift_open_date done [05:01:48]produce_requested_data done [05:01:48]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103585,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [05:01:48]process_action_free print_text [05:01:48]json_value_free [05:01:48]json_value_free done [05:01:48]process_json_proto returns [05:01:48]Send response to host [05:01:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103585,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [05:01:48]free response buf [05:01:48]execute_script done [05:01:48]execute_script returns [05:01:48]free content buf [05:01:48]Sock 7.Close socket [05:01:48]Sock 7.Thread stoped [05:01:50]OFD Sender: No OFD packet to send [05:01:55]OFD Sender: No OFD packet to send [05:02:00]OFD Sender: No OFD packet to send [05:02:05]OFD Sender: No OFD packet to send [05:02:10]OFD Sender: No OFD packet to send [05:02:15]OFD Sender: No OFD packet to send [05:02:20]OFD Sender: No OFD packet to send [05:02:25]OFD Sender: No OFD packet to send [05:02:30]OFD Sender: No OFD packet to send [05:02:35]OFD Sender: No OFD packet to send [05:02:40]OFD Sender: No OFD packet to send [05:02:45]OFD Sender: No OFD packet to send [05:02:50]OFD Sender: No OFD packet to send [05:02:55]OFD Sender: No OFD packet to send [05:03:00]OFD Sender: No OFD packet to send [05:03:05]OFD Sender: No OFD packet to send [05:03:10]OFD Sender: No OFD packet to send [05:03:15]OFD Sender: No OFD packet to send [05:03:20]OFD Sender: No OFD packet to send [05:03:25]OFD Sender: No OFD packet to send [05:03:30]OFD Sender: No OFD packet to send [05:03:35]OFD Sender: No OFD packet to send [05:03:40]OFD Sender: No OFD packet to send [05:03:45]OFD Sender: No OFD packet to send [05:03:50]OFD Sender: No OFD packet to send [05:03:55]OFD Sender: No OFD packet to send [05:04:00]OFD Sender: No OFD packet to send [05:04:05]OFD Sender: No OFD packet to send [05:04:10]OFD Sender: No OFD packet to send [05:04:15]OFD Sender: No OFD packet to send [05:04:20]OFD Sender: No OFD packet to send [05:04:25]OFD Sender: No OFD packet to send [05:04:30]OFD Sender: No OFD packet to send [05:04:35]OFD Sender: No OFD packet to send [05:04:40]OFD Sender: No OFD packet to send [05:04:45]OFD Sender: No OFD packet to send [05:04:50]OFD Sender: No OFD packet to send [05:04:55]OFD Sender: No OFD packet to send [05:05:00]OFD Sender: No OFD packet to send [05:05:05]OFD Sender: No OFD packet to send [05:05:10]OFD Sender: No OFD packet to send [05:05:15]OFD Sender: No OFD packet to send [05:05:20]OFD Sender: No OFD packet to send [05:05:25]OFD Sender: No OFD packet to send [05:05:30]OFD Sender: No OFD packet to send [05:05:35]OFD Sender: No OFD packet to send [05:05:40]OFD Sender: No OFD packet to send [05:05:45]OFD Sender: No OFD packet to send [05:05:50]OFD Sender: No OFD packet to send [05:05:55]OFD Sender: No OFD packet to send [05:06:00]OFD Sender: No OFD packet to send [05:06:05]OFD Sender: No OFD packet to send [05:06:10]OFD Sender: No OFD packet to send [05:06:15]OFD Sender: No OFD packet to send [05:06:20]OFD Sender: No OFD packet to send [05:06:25]OFD Sender: No OFD packet to send [05:06:30]OFD Sender: No OFD packet to send [05:06:35]OFD Sender: No OFD packet to send [05:06:40]OFD Sender: No OFD packet to send [05:06:45]OFD Sender: No OFD packet to send [05:06:50]OFD Sender: No OFD packet to send [05:06:55]OFD Sender: No OFD packet to send [05:07:00]OFD Sender: No OFD packet to send [05:07:05]OFD Sender: No OFD packet to send [05:07:10]OFD Sender: No OFD packet to send [05:07:15]OFD Sender: No OFD packet to send [05:07:20]OFD Sender: No OFD packet to send [05:07:25]OFD Sender: No OFD packet to send [05:07:30]OFD Sender: No OFD packet to send [05:07:35]OFD Sender: No OFD packet to send [05:07:40]OFD Sender: No OFD packet to send [05:07:45]OFD Sender: No OFD packet to send [05:07:50]OFD Sender: No OFD packet to send [05:07:55]OFD Sender: No OFD packet to send [05:08:00]OFD Sender: No OFD packet to send [05:08:05]OFD Sender: No OFD packet to send [05:08:10]OFD Sender: No OFD packet to send [05:08:15]OFD Sender: No OFD packet to send [05:08:20]OFD Sender: No OFD packet to send [05:08:25]OFD Sender: No OFD packet to send [05:08:30]OFD Sender: No OFD packet to send [05:08:35]OFD Sender: No OFD packet to send [05:08:40]OFD Sender: No OFD packet to send [05:08:45]OFD Sender: No OFD packet to send [05:08:50]OFD Sender: No OFD packet to send [05:08:55]OFD Sender: No OFD packet to send [05:09:00]OFD Sender: No OFD packet to send [05:09:05]OFD Sender: No OFD packet to send [05:09:10]OFD Sender: No OFD packet to send [05:09:15]OFD Sender: No OFD packet to send [05:09:20]OFD Sender: No OFD packet to send [05:09:25]OFD Sender: No OFD packet to send [05:09:30]OFD Sender: No OFD packet to send [05:09:35]OFD Sender: No OFD packet to send [05:09:40]OFD Sender: No OFD packet to send [05:09:45]OFD Sender: No OFD packet to send [05:09:50]OFD Sender: No OFD packet to send [05:09:55]OFD Sender: No OFD packet to send [05:10:00]OFD Sender: No OFD packet to send [05:10:05]OFD Sender: No OFD packet to send [05:10:10]OFD Sender: No OFD packet to send [05:10:15]OFD Sender: No OFD packet to send [05:10:20]OFD Sender: No OFD packet to send [05:10:25]OFD Sender: No OFD packet to send [05:10:30]OFD Sender: No OFD packet to send [05:10:35]OFD Sender: No OFD packet to send [05:10:40]OFD Sender: No OFD packet to send [05:10:45]OFD Sender: No OFD packet to send [05:10:50]OFD Sender: No OFD packet to send [05:10:55]OFD Sender: No OFD packet to send [05:11:00]OFD Sender: No OFD packet to send [05:11:05]OFD Sender: No OFD packet to send [05:11:10]OFD Sender: No OFD packet to send [05:11:15]OFD Sender: No OFD packet to send [05:11:20]OFD Sender: No OFD packet to send [05:11:25]OFD Sender: No OFD packet to send [05:11:30]OFD Sender: No OFD packet to send [05:11:35]OFD Sender: No OFD packet to send [05:11:40]OFD Sender: No OFD packet to send [05:11:45]OFD Sender: No OFD packet to send [05:11:50]OFD Sender: No OFD packet to send [05:11:55]OFD Sender: No OFD packet to send [05:12:00]OFD Sender: No OFD packet to send [05:12:05]OFD Sender: No OFD packet to send [05:12:11]OFD Sender: No OFD packet to send [05:12:16]OFD Sender: No OFD packet to send [05:12:21]OFD Sender: No OFD packet to send [05:12:26]OFD Sender: No OFD packet to send [05:12:31]OFD Sender: No OFD packet to send [05:12:36]OFD Sender: No OFD packet to send [05:12:41]OFD Sender: No OFD packet to send [05:12:46]OFD Sender: No OFD packet to send [05:12:51]OFD Sender: No OFD packet to send [05:12:56]OFD Sender: No OFD packet to send [05:13:01]OFD Sender: No OFD packet to send [05:13:06]OFD Sender: No OFD packet to send [05:13:11]OFD Sender: No OFD packet to send [05:13:16]OFD Sender: No OFD packet to send [05:13:21]OFD Sender: No OFD packet to send [05:13:26]OFD Sender: No OFD packet to send [05:13:31]OFD Sender: No OFD packet to send [05:13:36]OFD Sender: No OFD packet to send [05:13:41]OFD Sender: No OFD packet to send [05:13:46]OFD Sender: No OFD packet to send [05:13:51]OFD Sender: No OFD packet to send [05:13:56]OFD Sender: No OFD packet to send [05:14:01]OFD Sender: No OFD packet to send [05:14:06]OFD Sender: No OFD packet to send [05:14:11]OFD Sender: No OFD packet to send [05:14:16]OFD Sender: No OFD packet to send [05:14:21]OFD Sender: No OFD packet to send [05:14:26]OFD Sender: No OFD packet to send [05:14:31]OFD Sender: No OFD packet to send [05:14:36]OFD Sender: No OFD packet to send [05:14:41]OFD Sender: No OFD packet to send [05:14:46]OFD Sender: No OFD packet to send [05:14:51]OFD Sender: No OFD packet to send [05:14:56]OFD Sender: No OFD packet to send [05:15:01]OFD Sender: No OFD packet to send [05:15:06]OFD Sender: No OFD packet to send [05:15:11]OFD Sender: No OFD packet to send [05:15:16]OFD Sender: No OFD packet to send [05:15:21]OFD Sender: No OFD packet to send [05:15:26]OFD Sender: No OFD packet to send [05:15:31]OFD Sender: No OFD packet to send [05:15:36]OFD Sender: No OFD packet to send [05:15:41]OFD Sender: No OFD packet to send [05:15:46]OFD Sender: No OFD packet to send [05:15:51]OFD Sender: No OFD packet to send [05:15:56]OFD Sender: No OFD packet to send [05:16:01]OFD Sender: No OFD packet to send [05:16:06]OFD Sender: No OFD packet to send [05:16:11]OFD Sender: No OFD packet to send [05:16:16]OFD Sender: No OFD packet to send [05:16:21]OFD Sender: No OFD packet to send [05:16:26]OFD Sender: No OFD packet to send [05:16:31]OFD Sender: No OFD packet to send [05:16:36]OFD Sender: No OFD packet to send [05:16:41]OFD Sender: No OFD packet to send [05:16:46]OFD Sender: No OFD packet to send [05:16:51]OFD Sender: No OFD packet to send [05:16:56]OFD Sender: No OFD packet to send [05:17:01]OFD Sender: No OFD packet to send [05:17:06]OFD Sender: No OFD packet to send [05:17:11]OFD Sender: No OFD packet to send [05:17:16]OFD Sender: No OFD packet to send [05:17:21]OFD Sender: No OFD packet to send [05:17:26]OFD Sender: No OFD packet to send [05:17:31]OFD Sender: No OFD packet to send [05:17:36]OFD Sender: No OFD packet to send [05:17:41]OFD Sender: No OFD packet to send [05:17:46]OFD Sender: No OFD packet to send [05:17:51]OFD Sender: No OFD packet to send [05:17:56]OFD Sender: No OFD packet to send [05:18:01]OFD Sender: No OFD packet to send [05:18:06]OFD Sender: No OFD packet to send [05:18:11]OFD Sender: No OFD packet to send [05:18:16]OFD Sender: No OFD packet to send [05:18:21]OFD Sender: No OFD packet to send [05:18:26]OFD Sender: No OFD packet to send [05:18:31]OFD Sender: No OFD packet to send [05:18:36]OFD Sender: No OFD packet to send [05:18:41]OFD Sender: No OFD packet to send [05:18:46]OFD Sender: No OFD packet to send [05:18:47]accept exits with 9 [05:18:47]New connection [05:18:47]New thread 3067084132 created [05:18:47]Thread 3067227492 joined [05:18:47]Waiting for new connection... [05:18:47] Sock 9.Parse request [05:18:47]Sock 9.Check first char [05:18:47]Sock 9.First char is OK [05:18:47]request: POST /json_proto HTTP/1.0 [05:18:47]Method: POST [05:18:47]URL: /json_proto [05:18:47]Method is POST - this is cgi request [05:18:47]url: /json_proto [05:18:47]query_string will be loaded in cgi processing [05:18:47]execute_cgi json_proto POST (null) [05:18:47]execute_cgi path=json_proto method=POST [05:18:47]POST find Content-Length [05:18:47]Host: 172.17.38.133:8080 [05:18:47]Content-Length: 692 [05:18:47]Content-Type: application/json [05:18:47] [05:18:47]POST finish read [05:18:47]Found Content-Length = 692 [05:18:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672805", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 171.470, "sum" : 12500.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 12500.00, "total" : 12500.00, "payments": [ { "type": 0, "sum" : 12500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:18:47]execute_script... [05:18: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)672805", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 171.470, "sum" : 12500.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 12500.00, "total" : 12500.00, "payments": [ { "type": 0, "sum" : 12500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:18:47]POST & json_proto [05:18:47]process_json_proto [05:18:47]json parsed OK: [05:18:47]protocol is kg_v1.0 [05:18:47]action value=close_receipt [05:18:47]process_action close_receipt [05:18:47]cmd_close_receipt [05:18:47]MH_GetDate [05:18:47]Write to MH i2c: F0 00 00 33 8E B0 [05:18:47]Write i2c OK [05:18:47]MH_I2C_Read... [05:18:47]Read from MH i2c: F0 [05:18:47]MH_I2C_Read... [05:18:47]Read from MH i2c: F0 09 00 [05:18:47]MH_I2C_Read... [05:18:47]Read from MH i2c: F0 09 00 33 8E 00 41 6A 72 66 BD 8F 7C 64 68 [05:18:47]GetLastDocTimeStamp 1718766807 [05:18:47]current date 1718774337 [05:18:47]FM_GetShiftState [05:18:47]SAM_PROTO_GetShiftState [05:18:47]wFMCommunicate request_size=4 [05:18:47]MH_SAM_APDU [05:18:47]CAPDU: 80 13 01 00 [05:18:47]Write to MH i2c: E2 08 00 34 8E 80 13 01 00 00 00 00 00 3F [05:18:47]Write i2c OK [05:18:47]MH_I2C_Read... [05:18:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:18:47]Read from MH i2c: E2 [05:18:47]MH_I2C_Read... [05:18:47]Read from MH i2c: E2 0E 00 [05:18:47]MH_I2C_Read... [05:18:47]Read from MH i2c: E2 0E 00 34 8E 00 09 00 01 04 26 72 66 00 00 00 00 90 00 4D [05:18:47]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [05:18:47]wFMCommunicate OK [05:18:47]SAM_PROTO_GetShiftState done [05:18:47]FM_GetShiftState done [05:18:47]opened in 1718756868 [05:18:47]opened+sec_in_day 1718843268 [05:18:47]quantity*price = 1250016 [05:18:47]sum+1 = 1250017 [05:18:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 12500.00 Внесено: 12500.00 СДАЧА: 0.00 НСП 1% : 110.62 НДС 12% : 1327.45 Наличными: 12500.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 16 19.06.2024 05:18 Смена: 353 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103586 ФПД: 85801587002367 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T051858&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103586&fm=85801587002367&tin=02508201610067®Number=0000000000092785&sum=1250000 [05:18:48]StoreToDocumentArchive [05:18:48]shift 353 fd 103586 [05:18:48]save to /storage/0353/doc_00103586 [05:18:48]save last doc name /storage/0353/doc_00103586 to /storage/kkm_last_doc_name [05:18:48]save OK [05:18:48]Clear old archive folders... [05:18:48]ProcessDocumentItem done err = 0, tmpTLVsize=252 [05:18:48]tlvbuf is 013F5CD0 [05:18:48]SAM_PROTO_ClearQueue [05:18:48]wFMCommunicate request_size=4 [05:18:48]MH_SAM_APDU [05:18:48]CAPDU: 80 09 00 00 [05:18:48]Write to MH i2c: E2 08 00 41 8E 80 09 00 00 00 00 00 00 41 [05:18:48]Write i2c OK [05:18:48]MH_I2C_Read... [05:18:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:18:48]Read from MH i2c: E2 [05:18:48]MH_I2C_Read... [05:18:48]Read from MH i2c: E2 03 00 [05:18:48]MH_I2C_Read... [05:18:48]Read from MH i2c: E2 03 00 41 8E 00 90 00 43 [05:18:48]RAPDU: 90 00 [05:18:48]wFMCommunicate OK [05:18:48]SAM_PROTO_ClearQueue done [05:18:48]KKMCreateOFDPacket [05:18:48]OFDProtocolAddRootSTLVToBuf [05:18:48]FM_MakeSignedData [05:18:48]FM_MakeSignedData [05:18:48]SAM_PROTO_SignData [05:18:48]wFMCommunicate request_size=4 [05:18:48]MH_SAM_APDU [05:18:48]CAPDU: 80 0D 01 02 [05:18:48]Write to MH i2c: E2 08 00 42 8E 80 0D 01 02 00 00 00 00 49 [05:18:48]Write i2c OK [05:18:48]MH_I2C_Read... [05:18:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:18:48]Read from MH i2c: E2 [05:18:48]MH_I2C_Read... [05:18:48]Read from MH i2c: E2 03 00 [05:18:48]MH_I2C_Read... [05:18:48]Read from MH i2c: E2 03 00 42 8E 00 90 00 44 [05:18:48]RAPDU: 90 00 [05:18:48]wFMCommunicate OK [05:18:48]wFMCommunicate request_size=255 [05:18:48]MH_SAM_APDU [05:18:48]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 CE 9D 02 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 E0 12 13 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 12 13 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 2B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 89 06 02 00 00 00 07 04 06 00 D0 12 13 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 42 6A 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 A2 94 01 00 35 04 06 00 [05:18:48]Write to MH i2c: E2 02 01 43 8E 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 CE 9D 02 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 E0 12 13 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 12 13 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 2B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 89 06 02 00 00 00 07 04 06 00 D0 12 13 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 42 6A 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 A2 94 01 00 35 04 06 00 00 00 A5 [05:18:48]Write i2c OK [05:18:48]MH_I2C_Read... [05:18:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:18:48]Read from MH i2c: E2 [05:18:48]MH_I2C_Read... [05:18:48]Read from MH i2c: E2 03 00 [05:18:48]MH_I2C_Read... [05:18:48]Read from MH i2c: E2 03 00 43 8E 00 90 00 45 [05:18:48]RAPDU: 90 00 [05:18:48]wFMCommunicate OK [05:18:48]wFMCommunicate request_size=11 [05:18:48]MH_SAM_APDU [05:18:48]CAPDU: 80 0D 02 02 06 4E 09 3D 1D 4B FF [05:18:48]Write to MH i2c: E2 0E 00 44 8E 80 0D 02 02 06 00 4E 09 3D 1D 4B FF 00 00 53 [05:18:48]Write i2c OK [05:18:48]MH_I2C_Read... [05:18:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:18:48]Read from MH i2c: E2 [05:18:48]MH_I2C_Read... [05:18:48]Read from MH i2c: E2 03 00 [05:18:48]MH_I2C_Read... [05:18:48]Read from MH i2c: E2 03 00 44 8E 00 90 00 46 [05:18:48]RAPDU: 90 00 [05:18:48]wFMCommunicate OK [05:18:48]wFMCommunicate request_size=4 [05:18:48]MH_SAM_APDU [05:18:48]CAPDU: 80 0D 03 02 [05:18:48]Write to MH i2c: E2 08 00 45 8E 80 0D 03 02 00 00 00 00 4E [05:18:48]Write i2c OK [05:18:48]MH_I2C_Read... [05:18:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:18:48]Read from MH i2c: E2 [05:18:48]MH_I2C_Read... [05:18:48]Read from MH i2c: E2 0B 00 [05:18:49]MH_I2C_Read... [05:18:49]Read from MH i2c: E2 0B 00 45 8E 00 1B 7E EA AA 87 F9 DC 53 90 00 2B [05:18:49]RAPDU: 1B 7E EA AA 87 F9 DC 53 90 00 [05:18:49]wFMCommunicate OK [05:18:49]SAM_PROTO_SignData done [05:18:49]FM_MakeSignedData done [05:18:49]CreateOFDProtocolMessage [05:18:49]wFMCommunicate request_size=4 [05:18:49]MH_SAM_APDU [05:18:49]CAPDU: 80 11 00 00 [05:18:49]Write to MH i2c: E2 08 00 46 8E 80 11 00 00 00 00 00 00 4E [05:18:49]Write i2c OK [05:18:49]MH_I2C_Read... [05:18:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:18:49]Read from MH i2c: E2 [05:18:49]MH_I2C_Read... [05:18:49]Read from MH i2c: E2 17 00 [05:18:49]MH_I2C_Read... [05:18:49]Read from MH i2c: E2 17 00 46 8E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 A1 [05:18:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [05:18:49]wFMCommunicate OK [05:18:49]CreateOFDProtocolMessage done [05:18:49]OFDSenderStorePacket 103586 [05:18:49]StoreOFDPacket docnum=103586 [05:18:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 77 FB 08 01 2B 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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 CE 9D 02 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 E0 12 13 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 12 13 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 2B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 89 06 02 00 00 00 07 04 06 00 D0 12 13 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 42 6A 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 A2 94 01 00 35 04 06 00 4E 09 3D 1D 4B FF 1B 7E EA AA 87 F9 DC 53 [05:18:49]CheckFolder [05:18:49]dirname=/storage/ofd_packets [05:18:49]CheckFolder done [05:18:49]ProducePacketName [05:18:49]name=ofd_packets/00103586 [05:18:49]NVStorageSaveData ofd_packets/00103586 [05:18:49]File name is /storage/ofd_packets/00103586 [05:18:49]Write 302 bytes [05:18:49]NVStorageSaveData done [05:18:49]OFDSenderStorePacket done [05:18:49]KKMCreateOFDPacket done [05:18:49]NVStorageSaveData kkm_last_timestamp [05:18:49]File name is /storage/kkm_last_timestamp [05:18:49]Write 4 bytes [05:18:49]NVStorageSaveData done [05:18:49]ExternCall_PrintAddStr [05:18:49]wPrintStart [05:18:49]Write to MH i2c: 01 00 00 47 8E D5 [05:18:49]Write i2c OK [05:18:49]MH_I2C_Read... [05:18:49]Read from MH i2c: 01 [05:18:49]MH_I2C_Read... [05:18:49]Read from MH i2c: 01 07 00 [05:18:49]MH_I2C_Read... [05:18:49]Read from MH i2c: 01 07 00 47 8E 00 00 00 00 00 FF 0F EA [05:18:49]RasterBufferAndPrint [05:18:49]line Счет N : (1)672805 [05:18:49]line ИНН: 02508201610067 [05:18:49]line Контрольно-Кассовый Чек [05:18:49]line ПРОДАЖА [05:18:49]line ТРК (МРК, ГНК) : 21 [05:18:49]line Товар: 2710194210 [05:18:49]line ДТ(л)-К-5 [05:18:49]line 171.470 * 72.90 [05:18:49]line = 12500.16 [05:18:49]line НДС 12% НСП 1% [05:18:49]line > о реализуемом товаре [05:18:49]line ОКРУГЛЕНИЕ: -0.16 [05:18:49]line ИТОГО: 12500.00 [05:18:49]line Внесено: 12500.00 [05:18:49]line СДАЧА: 0.00 [05:18:49]line НСП 1% : 110.62 [05:18:49]line НДС 12% : 1327.45 [05:18:49]line Наличными: 12500.00 [05:18:49]line Безнал.: 0.00 [05:18:49]line Место: АЗС № 120 "Партнер Нефть" [05:18:49]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [05:18:49]line СНО: Общий режим [05:18:49]line Чек 16 19.06.2024 05:18 [05:18:49]line Смена: 353 ФФД: 1.0 [05:18:49]line ЗНМ: 0300000164 [05:18:49]line РНМ: 0000000000092785 [05:18:49]line Версия ККМ: 001 [05:18:49]line ФМ: 0000000000875093 [05:18:49]line ФД: 103586 [05:18:49]line ФПД: 85801587002367 [05:18:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T051858&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103586&fm=85801587002367&tin=02508201610067®Number=0000000000092785&sum=1250000 [05:18:49]OFD Sender: Processing packet 103586 [packets to send 17, broken 16] [05:18:49]ProducePacketName [05:18:49]name=ofd_packets/00103586 [05:18:49]OFD Sender: To server: pG, [05:18:49]CommunicateWithHost lk.salyk.kg:30040 [05:18:49]ConnectInit lk.salyk.kg [05:18:49]written 0, free lines is 4095 [05:18:49]Connected sock=10 [05:18: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 39 33 10 01 00 00 77 FB 08 01 2B 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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 CE 9D 02 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 E0 12 13 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 12 13 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 2B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 89 06 02 00 00 00 07 04 06 00 D0 12 13 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 42 6A 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 A2 94 01 00 35 04 06 00 4E 09 3D 1D 4B FF 1B 7E EA AA 87 F9 DC 53 [05:18: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 39 33 4F 00 00 00 9A B2 47 00 13 D8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 A2 94 01 00 F4 03 04 00 CB 10 72 66 B6 04 01 00 00 08 43 8B 96 AB 10 C8 BA [05:18:49]CommunicateWithHost err = 0 [05:18:49]CheckOFDResponse [05:18:49]1017 (14) - 77093643461234 [05:18:49]1041 (16) - 0000000000875093 [05:18:49]1040 (4) - 103586 [05:18:49]1012 (4) - 18.06.2024 22:57 [05:18:49]1206 (1) - 0 [05:18:49]OFD Sender: Remove packet 103586 [05:18:49]ProducePacketName [05:18:49]name=ofd_packets/00103586 [05:18:49]NVStorageDeleteData [05:18:49]Write to MH i2c: 01 00 00 72 8E 00 [05:18:49]Write i2c OK [05:18:49]MH_I2C_Read... [05:18:49]Read from MH i2c: 01 [05:18:49]MH_I2C_Read... [05:18:49]Read from MH i2c: 01 07 00 [05:18:49]MH_I2C_Read... [05:18:49]Read from MH i2c: 01 07 00 72 8E 00 00 00 00 00 EF 0C 02 [05:18:49]RasterBufferAndPrint [05:18:49]line [05:18:49]line [05:18:49]line [05:18:49]line [05:18:49]line [05:18:49]written 0, free lines is 3320 [05:18:49]MH_Cut [05:18:49]Write to MH i2c: D1 01 00 79 8E 01 D9 [05:18:49]Write i2c OK [05:18:49]MH_I2C_Read... [05:18:49]Read from MH i2c: D1 [05:18:49]MH_I2C_Read... [05:18:49]Read from MH i2c: D1 01 00 [05:18:49]MH_I2C_Read... [05:18:49]Read from MH i2c: D1 01 00 79 8E 00 D8 [05:18:49]Write to MH i2c: 01 00 00 7A 8E 08 [05:18:49]Write i2c OK [05:18:49]MH_I2C_Read... [05:18:50]OFD Sender: No OFD packet to send [05:18:50]*** Cut start [05:18:50]*** Partial cut [05:18:50]*** CUTSNS_PIN = 1 [05:18:50]*** CUTSNS_PIN = 0 [05:18:50]*** Brake cut motor [05:18:51]Read from MH i2c: 01 [05:18:51]MH_I2C_Read... [05:18:51]*** Stop cut motor [05:18:51]*** Cut end [05:18:51]Read from MH i2c: 01 07 00 [05:18:51]MH_I2C_Read... [05:18:51]Read from MH i2c: 01 07 00 7A 8E 00 00 00 00 00 FF 0F 1D [05:18:51]process_action close_receipt done [05:18:51]requested_data is exist [05:18:51]produce_requested_data [05:18:51]requested_item fm.sn is exist - process it [05:18:51]wFMCommunicate request_size=4 [05:18:51]MH_SAM_APDU [05:18:51]CAPDU: 80 11 00 00 [05:18:51]Write to MH i2c: E2 08 00 7B 8E 80 11 00 00 00 00 00 00 83 [05:18:51]Write i2c OK [05:18:51]MH_I2C_Read... [05:18:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:18:51]Read from MH i2c: E2 [05:18:51]MH_I2C_Read... [05:18:51]Read from MH i2c: E2 17 00 [05:18:51]MH_I2C_Read... [05:18:51]Read from MH i2c: E2 17 00 7B 8E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 D6 [05:18:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [05:18:51]wFMCommunicate OK [05:18:51]requested_item fd.num is exist - process it [05:18:51]SAM_PROTO_GetFieldsCounters [05:18:51]wFMCommunicate request_size=4 [05:18:51]MH_SAM_APDU [05:18:51]CAPDU: 80 13 00 00 [05:18:51]Write to MH i2c: E2 08 00 7C 8E 80 13 00 00 00 00 00 00 86 [05:18:51]Write i2c OK [05:18:51]MH_I2C_Read... [05:18:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:18:51]Read from MH i2c: E2 [05:18:51]MH_I2C_Read... [05:18:51]Read from MH i2c: E2 62 00 [05:18:51]MH_I2C_Read... [05:18:51]Read from MH i2c: E2 62 00 7C 8E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 A2 94 01 00 0E 04 04 00 61 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 76 [05:18: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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 A2 94 01 00 0E 04 04 00 61 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 [05:18:51]wFMCommunicate OK [05:18:51]SAM_PROTO_GetFieldsCounters done [05:18:51]requested_item shift.num is exist - process it [05:18:51]requested_item shift.opened is exist - process it [05:18:51]req_shift_opened [05:18:51]FM_GetShiftState [05:18:51]SAM_PROTO_GetShiftState [05:18:51]wFMCommunicate request_size=4 [05:18:51]MH_SAM_APDU [05:18:51]CAPDU: 80 13 01 00 [05:18:51]Write to MH i2c: E2 08 00 7D 8E 80 13 01 00 00 00 00 00 88 [05:18:51]Write i2c OK [05:18:51]MH_I2C_Read... [05:18:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:18:51]Read from MH i2c: E2 [05:18:51]MH_I2C_Read... [05:18:51]Read from MH i2c: E2 0E 00 [05:18:51]MH_I2C_Read... [05:18:51]Read from MH i2c: E2 0E 00 7D 8E 00 09 00 01 04 26 72 66 00 00 00 00 90 00 96 [05:18:51]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [05:18:51]wFMCommunicate OK [05:18:51]SAM_PROTO_GetShiftState done [05:18:51]FM_GetShiftState done [05:18:51]req_shift_opened done [05:18:51]requested_item shift.open_date is exist - process it [05:18:51]req_shift_open_date [05:18:51]req_shift_open_date done [05:18:51]produce_requested_data done [05:18:51]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103586,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [05:18:51]process_action_free close_receipt [05:18:51]json_value_free [05:18:51]json_value_free done [05:18:51]process_json_proto returns [05:18:51]Send response to host [05:18:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103586,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [05:18:51]free response buf [05:18:51]execute_script done [05:18:51]execute_script returns [05:18:51]free content buf [05:18:51]Sock 9.Close socket [05:18:51]Sock 9.Thread stoped [05:18:55]OFD Sender: No OFD packet to send [05:19:00]OFD Sender: No OFD packet to send [05:19:05]OFD Sender: No OFD packet to send [05:19:10]OFD Sender: No OFD packet to send [05:19:15]OFD Sender: No OFD packet to send [05:19:20]OFD Sender: No OFD packet to send [05:19:25]OFD Sender: No OFD packet to send [05:19:30]OFD Sender: No OFD packet to send [05:19:35]OFD Sender: No OFD packet to send [05:19:40]OFD Sender: No OFD packet to send [05:19:45]OFD Sender: No OFD packet to send [05:19:50]OFD Sender: No OFD packet to send [05:19:55]OFD Sender: No OFD packet to send [05:20:00]OFD Sender: No OFD packet to send [05:20:05]OFD Sender: No OFD packet to send [05:20:10]OFD Sender: No OFD packet to send [05:20:15]OFD Sender: No OFD packet to send [05:20:20]OFD Sender: No OFD packet to send [05:20:25]OFD Sender: No OFD packet to send [05:20:30]OFD Sender: No OFD packet to send [05:20:35]OFD Sender: No OFD packet to send [05:20:40]OFD Sender: No OFD packet to send [05:20:45]OFD Sender: No OFD packet to send [05:20:50]OFD Sender: No OFD packet to send [05:20:55]OFD Sender: No OFD packet to send [05:21:00]OFD Sender: No OFD packet to send [05:21:05]OFD Sender: No OFD packet to send [05:21:10]OFD Sender: No OFD packet to send [05:21:15]OFD Sender: No OFD packet to send [05:21:20]OFD Sender: No OFD packet to send [05:21:25]OFD Sender: No OFD packet to send [05:21:30]OFD Sender: No OFD packet to send [05:21:35]OFD Sender: No OFD packet to send [05:21:40]OFD Sender: No OFD packet to send [05:21:45]OFD Sender: No OFD packet to send [05:21:50]OFD Sender: No OFD packet to send [05:21:55]OFD Sender: No OFD packet to send [05:22:00]OFD Sender: No OFD packet to send [05:22:05]OFD Sender: No OFD packet to send [05:22:10]OFD Sender: No OFD packet to send [05:22:15]OFD Sender: No OFD packet to send [05:22:20]OFD Sender: No OFD packet to send [05:22:25]OFD Sender: No OFD packet to send [05:22:30]OFD Sender: No OFD packet to send [05:22:35]OFD Sender: No OFD packet to send [05:22:40]OFD Sender: No OFD packet to send [05:22:45]OFD Sender: No OFD packet to send [05:22:50]OFD Sender: No OFD packet to send [05:22:55]OFD Sender: No OFD packet to send [05:23:00]OFD Sender: No OFD packet to send [05:23:05]OFD Sender: No OFD packet to send [05:23:10]OFD Sender: No OFD packet to send [05:23:15]OFD Sender: No OFD packet to send [05:23:20]OFD Sender: No OFD packet to send [05:23:25]OFD Sender: No OFD packet to send [05:23:30]OFD Sender: No OFD packet to send [05:23:35]OFD Sender: No OFD packet to send [05:23:40]OFD Sender: No OFD packet to send [05:23:45]OFD Sender: No OFD packet to send [05:23:50]OFD Sender: No OFD packet to send [05:23:55]OFD Sender: No OFD packet to send [05:24:00]OFD Sender: No OFD packet to send [05:24:05]OFD Sender: No OFD packet to send [05:24:10]OFD Sender: No OFD packet to send [05:24:15]OFD Sender: No OFD packet to send [05:24:20]OFD Sender: No OFD packet to send [05:24:25]OFD Sender: No OFD packet to send [05:24:30]OFD Sender: No OFD packet to send [05:24:35]OFD Sender: No OFD packet to send [05:24:40]OFD Sender: No OFD packet to send [05:24:45]OFD Sender: No OFD packet to send [05:24:50]OFD Sender: No OFD packet to send [05:24:55]OFD Sender: No OFD packet to send [05:25:00]OFD Sender: No OFD packet to send [05:25:05]OFD Sender: No OFD packet to send [05:25:10]OFD Sender: No OFD packet to send [05:25:15]OFD Sender: No OFD packet to send [05:25:20]OFD Sender: No OFD packet to send [05:25:25]OFD Sender: No OFD packet to send [05:25:30]OFD Sender: No OFD packet to send [05:25:35]OFD Sender: No OFD packet to send [05:25:40]OFD Sender: No OFD packet to send [05:25:45]OFD Sender: No OFD packet to send [05:25:50]OFD Sender: No OFD packet to send [05:25:55]OFD Sender: No OFD packet to send [05:26:00]OFD Sender: No OFD packet to send [05:26:05]OFD Sender: No OFD packet to send [05:26:10]OFD Sender: No OFD packet to send [05:26:15]OFD Sender: No OFD packet to send [05:26:20]OFD Sender: No OFD packet to send [05:26:25]OFD Sender: No OFD packet to send [05:26:30]OFD Sender: No OFD packet to send [05:26:35]OFD Sender: No OFD packet to send [05:26:40]OFD Sender: No OFD packet to send [05:26:45]OFD Sender: No OFD packet to send [05:26:50]OFD Sender: No OFD packet to send [05:26:55]OFD Sender: No OFD packet to send [05:27:00]OFD Sender: No OFD packet to send [05:27:05]OFD Sender: No OFD packet to send [05:27:10]OFD Sender: No OFD packet to send [05:27:15]OFD Sender: No OFD packet to send [05:27:20]OFD Sender: No OFD packet to send [05:27:25]OFD Sender: No OFD packet to send [05:27:26]accept exits with 7 [05:27:26]New connection [05:27:26]New thread 3067227492 created [05:27:26]Thread 3067084132 joined [05:27:26]Waiting for new connection... [05:27:26] Sock 7.Parse request [05:27:26]Sock 7.Check first char [05:27:26]Sock 7.First char is OK [05:27:26]request: POST /json_proto HTTP/1.0 [05:27:26]Method: POST [05:27:26]URL: /json_proto [05:27:26]Method is POST - this is cgi request [05:27:26]url: /json_proto [05:27:26]query_string will be loaded in cgi processing [05:27:26]execute_cgi json_proto POST (null) [05:27:26]execute_cgi path=json_proto method=POST [05:27:26]POST find Content-Length [05:27:26]Host: 172.17.38.133:8080 [05:27:26]Content-Length: 692 [05:27:26]Content-Type: application/json [05:27:26] [05:27:26]POST finish read [05:27:26]Found Content-Length = 692 [05:27:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672806", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 171.470, "sum" : 12500.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 12500.00, "total" : 12500.00, "payments": [ { "type": 0, "sum" : 12500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:27:26]execute_script... [05:27:26]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672806", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 171.470, "sum" : 12500.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 12500.00, "total" : 12500.00, "payments": [ { "type": 0, "sum" : 12500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:27:26]POST & json_proto [05:27:26]process_json_proto [05:27:26]json parsed OK: [05:27:26]protocol is kg_v1.0 [05:27:26]action value=close_receipt [05:27:26]process_action close_receipt [05:27:26]cmd_close_receipt [05:27:26]MH_GetDate [05:27:26]Write to MH i2c: F0 00 00 7E 8E FB [05:27:26]Write i2c OK [05:27:26]MH_I2C_Read... [05:27:26]Read from MH i2c: F0 [05:27:26]MH_I2C_Read... [05:27:26]Read from MH i2c: F0 09 00 [05:27:26]MH_I2C_Read... [05:27:26]Read from MH i2c: F0 09 00 7E 8E 00 48 6C 72 66 BD 8F 7C 64 BC [05:27:26]GetLastDocTimeStamp 1718774338 [05:27:26]current date 1718774856 [05:27:26]FM_GetShiftState [05:27:26]SAM_PROTO_GetShiftState [05:27:26]wFMCommunicate request_size=4 [05:27:26]MH_SAM_APDU [05:27:26]CAPDU: 80 13 01 00 [05:27:26]Write to MH i2c: E2 08 00 7F 8E 80 13 01 00 00 00 00 00 8A [05:27:26]Write i2c OK [05:27:26]MH_I2C_Read... [05:27:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:27:26]Read from MH i2c: E2 [05:27:26]MH_I2C_Read... [05:27:26]Read from MH i2c: E2 0E 00 [05:27:26]MH_I2C_Read... [05:27:26]Read from MH i2c: E2 0E 00 7F 8E 00 09 00 01 04 26 72 66 00 00 00 00 90 00 98 [05:27:26]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [05:27:26]wFMCommunicate OK [05:27:26]SAM_PROTO_GetShiftState done [05:27:26]FM_GetShiftState done [05:27:26]opened in 1718756868 [05:27:26]opened+sec_in_day 1718843268 [05:27:26]quantity*price = 1250016 [05:27:26]sum+1 = 1250017 [05:27:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 12500.00 Внесено: 12500.00 СДАЧА: 0.00 НСП 1% : 110.62 НДС 12% : 1327.45 Наличными: 12500.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 17 19.06.2024 05:27 Смена: 353 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103587 ФПД: 230954896892232 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T052736&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103587&fm=230954896892232&tin=02508201610067®Number=0000000000092785&sum=1250000 [05:27:27]StoreToDocumentArchive [05:27:27]shift 353 fd 103587 [05:27:27]save to /storage/0353/doc_00103587 [05:27:27]save last doc name /storage/0353/doc_00103587 to /storage/kkm_last_doc_name [05:27:27]save OK [05:27:27]Clear old archive folders... [05:27:27]ProcessDocumentItem done err = 0, tmpTLVsize=252 [05:27:27]tlvbuf is 01350640 [05:27:27]SAM_PROTO_ClearQueue [05:27:27]wFMCommunicate request_size=4 [05:27:27]MH_SAM_APDU [05:27:27]CAPDU: 80 09 00 00 [05:27:27]Write to MH i2c: E2 08 00 8C 8E 80 09 00 00 00 00 00 00 8C [05:27:27]Write i2c OK [05:27:27]MH_I2C_Read... [05:27:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:27:27]Read from MH i2c: E2 [05:27:27]MH_I2C_Read... [05:27:27]Read from MH i2c: E2 03 00 [05:27:27]MH_I2C_Read... [05:27:27]Read from MH i2c: E2 03 00 8C 8E 00 90 00 8E [05:27:27]RAPDU: 90 00 [05:27:27]wFMCommunicate OK [05:27:27]SAM_PROTO_ClearQueue done [05:27:27]KKMCreateOFDPacket [05:27:27]OFDProtocolAddRootSTLVToBuf [05:27:27]FM_MakeSignedData [05:27:27]FM_MakeSignedData [05:27:27]SAM_PROTO_SignData [05:27:27]wFMCommunicate request_size=4 [05:27:27]MH_SAM_APDU [05:27:27]CAPDU: 80 0D 01 02 [05:27:27]Write to MH i2c: E2 08 00 8D 8E 80 0D 01 02 00 00 00 00 94 [05:27:27]Write i2c OK [05:27:27]MH_I2C_Read... [05:27:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:27:27]Read from MH i2c: E2 [05:27:27]MH_I2C_Read... [05:27:27]Read from MH i2c: E2 03 00 [05:27:27]MH_I2C_Read... [05:27:27]Read from MH i2c: E2 03 00 8D 8E 00 90 00 8F [05:27:27]RAPDU: 90 00 [05:27:27]wFMCommunicate OK [05:27:27]wFMCommunicate request_size=255 [05:27:27]MH_SAM_APDU [05:27:27]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 CE 9D 02 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 E0 12 13 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 12 13 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 2B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 89 06 02 00 00 00 07 04 06 00 D0 12 13 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 48 6C 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 A3 94 01 00 35 04 06 00 [05:27:27]Write to MH i2c: E2 02 01 8E 8E 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 CE 9D 02 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 E0 12 13 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 12 13 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 2B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 89 06 02 00 00 00 07 04 06 00 D0 12 13 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 48 6C 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 A3 94 01 00 35 04 06 00 00 00 FA [05:27:27]Write i2c OK [05:27:27]MH_I2C_Read... [05:27:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:27:27]Read from MH i2c: E2 [05:27:27]MH_I2C_Read... [05:27:27]Read from MH i2c: E2 03 00 [05:27:27]MH_I2C_Read... [05:27:27]Read from MH i2c: E2 03 00 8E 8E 00 90 00 90 [05:27:27]RAPDU: 90 00 [05:27:27]wFMCommunicate OK [05:27:27]wFMCommunicate request_size=11 [05:27:27]MH_SAM_APDU [05:27:27]CAPDU: 80 0D 02 02 06 D2 0D 60 96 A1 48 [05:27:27]Write to MH i2c: E2 0E 00 8F 8E 80 0D 02 02 06 00 D2 0D 60 96 A1 48 00 00 61 [05:27:27]Write i2c OK [05:27:27]MH_I2C_Read... [05:27:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:27:27]Read from MH i2c: E2 [05:27:27]MH_I2C_Read... [05:27:27]Read from MH i2c: E2 03 00 [05:27:27]MH_I2C_Read... [05:27:27]Read from MH i2c: E2 03 00 8F 8E 00 90 00 91 [05:27:27]RAPDU: 90 00 [05:27:27]wFMCommunicate OK [05:27:27]wFMCommunicate request_size=4 [05:27:27]MH_SAM_APDU [05:27:27]CAPDU: 80 0D 03 02 [05:27:27]Write to MH i2c: E2 08 00 90 8E 80 0D 03 02 00 00 00 00 99 [05:27:27]Write i2c OK [05:27:27]MH_I2C_Read... [05:27:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:27:27]Read from MH i2c: E2 [05:27:27]MH_I2C_Read... [05:27:27]Read from MH i2c: E2 0B 00 [05:27:27]MH_I2C_Read... [05:27:27]Read from MH i2c: E2 0B 00 90 8E 00 CD 14 5B F7 D9 88 53 6E 90 00 EF [05:27:27]RAPDU: CD 14 5B F7 D9 88 53 6E 90 00 [05:27:27]wFMCommunicate OK [05:27:27]SAM_PROTO_SignData done [05:27:27]FM_MakeSignedData done [05:27:27]CreateOFDProtocolMessage [05:27:27]wFMCommunicate request_size=4 [05:27:27]MH_SAM_APDU [05:27:27]CAPDU: 80 11 00 00 [05:27:27]Write to MH i2c: E2 08 00 91 8E 80 11 00 00 00 00 00 00 99 [05:27:27]Write i2c OK [05:27:27]MH_I2C_Read... [05:27:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:27:27]Read from MH i2c: E2 [05:27:27]MH_I2C_Read... [05:27:27]Read from MH i2c: E2 17 00 [05:27:27]MH_I2C_Read... [05:27:27]Read from MH i2c: E2 17 00 91 8E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 EC [05:27:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [05:27:27]wFMCommunicate OK [05:27:27]CreateOFDProtocolMessage done [05:27:27]OFDSenderStorePacket 103587 [05:27:27]StoreOFDPacket docnum=103587 [05:27:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 81 5B 08 01 E9 EA 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 CE 9D 02 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 E0 12 13 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 12 13 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 2B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 89 06 02 00 00 00 07 04 06 00 D0 12 13 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 48 6C 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 A3 94 01 00 35 04 06 00 D2 0D 60 96 A1 48 CD 14 5B F7 D9 88 53 6E [05:27:27]CheckFolder [05:27:27]dirname=/storage/ofd_packets [05:27:27]CheckFolder done [05:27:27]ProducePacketName [05:27:27]name=ofd_packets/00103587 [05:27:27]NVStorageSaveData ofd_packets/00103587 [05:27:27]File name is /storage/ofd_packets/00103587 [05:27:27]Write 302 bytes [05:27:27]NVStorageSaveData done [05:27:27]OFDSenderStorePacket done [05:27:27]KKMCreateOFDPacket done [05:27:27]NVStorageSaveData kkm_last_timestamp [05:27:27]File name is /storage/kkm_last_timestamp [05:27:27]Write 4 bytes [05:27:27]NVStorageSaveData done [05:27:27]ExternCall_PrintAddStr [05:27:27]wPrintStart [05:27:27]Write to MH i2c: 01 00 00 92 8E 20 [05:27:27]Write i2c OK [05:27:27]MH_I2C_Read... [05:27:27]Read from MH i2c: 01 [05:27:27]MH_I2C_Read... [05:27:27]Read from MH i2c: 01 07 00 [05:27:27]MH_I2C_Read... [05:27:27]Read from MH i2c: 01 07 00 92 8E 00 00 00 00 00 FF 0F 35 [05:27:27]RasterBufferAndPrint [05:27:27]line Счет N : (1)672806 [05:27:27]line ИНН: 02508201610067 [05:27:27]line Контрольно-Кассовый Чек [05:27:27]line ПРОДАЖА [05:27:27]line ТРК (МРК, ГНК) : 21 [05:27:27]line Товар: 2710194210 [05:27:27]line ДТ(л)-К-5 [05:27:27]line 171.470 * 72.90 [05:27:27]line = 12500.16 [05:27:27]line НДС 12% НСП 1% [05:27:27]line > о реализуемом товаре [05:27:27]line ОКРУГЛЕНИЕ: -0.16 [05:27:27]line ИТОГО: 12500.00 [05:27:27]line Внесено: 12500.00 [05:27:27]line СДАЧА: 0.00 [05:27:27]line НСП 1% : 110.62 [05:27:27]line НДС 12% : 1327.45 [05:27:27]line Наличными: 12500.00 [05:27:27]line Безнал.: 0.00 [05:27:27]line Место: АЗС № 120 "Партнер Нефть" [05:27:27]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [05:27:27]line СНО: Общий режим [05:27:27]line Чек 17 19.06.2024 05:27 [05:27:27]line Смена: 353 ФФД: 1.0 [05:27:27]line ЗНМ: 0300000164 [05:27:27]line РНМ: 0000000000092785 [05:27:27]line Версия ККМ: 001 [05:27:27]line ФМ: 0000000000875093 [05:27:27]line ФД: 103587 [05:27:27]line ФПД: 230954896892232 [05:27:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T052736&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103587&fm=230954896892232&tin=02508201610067®Number=0000000000092785&sum=1250000 [05:27:28]OFD Sender: Processing packet 103587 [packets to send 17, broken 16] [05:27:28]ProducePacketName [05:27:28]name=ofd_packets/00103587 [05:27:28]OFD Sender: To server: pG, [05:27:28]CommunicateWithHost lk.salyk.kg:30040 [05:27:28]ConnectInit lk.salyk.kg [05:27:28]written 0, free lines is 4095 [05:27:28]Connected sock=10 [05:27:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 81 5B 08 01 E9 EA 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 CE 9D 02 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 E0 12 13 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 12 13 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 2B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 89 06 02 00 00 00 07 04 06 00 D0 12 13 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 48 6C 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 A3 94 01 00 35 04 06 00 D2 0D 60 96 A1 48 CD 14 5B F7 D9 88 53 6E [05:27: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 39 33 4F 00 00 00 5C A3 47 00 11 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 39 33 10 04 04 00 A3 94 01 00 F4 03 04 00 D2 12 72 66 B6 04 01 00 00 E7 BF 18 42 96 44 3A 34 [05:27:28]CommunicateWithHost err = 0 [05:27:28]CheckOFDResponse [05:27:28]1017 (14) - 77093643461234 [05:27:28]1041 (16) - 0000000000875093 [05:27:28]1040 (4) - 103587 [05:27:28]1012 (4) - 18.06.2024 23:05 [05:27:28]1206 (1) - 0 [05:27:28]OFD Sender: Remove packet 103587 [05:27:28]ProducePacketName [05:27:28]name=ofd_packets/00103587 [05:27:28]NVStorageDeleteData [05:27:28]Write to MH i2c: 01 00 00 BD 8E 4B [05:27:28]Write i2c OK [05:27:28]MH_I2C_Read... [05:27:28]Read from MH i2c: 01 [05:27:28]MH_I2C_Read... [05:27:28]Read from MH i2c: 01 07 00 [05:27:28]MH_I2C_Read... [05:27:28]Read from MH i2c: 01 07 00 BD 8E 00 00 00 00 00 E9 0C 47 [05:27:28]RasterBufferAndPrint [05:27:28]line [05:27:28]line [05:27:28]line [05:27:28]line [05:27:28]line [05:27:28]written 0, free lines is 3312 [05:27:28]MH_Cut [05:27:28]Write to MH i2c: D1 01 00 C4 8E 01 24 [05:27:28]Write i2c OK [05:27:28]MH_I2C_Read... [05:27:28]Read from MH i2c: D1 [05:27:28]MH_I2C_Read... [05:27:28]Read from MH i2c: D1 01 00 [05:27:28]MH_I2C_Read... [05:27:28]Read from MH i2c: D1 01 00 C4 8E 00 23 [05:27:28]Write to MH i2c: 01 00 00 C5 8E 53 [05:27:28]Write i2c OK [05:27:28]MH_I2C_Read... [05:27:29]OFD Sender: No OFD packet to send [05:27:29]*** Cut start [05:27:29]*** Partial cut [05:27:29]*** CUTSNS_PIN = 1 [05:27:29]*** CUTSNS_PIN = 0 [05:27:29]*** Brake cut motor [05:27:30]Read from MH i2c: 01 [05:27:30]MH_I2C_Read... [05:27:30]*** Stop cut motor [05:27:30]*** Cut end [05:27:30]Read from MH i2c: 01 07 00 [05:27:30]MH_I2C_Read... [05:27:30]Read from MH i2c: 01 07 00 C5 8E 00 00 00 00 00 FF 0F 68 [05:27:30]process_action close_receipt done [05:27:30]requested_data is exist [05:27:30]produce_requested_data [05:27:30]requested_item fm.sn is exist - process it [05:27:30]wFMCommunicate request_size=4 [05:27:30]MH_SAM_APDU [05:27:30]CAPDU: 80 11 00 00 [05:27:30]Write to MH i2c: E2 08 00 C6 8E 80 11 00 00 00 00 00 00 CE [05:27:30]Write i2c OK [05:27:30]MH_I2C_Read... [05:27:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:27:30]Read from MH i2c: E2 [05:27:30]MH_I2C_Read... [05:27:30]Read from MH i2c: E2 17 00 [05:27:30]MH_I2C_Read... [05:27:30]Read from MH i2c: E2 17 00 C6 8E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 21 [05:27:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [05:27:30]wFMCommunicate OK [05:27:30]requested_item fd.num is exist - process it [05:27:30]SAM_PROTO_GetFieldsCounters [05:27:30]wFMCommunicate request_size=4 [05:27:30]MH_SAM_APDU [05:27:30]CAPDU: 80 13 00 00 [05:27:30]Write to MH i2c: E2 08 00 C7 8E 80 13 00 00 00 00 00 00 D1 [05:27:30]Write i2c OK [05:27:30]MH_I2C_Read... [05:27:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:27:30]Read from MH i2c: E2 [05:27:30]MH_I2C_Read... [05:27:30]Read from MH i2c: E2 62 00 [05:27:30]MH_I2C_Read... [05:27:30]Read from MH i2c: E2 62 00 C7 8E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 A3 94 01 00 0E 04 04 00 61 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 C5 [05:27:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 A3 94 01 00 0E 04 04 00 61 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 [05:27:30]wFMCommunicate OK [05:27:30]SAM_PROTO_GetFieldsCounters done [05:27:30]requested_item shift.num is exist - process it [05:27:30]requested_item shift.opened is exist - process it [05:27:30]req_shift_opened [05:27:30]FM_GetShiftState [05:27:30]SAM_PROTO_GetShiftState [05:27:30]wFMCommunicate request_size=4 [05:27:30]MH_SAM_APDU [05:27:30]CAPDU: 80 13 01 00 [05:27:30]Write to MH i2c: E2 08 00 C8 8E 80 13 01 00 00 00 00 00 D3 [05:27:30]Write i2c OK [05:27:30]MH_I2C_Read... [05:27:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:27:30]Read from MH i2c: E2 [05:27:30]MH_I2C_Read... [05:27:30]Read from MH i2c: E2 0E 00 [05:27:30]MH_I2C_Read... [05:27:30]Read from MH i2c: E2 0E 00 C8 8E 00 09 00 01 04 26 72 66 00 00 00 00 90 00 E1 [05:27:30]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [05:27:30]wFMCommunicate OK [05:27:30]SAM_PROTO_GetShiftState done [05:27:30]FM_GetShiftState done [05:27:30]req_shift_opened done [05:27:30]requested_item shift.open_date is exist - process it [05:27:30]req_shift_open_date [05:27:30]req_shift_open_date done [05:27:30]produce_requested_data done [05:27:30]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103587,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [05:27:30]process_action_free close_receipt [05:27:30]json_value_free [05:27:30]json_value_free done [05:27:30]process_json_proto returns [05:27:30]Send response to host [05:27:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103587,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [05:27:30]free response buf [05:27:30]execute_script done [05:27:30]execute_script returns [05:27:30]free content buf [05:27:30]Sock 7.Close socket [05:27:30]Sock 7.Thread stoped [05:27:34]OFD Sender: No OFD packet to send [05:27:39]OFD Sender: No OFD packet to send [05:27:44]OFD Sender: No OFD packet to send [05:27:49]OFD Sender: No OFD packet to send [05:27:54]OFD Sender: No OFD packet to send [05:27:59]OFD Sender: No OFD packet to send [05:28:04]OFD Sender: No OFD packet to send [05:28:09]OFD Sender: No OFD packet to send [05:28:14]OFD Sender: No OFD packet to send [05:28:19]OFD Sender: No OFD packet to send [05:28:24]OFD Sender: No OFD packet to send [05:28:29]OFD Sender: No OFD packet to send [05:28:34]OFD Sender: No OFD packet to send [05:28:39]OFD Sender: No OFD packet to send [05:28:44]OFD Sender: No OFD packet to send [05:28:49]OFD Sender: No OFD packet to send [05:28:54]OFD Sender: No OFD packet to send [05:28:59]OFD Sender: No OFD packet to send [05:29:04]OFD Sender: No OFD packet to send [05:29:09]OFD Sender: No OFD packet to send [05:29:14]OFD Sender: No OFD packet to send [05:29:19]OFD Sender: No OFD packet to send [05:29:24]OFD Sender: No OFD packet to send [05:29:29]OFD Sender: No OFD packet to send [05:29:34]OFD Sender: No OFD packet to send [05:29:39]OFD Sender: No OFD packet to send [05:29:44]OFD Sender: No OFD packet to send [05:29:49]OFD Sender: No OFD packet to send [05:29:54]OFD Sender: No OFD packet to send [05:29:59]OFD Sender: No OFD packet to send [05:30:04]OFD Sender: No OFD packet to send [05:30:09]OFD Sender: No OFD packet to send [05:30:14]OFD Sender: No OFD packet to send [05:30:19]OFD Sender: No OFD packet to send [05:30:24]OFD Sender: No OFD packet to send [05:30:29]OFD Sender: No OFD packet to send [05:30:34]OFD Sender: No OFD packet to send [05:30:39]OFD Sender: No OFD packet to send [05:30:44]OFD Sender: No OFD packet to send [05:30:49]OFD Sender: No OFD packet to send [05:30:54]OFD Sender: No OFD packet to send [05:30:59]OFD Sender: No OFD packet to send [05:31:04]OFD Sender: No OFD packet to send [05:31:09]OFD Sender: No OFD packet to send [05:31:14]OFD Sender: No OFD packet to send [05:31:19]OFD Sender: No OFD packet to send [05:31:24]OFD Sender: No OFD packet to send [05:31:29]OFD Sender: No OFD packet to send [05:31:34]OFD Sender: No OFD packet to send [05:31:39]OFD Sender: No OFD packet to send [05:31:44]OFD Sender: No OFD packet to send [05:31:49]OFD Sender: No OFD packet to send [05:31:54]OFD Sender: No OFD packet to send [05:31:59]OFD Sender: No OFD packet to send [05:32:04]OFD Sender: No OFD packet to send [05:32:09]OFD Sender: No OFD packet to send [05:32:14]OFD Sender: No OFD packet to send [05:32:19]OFD Sender: No OFD packet to send [05:32:24]OFD Sender: No OFD packet to send [05:32:29]OFD Sender: No OFD packet to send [05:32:34]OFD Sender: No OFD packet to send [05:32:39]OFD Sender: No OFD packet to send [05:32:44]OFD Sender: No OFD packet to send [05:32:49]OFD Sender: No OFD packet to send [05:32:54]OFD Sender: No OFD packet to send [05:32:59]OFD Sender: No OFD packet to send [05:33:04]OFD Sender: No OFD packet to send [05:33:09]OFD Sender: No OFD packet to send [05:33:14]OFD Sender: No OFD packet to send [05:33:19]OFD Sender: No OFD packet to send [05:33:24]OFD Sender: No OFD packet to send [05:33:29]OFD Sender: No OFD packet to send [05:33:34]OFD Sender: No OFD packet to send [05:33:39]OFD Sender: No OFD packet to send [05:33:44]OFD Sender: No OFD packet to send [05:33:49]OFD Sender: No OFD packet to send [05:33:54]OFD Sender: No OFD packet to send [05:33:59]OFD Sender: No OFD packet to send [05:34:04]OFD Sender: No OFD packet to send [05:34:09]OFD Sender: No OFD packet to send [05:34:14]OFD Sender: No OFD packet to send [05:34:19]OFD Sender: No OFD packet to send [05:34:24]OFD Sender: No OFD packet to send [05:34:29]OFD Sender: No OFD packet to send [05:34:34]OFD Sender: No OFD packet to send [05:34:39]OFD Sender: No OFD packet to send [05:34:44]OFD Sender: No OFD packet to send [05:34:49]OFD Sender: No OFD packet to send [05:34:54]OFD Sender: No OFD packet to send [05:34:59]OFD Sender: No OFD packet to send [05:35:04]OFD Sender: No OFD packet to send [05:35:09]OFD Sender: No OFD packet to send [05:35:14]OFD Sender: No OFD packet to send [05:35:19]OFD Sender: No OFD packet to send [05:35:24]OFD Sender: No OFD packet to send [05:35:29]OFD Sender: No OFD packet to send [05:35:34]OFD Sender: No OFD packet to send [05:35:39]OFD Sender: No OFD packet to send [05:35:44]OFD Sender: No OFD packet to send [05:35:49]OFD Sender: No OFD packet to send [05:35:54]OFD Sender: No OFD packet to send [05:35:59]OFD Sender: No OFD packet to send [05:36:04]OFD Sender: No OFD packet to send [05:36:09]OFD Sender: No OFD packet to send [05:36:14]OFD Sender: No OFD packet to send [05:36:19]OFD Sender: No OFD packet to send [05:36:24]OFD Sender: No OFD packet to send [05:36:29]OFD Sender: No OFD packet to send [05:36:34]OFD Sender: No OFD packet to send [05:36:39]OFD Sender: No OFD packet to send [05:36:44]OFD Sender: No OFD packet to send [05:36:49]OFD Sender: No OFD packet to send [05:36:54]OFD Sender: No OFD packet to send [05:36:59]OFD Sender: No OFD packet to send [05:37:04]OFD Sender: No OFD packet to send [05:37:09]OFD Sender: No OFD packet to send [05:37:14]OFD Sender: No OFD packet to send [05:37:19]OFD Sender: No OFD packet to send [05:37:24]OFD Sender: No OFD packet to send [05:37:29]OFD Sender: No OFD packet to send [05:37:34]OFD Sender: No OFD packet to send [05:37:39]OFD Sender: No OFD packet to send [05:37:44]OFD Sender: No OFD packet to send [05:37:49]OFD Sender: No OFD packet to send [05:37:54]OFD Sender: No OFD packet to send [05:37:59]OFD Sender: No OFD packet to send [05:38:04]OFD Sender: No OFD packet to send [05:38:09]OFD Sender: No OFD packet to send [05:38:14]OFD Sender: No OFD packet to send [05:38:19]OFD Sender: No OFD packet to send [05:38:24]OFD Sender: No OFD packet to send [05:38:29]OFD Sender: No OFD packet to send [05:38:34]OFD Sender: No OFD packet to send [05:38:39]OFD Sender: No OFD packet to send [05:38:44]OFD Sender: No OFD packet to send [05:38:49]OFD Sender: No OFD packet to send [05:38:54]OFD Sender: No OFD packet to send [05:38:59]OFD Sender: No OFD packet to send [05:39:04]OFD Sender: No OFD packet to send [05:39:09]OFD Sender: No OFD packet to send [05:39:14]OFD Sender: No OFD packet to send [05:39:19]OFD Sender: No OFD packet to send [05:39:24]OFD Sender: No OFD packet to send [05:39:29]OFD Sender: No OFD packet to send [05:39:34]OFD Sender: No OFD packet to send [05:39:39]OFD Sender: No OFD packet to send [05:39:44]OFD Sender: No OFD packet to send [05:39:49]OFD Sender: No OFD packet to send [05:39:54]OFD Sender: No OFD packet to send [05:39:59]OFD Sender: No OFD packet to send [05:40:04]OFD Sender: No OFD packet to send [05:40:09]OFD Sender: No OFD packet to send [05:40:14]OFD Sender: No OFD packet to send [05:40:19]OFD Sender: No OFD packet to send [05:40:24]OFD Sender: No OFD packet to send [05:40:29]OFD Sender: No OFD packet to send [05:40:34]OFD Sender: No OFD packet to send [05:40:39]OFD Sender: No OFD packet to send [05:40:44]OFD Sender: No OFD packet to send [05:40:49]OFD Sender: No OFD packet to send [05:40:54]OFD Sender: No OFD packet to send [05:40:59]OFD Sender: No OFD packet to send [05:41:04]OFD Sender: No OFD packet to send [05:41:09]OFD Sender: No OFD packet to send [05:41:14]OFD Sender: No OFD packet to send [05:41:19]OFD Sender: No OFD packet to send [05:41:24]OFD Sender: No OFD packet to send [05:41:29]OFD Sender: No OFD packet to send [05:41:34]OFD Sender: No OFD packet to send [05:41:39]OFD Sender: No OFD packet to send [05:41:44]OFD Sender: No OFD packet to send [05:41:49]OFD Sender: No OFD packet to send [05:41:54]OFD Sender: No OFD packet to send [05:41:59]OFD Sender: No OFD packet to send [05:42:04]OFD Sender: No OFD packet to send [05:42:09]OFD Sender: No OFD packet to send [05:42:14]OFD Sender: No OFD packet to send [05:42:19]OFD Sender: No OFD packet to send [05:42:24]OFD Sender: No OFD packet to send [05:42:29]OFD Sender: No OFD packet to send [05:42:34]OFD Sender: No OFD packet to send [05:42:39]OFD Sender: No OFD packet to send [05:42:44]OFD Sender: No OFD packet to send [05:42:49]OFD Sender: No OFD packet to send [05:42:54]OFD Sender: No OFD packet to send [05:42:59]OFD Sender: No OFD packet to send [05:43:04]OFD Sender: No OFD packet to send [05:43:09]OFD Sender: No OFD packet to send [05:43:14]OFD Sender: No OFD packet to send [05:43:19]OFD Sender: No OFD packet to send [05:43:24]OFD Sender: No OFD packet to send [05:43:29]OFD Sender: No OFD packet to send [05:43:34]OFD Sender: No OFD packet to send [05:43:39]OFD Sender: No OFD packet to send [05:43:44]OFD Sender: No OFD packet to send [05:43:49]OFD Sender: No OFD packet to send [05:43:54]OFD Sender: No OFD packet to send [05:43:59]OFD Sender: No OFD packet to send [05:44:04]OFD Sender: No OFD packet to send [05:44:09]OFD Sender: No OFD packet to send [05:44:14]OFD Sender: No OFD packet to send [05:44:19]OFD Sender: No OFD packet to send [05:44:24]OFD Sender: No OFD packet to send [05:44:29]OFD Sender: No OFD packet to send [05:44:34]OFD Sender: No OFD packet to send [05:44:39]OFD Sender: No OFD packet to send [05:44:44]OFD Sender: No OFD packet to send [05:44:49]OFD Sender: No OFD packet to send [05:44:54]OFD Sender: No OFD packet to send [05:45:00]OFD Sender: No OFD packet to send [05:45:05]OFD Sender: No OFD packet to send [05:45:10]OFD Sender: No OFD packet to send [05:45:15]OFD Sender: No OFD packet to send [05:45:20]OFD Sender: No OFD packet to send [05:45:25]OFD Sender: No OFD packet to send [05:45:30]OFD Sender: No OFD packet to send [05:45:35]OFD Sender: No OFD packet to send [05:45:40]OFD Sender: No OFD packet to send [05:45:45]OFD Sender: No OFD packet to send [05:45:50]OFD Sender: No OFD packet to send [05:45:55]OFD Sender: No OFD packet to send [05:46:00]OFD Sender: No OFD packet to send [05:46:05]OFD Sender: No OFD packet to send [05:46:10]OFD Sender: No OFD packet to send [05:46:15]OFD Sender: No OFD packet to send [05:46:20]OFD Sender: No OFD packet to send [05:46:25]OFD Sender: No OFD packet to send [05:46:30]OFD Sender: No OFD packet to send [05:46:35]OFD Sender: No OFD packet to send [05:46:40]OFD Sender: No OFD packet to send [05:46:45]OFD Sender: No OFD packet to send [05:46:50]OFD Sender: No OFD packet to send [05:46:55]OFD Sender: No OFD packet to send [05:47:00]OFD Sender: No OFD packet to send [05:47:05]OFD Sender: No OFD packet to send [05:47:10]OFD Sender: No OFD packet to send [05:47:15]OFD Sender: No OFD packet to send [05:47:20]OFD Sender: No OFD packet to send [05:47:25]OFD Sender: No OFD packet to send [05:47:30]OFD Sender: No OFD packet to send [05:47:35]OFD Sender: No OFD packet to send [05:47:40]OFD Sender: No OFD packet to send [05:47:45]OFD Sender: No OFD packet to send [05:47:50]OFD Sender: No OFD packet to send [05:47:55]OFD Sender: No OFD packet to send [05:48:00]OFD Sender: No OFD packet to send [05:48:05]OFD Sender: No OFD packet to send [05:48:10]OFD Sender: No OFD packet to send [05:48:15]OFD Sender: No OFD packet to send [05:48:20]OFD Sender: No OFD packet to send [05:48:25]OFD Sender: No OFD packet to send [05:48:30]OFD Sender: No OFD packet to send [05:48:35]OFD Sender: No OFD packet to send [05:48:40]OFD Sender: No OFD packet to send [05:48:45]OFD Sender: No OFD packet to send [05:48:50]OFD Sender: No OFD packet to send [05:48:55]OFD Sender: No OFD packet to send [05:49:00]OFD Sender: No OFD packet to send [05:49:05]OFD Sender: No OFD packet to send [05:49:10]OFD Sender: No OFD packet to send [05:49:15]OFD Sender: No OFD packet to send [05:49:20]OFD Sender: No OFD packet to send [05:49:25]OFD Sender: No OFD packet to send [05:49:30]OFD Sender: No OFD packet to send [05:49:35]OFD Sender: No OFD packet to send [05:49:40]OFD Sender: No OFD packet to send [05:49:45]OFD Sender: No OFD packet to send [05:49:50]OFD Sender: No OFD packet to send [05:49:55]OFD Sender: No OFD packet to send [05:50:00]OFD Sender: No OFD packet to send [05:50:05]OFD Sender: No OFD packet to send [05:50:10]OFD Sender: No OFD packet to send [05:50:15]OFD Sender: No OFD packet to send [05:50:20]OFD Sender: No OFD packet to send [05:50:25]OFD Sender: No OFD packet to send [05:50:30]OFD Sender: No OFD packet to send [05:50:35]OFD Sender: No OFD packet to send [05:50:40]OFD Sender: No OFD packet to send [05:50:45]OFD Sender: No OFD packet to send [05:50:50]OFD Sender: No OFD packet to send [05:50:55]OFD Sender: No OFD packet to send [05:51:00]OFD Sender: No OFD packet to send [05:51:05]OFD Sender: No OFD packet to send [05:51:10]OFD Sender: No OFD packet to send [05:51:15]OFD Sender: No OFD packet to send [05:51:20]OFD Sender: No OFD packet to send [05:51:25]OFD Sender: No OFD packet to send [05:51:30]OFD Sender: No OFD packet to send [05:51:35]OFD Sender: No OFD packet to send [05:51:40]OFD Sender: No OFD packet to send [05:51:45]OFD Sender: No OFD packet to send [05:51:50]OFD Sender: No OFD packet to send [05:51:55]OFD Sender: No OFD packet to send [05:52:00]OFD Sender: No OFD packet to send [05:52:05]OFD Sender: No OFD packet to send [05:52:10]OFD Sender: No OFD packet to send [05:52:15]OFD Sender: No OFD packet to send [05:52:20]OFD Sender: No OFD packet to send [05:52:25]OFD Sender: No OFD packet to send [05:52:30]OFD Sender: No OFD packet to send [05:52:35]OFD Sender: No OFD packet to send [05:52:40]OFD Sender: No OFD packet to send [05:52:45]OFD Sender: No OFD packet to send [05:52:50]OFD Sender: No OFD packet to send [05:52:55]OFD Sender: No OFD packet to send [05:53:00]OFD Sender: No OFD packet to send [05:53:05]OFD Sender: No OFD packet to send [05:53:10]OFD Sender: No OFD packet to send [05:53:15]OFD Sender: No OFD packet to send [05:53:20]OFD Sender: No OFD packet to send [05:53:25]OFD Sender: No OFD packet to send [05:53:30]OFD Sender: No OFD packet to send [05:53:35]OFD Sender: No OFD packet to send [05:53:40]OFD Sender: No OFD packet to send [05:53:45]OFD Sender: No OFD packet to send [05:53:50]OFD Sender: No OFD packet to send [05:53:55]OFD Sender: No OFD packet to send [05:54:00]OFD Sender: No OFD packet to send [05:54:05]OFD Sender: No OFD packet to send [05:54:10]OFD Sender: No OFD packet to send [05:54:15]OFD Sender: No OFD packet to send [05:54:20]OFD Sender: No OFD packet to send [05:54:25]OFD Sender: No OFD packet to send [05:54:30]OFD Sender: No OFD packet to send [05:54:35]OFD Sender: No OFD packet to send [05:54:40]OFD Sender: No OFD packet to send [05:54:45]OFD Sender: No OFD packet to send [05:54:50]OFD Sender: No OFD packet to send [05:54:55]OFD Sender: No OFD packet to send [05:55:00]OFD Sender: No OFD packet to send [05:55:05]OFD Sender: No OFD packet to send [05:55:10]OFD Sender: No OFD packet to send [05:55:15]OFD Sender: No OFD packet to send [05:55:20]OFD Sender: No OFD packet to send [05:55:25]OFD Sender: No OFD packet to send [05:55:30]OFD Sender: No OFD packet to send [05:55:35]OFD Sender: No OFD packet to send [05:55:40]OFD Sender: No OFD packet to send [05:55:45]OFD Sender: No OFD packet to send [05:55:50]OFD Sender: No OFD packet to send [05:55:55]OFD Sender: No OFD packet to send [05:56:00]OFD Sender: No OFD packet to send [05:56:05]OFD Sender: No OFD packet to send [05:56:10]OFD Sender: No OFD packet to send [05:56:15]OFD Sender: No OFD packet to send [05:56:20]OFD Sender: No OFD packet to send [05:56:25]OFD Sender: No OFD packet to send [05:56:30]OFD Sender: No OFD packet to send [05:56:35]OFD Sender: No OFD packet to send [05:56:40]OFD Sender: No OFD packet to send [05:56:45]OFD Sender: No OFD packet to send [05:56:50]OFD Sender: No OFD packet to send [05:56:55]OFD Sender: No OFD packet to send [05:57:00]OFD Sender: No OFD packet to send [05:57:05]OFD Sender: No OFD packet to send [05:57:10]OFD Sender: No OFD packet to send [05:57:15]OFD Sender: No OFD packet to send [05:57:20]OFD Sender: No OFD packet to send [05:57:25]OFD Sender: No OFD packet to send [05:57:30]OFD Sender: No OFD packet to send [05:57:35]OFD Sender: No OFD packet to send [05:57:40]OFD Sender: No OFD packet to send [05:57:45]OFD Sender: No OFD packet to send [05:57:50]OFD Sender: No OFD packet to send [05:57:55]OFD Sender: No OFD packet to send [05:58:00]OFD Sender: No OFD packet to send [05:58:05]OFD Sender: No OFD packet to send [05:58:10]OFD Sender: No OFD packet to send [05:58:15]OFD Sender: No OFD packet to send [05:58:20]OFD Sender: No OFD packet to send [05:58:25]OFD Sender: No OFD packet to send [05:58:30]OFD Sender: No OFD packet to send [05:58:35]OFD Sender: No OFD packet to send [05:58:40]OFD Sender: No OFD packet to send [05:58:45]OFD Sender: No OFD packet to send [05:58:50]OFD Sender: No OFD packet to send [05:58:55]OFD Sender: No OFD packet to send [05:59:00]OFD Sender: No OFD packet to send [05:59:05]OFD Sender: No OFD packet to send [05:59:10]OFD Sender: No OFD packet to send [05:59:15]OFD Sender: No OFD packet to send [05:59:20]OFD Sender: No OFD packet to send [05:59:25]OFD Sender: No OFD packet to send [05:59:30]OFD Sender: No OFD packet to send [05:59:35]OFD Sender: No OFD packet to send [05:59:40]OFD Sender: No OFD packet to send [05:59:45]OFD Sender: No OFD packet to send [05:59:50]OFD Sender: No OFD packet to send [05:59:55]OFD Sender: No OFD packet to send [06:00:00]OFD Sender: No OFD packet to send [06:00:05]OFD Sender: No OFD packet to send [06:00:10]OFD Sender: No OFD packet to send [06:00:15]OFD Sender: No OFD packet to send [06:00:20]OFD Sender: No OFD packet to send [06:00:25]OFD Sender: No OFD packet to send [06:00:30]OFD Sender: No OFD packet to send [06:00:35]OFD Sender: No OFD packet to send [06:00:40]OFD Sender: No OFD packet to send [06:00:45]OFD Sender: No OFD packet to send [06:00:50]OFD Sender: No OFD packet to send [06:00:55]OFD Sender: No OFD packet to send [06:01:00]OFD Sender: No OFD packet to send [06:01:05]OFD Sender: No OFD packet to send [06:01:10]OFD Sender: No OFD packet to send [06:01:15]OFD Sender: No OFD packet to send [06:01:20]OFD Sender: No OFD packet to send [06:01:25]OFD Sender: No OFD packet to send [06:01:30]OFD Sender: No OFD packet to send [06:01:35]OFD Sender: No OFD packet to send [06:01:40]OFD Sender: No OFD packet to send [06:01:45]OFD Sender: No OFD packet to send [06:01:50]OFD Sender: No OFD packet to send [06:01:55]OFD Sender: No OFD packet to send [06:02:00]OFD Sender: No OFD packet to send [06:02:05]OFD Sender: No OFD packet to send [06:02:10]OFD Sender: No OFD packet to send [06:02:15]OFD Sender: No OFD packet to send [06:02:20]OFD Sender: No OFD packet to send [06:02:25]OFD Sender: No OFD packet to send [06:02:30]OFD Sender: No OFD packet to send [06:02:35]OFD Sender: No OFD packet to send [06:02:40]OFD Sender: No OFD packet to send [06:02:45]OFD Sender: No OFD packet to send [06:02:50]OFD Sender: No OFD packet to send [06:02:55]OFD Sender: No OFD packet to send [06:03:00]OFD Sender: No OFD packet to send [06:03:05]OFD Sender: No OFD packet to send [06:03:10]OFD Sender: No OFD packet to send [06:03:15]OFD Sender: No OFD packet to send [06:03:20]OFD Sender: No OFD packet to send [06:03:25]OFD Sender: No OFD packet to send [06:03:30]OFD Sender: No OFD packet to send [06:03:35]OFD Sender: No OFD packet to send [06:03:40]OFD Sender: No OFD packet to send [06:03:45]OFD Sender: No OFD packet to send [06:03:50]OFD Sender: No OFD packet to send [06:03:55]OFD Sender: No OFD packet to send [06:04:00]OFD Sender: No OFD packet to send [06:04:05]OFD Sender: No OFD packet to send [06:04:10]OFD Sender: No OFD packet to send [06:04:15]OFD Sender: No OFD packet to send [06:04:20]OFD Sender: No OFD packet to send [06:04:25]OFD Sender: No OFD packet to send [06:04:30]OFD Sender: No OFD packet to send [06:04:35]OFD Sender: No OFD packet to send [06:04:40]OFD Sender: No OFD packet to send [06:04:45]OFD Sender: No OFD packet to send [06:04:50]OFD Sender: No OFD packet to send [06:04:55]OFD Sender: No OFD packet to send [06:05:00]OFD Sender: No OFD packet to send [06:05:05]OFD Sender: No OFD packet to send [06:05:10]OFD Sender: No OFD packet to send [06:05:15]OFD Sender: No OFD packet to send [06:05:20]OFD Sender: No OFD packet to send [06:05:25]OFD Sender: No OFD packet to send [06:05:31]OFD Sender: No OFD packet to send [06:05:36]OFD Sender: No OFD packet to send [06:05:41]OFD Sender: No OFD packet to send [06:05:46]OFD Sender: No OFD packet to send [06:05:51]OFD Sender: No OFD packet to send [06:05:56]OFD Sender: No OFD packet to send [06:06:01]OFD Sender: No OFD packet to send [06:06:06]OFD Sender: No OFD packet to send [06:06:11]OFD Sender: No OFD packet to send [06:06:16]OFD Sender: No OFD packet to send [06:06:21]OFD Sender: No OFD packet to send [06:06:26]OFD Sender: No OFD packet to send [06:06:31]OFD Sender: No OFD packet to send [06:06:36]OFD Sender: No OFD packet to send [06:06:41]OFD Sender: No OFD packet to send [06:06:46]OFD Sender: No OFD packet to send [06:06:51]OFD Sender: No OFD packet to send [06:06:56]OFD Sender: No OFD packet to send [06:07:01]OFD Sender: No OFD packet to send [06:07:06]OFD Sender: No OFD packet to send [06:07:11]OFD Sender: No OFD packet to send [06:07:16]OFD Sender: No OFD packet to send [06:07:21]OFD Sender: No OFD packet to send [06:07:26]OFD Sender: No OFD packet to send [06:07:31]OFD Sender: No OFD packet to send [06:07:36]OFD Sender: No OFD packet to send [06:07:41]OFD Sender: No OFD packet to send [06:07:46]OFD Sender: No OFD packet to send [06:07:51]OFD Sender: No OFD packet to send [06:07:56]OFD Sender: No OFD packet to send [06:08:01]OFD Sender: No OFD packet to send [06:08:06]OFD Sender: No OFD packet to send [06:08:11]OFD Sender: No OFD packet to send [06:08:16]OFD Sender: No OFD packet to send [06:08:21]OFD Sender: No OFD packet to send [06:08:26]OFD Sender: No OFD packet to send [06:08:31]OFD Sender: No OFD packet to send [06:08:36]OFD Sender: No OFD packet to send [06:08:41]OFD Sender: No OFD packet to send [06:08:46]OFD Sender: No OFD packet to send [06:08:51]OFD Sender: No OFD packet to send [06:08:56]OFD Sender: No OFD packet to send [06:09:01]OFD Sender: No OFD packet to send [06:09:06]OFD Sender: No OFD packet to send [06:09:11]OFD Sender: No OFD packet to send [06:09:16]OFD Sender: No OFD packet to send [06:09:21]OFD Sender: No OFD packet to send [06:09:26]OFD Sender: No OFD packet to send [06:09:31]OFD Sender: No OFD packet to send [06:09:36]OFD Sender: No OFD packet to send [06:09:41]OFD Sender: No OFD packet to send [06:09:46]OFD Sender: No OFD packet to send [06:09:51]OFD Sender: No OFD packet to send [06:09:56]OFD Sender: No OFD packet to send [06:10:01]OFD Sender: No OFD packet to send [06:10:06]OFD Sender: No OFD packet to send [06:10:11]OFD Sender: No OFD packet to send [06:10:16]OFD Sender: No OFD packet to send [06:10:21]OFD Sender: No OFD packet to send [06:10:26]OFD Sender: No OFD packet to send [06:10:31]OFD Sender: No OFD packet to send [06:10:36]OFD Sender: No OFD packet to send [06:10:41]OFD Sender: No OFD packet to send [06:10:46]OFD Sender: No OFD packet to send [06:10:51]OFD Sender: No OFD packet to send [06:10:56]OFD Sender: No OFD packet to send [06:11:01]OFD Sender: No OFD packet to send [06:11:06]OFD Sender: No OFD packet to send [06:11:11]OFD Sender: No OFD packet to send [06:11:16]OFD Sender: No OFD packet to send [06:11:21]OFD Sender: No OFD packet to send [06:11:26]OFD Sender: No OFD packet to send [06:11:31]OFD Sender: No OFD packet to send [06:11:36]OFD Sender: No OFD packet to send [06:11:41]OFD Sender: No OFD packet to send [06:11:46]OFD Sender: No OFD packet to send [06:11:51]OFD Sender: No OFD packet to send [06:11:56]OFD Sender: No OFD packet to send [06:12:01]OFD Sender: No OFD packet to send [06:12:06]OFD Sender: No OFD packet to send [06:12:11]OFD Sender: No OFD packet to send [06:12:16]OFD Sender: No OFD packet to send [06:12:21]OFD Sender: No OFD packet to send [06:12:26]OFD Sender: No OFD packet to send [06:12:31]OFD Sender: No OFD packet to send [06:12:36]OFD Sender: No OFD packet to send [06:12:41]OFD Sender: No OFD packet to send [06:12:46]OFD Sender: No OFD packet to send [06:12:51]OFD Sender: No OFD packet to send [06:12:56]OFD Sender: No OFD packet to send [06:13:01]OFD Sender: No OFD packet to send [06:13:06]OFD Sender: No OFD packet to send [06:13:11]OFD Sender: No OFD packet to send [06:13:16]OFD Sender: No OFD packet to send [06:13:21]OFD Sender: No OFD packet to send [06:13:26]OFD Sender: No OFD packet to send [06:13:31]OFD Sender: No OFD packet to send [06:13:36]OFD Sender: No OFD packet to send [06:13:41]OFD Sender: No OFD packet to send [06:13:46]OFD Sender: No OFD packet to send [06:13:51]OFD Sender: No OFD packet to send [06:13:56]OFD Sender: No OFD packet to send [06:14:01]OFD Sender: No OFD packet to send [06:14:06]OFD Sender: No OFD packet to send [06:14:11]OFD Sender: No OFD packet to send [06:14:16]OFD Sender: No OFD packet to send [06:14:21]OFD Sender: No OFD packet to send [06:14:26]OFD Sender: No OFD packet to send [06:14:31]OFD Sender: No OFD packet to send [06:14:36]OFD Sender: No OFD packet to send [06:14:41]OFD Sender: No OFD packet to send [06:14:46]OFD Sender: No OFD packet to send [06:14:51]OFD Sender: No OFD packet to send [06:14:56]OFD Sender: No OFD packet to send [06:15:01]OFD Sender: No OFD packet to send [06:15:06]OFD Sender: No OFD packet to send [06:15:11]OFD Sender: No OFD packet to send [06:15:16]OFD Sender: No OFD packet to send [06:15:21]OFD Sender: No OFD packet to send [06:15:26]OFD Sender: No OFD packet to send [06:15:31]OFD Sender: No OFD packet to send [06:15:36]OFD Sender: No OFD packet to send [06:15:41]OFD Sender: No OFD packet to send [06:15:46]OFD Sender: No OFD packet to send [06:15:51]OFD Sender: No OFD packet to send [06:15:56]OFD Sender: No OFD packet to send [06:16:01]OFD Sender: No OFD packet to send [06:16:06]OFD Sender: No OFD packet to send [06:16:11]OFD Sender: No OFD packet to send [06:16:16]OFD Sender: No OFD packet to send [06:16:21]OFD Sender: No OFD packet to send [06:16:26]OFD Sender: No OFD packet to send [06:16:31]OFD Sender: No OFD packet to send [06:16:36]OFD Sender: No OFD packet to send [06:16:41]OFD Sender: No OFD packet to send [06:16:46]OFD Sender: No OFD packet to send [06:16:51]OFD Sender: No OFD packet to send [06:16:56]OFD Sender: No OFD packet to send [06:17:01]OFD Sender: No OFD packet to send [06:17:06]OFD Sender: No OFD packet to send [06:17:11]OFD Sender: No OFD packet to send [06:17:16]OFD Sender: No OFD packet to send [06:17:21]OFD Sender: No OFD packet to send [06:17:26]OFD Sender: No OFD packet to send [06:17:31]OFD Sender: No OFD packet to send [06:17:36]OFD Sender: No OFD packet to send [06:17:41]OFD Sender: No OFD packet to send [06:17:46]OFD Sender: No OFD packet to send [06:17:51]OFD Sender: No OFD packet to send [06:17:56]OFD Sender: No OFD packet to send [06:18:01]OFD Sender: No OFD packet to send [06:18:06]OFD Sender: No OFD packet to send [06:18:11]OFD Sender: No OFD packet to send [06:18:16]OFD Sender: No OFD packet to send [06:18:21]OFD Sender: No OFD packet to send [06:18:26]OFD Sender: No OFD packet to send [06:18:31]OFD Sender: No OFD packet to send [06:18:36]OFD Sender: No OFD packet to send [06:18:41]OFD Sender: No OFD packet to send [06:18:46]OFD Sender: No OFD packet to send [06:18:51]OFD Sender: No OFD packet to send [06:18:56]OFD Sender: No OFD packet to send [06:19:01]OFD Sender: No OFD packet to send [06:19:06]OFD Sender: No OFD packet to send [06:19:11]OFD Sender: No OFD packet to send [06:19:16]OFD Sender: No OFD packet to send [06:19:21]OFD Sender: No OFD packet to send [06:19:26]OFD Sender: No OFD packet to send [06:19:31]OFD Sender: No OFD packet to send [06:19:36]OFD Sender: No OFD packet to send [06:19:41]OFD Sender: No OFD packet to send [06:19:46]OFD Sender: No OFD packet to send [06:19:51]OFD Sender: No OFD packet to send [06:19:56]OFD Sender: No OFD packet to send [06:20:01]OFD Sender: No OFD packet to send [06:20:06]OFD Sender: No OFD packet to send [06:20:11]OFD Sender: No OFD packet to send [06:20:16]OFD Sender: No OFD packet to send [06:20:21]OFD Sender: No OFD packet to send [06:20:26]OFD Sender: No OFD packet to send [06:20:31]OFD Sender: No OFD packet to send [06:20:36]OFD Sender: No OFD packet to send [06:20:41]OFD Sender: No OFD packet to send [06:20:46]OFD Sender: No OFD packet to send [06:20:51]OFD Sender: No OFD packet to send [06:20:56]OFD Sender: No OFD packet to send [06:21:01]OFD Sender: No OFD packet to send [06:21:06]OFD Sender: No OFD packet to send [06:21:11]OFD Sender: No OFD packet to send [06:21:16]OFD Sender: No OFD packet to send [06:21:21]OFD Sender: No OFD packet to send [06:21:26]OFD Sender: No OFD packet to send [06:21:31]OFD Sender: No OFD packet to send [06:21:36]OFD Sender: No OFD packet to send [06:21:41]OFD Sender: No OFD packet to send [06:21:46]OFD Sender: No OFD packet to send [06:21:51]OFD Sender: No OFD packet to send [06:21:56]OFD Sender: No OFD packet to send [06:22:01]OFD Sender: No OFD packet to send [06:22:06]OFD Sender: No OFD packet to send [06:22:11]OFD Sender: No OFD packet to send [06:22:16]OFD Sender: No OFD packet to send [06:22:21]OFD Sender: No OFD packet to send [06:22:26]OFD Sender: No OFD packet to send [06:22:31]OFD Sender: No OFD packet to send [06:22:36]OFD Sender: No OFD packet to send [06:22:41]OFD Sender: No OFD packet to send [06:22:46]OFD Sender: No OFD packet to send [06:22:51]OFD Sender: No OFD packet to send [06:22:56]OFD Sender: No OFD packet to send [06:23:01]OFD Sender: No OFD packet to send [06:23:06]OFD Sender: No OFD packet to send [06:23:11]OFD Sender: No OFD packet to send [06:23:16]OFD Sender: No OFD packet to send [06:23:21]OFD Sender: No OFD packet to send [06:23:26]OFD Sender: No OFD packet to send [06:23:31]OFD Sender: No OFD packet to send [06:23:36]OFD Sender: No OFD packet to send [06:23:41]OFD Sender: No OFD packet to send [06:23:46]OFD Sender: No OFD packet to send [06:23:51]OFD Sender: No OFD packet to send [06:23:56]OFD Sender: No OFD packet to send [06:24:01]OFD Sender: No OFD packet to send [06:24:06]OFD Sender: No OFD packet to send [06:24:11]OFD Sender: No OFD packet to send [06:24:16]OFD Sender: No OFD packet to send [06:24:21]OFD Sender: No OFD packet to send [06:24:26]OFD Sender: No OFD packet to send [06:24:31]OFD Sender: No OFD packet to send [06:24:36]OFD Sender: No OFD packet to send [06:24:41]OFD Sender: No OFD packet to send [06:24:46]OFD Sender: No OFD packet to send [06:24:51]OFD Sender: No OFD packet to send [06:24:56]OFD Sender: No OFD packet to send [06:25:01]OFD Sender: No OFD packet to send [06:25:06]OFD Sender: No OFD packet to send [06:25:11]OFD Sender: No OFD packet to send [06:25:16]OFD Sender: No OFD packet to send [06:25:21]OFD Sender: No OFD packet to send [06:25:26]OFD Sender: No OFD packet to send [06:25:31]OFD Sender: No OFD packet to send [06:25:36]OFD Sender: No OFD packet to send [06:25:41]OFD Sender: No OFD packet to send [06:25:46]OFD Sender: No OFD packet to send [06:25:51]OFD Sender: No OFD packet to send [06:25:56]OFD Sender: No OFD packet to send [06:26:02]OFD Sender: No OFD packet to send [06:26:07]OFD Sender: No OFD packet to send [06:26:12]OFD Sender: No OFD packet to send [06:26:17]OFD Sender: No OFD packet to send [06:26:22]OFD Sender: No OFD packet to send [06:26:27]OFD Sender: No OFD packet to send [06:26:32]OFD Sender: No OFD packet to send [06:26:37]OFD Sender: No OFD packet to send [06:26:42]OFD Sender: No OFD packet to send [06:26:47]OFD Sender: No OFD packet to send [06:26:52]OFD Sender: No OFD packet to send [06:26:57]OFD Sender: No OFD packet to send [06:27:02]OFD Sender: No OFD packet to send [06:27:07]OFD Sender: No OFD packet to send [06:27:12]OFD Sender: No OFD packet to send [06:27:17]OFD Sender: No OFD packet to send [06:27:22]OFD Sender: No OFD packet to send [06:27:27]OFD Sender: No OFD packet to send [06:27:32]OFD Sender: No OFD packet to send [06:27:37]OFD Sender: No OFD packet to send [06:27:42]OFD Sender: No OFD packet to send [06:27:47]OFD Sender: No OFD packet to send [06:27:52]OFD Sender: No OFD packet to send [06:27:57]OFD Sender: No OFD packet to send [06:28:02]OFD Sender: No OFD packet to send [06:28:07]OFD Sender: No OFD packet to send [06:28:12]OFD Sender: No OFD packet to send [06:28:17]OFD Sender: No OFD packet to send [06:28:22]OFD Sender: No OFD packet to send [06:28:27]OFD Sender: No OFD packet to send [06:28:32]OFD Sender: No OFD packet to send [06:28:37]OFD Sender: No OFD packet to send [06:28:42]OFD Sender: No OFD packet to send [06:28:47]OFD Sender: No OFD packet to send [06:28:52]OFD Sender: No OFD packet to send [06:28:57]OFD Sender: No OFD packet to send [06:29:02]OFD Sender: No OFD packet to send [06:29:07]OFD Sender: No OFD packet to send [06:29:12]OFD Sender: No OFD packet to send [06:29:17]OFD Sender: No OFD packet to send [06:29:22]OFD Sender: No OFD packet to send [06:29:27]OFD Sender: No OFD packet to send [06:29:32]OFD Sender: No OFD packet to send [06:29:37]OFD Sender: No OFD packet to send [06:29:42]OFD Sender: No OFD packet to send [06:29:47]OFD Sender: No OFD packet to send [06:29:52]OFD Sender: No OFD packet to send [06:29:57]OFD Sender: No OFD packet to send [06:30:02]OFD Sender: No OFD packet to send [06:30:07]OFD Sender: No OFD packet to send [06:30:12]OFD Sender: No OFD packet to send [06:30:17]OFD Sender: No OFD packet to send [06:30:22]OFD Sender: No OFD packet to send [06:30:27]OFD Sender: No OFD packet to send [06:30:32]OFD Sender: No OFD packet to send [06:30:37]OFD Sender: No OFD packet to send [06:30:42]OFD Sender: No OFD packet to send [06:30:47]OFD Sender: No OFD packet to send [06:30:52]OFD Sender: No OFD packet to send [06:30:57]OFD Sender: No OFD packet to send [06:31:02]OFD Sender: No OFD packet to send [06:31:07]OFD Sender: No OFD packet to send [06:31:12]OFD Sender: No OFD packet to send [06:31:17]OFD Sender: No OFD packet to send [06:31:22]OFD Sender: No OFD packet to send [06:31:27]OFD Sender: No OFD packet to send [06:31:32]OFD Sender: No OFD packet to send [06:31:37]OFD Sender: No OFD packet to send [06:31:42]OFD Sender: No OFD packet to send [06:31:47]OFD Sender: No OFD packet to send [06:31:52]OFD Sender: No OFD packet to send [06:31:57]OFD Sender: No OFD packet to send [06:32:02]OFD Sender: No OFD packet to send [06:32:07]OFD Sender: No OFD packet to send [06:32:12]OFD Sender: No OFD packet to send [06:32:17]OFD Sender: No OFD packet to send [06:32:22]OFD Sender: No OFD packet to send [06:32:27]OFD Sender: No OFD packet to send [06:32:32]OFD Sender: No OFD packet to send [06:32:37]OFD Sender: No OFD packet to send [06:32:42]OFD Sender: No OFD packet to send [06:32:47]OFD Sender: No OFD packet to send [06:32:52]OFD Sender: No OFD packet to send [06:32:57]OFD Sender: No OFD packet to send [06:33:02]OFD Sender: No OFD packet to send [06:33:07]OFD Sender: No OFD packet to send [06:33:12]OFD Sender: No OFD packet to send [06:33:17]OFD Sender: No OFD packet to send [06:33:22]OFD Sender: No OFD packet to send [06:33:27]OFD Sender: No OFD packet to send [06:33:32]OFD Sender: No OFD packet to send [06:33:37]OFD Sender: No OFD packet to send [06:33:42]OFD Sender: No OFD packet to send [06:33:47]OFD Sender: No OFD packet to send [06:33:52]OFD Sender: No OFD packet to send [06:33:57]OFD Sender: No OFD packet to send [06:34:02]OFD Sender: No OFD packet to send [06:34:07]OFD Sender: No OFD packet to send [06:34:10]accept exits with 9 [06:34:10]New connection [06:34:10]New thread 3067084132 created [06:34:10]Thread 3067227492 joined [06:34:10]Waiting for new connection... [06:34:10] Sock 9.Parse request [06:34:10]Sock 9.Check first char [06:34:10]Sock 9.First char is OK [06:34:10]request: POST /json_proto HTTP/1.0 [06:34:10]Method: POST [06:34:10]URL: /json_proto [06:34:10]Method is POST - this is cgi request [06:34:10]url: /json_proto [06:34:10]query_string will be loaded in cgi processing [06:34:10]execute_cgi json_proto POST (null) [06:34:10]execute_cgi path=json_proto method=POST [06:34:10]POST find Content-Length [06:34:10]Host: 172.17.38.133:8080 [06:34:10]Content-Length: 687 [06:34:10]Content-Type: application/json [06:34:10] [06:34:10]POST finish read [06:34:10]Found Content-Length = 687 [06:34:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672807", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 50.620, "sum" : 3690.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 4000.00, "total" : 3690.00, "payments": [ { "type": 0, "sum" : 3690.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:34:10]execute_script... [06:34: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)672807", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 50.620, "sum" : 3690.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 4000.00, "total" : 3690.00, "payments": [ { "type": 0, "sum" : 3690.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:34:10]POST & json_proto [06:34:10]process_json_proto [06:34:10]json parsed OK: [06:34:10]protocol is kg_v1.0 [06:34:10]action value=close_receipt [06:34:10]process_action close_receipt [06:34:10]cmd_close_receipt [06:34:10]MH_GetDate [06:34:10]Write to MH i2c: F0 00 00 C9 8E 46 [06:34:10]Write i2c OK [06:34:10]MH_I2C_Read... [06:34:10]Read from MH i2c: F0 [06:34:10]MH_I2C_Read... [06:34:10]Read from MH i2c: F0 09 00 [06:34:10]MH_I2C_Read... [06:34:10]Read from MH i2c: F0 09 00 C9 8E 00 ED 7B 72 66 BD 8F 7C 64 BB [06:34:10]GetLastDocTimeStamp 1718774856 [06:34:10]current date 1718778861 [06:34:10]FM_GetShiftState [06:34:10]SAM_PROTO_GetShiftState [06:34:10]wFMCommunicate request_size=4 [06:34:10]MH_SAM_APDU [06:34:10]CAPDU: 80 13 01 00 [06:34:10]Write to MH i2c: E2 08 00 CA 8E 80 13 01 00 00 00 00 00 D5 [06:34:10]Write i2c OK [06:34:10]MH_I2C_Read... [06:34:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:34:10]Read from MH i2c: E2 [06:34:10]MH_I2C_Read... [06:34:10]Read from MH i2c: E2 0E 00 [06:34:10]MH_I2C_Read... [06:34:10]Read from MH i2c: E2 0E 00 CA 8E 00 09 00 01 04 26 72 66 00 00 00 00 90 00 E3 [06:34:10]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [06:34:10]wFMCommunicate OK [06:34:10]SAM_PROTO_GetShiftState done [06:34:10]FM_GetShiftState done [06:34:10]opened in 1718756868 [06:34:10]opened+sec_in_day 1718843268 [06:34:10]quantity*price = 369019 [06:34:10]sum+1 = 369021 [06:34:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.20 ИТОГО: 3690.00 Внесено: 4000.00 СДАЧА: 310.00 НСП 1% : 32.66 НДС 12% : 391.88 Наличными: 3690.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 18 19.06.2024 06:34 Смена: 353 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103588 ФПД: 272534542952769 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T063421&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103588&fm=272534542952769&tin=02508201610067®Number=0000000000092785&sum=369000 [06:34:11]StoreToDocumentArchive [06:34:11]shift 353 fd 103588 [06:34:11]save to /storage/0353/doc_00103588 [06:34:11]save last doc name /storage/0353/doc_00103588 to /storage/kkm_last_doc_name [06:34:11]save OK [06:34:11]Clear old archive folders... [06:34:11]ProcessDocumentItem done err = 0, tmpTLVsize=252 [06:34:11]tlvbuf is 014E79B0 [06:34:11]SAM_PROTO_ClearQueue [06:34:11]wFMCommunicate request_size=4 [06:34:11]MH_SAM_APDU [06:34:11]CAPDU: 80 09 00 00 [06:34:11]Write to MH i2c: E2 08 00 D7 8E 80 09 00 00 00 00 00 00 D7 [06:34:11]Write i2c OK [06:34:11]MH_I2C_Read... [06:34:11]Read from MH i2c: E2 [06:34:11]MH_I2C_Read... [06:34:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:34:11]Read from MH i2c: E2 03 00 [06:34:11]MH_I2C_Read... [06:34:11]Read from MH i2c: E2 03 00 D7 8E 00 90 00 D9 [06:34:11]RAPDU: 90 00 [06:34:11]wFMCommunicate OK [06:34:11]SAM_PROTO_ClearQueue done [06:34:11]KKMCreateOFDPacket [06:34:11]OFDProtocolAddRootSTLVToBuf [06:34:11]FM_MakeSignedData [06:34:11]FM_MakeSignedData [06:34:11]SAM_PROTO_SignData [06:34:11]wFMCommunicate request_size=4 [06:34:11]MH_SAM_APDU [06:34:11]CAPDU: 80 0D 01 02 [06:34:11]Write to MH i2c: E2 08 00 D8 8E 80 0D 01 02 00 00 00 00 DF [06:34:11]Write i2c OK [06:34:11]MH_I2C_Read... [06:34:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:34:11]Read from MH i2c: E2 [06:34:11]MH_I2C_Read... [06:34:11]Read from MH i2c: E2 03 00 [06:34:11]MH_I2C_Read... [06:34:11]Read from MH i2c: E2 03 00 D8 8E 00 90 00 DA [06:34:11]RAPDU: 90 00 [06:34:11]wFMCommunicate OK [06:34:11]wFMCommunicate request_size=255 [06:34:11]MH_SAM_APDU [06:34:11]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 BC C5 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 7C A1 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 A1 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C2 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 14 99 00 00 00 00 07 04 06 00 68 A1 05 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 ED 7B 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 A4 94 01 00 35 04 06 00 [06:34:11]Write to MH i2c: E2 02 01 D9 8E 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 BC C5 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 7C A1 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 A1 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C2 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 14 99 00 00 00 00 07 04 06 00 68 A1 05 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 ED 7B 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 A4 94 01 00 35 04 06 00 00 00 E7 [06:34:11]Write i2c OK [06:34:11]MH_I2C_Read... [06:34:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:34:12]Read from MH i2c: E2 [06:34:12]MH_I2C_Read... [06:34:12]Read from MH i2c: E2 03 00 [06:34:12]MH_I2C_Read... [06:34:12]Read from MH i2c: E2 03 00 D9 8E 00 90 00 DB [06:34:12]RAPDU: 90 00 [06:34:12]wFMCommunicate OK [06:34:12]wFMCommunicate request_size=11 [06:34:12]MH_SAM_APDU [06:34:12]CAPDU: 80 0D 02 02 06 F7 DE 64 9F 29 41 [06:34:12]Write to MH i2c: E2 0E 00 DA 8E 80 0D 02 02 06 00 F7 DE 64 9F 29 41 00 00 30 [06:34:12]Write i2c OK [06:34:12]MH_I2C_Read... [06:34:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:34:12]Read from MH i2c: E2 [06:34:12]MH_I2C_Read... [06:34:12]Read from MH i2c: E2 03 00 [06:34:12]MH_I2C_Read... [06:34:12]Read from MH i2c: E2 03 00 DA 8E 00 90 00 DC [06:34:12]RAPDU: 90 00 [06:34:12]wFMCommunicate OK [06:34:12]wFMCommunicate request_size=4 [06:34:12]MH_SAM_APDU [06:34:12]CAPDU: 80 0D 03 02 [06:34:12]Write to MH i2c: E2 08 00 DB 8E 80 0D 03 02 00 00 00 00 E4 [06:34:12]Write i2c OK [06:34:12]MH_I2C_Read... [06:34:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:34:12]Read from MH i2c: E2 [06:34:12]MH_I2C_Read... [06:34:12]Read from MH i2c: E2 0B 00 [06:34:12]MH_I2C_Read... [06:34:12]Read from MH i2c: E2 0B 00 DB 8E 00 4B FC 74 C2 3E 23 A6 0F 90 00 78 [06:34:12]RAPDU: 4B FC 74 C2 3E 23 A6 0F 90 00 [06:34:12]wFMCommunicate OK [06:34:12]SAM_PROTO_SignData done [06:34:12]FM_MakeSignedData done [06:34:12]CreateOFDProtocolMessage [06:34:12]wFMCommunicate request_size=4 [06:34:12]MH_SAM_APDU [06:34:12]CAPDU: 80 11 00 00 [06:34:12]Write to MH i2c: E2 08 00 DC 8E 80 11 00 00 00 00 00 00 E4 [06:34:12]Write i2c OK [06:34:12]MH_I2C_Read... [06:34:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:34:12]Read from MH i2c: E2 [06:34:12]MH_I2C_Read... [06:34:12]Read from MH i2c: E2 17 00 [06:34:12]MH_I2C_Read... [06:34:12]Read from MH i2c: E2 17 00 DC 8E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 37 [06:34:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [06:34:12]wFMCommunicate OK [06:34:12]CreateOFDProtocolMessage done [06:34:12]OFDSenderStorePacket 103588 [06:34:12]StoreOFDPacket docnum=103588 [06:34:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 C0 1C 08 01 00 FE 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 BC C5 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 7C A1 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 A1 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C2 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 14 99 00 00 00 00 07 04 06 00 68 A1 05 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 ED 7B 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 A4 94 01 00 35 04 06 00 F7 DE 64 9F 29 41 4B FC 74 C2 3E 23 A6 0F [06:34:12]CheckFolder [06:34:12]dirname=/storage/ofd_packets [06:34:12]CheckFolder done [06:34:12]ProducePacketName [06:34:12]name=ofd_packets/00103588 [06:34:12]NVStorageSaveData ofd_packets/00103588 [06:34:12]File name is /storage/ofd_packets/00103588 [06:34:12]Write 302 bytes [06:34:12]NVStorageSaveData done [06:34:12]OFDSenderStorePacket done [06:34:12]KKMCreateOFDPacket done [06:34:12]NVStorageSaveData kkm_last_timestamp [06:34:12]File name is /storage/kkm_last_timestamp [06:34:12]Write 4 bytes [06:34:12]NVStorageSaveData done [06:34:12]ExternCall_PrintAddStr [06:34:12]wPrintStart [06:34:12]Write to MH i2c: 01 00 00 DD 8E 6B [06:34:12]Write i2c OK [06:34:12]MH_I2C_Read... [06:34:12]Read from MH i2c: 01 [06:34:12]MH_I2C_Read... [06:34:12]Read from MH i2c: 01 07 00 [06:34:12]MH_I2C_Read... [06:34:12]Read from MH i2c: 01 07 00 DD 8E 00 00 00 00 00 FF 0F 80 [06:34:12]RasterBufferAndPrint [06:34:12]line Счет N : (1)672807 [06:34:12]line ИНН: 02508201610067 [06:34:12]line Контрольно-Кассовый Чек [06:34:12]line ПРОДАЖА [06:34:12]line ТРК (МРК, ГНК) : 21 [06:34:12]line Товар: 2710194210 [06:34:12]line ДТ(л)-К-5 [06:34:12]line 50.620 * 72.90 [06:34:12]line = 3690.20 [06:34:12]line НДС 12% НСП 1% [06:34:12]line > о реализуемом товаре [06:34:12]line ОКРУГЛЕНИЕ: -0.20 [06:34:12]line ИТОГО: 3690.00 [06:34:12]line Внесено: 4000.00 [06:34:12]line СДАЧА: 310.00 [06:34:12]line НСП 1% : 32.66 [06:34:12]line НДС 12% : 391.88 [06:34:12]line Наличными: 3690.00 [06:34:12]line Безнал.: 0.00 [06:34:12]line Место: АЗС № 120 "Партнер Нефть" [06:34:12]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [06:34:12]line СНО: Общий режим [06:34:12]line Чек 18 19.06.2024 06:34 [06:34:12]line Смена: 353 ФФД: 1.0 [06:34:12]line ЗНМ: 0300000164 [06:34:12]line РНМ: 0000000000092785 [06:34:12]line Версия ККМ: 001 [06:34:12]line ФМ: 0000000000875093 [06:34:12]line ФД: 103588 [06:34:12]line ФПД: 272534542952769 [06:34:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T063421&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103588&fm=272534542952769&tin=02508201610067®Number=0000000000092785&sum=369000 [06:34:12]OFD Sender: Processing packet 103588 [packets to send 17, broken 16] [06:34:12]ProducePacketName [06:34:12]name=ofd_packets/00103588 [06:34:12]OFD Sender: To server: pG, [06:34:12]CommunicateWithHost lk.salyk.kg:30040 [06:34:12]ConnectInit lk.salyk.kg [06:34:12]written 0, free lines is 4095 [06:34:12]Connected sock=11 [06:34: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 39 33 10 01 00 00 C0 1C 08 01 00 FE 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 BC C5 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 7C A1 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 A1 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C2 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 14 99 00 00 00 00 07 04 06 00 68 A1 05 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 ED 7B 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 A4 94 01 00 35 04 06 00 F7 DE 64 9F 29 41 4B FC 74 C2 3E 23 A6 0F [06:34: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 39 33 4F 00 00 00 5E 54 47 00 92 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 39 33 10 04 04 00 A4 94 01 00 F4 03 04 00 77 22 72 66 B6 04 01 00 00 85 5F 22 BF 53 67 CA 2C [06:34:12]CommunicateWithHost err = 0 [06:34:12]CheckOFDResponse [06:34:12]1017 (14) - 77093643461234 [06:34:12]1041 (16) - 0000000000875093 [06:34:12]1040 (4) - 103588 [06:34:12]1012 (4) - 19.06.2024 00:12 [06:34:12]1206 (1) - 0 [06:34:12]OFD Sender: Remove packet 103588 [06:34:12]ProducePacketName [06:34:12]name=ofd_packets/00103588 [06:34:12]NVStorageDeleteData [06:34:12]Write to MH i2c: 01 00 00 08 8F 97 [06:34:12]Write i2c OK [06:34:12]MH_I2C_Read... [06:34:12]Read from MH i2c: 01 [06:34:12]MH_I2C_Read... [06:34:12]Read from MH i2c: 01 07 00 [06:34:12]MH_I2C_Read... [06:34:12]Read from MH i2c: 01 07 00 08 8F 00 00 00 00 00 EA 0C 94 [06:34:12]RasterBufferAndPrint [06:34:12]line [06:34:12]line [06:34:12]line [06:34:12]line [06:34:12]line [06:34:13]written 0, free lines is 3312 [06:34:13]MH_Cut [06:34:13]Write to MH i2c: D1 01 00 0F 8F 01 70 [06:34:13]Write i2c OK [06:34:13]MH_I2C_Read... [06:34:13]Read from MH i2c: D1 [06:34:13]MH_I2C_Read... [06:34:13]Read from MH i2c: D1 01 00 [06:34:13]MH_I2C_Read... [06:34:13]Read from MH i2c: D1 01 00 0F 8F 00 6F [06:34:13]Write to MH i2c: 01 00 00 10 8F 9F [06:34:13]Write i2c OK [06:34:13]MH_I2C_Read... [06:34:13]OFD Sender: No OFD packet to send [06:34:13]*** Cut start [06:34:13]*** Partial cut [06:34:13]*** CUTSNS_PIN = 1 [06:34:13]*** CUTSNS_PIN = 0 [06:34:14]*** Brake cut motor [06:34:14]Read from MH i2c: 01 [06:34:14]MH_I2C_Read... [06:34:14]*** Stop cut motor [06:34:14]*** Cut end [06:34:14]Read from MH i2c: 01 07 00 [06:34:14]MH_I2C_Read... [06:34:14]Read from MH i2c: 01 07 00 10 8F 00 00 00 00 00 FF 0F B4 [06:34:14]process_action close_receipt done [06:34:14]requested_data is exist [06:34:14]produce_requested_data [06:34:14]requested_item fm.sn is exist - process it [06:34:14]wFMCommunicate request_size=4 [06:34:14]MH_SAM_APDU [06:34:14]CAPDU: 80 11 00 00 [06:34:14]Write to MH i2c: E2 08 00 11 8F 80 11 00 00 00 00 00 00 1A [06:34:14]Write i2c OK [06:34:14]MH_I2C_Read... [06:34:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:34:14]Read from MH i2c: E2 [06:34:14]MH_I2C_Read... [06:34:14]Read from MH i2c: E2 17 00 [06:34:14]MH_I2C_Read... [06:34:14]Read from MH i2c: E2 17 00 11 8F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 6D [06:34:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [06:34:14]wFMCommunicate OK [06:34:14]requested_item fd.num is exist - process it [06:34:14]SAM_PROTO_GetFieldsCounters [06:34:14]wFMCommunicate request_size=4 [06:34:14]MH_SAM_APDU [06:34:14]CAPDU: 80 13 00 00 [06:34:14]Write to MH i2c: E2 08 00 12 8F 80 13 00 00 00 00 00 00 1D [06:34:14]Write i2c OK [06:34:14]MH_I2C_Read... [06:34:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:34:14]Read from MH i2c: E2 [06:34:14]MH_I2C_Read... [06:34:14]Read from MH i2c: E2 62 00 [06:34:14]MH_I2C_Read... [06:34:14]Read from MH i2c: E2 62 00 12 8F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 A4 94 01 00 0E 04 04 00 61 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 15 [06:34: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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 A4 94 01 00 0E 04 04 00 61 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 [06:34:14]wFMCommunicate OK [06:34:14]SAM_PROTO_GetFieldsCounters done [06:34:14]requested_item shift.num is exist - process it [06:34:14]requested_item shift.opened is exist - process it [06:34:14]req_shift_opened [06:34:14]FM_GetShiftState [06:34:14]SAM_PROTO_GetShiftState [06:34:14]wFMCommunicate request_size=4 [06:34:14]MH_SAM_APDU [06:34:14]CAPDU: 80 13 01 00 [06:34:14]Write to MH i2c: E2 08 00 13 8F 80 13 01 00 00 00 00 00 1F [06:34:14]Write i2c OK [06:34:14]MH_I2C_Read... [06:34:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:34:14]Read from MH i2c: E2 [06:34:14]MH_I2C_Read... [06:34:14]Read from MH i2c: E2 0E 00 [06:34:14]MH_I2C_Read... [06:34:14]Read from MH i2c: E2 0E 00 13 8F 00 09 00 01 04 26 72 66 00 00 00 00 90 00 2D [06:34:14]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [06:34:14]wFMCommunicate OK [06:34:14]SAM_PROTO_GetShiftState done [06:34:14]FM_GetShiftState done [06:34:14]req_shift_opened done [06:34:14]requested_item shift.open_date is exist - process it [06:34:14]req_shift_open_date [06:34:14]req_shift_open_date done [06:34:14]produce_requested_data done [06:34:14]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103588,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [06:34:14]process_action_free close_receipt [06:34:14]json_value_free [06:34:14]json_value_free done [06:34:14]process_json_proto returns [06:34:14]Send response to host [06:34:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103588,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [06:34:14]free response buf [06:34:14]execute_script done [06:34:14]execute_script returns [06:34:14]free content buf [06:34:14]Sock 9.Close socket [06:34:14]Sock 9.Thread stoped [06:34:18]OFD Sender: No OFD packet to send [06:34:23]OFD Sender: No OFD packet to send [06:34:28]OFD Sender: No OFD packet to send [06:34:33]OFD Sender: No OFD packet to send [06:34:38]OFD Sender: No OFD packet to send [06:34:43]OFD Sender: No OFD packet to send [06:34:48]OFD Sender: No OFD packet to send [06:34:53]OFD Sender: No OFD packet to send [06:34:58]OFD Sender: No OFD packet to send [06:35:03]OFD Sender: No OFD packet to send [06:35:08]OFD Sender: No OFD packet to send [06:35:13]OFD Sender: No OFD packet to send [06:35:18]OFD Sender: No OFD packet to send [06:35:23]OFD Sender: No OFD packet to send [06:35:28]OFD Sender: No OFD packet to send [06:35:33]OFD Sender: No OFD packet to send [06:35:38]OFD Sender: No OFD packet to send [06:35:43]OFD Sender: No OFD packet to send [06:35:48]OFD Sender: No OFD packet to send [06:35:53]OFD Sender: No OFD packet to send [06:35:58]OFD Sender: No OFD packet to send [06:36:03]OFD Sender: No OFD packet to send [06:36:08]OFD Sender: No OFD packet to send [06:36:13]OFD Sender: No OFD packet to send [06:36:18]OFD Sender: No OFD packet to send [06:36:23]OFD Sender: No OFD packet to send [06:36:28]OFD Sender: No OFD packet to send [06:36:33]OFD Sender: No OFD packet to send [06:36:38]OFD Sender: No OFD packet to send [06:36:43]OFD Sender: No OFD packet to send [06:36:48]OFD Sender: No OFD packet to send [06:36:53]OFD Sender: No OFD packet to send [06:36:58]OFD Sender: No OFD packet to send [06:37:03]OFD Sender: No OFD packet to send [06:37:08]OFD Sender: No OFD packet to send [06:37:13]OFD Sender: No OFD packet to send [06:37:18]OFD Sender: No OFD packet to send [06:37:23]OFD Sender: No OFD packet to send [06:37:28]OFD Sender: No OFD packet to send [06:37:33]OFD Sender: No OFD packet to send [06:37:38]OFD Sender: No OFD packet to send [06:37:43]OFD Sender: No OFD packet to send [06:37:48]OFD Sender: No OFD packet to send [06:37:53]OFD Sender: No OFD packet to send [06:37:58]OFD Sender: No OFD packet to send [06:38:03]OFD Sender: No OFD packet to send [06:38:08]OFD Sender: No OFD packet to send [06:38:13]OFD Sender: No OFD packet to send [06:38:18]OFD Sender: No OFD packet to send [06:38:23]OFD Sender: No OFD packet to send [06:38:28]OFD Sender: No OFD packet to send [06:38:33]OFD Sender: No OFD packet to send [06:38:38]OFD Sender: No OFD packet to send [06:38:41]accept exits with 7 [06:38:41]New connection [06:38:41]New thread 3067227492 created [06:38:41]Thread 3067084132 joined [06:38:41]Waiting for new connection... [06:38:41] Sock 7.Parse request [06:38:41]Sock 7.Check first char [06:38:41]Sock 7.First char is OK [06:38:41]request: POST /json_proto HTTP/1.0 [06:38:41]Method: POST [06:38:41]URL: /json_proto [06:38:41]Method is POST - this is cgi request [06:38:41]url: /json_proto [06:38:41]query_string will be loaded in cgi processing [06:38:41]execute_cgi json_proto POST (null) [06:38:41]execute_cgi path=json_proto method=POST [06:38:41]POST find Content-Length [06:38:41]Host: 172.17.38.133:8080 [06:38:41]Content-Length: 682 [06:38:41]Content-Type: application/json [06:38:41] [06:38:41]POST finish read [06:38:41]Found Content-Length = 682 [06:38:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672808", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 6.860, "sum" : 500.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:38:41]execute_script... [06:38: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)672808", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 6.860, "sum" : 500.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:38:41]POST & json_proto [06:38:41]process_json_proto [06:38:41]json parsed OK: [06:38:41]protocol is kg_v1.0 [06:38:41]action value=close_receipt [06:38:41]process_action close_receipt [06:38:41]cmd_close_receipt [06:38:41]MH_GetDate [06:38:41]Write to MH i2c: F0 00 00 14 8F 92 [06:38:41]Write i2c OK [06:38:41]MH_I2C_Read... [06:38:41]Read from MH i2c: F0 [06:38:41]MH_I2C_Read... [06:38:41]Read from MH i2c: F0 09 00 [06:38:41]MH_I2C_Read... [06:38:41]Read from MH i2c: F0 09 00 14 8F 00 FC 7C 72 66 BD 8F 7C 64 17 [06:38:41]GetLastDocTimeStamp 1718778861 [06:38:41]current date 1718779132 [06:38:41]FM_GetShiftState [06:38:41]SAM_PROTO_GetShiftState [06:38:41]wFMCommunicate request_size=4 [06:38:41]MH_SAM_APDU [06:38:41]CAPDU: 80 13 01 00 [06:38:41]Write to MH i2c: E2 08 00 15 8F 80 13 01 00 00 00 00 00 21 [06:38:41]Write i2c OK [06:38:41]MH_I2C_Read... [06:38:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:38:41]Read from MH i2c: E2 [06:38:41]MH_I2C_Read... [06:38:41]Read from MH i2c: E2 0E 00 [06:38:41]MH_I2C_Read... [06:38:41]Read from MH i2c: E2 0E 00 15 8F 00 09 00 01 04 26 72 66 00 00 00 00 90 00 2F [06:38:41]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [06:38:41]wFMCommunicate OK [06:38:41]SAM_PROTO_GetShiftState done [06:38:41]FM_GetShiftState done [06:38:41]opened in 1718756868 [06:38:41]opened+sec_in_day 1718843268 [06:38:41]quantity*price = 50009 [06:38:41]sum+1 = 50010 [06:38:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 19 19.06.2024 06:38 Смена: 353 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103589 ФПД: 29020609284439 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T063852&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103589&fm=29020609284439&tin=02508201610067®Number=0000000000092785&sum=50000 [06:38:42]StoreToDocumentArchive [06:38:42]shift 353 fd 103589 [06:38:42]save to /storage/0353/doc_00103589 [06:38:42]save last doc name /storage/0353/doc_00103589 to /storage/kkm_last_doc_name [06:38:42]save OK [06:38:42]Clear old archive folders... [06:38:42]ProcessDocumentItem done err = 0, tmpTLVsize=252 [06:38:42]tlvbuf is 0137F810 [06:38:42]SAM_PROTO_ClearQueue [06:38:42]wFMCommunicate request_size=4 [06:38:42]MH_SAM_APDU [06:38:42]CAPDU: 80 09 00 00 [06:38:42]Write to MH i2c: E2 08 00 22 8F 80 09 00 00 00 00 00 00 23 [06:38:42]Write i2c OK [06:38:42]MH_I2C_Read... [06:38:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:38:43]Read from MH i2c: E2 [06:38:43]MH_I2C_Read... [06:38:43]Read from MH i2c: E2 03 00 [06:38:43]MH_I2C_Read... [06:38:43]Read from MH i2c: E2 03 00 22 8F 00 90 00 25 [06:38:43]RAPDU: 90 00 [06:38:43]wFMCommunicate OK [06:38:43]SAM_PROTO_ClearQueue done [06:38:43]KKMCreateOFDPacket [06:38:43]OFDProtocolAddRootSTLVToBuf [06:38:43]FM_MakeSignedData [06:38:43]FM_MakeSignedData [06:38:43]SAM_PROTO_SignData [06:38:43]wFMCommunicate request_size=4 [06:38:43]MH_SAM_APDU [06:38:43]CAPDU: 80 0D 01 02 [06:38:43]Write to MH i2c: E2 08 00 23 8F 80 0D 01 02 00 00 00 00 2B [06:38:43]Write i2c OK [06:38:43]MH_I2C_Read... [06:38:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:38:43]Read from MH i2c: E2 [06:38:43]MH_I2C_Read... [06:38:43]Read from MH i2c: E2 03 00 [06:38:43]MH_I2C_Read... [06:38:43]Read from MH i2c: E2 03 00 23 8F 00 90 00 26 [06:38:43]RAPDU: 90 00 [06:38:43]wFMCommunicate OK [06:38:43]wFMCommunicate request_size=255 [06:38:43]MH_SAM_APDU [06:38:43]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 FC 7C 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 A5 94 01 00 35 04 06 00 [06:38:43]Write to MH i2c: E2 02 01 24 8F 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 FC 7C 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 A5 94 01 00 35 04 06 00 00 00 C2 [06:38:43]Write i2c OK [06:38:43]MH_I2C_Read... [06:38:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:38:43]Read from MH i2c: E2 [06:38:43]MH_I2C_Read... [06:38:43]Read from MH i2c: E2 03 00 [06:38:43]MH_I2C_Read... [06:38:43]Read from MH i2c: E2 03 00 24 8F 00 90 00 27 [06:38:43]RAPDU: 90 00 [06:38:43]wFMCommunicate OK [06:38:43]wFMCommunicate request_size=11 [06:38:43]MH_SAM_APDU [06:38:43]CAPDU: 80 0D 02 02 06 1A 64 E3 1B 89 57 [06:38:43]Write to MH i2c: E2 0E 00 25 8F 80 0D 02 02 06 00 1A 64 E3 1B 89 57 00 00 96 [06:38:43]Write i2c OK [06:38:43]MH_I2C_Read... [06:38:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:38:43]Read from MH i2c: E2 [06:38:43]MH_I2C_Read... [06:38:43]Read from MH i2c: E2 03 00 [06:38:43]MH_I2C_Read... [06:38:43]Read from MH i2c: E2 03 00 25 8F 00 90 00 28 [06:38:43]RAPDU: 90 00 [06:38:43]wFMCommunicate OK [06:38:43]wFMCommunicate request_size=4 [06:38:43]MH_SAM_APDU [06:38:43]CAPDU: 80 0D 03 02 [06:38:43]Write to MH i2c: E2 08 00 26 8F 80 0D 03 02 00 00 00 00 30 [06:38:43]Write i2c OK [06:38:43]MH_I2C_Read... [06:38:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:38:43]Read from MH i2c: E2 [06:38:43]MH_I2C_Read... [06:38:43]Read from MH i2c: E2 0B 00 [06:38:43]MH_I2C_Read... [06:38:43]Read from MH i2c: E2 0B 00 26 8F 00 99 04 1C DB 69 58 DA C0 90 00 20 [06:38:43]RAPDU: 99 04 1C DB 69 58 DA C0 90 00 [06:38:43]wFMCommunicate OK [06:38:43]SAM_PROTO_SignData done [06:38:43]FM_MakeSignedData done [06:38:43]CreateOFDProtocolMessage [06:38:43]wFMCommunicate request_size=4 [06:38:43]MH_SAM_APDU [06:38:43]CAPDU: 80 11 00 00 [06:38:43]Write to MH i2c: E2 08 00 27 8F 80 11 00 00 00 00 00 00 30 [06:38:43]Write i2c OK [06:38:43]MH_I2C_Read... [06:38:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:38:43]Read from MH i2c: E2 [06:38:43]MH_I2C_Read... [06:38:43]Read from MH i2c: E2 17 00 [06:38:43]MH_I2C_Read... [06:38:43]Read from MH i2c: E2 17 00 27 8F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 83 [06:38:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [06:38:43]wFMCommunicate OK [06:38:43]CreateOFDProtocolMessage done [06:38:43]OFDSenderStorePacket 103589 [06:38:43]StoreOFDPacket docnum=103589 [06:38:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 EA CF 08 01 5E 97 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 FC 7C 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 A5 94 01 00 35 04 06 00 1A 64 E3 1B 89 57 99 04 1C DB 69 58 DA C0 [06:38:43]CheckFolder [06:38:43]dirname=/storage/ofd_packets [06:38:43]CheckFolder done [06:38:43]ProducePacketName [06:38:43]name=ofd_packets/00103589 [06:38:43]NVStorageSaveData ofd_packets/00103589 [06:38:43]File name is /storage/ofd_packets/00103589 [06:38:43]Write 302 bytes [06:38:43]NVStorageSaveData done [06:38:43]OFDSenderStorePacket done [06:38:43]KKMCreateOFDPacket done [06:38:43]NVStorageSaveData kkm_last_timestamp [06:38:43]File name is /storage/kkm_last_timestamp [06:38:43]Write 4 bytes [06:38:43]NVStorageSaveData done [06:38:43]ExternCall_PrintAddStr [06:38:43]wPrintStart [06:38:43]Write to MH i2c: 01 00 00 28 8F B7 [06:38:43]Write i2c OK [06:38:43]MH_I2C_Read... [06:38:43]Read from MH i2c: 01 [06:38:43]MH_I2C_Read... [06:38:43]Read from MH i2c: 01 07 00 [06:38:43]MH_I2C_Read... [06:38:43]Read from MH i2c: 01 07 00 28 8F 00 00 00 00 00 FF 0F CC [06:38:43]RasterBufferAndPrint [06:38:43]line Счет N : (1)672808 [06:38:43]line ИНН: 02508201610067 [06:38:43]line Контрольно-Кассовый Чек [06:38:43]line ПРОДАЖА [06:38:43]line ТРК (МРК, ГНК) : 21 [06:38:43]line Товар: 2710194210 [06:38:43]line ДТ(л)-К-5 [06:38:43]line 6.860 * 72.90 [06:38:43]line = 500.09 [06:38:43]line НДС 12% НСП 1% [06:38:43]line > о реализуемом товаре [06:38:43]line ОКРУГЛЕНИЕ: -0.09 [06:38:43]line ИТОГО: 500.00 [06:38:43]line Внесено: 500.00 [06:38:43]line СДАЧА: 0.00 [06:38:43]line НСП 1% : 4.43 [06:38:43]line НДС 12% : 53.11 [06:38:43]line Наличными: 500.00 [06:38:43]line Безнал.: 0.00 [06:38:43]line Место: АЗС № 120 "Партнер Нефть" [06:38:43]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [06:38:43]line СНО: Общий режим [06:38:43]line Чек 19 19.06.2024 06:38 [06:38:43]line Смена: 353 ФФД: 1.0 [06:38:43]line ЗНМ: 0300000164 [06:38:43]line РНМ: 0000000000092785 [06:38:43]line Версия ККМ: 001 [06:38:43]line ФМ: 0000000000875093 [06:38:43]line ФД: 103589 [06:38:43]line ФПД: 29020609284439 [06:38:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T063852&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103589&fm=29020609284439&tin=02508201610067®Number=0000000000092785&sum=50000 [06:38:43]OFD Sender: Processing packet 103589 [packets to send 17, broken 16] [06:38:43]ProducePacketName [06:38:43]name=ofd_packets/00103589 [06:38:43]OFD Sender: To server: pG, [06:38:43]CommunicateWithHost lk.salyk.kg:30040 [06:38:43]ConnectInit lk.salyk.kg [06:38:43]written 0, free lines is 4095 [06:38:43]Connected sock=10 [06:38: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 39 33 10 01 00 00 EA CF 08 01 5E 97 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 FC 7C 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 A5 94 01 00 35 04 06 00 1A 64 E3 1B 89 57 99 04 1C DB 69 58 DA C0 [06:38: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 39 33 4F 00 00 00 1B 78 47 00 7F 56 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 A5 94 01 00 F4 03 04 00 86 23 72 66 B6 04 01 00 00 EA 1C 3C 6C F0 1B AA 15 [06:38:44]CommunicateWithHost err = 0 [06:38:44]CheckOFDResponse [06:38:44]1017 (14) - 77093643461234 [06:38:44]1041 (16) - 0000000000875093 [06:38:44]1040 (4) - 103589 [06:38:44]1012 (4) - 19.06.2024 00:17 [06:38:44]1206 (1) - 0 [06:38:44]OFD Sender: Remove packet 103589 [06:38:44]ProducePacketName [06:38:44]name=ofd_packets/00103589 [06:38:44]NVStorageDeleteData [06:38:44]Write to MH i2c: 01 00 00 53 8F E2 [06:38:44]Write i2c OK [06:38:44]MH_I2C_Read... [06:38:44]Read from MH i2c: 01 [06:38:44]MH_I2C_Read... [06:38:44]Read from MH i2c: 01 07 00 [06:38:44]MH_I2C_Read... [06:38:44]Read from MH i2c: 01 07 00 53 8F 00 00 00 00 00 E1 0C D6 [06:38:44]RasterBufferAndPrint [06:38:44]line [06:38:44]line [06:38:44]line [06:38:44]line [06:38:44]line [06:38:44]written 0, free lines is 3305 [06:38:44]MH_Cut [06:38:44]Write to MH i2c: D1 01 00 5A 8F 01 BB [06:38:44]Write i2c OK [06:38:44]MH_I2C_Read... [06:38:44]Read from MH i2c: D1 [06:38:44]MH_I2C_Read... [06:38:44]Read from MH i2c: D1 01 00 [06:38:44]MH_I2C_Read... [06:38:44]Read from MH i2c: D1 01 00 5A 8F 00 BA [06:38:44]Write to MH i2c: 01 00 00 5B 8F EA [06:38:44]Write i2c OK [06:38:44]MH_I2C_Read... [06:38:44]OFD Sender: No OFD packet to send [06:38:45]*** Cut start [06:38:45]*** Partial cut [06:38:45]*** CUTSNS_PIN = 1 [06:38:45]*** CUTSNS_PIN = 0 [06:38:45]*** Brake cut motor [06:38:45]Read from MH i2c: 01 [06:38:45]MH_I2C_Read... [06:38:45]*** Stop cut motor [06:38:45]*** Cut end [06:38:45]Read from MH i2c: 01 07 00 [06:38:45]MH_I2C_Read... [06:38:45]Read from MH i2c: 01 07 00 5B 8F 00 00 00 00 00 FF 0F FF [06:38:45]process_action close_receipt done [06:38:45]requested_data is exist [06:38:45]produce_requested_data [06:38:45]requested_item fm.sn is exist - process it [06:38:45]wFMCommunicate request_size=4 [06:38:45]MH_SAM_APDU [06:38:45]CAPDU: 80 11 00 00 [06:38:45]Write to MH i2c: E2 08 00 5C 8F 80 11 00 00 00 00 00 00 65 [06:38:45]Write i2c OK [06:38:45]MH_I2C_Read... [06:38:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:38:45]Read from MH i2c: E2 [06:38:45]MH_I2C_Read... [06:38:45]Read from MH i2c: E2 17 00 [06:38:45]MH_I2C_Read... [06:38:45]Read from MH i2c: E2 17 00 5C 8F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 B8 [06:38:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [06:38:45]wFMCommunicate OK [06:38:45]requested_item fd.num is exist - process it [06:38:45]SAM_PROTO_GetFieldsCounters [06:38:45]wFMCommunicate request_size=4 [06:38:45]MH_SAM_APDU [06:38:45]CAPDU: 80 13 00 00 [06:38:45]Write to MH i2c: E2 08 00 5D 8F 80 13 00 00 00 00 00 00 68 [06:38:45]Write i2c OK [06:38:45]MH_I2C_Read... [06:38:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:38:45]Read from MH i2c: E2 [06:38:45]MH_I2C_Read... [06:38:45]Read from MH i2c: E2 62 00 [06:38:45]MH_I2C_Read... [06:38:45]Read from MH i2c: E2 62 00 5D 8F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 A5 94 01 00 0E 04 04 00 61 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 64 [06:38: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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 A5 94 01 00 0E 04 04 00 61 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 [06:38:45]wFMCommunicate OK [06:38:45]SAM_PROTO_GetFieldsCounters done [06:38:45]requested_item shift.num is exist - process it [06:38:45]requested_item shift.opened is exist - process it [06:38:45]req_shift_opened [06:38:45]FM_GetShiftState [06:38:45]SAM_PROTO_GetShiftState [06:38:45]wFMCommunicate request_size=4 [06:38:45]MH_SAM_APDU [06:38:45]CAPDU: 80 13 01 00 [06:38:45]Write to MH i2c: E2 08 00 5E 8F 80 13 01 00 00 00 00 00 6A [06:38:45]Write i2c OK [06:38:45]MH_I2C_Read... [06:38:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:38:45]Read from MH i2c: E2 [06:38:45]MH_I2C_Read... [06:38:45]Read from MH i2c: E2 0E 00 [06:38:45]MH_I2C_Read... [06:38:45]Read from MH i2c: E2 0E 00 5E 8F 00 09 00 01 04 26 72 66 00 00 00 00 90 00 78 [06:38:45]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [06:38:45]wFMCommunicate OK [06:38:45]SAM_PROTO_GetShiftState done [06:38:45]FM_GetShiftState done [06:38:45]req_shift_opened done [06:38:45]requested_item shift.open_date is exist - process it [06:38:45]req_shift_open_date [06:38:45]req_shift_open_date done [06:38:45]produce_requested_data done [06:38:45]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103589,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [06:38:45]process_action_free close_receipt [06:38:45]json_value_free [06:38:45]json_value_free done [06:38:45]process_json_proto returns [06:38:45]Send response to host [06:38:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103589,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [06:38:45]free response buf [06:38:45]execute_script done [06:38:45]execute_script returns [06:38:45]free content buf [06:38:45]Sock 7.Close socket [06:38:45]Sock 7.Thread stoped [06:38:49]OFD Sender: No OFD packet to send [06:38:54]OFD Sender: No OFD packet to send [06:38:59]OFD Sender: No OFD packet to send [06:39:04]OFD Sender: No OFD packet to send [06:39:09]OFD Sender: No OFD packet to send [06:39:14]OFD Sender: No OFD packet to send [06:39:19]OFD Sender: No OFD packet to send [06:39:24]OFD Sender: No OFD packet to send [06:39:29]OFD Sender: No OFD packet to send [06:39:34]OFD Sender: No OFD packet to send [06:39:39]OFD Sender: No OFD packet to send [06:39:44]OFD Sender: No OFD packet to send [06:39:49]OFD Sender: No OFD packet to send [06:39:54]OFD Sender: No OFD packet to send [06:39:59]OFD Sender: No OFD packet to send [06:40:04]OFD Sender: No OFD packet to send [06:40:09]OFD Sender: No OFD packet to send [06:40:14]OFD Sender: No OFD packet to send [06:40:19]OFD Sender: No OFD packet to send [06:40:24]OFD Sender: No OFD packet to send [06:40:29]OFD Sender: No OFD packet to send [06:40:34]OFD Sender: No OFD packet to send [06:40:39]OFD Sender: No OFD packet to send [06:40:44]OFD Sender: No OFD packet to send [06:40:49]OFD Sender: No OFD packet to send [06:40:54]OFD Sender: No OFD packet to send [06:40:59]OFD Sender: No OFD packet to send [06:41:04]OFD Sender: No OFD packet to send [06:41:09]OFD Sender: No OFD packet to send [06:41:14]OFD Sender: No OFD packet to send [06:41:19]OFD Sender: No OFD packet to send [06:41:24]OFD Sender: No OFD packet to send [06:41:29]OFD Sender: No OFD packet to send [06:41:34]OFD Sender: No OFD packet to send [06:41:39]OFD Sender: No OFD packet to send [06:41:44]OFD Sender: No OFD packet to send [06:41:49]OFD Sender: No OFD packet to send [06:41:54]OFD Sender: No OFD packet to send [06:41:59]OFD Sender: No OFD packet to send [06:42:04]OFD Sender: No OFD packet to send [06:42:09]OFD Sender: No OFD packet to send [06:42:14]OFD Sender: No OFD packet to send [06:42:19]OFD Sender: No OFD packet to send [06:42:24]OFD Sender: No OFD packet to send [06:42:29]OFD Sender: No OFD packet to send [06:42:34]OFD Sender: No OFD packet to send [06:42:39]OFD Sender: No OFD packet to send [06:42:44]OFD Sender: No OFD packet to send [06:42:49]OFD Sender: No OFD packet to send [06:42:54]OFD Sender: No OFD packet to send [06:42:59]OFD Sender: No OFD packet to send [06:43: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:15]OFD Sender: No OFD packet to send [06:44:20]OFD Sender: No OFD packet to send [06:44:25]OFD Sender: No OFD packet to send [06:44:30]OFD Sender: No OFD packet to send [06:44:35]OFD Sender: No OFD packet to send [06:44:40]OFD Sender: No OFD packet to send [06:44:45]OFD Sender: No OFD packet to send [06:44:50]OFD Sender: No OFD packet to send [06:44:55]OFD Sender: No OFD packet to send [06:45:00]OFD Sender: No OFD packet to send [06:45:05]OFD Sender: No OFD packet to send [06:45:10]OFD Sender: No OFD packet to send [06:45:15]OFD Sender: No OFD packet to send [06:45:20]OFD Sender: No OFD packet to send [06:45:25]OFD Sender: No OFD packet to send [06:45:30]OFD Sender: No OFD packet to send [06:45:35]OFD Sender: No OFD packet to send [06:45:40]OFD Sender: No OFD packet to send [06:45:45]OFD Sender: No OFD packet to send [06:45:50]OFD Sender: No OFD packet to send [06:45:55]OFD Sender: No OFD packet to send [06:46:00]OFD Sender: No OFD packet to send [06:46:05]OFD Sender: No OFD packet to send [06:46:10]OFD Sender: No OFD packet to send [06:46:15]OFD Sender: No OFD packet to send [06:46:20]OFD Sender: No OFD packet to send [06:46:25]OFD Sender: No OFD packet to send [06:46:30]OFD Sender: No OFD packet to send [06:46:35]OFD Sender: No OFD packet to send [06:46:40]OFD Sender: No OFD packet to send [06:46:45]OFD Sender: No OFD packet to send [06:46:50]OFD Sender: No OFD packet to send [06:46:55]OFD Sender: No OFD packet to send [06:47:00]OFD Sender: No OFD packet to send [06:47:05]OFD Sender: No OFD packet to send [06:47:10]OFD Sender: No OFD packet to send [06:47:15]OFD Sender: No OFD packet to send [06:47:16]accept exits with 9 [06:47:16]New connection [06:47:16]New thread 3067084132 created [06:47:16]Thread 3067227492 joined [06:47:16]Waiting for new connection... [06:47:16] Sock 9.Parse request [06:47:16]Sock 9.Check first char [06:47:16]Sock 9.First char is OK [06:47:16]request: POST /json_proto HTTP/1.0 [06:47:16]Method: POST [06:47:16]URL: /json_proto [06:47:16]Method is POST - this is cgi request [06:47:16]url: /json_proto [06:47:16]query_string will be loaded in cgi processing [06:47:16]execute_cgi json_proto POST (null) [06:47:16]execute_cgi path=json_proto method=POST [06:47:16]POST find Content-Length [06:47:16]Host: 172.17.38.133:8080 [06:47:16]Content-Length: 682 [06:47:16]Content-Type: application/json [06:47:16] [06:47:16]POST finish read [06:47:16]Found Content-Length = 682 [06:47:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672809", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 27.070, "sum" : 2000.47, "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" ] } } [06:47:16]execute_script... [06:47: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)672809", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 27.070, "sum" : 2000.47, "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" ] } } [06:47:16]POST & json_proto [06:47:16]process_json_proto [06:47:16]json parsed OK: [06:47:16]protocol is kg_v1.0 [06:47:16]action value=close_receipt [06:47:16]process_action close_receipt [06:47:16]cmd_close_receipt [06:47:16]MH_GetDate [06:47:16]Write to MH i2c: F0 00 00 5F 8F DD [06:47:16]Write i2c OK [06:47:16]MH_I2C_Read... [06:47:16]Read from MH i2c: F0 [06:47:16]MH_I2C_Read... [06:47:16]Read from MH i2c: F0 09 00 [06:47:16]MH_I2C_Read... [06:47:16]Read from MH i2c: F0 09 00 5F 8F 00 FF 7E 72 66 BD 8F 7C 64 67 [06:47:16]GetLastDocTimeStamp 1718779132 [06:47:16]current date 1718779647 [06:47:16]FM_GetShiftState [06:47:16]SAM_PROTO_GetShiftState [06:47:16]wFMCommunicate request_size=4 [06:47:16]MH_SAM_APDU [06:47:16]CAPDU: 80 13 01 00 [06:47:16]Write to MH i2c: E2 08 00 60 8F 80 13 01 00 00 00 00 00 6C [06:47:16]Write i2c OK [06:47:16]MH_I2C_Read... [06:47:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:47:16]Read from MH i2c: E2 [06:47:16]MH_I2C_Read... [06:47:16]Read from MH i2c: E2 0E 00 [06:47:16]MH_I2C_Read... [06:47:16]Read from MH i2c: E2 0E 00 60 8F 00 09 00 01 04 26 72 66 00 00 00 00 90 00 7A [06:47:16]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [06:47:16]wFMCommunicate OK [06:47:16]SAM_PROTO_GetShiftState done [06:47:16]FM_GetShiftState done [06:47:16]opened in 1718756868 [06:47:16]opened+sec_in_day 1718843268 [06:47:16]quantity*price = 200047 [06:47:16]sum+1 = 200048 [06:47:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.47 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.44 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 20 19.06.2024 06:47 Смена: 353 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103590 ФПД: 250840860176522 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T064727&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103590&fm=250840860176522&tin=02508201610067®Number=0000000000092785&sum=200000 [06:47:17]StoreToDocumentArchive [06:47:17]shift 353 fd 103590 [06:47:17]save to /storage/0353/doc_00103590 [06:47:17]save last doc name /storage/0353/doc_00103590 to /storage/kkm_last_doc_name [06:47:17]save OK [06:47:17]Clear old archive folders... [06:47:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [06:47:17]tlvbuf is 013818D0 [06:47:17]SAM_PROTO_ClearQueue [06:47:17]wFMCommunicate request_size=4 [06:47:17]MH_SAM_APDU [06:47:17]CAPDU: 80 09 00 00 [06:47:17]Write to MH i2c: E2 08 00 6D 8F 80 09 00 00 00 00 00 00 6E [06:47:17]Write i2c OK [06:47:17]MH_I2C_Read... [06:47:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:47:17]Read from MH i2c: E2 [06:47:17]MH_I2C_Read... [06:47:17]Read from MH i2c: E2 03 00 [06:47:17]MH_I2C_Read... [06:47:17]Read from MH i2c: E2 03 00 6D 8F 00 90 00 70 [06:47:17]RAPDU: 90 00 [06:47:17]wFMCommunicate OK [06:47:17]SAM_PROTO_ClearQueue done [06:47:17]KKMCreateOFDPacket [06:47:17]OFDProtocolAddRootSTLVToBuf [06:47:17]FM_MakeSignedData [06:47:17]FM_MakeSignedData [06:47:17]SAM_PROTO_SignData [06:47:17]wFMCommunicate request_size=4 [06:47:17]MH_SAM_APDU [06:47:17]CAPDU: 80 0D 01 02 [06:47:17]Write to MH i2c: E2 08 00 6E 8F 80 0D 01 02 00 00 00 00 76 [06:47:17]Write i2c OK [06:47:17]MH_I2C_Read... [06:47:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:47:17]Read from MH i2c: E2 [06:47:17]MH_I2C_Read... [06:47:17]Read from MH i2c: E2 03 00 [06:47:17]MH_I2C_Read... [06:47:17]Read from MH i2c: E2 03 00 6E 8F 00 90 00 71 [06:47:17]RAPDU: 90 00 [06:47:17]wFMCommunicate OK [06:47:17]wFMCommunicate request_size=255 [06:47:17]MH_SAM_APDU [06:47:17]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 BE 69 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 6F 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 FC 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 14 00 00 00 F4 03 04 00 FF 7E 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 A6 94 01 00 35 04 06 00 E4 [06:47:17]Write to MH i2c: E2 02 01 6F 8F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 BE 69 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 6F 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 FC 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 14 00 00 00 F4 03 04 00 FF 7E 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 A6 94 01 00 35 04 06 00 E4 00 00 F2 [06:47:17]Write i2c OK [06:47:17]MH_I2C_Read... [06:47:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:47:18]Read from MH i2c: E2 [06:47:18]MH_I2C_Read... [06:47:18]Read from MH i2c: E2 03 00 [06:47:18]MH_I2C_Read... [06:47:18]Read from MH i2c: E2 03 00 6F 8F 00 90 00 72 [06:47:18]RAPDU: 90 00 [06:47:18]wFMCommunicate OK [06:47:18]wFMCommunicate request_size=10 [06:47:18]MH_SAM_APDU [06:47:18]CAPDU: 80 0D 02 02 05 23 70 5D B0 8A [06:47:18]Write to MH i2c: E2 0D 00 70 8F 80 0D 02 02 05 00 23 70 5D B0 8A 00 00 AD [06:47:18]Write i2c OK [06:47:18]MH_I2C_Read... [06:47:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:47:18]Read from MH i2c: E2 [06:47:18]MH_I2C_Read... [06:47:18]Read from MH i2c: E2 03 00 [06:47:18]MH_I2C_Read... [06:47:18]Read from MH i2c: E2 03 00 70 8F 00 90 00 73 [06:47:18]RAPDU: 90 00 [06:47:18]wFMCommunicate OK [06:47:18]wFMCommunicate request_size=4 [06:47:18]MH_SAM_APDU [06:47:18]CAPDU: 80 0D 03 02 [06:47:18]Write to MH i2c: E2 08 00 71 8F 80 0D 03 02 00 00 00 00 7B [06:47:18]Write i2c OK [06:47:18]MH_I2C_Read... [06:47:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:47:18]Read from MH i2c: E2 [06:47:18]MH_I2C_Read... [06:47:18]Read from MH i2c: E2 0B 00 [06:47:18]MH_I2C_Read... [06:47:18]Read from MH i2c: E2 0B 00 71 8F 00 CC DD 86 4B 54 C9 6E 93 90 00 14 [06:47:18]RAPDU: CC DD 86 4B 54 C9 6E 93 90 00 [06:47:18]wFMCommunicate OK [06:47:18]SAM_PROTO_SignData done [06:47:18]FM_MakeSignedData done [06:47:18]CreateOFDProtocolMessage [06:47:18]wFMCommunicate request_size=4 [06:47:18]MH_SAM_APDU [06:47:18]CAPDU: 80 11 00 00 [06:47:18]Write to MH i2c: E2 08 00 72 8F 80 11 00 00 00 00 00 00 7B [06:47:18]Write i2c OK [06:47:18]MH_I2C_Read... [06:47:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:47:18]Read from MH i2c: E2 [06:47:18]MH_I2C_Read... [06:47:18]Read from MH i2c: E2 17 00 [06:47:18]MH_I2C_Read... [06:47:18]Read from MH i2c: E2 17 00 72 8F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 CE [06:47:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [06:47:18]wFMCommunicate OK [06:47:18]CreateOFDProtocolMessage done [06:47:18]OFDSenderStorePacket 103590 [06:47:18]StoreOFDPacket docnum=103590 [06:47:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 DB AC 07 01 CB 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 BE 69 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 6F 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 FC 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 14 00 00 00 F4 03 04 00 FF 7E 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 A6 94 01 00 35 04 06 00 E4 23 70 5D B0 8A CC DD 86 4B 54 C9 6E 93 [06:47:18]CheckFolder [06:47:18]dirname=/storage/ofd_packets [06:47:18]CheckFolder done [06:47:18]ProducePacketName [06:47:18]name=ofd_packets/00103590 [06:47:18]NVStorageSaveData ofd_packets/00103590 [06:47:18]File name is /storage/ofd_packets/00103590 [06:47:18]Write 301 bytes [06:47:18]NVStorageSaveData done [06:47:18]OFDSenderStorePacket done [06:47:18]KKMCreateOFDPacket done [06:47:18]NVStorageSaveData kkm_last_timestamp [06:47:18]File name is /storage/kkm_last_timestamp [06:47:18]Write 4 bytes [06:47:18]NVStorageSaveData done [06:47:18]ExternCall_PrintAddStr [06:47:18]wPrintStart [06:47:18]Write to MH i2c: 01 00 00 73 8F 02 [06:47:18]Write i2c OK [06:47:18]MH_I2C_Read... [06:47:18]Read from MH i2c: 01 [06:47:18]MH_I2C_Read... [06:47:18]Read from MH i2c: 01 07 00 [06:47:18]MH_I2C_Read... [06:47:18]Read from MH i2c: 01 07 00 73 8F 00 00 00 00 00 FF 0F 17 [06:47:18]RasterBufferAndPrint [06:47:18]line Счет N : (1)672809 [06:47:18]line ИНН: 02508201610067 [06:47:18]line Контрольно-Кассовый Чек [06:47:18]line ПРОДАЖА [06:47:18]line ТРК (МРК, ГНК) : 41 [06:47:18]line Товар: 2710124500 [06:47:18]line Аи-95-К-5 [06:47:18]line 27.070 * 73.90 [06:47:18]line = 2000.47 [06:47:18]line НДС 12% НСП 1% [06:47:18]line > о реализуемом товаре [06:47:18]line ОКРУГЛЕНИЕ: -0.47 [06:47:18]line ИТОГО: 2000.00 [06:47:18]line Внесено: 2000.00 [06:47:18]line СДАЧА: 0.00 [06:47:18]line НСП 1% : 17.70 [06:47:18]line НДС 12% : 212.44 [06:47:18]line Наличными: 2000.00 [06:47:18]line Безнал.: 0.00 [06:47:18]line Место: АЗС № 120 "Партнер Нефть" [06:47:18]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [06:47:18]line СНО: Общий режим [06:47:18]line Чек 20 19.06.2024 06:47 [06:47:18]line Смена: 353 ФФД: 1.0 [06:47:18]line ЗНМ: 0300000164 [06:47:18]line РНМ: 0000000000092785 [06:47:18]line Версия ККМ: 001 [06:47:18]line ФМ: 0000000000875093 [06:47:18]line ФД: 103590 [06:47:18]line ФПД: 250840860176522 [06:47:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T064727&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103590&fm=250840860176522&tin=02508201610067®Number=0000000000092785&sum=200000 [06:47:18]OFD Sender: Processing packet 103590 [packets to send 17, broken 16] [06:47:18]ProducePacketName [06:47:18]name=ofd_packets/00103590 [06:47:18]OFD Sender: To server: pG, [06:47:18]CommunicateWithHost lk.salyk.kg:30040 [06:47:18]ConnectInit lk.salyk.kg [06:47:18]written 0, free lines is 4095 [06:47:18]Connected sock=10 [06:47: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 39 33 0F 01 00 00 DB AC 07 01 CB 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 BE 69 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 6F 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 FC 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 14 00 00 00 F4 03 04 00 FF 7E 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 A6 94 01 00 35 04 06 00 E4 23 70 5D B0 8A CC DD 86 4B 54 C9 6E 93 [06:47: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 39 33 4F 00 00 00 24 BD 47 00 DD E4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 A6 94 01 00 F4 03 04 00 89 25 72 66 B6 04 01 00 00 EE AE 45 15 8C FF 70 A1 [06:47:19]CommunicateWithHost err = 0 [06:47:19]CheckOFDResponse [06:47:19]1017 (14) - 77093643461234 [06:47:19]1041 (16) - 0000000000875093 [06:47:19]1040 (4) - 103590 [06:47:19]1012 (4) - 19.06.2024 00:25 [06:47:19]1206 (1) - 0 [06:47:19]OFD Sender: Remove packet 103590 [06:47:19]ProducePacketName [06:47:19]name=ofd_packets/00103590 [06:47:19]NVStorageDeleteData [06:47:19]Write to MH i2c: 01 00 00 9E 8F 2D [06:47:19]Write i2c OK [06:47:19]MH_I2C_Read... [06:47:19]Read from MH i2c: 01 [06:47:19]MH_I2C_Read... [06:47:19]Read from MH i2c: 01 07 00 [06:47:19]MH_I2C_Read... [06:47:19]Read from MH i2c: 01 07 00 9E 8F 00 00 00 00 00 E9 0C 29 [06:47:19]RasterBufferAndPrint [06:47:19]line [06:47:19]line [06:47:19]line [06:47:19]line [06:47:19]line [06:47:19]written 0, free lines is 3311 [06:47:19]MH_Cut [06:47:19]Write to MH i2c: D1 01 00 A5 8F 01 06 [06:47:19]Write i2c OK [06:47:19]MH_I2C_Read... [06:47:19]Read from MH i2c: D1 [06:47:19]MH_I2C_Read... [06:47:19]Read from MH i2c: D1 01 00 [06:47:19]MH_I2C_Read... [06:47:19]Read from MH i2c: D1 01 00 A5 8F 00 05 [06:47:19]Write to MH i2c: 01 00 00 A6 8F 35 [06:47:19]Write i2c OK [06:47:19]MH_I2C_Read... [06:47:19]OFD Sender: No OFD packet to send [06:47:19]*** Cut start [06:47:19]*** Partial cut [06:47:19]*** CUTSNS_PIN = 1 [06:47:19]*** CUTSNS_PIN = 0 [06:47:20]*** Brake cut motor [06:47:20]Read from MH i2c: 01 [06:47:20]MH_I2C_Read... [06:47:20]*** Stop cut motor [06:47:20]*** Cut end [06:47:20]Read from MH i2c: 01 07 00 [06:47:20]MH_I2C_Read... [06:47:20]Read from MH i2c: 01 07 00 A6 8F 00 00 00 00 00 FF 0F 4A [06:47:20]process_action close_receipt done [06:47:20]requested_data is exist [06:47:20]produce_requested_data [06:47:20]requested_item fm.sn is exist - process it [06:47:20]wFMCommunicate request_size=4 [06:47:20]MH_SAM_APDU [06:47:20]CAPDU: 80 11 00 00 [06:47:20]Write to MH i2c: E2 08 00 A7 8F 80 11 00 00 00 00 00 00 B0 [06:47:20]Write i2c OK [06:47:20]MH_I2C_Read... [06:47:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:47:20]Read from MH i2c: E2 [06:47:20]MH_I2C_Read... [06:47:20]Read from MH i2c: E2 17 00 [06:47:20]MH_I2C_Read... [06:47:20]Read from MH i2c: E2 17 00 A7 8F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 03 [06:47:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [06:47:20]wFMCommunicate OK [06:47:20]requested_item fd.num is exist - process it [06:47:20]SAM_PROTO_GetFieldsCounters [06:47:20]wFMCommunicate request_size=4 [06:47:20]MH_SAM_APDU [06:47:20]CAPDU: 80 13 00 00 [06:47:20]Write to MH i2c: E2 08 00 A8 8F 80 13 00 00 00 00 00 00 B3 [06:47:20]Write i2c OK [06:47:20]MH_I2C_Read... [06:47:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:47:20]Read from MH i2c: E2 [06:47:20]MH_I2C_Read... [06:47:20]Read from MH i2c: E2 62 00 [06:47:20]MH_I2C_Read... [06:47:20]Read from MH i2c: E2 62 00 A8 8F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 A6 94 01 00 0E 04 04 00 61 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 B3 [06:47: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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 A6 94 01 00 0E 04 04 00 61 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 [06:47:20]wFMCommunicate OK [06:47:20]SAM_PROTO_GetFieldsCounters done [06:47:20]requested_item shift.num is exist - process it [06:47:20]requested_item shift.opened is exist - process it [06:47:20]req_shift_opened [06:47:20]FM_GetShiftState [06:47:20]SAM_PROTO_GetShiftState [06:47:20]wFMCommunicate request_size=4 [06:47:20]MH_SAM_APDU [06:47:20]CAPDU: 80 13 01 00 [06:47:20]Write to MH i2c: E2 08 00 A9 8F 80 13 01 00 00 00 00 00 B5 [06:47:20]Write i2c OK [06:47:20]MH_I2C_Read... [06:47:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:47:20]Read from MH i2c: E2 [06:47:20]MH_I2C_Read... [06:47:20]Read from MH i2c: E2 0E 00 [06:47:20]MH_I2C_Read... [06:47:20]Read from MH i2c: E2 0E 00 A9 8F 00 09 00 01 04 26 72 66 00 00 00 00 90 00 C3 [06:47:20]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [06:47:20]wFMCommunicate OK [06:47:20]SAM_PROTO_GetShiftState done [06:47:20]FM_GetShiftState done [06:47:20]req_shift_opened done [06:47:20]requested_item shift.open_date is exist - process it [06:47:20]req_shift_open_date [06:47:20]req_shift_open_date done [06:47:20]produce_requested_data done [06:47:20]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103590,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [06:47:20]process_action_free close_receipt [06:47:20]json_value_free [06:47:20]json_value_free done [06:47:20]process_json_proto returns [06:47:20]Send response to host [06:47:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103590,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [06:47:20]free response buf [06:47:20]execute_script done [06:47:20]execute_script returns [06:47:20]free content buf [06:47:20]Sock 9.Close socket [06:47:20]Sock 9.Thread stoped [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:08]accept exits with 7 [06:50:08]New connection [06:50:08]New thread 3067227492 created [06:50:08]Thread 3067084132 joined [06:50:08]Waiting for new connection... [06:50:08] Sock 7.Parse request [06:50:08]Sock 7.Check first char [06:50:08]Sock 7.First char is OK [06:50:08]request: POST /json_proto HTTP/1.0 [06:50:08]Method: POST [06:50:08]URL: /json_proto [06:50:08]Method is POST - this is cgi request [06:50:08]url: /json_proto [06:50:08]query_string will be loaded in cgi processing [06:50:08]execute_cgi json_proto POST (null) [06:50:08]execute_cgi path=json_proto method=POST [06:50:08]POST find Content-Length [06:50:08]Host: 172.17.38.133:8080 [06:50:08]Content-Length: 682 [06:50:08]Content-Type: application/json [06:50:08] [06:50:08]POST finish read [06:50:08]Found Content-Length = 682 [06:50:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672810", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:50:08]execute_script... [06:50: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)672810", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:50:08]POST & json_proto [06:50:08]process_json_proto [06:50:08]json parsed OK: [06:50:08]protocol is kg_v1.0 [06:50:08]action value=close_receipt [06:50:08]process_action close_receipt [06:50:08]cmd_close_receipt [06:50:08]MH_GetDate [06:50:08]Write to MH i2c: F0 00 00 AA 8F 28 [06:50:08]Write i2c OK [06:50:08]MH_I2C_Read... [06:50:08]Read from MH i2c: F0 [06:50:08]MH_I2C_Read... [06:50:08]Read from MH i2c: F0 09 00 [06:50:08]MH_I2C_Read... [06:50:08]Read from MH i2c: F0 09 00 AA 8F 00 AB 7F 72 66 BD 8F 7C 64 5F [06:50:08]GetLastDocTimeStamp 1718779647 [06:50:08]current date 1718779819 [06:50:08]FM_GetShiftState [06:50:08]SAM_PROTO_GetShiftState [06:50:08]wFMCommunicate request_size=4 [06:50:08]MH_SAM_APDU [06:50:08]CAPDU: 80 13 01 00 [06:50:08]Write to MH i2c: E2 08 00 AB 8F 80 13 01 00 00 00 00 00 B7 [06:50:08]Write i2c OK [06:50:08]MH_I2C_Read... [06:50:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:50:08]Read from MH i2c: E2 [06:50:08]MH_I2C_Read... [06:50:08]Read from MH i2c: E2 0E 00 [06:50:08]MH_I2C_Read... [06:50:08]Read from MH i2c: E2 0E 00 AB 8F 00 09 00 01 04 26 72 66 00 00 00 00 90 00 C5 [06:50:08]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [06:50:08]wFMCommunicate OK [06:50:08]SAM_PROTO_GetShiftState done [06:50:08]FM_GetShiftState done [06:50:08]opened in 1718756868 [06:50:08]opened+sec_in_day 1718843268 [06:50:08]quantity*price = 100064 [06:50:08]sum+1 = 100066 [06:50:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.65 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 21 19.06.2024 06:50 Смена: 353 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103591 ФПД: 83491312170993 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T065019&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103591&fm=83491312170993&tin=02508201610067®Number=0000000000092785&sum=100000 [06:50:09]StoreToDocumentArchive [06:50:09]shift 353 fd 103591 [06:50:09]save to /storage/0353/doc_00103591 [06:50:09]save last doc name /storage/0353/doc_00103591 to /storage/kkm_last_doc_name [06:50:09]save OK [06:50:09]Clear old archive folders... [06:50:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [06:50:09]tlvbuf is 014A3770 [06:50:09]SAM_PROTO_ClearQueue [06:50:09]wFMCommunicate request_size=4 [06:50:09]MH_SAM_APDU [06:50:09]CAPDU: 80 09 00 00 [06:50:09]Write to MH i2c: E2 08 00 B8 8F 80 09 00 00 00 00 00 00 B9 [06:50:09]Write i2c OK [06:50:09]MH_I2C_Read... [06:50:09]Read from MH i2c: E2 [06:50:09]MH_I2C_Read... [06:50:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:50:09]Read from MH i2c: E2 03 00 [06:50:09]MH_I2C_Read... [06:50:09]Read from MH i2c: E2 03 00 B8 8F 00 90 00 BB [06:50:09]RAPDU: 90 00 [06:50:09]wFMCommunicate OK [06:50:09]SAM_PROTO_ClearQueue done [06:50:09]KKMCreateOFDPacket [06:50:09]OFDProtocolAddRootSTLVToBuf [06:50:09]FM_MakeSignedData [06:50:09]FM_MakeSignedData [06:50:09]SAM_PROTO_SignData [06:50:09]wFMCommunicate request_size=4 [06:50:09]MH_SAM_APDU [06:50:09]CAPDU: 80 0D 01 02 [06:50:09]Write to MH i2c: E2 08 00 B9 8F 80 0D 01 02 00 00 00 00 C1 [06:50:09]Write i2c OK [06:50:09]MH_I2C_Read... [06:50:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:50:09]Read from MH i2c: E2 [06:50:09]MH_I2C_Read... [06:50:09]Read from MH i2c: E2 03 00 [06:50:09]MH_I2C_Read... [06:50:09]Read from MH i2c: E2 03 00 B9 8F 00 90 00 BC [06:50:09]RAPDU: 90 00 [06:50:09]wFMCommunicate OK [06:50:09]wFMCommunicate request_size=255 [06:50:09]MH_SAM_APDU [06:50: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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 AB 7F 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 A7 94 01 00 35 04 06 00 4B [06:50:09]Write to MH i2c: E2 02 01 BA 8F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 AB 7F 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 A7 94 01 00 35 04 06 00 4B 00 00 CB [06:50:09]Write i2c OK [06:50:09]MH_I2C_Read... [06:50:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:50:10]Read from MH i2c: E2 [06:50:10]MH_I2C_Read... [06:50:10]Read from MH i2c: E2 03 00 [06:50:10]MH_I2C_Read... [06:50:10]Read from MH i2c: E2 03 00 BA 8F 00 90 00 BD [06:50:10]RAPDU: 90 00 [06:50:10]wFMCommunicate OK [06:50:10]wFMCommunicate request_size=10 [06:50:10]MH_SAM_APDU [06:50:10]CAPDU: 80 0D 02 02 05 EF 56 00 F7 F1 [06:50:10]Write to MH i2c: E2 0D 00 BB 8F 80 0D 02 02 05 00 EF 56 00 F7 F1 00 00 FB [06:50:10]Write i2c OK [06:50:10]MH_I2C_Read... [06:50:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:50:10]Read from MH i2c: E2 [06:50:10]MH_I2C_Read... [06:50:10]Read from MH i2c: E2 03 00 [06:50:10]MH_I2C_Read... [06:50:10]Read from MH i2c: E2 03 00 BB 8F 00 90 00 BE [06:50:10]RAPDU: 90 00 [06:50:10]wFMCommunicate OK [06:50:10]wFMCommunicate request_size=4 [06:50:10]MH_SAM_APDU [06:50:10]CAPDU: 80 0D 03 02 [06:50:10]Write to MH i2c: E2 08 00 BC 8F 80 0D 03 02 00 00 00 00 C6 [06:50:10]Write i2c OK [06:50:10]MH_I2C_Read... [06:50:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:50:10]Read from MH i2c: E2 [06:50:10]MH_I2C_Read... [06:50:10]Read from MH i2c: E2 0B 00 [06:50:10]MH_I2C_Read... [06:50:10]Read from MH i2c: E2 0B 00 BC 8F 00 7D F3 44 7C 5A C4 2B 55 90 00 95 [06:50:10]RAPDU: 7D F3 44 7C 5A C4 2B 55 90 00 [06:50:10]wFMCommunicate OK [06:50:10]SAM_PROTO_SignData done [06:50:10]FM_MakeSignedData done [06:50:10]CreateOFDProtocolMessage [06:50:10]wFMCommunicate request_size=4 [06:50:10]MH_SAM_APDU [06:50:10]CAPDU: 80 11 00 00 [06:50:10]Write to MH i2c: E2 08 00 BD 8F 80 11 00 00 00 00 00 00 C6 [06:50:10]Write i2c OK [06:50:10]MH_I2C_Read... [06:50:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:50:10]Read from MH i2c: E2 [06:50:10]MH_I2C_Read... [06:50:10]Read from MH i2c: E2 17 00 [06:50:10]MH_I2C_Read... [06:50:10]Read from MH i2c: E2 17 00 BD 8F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 19 [06:50:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [06:50:10]wFMCommunicate OK [06:50:10]CreateOFDProtocolMessage done [06:50:10]OFDSenderStorePacket 103591 [06:50:10]StoreOFDPacket docnum=103591 [06:50:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 34 BF 07 01 28 EF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 AB 7F 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 A7 94 01 00 35 04 06 00 4B EF 56 00 F7 F1 7D F3 44 7C 5A C4 2B 55 [06:50:10]CheckFolder [06:50:10]dirname=/storage/ofd_packets [06:50:10]CheckFolder done [06:50:10]ProducePacketName [06:50:10]name=ofd_packets/00103591 [06:50:10]NVStorageSaveData ofd_packets/00103591 [06:50:10]File name is /storage/ofd_packets/00103591 [06:50:10]Write 301 bytes [06:50:10]NVStorageSaveData done [06:50:10]OFDSenderStorePacket done [06:50:10]KKMCreateOFDPacket done [06:50:10]NVStorageSaveData kkm_last_timestamp [06:50:10]File name is /storage/kkm_last_timestamp [06:50:10]Write 4 bytes [06:50:10]NVStorageSaveData done [06:50:10]ExternCall_PrintAddStr [06:50:10]wPrintStart [06:50:10]Write to MH i2c: 01 00 00 BE 8F 4D [06:50:10]Write i2c OK [06:50:10]MH_I2C_Read... [06:50:10]Read from MH i2c: 01 [06:50:10]MH_I2C_Read... [06:50:10]Read from MH i2c: 01 07 00 [06:50:10]MH_I2C_Read... [06:50:10]Read from MH i2c: 01 07 00 BE 8F 00 00 00 00 00 FF 0F 62 [06:50:10]RasterBufferAndPrint [06:50:10]line Счет N : (1)672810 [06:50:10]line ИНН: 02508201610067 [06:50:10]line Контрольно-Кассовый Чек [06:50:10]line ПРОДАЖА [06:50:10]line ТРК (МРК, ГНК) : 42 [06:50:10]line Товар: 2710124130 [06:50:10]line Аи-92-К-5 [06:50:10]line 15.070 * 66.40 [06:50:10]line = 1000.65 [06:50:10]line НДС 12% НСП 1% [06:50:10]line > о реализуемом товаре [06:50:10]line ОКРУГЛЕНИЕ: -0.65 [06:50:10]line ИТОГО: 1000.00 [06:50:10]line Внесено: 1000.00 [06:50:10]line СДАЧА: 0.00 [06:50:10]line НСП 1% : 8.85 [06:50:10]line НДС 12% : 106.26 [06:50:10]line Наличными: 1000.00 [06:50:10]line Безнал.: 0.00 [06:50:10]line Место: АЗС № 120 "Партнер Нефть" [06:50:10]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [06:50:10]line СНО: Общий режим [06:50:10]line Чек 21 19.06.2024 06:50 [06:50:10]line Смена: 353 ФФД: 1.0 [06:50:10]line ЗНМ: 0300000164 [06:50:10]line РНМ: 0000000000092785 [06:50:10]line Версия ККМ: 001 [06:50:10]line ФМ: 0000000000875093 [06:50:10]line ФД: 103591 [06:50:10]line ФПД: 83491312170993 [06:50:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T065019&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103591&fm=83491312170993&tin=02508201610067®Number=0000000000092785&sum=100000 [06:50:10]OFD Sender: Processing packet 103591 [packets to send 17, broken 16] [06:50:10]ProducePacketName [06:50:10]name=ofd_packets/00103591 [06:50:10]OFD Sender: To server: pG, [06:50:10]CommunicateWithHost lk.salyk.kg:30040 [06:50:10]ConnectInit lk.salyk.kg [06:50:10]written 0, free lines is 4095 [06:50:10]Connected sock=9 [06:50: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 39 33 0F 01 00 00 34 BF 07 01 28 EF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 AB 7F 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 A7 94 01 00 35 04 06 00 4B EF 56 00 F7 F1 7D F3 44 7C 5A C4 2B 55 [06:50: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 39 33 4F 00 00 00 08 79 47 00 5C 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 39 33 10 04 04 00 A7 94 01 00 F4 03 04 00 35 26 72 66 B6 04 01 00 00 C1 FD 17 A8 5C AC 0E 40 [06:50:11]CommunicateWithHost err = 0 [06:50:11]CheckOFDResponse [06:50:11]1017 (14) - 77093643461234 [06:50:11]1041 (16) - 0000000000875093 [06:50:11]1040 (4) - 103591 [06:50:11]1012 (4) - 19.06.2024 00:28 [06:50:11]1206 (1) - 0 [06:50:11]OFD Sender: Remove packet 103591 [06:50:11]ProducePacketName [06:50:11]name=ofd_packets/00103591 [06:50:11]NVStorageDeleteData [06:50:11]Write to MH i2c: 01 00 00 E9 8F 78 [06:50:11]Write i2c OK [06:50:11]MH_I2C_Read... [06:50:11]Read from MH i2c: 01 [06:50:11]MH_I2C_Read... [06:50:11]Read from MH i2c: 01 07 00 [06:50:11]MH_I2C_Read... [06:50:11]Read from MH i2c: 01 07 00 E9 8F 00 00 00 00 00 E7 0C 72 [06:50:11]RasterBufferAndPrint [06:50:11]line [06:50:11]line [06:50:11]line [06:50:11]line [06:50:11]line [06:50:11]written 0, free lines is 3310 [06:50:11]MH_Cut [06:50:11]Write to MH i2c: D1 01 00 F0 8F 01 51 [06:50:11]Write i2c OK [06:50:11]MH_I2C_Read... [06:50:11]Read from MH i2c: D1 [06:50:11]MH_I2C_Read... [06:50:11]Read from MH i2c: D1 01 00 [06:50:11]MH_I2C_Read... [06:50:11]Read from MH i2c: D1 01 00 F0 8F 00 50 [06:50:11]Write to MH i2c: 01 00 00 F1 8F 80 [06:50:11]Write i2c OK [06:50:11]MH_I2C_Read... [06:50:11]OFD Sender: No OFD packet to send [06:50:11]*** Cut start [06:50:11]*** Partial cut [06:50:11]*** CUTSNS_PIN = 1 [06:50:11]*** CUTSNS_PIN = 0 [06:50:12]*** Brake cut motor [06:50:12]Read from MH i2c: 01 [06:50:12]MH_I2C_Read... [06:50:12]*** Stop cut motor [06:50:12]*** Cut end [06:50:12]Read from MH i2c: 01 07 00 [06:50:12]MH_I2C_Read... [06:50:12]Read from MH i2c: 01 07 00 F1 8F 00 00 00 00 00 FF 0F 95 [06:50:12]process_action close_receipt done [06:50:12]requested_data is exist [06:50:12]produce_requested_data [06:50:12]requested_item fm.sn is exist - process it [06:50:12]wFMCommunicate request_size=4 [06:50:12]MH_SAM_APDU [06:50:12]CAPDU: 80 11 00 00 [06:50:12]Write to MH i2c: E2 08 00 F2 8F 80 11 00 00 00 00 00 00 FB [06:50:12]Write i2c OK [06:50:12]MH_I2C_Read... [06:50:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:50:12]Read from MH i2c: E2 [06:50:12]MH_I2C_Read... [06:50:12]Read from MH i2c: E2 17 00 [06:50:12]MH_I2C_Read... [06:50:12]Read from MH i2c: E2 17 00 F2 8F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 4E [06:50:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [06:50:12]wFMCommunicate OK [06:50:12]requested_item fd.num is exist - process it [06:50:12]SAM_PROTO_GetFieldsCounters [06:50:12]wFMCommunicate request_size=4 [06:50:12]MH_SAM_APDU [06:50:12]CAPDU: 80 13 00 00 [06:50:12]Write to MH i2c: E2 08 00 F3 8F 80 13 00 00 00 00 00 00 FE [06:50:12]Write i2c OK [06:50:12]MH_I2C_Read... [06:50:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:50:12]Read from MH i2c: E2 [06:50:12]MH_I2C_Read... [06:50:12]Read from MH i2c: E2 62 00 [06:50:12]MH_I2C_Read... [06:50:12]Read from MH i2c: E2 62 00 F3 8F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 A7 94 01 00 0E 04 04 00 61 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 02 [06:50: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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 A7 94 01 00 0E 04 04 00 61 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 [06:50:12]wFMCommunicate OK [06:50:12]SAM_PROTO_GetFieldsCounters done [06:50:12]requested_item shift.num is exist - process it [06:50:12]requested_item shift.opened is exist - process it [06:50:12]req_shift_opened [06:50:12]FM_GetShiftState [06:50:12]SAM_PROTO_GetShiftState [06:50:12]wFMCommunicate request_size=4 [06:50:12]MH_SAM_APDU [06:50:12]CAPDU: 80 13 01 00 [06:50:12]Write to MH i2c: E2 08 00 F4 8F 80 13 01 00 00 00 00 00 00 [06:50:12]Write i2c OK [06:50:12]MH_I2C_Read... [06:50:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:50:12]Read from MH i2c: E2 [06:50:12]MH_I2C_Read... [06:50:12]Read from MH i2c: E2 0E 00 [06:50:12]MH_I2C_Read... [06:50:12]Read from MH i2c: E2 0E 00 F4 8F 00 09 00 01 04 26 72 66 00 00 00 00 90 00 0E [06:50:12]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [06:50:12]wFMCommunicate OK [06:50:12]SAM_PROTO_GetShiftState done [06:50:12]FM_GetShiftState done [06:50:12]req_shift_opened done [06:50:12]requested_item shift.open_date is exist - process it [06:50:12]req_shift_open_date [06:50:12]req_shift_open_date done [06:50:12]produce_requested_data done [06:50:12]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103591,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [06:50:12]process_action_free close_receipt [06:50:12]json_value_free [06:50:12]json_value_free done [06:50:12]process_json_proto returns [06:50:12]Send response to host [06:50:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103591,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [06:50:12]free response buf [06:50:12]execute_script done [06:50:12]execute_script returns [06:50:12]free content buf [06:50:12]Sock 7.Close socket [06:50:12]Sock 7.Thread stoped [06:50:16]OFD Sender: No OFD packet to send [06:50:21]OFD Sender: No OFD packet to send [06:50:26]OFD Sender: No OFD packet to send [06:50:31]OFD Sender: No OFD packet to send [06:50:36]OFD Sender: No OFD packet to send [06:50:41]OFD Sender: No OFD packet to send [06:50:46]OFD Sender: No OFD packet to send [06:50:51]OFD Sender: No OFD packet to send [06:50:56]OFD Sender: No OFD packet to send [06:51:01]OFD Sender: No OFD packet to send [06:51:06]OFD Sender: No OFD packet to send [06:51:11]OFD Sender: No OFD packet to send [06:51:16]OFD Sender: No OFD packet to send [06:51:21]OFD Sender: No OFD packet to send [06:51:26]OFD Sender: No OFD packet to send [06:51:31]OFD Sender: No OFD packet to send [06:51:36]OFD Sender: No OFD packet to send [06:51:41]OFD Sender: No OFD packet to send [06:51:46]OFD Sender: No OFD packet to send [06:51:51]OFD Sender: No OFD packet to send [06:51:56]OFD Sender: No OFD packet to send [06:52:01]OFD Sender: No OFD packet to send [06:52:06]OFD Sender: No OFD packet to send [06:52:11]OFD Sender: No OFD packet to send [06:52:16]OFD Sender: No OFD packet to send [06:52:21]OFD Sender: No OFD packet to send [06:52:26]OFD Sender: No OFD packet to send [06:52:31]OFD Sender: No OFD packet to send [06:52:36]OFD Sender: No OFD packet to send [06:52:41]OFD Sender: No OFD packet to send [06:52:46]OFD Sender: No OFD packet to send [06:52:51]OFD Sender: No OFD packet to send [06:52:56]OFD Sender: No OFD packet to send [06:53:01]OFD Sender: No OFD packet to send [06:53:06]OFD Sender: No OFD packet to send [06:53:11]OFD Sender: No OFD packet to send [06:53:16]OFD Sender: No OFD packet to send [06:53:21]OFD Sender: No OFD packet to send [06:53:26]OFD Sender: No OFD packet to send [06:53:31]OFD Sender: No OFD packet to send [06:53:36]OFD Sender: No OFD packet to send [06:53:41]OFD Sender: No OFD packet to send [06:53:46]OFD Sender: No OFD packet to send [06:53:51]OFD Sender: No OFD packet to send [06:53:56]OFD Sender: No OFD packet to send [06:54:01]OFD Sender: No OFD packet to send [06:54:06]OFD Sender: No OFD packet to send [06:54:11]OFD Sender: No OFD packet to send [06:54:16]OFD Sender: No OFD packet to send [06:54:21]OFD Sender: No OFD packet to send [06:54:26]OFD Sender: No OFD packet to send [06:54:31]OFD Sender: No OFD packet to send [06:54:36]OFD Sender: No OFD packet to send [06:54:41]OFD Sender: No OFD packet to send [06:54:46]OFD Sender: No OFD packet to send [06:54:51]OFD Sender: No OFD packet to send [06:54:56]OFD Sender: No OFD packet to send [06:55:01]OFD Sender: No OFD packet to send [06:55:06]OFD Sender: No OFD packet to send [06:55:11]OFD Sender: No OFD packet to send [06:55:16]OFD Sender: No OFD packet to send [06:55:21]OFD Sender: No OFD packet to send [06:55:26]OFD Sender: No OFD packet to send [06:55:31]OFD Sender: No OFD packet to send [06:55:36]OFD Sender: No OFD packet to send [06:55:41]OFD Sender: No OFD packet to send [06:55:46]OFD Sender: No OFD packet to send [06:55:51]OFD Sender: No OFD packet to send [06:55:56]OFD Sender: No OFD packet to send [06:56:01]OFD Sender: No OFD packet to send [06:56:06]OFD Sender: No OFD packet to send [06:56:11]OFD Sender: No OFD packet to send [06:56:16]OFD Sender: No OFD packet to send [06:56:21]OFD Sender: No OFD packet to send [06:56:26]OFD Sender: No OFD packet to send [06:56:31]OFD Sender: No OFD packet to send [06:56:36]OFD Sender: No OFD packet to send [06:56:41]OFD Sender: No OFD packet to send [06:56:46]OFD Sender: No OFD packet to send [06:56:51]OFD Sender: No OFD packet to send [06:56:56]OFD Sender: No OFD packet to send [06:57:01]OFD Sender: No OFD packet to send [06:57:06]OFD Sender: No OFD packet to send [06:57:11]OFD Sender: No OFD packet to send [06:57:16]OFD Sender: No OFD packet to send [06:57:21]OFD Sender: No OFD packet to send [06:57:26]OFD Sender: No OFD packet to send [06:57:31]OFD Sender: No OFD packet to send [06:57:36]OFD Sender: No OFD packet to send [06:57:41]OFD Sender: No OFD packet to send [06:57:46]OFD Sender: No OFD packet to send [06:57:51]OFD Sender: No OFD packet to send [06:57:56]OFD Sender: No OFD packet to send [06:58:01]OFD Sender: No OFD packet to send [06:58:06]OFD Sender: No OFD packet to send [06:58:11]OFD Sender: No OFD packet to send [06:58:16]OFD Sender: No OFD packet to send [06:58:22]OFD Sender: No OFD packet to send [06:58:27]OFD Sender: No OFD packet to send [06:58:32]OFD Sender: No OFD packet to send [06:58:37]OFD Sender: No OFD packet to send [06:58:42]OFD Sender: No OFD packet to send [06:58:47]OFD Sender: No OFD packet to send [06:58:52]OFD Sender: No OFD packet to send [06:58:57]OFD Sender: No OFD packet to send [06:59:02]OFD Sender: No OFD packet to send [06:59:07]OFD Sender: No OFD packet to send [06:59:12]OFD Sender: No OFD packet to send [06:59:17]OFD Sender: No OFD packet to send [06:59:22]OFD Sender: No OFD packet to send [06:59:27]OFD Sender: No OFD packet to send [06:59:32]OFD Sender: No OFD packet to send [06:59:37]OFD Sender: No OFD packet to send [06:59:42]OFD Sender: No OFD packet to send [06:59:47]OFD Sender: No OFD packet to send [06:59:52]OFD Sender: No OFD packet to send [06:59:57]OFD Sender: No OFD packet to send [07:00:02]OFD Sender: No OFD packet to send [07:00:07]OFD Sender: No OFD packet to send [07:00:12]OFD Sender: No OFD packet to send [07:00:17]OFD Sender: No OFD packet to send [07:00:22]OFD Sender: No OFD packet to send [07:00:27]OFD Sender: No OFD packet to send [07:00:32]OFD Sender: No OFD packet to send [07:00:37]OFD Sender: No OFD packet to send [07:00:42]OFD Sender: No OFD packet to send [07:00:47]OFD Sender: No OFD packet to send [07:00:52]OFD Sender: No OFD packet to send [07:00:57]OFD Sender: No OFD packet to send [07:01:02]OFD Sender: No OFD packet to send [07:01:07]OFD Sender: No OFD packet to send [07:01:12]OFD Sender: No OFD packet to send [07:01:17]OFD Sender: No OFD packet to send [07:01:22]OFD Sender: No OFD packet to send [07:01:25]accept exits with 10 [07:01:25]New connection [07:01:25]New thread 3067084132 created [07:01:25]Thread 3067227492 joined [07:01:25]Waiting for new connection... [07:01:25] Sock 10.Parse request [07:01:25]Sock 10.Check first char [07:01:25]Sock 10.First char is OK [07:01:25]request: POST /json_proto HTTP/1.0 [07:01:25]Method: POST [07:01:25]URL: /json_proto [07:01:25]Method is POST - this is cgi request [07:01:25]url: /json_proto [07:01:25]query_string will be loaded in cgi processing [07:01:25]execute_cgi json_proto POST (null) [07:01:25]execute_cgi path=json_proto method=POST [07:01:25]POST find Content-Length [07:01:25]Host: 172.17.38.133:8080 [07:01:25]Content-Length: 687 [07:01:25]Content-Type: application/json [07:01:25] [07:01:25]POST finish read [07:01:25]Found Content-Length = 687 [07:01:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672811", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 41.160, "sum" : 3000.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:01:25]execute_script... [07:01: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)672811", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 41.160, "sum" : 3000.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:01:25]POST & json_proto [07:01:25]process_json_proto [07:01:25]json parsed OK: [07:01:25]protocol is kg_v1.0 [07:01:25]action value=close_receipt [07:01:25]process_action close_receipt [07:01:25]cmd_close_receipt [07:01:25]MH_GetDate [07:01:25]Write to MH i2c: F0 00 00 F5 8F 73 [07:01:25]Write i2c OK [07:01:25]MH_I2C_Read... [07:01:25]Read from MH i2c: F0 [07:01:25]MH_I2C_Read... [07:01:25]Read from MH i2c: F0 09 00 [07:01:25]MH_I2C_Read... [07:01:25]Read from MH i2c: F0 09 00 F5 8F 00 50 82 72 66 BD 8F 7C 64 52 [07:01:25]GetLastDocTimeStamp 1718779819 [07:01:25]current date 1718780496 [07:01:25]FM_GetShiftState [07:01:25]SAM_PROTO_GetShiftState [07:01:25]wFMCommunicate request_size=4 [07:01:25]MH_SAM_APDU [07:01:25]CAPDU: 80 13 01 00 [07:01:25]Write to MH i2c: E2 08 00 F6 8F 80 13 01 00 00 00 00 00 02 [07:01:25]Write i2c OK [07:01:25]MH_I2C_Read... [07:01:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:01:25]Read from MH i2c: E2 [07:01:25]MH_I2C_Read... [07:01:25]Read from MH i2c: E2 0E 00 [07:01:25]MH_I2C_Read... [07:01:25]Read from MH i2c: E2 0E 00 F6 8F 00 09 00 01 04 26 72 66 00 00 00 00 90 00 10 [07:01:25]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [07:01:25]wFMCommunicate OK [07:01:25]SAM_PROTO_GetShiftState done [07:01:25]FM_GetShiftState done [07:01:25]opened in 1718756868 [07:01:25]opened+sec_in_day 1718843268 [07:01:25]quantity*price = 300056 [07:01:25]sum+1 = 300057 [07:01:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.56 ИТОГО: 3000.00 Внесено: 3000.00 СДАЧА: 0.00 НСП 1% : 26.55 НДС 12% : 318.64 Наличными: 3000.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 22 19.06.2024 07:01 Смена: 353 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103592 ФПД: 205364746364128 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T070136&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103592&fm=205364746364128&tin=02508201610067®Number=0000000000092785&sum=300000 [07:01:26]StoreToDocumentArchive [07:01:26]shift 353 fd 103592 [07:01:26]save to /storage/0353/doc_00103592 [07:01:26]save last doc name /storage/0353/doc_00103592 to /storage/kkm_last_doc_name [07:01:26]save OK [07:01:26]Clear old archive folders... [07:01:26]ProcessDocumentItem done err = 0, tmpTLVsize=252 [07:01:26]tlvbuf is B6F1DDF0 [07:01:26]SAM_PROTO_ClearQueue [07:01:26]wFMCommunicate request_size=4 [07:01:26]MH_SAM_APDU [07:01:26]CAPDU: 80 09 00 00 [07:01:26]Write to MH i2c: E2 08 00 03 90 80 09 00 00 00 00 00 00 05 [07:01:26]Write i2c OK [07:01:26]MH_I2C_Read... [07:01:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:01:26]Read from MH i2c: E2 [07:01:26]MH_I2C_Read... [07:01:26]Read from MH i2c: E2 03 00 [07:01:26]MH_I2C_Read... [07:01:26]Read from MH i2c: E2 03 00 03 90 00 90 00 07 [07:01:26]RAPDU: 90 00 [07:01:26]wFMCommunicate OK [07:01:26]SAM_PROTO_ClearQueue done [07:01:26]KKMCreateOFDPacket [07:01:26]OFDProtocolAddRootSTLVToBuf [07:01:26]FM_MakeSignedData [07:01:26]FM_MakeSignedData [07:01:26]SAM_PROTO_SignData [07:01:26]wFMCommunicate request_size=4 [07:01:26]MH_SAM_APDU [07:01:26]CAPDU: 80 0D 01 02 [07:01:26]Write to MH i2c: E2 08 00 04 90 80 0D 01 02 00 00 00 00 0D [07:01:26]Write i2c OK [07:01:26]MH_I2C_Read... [07:01:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:01:26]Read from MH i2c: E2 [07:01:26]MH_I2C_Read... [07:01:26]Read from MH i2c: E2 03 00 [07:01:26]MH_I2C_Read... [07:01:26]Read from MH i2c: E2 03 00 04 90 00 90 00 08 [07:01:26]RAPDU: 90 00 [07:01:26]wFMCommunicate OK [07:01:26]wFMCommunicate request_size=255 [07:01:26]MH_SAM_APDU [07:01:26]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 C8 A0 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 18 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 50 82 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 A8 94 01 00 35 04 06 00 [07:01:26]Write to MH i2c: E2 02 01 05 90 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 C8 A0 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 18 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 50 82 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 A8 94 01 00 35 04 06 00 00 00 B0 [07:01:26]Write i2c OK [07:01:26]MH_I2C_Read... [07:01:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:01:26]Read from MH i2c: E2 [07:01:26]MH_I2C_Read... [07:01:26]Read from MH i2c: E2 03 00 [07:01:26]MH_I2C_Read... [07:01:26]Read from MH i2c: E2 03 00 05 90 00 90 00 09 [07:01:26]RAPDU: 90 00 [07:01:26]wFMCommunicate OK [07:01:26]wFMCommunicate request_size=11 [07:01:26]MH_SAM_APDU [07:01:26]CAPDU: 80 0D 02 02 06 BA C7 34 C1 A4 E0 [07:01:26]Write to MH i2c: E2 0E 00 06 90 80 0D 02 02 06 00 BA C7 34 C1 A4 E0 00 00 16 [07:01:26]Write i2c OK [07:01:26]MH_I2C_Read... [07:01:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:01:26]Read from MH i2c: E2 [07:01:26]MH_I2C_Read... [07:01:26]Read from MH i2c: E2 03 00 [07:01:26]MH_I2C_Read... [07:01:26]Read from MH i2c: E2 03 00 06 90 00 90 00 0A [07:01:26]RAPDU: 90 00 [07:01:26]wFMCommunicate OK [07:01:26]wFMCommunicate request_size=4 [07:01:26]MH_SAM_APDU [07:01:26]CAPDU: 80 0D 03 02 [07:01:26]Write to MH i2c: E2 08 00 07 90 80 0D 03 02 00 00 00 00 12 [07:01:26]Write i2c OK [07:01:26]MH_I2C_Read... [07:01:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:01:27]Read from MH i2c: E2 [07:01:27]MH_I2C_Read... [07:01:27]Read from MH i2c: E2 0B 00 [07:01:27]MH_I2C_Read... [07:01:27]Read from MH i2c: E2 0B 00 07 90 00 3F C2 F7 77 80 EA 7A 1D 90 00 83 [07:01:27]RAPDU: 3F C2 F7 77 80 EA 7A 1D 90 00 [07:01:27]wFMCommunicate OK [07:01:27]SAM_PROTO_SignData done [07:01:27]FM_MakeSignedData done [07:01:27]CreateOFDProtocolMessage [07:01:27]wFMCommunicate request_size=4 [07:01:27]MH_SAM_APDU [07:01:27]CAPDU: 80 11 00 00 [07:01:27]Write to MH i2c: E2 08 00 08 90 80 11 00 00 00 00 00 00 12 [07:01:27]Write i2c OK [07:01:27]MH_I2C_Read... [07:01:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:01:27]Read from MH i2c: E2 [07:01:27]MH_I2C_Read... [07:01:27]Read from MH i2c: E2 17 00 [07:01:27]MH_I2C_Read... [07:01:27]Read from MH i2c: E2 17 00 08 90 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 65 [07:01:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [07:01:27]wFMCommunicate OK [07:01:27]CreateOFDProtocolMessage done [07:01:27]OFDSenderStorePacket 103592 [07:01:27]StoreOFDPacket docnum=103592 [07:01:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 6A 76 08 01 F2 55 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 C8 A0 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 18 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 50 82 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 A8 94 01 00 35 04 06 00 BA C7 34 C1 A4 E0 3F C2 F7 77 80 EA 7A 1D [07:01:27]CheckFolder [07:01:27]dirname=/storage/ofd_packets [07:01:27]CheckFolder done [07:01:27]ProducePacketName [07:01:27]name=ofd_packets/00103592 [07:01:27]NVStorageSaveData ofd_packets/00103592 [07:01:27]File name is /storage/ofd_packets/00103592 [07:01:27]Write 302 bytes [07:01:27]NVStorageSaveData done [07:01:27]OFDSenderStorePacket done [07:01:27]KKMCreateOFDPacket done [07:01:27]NVStorageSaveData kkm_last_timestamp [07:01:27]File name is /storage/kkm_last_timestamp [07:01:27]Write 4 bytes [07:01:27]NVStorageSaveData done [07:01:27]ExternCall_PrintAddStr [07:01:27]wPrintStart [07:01:27]Write to MH i2c: 01 00 00 09 90 99 [07:01:27]Write i2c OK [07:01:27]MH_I2C_Read... [07:01:27]Read from MH i2c: 01 [07:01:27]MH_I2C_Read... [07:01:27]Read from MH i2c: 01 07 00 [07:01:27]MH_I2C_Read... [07:01:27]Read from MH i2c: 01 07 00 09 90 00 00 00 00 00 FF 0F AE [07:01:27]RasterBufferAndPrint [07:01:27]line Счет N : (1)672811 [07:01:27]line ИНН: 02508201610067 [07:01:27]line Контрольно-Кассовый Чек [07:01:27]line ПРОДАЖА [07:01:27]line ТРК (МРК, ГНК) : 11 [07:01:27]line Товар: 2710194210 [07:01:27]line ДТ(л)-К-5 [07:01:27]line 41.160 * 72.90 [07:01:27]line = 3000.56 [07:01:27]line НДС 12% НСП 1% [07:01:27]line > о реализуемом товаре [07:01:27]line ОКРУГЛЕНИЕ: -0.56 [07:01:27]line ИТОГО: 3000.00 [07:01:27]line Внесено: 3000.00 [07:01:27]line СДАЧА: 0.00 [07:01:27]line НСП 1% : 26.55 [07:01:27]line НДС 12% : 318.64 [07:01:27]line Наличными: 3000.00 [07:01:27]line Безнал.: 0.00 [07:01:27]line Место: АЗС № 120 "Партнер Нефть" [07:01:27]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [07:01:27]line СНО: Общий режим [07:01:27]line Чек 22 19.06.2024 07:01 [07:01:27]line Смена: 353 ФФД: 1.0 [07:01:27]line ЗНМ: 0300000164 [07:01:27]line РНМ: 0000000000092785 [07:01:27]line Версия ККМ: 001 [07:01:27]line ФМ: 0000000000875093 [07:01:27]line ФД: 103592 [07:01:27]line ФПД: 205364746364128 [07:01:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T070136&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103592&fm=205364746364128&tin=02508201610067®Number=0000000000092785&sum=300000 [07:01:27]OFD Sender: Processing packet 103592 [packets to send 17, broken 16] [07:01:27]ProducePacketName [07:01:27]name=ofd_packets/00103592 [07:01:27]OFD Sender: To server: pG, [07:01:27]CommunicateWithHost lk.salyk.kg:30040 [07:01:27]ConnectInit lk.salyk.kg [07:01:27]written 0, free lines is 4095 [07:01:27]Connected sock=9 [07:01: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 39 33 10 01 00 00 6A 76 08 01 F2 55 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 C8 A0 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 18 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 50 82 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 A8 94 01 00 35 04 06 00 BA C7 34 C1 A4 E0 3F C2 F7 77 80 EA 7A 1D [07:01: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 39 33 4F 00 00 00 67 5D 47 00 95 4D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 A8 94 01 00 F4 03 04 00 DA 28 72 66 B6 04 01 00 00 91 0C 86 71 71 FF 0A F6 [07:01:27]CommunicateWithHost err = 0 [07:01:27]CheckOFDResponse [07:01:27]1017 (14) - 77093643461234 [07:01:27]1041 (16) - 0000000000875093 [07:01:27]1040 (4) - 103592 [07:01:27]1012 (4) - 19.06.2024 00:39 [07:01:27]1206 (1) - 0 [07:01:27]OFD Sender: Remove packet 103592 [07:01:27]ProducePacketName [07:01:27]name=ofd_packets/00103592 [07:01:27]NVStorageDeleteData [07:01:27]Write to MH i2c: 01 00 00 34 90 C4 [07:01:27]Write i2c OK [07:01:27]MH_I2C_Read... [07:01:27]Read from MH i2c: 01 [07:01:27]MH_I2C_Read... [07:01:27]Read from MH i2c: 01 07 00 [07:01:27]MH_I2C_Read... [07:01:27]Read from MH i2c: 01 07 00 34 90 00 00 00 00 00 E2 0C B9 [07:01:27]RasterBufferAndPrint [07:01:27]line [07:01:27]line [07:01:27]line [07:01:27]line [07:01:27]line [07:01:27]written 0, free lines is 3304 [07:01:27]MH_Cut [07:01:27]Write to MH i2c: D1 01 00 3B 90 01 9D [07:01:27]Write i2c OK [07:01:27]MH_I2C_Read... [07:01:27]Read from MH i2c: D1 [07:01:27]MH_I2C_Read... [07:01:27]Read from MH i2c: D1 01 00 [07:01:27]MH_I2C_Read... [07:01:27]Read from MH i2c: D1 01 00 3B 90 00 9C [07:01:27]Write to MH i2c: 01 00 00 3C 90 CC [07:01:27]Write i2c OK [07:01:27]MH_I2C_Read... [07:01:28]OFD Sender: No OFD packet to send [07:01:28]*** Cut start [07:01:28]*** Partial cut [07:01:28]*** CUTSNS_PIN = 1 [07:01:28]*** CUTSNS_PIN = 0 [07:01:28]*** Brake cut motor [07:01:29]Read from MH i2c: 01 [07:01:29]MH_I2C_Read... [07:01:29]*** Stop cut motor [07:01:29]*** Cut end [07:01:29]Read from MH i2c: 01 07 00 [07:01:29]MH_I2C_Read... [07:01:29]Read from MH i2c: 01 07 00 3C 90 00 00 00 00 00 FF 0F E1 [07:01:29]process_action close_receipt done [07:01:29]requested_data is exist [07:01:29]produce_requested_data [07:01:29]requested_item fm.sn is exist - process it [07:01:29]wFMCommunicate request_size=4 [07:01:29]MH_SAM_APDU [07:01:29]CAPDU: 80 11 00 00 [07:01:29]Write to MH i2c: E2 08 00 3D 90 80 11 00 00 00 00 00 00 47 [07:01:29]Write i2c OK [07:01:29]MH_I2C_Read... [07:01:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:01:29]Read from MH i2c: E2 [07:01:29]MH_I2C_Read... [07:01:29]Read from MH i2c: E2 17 00 [07:01:29]MH_I2C_Read... [07:01:29]Read from MH i2c: E2 17 00 3D 90 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 9A [07:01:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [07:01:29]wFMCommunicate OK [07:01:29]requested_item fd.num is exist - process it [07:01:29]SAM_PROTO_GetFieldsCounters [07:01:29]wFMCommunicate request_size=4 [07:01:29]MH_SAM_APDU [07:01:29]CAPDU: 80 13 00 00 [07:01:29]Write to MH i2c: E2 08 00 3E 90 80 13 00 00 00 00 00 00 4A [07:01:29]Write i2c OK [07:01:29]MH_I2C_Read... [07:01:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:01:29]Read from MH i2c: E2 [07:01:29]MH_I2C_Read... [07:01:29]Read from MH i2c: E2 62 00 [07:01:29]MH_I2C_Read... [07:01:29]Read from MH i2c: E2 62 00 3E 90 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 A8 94 01 00 0E 04 04 00 61 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 52 [07:01: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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 A8 94 01 00 0E 04 04 00 61 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 [07:01:29]wFMCommunicate OK [07:01:29]SAM_PROTO_GetFieldsCounters done [07:01:29]requested_item shift.num is exist - process it [07:01:29]requested_item shift.opened is exist - process it [07:01:29]req_shift_opened [07:01:29]FM_GetShiftState [07:01:29]SAM_PROTO_GetShiftState [07:01:29]wFMCommunicate request_size=4 [07:01:29]MH_SAM_APDU [07:01:29]CAPDU: 80 13 01 00 [07:01:29]Write to MH i2c: E2 08 00 3F 90 80 13 01 00 00 00 00 00 4C [07:01:29]Write i2c OK [07:01:29]MH_I2C_Read... [07:01:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:01:29]Read from MH i2c: E2 [07:01:29]MH_I2C_Read... [07:01:29]Read from MH i2c: E2 0E 00 [07:01:29]MH_I2C_Read... [07:01:29]Read from MH i2c: E2 0E 00 3F 90 00 09 00 01 04 26 72 66 00 00 00 00 90 00 5A [07:01:29]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [07:01:29]wFMCommunicate OK [07:01:29]SAM_PROTO_GetShiftState done [07:01:29]FM_GetShiftState done [07:01:29]req_shift_opened done [07:01:29]requested_item shift.open_date is exist - process it [07:01:29]req_shift_open_date [07:01:29]req_shift_open_date done [07:01:29]produce_requested_data done [07:01:29]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103592,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [07:01:29]process_action_free close_receipt [07:01:29]json_value_free [07:01:29]json_value_free done [07:01:29]process_json_proto returns [07:01:29]Send response to host [07:01:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103592,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [07:01:29]free response buf [07:01:29]execute_script done [07:01:29]execute_script returns [07:01:29]free content buf [07:01:29]Sock 10.Close socket [07:01:29]Sock 10.Thread stoped [07:01:33]OFD Sender: No OFD packet to send [07:01:38]OFD Sender: No OFD packet to send [07:01:43]OFD Sender: No OFD packet to send [07:01:48]OFD Sender: No OFD packet to send [07:01:53]OFD Sender: No OFD packet to send [07:01:58]OFD Sender: No OFD packet to send [07:02:03]OFD Sender: No OFD packet to send [07:02:08]OFD Sender: No OFD packet to send [07:02:13]OFD Sender: No OFD packet to send [07:02:18]OFD Sender: No OFD packet to send [07:02:23]OFD Sender: No OFD packet to send [07:02:28]OFD Sender: No OFD packet to send [07:02:33]OFD Sender: No OFD packet to send [07:02:38]OFD Sender: No OFD packet to send [07:02:43]OFD Sender: No OFD packet to send [07:02:48]OFD Sender: No OFD packet to send [07:02:53]OFD Sender: No OFD packet to send [07:02:58]OFD Sender: No OFD packet to send [07:03:03]OFD Sender: No OFD packet to send [07:03:08]OFD Sender: No OFD packet to send [07:03:13]OFD Sender: No OFD packet to send [07:03:18]OFD Sender: No OFD packet to send [07:03:23]OFD Sender: No OFD packet to send [07:03:28]OFD Sender: No OFD packet to send [07:03:33]OFD Sender: No OFD packet to send [07:03:38]OFD Sender: No OFD packet to send [07:03:43]OFD Sender: No OFD packet to send [07:03:48]OFD Sender: No OFD packet to send [07:03:53]OFD Sender: No OFD packet to send [07:03:58]OFD Sender: No OFD packet to send [07:04:03]OFD Sender: No OFD packet to send [07:04:08]OFD Sender: No OFD packet to send [07:04:13]OFD Sender: No OFD packet to send [07:04:18]OFD Sender: No OFD packet to send [07:04:23]OFD Sender: No OFD packet to send [07:04:28]OFD Sender: No OFD packet to send [07:04:33]OFD Sender: No OFD packet to send [07:04:38]OFD Sender: No OFD packet to send [07:04:43]OFD Sender: No OFD packet to send [07:04:48]OFD Sender: No OFD packet to send [07:04:53]OFD Sender: No OFD packet to send [07:04:58]OFD Sender: No OFD packet to send [07:05:03]OFD Sender: No OFD packet to send [07:05:08]OFD Sender: No OFD packet to send [07:05:13]OFD Sender: No OFD packet to send [07:05:18]OFD Sender: No OFD packet to send [07:05:23]OFD Sender: No OFD packet to send [07:05:28]OFD Sender: No OFD packet to send [07:05:33]OFD Sender: No OFD packet to send [07:05:38]OFD Sender: No OFD packet to send [07:05:43]OFD Sender: No OFD packet to send [07:05:48]OFD Sender: No OFD packet to send [07:05:53]OFD Sender: No OFD packet to send [07:05:58]OFD Sender: No OFD packet to send [07:06:03]OFD Sender: No OFD packet to send [07:06:08]OFD Sender: No OFD packet to send [07:06:13]OFD Sender: No OFD packet to send [07:06:18]OFD Sender: No OFD packet to send [07:06:23]OFD Sender: No OFD packet to send [07:06:28]OFD Sender: No OFD packet to send [07:06:33]OFD Sender: No OFD packet to send [07:06:38]OFD Sender: No OFD packet to send [07:06:43]OFD Sender: No OFD packet to send [07:06:48]OFD Sender: No OFD packet to send [07:06:53]OFD Sender: No OFD packet to send [07:06:58]OFD Sender: No OFD packet to send [07:07:03]OFD Sender: No OFD packet to send [07:07:08]OFD Sender: No OFD packet to send [07:07:13]OFD Sender: No OFD packet to send [07:07:18]OFD Sender: No OFD packet to send [07:07:23]OFD Sender: No OFD packet to send [07:07:28]OFD Sender: No OFD packet to send [07:07:33]OFD Sender: No OFD packet to send [07:07:38]OFD Sender: No OFD packet to send [07:07:43]OFD Sender: No OFD packet to send [07:07:48]OFD Sender: No OFD packet to send [07:07:53]OFD Sender: No OFD packet to send [07:07:58]OFD Sender: No OFD packet to send [07:08:03]OFD Sender: No OFD packet to send [07:08:08]OFD Sender: No OFD packet to send [07:08:13]OFD Sender: No OFD packet to send [07:08:18]OFD Sender: No OFD packet to send [07:08:23]OFD Sender: No OFD packet to send [07:08:28]OFD Sender: No OFD packet to send [07:08:33]OFD Sender: No OFD packet to send [07:08:38]OFD Sender: No OFD packet to send [07:08:43]OFD Sender: No OFD packet to send [07:08:48]OFD Sender: No OFD packet to send [07:08:53]OFD Sender: No OFD packet to send [07:08:58]OFD Sender: No OFD packet to send [07:09:03]OFD Sender: No OFD packet to send [07:09:08]OFD Sender: No OFD packet to send [07:09:13]OFD Sender: No OFD packet to send [07:09:18]OFD Sender: No OFD packet to send [07:09:23]OFD Sender: No OFD packet to send [07:09:28]OFD Sender: No OFD packet to send [07:09:33]OFD Sender: No OFD packet to send [07:09:38]OFD Sender: No OFD packet to send [07:09:43]OFD Sender: No OFD packet to send [07:09:48]OFD Sender: No OFD packet to send [07:09:53]OFD Sender: No OFD packet to send [07:09:58]OFD Sender: No OFD packet to send [07:10:03]OFD Sender: No OFD packet to send [07:10:08]OFD Sender: No OFD packet to send [07:10:13]OFD Sender: No OFD packet to send [07:10:18]OFD Sender: No OFD packet to send [07:10:23]OFD Sender: No OFD packet to send [07:10:28]OFD Sender: No OFD packet to send [07:10:33]OFD Sender: No OFD packet to send [07:10:38]OFD Sender: No OFD packet to send [07:10:43]OFD Sender: No OFD packet to send [07:10:48]OFD Sender: No OFD packet to send [07:10:53]OFD Sender: No OFD packet to send [07:10:58]OFD Sender: No OFD packet to send [07:11:03]OFD Sender: No OFD packet to send [07:11:08]OFD Sender: No OFD packet to send [07:11:13]OFD Sender: No OFD packet to send [07:11:18]OFD Sender: No OFD packet to send [07:11:23]OFD Sender: No OFD packet to send [07:11:28]OFD Sender: No OFD packet to send [07:11:33]OFD Sender: No OFD packet to send [07:11:38]OFD Sender: No OFD packet to send [07:11:43]OFD Sender: No OFD packet to send [07:11:48]OFD Sender: No OFD packet to send [07:11:53]OFD Sender: No OFD packet to send [07:11:58]OFD Sender: No OFD packet to send [07:12:03]OFD Sender: No OFD packet to send [07:12:08]OFD Sender: No OFD packet to send [07:12:13]OFD Sender: No OFD packet to send [07:12:18]OFD Sender: No OFD packet to send [07:12:23]OFD Sender: No OFD packet to send [07:12:28]OFD Sender: No OFD packet to send [07:12:33]OFD Sender: No OFD packet to send [07:12:38]OFD Sender: No OFD packet to send [07:12:43]OFD Sender: No OFD packet to send [07:12:48]OFD Sender: No OFD packet to send [07:12:53]OFD Sender: No OFD packet to send [07:12:58]OFD Sender: No OFD packet to send [07:13:03]OFD Sender: No OFD packet to send [07:13:08]OFD Sender: No OFD packet to send [07:13:13]OFD Sender: No OFD packet to send [07:13:18]OFD Sender: No OFD packet to send [07:13:23]OFD Sender: No OFD packet to send [07:13:28]OFD Sender: No OFD packet to send [07:13:33]OFD Sender: No OFD packet to send [07:13:38]OFD Sender: No OFD packet to send [07:13:43]OFD Sender: No OFD packet to send [07:13:48]OFD Sender: No OFD packet to send [07:13:53]OFD Sender: No OFD packet to send [07:13:58]OFD Sender: No OFD packet to send [07:14:03]OFD Sender: No OFD packet to send [07:14:08]OFD Sender: No OFD packet to send [07:14:13]OFD Sender: No OFD packet to send [07:14:18]OFD Sender: No OFD packet to send [07:14:23]OFD Sender: No OFD packet to send [07:14:28]OFD Sender: No OFD packet to send [07:14:33]OFD Sender: No OFD packet to send [07:14:38]OFD Sender: No OFD packet to send [07:14:43]OFD Sender: No OFD packet to send [07:14:48]OFD Sender: No OFD packet to send [07:14:53]OFD Sender: No OFD packet to send [07:14:58]OFD Sender: No OFD packet to send [07:15:03]OFD Sender: No OFD packet to send [07:15:08]OFD Sender: No OFD packet to send [07:15:13]OFD Sender: No OFD packet to send [07:15:18]OFD Sender: No OFD packet to send [07:15:24]OFD Sender: No OFD packet to send [07:15:29]OFD Sender: No OFD packet to send [07:15:34]OFD Sender: No OFD packet to send [07:15:39]OFD Sender: No OFD packet to send [07:15:44]OFD Sender: No OFD packet to send [07:15:49]OFD Sender: No OFD packet to send [07:15:54]OFD Sender: No OFD packet to send [07:15:59]OFD Sender: No OFD packet to send [07:16:04]OFD Sender: No OFD packet to send [07:16:09]OFD Sender: No OFD packet to send [07:16:14]OFD Sender: No OFD packet to send [07:16:19]OFD Sender: No OFD packet to send [07:16:24]OFD Sender: No OFD packet to send [07:16:29]OFD Sender: No OFD packet to send [07:16:34]OFD Sender: No OFD packet to send [07:16:39]OFD Sender: No OFD packet to send [07:16:44]OFD Sender: No OFD packet to send [07:16:49]OFD Sender: No OFD packet to send [07:16:54]OFD Sender: No OFD packet to send [07:16:59]OFD Sender: No OFD packet to send [07:17:04]OFD Sender: No OFD packet to send [07:17:09]OFD Sender: No OFD packet to send [07:17:14]OFD Sender: No OFD packet to send [07:17:19]OFD Sender: No OFD packet to send [07:17:24]OFD Sender: No OFD packet to send [07:17:29]OFD Sender: No OFD packet to send [07:17:34]OFD Sender: No OFD packet to send [07:17:39]OFD Sender: No OFD packet to send [07:17:44]OFD Sender: No OFD packet to send [07:17:49]OFD Sender: No OFD packet to send [07:17:54]OFD Sender: No OFD packet to send [07:17:59]OFD Sender: No OFD packet to send [07:18:04]OFD Sender: No OFD packet to send [07:18:09]OFD Sender: No OFD packet to send [07:18:14]OFD Sender: No OFD packet to send [07:18:19]OFD Sender: No OFD packet to send [07:18:24]OFD Sender: No OFD packet to send [07:18:29]OFD Sender: No OFD packet to send [07:18:34]OFD Sender: No OFD packet to send [07:18:39]OFD Sender: No OFD packet to send [07:18:44]OFD Sender: No OFD packet to send [07:18:49]OFD Sender: No OFD packet to send [07:18:54]OFD Sender: No OFD packet to send [07:18:59]OFD Sender: No OFD packet to send [07:19:04]OFD Sender: No OFD packet to send [07:19:09]OFD Sender: No OFD packet to send [07:19:14]OFD Sender: No OFD packet to send [07:19:19]OFD Sender: No OFD packet to send [07:19:24]OFD Sender: No OFD packet to send [07:19:29]OFD Sender: No OFD packet to send [07:19:34]OFD Sender: No OFD packet to send [07:19:39]OFD Sender: No OFD packet to send [07:19:44]OFD Sender: No OFD packet to send [07:19:49]OFD Sender: No OFD packet to send [07:19:54]OFD Sender: No OFD packet to send [07:19:59]OFD Sender: No OFD packet to send [07:20:04]OFD Sender: No OFD packet to send [07:20:09]OFD Sender: No OFD packet to send [07:20:14]OFD Sender: No OFD packet to send [07:20:19]OFD Sender: No OFD packet to send [07:20:24]OFD Sender: No OFD packet to send [07:20:29]OFD Sender: No OFD packet to send [07:20:34]OFD Sender: No OFD packet to send [07:20:39]OFD Sender: No OFD packet to send [07:20:44]OFD Sender: No OFD packet to send [07:20:49]OFD Sender: No OFD packet to send [07:20:54]OFD Sender: No OFD packet to send [07:20:59]OFD Sender: No OFD packet to send [07:21:04]OFD Sender: No OFD packet to send [07:21:09]OFD Sender: No OFD packet to send [07:21:14]OFD Sender: No OFD packet to send [07:21:19]OFD Sender: No OFD packet to send [07:21:24]OFD Sender: No OFD packet to send [07:21:29]OFD Sender: No OFD packet to send [07:21:34]OFD Sender: No OFD packet to send [07:21:39]OFD Sender: No OFD packet to send [07:21:44]OFD Sender: No OFD packet to send [07:21:49]OFD Sender: No OFD packet to send [07:21:54]OFD Sender: No OFD packet to send [07:21:59]OFD Sender: No OFD packet to send [07:22:04]OFD Sender: No OFD packet to send [07:22:09]OFD Sender: No OFD packet to send [07:22:14]OFD Sender: No OFD packet to send [07:22:19]OFD Sender: No OFD packet to send [07:22:24]OFD Sender: No OFD packet to send [07:22:29]OFD Sender: No OFD packet to send [07:22:34]OFD Sender: No OFD packet to send [07:22:39]OFD Sender: No OFD packet to send [07:22:44]OFD Sender: No OFD packet to send [07:22: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:38]accept exits with 7 [07:23:38]New connection [07:23:38]New thread 3067227492 created [07:23:38]Thread 3067084132 joined [07:23:38]Waiting for new connection... [07:23:38] Sock 7.Parse request [07:23:38]Sock 7.Check first char [07:23:38]Sock 7.First char is OK [07:23:38]request: POST /json_proto HTTP/1.0 [07:23:38]Method: POST [07:23:38]URL: /json_proto [07:23:38]Method is POST - this is cgi request [07:23:38]url: /json_proto [07:23:38]query_string will be loaded in cgi processing [07:23:38]execute_cgi json_proto POST (null) [07:23:38]execute_cgi path=json_proto method=POST [07:23:38]POST find Content-Length [07:23:38]Host: 172.17.38.133:8080 [07:23:38]Content-Length: 687 [07:23:38]Content-Type: application/json [07:23:38] [07:23:38]POST finish read [07:23:38]Found Content-Length = 687 [07:23:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672812", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 61.750, "sum" : 4501.58, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 5790.00, "total" : 4501.00, "payments": [ { "type": 0, "sum" : 4501.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:23:38]execute_script... [07:23: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)672812", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 61.750, "sum" : 4501.58, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 5790.00, "total" : 4501.00, "payments": [ { "type": 0, "sum" : 4501.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:23:38]POST & json_proto [07:23:38]process_json_proto [07:23:38]json parsed OK: [07:23:38]protocol is kg_v1.0 [07:23:38]action value=close_receipt [07:23:38]process_action close_receipt [07:23:38]cmd_close_receipt [07:23:38]MH_GetDate [07:23:38]Write to MH i2c: F0 00 00 40 90 BF [07:23:38]Write i2c OK [07:23:38]MH_I2C_Read... [07:23:38]Read from MH i2c: F0 [07:23:38]MH_I2C_Read... [07:23:38]Read from MH i2c: F0 09 00 [07:23:38]MH_I2C_Read... [07:23:38]Read from MH i2c: F0 09 00 40 90 00 85 87 72 66 BD 8F 7C 64 D8 [07:23:38]GetLastDocTimeStamp 1718780496 [07:23:38]current date 1718781829 [07:23:38]FM_GetShiftState [07:23:38]SAM_PROTO_GetShiftState [07:23:38]wFMCommunicate request_size=4 [07:23:38]MH_SAM_APDU [07:23:38]CAPDU: 80 13 01 00 [07:23:38]Write to MH i2c: E2 08 00 41 90 80 13 01 00 00 00 00 00 4E [07:23:38]Write i2c OK [07:23:38]MH_I2C_Read... [07:23:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:23:38]Read from MH i2c: E2 [07:23:38]MH_I2C_Read... [07:23:38]Read from MH i2c: E2 0E 00 [07:23:38]MH_I2C_Read... [07:23:38]Read from MH i2c: E2 0E 00 41 90 00 09 00 01 04 26 72 66 00 00 00 00 90 00 5C [07:23:38]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [07:23:38]wFMCommunicate OK [07:23:38]SAM_PROTO_GetShiftState done [07:23:38]FM_GetShiftState done [07:23:38]opened in 1718756868 [07:23:38]opened+sec_in_day 1718843268 [07:23:38]quantity*price = 450157 [07:23:38]sum+1 = 450159 [07:23:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.58 ИТОГО: 4501.00 Внесено: 5790.00 СДАЧА: 1289.00 НСП 1% : 39.84 НДС 12% : 478.04 Наличными: 4501.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 23 19.06.2024 07:23 Смена: 353 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103593 ФПД: 58752266521384 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T072349&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103593&fm=58752266521384&tin=02508201610067®Number=0000000000092785&sum=450100 [07:23:39]StoreToDocumentArchive [07:23:39]shift 353 fd 103593 [07:23:39]save to /storage/0353/doc_00103593 [07:23:39]save last doc name /storage/0353/doc_00103593 to /storage/kkm_last_doc_name [07:23:39]save OK [07:23:39]Clear old archive folders... [07:23:39]ProcessDocumentItem done err = 0, tmpTLVsize=252 [07:23:39]tlvbuf is 014ABC50 [07:23:39]SAM_PROTO_ClearQueue [07:23:39]wFMCommunicate request_size=4 [07:23:39]MH_SAM_APDU [07:23:39]CAPDU: 80 09 00 00 [07:23:39]Write to MH i2c: E2 08 00 4E 90 80 09 00 00 00 00 00 00 50 [07:23:39]Write i2c OK [07:23:39]MH_I2C_Read... [07:23:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:23:39]Read from MH i2c: E2 [07:23:39]MH_I2C_Read... [07:23:39]Read from MH i2c: E2 03 00 [07:23:39]MH_I2C_Read... [07:23:39]Read from MH i2c: E2 03 00 4E 90 00 90 00 52 [07:23:39]RAPDU: 90 00 [07:23:39]wFMCommunicate OK [07:23:39]SAM_PROTO_ClearQueue done [07:23:39]KKMCreateOFDPacket [07:23:39]OFDProtocolAddRootSTLVToBuf [07:23:39]FM_MakeSignedData [07:23:39]FM_MakeSignedData [07:23:39]SAM_PROTO_SignData [07:23:39]wFMCommunicate request_size=4 [07:23:39]MH_SAM_APDU [07:23:39]CAPDU: 80 0D 01 02 [07:23:39]Write to MH i2c: E2 08 00 4F 90 80 0D 01 02 00 00 00 00 58 [07:23:39]Write i2c OK [07:23:39]MH_I2C_Read... [07:23:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:23:39]Read from MH i2c: E2 [07:23:39]MH_I2C_Read... [07:23:39]Read from MH i2c: E2 03 00 [07:23:39]MH_I2C_Read... [07:23:39]Read from MH i2c: E2 03 00 4F 90 00 90 00 53 [07:23:39]RAPDU: 90 00 [07:23:39]wFMCommunicate OK [07:23:39]wFMCommunicate request_size=255 [07:23:39]MH_SAM_APDU [07:23:39]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 36 F1 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 6E DE 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 DE 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 90 0F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC BA 00 00 00 00 07 04 06 00 34 DE 06 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 85 87 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 A9 94 01 00 35 04 06 00 [07:23:39]Write to MH i2c: E2 02 01 50 90 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 36 F1 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 6E DE 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 DE 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 90 0F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC BA 00 00 00 00 07 04 06 00 34 DE 06 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 85 87 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 A9 94 01 00 35 04 06 00 00 00 92 [07:23:39]Write i2c OK [07:23:39]MH_I2C_Read... [07:23:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:23:39]Read from MH i2c: E2 [07:23:39]MH_I2C_Read... [07:23:39]Read from MH i2c: E2 03 00 [07:23:39]MH_I2C_Read... [07:23:39]Read from MH i2c: E2 03 00 50 90 00 90 00 54 [07:23:39]RAPDU: 90 00 [07:23:39]wFMCommunicate OK [07:23:39]wFMCommunicate request_size=11 [07:23:39]MH_SAM_APDU [07:23:39]CAPDU: 80 0D 02 02 06 35 6F 53 F9 CB 28 [07:23:39]Write to MH i2c: E2 0E 00 51 90 80 0D 02 02 06 00 35 6F 53 F9 CB 28 00 00 4A [07:23:39]Write i2c OK [07:23:39]MH_I2C_Read... [07:23:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:23:39]Read from MH i2c: E2 [07:23:39]MH_I2C_Read... [07:23:39]Read from MH i2c: E2 03 00 [07:23:39]MH_I2C_Read... [07:23:39]Read from MH i2c: E2 03 00 51 90 00 90 00 55 [07:23:39]RAPDU: 90 00 [07:23:39]wFMCommunicate OK [07:23:39]wFMCommunicate request_size=4 [07:23:39]MH_SAM_APDU [07:23:39]CAPDU: 80 0D 03 02 [07:23:39]Write to MH i2c: E2 08 00 52 90 80 0D 03 02 00 00 00 00 5D [07:23:39]Write i2c OK [07:23:39]MH_I2C_Read... [07:23:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:23:39]Read from MH i2c: E2 [07:23:39]MH_I2C_Read... [07:23:39]Read from MH i2c: E2 0B 00 [07:23:39]MH_I2C_Read... [07:23:39]Read from MH i2c: E2 0B 00 52 90 00 AE 3C 4E 4A 4C 43 A6 D0 90 00 E5 [07:23:39]RAPDU: AE 3C 4E 4A 4C 43 A6 D0 90 00 [07:23:39]wFMCommunicate OK [07:23:39]SAM_PROTO_SignData done [07:23:39]FM_MakeSignedData done [07:23:39]CreateOFDProtocolMessage [07:23:39]wFMCommunicate request_size=4 [07:23:39]MH_SAM_APDU [07:23:39]CAPDU: 80 11 00 00 [07:23:39]Write to MH i2c: E2 08 00 53 90 80 11 00 00 00 00 00 00 5D [07:23:39]Write i2c OK [07:23:39]MH_I2C_Read... [07:23:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:23:40]Read from MH i2c: E2 [07:23:40]MH_I2C_Read... [07:23:40]Read from MH i2c: E2 17 00 [07:23:40]MH_I2C_Read... [07:23:40]Read from MH i2c: E2 17 00 53 90 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 B0 [07:23:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [07:23:40]wFMCommunicate OK [07:23:40]CreateOFDProtocolMessage done [07:23:40]OFDSenderStorePacket 103593 [07:23:40]StoreOFDPacket docnum=103593 [07:23:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 04 BE 08 01 04 B2 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 36 F1 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 6E DE 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 DE 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 90 0F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC BA 00 00 00 00 07 04 06 00 34 DE 06 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 85 87 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 A9 94 01 00 35 04 06 00 35 6F 53 F9 CB 28 AE 3C 4E 4A 4C 43 A6 D0 [07:23:40]CheckFolder [07:23:40]dirname=/storage/ofd_packets [07:23:40]CheckFolder done [07:23:40]ProducePacketName [07:23:40]name=ofd_packets/00103593 [07:23:40]NVStorageSaveData ofd_packets/00103593 [07:23:40]File name is /storage/ofd_packets/00103593 [07:23:40]Write 302 bytes [07:23:40]NVStorageSaveData done [07:23:40]OFDSenderStorePacket done [07:23:40]KKMCreateOFDPacket done [07:23:40]NVStorageSaveData kkm_last_timestamp [07:23:40]File name is /storage/kkm_last_timestamp [07:23:40]Write 4 bytes [07:23:40]NVStorageSaveData done [07:23:40]ExternCall_PrintAddStr [07:23:40]wPrintStart [07:23:40]Write to MH i2c: 01 00 00 54 90 E4 [07:23:40]Write i2c OK [07:23:40]MH_I2C_Read... [07:23:40]Read from MH i2c: 01 [07:23:40]MH_I2C_Read... [07:23:40]Read from MH i2c: 01 07 00 [07:23:40]MH_I2C_Read... [07:23:40]Read from MH i2c: 01 07 00 54 90 00 00 00 00 00 FF 0F F9 [07:23:40]RasterBufferAndPrint [07:23:40]line Счет N : (1)672812 [07:23:40]line ИНН: 02508201610067 [07:23:40]line Контрольно-Кассовый Чек [07:23:40]line ПРОДАЖА [07:23:40]line ТРК (МРК, ГНК) : 11 [07:23:40]line Товар: 2710194210 [07:23:40]line ДТ(л)-К-5 [07:23:40]line 61.750 * 72.90 [07:23:40]line = 4501.58 [07:23:40]line НДС 12% НСП 1% [07:23:40]line > о реализуемом товаре [07:23:40]line ОКРУГЛЕНИЕ: -0.58 [07:23:40]line ИТОГО: 4501.00 [07:23:40]line Внесено: 5790.00 [07:23:40]line СДАЧА: 1289.00 [07:23:40]line НСП 1% : 39.84 [07:23:40]line НДС 12% : 478.04 [07:23:40]line Наличными: 4501.00 [07:23:40]line Безнал.: 0.00 [07:23:40]line Место: АЗС № 120 "Партнер Нефть" [07:23:40]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [07:23:40]line СНО: Общий режим [07:23:40]line Чек 23 19.06.2024 07:23 [07:23:40]line Смена: 353 ФФД: 1.0 [07:23:40]line ЗНМ: 0300000164 [07:23:40]line РНМ: 0000000000092785 [07:23:40]line Версия ККМ: 001 [07:23:40]line ФМ: 0000000000875093 [07:23:40]line ФД: 103593 [07:23:40]line ФПД: 58752266521384 [07:23:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T072349&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103593&fm=58752266521384&tin=02508201610067®Number=0000000000092785&sum=450100 [07:23:40]OFD Sender: Processing packet 103593 [packets to send 17, broken 16] [07:23:40]ProducePacketName [07:23:40]name=ofd_packets/00103593 [07:23:40]OFD Sender: To server: pG, [07:23:40]CommunicateWithHost lk.salyk.kg:30040 [07:23:40]ConnectInit lk.salyk.kg [07:23:40]written 0, free lines is 4095 [07:23:40]Connected sock=10 [07:23: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 39 33 10 01 00 00 04 BE 08 01 04 B2 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 36 F1 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 6E DE 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 DE 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 90 0F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC BA 00 00 00 00 07 04 06 00 34 DE 06 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 85 87 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 A9 94 01 00 35 04 06 00 35 6F 53 F9 CB 28 AE 3C 4E 4A 4C 43 A6 D0 [07:23: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 39 33 4F 00 00 00 34 F8 47 00 85 51 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 A9 94 01 00 F4 03 04 00 0F 2E 72 66 B6 04 01 00 00 60 EC 2F 94 AB 05 BB C6 [07:23:40]CommunicateWithHost err = 0 [07:23:40]CheckOFDResponse [07:23:40]1017 (14) - 77093643461234 [07:23:40]1041 (16) - 0000000000875093 [07:23:40]1040 (4) - 103593 [07:23:40]1012 (4) - 19.06.2024 01:02 [07:23:40]1206 (1) - 0 [07:23:40]OFD Sender: Remove packet 103593 [07:23:40]ProducePacketName [07:23:40]name=ofd_packets/00103593 [07:23:40]NVStorageDeleteData [07:23:40]Write to MH i2c: 01 00 00 7F 90 0F [07:23:40]Write i2c OK [07:23:40]MH_I2C_Read... [07:23:40]Read from MH i2c: 01 [07:23:40]MH_I2C_Read... [07:23:40]Read from MH i2c: 01 07 00 [07:23:40]MH_I2C_Read... [07:23:40]Read from MH i2c: 01 07 00 7F 90 00 00 00 00 00 DA 0C FC [07:23:40]RasterBufferAndPrint [07:23:40]line [07:23:40]line [07:23:40]line [07:23:40]line [07:23:40]line [07:23:40]written 0, free lines is 3297 [07:23:40]MH_Cut [07:23:40]Write to MH i2c: D1 01 00 86 90 01 E8 [07:23:40]Write i2c OK [07:23:40]MH_I2C_Read... [07:23:40]Read from MH i2c: D1 [07:23:40]MH_I2C_Read... [07:23:40]Read from MH i2c: D1 01 00 [07:23:40]MH_I2C_Read... [07:23:40]Read from MH i2c: D1 01 00 86 90 00 E7 [07:23:40]Write to MH i2c: 01 00 00 87 90 17 [07:23:40]Write i2c OK [07:23:40]MH_I2C_Read... [07:23:41]OFD Sender: No OFD packet to send [07:23:41]*** Cut start [07:23:41]*** Partial cut [07:23:41]*** CUTSNS_PIN = 1 [07:23:41]*** CUTSNS_PIN = 0 [07:23:41]*** Brake cut motor [07:23:42]*** Stop cut motor [07:23:42]*** Cut end [07:23:42]Read from MH i2c: 01 [07:23:42]MH_I2C_Read... [07:23:42]Read from MH i2c: 01 07 00 [07:23:42]MH_I2C_Read... [07:23:42]Read from MH i2c: 01 07 00 87 90 00 00 00 00 00 FF 0F 2C [07:23:42]process_action close_receipt done [07:23:42]requested_data is exist [07:23:42]produce_requested_data [07:23:42]requested_item fm.sn is exist - process it [07:23:42]wFMCommunicate request_size=4 [07:23:42]MH_SAM_APDU [07:23:42]CAPDU: 80 11 00 00 [07:23:42]Write to MH i2c: E2 08 00 88 90 80 11 00 00 00 00 00 00 92 [07:23:42]Write i2c OK [07:23:42]MH_I2C_Read... [07:23:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:23:42]Read from MH i2c: E2 [07:23:42]MH_I2C_Read... [07:23:42]Read from MH i2c: E2 17 00 [07:23:42]MH_I2C_Read... [07:23:42]Read from MH i2c: E2 17 00 88 90 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 E5 [07:23:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [07:23:42]wFMCommunicate OK [07:23:42]requested_item fd.num is exist - process it [07:23:42]SAM_PROTO_GetFieldsCounters [07:23:42]wFMCommunicate request_size=4 [07:23:42]MH_SAM_APDU [07:23:42]CAPDU: 80 13 00 00 [07:23:42]Write to MH i2c: E2 08 00 89 90 80 13 00 00 00 00 00 00 95 [07:23:42]Write i2c OK [07:23:42]MH_I2C_Read... [07:23:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:23:42]Read from MH i2c: E2 [07:23:42]MH_I2C_Read... [07:23:42]Read from MH i2c: E2 62 00 [07:23:42]MH_I2C_Read... [07:23:42]Read from MH i2c: E2 62 00 89 90 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 A9 94 01 00 0E 04 04 00 61 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 A1 [07:23: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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 A9 94 01 00 0E 04 04 00 61 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 [07:23:42]wFMCommunicate OK [07:23:42]SAM_PROTO_GetFieldsCounters done [07:23:42]requested_item shift.num is exist - process it [07:23:42]requested_item shift.opened is exist - process it [07:23:42]req_shift_opened [07:23:42]FM_GetShiftState [07:23:42]SAM_PROTO_GetShiftState [07:23:42]wFMCommunicate request_size=4 [07:23:42]MH_SAM_APDU [07:23:42]CAPDU: 80 13 01 00 [07:23:42]Write to MH i2c: E2 08 00 8A 90 80 13 01 00 00 00 00 00 97 [07:23:42]Write i2c OK [07:23:42]MH_I2C_Read... [07:23:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:23:42]Read from MH i2c: E2 [07:23:42]MH_I2C_Read... [07:23:42]Read from MH i2c: E2 0E 00 [07:23:42]MH_I2C_Read... [07:23:42]Read from MH i2c: E2 0E 00 8A 90 00 09 00 01 04 26 72 66 00 00 00 00 90 00 A5 [07:23:42]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [07:23:42]wFMCommunicate OK [07:23:42]SAM_PROTO_GetShiftState done [07:23:42]FM_GetShiftState done [07:23:42]req_shift_opened done [07:23:42]requested_item shift.open_date is exist - process it [07:23:42]req_shift_open_date [07:23:42]req_shift_open_date done [07:23:42]produce_requested_data done [07:23:42]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103593,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [07:23:42]process_action_free close_receipt [07:23:42]json_value_free [07:23:42]json_value_free done [07:23:42]process_json_proto returns [07:23:42]Send response to host [07:23:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103593,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [07:23:42]free response buf [07:23:42]execute_script done [07:23:42]execute_script returns [07:23:42]free content buf [07:23:42]Sock 7.Close socket [07:23:42]Sock 7.Thread stoped [07:23:46]OFD Sender: No OFD packet to send [07:23:51]OFD Sender: No OFD packet to send [07:23:56]OFD Sender: No OFD packet to send [07:24:01]OFD Sender: No OFD packet to send [07:24:06]OFD Sender: No OFD packet to send [07:24:11]OFD Sender: No OFD packet to send [07:24:16]OFD Sender: No OFD packet to send [07:24:21]OFD Sender: No OFD packet to send [07:24:26]OFD Sender: No OFD packet to send [07:24:31]OFD Sender: No OFD packet to send [07:24:36]OFD Sender: No OFD packet to send [07:24:41]OFD Sender: No OFD packet to send [07:24:46]OFD Sender: No OFD packet to send [07:24:51]OFD Sender: No OFD packet to send [07:24:56]OFD Sender: No OFD packet to send [07:25:01]OFD Sender: No OFD packet to send [07:25:06]OFD Sender: No OFD packet to send [07:25:11]OFD Sender: No OFD packet to send [07:25:16]OFD Sender: No OFD packet to send [07:25:21]OFD Sender: No OFD packet to send [07:25:26]OFD Sender: No OFD packet to send [07:25:31]OFD Sender: No OFD packet to send [07:25:36]OFD Sender: No OFD packet to send [07:25:41]OFD Sender: No OFD packet to send [07:25:46]OFD Sender: No OFD packet to send [07:25:51]OFD Sender: No OFD packet to send [07:25:56]OFD Sender: No OFD packet to send [07:26:01]OFD Sender: No OFD packet to send [07:26:06]OFD Sender: No OFD packet to send [07:26:11]OFD Sender: No OFD packet to send [07:26:16]OFD Sender: No OFD packet to send [07:26:21]OFD Sender: No OFD packet to send [07:26:26]OFD Sender: No OFD packet to send [07:26:31]OFD Sender: No OFD packet to send [07:26:36]OFD Sender: No OFD packet to send [07:26:41]OFD Sender: No OFD packet to send [07:26:46]OFD Sender: No OFD packet to send [07:26:51]OFD Sender: No OFD packet to send [07:26:56]OFD Sender: No OFD packet to send [07:27:01]OFD Sender: No OFD packet to send [07:27:06]OFD Sender: No OFD packet to send [07:27:11]OFD Sender: No OFD packet to send [07:27:16]OFD Sender: No OFD packet to send [07:27:21]OFD Sender: No OFD packet to send [07:27:26]OFD Sender: No OFD packet to send [07:27:31]OFD Sender: No OFD packet to send [07:27:36]OFD Sender: No OFD packet to send [07:27:41]OFD Sender: No OFD packet to send [07:27:46]OFD Sender: No OFD packet to send [07:27:51]OFD Sender: No OFD packet to send [07:27:56]OFD Sender: No OFD packet to send [07:28:01]OFD Sender: No OFD packet to send [07:28:06]OFD Sender: No OFD packet to send [07:28:11]OFD Sender: No OFD packet to send [07:28:16]OFD Sender: No OFD packet to send [07:28:21]OFD Sender: No OFD packet to send [07:28:26]OFD Sender: No OFD packet to send [07:28:31]OFD Sender: No OFD packet to send [07:28:36]OFD Sender: No OFD packet to send [07:28:41]OFD Sender: No OFD packet to send [07:28:46]OFD Sender: No OFD packet to send [07:28:51]OFD Sender: No OFD packet to send [07:28:56]OFD Sender: No OFD packet to send [07:29:01]OFD Sender: No OFD packet to send [07:29:06]OFD Sender: No OFD packet to send [07:29:11]OFD Sender: No OFD packet to send [07:29:16]OFD Sender: No OFD packet to send [07:29:21]OFD Sender: No OFD packet to send [07:29:26]OFD Sender: No OFD packet to send [07:29:31]OFD Sender: No OFD packet to send [07:29:36]OFD Sender: No OFD packet to send [07:29:41]OFD Sender: No OFD packet to send [07:29:46]OFD Sender: No OFD packet to send [07:29:51]OFD Sender: No OFD packet to send [07:29:56]OFD Sender: No OFD packet to send [07:30:01]OFD Sender: No OFD packet to send [07:30:06]OFD Sender: No OFD packet to send [07:30:11]OFD Sender: No OFD packet to send [07:30:16]OFD Sender: No OFD packet to send [07:30:21]OFD Sender: No OFD packet to send [07:30:26]OFD Sender: No OFD packet to send [07:30:31]OFD Sender: No OFD packet to send [07:30:36]OFD Sender: No OFD packet to send [07:30:41]OFD Sender: No OFD packet to send [07:30:46]OFD Sender: No OFD packet to send [07:30:51]OFD Sender: No OFD packet to send [07:30:56]OFD Sender: No OFD packet to send [07:31:01]OFD Sender: No OFD packet to send [07:31:06]OFD Sender: No OFD packet to send [07:31:11]OFD Sender: No OFD packet to send [07:31:16]OFD Sender: No OFD packet to send [07:31:21]OFD Sender: No OFD packet to send [07:31:26]OFD Sender: No OFD packet to send [07:31:31]OFD Sender: No OFD packet to send [07:31:36]OFD Sender: No OFD packet to send [07:31:41]OFD Sender: No OFD packet to send [07:31:46]OFD Sender: No OFD packet to send [07:31:51]OFD Sender: No OFD packet to send [07:31:56]OFD Sender: No OFD packet to send [07:32:01]OFD Sender: No OFD packet to send [07:32:06]OFD Sender: No OFD packet to send [07:32:11]OFD Sender: No OFD packet to send [07:32:16]OFD Sender: No OFD packet to send [07:32:21]OFD Sender: No OFD packet to send [07:32:26]OFD Sender: No OFD packet to send [07:32:31]OFD Sender: No OFD packet to send [07:32:36]OFD Sender: No OFD packet to send [07:32:41]OFD Sender: No OFD packet to send [07:32:46]OFD Sender: No OFD packet to send [07:32:51]OFD Sender: No OFD packet to send [07:32:56]OFD Sender: No OFD packet to send [07:33:01]OFD Sender: No OFD packet to send [07:33:06]OFD Sender: No OFD packet to send [07:33:11]OFD Sender: No OFD packet to send [07:33:16]OFD Sender: No OFD packet to send [07:33:21]OFD Sender: No OFD packet to send [07:33:26]OFD Sender: No OFD packet to send [07:33:31]OFD Sender: No OFD packet to send [07:33:36]OFD Sender: No OFD packet to send [07:33:41]OFD Sender: No OFD packet to send [07:33:46]OFD Sender: No OFD packet to send [07:33:51]OFD Sender: No OFD packet to send [07:33:56]OFD Sender: No OFD packet to send [07:34:01]OFD Sender: No OFD packet to send [07:34:06]OFD Sender: No OFD packet to send [07:34:11]OFD Sender: No OFD packet to send [07:34:16]OFD Sender: No OFD packet to send [07:34:21]OFD Sender: No OFD packet to send [07:34:26]OFD Sender: No OFD packet to send [07:34:31]OFD Sender: No OFD packet to send [07:34:36]OFD Sender: No OFD packet to send [07:34:41]OFD Sender: No OFD packet to send [07:34:46]OFD Sender: No OFD packet to send [07:34:51]OFD Sender: No OFD packet to send [07:34:56]OFD Sender: No OFD packet to send [07:35:01]OFD Sender: No OFD packet to send [07:35:06]OFD Sender: No OFD packet to send [07:35:11]OFD Sender: No OFD packet to send [07:35:16]OFD Sender: No OFD packet to send [07:35:21]OFD Sender: No OFD packet to send [07:35:26]OFD Sender: No OFD packet to send [07:35:31]OFD Sender: No OFD packet to send [07:35:36]OFD Sender: No OFD packet to send [07:35:41]OFD Sender: No OFD packet to send [07:35:46]OFD Sender: No OFD packet to send [07:35:51]OFD Sender: No OFD packet to send [07:35:56]OFD Sender: No OFD packet to send [07:36:01]OFD Sender: No OFD packet to send [07:36:06]OFD Sender: No OFD packet to send [07:36:11]OFD Sender: No OFD packet to send [07:36:16]OFD Sender: No OFD packet to send [07:36:21]OFD Sender: No OFD packet to send [07:36:26]OFD Sender: No OFD packet to send [07:36:31]OFD Sender: No OFD packet to send [07:36:36]OFD Sender: No OFD packet to send [07:36:41]OFD Sender: No OFD packet to send [07:36:46]OFD Sender: No OFD packet to send [07:36:51]OFD Sender: No OFD packet to send [07:36:56]OFD Sender: No OFD packet to send [07:37:01]OFD Sender: No OFD packet to send [07:37:06]OFD Sender: No OFD packet to send [07:37:11]OFD Sender: No OFD packet to send [07:37:16]OFD Sender: No OFD packet to send [07:37:21]OFD Sender: No OFD packet to send [07:37:26]OFD Sender: No OFD packet to send [07:37:31]OFD Sender: No OFD packet to send [07:37:36]OFD Sender: No OFD packet to send [07:37:41]OFD Sender: No OFD packet to send [07:37:46]OFD Sender: No OFD packet to send [07:37:51]OFD Sender: No OFD packet to send [07:37:56]OFD Sender: No OFD packet to send [07:38:01]OFD Sender: No OFD packet to send [07:38:06]OFD Sender: No OFD packet to send [07:38:11]OFD Sender: No OFD packet to send [07:38:16]OFD Sender: No OFD packet to send [07:38:22]OFD Sender: No OFD packet to send [07:38:27]OFD Sender: No OFD packet to send [07:38:32]OFD Sender: No OFD packet to send [07:38:37]OFD Sender: No OFD packet to send [07:38:42]OFD Sender: No OFD packet to send [07:38:47]OFD Sender: No OFD packet to send [07:38:52]OFD Sender: No OFD packet to send [07:38:57]OFD Sender: No OFD packet to send [07:39:02]OFD Sender: No OFD packet to send [07:39:07]OFD Sender: No OFD packet to send [07:39:12]OFD Sender: No OFD packet to send [07:39:17]OFD Sender: No OFD packet to send [07:39:22]OFD Sender: No OFD packet to send [07:39:27]OFD Sender: No OFD packet to send [07:39:32]OFD Sender: No OFD packet to send [07:39:37]OFD Sender: No OFD packet to send [07:39:42]OFD Sender: No OFD packet to send [07:39:47]OFD Sender: No OFD packet to send [07:39:52]OFD Sender: No OFD packet to send [07:39:57]OFD Sender: No OFD packet to send [07:40:02]OFD Sender: No OFD packet to send [07:40:07]OFD Sender: No OFD packet to send [07:40:12]OFD Sender: No OFD packet to send [07:40:17]OFD Sender: No OFD packet to send [07:40:22]OFD Sender: No OFD packet to send [07:40:27]OFD Sender: No OFD packet to send [07:40:32]OFD Sender: No OFD packet to send [07:40:37]OFD Sender: No OFD packet to send [07:40:42]OFD Sender: No OFD packet to send [07:40:47]OFD Sender: No OFD packet to send [07:40:52]OFD Sender: No OFD packet to send [07:40:57]OFD Sender: No OFD packet to send [07:41:02]OFD Sender: No OFD packet to send [07:41:07]OFD Sender: No OFD packet to send [07:41:12]OFD Sender: No OFD packet to send [07:41:17]OFD Sender: No OFD packet to send [07:41:22]OFD Sender: No OFD packet to send [07:41:27]OFD Sender: No OFD packet to send [07:41:32]OFD Sender: No OFD packet to send [07:41:37]OFD Sender: No OFD packet to send [07:41:42]OFD Sender: No OFD packet to send [07:41:47]OFD Sender: No OFD packet to send [07:41:52]OFD Sender: No OFD packet to send [07:41:57]OFD Sender: No OFD packet to send [07:42:02]OFD Sender: No OFD packet to send [07:42:07]OFD Sender: No OFD packet to send [07:42:12]OFD Sender: No OFD packet to send [07:42:17]OFD Sender: No OFD packet to send [07:42:22]OFD Sender: No OFD packet to send [07:42:27]OFD Sender: No OFD packet to send [07:42:32]OFD Sender: No OFD packet to send [07:42:37]OFD Sender: No OFD packet to send [07:42:42]OFD Sender: No OFD packet to send [07:42:47]OFD Sender: No OFD packet to send [07:42:52]OFD Sender: No OFD packet to send [07:42:57]OFD Sender: No OFD packet to send [07:43:02]OFD Sender: No OFD packet to send [07:43:07]OFD Sender: No OFD packet to send [07:43:12]OFD Sender: No OFD packet to send [07:43:17]OFD Sender: No OFD packet to send [07:43:22]OFD Sender: No OFD packet to send [07:43:27]OFD Sender: No OFD packet to send [07:43:32]OFD Sender: No OFD packet to send [07:43:37]OFD Sender: No OFD packet to send [07:43:42]OFD Sender: No OFD packet to send [07:43:47]OFD Sender: No OFD packet to send [07:43:52]OFD Sender: No OFD packet to send [07:43:57]OFD Sender: No OFD packet to send [07:44:02]OFD Sender: No OFD packet to send [07:44:07]OFD Sender: No OFD packet to send [07:44:12]OFD Sender: No OFD packet to send [07:44:17]OFD Sender: No OFD packet to send [07:44:22]OFD Sender: No OFD packet to send [07:44:27]OFD Sender: No OFD packet to send [07:44:32]OFD Sender: No OFD packet to send [07:44:37]OFD Sender: No OFD packet to send [07:44:42]OFD Sender: No OFD packet to send [07:44:47]OFD Sender: No OFD packet to send [07:44:52]OFD Sender: No OFD packet to send [07:44:57]OFD Sender: No OFD packet to send [07:45:02]OFD Sender: No OFD packet to send [07:45:07]OFD Sender: No OFD packet to send [07:45:12]OFD Sender: No OFD packet to send [07:45:17]OFD Sender: No OFD packet to send [07:45:22]OFD Sender: No OFD packet to send [07:45:27]OFD Sender: No OFD packet to send [07:45:32]OFD Sender: No OFD packet to send [07:45:37]OFD Sender: No OFD packet to send [07:45:42]OFD Sender: No OFD packet to send [07:45:47]OFD Sender: No OFD packet to send [07:45:52]OFD Sender: No OFD packet to send [07:45:57]OFD Sender: No OFD packet to send [07:46:02]OFD Sender: No OFD packet to send [07:46:07]OFD Sender: No OFD packet to send [07:46:12]OFD Sender: No OFD packet to send [07:46:17]OFD Sender: No OFD packet to send [07:46:22]OFD Sender: No OFD packet to send [07:46:27]OFD Sender: No OFD packet to send [07:46:32]OFD Sender: No OFD packet to send [07:46:37]OFD Sender: No OFD packet to send [07:46:42]OFD Sender: No OFD packet to send [07:46:47]OFD Sender: No OFD packet to send [07:46:52]OFD Sender: No OFD packet to send [07:46:57]OFD Sender: No OFD packet to send [07:47:02]OFD Sender: No OFD packet to send [07:47:07]OFD Sender: No OFD packet to send [07:47:12]OFD Sender: No OFD packet to send [07:47:17]OFD Sender: No OFD packet to send [07:47:22]OFD Sender: No OFD packet to send [07:47:27]OFD Sender: No OFD packet to send [07:47:32]OFD Sender: No OFD packet to send [07:47:37]OFD Sender: No OFD packet to send [07:47:42]OFD Sender: No OFD packet to send [07:47:47]OFD Sender: No OFD packet to send [07:47:52]OFD Sender: No OFD packet to send [07:47:57]OFD Sender: No OFD packet to send [07:48:02]OFD Sender: No OFD packet to send [07:48:07]OFD Sender: No OFD packet to send [07:48:12]OFD Sender: No OFD packet to send [07:48:17]OFD Sender: No OFD packet to send [07:48:22]OFD Sender: No OFD packet to send [07:48:27]OFD Sender: No OFD packet to send [07:48:32]OFD Sender: No OFD packet to send [07:48:37]OFD Sender: No OFD packet to send [07:48:42]OFD Sender: No OFD packet to send [07:48:47]OFD Sender: No OFD packet to send [07:48:52]OFD Sender: No OFD packet to send [07:48:57]OFD Sender: No OFD packet to send [07:49:02]OFD Sender: No OFD packet to send [07:49:07]OFD Sender: No OFD packet to send [07:49:12]OFD Sender: No OFD packet to send [07:49:17]OFD Sender: No OFD packet to send [07:49:22]OFD Sender: No OFD packet to send [07:49:27]OFD Sender: No OFD packet to send [07:49:32]OFD Sender: No OFD packet to send [07:49:37]OFD Sender: No OFD packet to send [07:49:42]OFD Sender: No OFD packet to send [07:49:47]OFD Sender: No OFD packet to send [07:49:52]OFD Sender: No OFD packet to send [07:49:57]OFD Sender: No OFD packet to send [07:50:02]OFD Sender: No OFD packet to send [07:50:07]OFD Sender: No OFD packet to send [07:50:12]OFD Sender: No OFD packet to send [07:50:17]OFD Sender: No OFD packet to send [07:50:22]OFD Sender: No OFD packet to send [07:50:27]OFD Sender: No OFD packet to send [07:50:32]OFD Sender: No OFD packet to send [07:50:37]OFD Sender: No OFD packet to send [07:50:42]OFD Sender: No OFD packet to send [07:50:47]OFD Sender: No OFD packet to send [07:50:52]OFD Sender: No OFD packet to send [07:50:57]OFD Sender: No OFD packet to send [07:51:02]OFD Sender: No OFD packet to send [07:51:07]OFD Sender: No OFD packet to send [07:51:12]OFD Sender: No OFD packet to send [07:51:17]OFD Sender: No OFD packet to send [07:51:22]OFD Sender: No OFD packet to send [07:51:27]OFD Sender: No OFD packet to send [07:51:32]OFD Sender: No OFD packet to send [07:51:37]OFD Sender: No OFD packet to send [07:51:42]OFD Sender: No OFD packet to send [07:51:47]OFD Sender: No OFD packet to send [07:51:52]OFD Sender: No OFD packet to send [07:51:57]OFD Sender: No OFD packet to send [07:52:02]OFD Sender: No OFD packet to send [07:52:07]OFD Sender: No OFD packet to send [07:52:12]OFD Sender: No OFD packet to send [07:52:17]OFD Sender: No OFD packet to send [07:52:22]OFD Sender: No OFD packet to send [07:52:27]OFD Sender: No OFD packet to send [07:52:32]OFD Sender: No OFD packet to send [07:52:37]OFD Sender: No OFD packet to send [07:52:42]OFD Sender: No OFD packet to send [07:52:47]OFD Sender: No OFD packet to send [07:52:52]OFD Sender: No OFD packet to send [07:52:57]OFD Sender: No OFD packet to send [07:53:01]accept exits with 9 [07:53:01]New connection [07:53:01]New thread 3067084132 created [07:53:01]Thread 3067227492 joined [07:53:01]Waiting for new connection... [07:53:01] Sock 9.Parse request [07:53:01]Sock 9.Check first char [07:53:01]Sock 9.First char is OK [07:53:01]request: POST /json_proto HTTP/1.0 [07:53:01]Method: POST [07:53:01]URL: /json_proto [07:53:01]Method is POST - this is cgi request [07:53:01]url: /json_proto [07:53:01]query_string will be loaded in cgi processing [07:53:01]execute_cgi json_proto POST (null) [07:53:01]execute_cgi path=json_proto method=POST [07:53:01]POST find Content-Length [07:53:01]Host: 172.17.38.133:8080 [07:53:01]Content-Length: 1202 [07:53:01]Content-Type: application/json [07:53:01] [07:53:01]POST finish read [07:53:01]Found Content-Length = 1202 [07:53: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 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. \u000A\u0421\u0447\u0435\u0442 N : (1)672813\u000A19.06.2024 07:30\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-5\u000A 20.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 1458.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3787540\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:53:01]execute_script... [07:53: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 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. \u000A\u0421\u0447\u0435\u0442 N : (1)672813\u000A19.06.2024 07:30\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-5\u000A 20.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 1458.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3787540\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:53:01]POST & json_proto [07:53:01]process_json_proto [07:53:01]json parsed OK: [07:53:01]protocol is kg_v1.0 [07:53:01]action value=print_text [07:53:01]process_action print_text [07:53:01]cmd_print_text [07:53:01]ExternCall_PrintAddStr [07:53:01]wPrintStart [07:53:01]Write to MH i2c: 01 00 00 8B 90 1B [07:53:01]Write i2c OK [07:53:01]MH_I2C_Read... [07:53:01]Read from MH i2c: 01 [07:53:01]MH_I2C_Read... [07:53:01]Read from MH i2c: 01 07 00 [07:53:01]MH_I2C_Read... [07:53:01]Read from MH i2c: 01 07 00 8B 90 00 00 00 00 00 FF 0F 30 [07:53:01]RasterBufferAndPrint [07:53:01]line *****ТОВАРНЫЙ ЧЕК***** [07:53:01]line АЗС 120 [07:53:01]line Партнер нефть [07:53:01]line 02508201610067 [07:53:01]line Кассир : Байбугуева Г. [07:53:01]line Счет N : (1)672813 [07:53:01]line 19.06.2024 07:30 [07:53:01]line ПРОДАЖА [07:53:01]line ТРК (МРК, ГНК): 11 [07:53:01]line Вид ГСМ : 2710194210 [07:53:01]line ДТ(л)-К-5 [07:53:01]line 20.000 x 72.90 [07:53:01]line ИТОГ: 1458.00 [07:53:01]line Тип оплаты: Талоны: Партнер нефть [07:53:01]line 3787540 [07:53:01]line ______________________ [07:53:01]line (подпись) [07:53:01]written 0, free lines is 4095 [07:53:01]Write to MH i2c: 01 00 00 9F 90 2F [07:53:01]Write i2c OK [07:53:01]MH_I2C_Read... [07:53:01]Read from MH i2c: 01 [07:53:01]MH_I2C_Read... [07:53:01]Read from MH i2c: 01 07 00 [07:53:01]MH_I2C_Read... [07:53:01]Read from MH i2c: 01 07 00 9F 90 00 00 00 00 00 13 0E 57 [07:53:01]RasterBufferAndPrint [07:53:01]line [07:53:01]line [07:53:01]line [07:53:01]line [07:53:01]line [07:53:01]written 0, free lines is 3605 [07:53:01]MH_Cut [07:53:01]Write to MH i2c: D1 01 00 A6 90 01 08 [07:53:01]Write i2c OK [07:53:01]MH_I2C_Read... [07:53:01]Read from MH i2c: D1 [07:53:01]MH_I2C_Read... [07:53:01]Read from MH i2c: D1 01 00 [07:53:01]MH_I2C_Read... [07:53:01]Read from MH i2c: D1 01 00 A6 90 00 07 [07:53:01]Write to MH i2c: 01 00 00 A7 90 37 [07:53:01]Write i2c OK [07:53:01]MH_I2C_Read... [07:53:02]*** Cut start [07:53:02]*** Partial cut [07:53:02]*** CUTSNS_PIN = 1 [07:53:02]*** CUTSNS_PIN = 0 [07:53:02]*** Brake cut motor [07:53:02]Read from MH i2c: 01 [07:53:02]MH_I2C_Read... [07:53:02]*** Stop cut motor [07:53:02]*** Cut end [07:53:02]Read from MH i2c: 01 07 00 [07:53:02]MH_I2C_Read... [07:53:02]Read from MH i2c: 01 07 00 A7 90 00 00 00 00 00 FF 0F 4C [07:53:02]process_action print_text done [07:53:02]requested_data is exist [07:53:02]produce_requested_data [07:53:02]requested_item fm.sn is exist - process it [07:53:02]wFMCommunicate request_size=4 [07:53:02]MH_SAM_APDU [07:53:02]CAPDU: 80 11 00 00 [07:53:02]Write to MH i2c: E2 08 00 A8 90 80 11 00 00 00 00 00 00 B2 [07:53:02]Write i2c OK [07:53:02]MH_I2C_Read... [07:53:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:53:02]Read from MH i2c: E2 [07:53:02]MH_I2C_Read... [07:53:02]Read from MH i2c: E2 17 00 [07:53:02]MH_I2C_Read... [07:53:02]Read from MH i2c: E2 17 00 A8 90 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 05 [07:53:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [07:53:02]wFMCommunicate OK [07:53:02]requested_item fd.num is exist - process it [07:53:02]SAM_PROTO_GetFieldsCounters [07:53:02]wFMCommunicate request_size=4 [07:53:02]MH_SAM_APDU [07:53:02]CAPDU: 80 13 00 00 [07:53:02]Write to MH i2c: E2 08 00 A9 90 80 13 00 00 00 00 00 00 B5 [07:53:02]Write i2c OK [07:53:02]MH_I2C_Read... [07:53:02]OFD Sender: No OFD packet to send [07:53:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:53:02]Read from MH i2c: E2 [07:53:02]MH_I2C_Read... [07:53:02]Read from MH i2c: E2 62 00 [07:53:02]MH_I2C_Read... [07:53:02]Read from MH i2c: E2 62 00 A9 90 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 A9 94 01 00 0E 04 04 00 61 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 C1 [07:53:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 A9 94 01 00 0E 04 04 00 61 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 [07:53:02]wFMCommunicate OK [07:53:02]SAM_PROTO_GetFieldsCounters done [07:53:02]requested_item shift.num is exist - process it [07:53:02]requested_item shift.opened is exist - process it [07:53:02]req_shift_opened [07:53:02]FM_GetShiftState [07:53:02]SAM_PROTO_GetShiftState [07:53:02]wFMCommunicate request_size=4 [07:53:02]MH_SAM_APDU [07:53:02]CAPDU: 80 13 01 00 [07:53:02]Write to MH i2c: E2 08 00 AA 90 80 13 01 00 00 00 00 00 B7 [07:53:02]Write i2c OK [07:53:02]MH_I2C_Read... [07:53:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:53:02]Read from MH i2c: E2 [07:53:02]MH_I2C_Read... [07:53:02]Read from MH i2c: E2 0E 00 [07:53:02]MH_I2C_Read... [07:53:02]Read from MH i2c: E2 0E 00 AA 90 00 09 00 01 04 26 72 66 00 00 00 00 90 00 C5 [07:53:02]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [07:53:02]wFMCommunicate OK [07:53:02]SAM_PROTO_GetShiftState done [07:53:02]FM_GetShiftState done [07:53:02]req_shift_opened done [07:53:02]requested_item shift.open_date is exist - process it [07:53:02]req_shift_open_date [07:53:02]req_shift_open_date done [07:53:02]produce_requested_data done [07:53:02]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103593,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [07:53:02]process_action_free print_text [07:53:02]json_value_free [07:53:02]json_value_free done [07:53:02]process_json_proto returns [07:53:02]Send response to host [07:53:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103593,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [07:53:02]free response buf [07:53:02]execute_script done [07:53:02]execute_script returns [07:53:02]free content buf [07:53:02]Sock 9.Close socket [07:53:02]Sock 9.Thread stoped [07:53:07]OFD Sender: No OFD packet to send [07:53:12]OFD Sender: No OFD packet to send [07:53:17]OFD Sender: No OFD packet to send [07:53:22]OFD Sender: No OFD packet to send [07:53:27]OFD Sender: No OFD packet to send [07:53:32]OFD Sender: No OFD packet to send [07:53:37]OFD Sender: No OFD packet to send [07:53:42]OFD Sender: No OFD packet to send [07:53:47]OFD Sender: No OFD packet to send [07:53:52]OFD Sender: No OFD packet to send [07:53:57]OFD Sender: No OFD packet to send [07:54:02]OFD Sender: No OFD packet to send [07:54:07]OFD Sender: No OFD packet to send [07:54:12]OFD Sender: No OFD packet to send [07:54:17]OFD Sender: No OFD packet to send [07:54:22]OFD Sender: No OFD packet to send [07:54:27]OFD Sender: No OFD packet to send [07:54:32]OFD Sender: No OFD packet to send [07:54:37]OFD Sender: No OFD packet to send [07:54:42]OFD Sender: No OFD packet to send [07:54:47]OFD Sender: No OFD packet to send [07:54:52]OFD Sender: No OFD packet to send [07:54:57]OFD Sender: No OFD packet to send [07:55:02]OFD Sender: No OFD packet to send [07:55:07]OFD Sender: No OFD packet to send [07:55:12]OFD Sender: No OFD packet to send [07:55:17]OFD Sender: No OFD packet to send [07:55:22]OFD Sender: No OFD packet to send [07:55:27]OFD Sender: No OFD packet to send [07:55:32]OFD Sender: No OFD packet to send [07:55:37]OFD Sender: No OFD packet to send [07:55:42]OFD Sender: No OFD packet to send [07:55:47]OFD Sender: No OFD packet to send [07:55:52]OFD Sender: No OFD packet to send [07:55:57]OFD Sender: No OFD packet to send [07:56:02]OFD Sender: No OFD packet to send [07:56:07]OFD Sender: No OFD packet to send [07:56:12]OFD Sender: No OFD packet to send [07:56:17]OFD Sender: No OFD packet to send [07:56:22]OFD Sender: No OFD packet to send [07:56:27]OFD Sender: No OFD packet to send [07:56:32]OFD Sender: No OFD packet to send [07:56:37]OFD Sender: No OFD packet to send [07:56:42]OFD Sender: No OFD packet to send [07:56:47]OFD Sender: No OFD packet to send [07:56:52]OFD Sender: No OFD packet to send [07:56:57]OFD Sender: No OFD packet to send [07:57:02]OFD Sender: No OFD packet to send [07:57:07]OFD Sender: No OFD packet to send [07:57:12]OFD Sender: No OFD packet to send [07:57:17]OFD Sender: No OFD packet to send [07:57:22]OFD Sender: No OFD packet to send [07:57:27]OFD Sender: No OFD packet to send [07:57:32]OFD Sender: No OFD packet to send [07:57:37]OFD Sender: No OFD packet to send [07:57:42]OFD Sender: No OFD packet to send [07:57:47]OFD Sender: No OFD packet to send [07:57:52]OFD Sender: No OFD packet to send [07:57:57]OFD Sender: No OFD packet to send [07:58:02]OFD Sender: No OFD packet to send [07:58:07]OFD Sender: No OFD packet to send [07:58:12]OFD Sender: No OFD packet to send [07:58:17]OFD Sender: No OFD packet to send [07:58:22]OFD Sender: No OFD packet to send [07:58:27]OFD Sender: No OFD packet to send [07:58:32]OFD Sender: No OFD packet to send [07:58:37]OFD Sender: No OFD packet to send [07:58:43]OFD Sender: No OFD packet to send [07:58:48]OFD Sender: No OFD packet to send [07:58:53]OFD Sender: No OFD packet to send [07:58:58]OFD Sender: No OFD packet to send [07:59:03]OFD Sender: No OFD packet to send [07:59:08]OFD Sender: No OFD packet to send [07:59:13]OFD Sender: No OFD packet to send [07:59:18]OFD Sender: No OFD packet to send [07:59:23]OFD Sender: No OFD packet to send [07:59:28]OFD Sender: No OFD packet to send [07:59:33]OFD Sender: No OFD packet to send [07:59:38]OFD Sender: No OFD packet to send [07:59:43]OFD Sender: No OFD packet to send [07:59:48]OFD Sender: No OFD packet to send [07:59:53]OFD Sender: No OFD packet to send [07:59:58]OFD Sender: No OFD packet to send [08:00:03]OFD Sender: No OFD packet to send [08:00:08]OFD Sender: No OFD packet to send [08:00:13]OFD Sender: No OFD packet to send [08:00:18]OFD Sender: No OFD packet to send [08:00:23]OFD Sender: No OFD packet to send [08:00:28]OFD Sender: No OFD packet to send [08:00:33]OFD Sender: No OFD packet to send [08:00:38]OFD Sender: No OFD packet to send [08:00:43]OFD Sender: No OFD packet to send [08:00:48]OFD Sender: No OFD packet to send [08:00:53]OFD Sender: No OFD packet to send [08:00:58]OFD Sender: No OFD packet to send [08:01:03]OFD Sender: No OFD packet to send [08:01:08]OFD Sender: No OFD packet to send [08:01:13]OFD Sender: No OFD packet to send [08:01:18]OFD Sender: No OFD packet to send [08:01:23]OFD Sender: No OFD packet to send [08:01:28]OFD Sender: No OFD packet to send [08:01:33]OFD Sender: No OFD packet to send [08:01:38]OFD Sender: No OFD packet to send [08:01:43]OFD Sender: No OFD packet to send [08:01:48]OFD Sender: No OFD packet to send [08:01:53]OFD Sender: No OFD packet to send [08:01:58]OFD Sender: No OFD packet to send [08:02:03]OFD Sender: No OFD packet to send [08:02:08]OFD Sender: No OFD packet to send [08:02:13]OFD Sender: No OFD packet to send [08:02:18]OFD Sender: No OFD packet to send [08:02:23]OFD Sender: No OFD packet to send [08:02:28]OFD Sender: No OFD packet to send [08:02:33]OFD Sender: No OFD packet to send [08:02:38]OFD Sender: No OFD packet to send [08:02:43]OFD Sender: No OFD packet to send [08:02:48]OFD Sender: No OFD packet to send [08:02:53]OFD Sender: No OFD packet to send [08:02:58]OFD Sender: No OFD packet to send [08:03:03]OFD Sender: No OFD packet to send [08:03:08]OFD Sender: No OFD packet to send [08:03:13]OFD Sender: No OFD packet to send [08:03:18]OFD Sender: No OFD packet to send [08:03:23]OFD Sender: No OFD packet to send [08:03:28]OFD Sender: No OFD packet to send [08:03:33]OFD Sender: No OFD packet to send [08:03:38]OFD Sender: No OFD packet to send [08:03:43]OFD Sender: No OFD packet to send [08:03:48]OFD Sender: No OFD packet to send [08:03:53]OFD Sender: No OFD packet to send [08:03:58]OFD Sender: No OFD packet to send [08:04:03]OFD Sender: No OFD packet to send [08:04:08]OFD Sender: No OFD packet to send [08:04:13]OFD Sender: No OFD packet to send [08:04:18]OFD Sender: No OFD packet to send [08:04:23]OFD Sender: No OFD packet to send [08:04:28]OFD Sender: No OFD packet to send [08:04:33]OFD Sender: No OFD packet to send [08:04:38]OFD Sender: No OFD packet to send [08:04:43]OFD Sender: No OFD packet to send [08:04:46]accept exits with 7 [08:04:46]New connection [08:04:46]New thread 3067227492 created [08:04:46]Thread 3067084132 joined [08:04:46]Waiting for new connection... [08:04:46] Sock 7.Parse request [08:04:46]Sock 7.Check first char [08:04:46]Sock 7.First char is OK [08:04:46]request: POST /json_proto HTTP/1.0 [08:04:46]Method: POST [08:04:46]URL: /json_proto [08:04:46]Method is POST - this is cgi request [08:04:46]url: /json_proto [08:04:46]query_string will be loaded in cgi processing [08:04:46]execute_cgi json_proto POST (null) [08:04:46]execute_cgi path=json_proto method=POST [08:04:46]POST find Content-Length [08:04:46]Host: 172.17.38.133:8080 [08:04:46]Content-Length: 687 [08:04:46]Content-Type: application/json [08:04:46] [08:04:46]POST finish read [08:04:46]Found Content-Length = 687 [08:04:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672814", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 13.720, "sum" : 1000.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:04:46]execute_script... [08:04: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)672814", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 13.720, "sum" : 1000.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:04:46]POST & json_proto [08:04:46]process_json_proto [08:04:46]json parsed OK: [08:04:46]protocol is kg_v1.0 [08:04:46]action value=close_receipt [08:04:46]process_action close_receipt [08:04:46]cmd_close_receipt [08:04:46]MH_GetDate [08:04:46]Write to MH i2c: F0 00 00 AB 90 2A [08:04:46]Write i2c OK [08:04:46]MH_I2C_Read... [08:04:46]Read from MH i2c: F0 [08:04:46]MH_I2C_Read... [08:04:46]Read from MH i2c: F0 09 00 [08:04:46]MH_I2C_Read... [08:04:46]Read from MH i2c: F0 09 00 AB 90 00 2A 91 72 66 BD 8F 7C 64 F2 [08:04:46]GetLastDocTimeStamp 1718781829 [08:04:46]current date 1718784298 [08:04:46]FM_GetShiftState [08:04:46]SAM_PROTO_GetShiftState [08:04:46]wFMCommunicate request_size=4 [08:04:46]MH_SAM_APDU [08:04:46]CAPDU: 80 13 01 00 [08:04:46]Write to MH i2c: E2 08 00 AC 90 80 13 01 00 00 00 00 00 B9 [08:04:46]Write i2c OK [08:04:46]MH_I2C_Read... [08:04:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:04:46]Read from MH i2c: E2 [08:04:46]MH_I2C_Read... [08:04:46]Read from MH i2c: E2 0E 00 [08:04:46]MH_I2C_Read... [08:04:46]Read from MH i2c: E2 0E 00 AC 90 00 09 00 01 04 26 72 66 00 00 00 00 90 00 C7 [08:04:46]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [08:04:46]wFMCommunicate OK [08:04:46]SAM_PROTO_GetShiftState done [08:04:46]FM_GetShiftState done [08:04:46]opened in 1718756868 [08:04:46]opened+sec_in_day 1718843268 [08:04:46]quantity*price = 100018 [08:04:46]sum+1 = 100020 [08:04:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.19 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 24 19.06.2024 08:04 Смена: 353 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103594 ФПД: 211472972892793 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T080458&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103594&fm=211472972892793&tin=02508201610067®Number=0000000000092785&sum=100000 [08:04:47]StoreToDocumentArchive [08:04:47]shift 353 fd 103594 [08:04:47]save to /storage/0353/doc_00103594 [08:04:47]save last doc name /storage/0353/doc_00103594 to /storage/kkm_last_doc_name [08:04:47]save OK [08:04:47]Clear old archive folders... [08:04:47]ProcessDocumentItem done err = 0, tmpTLVsize=252 [08:04:47]tlvbuf is 01446260 [08:04:47]SAM_PROTO_ClearQueue [08:04:47]wFMCommunicate request_size=4 [08:04:47]MH_SAM_APDU [08:04:47]CAPDU: 80 09 00 00 [08:04:47]Write to MH i2c: E2 08 00 B9 90 80 09 00 00 00 00 00 00 BB [08:04:47]Write i2c OK [08:04:47]MH_I2C_Read... [08:04:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:04:48]Read from MH i2c: E2 [08:04:48]MH_I2C_Read... [08:04:48]Read from MH i2c: E2 03 00 [08:04:48]MH_I2C_Read... [08:04:48]Read from MH i2c: E2 03 00 B9 90 00 90 00 BD [08:04:48]RAPDU: 90 00 [08:04:48]wFMCommunicate OK [08:04:48]SAM_PROTO_ClearQueue done [08:04:48]KKMCreateOFDPacket [08:04:48]OFDProtocolAddRootSTLVToBuf [08:04:48]FM_MakeSignedData [08:04:48]FM_MakeSignedData [08:04:48]SAM_PROTO_SignData [08:04:48]wFMCommunicate request_size=4 [08:04:48]MH_SAM_APDU [08:04:48]CAPDU: 80 0D 01 02 [08:04:48]Write to MH i2c: E2 08 00 BA 90 80 0D 01 02 00 00 00 00 C3 [08:04:48]Write i2c OK [08:04:48]MH_I2C_Read... [08:04:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:04:48]Read from MH i2c: E2 [08:04:48]MH_I2C_Read... [08:04:48]Read from MH i2c: E2 03 00 [08:04:48]MH_I2C_Read... [08:04:48]Read from MH i2c: E2 03 00 BA 90 00 90 00 BE [08:04:48]RAPDU: 90 00 [08:04:48]wFMCommunicate OK [08:04:48]wFMCommunicate request_size=255 [08:04:48]MH_SAM_APDU [08:04:48]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 2A 91 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 AA 94 01 00 35 04 06 00 [08:04:48]Write to MH i2c: E2 02 01 BB 90 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 2A 91 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 AA 94 01 00 35 04 06 00 00 00 63 [08:04:48]Write i2c OK [08:04:48]MH_I2C_Read... [08:04:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:04:48]Read from MH i2c: E2 [08:04:48]MH_I2C_Read... [08:04:48]Read from MH i2c: E2 03 00 [08:04:48]MH_I2C_Read... [08:04:48]Read from MH i2c: E2 03 00 BB 90 00 90 00 BF [08:04:48]RAPDU: 90 00 [08:04:48]wFMCommunicate OK [08:04:48]wFMCommunicate request_size=11 [08:04:48]MH_SAM_APDU [08:04:48]CAPDU: 80 0D 02 02 06 C0 55 63 6D CA 79 [08:04:48]Write to MH i2c: E2 0E 00 BC 90 80 0D 02 02 06 00 C0 55 63 6D CA 79 00 00 FA [08:04:48]Write i2c OK [08:04:48]MH_I2C_Read... [08:04:48]OFD Sender: No OFD packet to send [08:04:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:04:48]Read from MH i2c: E2 [08:04:48]MH_I2C_Read... [08:04:48]Read from MH i2c: E2 03 00 [08:04:48]MH_I2C_Read... [08:04:48]Read from MH i2c: E2 03 00 BC 90 00 90 00 C0 [08:04:48]RAPDU: 90 00 [08:04:48]wFMCommunicate OK [08:04:48]wFMCommunicate request_size=4 [08:04:48]MH_SAM_APDU [08:04:48]CAPDU: 80 0D 03 02 [08:04:48]Write to MH i2c: E2 08 00 BD 90 80 0D 03 02 00 00 00 00 C8 [08:04:48]Write i2c OK [08:04:48]MH_I2C_Read... [08:04:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:04:48]Read from MH i2c: E2 [08:04:48]MH_I2C_Read... [08:04:48]Read from MH i2c: E2 0B 00 [08:04:48]MH_I2C_Read... [08:04:48]Read from MH i2c: E2 0B 00 BD 90 00 B6 72 D6 95 31 17 EA 4D 90 00 DB [08:04:48]RAPDU: B6 72 D6 95 31 17 EA 4D 90 00 [08:04:48]wFMCommunicate OK [08:04:48]SAM_PROTO_SignData done [08:04:48]FM_MakeSignedData done [08:04:48]CreateOFDProtocolMessage [08:04:48]wFMCommunicate request_size=4 [08:04:48]MH_SAM_APDU [08:04:48]CAPDU: 80 11 00 00 [08:04:48]Write to MH i2c: E2 08 00 BE 90 80 11 00 00 00 00 00 00 C8 [08:04:48]Write i2c OK [08:04:48]MH_I2C_Read... [08:04:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:04:48]Read from MH i2c: E2 [08:04:48]MH_I2C_Read... [08:04:48]Read from MH i2c: E2 17 00 [08:04:48]MH_I2C_Read... [08:04:48]Read from MH i2c: E2 17 00 BE 90 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 1B [08:04:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [08:04:48]wFMCommunicate OK [08:04:48]CreateOFDProtocolMessage done [08:04:48]OFDSenderStorePacket 103594 [08:04:48]StoreOFDPacket docnum=103594 [08:04:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 12 57 08 01 A5 53 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 2A 91 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 AA 94 01 00 35 04 06 00 C0 55 63 6D CA 79 B6 72 D6 95 31 17 EA 4D [08:04:48]CheckFolder [08:04:48]dirname=/storage/ofd_packets [08:04:48]CheckFolder done [08:04:48]ProducePacketName [08:04:48]name=ofd_packets/00103594 [08:04:48]NVStorageSaveData ofd_packets/00103594 [08:04:48]File name is /storage/ofd_packets/00103594 [08:04:48]Write 302 bytes [08:04:48]NVStorageSaveData done [08:04:48]OFDSenderStorePacket done [08:04:48]KKMCreateOFDPacket done [08:04:48]NVStorageSaveData kkm_last_timestamp [08:04:48]File name is /storage/kkm_last_timestamp [08:04:48]Write 4 bytes [08:04:48]NVStorageSaveData done [08:04:48]ExternCall_PrintAddStr [08:04:48]wPrintStart [08:04:48]Write to MH i2c: 01 00 00 BF 90 4F [08:04:48]Write i2c OK [08:04:48]MH_I2C_Read... [08:04:48]Read from MH i2c: 01 [08:04:48]MH_I2C_Read... [08:04:48]Read from MH i2c: 01 07 00 [08:04:48]MH_I2C_Read... [08:04:48]Read from MH i2c: 01 07 00 BF 90 00 00 00 00 00 FF 0F 64 [08:04:48]RasterBufferAndPrint [08:04:48]line Счет N : (1)672814 [08:04:48]line ИНН: 02508201610067 [08:04:48]line Контрольно-Кассовый Чек [08:04:48]line ПРОДАЖА [08:04:48]line ТРК (МРК, ГНК) : 21 [08:04:48]line Товар: 2710194210 [08:04:48]line ДТ(л)-К-5 [08:04:48]line 13.720 * 72.90 [08:04:48]line = 1000.19 [08:04:48]line НДС 12% НСП 1% [08:04:48]line > о реализуемом товаре [08:04:48]line ОКРУГЛЕНИЕ: -0.19 [08:04:48]line ИТОГО: 1000.00 [08:04:48]line Внесено: 1000.00 [08:04:48]line СДАЧА: 0.00 [08:04:48]line НСП 1% : 8.85 [08:04:48]line НДС 12% : 106.21 [08:04:48]line Наличными: 1000.00 [08:04:48]line Безнал.: 0.00 [08:04:48]line Место: АЗС № 120 "Партнер Нефть" [08:04:48]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [08:04:48]line СНО: Общий режим [08:04:48]line Чек 24 19.06.2024 08:04 [08:04:48]line Смена: 353 ФФД: 1.0 [08:04:48]line ЗНМ: 0300000164 [08:04:48]line РНМ: 0000000000092785 [08:04:48]line Версия ККМ: 001 [08:04:48]line ФМ: 0000000000875093 [08:04:48]line ФД: 103594 [08:04:48]line ФПД: 211472972892793 [08:04:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T080458&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103594&fm=211472972892793&tin=02508201610067®Number=0000000000092785&sum=100000 [08:04:48]OFD Sender: Processing packet 103594 [packets to send 17, broken 16] [08:04:48]ProducePacketName [08:04:48]name=ofd_packets/00103594 [08:04:48]OFD Sender: To server: pG, [08:04:48]CommunicateWithHost lk.salyk.kg:30040 [08:04:48]ConnectInit lk.salyk.kg [08:04:48]written 0, free lines is 4095 [08:04:48]Connected sock=10 [08:04: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 39 33 10 01 00 00 12 57 08 01 A5 53 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 2A 91 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 AA 94 01 00 35 04 06 00 C0 55 63 6D CA 79 B6 72 D6 95 31 17 EA 4D [08:04: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 39 33 4F 00 00 00 B8 65 47 00 37 59 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 AA 94 01 00 F4 03 04 00 B3 37 72 66 B6 04 01 00 00 9E 36 04 6A 4A 8F 22 CE [08:04:49]CommunicateWithHost err = 0 [08:04:49]CheckOFDResponse [08:04:49]1017 (14) - 77093643461234 [08:04:49]1041 (16) - 0000000000875093 [08:04:49]1040 (4) - 103594 [08:04:49]1012 (4) - 19.06.2024 01:43 [08:04:49]1206 (1) - 0 [08:04:49]OFD Sender: Remove packet 103594 [08:04:49]ProducePacketName [08:04:49]name=ofd_packets/00103594 [08:04:49]NVStorageDeleteData [08:04:49]Write to MH i2c: 01 00 00 EA 90 7A [08:04:49]Write i2c OK [08:04:49]MH_I2C_Read... [08:04:49]Read from MH i2c: 01 [08:04:49]MH_I2C_Read... [08:04:49]Read from MH i2c: 01 07 00 [08:04:49]MH_I2C_Read... [08:04:49]Read from MH i2c: 01 07 00 EA 90 00 00 00 00 00 E7 0C 74 [08:04:49]RasterBufferAndPrint [08:04:49]line [08:04:49]line [08:04:49]line [08:04:49]line [08:04:49]line [08:04:49]written 0, free lines is 3310 [08:04:49]MH_Cut [08:04:49]Write to MH i2c: D1 01 00 F1 90 01 53 [08:04:49]Write i2c OK [08:04:49]MH_I2C_Read... [08:04:49]Read from MH i2c: D1 [08:04:49]MH_I2C_Read... [08:04:49]Read from MH i2c: D1 01 00 [08:04:49]MH_I2C_Read... [08:04:49]Read from MH i2c: D1 01 00 F1 90 00 52 [08:04:49]Write to MH i2c: 01 00 00 F2 90 82 [08:04:49]Write i2c OK [08:04:49]MH_I2C_Read... [08:04:49]OFD Sender: No OFD packet to send [08:04:50]*** Cut start [08:04:50]*** Partial cut [08:04:50]*** CUTSNS_PIN = 1 [08:04:50]*** CUTSNS_PIN = 0 [08:04:50]*** Brake cut motor [08:04:50]Read from MH i2c: 01 [08:04:50]MH_I2C_Read... [08:04:50]*** Stop cut motor [08:04:50]*** Cut end [08:04:50]Read from MH i2c: 01 07 00 [08:04:50]MH_I2C_Read... [08:04:50]Read from MH i2c: 01 07 00 F2 90 00 00 00 00 00 FF 0F 97 [08:04:50]process_action close_receipt done [08:04:50]requested_data is exist [08:04:50]produce_requested_data [08:04:50]requested_item fm.sn is exist - process it [08:04:50]wFMCommunicate request_size=4 [08:04:50]MH_SAM_APDU [08:04:50]CAPDU: 80 11 00 00 [08:04:50]Write to MH i2c: E2 08 00 F3 90 80 11 00 00 00 00 00 00 FD [08:04:50]Write i2c OK [08:04:50]MH_I2C_Read... [08:04:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:04:50]Read from MH i2c: E2 [08:04:50]MH_I2C_Read... [08:04:50]Read from MH i2c: E2 17 00 [08:04:50]MH_I2C_Read... [08:04:50]Read from MH i2c: E2 17 00 F3 90 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 50 [08:04:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [08:04:50]wFMCommunicate OK [08:04:50]requested_item fd.num is exist - process it [08:04:50]SAM_PROTO_GetFieldsCounters [08:04:50]wFMCommunicate request_size=4 [08:04:50]MH_SAM_APDU [08:04:50]CAPDU: 80 13 00 00 [08:04:50]Write to MH i2c: E2 08 00 F4 90 80 13 00 00 00 00 00 00 00 [08:04:50]Write i2c OK [08:04:50]MH_I2C_Read... [08:04:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:04:50]Read from MH i2c: E2 [08:04:50]MH_I2C_Read... [08:04:50]Read from MH i2c: E2 62 00 [08:04:50]MH_I2C_Read... [08:04:50]Read from MH i2c: E2 62 00 F4 90 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 AA 94 01 00 0E 04 04 00 61 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 10 [08:04: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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 AA 94 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 18 00 00 00 5E 04 04 00 18 00 00 00 57 04 04 00 19 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:04:50]wFMCommunicate OK [08:04:50]SAM_PROTO_GetFieldsCounters done [08:04:50]requested_item shift.num is exist - process it [08:04:50]requested_item shift.opened is exist - process it [08:04:50]req_shift_opened [08:04:50]FM_GetShiftState [08:04:50]SAM_PROTO_GetShiftState [08:04:50]wFMCommunicate request_size=4 [08:04:50]MH_SAM_APDU [08:04:50]CAPDU: 80 13 01 00 [08:04:50]Write to MH i2c: E2 08 00 F5 90 80 13 01 00 00 00 00 00 02 [08:04:50]Write i2c OK [08:04:50]MH_I2C_Read... [08:04:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:04:50]Read from MH i2c: E2 [08:04:50]MH_I2C_Read... [08:04:50]Read from MH i2c: E2 0E 00 [08:04:50]MH_I2C_Read... [08:04:50]Read from MH i2c: E2 0E 00 F5 90 00 09 00 01 04 26 72 66 00 00 00 00 90 00 10 [08:04:50]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [08:04:50]wFMCommunicate OK [08:04:50]SAM_PROTO_GetShiftState done [08:04:50]FM_GetShiftState done [08:04:50]req_shift_opened done [08:04:50]requested_item shift.open_date is exist - process it [08:04:50]req_shift_open_date [08:04:50]req_shift_open_date done [08:04:50]produce_requested_data done [08:04:50]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103594,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [08:04:50]process_action_free close_receipt [08:04:50]json_value_free [08:04:50]json_value_free done [08:04:50]process_json_proto returns [08:04:50]Send response to host [08:04:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103594,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [08:04:50]free response buf [08:04:50]execute_script done [08:04:50]execute_script returns [08:04:50]free content buf [08:04:50]Sock 7.Close socket [08:04:50]Sock 7.Thread stoped [08:04:54]OFD Sender: No OFD packet to send [08:04:59]OFD Sender: No OFD packet to send [08:05:04]OFD Sender: No OFD packet to send [08:05:09]OFD Sender: No OFD packet to send [08:05:14]OFD Sender: No OFD packet to send [08:05:19]OFD Sender: No OFD packet to send [08:05:24]OFD Sender: No OFD packet to send [08:05:29]OFD Sender: No OFD packet to send [08:05:34]OFD Sender: No OFD packet to send [08:05:39]OFD Sender: No OFD packet to send [08:05:44]OFD Sender: No OFD packet to send [08:05:49]OFD Sender: No OFD packet to send [08:05:54]OFD Sender: No OFD packet to send [08:05:59]OFD Sender: No OFD packet to send [08:06:04]OFD Sender: No OFD packet to send [08:06:09]OFD Sender: No OFD packet to send [08:06:14]OFD Sender: No OFD packet to send [08:06:19]OFD Sender: No OFD packet to send [08:06:24]OFD Sender: No OFD packet to send [08:06:29]OFD Sender: No OFD packet to send [08:06:34]OFD Sender: No OFD packet to send [08:06:39]OFD Sender: No OFD packet to send [08:06:44]OFD Sender: No OFD packet to send [08:06:49]OFD Sender: No OFD packet to send [08:06:54]OFD Sender: No OFD packet to send [08:06:59]OFD Sender: No OFD packet to send [08:07:04]OFD Sender: No OFD packet to send [08:07:09]OFD Sender: No OFD packet to send [08:07:14]OFD Sender: No OFD packet to send [08:07:19]OFD Sender: No OFD packet to send [08:07:23]accept exits with 9 [08:07:23]New connection [08:07:23]New thread 3067084132 created [08:07:23]Thread 3067227492 joined [08:07:23]Waiting for new connection... [08:07:23] Sock 9.Parse request [08:07:23]Sock 9.Check first char [08:07:23]Sock 9.First char is OK [08:07:23]request: POST /json_proto HTTP/1.0 [08:07:23]Method: POST [08:07:23]URL: /json_proto [08:07:23]Method is POST - this is cgi request [08:07:23]url: /json_proto [08:07:23]query_string will be loaded in cgi processing [08:07:23]execute_cgi json_proto POST (null) [08:07:23]execute_cgi path=json_proto method=POST [08:07:23]POST find Content-Length [08:07:23]Host: 172.17.38.133:8080 [08:07:23]Content-Length: 682 [08:07:23]Content-Type: application/json [08:07:23] [08:07:23]POST finish read [08:07:23]Found Content-Length = 682 [08:07:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672816", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 8.240, "sum" : 600.70, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:07:23]execute_script... [08: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)672816", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 8.240, "sum" : 600.70, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:07:23]POST & json_proto [08:07:23]process_json_proto [08:07:23]json parsed OK: [08:07:23]protocol is kg_v1.0 [08:07:23]action value=close_receipt [08:07:23]process_action close_receipt [08:07:23]cmd_close_receipt [08:07:23]MH_GetDate [08:07:23]Write to MH i2c: F0 00 00 F6 90 75 [08:07:23]Write i2c OK [08:07:23]MH_I2C_Read... [08:07:23]Read from MH i2c: F0 [08:07:23]MH_I2C_Read... [08:07:23]Read from MH i2c: F0 09 00 [08:07:23]MH_I2C_Read... [08:07:23]Read from MH i2c: F0 09 00 F6 90 00 C6 91 72 66 BD 8F 7C 64 D9 [08:07:23]GetLastDocTimeStamp 1718784298 [08:07:23]current date 1718784454 [08:07:23]FM_GetShiftState [08:07:23]SAM_PROTO_GetShiftState [08:07:23]wFMCommunicate request_size=4 [08:07:23]MH_SAM_APDU [08:07:23]CAPDU: 80 13 01 00 [08:07:23]Write to MH i2c: E2 08 00 F7 90 80 13 01 00 00 00 00 00 04 [08:07:23]Write i2c OK [08:07:23]MH_I2C_Read... [08:07:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:07:23]Read from MH i2c: E2 [08:07:23]MH_I2C_Read... [08:07:23]Read from MH i2c: E2 0E 00 [08:07:23]MH_I2C_Read... [08:07:23]Read from MH i2c: E2 0E 00 F7 90 00 09 00 01 04 26 72 66 00 00 00 00 90 00 12 [08:07:23]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [08:07:23]wFMCommunicate OK [08:07:23]SAM_PROTO_GetShiftState done [08:07:23]FM_GetShiftState done [08:07:23]opened in 1718756868 [08:07:23]opened+sec_in_day 1718843268 [08:07:23]quantity*price = 60069 [08:07:23]sum+1 = 60071 [08:07:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.70 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.32 НДС 12% : 63.79 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 25 19.06.2024 08:07 Смена: 353 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103595 ФПД: 161831872920938 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T080734&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103595&fm=161831872920938&tin=02508201610067®Number=0000000000092785&sum=60000 [08:07:24]StoreToDocumentArchive [08:07:24]shift 353 fd 103595 [08:07:24]save to /storage/0353/doc_00103595 [08:07:24]save last doc name /storage/0353/doc_00103595 to /storage/kkm_last_doc_name [08:07:24]save OK [08:07:24]Clear old archive folders... [08:07:24]ProcessDocumentItem done err = 0, tmpTLVsize=252 [08:07:24]tlvbuf is 014F4100 [08:07:24]SAM_PROTO_ClearQueue [08:07:24]wFMCommunicate request_size=4 [08:07:24]MH_SAM_APDU [08:07:24]CAPDU: 80 09 00 00 [08:07:24]Write to MH i2c: E2 08 00 04 91 80 09 00 00 00 00 00 00 07 [08:07:24]Write i2c OK [08:07:24]MH_I2C_Read... [08:07:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:07:24]Read from MH i2c: E2 [08:07:24]MH_I2C_Read... [08:07:24]Read from MH i2c: E2 03 00 [08:07:24]MH_I2C_Read... [08:07:24]Read from MH i2c: E2 03 00 04 91 00 90 00 09 [08:07:24]RAPDU: 90 00 [08:07:24]wFMCommunicate OK [08:07:24]SAM_PROTO_ClearQueue done [08:07:24]KKMCreateOFDPacket [08:07:24]OFDProtocolAddRootSTLVToBuf [08:07:24]FM_MakeSignedData [08:07:24]FM_MakeSignedData [08:07:24]SAM_PROTO_SignData [08:07:24]wFMCommunicate request_size=4 [08:07:24]MH_SAM_APDU [08:07:24]CAPDU: 80 0D 01 02 [08:07:24]Write to MH i2c: E2 08 00 05 91 80 0D 01 02 00 00 00 00 0F [08:07:24]Write i2c OK [08:07:24]MH_I2C_Read... [08:07:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:07:24]Read from MH i2c: E2 [08:07:24]MH_I2C_Read... [08:07:24]Read from MH i2c: E2 03 00 [08:07:24]MH_I2C_Read... [08:07:24]Read from MH i2c: E2 03 00 05 91 00 90 00 0A [08:07:24]RAPDU: 90 00 [08:07:24]wFMCommunicate OK [08:07:24]wFMCommunicate request_size=255 [08:07:24]MH_SAM_APDU [08:07:24]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 30 20 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 A6 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 14 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EB 18 00 00 00 00 07 04 06 00 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 19 00 00 00 F4 03 04 00 C6 91 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 AB 94 01 00 35 04 06 00 [08:07:24]Write to MH i2c: E2 02 01 06 91 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 30 20 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 A6 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 14 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EB 18 00 00 00 00 07 04 06 00 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 19 00 00 00 F4 03 04 00 C6 91 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 AB 94 01 00 35 04 06 00 00 00 67 [08:07:24]Write i2c OK [08:07:24]MH_I2C_Read... [08:07:24]OFD Sender: No OFD packet to send [08:07:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:07:25]Read from MH i2c: E2 [08:07:25]MH_I2C_Read... [08:07:25]Read from MH i2c: E2 03 00 [08:07:25]MH_I2C_Read... [08:07:25]Read from MH i2c: E2 03 00 06 91 00 90 00 0B [08:07:25]RAPDU: 90 00 [08:07:25]wFMCommunicate OK [08:07:25]wFMCommunicate request_size=11 [08:07:25]MH_SAM_APDU [08:07:25]CAPDU: 80 0D 02 02 06 93 2F 6B 4C 7D 6A [08:07:25]Write to MH i2c: E2 0E 00 07 91 80 0D 02 02 06 00 93 2F 6B 4C 7D 6A 00 00 7E [08:07:25]Write i2c OK [08:07:25]MH_I2C_Read... [08:07:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:07:25]Read from MH i2c: E2 [08:07:25]MH_I2C_Read... [08:07:25]Read from MH i2c: E2 03 00 [08:07:25]MH_I2C_Read... [08:07:25]Read from MH i2c: E2 03 00 07 91 00 90 00 0C [08:07:25]RAPDU: 90 00 [08:07:25]wFMCommunicate OK [08:07:25]wFMCommunicate request_size=4 [08:07:25]MH_SAM_APDU [08:07:25]CAPDU: 80 0D 03 02 [08:07:25]Write to MH i2c: E2 08 00 08 91 80 0D 03 02 00 00 00 00 14 [08:07:25]Write i2c OK [08:07:25]MH_I2C_Read... [08:07:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:07:25]Read from MH i2c: E2 [08:07:25]MH_I2C_Read... [08:07:25]Read from MH i2c: E2 0B 00 [08:07:25]MH_I2C_Read... [08:07:25]Read from MH i2c: E2 0B 00 08 91 00 78 D6 BF A5 D3 C8 4F BD 90 00 6E [08:07:25]RAPDU: 78 D6 BF A5 D3 C8 4F BD 90 00 [08:07:25]wFMCommunicate OK [08:07:25]SAM_PROTO_SignData done [08:07:25]FM_MakeSignedData done [08:07:25]CreateOFDProtocolMessage [08:07:25]wFMCommunicate request_size=4 [08:07:25]MH_SAM_APDU [08:07:25]CAPDU: 80 11 00 00 [08:07:25]Write to MH i2c: E2 08 00 09 91 80 11 00 00 00 00 00 00 14 [08:07:25]Write i2c OK [08:07:25]MH_I2C_Read... [08:07:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:07:25]Read from MH i2c: E2 [08:07:25]MH_I2C_Read... [08:07:25]Read from MH i2c: E2 17 00 [08:07:25]MH_I2C_Read... [08:07:25]Read from MH i2c: E2 17 00 09 91 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 67 [08:07:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [08:07:25]wFMCommunicate OK [08:07:25]CreateOFDProtocolMessage done [08:07:25]OFDSenderStorePacket 103595 [08:07:25]StoreOFDPacket docnum=103595 [08:07:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 7E 23 08 01 EB 7B 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 30 20 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 A6 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 14 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EB 18 00 00 00 00 07 04 06 00 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 19 00 00 00 F4 03 04 00 C6 91 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 AB 94 01 00 35 04 06 00 93 2F 6B 4C 7D 6A 78 D6 BF A5 D3 C8 4F BD [08:07:25]CheckFolder [08:07:25]dirname=/storage/ofd_packets [08:07:25]CheckFolder done [08:07:25]ProducePacketName [08:07:25]name=ofd_packets/00103595 [08:07:25]NVStorageSaveData ofd_packets/00103595 [08:07:25]File name is /storage/ofd_packets/00103595 [08:07:25]Write 302 bytes [08:07:25]NVStorageSaveData done [08:07:25]OFDSenderStorePacket done [08:07:25]KKMCreateOFDPacket done [08:07:25]NVStorageSaveData kkm_last_timestamp [08:07:25]File name is /storage/kkm_last_timestamp [08:07:25]Write 4 bytes [08:07:25]NVStorageSaveData done [08:07:25]ExternCall_PrintAddStr [08:07:25]wPrintStart [08:07:25]Write to MH i2c: 01 00 00 0A 91 9B [08:07:25]Write i2c OK [08:07:25]MH_I2C_Read... [08:07:25]Read from MH i2c: 01 [08:07:25]MH_I2C_Read... [08:07:25]Read from MH i2c: 01 07 00 [08:07:25]MH_I2C_Read... [08:07:25]Read from MH i2c: 01 07 00 0A 91 00 00 00 00 00 FF 0F B0 [08:07:25]RasterBufferAndPrint [08:07:25]line Счет N : (1)672816 [08:07:25]line ИНН: 02508201610067 [08:07:25]line Контрольно-Кассовый Чек [08:07:25]line ПРОДАЖА [08:07:25]line ТРК (МРК, ГНК) : 21 [08:07:25]line Товар: 2710194210 [08:07:25]line ДТ(л)-К-5 [08:07:25]line 8.240 * 72.90 [08:07:25]line = 600.70 [08:07:25]line НДС 12% НСП 1% [08:07:25]line > о реализуемом товаре [08:07:25]line ОКРУГЛЕНИЕ: -0.70 [08:07:25]line ИТОГО: 600.00 [08:07:25]line Внесено: 600.00 [08:07:25]line СДАЧА: 0.00 [08:07:25]line НСП 1% : 5.32 [08:07:25]line НДС 12% : 63.79 [08:07:25]line Наличными: 600.00 [08:07:25]line Безнал.: 0.00 [08:07:25]line Место: АЗС № 120 "Партнер Нефть" [08:07:25]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [08:07:25]line СНО: Общий режим [08:07:25]line Чек 25 19.06.2024 08:07 [08:07:25]line Смена: 353 ФФД: 1.0 [08:07:25]line ЗНМ: 0300000164 [08:07:25]line РНМ: 0000000000092785 [08:07:25]line Версия ККМ: 001 [08:07:25]line ФМ: 0000000000875093 [08:07:25]line ФД: 103595 [08:07:25]line ФПД: 161831872920938 [08:07:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T080734&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103595&fm=161831872920938&tin=02508201610067®Number=0000000000092785&sum=60000 [08:07:25]OFD Sender: Processing packet 103595 [packets to send 17, broken 16] [08:07:25]ProducePacketName [08:07:25]name=ofd_packets/00103595 [08:07:25]OFD Sender: To server: pG, [08:07:25]CommunicateWithHost lk.salyk.kg:30040 [08:07:25]ConnectInit lk.salyk.kg [08:07:25]written 0, free lines is 4095 [08:07:25]Connected sock=10 [08: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 39 33 10 01 00 00 7E 23 08 01 EB 7B 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 30 20 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 A6 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 14 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EB 18 00 00 00 00 07 04 06 00 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 19 00 00 00 F4 03 04 00 C6 91 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 AB 94 01 00 35 04 06 00 93 2F 6B 4C 7D 6A 78 D6 BF A5 D3 C8 4F BD [08: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 39 33 4F 00 00 00 9C DB 47 00 84 DE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 AB 94 01 00 F4 03 04 00 50 38 72 66 B6 04 01 00 00 8D 70 5F 5B ED 5F 0F 21 [08:07:25]CommunicateWithHost err = 0 [08:07:25]CheckOFDResponse [08:07:25]1017 (14) - 77093643461234 [08:07:25]1041 (16) - 0000000000875093 [08:07:25]1040 (4) - 103595 [08:07:25]1012 (4) - 19.06.2024 01:45 [08:07:25]1206 (1) - 0 [08:07:25]OFD Sender: Remove packet 103595 [08:07:25]ProducePacketName [08:07:25]name=ofd_packets/00103595 [08:07:25]NVStorageDeleteData [08:07:25]Write to MH i2c: 01 00 00 35 91 C6 [08:07:25]Write i2c OK [08:07:25]MH_I2C_Read... [08:07:25]Read from MH i2c: 01 [08:07:25]MH_I2C_Read... [08:07:25]Read from MH i2c: 01 07 00 [08:07:25]MH_I2C_Read... [08:07:25]Read from MH i2c: 01 07 00 35 91 00 00 00 00 00 DF 0C B8 [08:07:25]RasterBufferAndPrint [08:07:25]line [08:07:25]line [08:07:25]line [08:07:25]line [08:07:25]line [08:07:25]written 0, free lines is 3304 [08:07:26]MH_Cut [08:07:26]Write to MH i2c: D1 01 00 3C 91 01 9F [08:07:26]Write i2c OK [08:07:26]MH_I2C_Read... [08:07:26]Read from MH i2c: D1 [08:07:26]MH_I2C_Read... [08:07:26]Read from MH i2c: D1 01 00 [08:07:26]MH_I2C_Read... [08:07:26]Read from MH i2c: D1 01 00 3C 91 00 9E [08:07:26]Write to MH i2c: 01 00 00 3D 91 CE [08:07:26]Write i2c OK [08:07:26]MH_I2C_Read... [08:07:26]OFD Sender: No OFD packet to send [08:07:26]*** Cut start [08:07:26]*** Partial cut [08:07:26]*** CUTSNS_PIN = 1 [08:07:26]*** CUTSNS_PIN = 0 [08:07:26]*** Brake cut motor [08:07:27]Read from MH i2c: 01 [08:07:27]MH_I2C_Read... [08:07:27]*** Stop cut motor [08:07:27]*** Cut end [08:07:27]Read from MH i2c: 01 07 00 [08:07:27]MH_I2C_Read... [08:07:27]Read from MH i2c: 01 07 00 3D 91 00 00 00 00 00 FF 0F E3 [08:07:27]process_action close_receipt done [08:07:27]requested_data is exist [08:07:27]produce_requested_data [08:07:27]requested_item fm.sn is exist - process it [08:07:27]wFMCommunicate request_size=4 [08:07:27]MH_SAM_APDU [08:07:27]CAPDU: 80 11 00 00 [08:07:27]Write to MH i2c: E2 08 00 3E 91 80 11 00 00 00 00 00 00 49 [08:07:27]Write i2c OK [08:07:27]MH_I2C_Read... [08:07:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:07:27]Read from MH i2c: E2 [08:07:27]MH_I2C_Read... [08:07:27]Read from MH i2c: E2 17 00 [08:07:27]MH_I2C_Read... [08:07:27]Read from MH i2c: E2 17 00 3E 91 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 9C [08:07:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [08:07:27]wFMCommunicate OK [08:07:27]requested_item fd.num is exist - process it [08:07:27]SAM_PROTO_GetFieldsCounters [08:07:27]wFMCommunicate request_size=4 [08:07:27]MH_SAM_APDU [08:07:27]CAPDU: 80 13 00 00 [08:07:27]Write to MH i2c: E2 08 00 3F 91 80 13 00 00 00 00 00 00 4C [08:07:27]Write i2c OK [08:07:27]MH_I2C_Read... [08:07:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:07:27]Read from MH i2c: E2 [08:07:27]MH_I2C_Read... [08:07:27]Read from MH i2c: E2 62 00 [08:07:27]MH_I2C_Read... [08:07:27]Read from MH i2c: E2 62 00 3F 91 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 AB 94 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 19 00 00 00 5E 04 04 00 19 00 00 00 57 04 04 00 1A 00 00 00 19 04 04 00 00 00 00 00 90 00 60 [08:07: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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 AB 94 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 19 00 00 00 5E 04 04 00 19 00 00 00 57 04 04 00 1A 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:07:27]wFMCommunicate OK [08:07:27]SAM_PROTO_GetFieldsCounters done [08:07:27]requested_item shift.num is exist - process it [08:07:27]requested_item shift.opened is exist - process it [08:07:27]req_shift_opened [08:07:27]FM_GetShiftState [08:07:27]SAM_PROTO_GetShiftState [08:07:27]wFMCommunicate request_size=4 [08:07:27]MH_SAM_APDU [08:07:27]CAPDU: 80 13 01 00 [08:07:27]Write to MH i2c: E2 08 00 40 91 80 13 01 00 00 00 00 00 4E [08:07:27]Write i2c OK [08:07:27]MH_I2C_Read... [08:07:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:07:27]Read from MH i2c: E2 [08:07:27]MH_I2C_Read... [08:07:27]Read from MH i2c: E2 0E 00 [08:07:27]MH_I2C_Read... [08:07:27]Read from MH i2c: E2 0E 00 40 91 00 09 00 01 04 26 72 66 00 00 00 00 90 00 5C [08:07:27]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [08:07:27]wFMCommunicate OK [08:07:27]SAM_PROTO_GetShiftState done [08:07:27]FM_GetShiftState done [08:07:27]req_shift_opened done [08:07:27]requested_item shift.open_date is exist - process it [08:07:27]req_shift_open_date [08:07:27]req_shift_open_date done [08:07:27]produce_requested_data done [08:07:27]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103595,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [08:07:27]process_action_free close_receipt [08:07:27]json_value_free [08:07:27]json_value_free done [08:07:27]process_json_proto returns [08:07:27]Send response to host [08:07:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103595,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [08:07:27]free response buf [08:07:27]execute_script done [08:07:27]execute_script returns [08:07:27]free content buf [08:07:27]Sock 9.Close socket [08:07:27]Sock 9.Thread stoped [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:31]accept exits with 7 [08:08:31]New connection [08:08:31]New thread 3067227492 created [08:08:31]Thread 3067084132 joined [08:08:31]Waiting for new connection... [08:08:31] Sock 7.Parse request [08:08:31]Sock 7.Check first char [08:08:31]Sock 7.First char is OK [08:08:31]request: POST /json_proto HTTP/1.0 [08:08:31]Method: POST [08:08:31]URL: /json_proto [08:08:31]Method is POST - this is cgi request [08:08:31]url: /json_proto [08:08:31]query_string will be loaded in cgi processing [08:08:31]execute_cgi json_proto POST (null) [08:08:31]execute_cgi path=json_proto method=POST [08:08:31]POST find Content-Length [08:08:31]Host: 172.17.38.133:8080 [08:08:31]Content-Length: 687 [08:08:31]Content-Type: application/json [08:08:31] [08:08:31]POST finish read [08:08:31]Found Content-Length = 687 [08:08:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672815", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 41.160, "sum" : 3000.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:08:31]execute_script... [08:08: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)672815", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 41.160, "sum" : 3000.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:08:31]POST & json_proto [08:08:31]process_json_proto [08:08:31]json parsed OK: [08:08:31]protocol is kg_v1.0 [08:08:31]action value=close_receipt [08:08:31]process_action close_receipt [08:08:31]cmd_close_receipt [08:08:31]MH_GetDate [08:08:31]Write to MH i2c: F0 00 00 41 91 C1 [08:08:31]Write i2c OK [08:08:31]MH_I2C_Read... [08:08:31]Read from MH i2c: F0 [08:08:31]MH_I2C_Read... [08:08:31]Read from MH i2c: F0 09 00 [08:08:31]MH_I2C_Read... [08:08:31]Read from MH i2c: F0 09 00 41 91 00 0B 92 72 66 BD 8F 7C 64 6B [08:08:31]GetLastDocTimeStamp 1718784454 [08:08:31]current date 1718784523 [08:08:31]FM_GetShiftState [08:08:31]SAM_PROTO_GetShiftState [08:08:31]wFMCommunicate request_size=4 [08:08:31]MH_SAM_APDU [08:08:31]CAPDU: 80 13 01 00 [08:08:31]Write to MH i2c: E2 08 00 42 91 80 13 01 00 00 00 00 00 50 [08:08:31]Write i2c OK [08:08:31]MH_I2C_Read... [08:08:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:08:31]Read from MH i2c: E2 [08:08:31]MH_I2C_Read... [08:08:31]Read from MH i2c: E2 0E 00 [08:08:31]MH_I2C_Read... [08:08:31]Read from MH i2c: E2 0E 00 42 91 00 09 00 01 04 26 72 66 00 00 00 00 90 00 5E [08:08:31]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [08:08:31]wFMCommunicate OK [08:08:31]SAM_PROTO_GetShiftState done [08:08:31]FM_GetShiftState done [08:08:31]opened in 1718756868 [08:08:31]opened+sec_in_day 1718843268 [08:08:31]quantity*price = 300056 [08:08:31]sum+1 = 300057 [08:08:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.56 ИТОГО: 3000.00 Внесено: 3000.00 СДАЧА: 0.00 НСП 1% : 26.55 НДС 12% : 318.64 Наличными: 3000.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 26 19.06.2024 08:08 Смена: 353 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103596 ФПД: 276746405296452 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T080843&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103596&fm=276746405296452&tin=02508201610067®Number=0000000000092785&sum=300000 [08:08:32]StoreToDocumentArchive [08:08:32]shift 353 fd 103596 [08:08:32]save to /storage/0353/doc_00103596 [08:08:32]save last doc name /storage/0353/doc_00103596 to /storage/kkm_last_doc_name [08:08:32]save OK [08:08:32]Clear old archive folders... [08:08:32]ProcessDocumentItem done err = 0, tmpTLVsize=252 [08:08:32]tlvbuf is 014466D0 [08:08:32]SAM_PROTO_ClearQueue [08:08:32]wFMCommunicate request_size=4 [08:08:32]MH_SAM_APDU [08:08:32]CAPDU: 80 09 00 00 [08:08:32]Write to MH i2c: E2 08 00 4F 91 80 09 00 00 00 00 00 00 52 [08:08:32]Write i2c OK [08:08:32]MH_I2C_Read... [08:08:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:08:32]Read from MH i2c: E2 [08:08:32]MH_I2C_Read... [08:08:32]Read from MH i2c: E2 03 00 [08:08:32]MH_I2C_Read... [08:08:32]Read from MH i2c: E2 03 00 4F 91 00 90 00 54 [08:08:32]RAPDU: 90 00 [08:08:32]wFMCommunicate OK [08:08:32]SAM_PROTO_ClearQueue done [08:08:32]KKMCreateOFDPacket [08:08:32]OFDProtocolAddRootSTLVToBuf [08:08:32]FM_MakeSignedData [08:08:32]FM_MakeSignedData [08:08:32]SAM_PROTO_SignData [08:08:32]wFMCommunicate request_size=4 [08:08:32]MH_SAM_APDU [08:08:32]CAPDU: 80 0D 01 02 [08:08:32]Write to MH i2c: E2 08 00 50 91 80 0D 01 02 00 00 00 00 5A [08:08:32]Write i2c OK [08:08:32]MH_I2C_Read... [08:08:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:08:32]Read from MH i2c: E2 [08:08:32]MH_I2C_Read... [08:08:32]Read from MH i2c: E2 03 00 [08:08:32]MH_I2C_Read... [08:08:32]Read from MH i2c: E2 03 00 50 91 00 90 00 55 [08:08:32]RAPDU: 90 00 [08:08:32]wFMCommunicate OK [08:08:32]wFMCommunicate request_size=255 [08:08:32]MH_SAM_APDU [08:08:32]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 C8 A0 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 18 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 0B 92 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 AC 94 01 00 35 04 06 00 [08:08:32]Write to MH i2c: E2 02 01 51 91 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 C8 A0 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 18 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 0B 92 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 AC 94 01 00 35 04 06 00 00 00 D0 [08:08:33]Write i2c OK [08:08:33]MH_I2C_Read... [08:08:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:08:33]Read from MH i2c: E2 [08:08:33]MH_I2C_Read... [08:08:33]Read from MH i2c: E2 03 00 [08:08:33]MH_I2C_Read... [08:08:33]Read from MH i2c: E2 03 00 51 91 00 90 00 56 [08:08:33]RAPDU: 90 00 [08:08:33]wFMCommunicate OK [08:08:33]wFMCommunicate request_size=11 [08:08:33]MH_SAM_APDU [08:08:33]CAPDU: 80 0D 02 02 06 FB B3 0B 2E 39 44 [08:08:33]Write to MH i2c: E2 0E 00 52 91 80 0D 02 02 06 00 FB B3 0B 2E 39 44 00 00 CD [08:08:33]Write i2c OK [08:08:33]MH_I2C_Read... [08:08:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:08:33]Read from MH i2c: E2 [08:08:33]MH_I2C_Read... [08:08:33]Read from MH i2c: E2 03 00 [08:08:33]MH_I2C_Read... [08:08:33]Read from MH i2c: E2 03 00 52 91 00 90 00 57 [08:08:33]RAPDU: 90 00 [08:08:33]wFMCommunicate OK [08:08:33]wFMCommunicate request_size=4 [08:08:33]MH_SAM_APDU [08:08:33]CAPDU: 80 0D 03 02 [08:08:33]Write to MH i2c: E2 08 00 53 91 80 0D 03 02 00 00 00 00 5F [08:08:33]Write i2c OK [08:08:33]MH_I2C_Read... [08:08:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:08:33]Read from MH i2c: E2 [08:08:33]MH_I2C_Read... [08:08:33]Read from MH i2c: E2 0B 00 [08:08:33]MH_I2C_Read... [08:08:33]Read from MH i2c: E2 0B 00 53 91 00 AA E4 5B 1A 58 56 C4 D3 90 00 A8 [08:08:33]RAPDU: AA E4 5B 1A 58 56 C4 D3 90 00 [08:08:33]wFMCommunicate OK [08:08:33]SAM_PROTO_SignData done [08:08:33]FM_MakeSignedData done [08:08:33]CreateOFDProtocolMessage [08:08:33]wFMCommunicate request_size=4 [08:08:33]MH_SAM_APDU [08:08:33]CAPDU: 80 11 00 00 [08:08:33]Write to MH i2c: E2 08 00 54 91 80 11 00 00 00 00 00 00 5F [08:08:33]Write i2c OK [08:08:33]MH_I2C_Read... [08:08:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:08:33]Read from MH i2c: E2 [08:08:33]MH_I2C_Read... [08:08:33]Read from MH i2c: E2 17 00 [08:08:33]MH_I2C_Read... [08:08:33]Read from MH i2c: E2 17 00 54 91 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 B2 [08:08:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [08:08:33]wFMCommunicate OK [08:08:33]CreateOFDProtocolMessage done [08:08:33]OFDSenderStorePacket 103596 [08:08:33]StoreOFDPacket docnum=103596 [08:08:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 6D A0 08 01 99 08 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 C8 A0 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 18 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 0B 92 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 AC 94 01 00 35 04 06 00 FB B3 0B 2E 39 44 AA E4 5B 1A 58 56 C4 D3 [08:08:33]CheckFolder [08:08:33]dirname=/storage/ofd_packets [08:08:33]CheckFolder done [08:08:33]ProducePacketName [08:08:33]name=ofd_packets/00103596 [08:08:33]NVStorageSaveData ofd_packets/00103596 [08:08:33]File name is /storage/ofd_packets/00103596 [08:08:33]Write 302 bytes [08:08:33]NVStorageSaveData done [08:08:33]OFDSenderStorePacket done [08:08:33]KKMCreateOFDPacket done [08:08:33]NVStorageSaveData kkm_last_timestamp [08:08:33]File name is /storage/kkm_last_timestamp [08:08:33]Write 4 bytes [08:08:33]NVStorageSaveData done [08:08:33]ExternCall_PrintAddStr [08:08:33]wPrintStart [08:08:33]Write to MH i2c: 01 00 00 55 91 E6 [08:08:33]Write i2c OK [08:08:33]MH_I2C_Read... [08:08:33]Read from MH i2c: 01 [08:08:33]MH_I2C_Read... [08:08:33]Read from MH i2c: 01 07 00 [08:08:33]MH_I2C_Read... [08:08:33]Read from MH i2c: 01 07 00 55 91 00 00 00 00 00 FF 0F FB [08:08:33]RasterBufferAndPrint [08:08:33]line Счет N : (1)672815 [08:08:33]line ИНН: 02508201610067 [08:08:33]line Контрольно-Кассовый Чек [08:08:33]line ПРОДАЖА [08:08:33]line ТРК (МРК, ГНК) : 11 [08:08:33]line Товар: 2710194210 [08:08:33]line ДТ(л)-К-5 [08:08:33]line 41.160 * 72.90 [08:08:33]line = 3000.56 [08:08:33]line НДС 12% НСП 1% [08:08:33]line > о реализуемом товаре [08:08:33]line ОКРУГЛЕНИЕ: -0.56 [08:08:33]line ИТОГО: 3000.00 [08:08:33]line Внесено: 3000.00 [08:08:33]line СДАЧА: 0.00 [08:08:33]line НСП 1% : 26.55 [08:08:33]line НДС 12% : 318.64 [08:08:33]line Наличными: 3000.00 [08:08:33]line Безнал.: 0.00 [08:08:33]line Место: АЗС № 120 "Партнер Нефть" [08:08:33]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [08:08:33]line СНО: Общий режим [08:08:33]line Чек 26 19.06.2024 08:08 [08:08:33]line Смена: 353 ФФД: 1.0 [08:08:33]line ЗНМ: 0300000164 [08:08:33]line РНМ: 0000000000092785 [08:08:33]line Версия ККМ: 001 [08:08:33]line ФМ: 0000000000875093 [08:08:33]line ФД: 103596 [08:08:33]line ФПД: 276746405296452 [08:08:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T080843&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103596&fm=276746405296452&tin=02508201610067®Number=0000000000092785&sum=300000 [08:08:33]OFD Sender: Processing packet 103596 [packets to send 17, broken 16] [08:08:33]ProducePacketName [08:08:33]name=ofd_packets/00103596 [08:08:33]OFD Sender: To server: pG, [08:08:33]CommunicateWithHost lk.salyk.kg:30040 [08:08:33]ConnectInit lk.salyk.kg [08:08:33]written 0, free lines is 4095 [08:08:33]Connected sock=10 [08:08:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 6D A0 08 01 99 08 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 C8 A0 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 18 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 0B 92 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 AC 94 01 00 35 04 06 00 FB B3 0B 2E 39 44 AA E4 5B 1A 58 56 C4 D3 [08:08: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 39 33 4F 00 00 00 F7 52 47 00 E2 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 39 33 10 04 04 00 AC 94 01 00 F4 03 04 00 94 38 72 66 B6 04 01 00 00 F1 A9 6C 41 3A DD CC D3 [08:08:34]CommunicateWithHost err = 0 [08:08:34]CheckOFDResponse [08:08:34]1017 (14) - 77093643461234 [08:08:34]1041 (16) - 0000000000875093 [08:08:34]1040 (4) - 103596 [08:08:34]1012 (4) - 19.06.2024 01:47 [08:08:34]1206 (1) - 0 [08:08:34]OFD Sender: Remove packet 103596 [08:08:34]ProducePacketName [08:08:34]name=ofd_packets/00103596 [08:08:34]NVStorageDeleteData [08:08:34]Write to MH i2c: 01 00 00 80 91 11 [08:08:34]Write i2c OK [08:08:34]MH_I2C_Read... [08:08:34]Read from MH i2c: 01 [08:08:34]MH_I2C_Read... [08:08:34]Read from MH i2c: 01 07 00 [08:08:34]MH_I2C_Read... [08:08:34]Read from MH i2c: 01 07 00 80 91 00 00 00 00 00 E4 0C 08 [08:08:34]RasterBufferAndPrint [08:08:34]line [08:08:34]line [08:08:34]line [08:08:34]line [08:08:34]line [08:08:34]written 0, free lines is 3306 [08:08:34]MH_Cut [08:08:34]Write to MH i2c: D1 01 00 87 91 01 EA [08:08:34]Write i2c OK [08:08:34]MH_I2C_Read... [08:08:34]Read from MH i2c: D1 [08:08:34]MH_I2C_Read... [08:08:34]Read from MH i2c: D1 01 00 [08:08:34]MH_I2C_Read... [08:08:34]Read from MH i2c: D1 01 00 87 91 00 E9 [08:08:34]Write to MH i2c: 01 00 00 88 91 19 [08:08:34]Write i2c OK [08:08:34]MH_I2C_Read... [08:08:34]OFD Sender: No OFD packet to send [08:08:34]*** Cut start [08:08:34]*** Partial cut [08:08:34]*** CUTSNS_PIN = 1 [08:08:35]*** CUTSNS_PIN = 0 [08:08:35]*** Brake cut motor [08:08:35]Read from MH i2c: 01 [08:08:35]MH_I2C_Read... [08:08:35]*** Stop cut motor [08:08:35]*** Cut end [08:08:35]Read from MH i2c: 01 07 00 [08:08:35]MH_I2C_Read... [08:08:35]Read from MH i2c: 01 07 00 88 91 00 00 00 00 00 FF 0F 2E [08:08:35]process_action close_receipt done [08:08:35]requested_data is exist [08:08:35]produce_requested_data [08:08:35]requested_item fm.sn is exist - process it [08:08:35]wFMCommunicate request_size=4 [08:08:35]MH_SAM_APDU [08:08:35]CAPDU: 80 11 00 00 [08:08:35]Write to MH i2c: E2 08 00 89 91 80 11 00 00 00 00 00 00 94 [08:08:35]Write i2c OK [08:08:35]MH_I2C_Read... [08:08:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:08:35]Read from MH i2c: E2 [08:08:35]MH_I2C_Read... [08:08:35]Read from MH i2c: E2 17 00 [08:08:35]MH_I2C_Read... [08:08:35]Read from MH i2c: E2 17 00 89 91 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 E7 [08:08:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [08:08:35]wFMCommunicate OK [08:08:35]requested_item fd.num is exist - process it [08:08:35]SAM_PROTO_GetFieldsCounters [08:08:35]wFMCommunicate request_size=4 [08:08:35]MH_SAM_APDU [08:08:35]CAPDU: 80 13 00 00 [08:08:35]Write to MH i2c: E2 08 00 8A 91 80 13 00 00 00 00 00 00 97 [08:08:35]Write i2c OK [08:08:35]MH_I2C_Read... [08:08:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:08:35]Read from MH i2c: E2 [08:08:35]MH_I2C_Read... [08:08:35]Read from MH i2c: E2 62 00 [08:08:35]MH_I2C_Read... [08:08:35]Read from MH i2c: E2 62 00 8A 91 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 AC 94 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 1A 00 00 00 5E 04 04 00 1A 00 00 00 57 04 04 00 1B 00 00 00 19 04 04 00 00 00 00 00 90 00 AF [08:08: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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 AC 94 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 1A 00 00 00 5E 04 04 00 1A 00 00 00 57 04 04 00 1B 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:08:35]wFMCommunicate OK [08:08:35]SAM_PROTO_GetFieldsCounters done [08:08:35]requested_item shift.num is exist - process it [08:08:35]requested_item shift.opened is exist - process it [08:08:35]req_shift_opened [08:08:35]FM_GetShiftState [08:08:35]SAM_PROTO_GetShiftState [08:08:35]wFMCommunicate request_size=4 [08:08:35]MH_SAM_APDU [08:08:35]CAPDU: 80 13 01 00 [08:08:35]Write to MH i2c: E2 08 00 8B 91 80 13 01 00 00 00 00 00 99 [08:08:35]Write i2c OK [08:08:35]MH_I2C_Read... [08:08:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:08:35]Read from MH i2c: E2 [08:08:35]MH_I2C_Read... [08:08:35]Read from MH i2c: E2 0E 00 [08:08:35]MH_I2C_Read... [08:08:35]Read from MH i2c: E2 0E 00 8B 91 00 09 00 01 04 26 72 66 00 00 00 00 90 00 A7 [08:08:35]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [08:08:35]wFMCommunicate OK [08:08:35]SAM_PROTO_GetShiftState done [08:08:35]FM_GetShiftState done [08:08:35]req_shift_opened done [08:08:35]requested_item shift.open_date is exist - process it [08:08:35]req_shift_open_date [08:08:35]req_shift_open_date done [08:08:35]produce_requested_data done [08:08:35]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103596,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [08:08:35]process_action_free close_receipt [08:08:35]json_value_free [08:08:35]json_value_free done [08:08:35]process_json_proto returns [08:08:35]Send response to host [08:08:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103596,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [08:08:35]free response buf [08:08:35]execute_script done [08:08:35]execute_script returns [08:08:35]free content buf [08:08:35]Sock 7.Close socket [08:08:35]Sock 7.Thread stoped [08:08:39]OFD Sender: No OFD packet to send [08:08:44]OFD Sender: No OFD packet to send [08:08:49]OFD Sender: No OFD packet to send [08:08:54]OFD Sender: No OFD packet to send [08:08:59]OFD Sender: No OFD packet to send [08:09:04]OFD Sender: No OFD packet to send [08:09:09]OFD Sender: No OFD packet to send [08:09:14]OFD Sender: No OFD packet to send [08:09:19]OFD Sender: No OFD packet to send [08:09:24]OFD Sender: No OFD packet to send [08:09:29]OFD Sender: No OFD packet to send [08:09:34]OFD Sender: No OFD packet to send [08:09:39]OFD Sender: No OFD packet to send [08:09:44]OFD Sender: No OFD packet to send [08:09:49]OFD Sender: No OFD packet to send [08:09:54]OFD Sender: No OFD packet to send [08:09:59]OFD Sender: No OFD packet to send [08:10:04]OFD Sender: No OFD packet to send [08:10:09]OFD Sender: No OFD packet to send [08:10:14]OFD Sender: No OFD packet to send [08:10:19]OFD Sender: No OFD packet to send [08:10:24]OFD Sender: No OFD packet to send [08:10:29]OFD Sender: No OFD packet to send [08:10:34]OFD Sender: No OFD packet to send [08:10:39]OFD Sender: No OFD packet to send [08:10:44]OFD Sender: No OFD packet to send [08:10:49]OFD Sender: No OFD packet to send [08:10:54]OFD Sender: No OFD packet to send [08:10:59]OFD Sender: No OFD packet to send [08:11:04]OFD Sender: No OFD packet to send [08:11:09]OFD Sender: No OFD packet to send [08:11:14]OFD Sender: No OFD packet to send [08:11:19]OFD Sender: No OFD packet to send [08:11:24]OFD Sender: No OFD packet to send [08:11:29]OFD Sender: No OFD packet to send [08:11:34]OFD Sender: No OFD packet to send [08:11:39]OFD Sender: No OFD packet to send [08:11:44]OFD Sender: No OFD packet to send [08:11:49]OFD Sender: No OFD packet to send [08:11:54]OFD Sender: No OFD packet to send [08:11:59]OFD Sender: No OFD packet to send [08:12:04]OFD Sender: No OFD packet to send [08:12:09]OFD Sender: No OFD packet to send [08:12:14]OFD Sender: No OFD packet to send [08:12:19]OFD Sender: No OFD packet to send [08:12:24]OFD Sender: No OFD packet to send [08:12:29]OFD Sender: No OFD packet to send [08:12:34]OFD Sender: No OFD packet to send [08:12:39]OFD Sender: No OFD packet to send [08:12:44]OFD Sender: No OFD packet to send [08:12:49]OFD Sender: No OFD packet to send [08:12:54]OFD Sender: No OFD packet to send [08:12:59]OFD Sender: No OFD packet to send [08:13:04]OFD Sender: No OFD packet to send [08:13:09]OFD Sender: No OFD packet to send [08:13:14]OFD Sender: No OFD packet to send [08:13:19]OFD Sender: No OFD packet to send [08:13:24]OFD Sender: No OFD packet to send [08:13:29]OFD Sender: No OFD packet to send [08:13:34]OFD Sender: No OFD packet to send [08:13:39]OFD Sender: No OFD packet to send [08:13:44]OFD Sender: No OFD packet to send [08:13:49]OFD Sender: No OFD packet to send [08:13:54]OFD Sender: No OFD packet to send [08:13:59]OFD Sender: No OFD packet to send [08:14:04]OFD Sender: No OFD packet to send [08:14:09]OFD Sender: No OFD packet to send [08:14:14]OFD Sender: No OFD packet to send [08:14:19]OFD Sender: No OFD packet to send [08:14:24]OFD Sender: No OFD packet to send [08:14:29]OFD Sender: No OFD packet to send [08:14:34]OFD Sender: No OFD packet to send [08:14:39]OFD Sender: No OFD packet to send [08:14:44]OFD Sender: No OFD packet to send [08:14:49]OFD Sender: No OFD packet to send [08:14:54]OFD Sender: No OFD packet to send [08:14:59]OFD Sender: No OFD packet to send [08:15:04]OFD Sender: No OFD packet to send [08:15:09]OFD Sender: No OFD packet to send [08:15:14]OFD Sender: No OFD packet to send [08:15:19]OFD Sender: No OFD packet to send [08:15:24]OFD Sender: No OFD packet to send [08:15:30]OFD Sender: No OFD packet to send [08:15:35]OFD Sender: No OFD packet to send [08:15:40]OFD Sender: No OFD packet to send [08:15:45]OFD Sender: No OFD packet to send [08:15:50]OFD Sender: No OFD packet to send [08:15:55]OFD Sender: No OFD packet to send [08:16:00]OFD Sender: No OFD packet to send [08:16:05]OFD Sender: No OFD packet to send [08:16:10]OFD Sender: No OFD packet to send [08:16:15]OFD Sender: No OFD packet to send [08:16:20]OFD Sender: No OFD packet to send [08:16:25]OFD Sender: No OFD packet to send [08:16:30]OFD Sender: No OFD packet to send [08:16:35]OFD Sender: No OFD packet to send [08:16:40]OFD Sender: No OFD packet to send [08:16:45]OFD Sender: No OFD packet to send [08:16:50]OFD Sender: No OFD packet to send [08:16:55]OFD Sender: No OFD packet to send [08:17:00]OFD Sender: No OFD packet to send [08:17:05]OFD Sender: No OFD packet to send [08:17:10]OFD Sender: No OFD packet to send [08:17:15]OFD Sender: No OFD packet to send [08:17:20]OFD Sender: No OFD packet to send [08:17:25]OFD Sender: No OFD packet to send [08:17:30]OFD Sender: No OFD packet to send [08:17:35]OFD Sender: No OFD packet to send [08:17:40]OFD Sender: No OFD packet to send [08:17:45]OFD Sender: No OFD packet to send [08:17:50]OFD Sender: No OFD packet to send [08:17:55]OFD Sender: No OFD packet to send [08:18:00]OFD Sender: No OFD packet to send [08:18:05]OFD Sender: No OFD packet to send [08:18:10]OFD Sender: No OFD packet to send [08:18:15]OFD Sender: No OFD packet to send [08:18:20]OFD Sender: No OFD packet to send [08:18:25]OFD Sender: No OFD packet to send [08:18:30]OFD Sender: No OFD packet to send [08:18:35]OFD Sender: No OFD packet to send [08:18:40]OFD Sender: No OFD packet to send [08:18:45]OFD Sender: No OFD packet to send [08:18:50]OFD Sender: No OFD packet to send [08:18:55]OFD Sender: No OFD packet to send [08:19:00]OFD Sender: No OFD packet to send [08:19:05]OFD Sender: No OFD packet to send [08:19:10]OFD Sender: No OFD packet to send [08:19:15]OFD Sender: No OFD packet to send [08:19:20]OFD Sender: No OFD packet to send [08:19:25]OFD Sender: No OFD packet to send [08:19:30]OFD Sender: No OFD packet to send [08:19:35]OFD Sender: No OFD packet to send [08:19:40]OFD Sender: No OFD packet to send [08:19:45]OFD Sender: No OFD packet to send [08:19: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:22:00]OFD Sender: No OFD packet to send [08:22:05]OFD Sender: No OFD packet to send [08:22:10]OFD Sender: No OFD packet to send [08:22:15]OFD Sender: No OFD packet to send [08:22:20]OFD Sender: No OFD packet to send [08:22:25]OFD Sender: No OFD packet to send [08:22:30]OFD Sender: No OFD packet to send [08:22:35]OFD Sender: No OFD packet to send [08:22:40]OFD Sender: No OFD packet to send [08:22:45]OFD Sender: No OFD packet to send [08:22:50]OFD Sender: No OFD packet to send [08:22:55]OFD Sender: No OFD packet to send [08:23:00]OFD Sender: No OFD packet to send [08:23:05]OFD Sender: No OFD packet to send [08:23:10]OFD Sender: No OFD packet to send [08:23:15]OFD Sender: No OFD packet to send [08:23:20]OFD Sender: No OFD packet to send [08:23:25]OFD Sender: No OFD packet to send [08:23:30]OFD Sender: No OFD packet to send [08:23:35]OFD Sender: No OFD packet to send [08:23:40]OFD Sender: No OFD packet to send [08:23:45]OFD Sender: No OFD packet to send [08:23:50]OFD Sender: No OFD packet to send [08:23:55]OFD Sender: No OFD packet to send [08:24:00]OFD Sender: No OFD packet to send [08:24:05]OFD Sender: No OFD packet to send [08:24:10]OFD Sender: No OFD packet to send [08:24:15]OFD Sender: No OFD packet to send [08:24:20]OFD Sender: No OFD packet to send [08:24:25]OFD Sender: No OFD packet to send [08:24:30]OFD Sender: No OFD packet to send [08:24:35]OFD Sender: No OFD packet to send [08:24:40]OFD Sender: No OFD packet to send [08:24:45]OFD Sender: No OFD packet to send [08:24:50]OFD Sender: No OFD packet to send [08:24:55]OFD Sender: No OFD packet to send [08:25:00]OFD Sender: No OFD packet to send [08:25:05]OFD Sender: No OFD packet to send [08:25:10]OFD Sender: No OFD packet to send [08:25:15]OFD Sender: No OFD packet to send [08:25:20]OFD Sender: No OFD packet to send [08:25:25]OFD Sender: No OFD packet to send [08:25:30]OFD Sender: No OFD packet to send [08:25:35]OFD Sender: No OFD packet to send [08:25:40]OFD Sender: No OFD packet to send [08:25:45]OFD Sender: No OFD packet to send [08:25:50]OFD Sender: No OFD packet to send [08:25:55]OFD Sender: No OFD packet to send [08:26:00]OFD Sender: No OFD packet to send [08:26:05]OFD Sender: No OFD packet to send [08:26:10]OFD Sender: No OFD packet to send [08:26:15]OFD Sender: No OFD packet to send [08:26:20]OFD Sender: No OFD packet to send [08:26:25]accept exits with 9 [08:26:25]New connection [08:26:25]New thread 3067084132 created [08:26:25]Thread 3067227492 joined [08:26:25]Waiting for new connection... [08:26:25] Sock 9.Parse request [08:26:25]Sock 9.Check first char [08:26:25]Sock 9.First char is OK [08:26:25]request: POST /json_proto HTTP/1.0 [08:26:25]Method: POST [08:26:25]URL: /json_proto [08:26:25]Method is POST - this is cgi request [08:26:25]url: /json_proto [08:26:25]query_string will be loaded in cgi processing [08:26:25]execute_cgi json_proto POST (null) [08:26:25]execute_cgi path=json_proto method=POST [08:26:25]POST find Content-Length [08:26:25]Host: 172.17.38.133:8080 [08:26:25]Content-Length: 1207 [08:26:25]Content-Type: application/json [08:26:25] [08:26:25]POST finish read [08:26:25]Found Content-Length = 1207 [08:26: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 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. \u000A\u0421\u0447\u0435\u0442 N : (1)672817\u000A19.06.2024 08:03\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 42\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 50.000 x 66.40\u000A\u0418\u0422\u041E\u0413: 3320.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\u000A00562\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:26:25]execute_script... [08:26: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 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. \u000A\u0421\u0447\u0435\u0442 N : (1)672817\u000A19.06.2024 08:03\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 42\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 50.000 x 66.40\u000A\u0418\u0422\u041E\u0413: 3320.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\u000A00562\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:26:25]POST & json_proto [08:26:25]process_json_proto [08:26:25]json parsed OK: [08:26:25]protocol is kg_v1.0 [08:26:25]action value=print_text [08:26:25]process_action print_text [08:26:25]cmd_print_text [08:26:25]ExternCall_PrintAddStr [08:26:25]wPrintStart [08:26:25]Write to MH i2c: 01 00 00 8C 91 1D [08:26:25]Write i2c OK [08:26:25]MH_I2C_Read... [08:26:25]Read from MH i2c: 01 [08:26:25]MH_I2C_Read... [08:26:25]Read from MH i2c: 01 07 00 [08:26:25]MH_I2C_Read... [08:26:25]Read from MH i2c: 01 07 00 8C 91 00 00 00 00 00 FF 0F 32 [08:26:25]RasterBufferAndPrint [08:26:25]line *****ТОВАРНЫЙ ЧЕК***** [08:26:25]line АЗС 120 [08:26:25]line Партнер нефть [08:26:25]line 02508201610067 [08:26:25]line Кассир : Байбугуева Г. [08:26:25]line Счет N : (1)672817 [08:26:25]line 19.06.2024 08:03 [08:26:25]line ПРОДАЖА [08:26:25]line ТРК (МРК, ГНК): 42 [08:26:25]line Вид ГСМ : 2710124130 [08:26:25]line Аи-92-К-5 [08:26:25]line 50.000 x 66.40 [08:26:25]line ИТОГ: 3320.00 [08:26:25]line Тип оплаты: Талоны: Топливная Карта [08:26:25]line 00562 [08:26:25]line ______________________ [08:26:25]line (подпись) [08:26:25]written 0, free lines is 4095 [08:26:25]OFD Sender: No OFD packet to send [08:26:25]Write to MH i2c: 01 00 00 A0 91 31 [08:26:25]Write i2c OK [08:26:25]MH_I2C_Read... [08:26:25]Read from MH i2c: 01 [08:26:25]MH_I2C_Read... [08:26:25]Read from MH i2c: 01 07 00 [08:26:25]MH_I2C_Read... [08:26:25]Read from MH i2c: 01 07 00 A0 91 00 00 00 00 00 12 0E 58 [08:26:25]RasterBufferAndPrint [08:26:25]line [08:26:25]line [08:26:25]line [08:26:25]line [08:26:25]line [08:26:25]written 0, free lines is 3604 [08:26:25]MH_Cut [08:26:25]Write to MH i2c: D1 01 00 A7 91 01 0A [08:26:25]Write i2c OK [08:26:25]MH_I2C_Read... [08:26:25]Read from MH i2c: D1 [08:26:25]MH_I2C_Read... [08:26:25]Read from MH i2c: D1 01 00 [08:26:25]MH_I2C_Read... [08:26:25]Read from MH i2c: D1 01 00 A7 91 00 09 [08:26:25]Write to MH i2c: 01 00 00 A8 91 39 [08:26:25]Write i2c OK [08:26:25]MH_I2C_Read... [08:26:26]*** Cut start [08:26:26]*** Partial cut [08:26:26]*** CUTSNS_PIN = 1 [08:26:26]*** CUTSNS_PIN = 0 [08:26:26]*** Brake cut motor [08:26:26]Read from MH i2c: 01 [08:26:26]MH_I2C_Read... [08:26:26]Read from MH i2c: 01 07 00 [08:26:26]MH_I2C_Read... [08:26:26]*** Stop cut motor [08:26:26]*** Cut end [08:26:26]Read from MH i2c: 01 07 00 A8 91 00 00 00 00 00 FF 0F 4E [08:26:26]process_action print_text done [08:26:26]requested_data is exist [08:26:26]produce_requested_data [08:26:26]requested_item fm.sn is exist - process it [08:26:26]wFMCommunicate request_size=4 [08:26:26]MH_SAM_APDU [08:26:26]CAPDU: 80 11 00 00 [08:26:26]Write to MH i2c: E2 08 00 A9 91 80 11 00 00 00 00 00 00 B4 [08:26:26]Write i2c OK [08:26:26]MH_I2C_Read... [08:26:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:26:26]Read from MH i2c: E2 [08:26:26]MH_I2C_Read... [08:26:26]Read from MH i2c: E2 17 00 [08:26:26]MH_I2C_Read... [08:26:26]Read from MH i2c: E2 17 00 A9 91 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 07 [08:26:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [08:26:26]wFMCommunicate OK [08:26:26]requested_item fd.num is exist - process it [08:26:26]SAM_PROTO_GetFieldsCounters [08:26:26]wFMCommunicate request_size=4 [08:26:26]MH_SAM_APDU [08:26:26]CAPDU: 80 13 00 00 [08:26:26]Write to MH i2c: E2 08 00 AA 91 80 13 00 00 00 00 00 00 B7 [08:26:26]Write i2c OK [08:26:26]MH_I2C_Read... [08:26:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:26:26]Read from MH i2c: E2 [08:26:26]MH_I2C_Read... [08:26:26]Read from MH i2c: E2 62 00 [08:26:26]MH_I2C_Read... [08:26:26]Read from MH i2c: E2 62 00 AA 91 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 AC 94 01 00 0E 04 04 00 61 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 CF [08:26:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 AC 94 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 1A 00 00 00 5E 04 04 00 1A 00 00 00 57 04 04 00 1B 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:26:26]wFMCommunicate OK [08:26:26]SAM_PROTO_GetFieldsCounters done [08:26:26]requested_item shift.num is exist - process it [08:26:26]requested_item shift.opened is exist - process it [08:26:26]req_shift_opened [08:26:26]FM_GetShiftState [08:26:26]SAM_PROTO_GetShiftState [08:26:26]wFMCommunicate request_size=4 [08:26:26]MH_SAM_APDU [08:26:26]CAPDU: 80 13 01 00 [08:26:26]Write to MH i2c: E2 08 00 AB 91 80 13 01 00 00 00 00 00 B9 [08:26:26]Write i2c OK [08:26:26]MH_I2C_Read... [08:26:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:26:26]Read from MH i2c: E2 [08:26:26]MH_I2C_Read... [08:26:26]Read from MH i2c: E2 0E 00 [08:26:26]MH_I2C_Read... [08:26:26]Read from MH i2c: E2 0E 00 AB 91 00 09 00 01 04 26 72 66 00 00 00 00 90 00 C7 [08:26:26]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [08:26:26]wFMCommunicate OK [08:26:26]SAM_PROTO_GetShiftState done [08:26:26]FM_GetShiftState done [08:26:26]req_shift_opened done [08:26:26]requested_item shift.open_date is exist - process it [08:26:26]req_shift_open_date [08:26:26]req_shift_open_date done [08:26:26]produce_requested_data done [08:26:26]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103596,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [08:26:26]process_action_free print_text [08:26:26]json_value_free [08:26:26]json_value_free done [08:26:26]process_json_proto returns [08:26:26]Send response to host [08:26:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103596,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [08:26:26]free response buf [08:26:26]execute_script done [08:26:26]execute_script returns [08:26:26]free content buf [08:26:26]Sock 9.Close socket [08:26:26]Sock 9.Thread stoped [08:26:30]OFD Sender: No OFD packet to send [08:26:35]OFD Sender: No OFD packet to send [08:26:40]OFD Sender: No OFD packet to send [08:26:45]OFD Sender: No OFD packet to send [08:26:50]OFD Sender: No OFD packet to send [08:26:55]OFD Sender: No OFD packet to send [08:27:00]OFD Sender: No OFD packet to send [08:27:05]OFD Sender: No OFD packet to send [08:27:10]OFD Sender: No OFD packet to send [08:27:15]OFD Sender: No OFD packet to send [08:27:20]OFD Sender: No OFD packet to send [08:27:25]OFD Sender: No OFD packet to send [08:27:30]OFD Sender: No OFD packet to send [08:27:35]OFD Sender: No OFD packet to send [08:27:40]OFD Sender: No OFD packet to send [08:27:45]OFD Sender: No OFD packet to send [08:27:50]OFD Sender: No OFD packet to send [08:27:55]OFD Sender: No OFD packet to send [08:28:00]OFD Sender: No OFD packet to send [08:28:05]OFD Sender: No OFD packet to send [08:28:10]OFD Sender: No OFD packet to send [08:28:15]OFD Sender: No OFD packet to send [08:28:20]OFD Sender: No OFD packet to send [08:28:25]OFD Sender: No OFD packet to send [08:28:30]OFD Sender: No OFD packet to send [08:28:35]OFD Sender: No OFD packet to send [08:28:40]OFD Sender: No OFD packet to send [08:28:45]OFD Sender: No OFD packet to send [08:28:50]OFD Sender: No OFD packet to send [08:28:55]OFD Sender: No OFD packet to send [08:29:00]OFD Sender: No OFD packet to send [08:29:05]OFD Sender: No OFD packet to send [08:29:10]OFD Sender: No OFD packet to send [08:29:15]OFD Sender: No OFD packet to send [08:29:20]OFD Sender: No OFD packet to send [08:29:25]OFD Sender: No OFD packet to send [08:29:30]OFD Sender: No OFD packet to send [08:29:35]OFD Sender: No OFD packet to send [08:29:40]OFD Sender: No OFD packet to send [08:29:45]OFD Sender: No OFD packet to send [08:29:50]OFD Sender: No OFD packet to send [08:29:55]OFD Sender: No OFD packet to send [08:30:00]OFD Sender: No OFD packet to send [08:30:05]OFD Sender: No OFD packet to send [08:30:10]OFD Sender: No OFD packet to send [08:30:15]OFD Sender: No OFD packet to send [08:30:20]OFD Sender: No OFD packet to send [08:30:25]OFD Sender: No OFD packet to send [08:30:30]OFD Sender: No OFD packet to send [08:30:35]OFD Sender: No OFD packet to send [08:30:40]OFD Sender: No OFD packet to send [08:30:45]OFD Sender: No OFD packet to send [08:30:50]OFD Sender: No OFD packet to send [08:30:55]OFD Sender: No OFD packet to send [08:31:00]OFD Sender: No OFD packet to send [08:31:05]OFD Sender: No OFD packet to send [08:31:10]OFD Sender: No OFD packet to send [08:31:15]OFD Sender: No OFD packet to send [08:31:20]OFD Sender: No OFD packet to send [08:31:25]OFD Sender: No OFD packet to send [08:31:30]OFD Sender: No OFD packet to send [08:31:35]OFD Sender: No OFD packet to send [08:31:40]OFD Sender: No OFD packet to send [08:31:45]OFD Sender: No OFD packet to send [08:31:50]OFD Sender: No OFD packet to send [08:31:55]OFD Sender: No OFD packet to send [08:32:00]OFD Sender: No OFD packet to send [08:32:05]OFD Sender: No OFD packet to send [08:32:10]OFD Sender: No OFD packet to send [08:32:15]OFD Sender: No OFD packet to send [08:32:20]OFD Sender: No OFD packet to send [08:32:25]OFD Sender: No OFD packet to send [08:32:30]OFD Sender: No OFD packet to send [08:32:35]OFD Sender: No OFD packet to send [08:32:40]OFD Sender: No OFD packet to send [08:32:45]OFD Sender: No OFD packet to send [08:32:50]OFD Sender: No OFD packet to send [08:32:55]OFD Sender: No OFD packet to send [08:33:00]OFD Sender: No OFD packet to send [08:33:05]OFD Sender: No OFD packet to send [08:33:10]OFD Sender: No OFD packet to send [08:33:15]OFD Sender: No OFD packet to send [08:33:20]OFD Sender: No OFD packet to send [08:33:25]OFD Sender: No OFD packet to send [08:33:30]OFD Sender: No OFD packet to send [08:33:35]OFD Sender: No OFD packet to send [08:33:40]OFD Sender: No OFD packet to send [08:33:45]OFD Sender: No OFD packet to send [08:33:50]OFD Sender: No OFD packet to send [08:33:55]OFD Sender: No OFD packet to send [08:34:00]OFD Sender: No OFD packet to send [08:34:05]OFD Sender: No OFD packet to send [08:34:10]OFD Sender: No OFD packet to send [08:34:15]OFD Sender: No OFD packet to send [08:34:20]OFD Sender: No OFD packet to send [08:34:25]OFD Sender: No OFD packet to send [08:34:30]OFD Sender: No OFD packet to send [08:34:35]OFD Sender: No OFD packet to send [08:34:40]OFD Sender: No OFD packet to send [08:34:45]OFD Sender: No OFD packet to send [08:34:50]OFD Sender: No OFD packet to send [08:34:55]OFD Sender: No OFD packet to send [08:35:00]OFD Sender: No OFD packet to send [08:35:05]OFD Sender: No OFD packet to send [08:35:10]OFD Sender: No OFD packet to send [08:35:15]OFD Sender: No OFD packet to send [08:35:20]OFD Sender: No OFD packet to send [08:35:25]OFD Sender: No OFD packet to send [08:35:30]OFD Sender: No OFD packet to send [08:35:35]OFD Sender: No OFD packet to send [08:35:40]OFD Sender: No OFD packet to send [08:35:45]OFD Sender: No OFD packet to send [08:35:50]OFD Sender: No OFD packet to send [08:35:55]OFD Sender: No OFD packet to send [08:36:01]OFD Sender: No OFD packet to send [08:36:06]OFD Sender: No OFD packet to send [08:36:11]OFD Sender: No OFD packet to send [08:36:16]OFD Sender: No OFD packet to send [08:36:21]OFD Sender: No OFD packet to send [08:36:26]OFD Sender: No OFD packet to send [08:36:31]OFD Sender: No OFD packet to send [08:36:36]OFD Sender: No OFD packet to send [08:36:41]OFD Sender: No OFD packet to send [08:36:46]OFD Sender: No OFD packet to send [08:36:51]OFD Sender: No OFD packet to send [08:36:56]OFD Sender: No OFD packet to send [08:37:01]OFD Sender: No OFD packet to send [08:37:06]OFD Sender: No OFD packet to send [08:37:11]OFD Sender: No OFD packet to send [08:37:16]OFD Sender: No OFD packet to send [08:37:21]OFD Sender: No OFD packet to send [08:37:26]OFD Sender: No OFD packet to send [08:37:31]OFD Sender: No OFD packet to send [08:37:36]OFD Sender: No OFD packet to send [08:37:41]OFD Sender: No OFD packet to send [08:37:46]OFD Sender: No OFD packet to send [08:37:51]OFD Sender: No OFD packet to send [08:37:56]OFD Sender: No OFD packet to send [08:38:01]OFD Sender: No OFD packet to send [08:38:06]OFD Sender: No OFD packet to send [08:38:11]OFD Sender: No OFD packet to send [08:38:16]OFD Sender: No OFD packet to send [08:38:21]OFD Sender: No OFD packet to send [08:38:26]OFD Sender: No OFD packet to send [08:38:31]OFD Sender: No OFD packet to send [08:38:36]OFD Sender: No OFD packet to send [08:38:41]OFD Sender: No OFD packet to send [08:38:46]OFD Sender: No OFD packet to send [08:38:51]OFD Sender: No OFD packet to send [08:38:56]OFD Sender: No OFD packet to send [08:39:01]OFD Sender: No OFD packet to send [08:39:06]OFD Sender: No OFD packet to send [08:39:11]OFD Sender: No OFD packet to send [08:39:16]OFD Sender: No OFD packet to send [08:39:19]accept exits with 10 [08:39:19]New connection [08:39:19]New thread 3067227492 created [08:39:19]Thread 3067084132 joined [08:39:19]Waiting for new connection... [08:39:19] Sock 10.Parse request [08:39:19]Sock 10.Check first char [08:39:19]Sock 10.First char is OK [08:39:19]request: POST /json_proto HTTP/1.0 [08:39:19]Method: POST [08:39:19]URL: /json_proto [08:39:19]Method is POST - this is cgi request [08:39:19]url: /json_proto [08:39:19]query_string will be loaded in cgi processing [08:39:19]execute_cgi json_proto POST (null) [08:39:19]execute_cgi path=json_proto method=POST [08:39:19]POST find Content-Length [08:39:19]Host: 172.17.38.133:8080 [08:39:19]Content-Length: 687 [08:39:19]Content-Type: application/json [08:39:19] [08:39:19]POST finish read [08:39:19]Found Content-Length = 687 [08:39:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672818", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 15.090, "sum" : 1100.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1100.00, "total" : 1100.00, "payments": [ { "type": 0, "sum" : 1100.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:39:19]execute_script... [08:39:19]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672818", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 15.090, "sum" : 1100.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1100.00, "total" : 1100.00, "payments": [ { "type": 0, "sum" : 1100.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:39:19]POST & json_proto [08:39:19]process_json_proto [08:39:19]json parsed OK: [08:39:19]protocol is kg_v1.0 [08:39:19]action value=close_receipt [08:39:19]process_action close_receipt [08:39:19]cmd_close_receipt [08:39:19]MH_GetDate [08:39:19]Write to MH i2c: F0 00 00 AC 91 2C [08:39:19]Write i2c OK [08:39:19]MH_I2C_Read... [08:39:19]Read from MH i2c: F0 [08:39:19]MH_I2C_Read... [08:39:19]Read from MH i2c: F0 09 00 [08:39:19]MH_I2C_Read... [08:39:19]Read from MH i2c: F0 09 00 AC 91 00 43 99 72 66 BD 8F 7C 64 15 [08:39:19]GetLastDocTimeStamp 1718784523 [08:39:19]current date 1718786371 [08:39:19]FM_GetShiftState [08:39:19]SAM_PROTO_GetShiftState [08:39:19]wFMCommunicate request_size=4 [08:39:19]MH_SAM_APDU [08:39:19]CAPDU: 80 13 01 00 [08:39:19]Write to MH i2c: E2 08 00 AD 91 80 13 01 00 00 00 00 00 BB [08:39:19]Write i2c OK [08:39:19]MH_I2C_Read... [08:39:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:39:19]Read from MH i2c: E2 [08:39:19]MH_I2C_Read... [08:39:19]Read from MH i2c: E2 0E 00 [08:39:19]MH_I2C_Read... [08:39:19]Read from MH i2c: E2 0E 00 AD 91 00 09 00 01 04 26 72 66 00 00 00 00 90 00 C9 [08:39:19]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [08:39:19]wFMCommunicate OK [08:39:19]SAM_PROTO_GetShiftState done [08:39:19]FM_GetShiftState done [08:39:19]opened in 1718756868 [08:39:19]opened+sec_in_day 1718843268 [08:39:19]quantity*price = 110006 [08:39:19]sum+1 = 110007 [08:39:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 1100.00 Внесено: 1100.00 СДАЧА: 0.00 НСП 1% : 9.73 НДС 12% : 116.82 Наличными: 1100.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 27 19.06.2024 08:39 Смена: 353 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103597 ФПД: 193252956721461 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T083931&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103597&fm=193252956721461&tin=02508201610067®Number=0000000000092785&sum=110000 [08:39:20]StoreToDocumentArchive [08:39:20]shift 353 fd 103597 [08:39:20]save to /storage/0353/doc_00103597 [08:39:20]save last doc name /storage/0353/doc_00103597 to /storage/kkm_last_doc_name [08:39:20]save OK [08:39:20]Clear old archive folders... [08:39:20]ProcessDocumentItem done err = 0, tmpTLVsize=252 [08:39:20]tlvbuf is 0137FB00 [08:39:20]SAM_PROTO_ClearQueue [08:39:20]wFMCommunicate request_size=4 [08:39:20]MH_SAM_APDU [08:39:20]CAPDU: 80 09 00 00 [08:39:20]Write to MH i2c: E2 08 00 BA 91 80 09 00 00 00 00 00 00 BD [08:39:20]Write i2c OK [08:39:20]MH_I2C_Read... [08:39:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:39:20]Read from MH i2c: E2 [08:39:20]MH_I2C_Read... [08:39:20]Read from MH i2c: E2 03 00 [08:39:20]MH_I2C_Read... [08:39:20]Read from MH i2c: E2 03 00 BA 91 00 90 00 BF [08:39:20]RAPDU: 90 00 [08:39:20]wFMCommunicate OK [08:39:20]SAM_PROTO_ClearQueue done [08:39:20]KKMCreateOFDPacket [08:39:20]OFDProtocolAddRootSTLVToBuf [08:39:20]FM_MakeSignedData [08:39:20]FM_MakeSignedData [08:39:20]SAM_PROTO_SignData [08:39:20]wFMCommunicate request_size=4 [08:39:20]MH_SAM_APDU [08:39:20]CAPDU: 80 0D 01 02 [08:39:20]Write to MH i2c: E2 08 00 BB 91 80 0D 01 02 00 00 00 00 C5 [08:39:20]Write i2c OK [08:39:20]MH_I2C_Read... [08:39:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:39:21]Read from MH i2c: E2 [08:39:21]MH_I2C_Read... [08:39:21]Read from MH i2c: E2 03 00 [08:39:21]MH_I2C_Read... [08:39:21]Read from MH i2c: E2 03 00 BB 91 00 90 00 C0 [08:39:21]RAPDU: 90 00 [08:39:21]wFMCommunicate OK [08:39:21]wFMCommunicate request_size=255 [08:39:21]MH_SAM_APDU [08:39:21]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 F2 3A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B6 AD 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 AD 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CD 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A2 2D 00 00 00 00 07 04 06 00 B0 AD 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 43 99 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 AD 94 01 00 35 04 06 00 [08:39:21]Write to MH i2c: E2 02 01 BC 91 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 F2 3A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B6 AD 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 AD 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CD 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A2 2D 00 00 00 00 07 04 06 00 B0 AD 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 43 99 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 AD 94 01 00 35 04 06 00 00 00 04 [08:39:21]Write i2c OK [08:39:21]MH_I2C_Read... [08:39:21]OFD Sender: No OFD packet to send [08:39:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:39:21]Read from MH i2c: E2 [08:39:21]MH_I2C_Read... [08:39:21]Read from MH i2c: E2 03 00 [08:39:21]MH_I2C_Read... [08:39:21]Read from MH i2c: E2 03 00 BC 91 00 90 00 C1 [08:39:21]RAPDU: 90 00 [08:39:21]wFMCommunicate OK [08:39:21]wFMCommunicate request_size=11 [08:39:21]MH_SAM_APDU [08:39:21]CAPDU: 80 0D 02 02 06 AF C3 35 D6 51 35 [08:39:21]Write to MH i2c: E2 0E 00 BD 91 80 0D 02 02 06 00 AF C3 35 D6 51 35 00 00 D7 [08:39:21]Write i2c OK [08:39:21]MH_I2C_Read... [08:39:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:39:21]Read from MH i2c: E2 [08:39:21]MH_I2C_Read... [08:39:21]Read from MH i2c: E2 03 00 [08:39:21]MH_I2C_Read... [08:39:21]Read from MH i2c: E2 03 00 BD 91 00 90 00 C2 [08:39:21]RAPDU: 90 00 [08:39:21]wFMCommunicate OK [08:39:21]wFMCommunicate request_size=4 [08:39:21]MH_SAM_APDU [08:39:21]CAPDU: 80 0D 03 02 [08:39:21]Write to MH i2c: E2 08 00 BE 91 80 0D 03 02 00 00 00 00 CA [08:39:21]Write i2c OK [08:39:21]MH_I2C_Read... [08:39:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:39:21]Read from MH i2c: E2 [08:39:21]MH_I2C_Read... [08:39:21]Read from MH i2c: E2 0B 00 [08:39:21]MH_I2C_Read... [08:39:21]Read from MH i2c: E2 0B 00 BE 91 00 9E B6 7C 4E 61 F5 6D AF 90 00 5B [08:39:21]RAPDU: 9E B6 7C 4E 61 F5 6D AF 90 00 [08:39:21]wFMCommunicate OK [08:39:21]SAM_PROTO_SignData done [08:39:21]FM_MakeSignedData done [08:39:21]CreateOFDProtocolMessage [08:39:21]wFMCommunicate request_size=4 [08:39:21]MH_SAM_APDU [08:39:21]CAPDU: 80 11 00 00 [08:39:21]Write to MH i2c: E2 08 00 BF 91 80 11 00 00 00 00 00 00 CA [08:39:21]Write i2c OK [08:39:21]MH_I2C_Read... [08:39:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:39:21]Read from MH i2c: E2 [08:39:21]MH_I2C_Read... [08:39:21]Read from MH i2c: E2 17 00 [08:39:21]MH_I2C_Read... [08:39:21]Read from MH i2c: E2 17 00 BF 91 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 1D [08:39:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [08:39:21]wFMCommunicate OK [08:39:21]CreateOFDProtocolMessage done [08:39:21]OFDSenderStorePacket 103597 [08:39:21]StoreOFDPacket docnum=103597 [08:39:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 63 52 08 01 04 F9 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 F2 3A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B6 AD 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 AD 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CD 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A2 2D 00 00 00 00 07 04 06 00 B0 AD 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 43 99 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 AD 94 01 00 35 04 06 00 AF C3 35 D6 51 35 9E B6 7C 4E 61 F5 6D AF [08:39:21]CheckFolder [08:39:21]dirname=/storage/ofd_packets [08:39:21]CheckFolder done [08:39:21]ProducePacketName [08:39:21]name=ofd_packets/00103597 [08:39:21]NVStorageSaveData ofd_packets/00103597 [08:39:21]File name is /storage/ofd_packets/00103597 [08:39:21]Write 302 bytes [08:39:21]NVStorageSaveData done [08:39:21]OFDSenderStorePacket done [08:39:21]KKMCreateOFDPacket done [08:39:21]NVStorageSaveData kkm_last_timestamp [08:39:21]File name is /storage/kkm_last_timestamp [08:39:21]Write 4 bytes [08:39:21]NVStorageSaveData done [08:39:21]ExternCall_PrintAddStr [08:39:21]wPrintStart [08:39:21]Write to MH i2c: 01 00 00 C0 91 51 [08:39:21]Write i2c OK [08:39:21]MH_I2C_Read... [08:39:21]Read from MH i2c: 01 [08:39:21]MH_I2C_Read... [08:39:21]Read from MH i2c: 01 07 00 [08:39:21]MH_I2C_Read... [08:39:21]Read from MH i2c: 01 07 00 C0 91 00 00 00 00 00 FF 0F 66 [08:39:21]RasterBufferAndPrint [08:39:21]line Счет N : (1)672818 [08:39:21]line ИНН: 02508201610067 [08:39:21]line Контрольно-Кассовый Чек [08:39:21]line ПРОДАЖА [08:39:21]line ТРК (МРК, ГНК) : 11 [08:39:21]line Товар: 2710194210 [08:39:21]line ДТ(л)-К-5 [08:39:21]line 15.090 * 72.90 [08:39:21]line = 1100.06 [08:39:21]line НДС 12% НСП 1% [08:39:21]line > о реализуемом товаре [08:39:21]line ОКРУГЛЕНИЕ: -0.06 [08:39:21]line ИТОГО: 1100.00 [08:39:21]line Внесено: 1100.00 [08:39:21]line СДАЧА: 0.00 [08:39:21]line НСП 1% : 9.73 [08:39:21]line НДС 12% : 116.82 [08:39:21]line Наличными: 1100.00 [08:39:21]line Безнал.: 0.00 [08:39:21]line Место: АЗС № 120 "Партнер Нефть" [08:39:21]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [08:39:21]line СНО: Общий режим [08:39:21]line Чек 27 19.06.2024 08:39 [08:39:21]line Смена: 353 ФФД: 1.0 [08:39:21]line ЗНМ: 0300000164 [08:39:21]line РНМ: 0000000000092785 [08:39:21]line Версия ККМ: 001 [08:39:21]line ФМ: 0000000000875093 [08:39:21]line ФД: 103597 [08:39:21]line ФПД: 193252956721461 [08:39:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T083931&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103597&fm=193252956721461&tin=02508201610067®Number=0000000000092785&sum=110000 [08:39:21]OFD Sender: Processing packet 103597 [packets to send 17, broken 16] [08:39:21]ProducePacketName [08:39:21]name=ofd_packets/00103597 [08:39:21]OFD Sender: To server: pG, [08:39:21]CommunicateWithHost lk.salyk.kg:30040 [08:39:21]ConnectInit lk.salyk.kg [08:39:21]written 0, free lines is 4095 [08:39:21]Connected sock=9 [08:39:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 63 52 08 01 04 F9 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 F2 3A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B6 AD 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 AD 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CD 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A2 2D 00 00 00 00 07 04 06 00 B0 AD 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 43 99 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 AD 94 01 00 35 04 06 00 AF C3 35 D6 51 35 9E B6 7C 4E 61 F5 6D AF [08:39:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 D1 47 47 00 18 8A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 AD 94 01 00 F4 03 04 00 CC 3F 72 66 B6 04 01 00 00 DD 88 7A 05 B7 8E 5E 33 [08:39:22]CommunicateWithHost err = 0 [08:39:22]CheckOFDResponse [08:39:22]1017 (14) - 77093643461234 [08:39:22]1041 (16) - 0000000000875093 [08:39:22]1040 (4) - 103597 [08:39:22]1012 (4) - 19.06.2024 02:17 [08:39:22]1206 (1) - 0 [08:39:22]OFD Sender: Remove packet 103597 [08:39:22]ProducePacketName [08:39:22]name=ofd_packets/00103597 [08:39:22]NVStorageDeleteData [08:39:22]Write to MH i2c: 01 00 00 EB 91 7C [08:39:22]Write i2c OK [08:39:22]MH_I2C_Read... [08:39:22]Read from MH i2c: 01 [08:39:22]MH_I2C_Read... [08:39:22]Read from MH i2c: 01 07 00 [08:39:22]MH_I2C_Read... [08:39:22]Read from MH i2c: 01 07 00 EB 91 00 00 00 00 00 CC 0C 5B [08:39:22]RasterBufferAndPrint [08:39:22]line [08:39:22]line [08:39:22]line [08:39:22]line [08:39:22]line [08:39:22]written 0, free lines is 3283 [08:39:22]MH_Cut [08:39:22]Write to MH i2c: D1 01 00 F2 91 01 55 [08:39:22]Write i2c OK [08:39:22]MH_I2C_Read... [08:39:22]Read from MH i2c: D1 [08:39:22]MH_I2C_Read... [08:39:22]Read from MH i2c: D1 01 00 [08:39:22]MH_I2C_Read... [08:39:22]Read from MH i2c: D1 01 00 F2 91 00 54 [08:39:22]Write to MH i2c: 01 00 00 F3 91 84 [08:39:22]Write i2c OK [08:39:22]MH_I2C_Read... [08:39:22]OFD Sender: No OFD packet to send [08:39:23]*** Cut start [08:39:23]*** Partial cut [08:39:23]*** CUTSNS_PIN = 1 [08:39:23]*** CUTSNS_PIN = 0 [08:39:23]*** Brake cut motor [08:39:23]Read from MH i2c: 01 [08:39:23]MH_I2C_Read... [08:39:23]*** Stop cut motor [08:39:23]*** Cut end [08:39:23]Read from MH i2c: 01 07 00 [08:39:23]MH_I2C_Read... [08:39:23]Read from MH i2c: 01 07 00 F3 91 00 00 00 00 00 FF 0F 99 [08:39:23]process_action close_receipt done [08:39:23]requested_data is exist [08:39:23]produce_requested_data [08:39:23]requested_item fm.sn is exist - process it [08:39:23]wFMCommunicate request_size=4 [08:39:23]MH_SAM_APDU [08:39:23]CAPDU: 80 11 00 00 [08:39:23]Write to MH i2c: E2 08 00 F4 91 80 11 00 00 00 00 00 00 FF [08:39:23]Write i2c OK [08:39:23]MH_I2C_Read... [08:39:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:39:23]Read from MH i2c: E2 [08:39:23]MH_I2C_Read... [08:39:23]Read from MH i2c: E2 17 00 [08:39:23]MH_I2C_Read... [08:39:23]Read from MH i2c: E2 17 00 F4 91 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 52 [08:39:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [08:39:23]wFMCommunicate OK [08:39:23]requested_item fd.num is exist - process it [08:39:23]SAM_PROTO_GetFieldsCounters [08:39:23]wFMCommunicate request_size=4 [08:39:23]MH_SAM_APDU [08:39:23]CAPDU: 80 13 00 00 [08:39:23]Write to MH i2c: E2 08 00 F5 91 80 13 00 00 00 00 00 00 02 [08:39:23]Write i2c OK [08:39:23]MH_I2C_Read... [08:39:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:39:23]Read from MH i2c: E2 [08:39:23]MH_I2C_Read... [08:39:23]Read from MH i2c: E2 62 00 [08:39:23]MH_I2C_Read... [08:39:23]Read from MH i2c: E2 62 00 F5 91 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 AD 94 01 00 0E 04 04 00 61 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 1E [08:39:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 AD 94 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 1B 00 00 00 5E 04 04 00 1B 00 00 00 57 04 04 00 1C 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:39:23]wFMCommunicate OK [08:39:23]SAM_PROTO_GetFieldsCounters done [08:39:23]requested_item shift.num is exist - process it [08:39:23]requested_item shift.opened is exist - process it [08:39:23]req_shift_opened [08:39:23]FM_GetShiftState [08:39:23]SAM_PROTO_GetShiftState [08:39:23]wFMCommunicate request_size=4 [08:39:23]MH_SAM_APDU [08:39:23]CAPDU: 80 13 01 00 [08:39:23]Write to MH i2c: E2 08 00 F6 91 80 13 01 00 00 00 00 00 04 [08:39:23]Write i2c OK [08:39:23]MH_I2C_Read... [08:39:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:39:23]Read from MH i2c: E2 [08:39:23]MH_I2C_Read... [08:39:23]Read from MH i2c: E2 0E 00 [08:39:23]MH_I2C_Read... [08:39:23]Read from MH i2c: E2 0E 00 F6 91 00 09 00 01 04 26 72 66 00 00 00 00 90 00 12 [08:39:23]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [08:39:23]wFMCommunicate OK [08:39:23]SAM_PROTO_GetShiftState done [08:39:23]FM_GetShiftState done [08:39:23]req_shift_opened done [08:39:23]requested_item shift.open_date is exist - process it [08:39:23]req_shift_open_date [08:39:23]req_shift_open_date done [08:39:23]produce_requested_data done [08:39:23]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103597,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [08:39:23]process_action_free close_receipt [08:39:23]json_value_free [08:39:23]json_value_free done [08:39:23]process_json_proto returns [08:39:23]Send response to host [08:39:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103597,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [08:39:23]free response buf [08:39:23]execute_script done [08:39:23]execute_script returns [08:39:23]free content buf [08:39:23]Sock 10.Close socket [08:39:23]Sock 10.Thread stoped [08:39:27]OFD Sender: No OFD packet to send [08:39:32]OFD Sender: No OFD packet to send [08:39:37]OFD Sender: No OFD packet to send [08:39:42]OFD Sender: No OFD packet to send [08:39:47]OFD Sender: No OFD packet to send [08:39:52]OFD Sender: No OFD packet to send [08:39:57]OFD Sender: No OFD packet to send [08:40:02]OFD Sender: No OFD packet to send [08:40:07]OFD Sender: No OFD packet to send [08:40:12]OFD Sender: No OFD packet to send [08:40:17]OFD Sender: No OFD packet to send [08:40:22]OFD Sender: No OFD packet to send [08:40:27]OFD Sender: No OFD packet to send [08:40:32]OFD Sender: No OFD packet to send [08:40:37]OFD Sender: No OFD packet to send [08:40:42]OFD Sender: No OFD packet to send [08:40:47]OFD Sender: No OFD packet to send [08:40:52]OFD Sender: No OFD packet to send [08:40:57]OFD Sender: No OFD packet to send [08:41:02]OFD Sender: No OFD packet to send [08:41:07]OFD Sender: No OFD packet to send [08:41:12]OFD Sender: No OFD packet to send [08:41:17]OFD Sender: No OFD packet to send [08:41:22]OFD Sender: No OFD packet to send [08:41:27]OFD Sender: No OFD packet to send [08:41:32]OFD Sender: No OFD packet to send [08:41:37]OFD Sender: No OFD packet to send [08:41:42]OFD Sender: No OFD packet to send [08:41:47]OFD Sender: No OFD packet to send [08:41:52]OFD Sender: No OFD packet to send [08:41:57]OFD Sender: No OFD packet to send [08:42:02]OFD Sender: No OFD packet to send [08:42:07]OFD Sender: No OFD packet to send [08:42:12]OFD Sender: No OFD packet to send [08:42:17]OFD Sender: No OFD packet to send [08:42:22]OFD Sender: No OFD packet to send [08:42:27]OFD Sender: No OFD packet to send [08:42:32]OFD Sender: No OFD packet to send [08:42:37]OFD Sender: No OFD packet to send [08:42:42]OFD Sender: No OFD packet to send [08:42:47]OFD Sender: No OFD packet to send [08:42:52]OFD Sender: No OFD packet to send [08:42:57]OFD Sender: No OFD packet to send [08:43:02]OFD Sender: No OFD packet to send [08:43:07]OFD Sender: No OFD packet to send [08:43:12]OFD Sender: No OFD packet to send [08:43:17]OFD Sender: No OFD packet to send [08:43:22]OFD Sender: No OFD packet to send [08:43:27]OFD Sender: No OFD packet to send [08:43:32]OFD Sender: No OFD packet to send [08:43:37]OFD Sender: No OFD packet to send [08:43:42]OFD Sender: No OFD packet to send [08:43:47]OFD Sender: No OFD packet to send [08:43:52]OFD Sender: No OFD packet to send [08:43:57]OFD Sender: No OFD packet to send [08:44:02]OFD Sender: No OFD packet to send [08:44:07]OFD Sender: No OFD packet to send [08:44:12]OFD Sender: No OFD packet to send [08:44:17]OFD Sender: No OFD packet to send [08:44:22]OFD Sender: No OFD packet to send [08:44:27]OFD Sender: No OFD packet to send [08:44:32]OFD Sender: No OFD packet to send [08:44:37]OFD Sender: No OFD packet to send [08:44:42]OFD Sender: No OFD packet to send [08:44:47]OFD Sender: No OFD packet to send [08:44:52]OFD Sender: No OFD packet to send [08:44:57]OFD Sender: No OFD packet to send [08:45:03]OFD Sender: No OFD packet to send [08:45:08]OFD Sender: No OFD packet to send [08:45:13]OFD Sender: No OFD packet to send [08:45:18]OFD Sender: No OFD packet to send [08:45:23]OFD Sender: No OFD packet to send [08:45:28]OFD Sender: No OFD packet to send [08:45:33]OFD Sender: No OFD packet to send [08:45:38]OFD Sender: No OFD packet to send [08:45:43]OFD Sender: No OFD packet to send [08:45:48]OFD Sender: No OFD packet to send [08:45:53]OFD Sender: No OFD packet to send [08:45:58]OFD Sender: No OFD packet to send [08:46:03]OFD Sender: No OFD packet to send [08:46:08]OFD Sender: No OFD packet to send [08:46:10]accept exits with 7 [08:46:10]New connection [08:46:10]New thread 3067084132 created [08:46:10]Thread 3067227492 joined [08:46:10]Waiting for new connection... [08:46:10] Sock 7.Parse request [08:46:10]Sock 7.Check first char [08:46:10]Sock 7.First char is OK [08:46:10]request: POST /json_proto HTTP/1.0 [08:46:10]Method: POST [08:46:10]URL: /json_proto [08:46:10]Method is POST - this is cgi request [08:46:10]url: /json_proto [08:46:10]query_string will be loaded in cgi processing [08:46:10]execute_cgi json_proto POST (null) [08:46:10]execute_cgi path=json_proto method=POST [08:46:10]POST find Content-Length [08:46:10]Host: 172.17.38.133:8080 [08:46:10]Content-Length: 678 [08:46:10]Content-Type: application/json [08:46:10] [08:46:10]POST finish read [08:46:10]Found Content-Length = 678 [08:46:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672819", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 10.550, "sum" : 700.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:46:10]execute_script... [08: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)672819", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 10.550, "sum" : 700.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:46:10]POST & json_proto [08:46:10]process_json_proto [08:46:10]json parsed OK: [08:46:10]protocol is kg_v1.0 [08:46:10]action value=close_receipt [08:46:10]process_action close_receipt [08:46:10]cmd_close_receipt [08:46:10]MH_GetDate [08:46:10]Write to MH i2c: F0 00 00 F7 91 77 [08:46:10]Write i2c OK [08:46:10]MH_I2C_Read... [08:46:10]Read from MH i2c: F0 [08:46:10]MH_I2C_Read... [08:46:10]Read from MH i2c: F0 09 00 [08:46:10]MH_I2C_Read... [08:46:10]Read from MH i2c: F0 09 00 F7 91 00 DE 9A 72 66 BD 8F 7C 64 FC [08:46:10]GetLastDocTimeStamp 1718786371 [08:46:10]current date 1718786782 [08:46:10]FM_GetShiftState [08:46:10]SAM_PROTO_GetShiftState [08:46:10]wFMCommunicate request_size=4 [08:46:10]MH_SAM_APDU [08:46:10]CAPDU: 80 13 01 00 [08:46:10]Write to MH i2c: E2 08 00 F8 91 80 13 01 00 00 00 00 00 06 [08:46:10]Write i2c OK [08:46:10]MH_I2C_Read... [08:46:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:46:10]Read from MH i2c: E2 [08:46:10]MH_I2C_Read... [08:46:10]Read from MH i2c: E2 0E 00 [08:46:10]MH_I2C_Read... [08:46:10]Read from MH i2c: E2 0E 00 F8 91 00 09 00 01 04 26 72 66 00 00 00 00 90 00 14 [08:46:10]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [08:46:10]wFMCommunicate OK [08:46:10]SAM_PROTO_GetShiftState done [08:46:10]FM_GetShiftState done [08:46:10]opened in 1718756868 [08:46:10]opened+sec_in_day 1718843268 [08:46:10]quantity*price = 70052 [08:46:10]sum+1 = 70053 [08:46:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.52 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.39 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 28 19.06.2024 08:46 Смена: 353 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103598 ФПД: 236286121671155 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T084622&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103598&fm=236286121671155&tin=02508201610067®Number=0000000000092785&sum=70000 [08:46:12]StoreToDocumentArchive [08:46:12]shift 353 fd 103598 [08:46:12]save to /storage/0353/doc_00103598 [08:46:12]save last doc name /storage/0353/doc_00103598 to /storage/kkm_last_doc_name [08:46:12]save OK [08:46:12]Clear old archive folders... [08:46:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:46:12]tlvbuf is 014E79B0 [08:46:12]SAM_PROTO_ClearQueue [08:46:12]wFMCommunicate request_size=4 [08:46:12]MH_SAM_APDU [08:46:12]CAPDU: 80 09 00 00 [08:46:12]Write to MH i2c: E2 08 00 05 92 80 09 00 00 00 00 00 00 09 [08:46:12]Write i2c OK [08:46:12]MH_I2C_Read... [08:46:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:46:12]Read from MH i2c: E2 [08:46:12]MH_I2C_Read... [08:46:12]Read from MH i2c: E2 03 00 [08:46:12]MH_I2C_Read... [08:46:12]Read from MH i2c: E2 03 00 05 92 00 90 00 0B [08:46:12]RAPDU: 90 00 [08:46:12]wFMCommunicate OK [08:46:12]SAM_PROTO_ClearQueue done [08:46:12]KKMCreateOFDPacket [08:46:12]OFDProtocolAddRootSTLVToBuf [08:46:12]FM_MakeSignedData [08:46:12]FM_MakeSignedData [08:46:12]SAM_PROTO_SignData [08:46:12]wFMCommunicate request_size=4 [08:46:12]MH_SAM_APDU [08:46:12]CAPDU: 80 0D 01 02 [08:46:12]Write to MH i2c: E2 08 00 06 92 80 0D 01 02 00 00 00 00 11 [08:46:12]Write i2c OK [08:46:12]MH_I2C_Read... [08:46:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:46:12]Read from MH i2c: E2 [08:46:12]MH_I2C_Read... [08:46:12]Read from MH i2c: E2 03 00 [08:46:12]MH_I2C_Read... [08:46:12]Read from MH i2c: E2 03 00 06 92 00 90 00 0C [08:46:12]RAPDU: 90 00 [08:46:12]wFMCommunicate OK [08:46:12]wFMCommunicate request_size=255 [08:46:12]MH_SAM_APDU [08: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 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 DE 9A 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 AE 94 01 00 35 04 06 00 D6 [08:46:12]Write to MH i2c: E2 02 01 07 92 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 DE 9A 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 AE 94 01 00 35 04 06 00 D6 00 00 C4 [08:46:12]Write i2c OK [08:46:12]MH_I2C_Read... [08:46:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:46:12]Read from MH i2c: E2 [08:46:12]MH_I2C_Read... [08:46:12]Read from MH i2c: E2 03 00 [08:46:12]MH_I2C_Read... [08:46:12]Read from MH i2c: E2 03 00 07 92 00 90 00 0D [08:46:12]RAPDU: 90 00 [08:46:12]wFMCommunicate OK [08:46:12]wFMCommunicate request_size=10 [08:46:12]MH_SAM_APDU [08:46:12]CAPDU: 80 0D 02 02 05 E6 A6 58 F9 F3 [08:46:12]Write to MH i2c: E2 0D 00 08 92 80 0D 02 02 05 00 E6 A6 58 F9 F3 00 00 EE [08:46:12]Write i2c OK [08:46:12]MH_I2C_Read... [08:46:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:46:12]Read from MH i2c: E2 [08:46:12]MH_I2C_Read... [08:46:12]Read from MH i2c: E2 03 00 [08:46:12]MH_I2C_Read... [08:46:12]Read from MH i2c: E2 03 00 08 92 00 90 00 0E [08:46:12]RAPDU: 90 00 [08:46:12]wFMCommunicate OK [08:46:12]wFMCommunicate request_size=4 [08:46:12]MH_SAM_APDU [08:46:12]CAPDU: 80 0D 03 02 [08:46:12]Write to MH i2c: E2 08 00 09 92 80 0D 03 02 00 00 00 00 16 [08:46:12]Write i2c OK [08:46:12]MH_I2C_Read... [08:46:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:46:12]Read from MH i2c: E2 [08:46:12]MH_I2C_Read... [08:46:12]Read from MH i2c: E2 0B 00 [08:46:12]MH_I2C_Read... [08:46:12]Read from MH i2c: E2 0B 00 09 92 00 37 A0 32 10 C6 9F F3 3D 90 00 C5 [08:46:12]RAPDU: 37 A0 32 10 C6 9F F3 3D 90 00 [08:46:12]wFMCommunicate OK [08:46:12]SAM_PROTO_SignData done [08:46:12]FM_MakeSignedData done [08:46:12]CreateOFDProtocolMessage [08:46:12]wFMCommunicate request_size=4 [08:46:12]MH_SAM_APDU [08:46:12]CAPDU: 80 11 00 00 [08:46:12]Write to MH i2c: E2 08 00 0A 92 80 11 00 00 00 00 00 00 16 [08:46:12]Write i2c OK [08:46:12]MH_I2C_Read... [08:46:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:46:12]Read from MH i2c: E2 [08:46:12]MH_I2C_Read... [08:46:12]Read from MH i2c: E2 17 00 [08:46:12]MH_I2C_Read... [08:46:12]Read from MH i2c: E2 17 00 0A 92 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 69 [08:46:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [08:46:12]wFMCommunicate OK [08:46:12]CreateOFDProtocolMessage done [08:46:12]OFDSenderStorePacket 103598 [08:46:12]StoreOFDPacket docnum=103598 [08:46:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 38 6B 07 01 1F F3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 DE 9A 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 AE 94 01 00 35 04 06 00 D6 E6 A6 58 F9 F3 37 A0 32 10 C6 9F F3 3D [08:46:12]CheckFolder [08:46:12]dirname=/storage/ofd_packets [08:46:12]CheckFolder done [08:46:12]ProducePacketName [08:46:12]name=ofd_packets/00103598 [08:46:12]NVStorageSaveData ofd_packets/00103598 [08:46:12]File name is /storage/ofd_packets/00103598 [08:46:12]Write 301 bytes [08:46:12]NVStorageSaveData done [08:46:12]OFDSenderStorePacket done [08:46:12]KKMCreateOFDPacket done [08:46:12]NVStorageSaveData kkm_last_timestamp [08:46:12]File name is /storage/kkm_last_timestamp [08:46:12]Write 4 bytes [08:46:12]NVStorageSaveData done [08:46:12]ExternCall_PrintAddStr [08:46:12]wPrintStart [08:46:12]Write to MH i2c: 01 00 00 0B 92 9D [08:46:12]Write i2c OK [08:46:12]MH_I2C_Read... [08:46:12]Read from MH i2c: 01 [08:46:12]MH_I2C_Read... [08:46:12]Read from MH i2c: 01 07 00 [08:46:12]MH_I2C_Read... [08:46:12]Read from MH i2c: 01 07 00 0B 92 00 00 00 00 00 FF 0F B2 [08:46:12]RasterBufferAndPrint [08:46:12]line Счет N : (1)672819 [08:46:12]line ИНН: 02508201610067 [08:46:12]line Контрольно-Кассовый Чек [08:46:12]line ПРОДАЖА [08:46:12]line ТРК (МРК, ГНК) : 42 [08:46:12]line Товар: 2710124130 [08:46:12]line Аи-92-К-5 [08:46:12]line 10.550 * 66.40 [08:46:12]line = 700.52 [08:46:12]line НДС 12% НСП 1% [08:46:12]line > о реализуемом товаре [08:46:12]line ОКРУГЛЕНИЕ: -0.52 [08:46:12]line ИТОГО: 700.00 [08:46:12]line Внесено: 700.00 [08:46:12]line СДАЧА: 0.00 [08:46:12]line НСП 1% : 6.20 [08:46:12]line НДС 12% : 74.39 [08:46:12]line Наличными: 700.00 [08:46:12]line Безнал.: 0.00 [08:46:12]line Место: АЗС № 120 "Партнер Нефть" [08:46:12]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [08:46:12]line СНО: Общий режим [08:46:12]line Чек 28 19.06.2024 08:46 [08:46:12]line Смена: 353 ФФД: 1.0 [08:46:12]line ЗНМ: 0300000164 [08:46:12]line РНМ: 0000000000092785 [08:46:12]line Версия ККМ: 001 [08:46:12]line ФМ: 0000000000875093 [08:46:12]line ФД: 103598 [08:46:12]line ФПД: 236286121671155 [08:46:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T084622&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103598&fm=236286121671155&tin=02508201610067®Number=0000000000092785&sum=70000 [08:46:12]OFD Sender: Processing packet 103598 [packets to send 17, broken 16] [08:46:12]ProducePacketName [08:46:12]name=ofd_packets/00103598 [08:46:12]OFD Sender: To server: pG, [08:46:12]CommunicateWithHost lk.salyk.kg:30040 [08:46:12]ConnectInit lk.salyk.kg [08:46:12]written 0, free lines is 4095 [08:46:13]Connected sock=10 [08:46: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 39 33 0F 01 00 00 38 6B 07 01 1F F3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 DE 9A 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 AE 94 01 00 35 04 06 00 D6 E6 A6 58 F9 F3 37 A0 32 10 C6 9F F3 3D [08: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 39 33 4F 00 00 00 3C ED 47 00 80 50 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 AE 94 01 00 F4 03 04 00 67 41 72 66 B6 04 01 00 00 8F 1F 22 70 0D 04 BB 41 [08:46:13]CommunicateWithHost err = 0 [08:46:13]CheckOFDResponse [08:46:13]1017 (14) - 77093643461234 [08:46:13]1041 (16) - 0000000000875093 [08:46:13]1040 (4) - 103598 [08:46:13]1012 (4) - 19.06.2024 02:24 [08:46:13]1206 (1) - 0 [08:46:13]OFD Sender: Remove packet 103598 [08:46:13]ProducePacketName [08:46:13]name=ofd_packets/00103598 [08:46:13]NVStorageDeleteData [08:46:13]Write to MH i2c: 01 00 00 36 92 C8 [08:46:13]Write i2c OK [08:46:13]MH_I2C_Read... [08:46:13]Read from MH i2c: 01 [08:46:13]MH_I2C_Read... [08:46:13]Read from MH i2c: 01 07 00 [08:46:13]MH_I2C_Read... [08:46:13]Read from MH i2c: 01 07 00 36 92 00 00 00 00 00 CC 0C A7 [08:46:13]RasterBufferAndPrint [08:46:13]line [08:46:13]line [08:46:13]line [08:46:13]line [08:46:13]line [08:46:13]written 0, free lines is 3282 [08:46:13]MH_Cut [08:46:13]Write to MH i2c: D1 01 00 3D 92 01 A1 [08:46:13]Write i2c OK [08:46:13]MH_I2C_Read... [08:46:13]Read from MH i2c: D1 [08:46:13]MH_I2C_Read... [08:46:13]Read from MH i2c: D1 01 00 [08:46:13]MH_I2C_Read... [08:46:13]Read from MH i2c: D1 01 00 3D 92 00 A0 [08:46:13]Write to MH i2c: 01 00 00 3E 92 D0 [08:46:13]Write i2c OK [08:46:13]MH_I2C_Read... [08:46:13]OFD Sender: No OFD packet to send [08:46:14]*** Cut start [08:46:14]*** Partial cut [08:46:14]*** CUTSNS_PIN = 1 [08:46:14]*** CUTSNS_PIN = 0 [08:46:14]*** Brake cut motor [08:46:14]Read from MH i2c: 01 [08:46:14]MH_I2C_Read... [08:46:14]*** Stop cut motor [08:46:14]*** Cut end [08:46:14]Read from MH i2c: 01 07 00 [08:46:14]MH_I2C_Read... [08:46:14]Read from MH i2c: 01 07 00 3E 92 00 00 00 00 00 FF 0F E5 [08:46:14]process_action close_receipt done [08:46:14]requested_data is exist [08:46:14]produce_requested_data [08:46:14]requested_item fm.sn is exist - process it [08:46:14]wFMCommunicate request_size=4 [08:46:14]MH_SAM_APDU [08:46:14]CAPDU: 80 11 00 00 [08:46:14]Write to MH i2c: E2 08 00 3F 92 80 11 00 00 00 00 00 00 4B [08:46:14]Write i2c OK [08:46:14]MH_I2C_Read... [08:46:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:46:14]Read from MH i2c: E2 [08:46:14]MH_I2C_Read... [08:46:14]Read from MH i2c: E2 17 00 [08:46:14]MH_I2C_Read... [08:46:14]Read from MH i2c: E2 17 00 3F 92 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 9E [08:46:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [08:46:14]wFMCommunicate OK [08:46:14]requested_item fd.num is exist - process it [08:46:14]SAM_PROTO_GetFieldsCounters [08:46:14]wFMCommunicate request_size=4 [08:46:14]MH_SAM_APDU [08:46:14]CAPDU: 80 13 00 00 [08:46:14]Write to MH i2c: E2 08 00 40 92 80 13 00 00 00 00 00 00 4E [08:46:14]Write i2c OK [08:46:14]MH_I2C_Read... [08:46:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:46:14]Read from MH i2c: E2 [08:46:14]MH_I2C_Read... [08:46:14]Read from MH i2c: E2 62 00 [08:46:14]MH_I2C_Read... [08:46:14]Read from MH i2c: E2 62 00 40 92 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 AE 94 01 00 0E 04 04 00 61 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 6E [08: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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 AE 94 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 1C 00 00 00 5E 04 04 00 1C 00 00 00 57 04 04 00 1D 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:46:14]wFMCommunicate OK [08:46:14]SAM_PROTO_GetFieldsCounters done [08:46:14]requested_item shift.num is exist - process it [08:46:14]requested_item shift.opened is exist - process it [08:46:14]req_shift_opened [08:46:14]FM_GetShiftState [08:46:14]SAM_PROTO_GetShiftState [08:46:14]wFMCommunicate request_size=4 [08:46:14]MH_SAM_APDU [08:46:14]CAPDU: 80 13 01 00 [08:46:14]Write to MH i2c: E2 08 00 41 92 80 13 01 00 00 00 00 00 50 [08:46:14]Write i2c OK [08:46:14]MH_I2C_Read... [08:46:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:46:15]Read from MH i2c: E2 [08:46:15]MH_I2C_Read... [08:46:15]Read from MH i2c: E2 0E 00 [08:46:15]MH_I2C_Read... [08:46:15]Read from MH i2c: E2 0E 00 41 92 00 09 00 01 04 26 72 66 00 00 00 00 90 00 5E [08:46:15]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [08:46:15]wFMCommunicate OK [08:46:15]SAM_PROTO_GetShiftState done [08:46:15]FM_GetShiftState done [08:46:15]req_shift_opened done [08:46:15]requested_item shift.open_date is exist - process it [08:46:15]req_shift_open_date [08:46:15]req_shift_open_date done [08:46:15]produce_requested_data done [08:46:15]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103598,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [08:46:15]process_action_free close_receipt [08:46:15]json_value_free [08:46:15]json_value_free done [08:46:15]process_json_proto returns [08:46:15]Send response to host [08:46:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103598,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [08:46:15]free response buf [08:46:15]execute_script done [08:46:15]execute_script returns [08:46:15]free content buf [08:46:15]Sock 7.Close socket [08:46:15]Sock 7.Thread stoped [08:46:18]OFD Sender: No OFD packet to send [08:46:23]OFD Sender: No OFD packet to send [08:46:28]OFD Sender: No OFD packet to send [08:46:33]OFD Sender: No OFD packet to send [08:46:38]OFD Sender: No OFD packet to send [08:46:43]OFD Sender: No OFD packet to send [08:46:48]OFD Sender: No OFD packet to send [08:46:53]OFD Sender: No OFD packet to send [08:46:58]OFD Sender: No OFD packet to send [08:47:03]OFD Sender: No OFD packet to send [08:47:08]OFD Sender: No OFD packet to send [08:47:13]OFD Sender: No OFD packet to send [08:47:18]OFD Sender: No OFD packet to send [08:47:23]OFD Sender: No OFD packet to send [08:47:28]OFD Sender: No OFD packet to send [08:47:33]OFD Sender: No OFD packet to send [08:47:38]OFD Sender: No OFD packet to send [08:47:43]OFD Sender: No OFD packet to send [08:47:48]OFD Sender: No OFD packet to send [08:47:53]OFD Sender: No OFD packet to send [08:47:58]OFD Sender: No OFD packet to send [08:48:03]OFD Sender: No OFD packet to send [08:48:08]OFD Sender: No OFD packet to send [08:48:13]OFD Sender: No OFD packet to send [08:48:18]OFD Sender: No OFD packet to send [08:48:23]OFD Sender: No OFD packet to send [08:48:28]OFD Sender: No OFD packet to send [08:48:33]OFD Sender: No OFD packet to send [08:48:36]accept exits with 9 [08:48:36]New connection [08:48:36]New thread 3067227492 created [08:48:36]Thread 3067084132 joined [08:48:36]Waiting for new connection... [08:48:36] Sock 9.Parse request [08:48:36]Sock 9.Check first char [08:48:36]Sock 9.First char is OK [08:48:36]request: POST /json_proto HTTP/1.0 [08:48:36]Method: POST [08:48:36]URL: /json_proto [08:48:36]Method is POST - this is cgi request [08:48:36]url: /json_proto [08:48:36]query_string will be loaded in cgi processing [08:48:36]execute_cgi json_proto POST (null) [08:48:36]execute_cgi path=json_proto method=POST [08:48:36]POST find Content-Length [08:48:36]Host: 172.17.38.133:8080 [08:48:36]Content-Length: 677 [08:48:36]Content-Type: application/json [08:48:36] [08:48:36]POST finish read [08:48:36]Found Content-Length = 677 [08:48:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672820", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 1.510, "sum" : 100.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 100.00, "total" : 100.00, "payments": [ { "type": 0, "sum" : 100.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:48:36]execute_script... [08:48: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)672820", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 1.510, "sum" : 100.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 100.00, "total" : 100.00, "payments": [ { "type": 0, "sum" : 100.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:48:36]POST & json_proto [08:48:36]process_json_proto [08:48:36]json parsed OK: [08:48:36]protocol is kg_v1.0 [08:48:36]action value=close_receipt [08:48:36]process_action close_receipt [08:48:36]cmd_close_receipt [08:48:36]MH_GetDate [08:48:36]Write to MH i2c: F0 00 00 42 92 C3 [08:48:36]Write i2c OK [08:48:36]MH_I2C_Read... [08:48:36]Read from MH i2c: F0 [08:48:36]MH_I2C_Read... [08:48:36]Read from MH i2c: F0 09 00 [08:48:36]MH_I2C_Read... [08:48:36]Read from MH i2c: F0 09 00 42 92 00 70 9B 72 66 BD 8F 7C 64 DB [08:48:36]GetLastDocTimeStamp 1718786782 [08:48:36]current date 1718786928 [08:48:36]FM_GetShiftState [08:48:36]SAM_PROTO_GetShiftState [08:48:36]wFMCommunicate request_size=4 [08:48:36]MH_SAM_APDU [08:48:36]CAPDU: 80 13 01 00 [08:48:36]Write to MH i2c: E2 08 00 43 92 80 13 01 00 00 00 00 00 52 [08:48:36]Write i2c OK [08:48:36]MH_I2C_Read... [08:48:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:48:36]Read from MH i2c: E2 [08:48:36]MH_I2C_Read... [08:48:36]Read from MH i2c: E2 0E 00 [08:48:36]MH_I2C_Read... [08:48:36]Read from MH i2c: E2 0E 00 43 92 00 09 00 01 04 26 72 66 00 00 00 00 90 00 60 [08:48:36]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [08:48:36]wFMCommunicate OK [08:48:36]SAM_PROTO_GetShiftState done [08:48:36]FM_GetShiftState done [08:48:36]opened in 1718756868 [08:48:36]opened+sec_in_day 1718843268 [08:48:36]quantity*price = 10026 [08:48:36]sum+1 = 10027 [08:48:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.26 ИТОГО: 100.00 Внесено: 100.00 СДАЧА: 0.00 НСП 1% : 0.89 НДС 12% : 10.65 Наличными: 100.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 29 19.06.2024 08:48 Смена: 353 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103599 ФПД: 151042465605013 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T084848&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103599&fm=151042465605013&tin=02508201610067®Number=0000000000092785&sum=10000 [08:48:38]StoreToDocumentArchive [08:48:38]shift 353 fd 103599 [08:48:38]save to /storage/0353/doc_00103599 [08:48:38]save last doc name /storage/0353/doc_00103599 to /storage/kkm_last_doc_name [08:48:38]save OK [08:48:38]Clear old archive folders... [08:48:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:48:38]tlvbuf is B6F9BB70 [08:48:38]SAM_PROTO_ClearQueue [08:48:38]wFMCommunicate request_size=4 [08:48:38]MH_SAM_APDU [08:48:38]CAPDU: 80 09 00 00 [08:48:38]Write to MH i2c: E2 08 00 50 92 80 09 00 00 00 00 00 00 54 [08:48:38]Write i2c OK [08:48:38]MH_I2C_Read... [08:48:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:48:38]Read from MH i2c: E2 [08:48:38]MH_I2C_Read... [08:48:38]Read from MH i2c: E2 03 00 [08:48:38]MH_I2C_Read... [08:48:38]Read from MH i2c: E2 03 00 50 92 00 90 00 56 [08:48:38]RAPDU: 90 00 [08:48:38]wFMCommunicate OK [08:48:38]SAM_PROTO_ClearQueue done [08:48:38]KKMCreateOFDPacket [08:48:38]OFDProtocolAddRootSTLVToBuf [08:48:38]FM_MakeSignedData [08:48:38]FM_MakeSignedData [08:48:38]SAM_PROTO_SignData [08:48:38]wFMCommunicate request_size=4 [08:48:38]MH_SAM_APDU [08:48:38]CAPDU: 80 0D 01 02 [08:48:38]Write to MH i2c: E2 08 00 51 92 80 0D 01 02 00 00 00 00 5C [08:48:38]Write i2c OK [08:48:38]MH_I2C_Read... [08:48:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:48:38]Read from MH i2c: E2 [08:48:38]MH_I2C_Read... [08:48:38]Read from MH i2c: E2 03 00 [08:48:38]MH_I2C_Read... [08:48:38]Read from MH i2c: E2 03 00 51 92 00 90 00 57 [08:48:38]RAPDU: 90 00 [08:48:38]wFMCommunicate OK [08:48:38]wFMCommunicate request_size=255 [08:48:38]MH_SAM_APDU [08:48:38]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 05 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 2A 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 29 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 70 9B 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 AF 94 01 00 35 04 06 00 89 [08:48:38]Write to MH i2c: E2 02 01 52 92 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 05 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 2A 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 29 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 70 9B 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 AF 94 01 00 35 04 06 00 89 00 00 D4 [08:48:38]Write i2c OK [08:48:38]MH_I2C_Read... [08:48:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:48:38]Read from MH i2c: E2 [08:48:38]MH_I2C_Read... [08:48:38]Read from MH i2c: E2 03 00 [08:48:38]MH_I2C_Read... [08:48:38]Read from MH i2c: E2 03 00 52 92 00 90 00 58 [08:48:38]RAPDU: 90 00 [08:48:38]wFMCommunicate OK [08:48:38]wFMCommunicate request_size=10 [08:48:38]MH_SAM_APDU [08:48:38]CAPDU: 80 0D 02 02 05 5F 50 82 25 95 [08:48:38]Write to MH i2c: E2 0D 00 53 92 80 0D 02 02 05 00 5F 50 82 25 95 00 00 54 [08:48:38]Write i2c OK [08:48:38]MH_I2C_Read... [08:48:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:48:38]Read from MH i2c: E2 [08:48:38]MH_I2C_Read... [08:48:38]Read from MH i2c: E2 03 00 [08:48:38]MH_I2C_Read... [08:48:38]Read from MH i2c: E2 03 00 53 92 00 90 00 59 [08:48:38]RAPDU: 90 00 [08:48:38]wFMCommunicate OK [08:48:38]wFMCommunicate request_size=4 [08:48:38]MH_SAM_APDU [08:48:38]CAPDU: 80 0D 03 02 [08:48:38]Write to MH i2c: E2 08 00 54 92 80 0D 03 02 00 00 00 00 61 [08:48:38]Write i2c OK [08:48:38]MH_I2C_Read... [08:48:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:48:38]Read from MH i2c: E2 [08:48:38]MH_I2C_Read... [08:48:38]Read from MH i2c: E2 0B 00 [08:48:38]MH_I2C_Read... [08:48:38]Read from MH i2c: E2 0B 00 54 92 00 16 2B 7C 2D 9E 49 B5 07 90 00 EF [08:48:38]RAPDU: 16 2B 7C 2D 9E 49 B5 07 90 00 [08:48:38]wFMCommunicate OK [08:48:38]SAM_PROTO_SignData done [08:48:38]FM_MakeSignedData done [08:48:38]CreateOFDProtocolMessage [08:48:38]wFMCommunicate request_size=4 [08:48:38]MH_SAM_APDU [08:48:38]CAPDU: 80 11 00 00 [08:48:38]Write to MH i2c: E2 08 00 55 92 80 11 00 00 00 00 00 00 61 [08:48:38]Write i2c OK [08:48:38]MH_I2C_Read... [08:48:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:48:38]Read from MH i2c: E2 [08:48:38]MH_I2C_Read... [08:48:38]Read from MH i2c: E2 17 00 [08:48:38]MH_I2C_Read... [08:48:38]Read from MH i2c: E2 17 00 55 92 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 B4 [08:48:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [08:48:38]wFMCommunicate OK [08:48:38]CreateOFDProtocolMessage done [08:48:38]OFDSenderStorePacket 103599 [08:48:38]StoreOFDPacket docnum=103599 [08:48:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 62 85 07 01 25 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 E6 05 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 2A 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 29 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 70 9B 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 AF 94 01 00 35 04 06 00 89 5F 50 82 25 95 16 2B 7C 2D 9E 49 B5 07 [08:48:38]CheckFolder [08:48:38]dirname=/storage/ofd_packets [08:48:38]CheckFolder done [08:48:38]ProducePacketName [08:48:38]name=ofd_packets/00103599 [08:48:38]NVStorageSaveData ofd_packets/00103599 [08:48:38]File name is /storage/ofd_packets/00103599 [08:48:38]Write 301 bytes [08:48:38]NVStorageSaveData done [08:48:38]OFDSenderStorePacket done [08:48:38]KKMCreateOFDPacket done [08:48:38]NVStorageSaveData kkm_last_timestamp [08:48:38]File name is /storage/kkm_last_timestamp [08:48:38]Write 4 bytes [08:48:38]OFD Sender: Processing packet 103599 [packets to send 17, broken 16] [08:48:38]ProducePacketName [08:48:38]name=ofd_packets/00103599 [08:48:38]OFD Sender: To server: pG, [08:48:38]CommunicateWithHost lk.salyk.kg:30040 [08:48:38]ConnectInit lk.salyk.kg [08:48:38]NVStorageSaveData done [08:48:38]ExternCall_PrintAddStr [08:48:38]wPrintStart [08:48:38]Write to MH i2c: 01 00 00 56 92 E8 [08:48:38]Write i2c OK [08:48:38]MH_I2C_Read... [08:48:38]Read from MH i2c: 01 [08:48:38]MH_I2C_Read... [08:48:38]Read from MH i2c: 01 07 00 [08:48:38]MH_I2C_Read... [08:48:38]Read from MH i2c: 01 07 00 56 92 00 00 00 00 00 FF 0F FD [08:48:38]RasterBufferAndPrint [08:48:38]line Счет N : (1)672820 [08:48:38]line ИНН: 02508201610067 [08:48:38]line Контрольно-Кассовый Чек [08:48:38]line ПРОДАЖА [08:48:38]line ТРК (МРК, ГНК) : 32 [08:48:38]line Товар: 2710124130 [08:48:38]line Аи-92-К-5 [08:48:38]line 1.510 * 66.40 [08:48:38]line = 100.26 [08:48:38]line НДС 12% НСП 1% [08:48:38]line > о реализуемом товаре [08:48:38]line ОКРУГЛЕНИЕ: -0.26 [08:48:38]line ИТОГО: 100.00 [08:48:38]line Внесено: 100.00 [08:48:38]line СДАЧА: 0.00 [08:48:38]line НСП 1% : 0.89 [08:48:38]line НДС 12% : 10.65 [08:48:38]line Наличными: 100.00 [08:48:38]line Безнал.: 0.00 [08:48:38]line Место: АЗС № 120 "Партнер Нефть" [08:48:38]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [08:48:38]line СНО: Общий режим [08:48:38]line Чек 29 19.06.2024 08:48 [08:48:38]line Смена: 353 ФФД: 1.0 [08:48:38]line ЗНМ: 0300000164 [08:48:38]line РНМ: 0000000000092785 [08:48:38]line Версия ККМ: 001 [08:48:38]line ФМ: 0000000000875093 [08:48:38]line ФД: 103599 [08:48:38]line ФПД: 151042465605013 [08:48:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T084848&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103599&fm=151042465605013&tin=02508201610067®Number=0000000000092785&sum=10000 [08:48:38]Connected sock=10 [08:48:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 62 85 07 01 25 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 E6 05 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 2A 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 29 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 70 9B 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 AF 94 01 00 35 04 06 00 89 5F 50 82 25 95 16 2B 7C 2D 9E 49 B5 07 [08:48:38]written 0, free lines is 4095 [08:48:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 9E 64 47 00 A6 8C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 AF 94 01 00 F4 03 04 00 F9 41 72 66 B6 04 01 00 00 C0 68 AC 5D E1 6C 49 C5 [08:48:39]CommunicateWithHost err = 0 [08:48:39]CheckOFDResponse [08:48:39]1017 (14) - 77093643461234 [08:48:39]1041 (16) - 0000000000875093 [08:48:39]1040 (4) - 103599 [08:48:39]1012 (4) - 19.06.2024 02:27 [08:48:39]1206 (1) - 0 [08:48:39]OFD Sender: Remove packet 103599 [08:48:39]ProducePacketName [08:48:39]name=ofd_packets/00103599 [08:48:39]NVStorageDeleteData [08:48:39]Write to MH i2c: 01 00 00 81 92 13 [08:48:39]Write i2c OK [08:48:39]MH_I2C_Read... [08:48:39]Read from MH i2c: 01 [08:48:39]MH_I2C_Read... [08:48:39]Read from MH i2c: 01 07 00 [08:48:39]MH_I2C_Read... [08:48:39]Read from MH i2c: 01 07 00 81 92 00 00 00 00 00 C6 0C EC [08:48:39]RasterBufferAndPrint [08:48:39]line [08:48:39]line [08:48:39]line [08:48:39]line [08:48:39]line [08:48:39]written 0, free lines is 3276 [08:48:39]MH_Cut [08:48:39]Write to MH i2c: D1 01 00 88 92 01 EC [08:48:39]Write i2c OK [08:48:39]MH_I2C_Read... [08:48:39]Read from MH i2c: D1 [08:48:39]MH_I2C_Read... [08:48:39]Read from MH i2c: D1 01 00 [08:48:39]MH_I2C_Read... [08:48:39]Read from MH i2c: D1 01 00 88 92 00 EB [08:48:39]Write to MH i2c: 01 00 00 89 92 1B [08:48:39]Write i2c OK [08:48:39]MH_I2C_Read... [08:48:39]OFD Sender: No OFD packet to send [08:48:40]*** Cut start [08:48:40]*** Partial cut [08:48:40]*** CUTSNS_PIN = 1 [08:48:40]*** CUTSNS_PIN = 0 [08:48:40]*** Brake cut motor [08:48:40]Read from MH i2c: 01 [08:48:40]MH_I2C_Read... [08:48:40]*** Stop cut motor [08:48:40]*** Cut end [08:48:40]Read from MH i2c: 01 07 00 [08:48:40]MH_I2C_Read... [08:48:40]Read from MH i2c: 01 07 00 89 92 00 00 00 00 00 FF 0F 30 [08:48:40]process_action close_receipt done [08:48:40]requested_data is exist [08:48:40]produce_requested_data [08:48:40]requested_item fm.sn is exist - process it [08:48:40]wFMCommunicate request_size=4 [08:48:40]MH_SAM_APDU [08:48:40]CAPDU: 80 11 00 00 [08:48:40]Write to MH i2c: E2 08 00 8A 92 80 11 00 00 00 00 00 00 96 [08:48:40]Write i2c OK [08:48:40]MH_I2C_Read... [08:48:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:48:40]Read from MH i2c: E2 [08:48:40]MH_I2C_Read... [08:48:40]Read from MH i2c: E2 17 00 [08:48:40]MH_I2C_Read... [08:48:40]Read from MH i2c: E2 17 00 8A 92 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 E9 [08:48:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [08:48:40]wFMCommunicate OK [08:48:40]requested_item fd.num is exist - process it [08:48:40]SAM_PROTO_GetFieldsCounters [08:48:40]wFMCommunicate request_size=4 [08:48:40]MH_SAM_APDU [08:48:40]CAPDU: 80 13 00 00 [08:48:40]Write to MH i2c: E2 08 00 8B 92 80 13 00 00 00 00 00 00 99 [08:48:40]Write i2c OK [08:48:40]MH_I2C_Read... [08:48:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:48:40]Read from MH i2c: E2 [08:48:40]MH_I2C_Read... [08:48:40]Read from MH i2c: E2 62 00 [08:48:40]MH_I2C_Read... [08:48:40]Read from MH i2c: E2 62 00 8B 92 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 AF 94 01 00 0E 04 04 00 61 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 BD [08:48:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 AF 94 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 1D 00 00 00 5E 04 04 00 1D 00 00 00 57 04 04 00 1E 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:48:40]wFMCommunicate OK [08:48:40]SAM_PROTO_GetFieldsCounters done [08:48:40]requested_item shift.num is exist - process it [08:48:40]requested_item shift.opened is exist - process it [08:48:40]req_shift_opened [08:48:40]FM_GetShiftState [08:48:40]SAM_PROTO_GetShiftState [08:48:40]wFMCommunicate request_size=4 [08:48:40]MH_SAM_APDU [08:48:40]CAPDU: 80 13 01 00 [08:48:40]Write to MH i2c: E2 08 00 8C 92 80 13 01 00 00 00 00 00 9B [08:48:40]Write i2c OK [08:48:40]MH_I2C_Read... [08:48:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:48:40]Read from MH i2c: E2 [08:48:40]MH_I2C_Read... [08:48:40]Read from MH i2c: E2 0E 00 [08:48:40]MH_I2C_Read... [08:48:40]Read from MH i2c: E2 0E 00 8C 92 00 09 00 01 04 26 72 66 00 00 00 00 90 00 A9 [08:48:40]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [08:48:40]wFMCommunicate OK [08:48:40]SAM_PROTO_GetShiftState done [08:48:40]FM_GetShiftState done [08:48:40]req_shift_opened done [08:48:40]requested_item shift.open_date is exist - process it [08:48:40]req_shift_open_date [08:48:40]req_shift_open_date done [08:48:40]produce_requested_data done [08:48:40]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103599,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [08:48:40]process_action_free close_receipt [08:48:40]json_value_free [08:48:40]json_value_free done [08:48:40]process_json_proto returns [08:48:40]Send response to host [08:48:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103599,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [08:48:40]free response buf [08:48:41]execute_script done [08:48:41]execute_script returns [08:48:41]free content buf [08:48:41]Sock 9.Close socket [08:48:41]Sock 9.Thread stoped [08:48:44]OFD Sender: No OFD packet to send [08:48:49]OFD Sender: No OFD packet to send [08:48:54]OFD Sender: No OFD packet to send [08:48:59]OFD Sender: No OFD packet to send [08:49:04]OFD Sender: No OFD packet to send [08:49:09]OFD Sender: No OFD packet to send [08:49:14]OFD Sender: No OFD packet to send [08:49:19]OFD Sender: No OFD packet to send [08:49:24]OFD Sender: No OFD packet to send [08:49:29]OFD Sender: No OFD packet to send [08:49:34]OFD Sender: No OFD packet to send [08:49:39]OFD Sender: No OFD packet to send [08:49:44]OFD Sender: No OFD packet to send [08:49:49]OFD Sender: No OFD packet to send [08:49:54]OFD Sender: No OFD packet to send [08:49:59]OFD Sender: No OFD packet to send [08:50:04]OFD Sender: No OFD packet to send [08:50:09]OFD Sender: No OFD packet to send [08:50:14]OFD Sender: No OFD packet to send [08:50:19]OFD Sender: No OFD packet to send [08:50:24]OFD Sender: No OFD packet to send [08:50:29]OFD Sender: No OFD packet to send [08:50:34]OFD Sender: No OFD packet to send [08:50:39]OFD Sender: No OFD packet to send [08:50:44]OFD Sender: No OFD packet to send [08:50:49]OFD Sender: No OFD packet to send [08:50:54]OFD Sender: No OFD packet to send [08:50:59]OFD Sender: No OFD packet to send [08:51:04]OFD Sender: No OFD packet to send [08:51:09]OFD Sender: No OFD packet to send [08:51:14]OFD Sender: No OFD packet to send [08:51:19]OFD Sender: No OFD packet to send [08:51:24]OFD Sender: No OFD packet to send [08:51:29]OFD Sender: No OFD packet to send [08:51:34]OFD Sender: No OFD packet to send [08:51:39]OFD Sender: No OFD packet to send [08:51:44]OFD Sender: No OFD packet to send [08:51:49]OFD Sender: No OFD packet to send [08:51:54]OFD Sender: No OFD packet to send [08:51:59]OFD Sender: No OFD packet to send [08:52:04]OFD Sender: No OFD packet to send [08:52:09]OFD Sender: No OFD packet to send [08:52:14]OFD Sender: No OFD packet to send [08:52:19]OFD Sender: No OFD packet to send [08:52:24]OFD Sender: No OFD packet to send [08:52:29]OFD Sender: No OFD packet to send [08:52:34]OFD Sender: No OFD packet to send [08:52:39]OFD Sender: No OFD packet to send [08:52:44]OFD Sender: No OFD packet to send [08:52:49]OFD Sender: No OFD packet to send [08:52:54]OFD Sender: No OFD packet to send [08:52:59]OFD Sender: No OFD packet to send [08:53:04]OFD Sender: No OFD packet to send [08:53:09]OFD Sender: No OFD packet to send [08:53:14]OFD Sender: No OFD packet to send [08:53:19]OFD Sender: No OFD packet to send [08:53:24]OFD Sender: No OFD packet to send [08:53:29]OFD Sender: No OFD packet to send [08:53:34]OFD Sender: No OFD packet to send [08:53:39]OFD Sender: No OFD packet to send [08:53:44]OFD Sender: No OFD packet to send [08:53:49]OFD Sender: No OFD packet to send [08:53:54]OFD Sender: No OFD packet to send [08:53:59]OFD Sender: No OFD packet to send [08:54:04]OFD Sender: No OFD packet to send [08:54:09]OFD Sender: No OFD packet to send [08:54:14]OFD Sender: No OFD packet to send [08:54:19]OFD Sender: No OFD packet to send [08:54:24]OFD Sender: No OFD packet to send [08:54:29]OFD Sender: No OFD packet to send [08:54:34]OFD Sender: No OFD packet to send [08:54:39]OFD Sender: No OFD packet to send [08:54:44]OFD Sender: No OFD packet to send [08:54:49]OFD Sender: No OFD packet to send [08:54:50]accept exits with 7 [08:54:50]New connection [08:54:50]New thread 3067084132 created [08:54:50]Thread 3067227492 joined [08:54:50]Waiting for new connection... [08:54:50] Sock 7.Parse request [08:54:50]Sock 7.Check first char [08:54:50]Sock 7.First char is OK [08:54:50]request: POST /json_proto HTTP/1.0 [08:54:50]Method: POST [08:54:50]URL: /json_proto [08:54:50]Method is POST - this is cgi request [08:54:50]url: /json_proto [08:54:50]query_string will be loaded in cgi processing [08:54:50]execute_cgi json_proto POST (null) [08:54:50]execute_cgi path=json_proto method=POST [08:54:50]POST find Content-Length [08:54:50]Host: 172.17.38.133:8080 [08:54:50]Content-Length: 816 [08:54:50]Content-Type: application/json [08:54:50] [08:54:50]POST finish read [08:54:50]Found Content-Length = 816 [08:54:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672821", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 3.020, "sum" : 200.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 200.53 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:54:50]execute_script... [08:54: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)672821", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 3.020, "sum" : 200.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 200.53 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:54:50]POST & json_proto [08:54:50]process_json_proto [08:54:50]json parsed OK: [08:54:50]protocol is kg_v1.0 [08:54:50]action value=close_receipt [08:54:50]process_action close_receipt [08:54:50]cmd_close_receipt [08:54:50]MH_GetDate [08:54:50]Write to MH i2c: F0 00 00 8D 92 0E [08:54:50]Write i2c OK [08:54:50]MH_I2C_Read... [08:54:50]Read from MH i2c: F0 [08:54:50]MH_I2C_Read... [08:54:50]Read from MH i2c: F0 09 00 [08:54:50]MH_I2C_Read... [08:54:50]Read from MH i2c: F0 09 00 8D 92 00 E5 9C 72 66 BD 8F 7C 64 9C [08:54:50]GetLastDocTimeStamp 1718786928 [08:54:50]current date 1718787301 [08:54:50]FM_GetShiftState [08:54:50]SAM_PROTO_GetShiftState [08:54:50]wFMCommunicate request_size=4 [08:54:50]MH_SAM_APDU [08:54:50]CAPDU: 80 13 01 00 [08:54:50]Write to MH i2c: E2 08 00 8E 92 80 13 01 00 00 00 00 00 9D [08:54:50]Write i2c OK [08:54:50]MH_I2C_Read... [08:54:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:54:50]Read from MH i2c: E2 [08:54:50]MH_I2C_Read... [08:54:50]Read from MH i2c: E2 0E 00 [08:54:50]MH_I2C_Read... [08:54:50]Read from MH i2c: E2 0E 00 8E 92 00 09 00 01 04 26 72 66 00 00 00 00 90 00 AB [08:54:50]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [08:54:50]wFMCommunicate OK [08:54:50]SAM_PROTO_GetShiftState done [08:54:50]FM_GetShiftState done [08:54:50]opened in 1718756868 [08:54:50]opened+sec_in_day 1718843268 [08:54:50]quantity*price = 20052 [08:54:50]sum+1 = 20054 [08:54:50]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 200.53 НСП 1% : 1.77 НДС 12% : 21.29 Наличными: 0.00 Безнал.: 200.53 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 30 19.06.2024 08:55 Смена: 353 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000875093 ФД: 103600 ФПД: 196180442701545 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T085501&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103600&fm=196180442701545&tin=02508201610067®Number=0000000000092785&sum=20053 [08:54:51]StoreToDocumentArchive [08:54:51]shift 353 fd 103600 [08:54:51]save to /storage/0353/doc_00103600 [08:54:51]save last doc name /storage/0353/doc_00103600 to /storage/kkm_last_doc_name [08:54:51]save OK [08:54:51]Clear old archive folders... [08:54:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:54:51]tlvbuf is 014A3690 [08:54:51]SAM_PROTO_ClearQueue [08:54:51]wFMCommunicate request_size=4 [08:54:51]MH_SAM_APDU [08:54:51]CAPDU: 80 09 00 00 [08:54:51]Write to MH i2c: E2 08 00 9B 92 80 09 00 00 00 00 00 00 9F [08:54:51]Write i2c OK [08:54:51]MH_I2C_Read... [08:54:51]Read from MH i2c: E2 [08:54:51]MH_I2C_Read... [08:54:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:54:51]Read from MH i2c: E2 03 00 [08:54:51]MH_I2C_Read... [08:54:51]Read from MH i2c: E2 03 00 9B 92 00 90 00 A1 [08:54:51]RAPDU: 90 00 [08:54:51]wFMCommunicate OK [08:54:51]SAM_PROTO_ClearQueue done [08:54:51]KKMCreateOFDPacket [08:54:51]OFDProtocolAddRootSTLVToBuf [08:54:51]FM_MakeSignedData [08:54:51]FM_MakeSignedData [08:54:51]SAM_PROTO_SignData [08:54:51]wFMCommunicate request_size=4 [08:54:51]MH_SAM_APDU [08:54:51]CAPDU: 80 0D 01 02 [08:54:51]Write to MH i2c: E2 08 00 9C 92 80 0D 01 02 00 00 00 00 A7 [08:54:51]Write i2c OK [08:54:51]MH_I2C_Read... [08:54:51]Read from MH i2c: E2 [08:54:51]MH_I2C_Read... [08:54:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:54:51]Read from MH i2c: E2 03 00 [08:54:51]MH_I2C_Read... [08:54:51]Read from MH i2c: E2 03 00 9C 92 00 90 00 A2 [08:54:51]RAPDU: 90 00 [08:54:51]wFMCommunicate OK [08:54:51]wFMCommunicate request_size=255 [08:54:51]MH_SAM_APDU [08:54:51]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 55 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 55 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 E5 9C 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 B0 94 01 00 35 04 06 00 B2 [08:54:51]Write to MH i2c: E2 02 01 9D 92 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 55 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 55 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 E5 9C 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 B0 94 01 00 35 04 06 00 B2 00 00 5A [08:54:51]Write i2c OK [08:54:51]MH_I2C_Read... [08:54:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:54:51]Read from MH i2c: E2 [08:54:51]MH_I2C_Read... [08:54:51]Read from MH i2c: E2 03 00 [08:54:51]MH_I2C_Read... [08:54:51]Read from MH i2c: E2 03 00 9D 92 00 90 00 A3 [08:54:51]RAPDU: 90 00 [08:54:51]wFMCommunicate OK [08:54:51]wFMCommunicate request_size=10 [08:54:51]MH_SAM_APDU [08:54:51]CAPDU: 80 0D 02 02 05 6C D1 99 5E E9 [08:54:51]Write to MH i2c: E2 0D 00 9E 92 80 0D 02 02 05 00 6C D1 99 5E E9 00 00 D1 [08:54:51]Write i2c OK [08:54:51]MH_I2C_Read... [08:54:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:54:52]Read from MH i2c: E2 [08:54:52]MH_I2C_Read... [08:54:52]Read from MH i2c: E2 03 00 [08:54:52]MH_I2C_Read... [08:54:52]Read from MH i2c: E2 03 00 9E 92 00 90 00 A4 [08:54:52]RAPDU: 90 00 [08:54:52]wFMCommunicate OK [08:54:52]wFMCommunicate request_size=4 [08:54:52]MH_SAM_APDU [08:54:52]CAPDU: 80 0D 03 02 [08:54:52]Write to MH i2c: E2 08 00 9F 92 80 0D 03 02 00 00 00 00 AC [08:54:52]Write i2c OK [08:54:52]MH_I2C_Read... [08:54:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:54:52]Read from MH i2c: E2 [08:54:52]MH_I2C_Read... [08:54:52]Read from MH i2c: E2 0B 00 [08:54:52]MH_I2C_Read... [08:54:52]Read from MH i2c: E2 0B 00 9F 92 00 B8 A0 D9 46 B0 77 E2 60 90 00 8D [08:54:52]RAPDU: B8 A0 D9 46 B0 77 E2 60 90 00 [08:54:52]wFMCommunicate OK [08:54:52]SAM_PROTO_SignData done [08:54:52]FM_MakeSignedData done [08:54:52]CreateOFDProtocolMessage [08:54:52]wFMCommunicate request_size=4 [08:54:52]MH_SAM_APDU [08:54:52]CAPDU: 80 11 00 00 [08:54:52]Write to MH i2c: E2 08 00 A0 92 80 11 00 00 00 00 00 00 AC [08:54:52]Write i2c OK [08:54:52]MH_I2C_Read... [08:54:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:54:52]Read from MH i2c: E2 [08:54:52]MH_I2C_Read... [08:54:52]Read from MH i2c: E2 17 00 [08:54:52]MH_I2C_Read... [08:54:52]Read from MH i2c: E2 17 00 A0 92 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 FF [08:54:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [08:54:52]wFMCommunicate OK [08:54:52]CreateOFDProtocolMessage done [08:54:52]OFDSenderStorePacket 103600 [08:54:52]StoreOFDPacket docnum=103600 [08:54:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 CF CC 07 01 0F B8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 55 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 55 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 E5 9C 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 B0 94 01 00 35 04 06 00 B2 6C D1 99 5E E9 B8 A0 D9 46 B0 77 E2 60 [08:54:52]CheckFolder [08:54:52]dirname=/storage/ofd_packets [08:54:52]CheckFolder done [08:54:52]ProducePacketName [08:54:52]name=ofd_packets/00103600 [08:54:52]NVStorageSaveData ofd_packets/00103600 [08:54:52]File name is /storage/ofd_packets/00103600 [08:54:52]Write 301 bytes [08:54:52]NVStorageSaveData done [08:54:52]OFDSenderStorePacket done [08:54:52]KKMCreateOFDPacket done [08:54:52]NVStorageSaveData kkm_last_timestamp [08:54:52]File name is /storage/kkm_last_timestamp [08:54:52]Write 4 bytes [08:54:52]NVStorageSaveData done [08:54:52]ExternCall_PrintAddStr [08:54:52]wPrintStart [08:54:52]Write to MH i2c: 01 00 00 A1 92 33 [08:54:52]Write i2c OK [08:54:52]MH_I2C_Read... [08:54:52]Read from MH i2c: 01 [08:54:52]MH_I2C_Read... [08:54:52]Read from MH i2c: 01 07 00 [08:54:52]MH_I2C_Read... [08:54:52]Read from MH i2c: 01 07 00 A1 92 00 00 00 00 00 FF 0F 48 [08:54:52]RasterBufferAndPrint [08:54:52]line Счет N : (1)672821 [08:54:52]line ИНН: 02508201610067 [08:54:52]line Контрольно-Кассовый Чек [08:54:52]line ПРОДАЖА [08:54:52]line ТРК (МРК, ГНК) : 32 [08:54:52]line Товар: 2710124130 [08:54:52]line Аи-92-К-5 [08:54:52]line 3.020 * 66.40 [08:54:52]line = 200.53 [08:54:52]line НДС 12% НСП 1% [08:54:52]line > о реализуемом товаре [08:54:52]line ИТОГО: 200.53 [08:54:52]line НСП 1% : 1.77 [08:54:52]line НДС 12% : 21.29 [08:54:52]line Наличными: 0.00 [08:54:52]line Безнал.: 200.53 [08:54:52]line Место: АЗС № 120 "Партнер Нефть" [08:54:52]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [08:54:52]line СНО: Общий режим [08:54:52]line Чек 30 19.06.2024 08:55 [08:54:52]line Смена: 353 ФФД: 1.0 [08:54:52]line ЗНМ: 0300000164 [08:54:52]line РНМ: 0000000000092785 [08:54:52]line Версия ККМ: 001 [08:54:52]line Платежная система: Бакай Банк [08:54:52]line ФМ: 0000000000875093 [08:54:52]line ФД: 103600 [08:54:52]line ФПД: 196180442701545 [08:54:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T085501&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103600&fm=196180442701545&tin=02508201610067®Number=0000000000092785&sum=20053 [08:54:52]OFD Sender: Processing packet 103600 [packets to send 17, broken 16] [08:54:52]ProducePacketName [08:54:52]name=ofd_packets/00103600 [08:54:52]OFD Sender: To server: pG, [08:54:52]CommunicateWithHost lk.salyk.kg:30040 [08:54:52]ConnectInit lk.salyk.kg [08:54:52]written 0, free lines is 4095 [08:54:52]Connected sock=10 [08:54: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 39 33 0F 01 00 00 CF CC 07 01 0F B8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 55 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 55 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 E5 9C 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 B0 94 01 00 35 04 06 00 B2 6C D1 99 5E E9 B8 A0 D9 46 B0 77 E2 60 [08:54: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 39 33 4F 00 00 00 90 C9 47 00 B5 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 39 33 10 04 04 00 B0 94 01 00 F4 03 04 00 6F 43 72 66 B6 04 01 00 00 F0 28 BA 34 82 4D D8 4E [08:54:52]CommunicateWithHost err = 0 [08:54:52]CheckOFDResponse [08:54:52]1017 (14) - 77093643461234 [08:54:52]1041 (16) - 0000000000875093 [08:54:52]1040 (4) - 103600 [08:54:52]1012 (4) - 19.06.2024 02:33 [08:54:52]1206 (1) - 0 [08:54:52]OFD Sender: Remove packet 103600 [08:54:52]ProducePacketName [08:54:52]name=ofd_packets/00103600 [08:54:52]NVStorageDeleteData [08:54:52]Write to MH i2c: 01 00 00 CB 92 5D [08:54:52]Write i2c OK [08:54:52]MH_I2C_Read... [08:54:52]Read from MH i2c: 01 [08:54:52]MH_I2C_Read... [08:54:52]Read from MH i2c: 01 07 00 [08:54:52]MH_I2C_Read... [08:54:52]Read from MH i2c: 01 07 00 CB 92 00 00 00 00 00 DF 0C 4F [08:54:52]RasterBufferAndPrint [08:54:52]line [08:54:52]line [08:54:52]line [08:54:52]line [08:54:52]line [08:54:52]written 0, free lines is 3304 [08:54:52]MH_Cut [08:54:52]Write to MH i2c: D1 01 00 D2 92 01 36 [08:54:52]Write i2c OK [08:54:52]MH_I2C_Read... [08:54:52]Read from MH i2c: D1 [08:54:52]MH_I2C_Read... [08:54:52]Read from MH i2c: D1 01 00 [08:54:52]MH_I2C_Read... [08:54:52]Read from MH i2c: D1 01 00 D2 92 00 35 [08:54:52]Write to MH i2c: 01 00 00 D3 92 65 [08:54:52]Write i2c OK [08:54:52]MH_I2C_Read... [08:54:53]OFD Sender: No OFD packet to send [08:54:53]*** Cut start [08:54:53]*** Partial cut [08:54:53]*** CUTSNS_PIN = 1 [08:54:53]*** CUTSNS_PIN = 0 [08:54:53]*** Brake cut motor [08:54:54]Read from MH i2c: 01 [08:54:54]MH_I2C_Read... [08:54:54]*** Stop cut motor [08:54:54]*** Cut end [08:54:54]Read from MH i2c: 01 07 00 [08:54:54]MH_I2C_Read... [08:54:54]Read from MH i2c: 01 07 00 D3 92 00 00 00 00 00 FF 0F 7A [08:54:54]process_action close_receipt done [08:54:54]requested_data is exist [08:54:54]produce_requested_data [08:54:54]requested_item fm.sn is exist - process it [08:54:54]wFMCommunicate request_size=4 [08:54:54]MH_SAM_APDU [08:54:54]CAPDU: 80 11 00 00 [08:54:54]Write to MH i2c: E2 08 00 D4 92 80 11 00 00 00 00 00 00 E0 [08:54:54]Write i2c OK [08:54:54]MH_I2C_Read... [08:54:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:54:54]Read from MH i2c: E2 [08:54:54]MH_I2C_Read... [08:54:54]Read from MH i2c: E2 17 00 [08:54:54]MH_I2C_Read... [08:54:54]Read from MH i2c: E2 17 00 D4 92 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 33 [08:54:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [08:54:54]wFMCommunicate OK [08:54:54]requested_item fd.num is exist - process it [08:54:54]SAM_PROTO_GetFieldsCounters [08:54:54]wFMCommunicate request_size=4 [08:54:54]MH_SAM_APDU [08:54:54]CAPDU: 80 13 00 00 [08:54:54]Write to MH i2c: E2 08 00 D5 92 80 13 00 00 00 00 00 00 E3 [08:54:54]Write i2c OK [08:54:54]MH_I2C_Read... [08:54:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:54:54]Read from MH i2c: E2 [08:54:54]MH_I2C_Read... [08:54:54]Read from MH i2c: E2 62 00 [08:54:54]MH_I2C_Read... [08:54:54]Read from MH i2c: E2 62 00 D5 92 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 B0 94 01 00 0E 04 04 00 61 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 0B [08:54: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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 B0 94 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 1E 00 00 00 5E 04 04 00 1E 00 00 00 57 04 04 00 1F 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:54:54]wFMCommunicate OK [08:54:54]SAM_PROTO_GetFieldsCounters done [08:54:54]requested_item shift.num is exist - process it [08:54:54]requested_item shift.opened is exist - process it [08:54:54]req_shift_opened [08:54:54]FM_GetShiftState [08:54:54]SAM_PROTO_GetShiftState [08:54:54]wFMCommunicate request_size=4 [08:54:54]MH_SAM_APDU [08:54:54]CAPDU: 80 13 01 00 [08:54:54]Write to MH i2c: E2 08 00 D6 92 80 13 01 00 00 00 00 00 E5 [08:54:54]Write i2c OK [08:54:54]MH_I2C_Read... [08:54:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:54:54]Read from MH i2c: E2 [08:54:54]MH_I2C_Read... [08:54:54]Read from MH i2c: E2 0E 00 [08:54:54]MH_I2C_Read... [08:54:54]Read from MH i2c: E2 0E 00 D6 92 00 09 00 01 04 26 72 66 00 00 00 00 90 00 F3 [08:54:54]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [08:54:54]wFMCommunicate OK [08:54:54]SAM_PROTO_GetShiftState done [08:54:54]FM_GetShiftState done [08:54:54]req_shift_opened done [08:54:54]requested_item shift.open_date is exist - process it [08:54:54]req_shift_open_date [08:54:54]req_shift_open_date done [08:54:54]produce_requested_data done [08:54:54]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103600,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [08:54:54]process_action_free close_receipt [08:54:54]json_value_free [08:54:54]json_value_free done [08:54:54]process_json_proto returns [08:54:54]Send response to host [08:54:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103600,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [08:54:54]free response buf [08:54:54]execute_script done [08:54:54]execute_script returns [08:54:54]free content buf [08:54:54]Sock 7.Close socket [08:54:54]Sock 7.Thread stoped [08:54:58]OFD Sender: No OFD packet to send [08:55:03]OFD Sender: No OFD packet to send [08:55:08]OFD Sender: No OFD packet to send [08:55:13]OFD Sender: No OFD packet to send [08:55:18]OFD Sender: No OFD packet to send [08:55:23]OFD Sender: No OFD packet to send [08:55:28]OFD Sender: No OFD packet to send [08:55:33]OFD Sender: No OFD packet to send [08:55:38]OFD Sender: No OFD packet to send [08:55:43]OFD Sender: No OFD packet to send [08:55:48]OFD Sender: No OFD packet to send [08:55:53]OFD Sender: No OFD packet to send [08:55:58]OFD Sender: No OFD packet to send [08:56:03]OFD Sender: No OFD packet to send [08:56:08]OFD Sender: No OFD packet to send [08:56:13]OFD Sender: No OFD packet to send [08:56:18]OFD Sender: No OFD packet to send [08:56:23]OFD Sender: No OFD packet to send [08:56:28]OFD Sender: No OFD packet to send [08:56:33]OFD Sender: No OFD packet to send [08:56:38]OFD Sender: No OFD packet to send [08:56:43]OFD Sender: No OFD packet to send [08:56:48]OFD Sender: No OFD packet to send [08:56:53]OFD Sender: No OFD packet to send [08:56:58]OFD Sender: No OFD packet to send [08:57:03]OFD Sender: No OFD packet to send [08:57:08]OFD Sender: No OFD packet to send [08:57:13]OFD Sender: No OFD packet to send [08:57:18]OFD Sender: No OFD packet to send [08:57:23]OFD Sender: No OFD packet to send [08:57:28]OFD Sender: No OFD packet to send [08:57:33]OFD Sender: No OFD packet to send [08:57:38]OFD Sender: No OFD packet to send [08:57:43]OFD Sender: No OFD packet to send [08:57:48]OFD Sender: No OFD packet to send [08:57:53]OFD Sender: No OFD packet to send [08:57:58]OFD Sender: No OFD packet to send [08:58:03]OFD Sender: No OFD packet to send [08:58:08]OFD Sender: No OFD packet to send [08:58:13]OFD Sender: No OFD packet to send [08:58:18]OFD Sender: No OFD packet to send [08:58:23]OFD Sender: No OFD packet to send [08:58:28]OFD Sender: No OFD packet to send [08:58:33]OFD Sender: No OFD packet to send [08:58:38]OFD Sender: No OFD packet to send [08:58:43]OFD Sender: No OFD packet to send [08:58:48]OFD Sender: No OFD packet to send [08:58:53]OFD Sender: No OFD packet to send [08:58:58]OFD Sender: No OFD packet to send [08:59:03]OFD Sender: No OFD packet to send [08:59:08]OFD Sender: No OFD packet to send [08:59:13]OFD Sender: No OFD packet to send [08:59:18]OFD Sender: No OFD packet to send [08:59:23]OFD Sender: No OFD packet to send [08:59:28]OFD Sender: No OFD packet to send [08:59:33]OFD Sender: No OFD packet to send [08:59:36]accept exits with 9 [08:59:36]New connection [08:59:36]New thread 3067227492 created [08:59:36]Thread 3067084132 joined [08:59:36]Waiting for new connection... [08:59:36] Sock 9.Parse request [08:59:36]Sock 9.Check first char [08:59:36]Sock 9.First char is OK [08:59:36]request: POST /json_proto HTTP/1.0 [08:59:36]Method: POST [08:59:36]URL: /json_proto [08:59:36]Method is POST - this is cgi request [08:59:36]url: /json_proto [08:59:36]query_string will be loaded in cgi processing [08:59:36]execute_cgi json_proto POST (null) [08:59:36]execute_cgi path=json_proto method=POST [08:59:36]POST find Content-Length [08:59:36]Host: 172.17.38.133:8080 [08:59:36]Content-Length: 819 [08:59:36]Content-Type: application/json [08:59:36] [08:59:36]POST finish read [08:59:36]Found Content-Length = 819 [08:59:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672822", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 20.000, "sum" : 1328.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" : 1328.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:59:36]execute_script... [08:59:36]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672822", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 20.000, "sum" : 1328.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" : 1328.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:59:36]POST & json_proto [08:59:36]process_json_proto [08:59:36]json parsed OK: [08:59:36]protocol is kg_v1.0 [08:59:36]action value=close_receipt [08:59:36]process_action close_receipt [08:59:36]cmd_close_receipt [08:59:36]MH_GetDate [08:59:36]Write to MH i2c: F0 00 00 D7 92 58 [08:59:36]Write i2c OK [08:59:36]MH_I2C_Read... [08:59:36]Read from MH i2c: F0 [08:59:36]MH_I2C_Read... [08:59:36]Read from MH i2c: F0 09 00 [08:59:36]MH_I2C_Read... [08:59:36]Read from MH i2c: F0 09 00 D7 92 00 04 9E 72 66 BD 8F 7C 64 07 [08:59:36]GetLastDocTimeStamp 1718787301 [08:59:36]current date 1718787588 [08:59:36]FM_GetShiftState [08:59:36]SAM_PROTO_GetShiftState [08:59:36]wFMCommunicate request_size=4 [08:59:36]MH_SAM_APDU [08:59:36]CAPDU: 80 13 01 00 [08:59:36]Write to MH i2c: E2 08 00 D8 92 80 13 01 00 00 00 00 00 E7 [08:59:36]Write i2c OK [08:59:36]MH_I2C_Read... [08:59:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:59:36]Read from MH i2c: E2 [08:59:36]MH_I2C_Read... [08:59:36]Read from MH i2c: E2 0E 00 [08:59:36]MH_I2C_Read... [08:59:36]Read from MH i2c: E2 0E 00 D8 92 00 09 00 01 04 26 72 66 00 00 00 00 90 00 F5 [08:59:36]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [08:59:36]wFMCommunicate OK [08:59:36]SAM_PROTO_GetShiftState done [08:59:36]FM_GetShiftState done [08:59:36]opened in 1718756868 [08:59:36]opened+sec_in_day 1718843268 [08:59:36]quantity*price = 132800 [08:59:36]sum+1 = 132801 [08:59:36]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1328.00 НСП 1% : 11.75 НДС 12% : 141.03 Наличными: 0.00 Безнал.: 1328.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 31 19.06.2024 08:59 Смена: 353 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000875093 ФД: 103601 ФПД: 194003072487559 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T085948&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103601&fm=194003072487559&tin=02508201610067®Number=0000000000092785&sum=132800 [08:59:37]StoreToDocumentArchive [08:59:37]shift 353 fd 103601 [08:59:37]save to /storage/0353/doc_00103601 [08:59:37]save last doc name /storage/0353/doc_00103601 to /storage/kkm_last_doc_name [08:59:37]save OK [08:59:37]Clear old archive folders... [08:59:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:59:37]tlvbuf is 01390C40 [08:59:37]SAM_PROTO_ClearQueue [08:59:37]wFMCommunicate request_size=4 [08:59:37]MH_SAM_APDU [08:59:37]CAPDU: 80 09 00 00 [08:59:37]Write to MH i2c: E2 08 00 E5 92 80 09 00 00 00 00 00 00 E9 [08:59:37]Write i2c OK [08:59:37]MH_I2C_Read... [08:59:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:59:37]Read from MH i2c: E2 [08:59:37]MH_I2C_Read... [08:59:37]Read from MH i2c: E2 03 00 [08:59:37]MH_I2C_Read... [08:59:37]Read from MH i2c: E2 03 00 E5 92 00 90 00 EB [08:59:37]RAPDU: 90 00 [08:59:37]wFMCommunicate OK [08:59:37]SAM_PROTO_ClearQueue done [08:59:37]KKMCreateOFDPacket [08:59:37]OFDProtocolAddRootSTLVToBuf [08:59:37]FM_MakeSignedData [08:59:37]FM_MakeSignedData [08:59:37]SAM_PROTO_SignData [08:59:37]wFMCommunicate request_size=4 [08:59:37]MH_SAM_APDU [08:59:37]CAPDU: 80 0D 01 02 [08:59:37]Write to MH i2c: E2 08 00 E6 92 80 0D 01 02 00 00 00 00 F1 [08:59:37]Write i2c OK [08:59:37]MH_I2C_Read... [08:59:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:59:37]Read from MH i2c: E2 [08:59:37]MH_I2C_Read... [08:59:37]Read from MH i2c: E2 03 00 [08:59:37]MH_I2C_Read... [08:59:37]Read from MH i2c: E2 03 00 E6 92 00 90 00 EC [08:59:37]RAPDU: 90 00 [08:59:37]wFMCommunicate OK [08:59:37]wFMCommunicate request_size=255 [08:59:37]MH_SAM_APDU [08:59:37]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 C0 06 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 06 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 97 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 17 37 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C0 06 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 04 9E 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 B1 94 01 00 35 04 06 00 B0 [08:59:37]Write to MH i2c: E2 02 01 E7 92 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 F0 19 00 00 00 00 13 04 06 00 C0 06 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 06 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 97 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 17 37 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C0 06 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 04 9E 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 B1 94 01 00 35 04 06 00 B0 00 00 AA [08:59:37]Write i2c OK [08:59:37]MH_I2C_Read... [08:59:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:59:38]Read from MH i2c: E2 [08:59:38]MH_I2C_Read... [08:59:38]Read from MH i2c: E2 03 00 [08:59:38]MH_I2C_Read... [08:59:38]Read from MH i2c: E2 03 00 E7 92 00 90 00 ED [08:59:38]RAPDU: 90 00 [08:59:38]wFMCommunicate OK [08:59:38]wFMCommunicate request_size=10 [08:59:38]MH_SAM_APDU [08:59:38]CAPDU: 80 0D 02 02 05 71 DC 38 90 87 [08:59:38]Write to MH i2c: E2 0D 00 E8 92 80 0D 02 02 05 00 71 DC 38 90 87 00 00 9A [08:59:38]Write i2c OK [08:59:38]MH_I2C_Read... [08:59:38]Read from MH i2c: E2 [08:59:38]MH_I2C_Read... [08:59:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:59:38]Read from MH i2c: E2 03 00 [08:59:38]MH_I2C_Read... [08:59:38]Read from MH i2c: E2 03 00 E8 92 00 90 00 EE [08:59:38]RAPDU: 90 00 [08:59:38]wFMCommunicate OK [08:59:38]wFMCommunicate request_size=4 [08:59:38]MH_SAM_APDU [08:59:38]CAPDU: 80 0D 03 02 [08:59:38]Write to MH i2c: E2 08 00 E9 92 80 0D 03 02 00 00 00 00 F6 [08:59:38]Write i2c OK [08:59:38]MH_I2C_Read... [08:59:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:59:38]Read from MH i2c: E2 [08:59:38]MH_I2C_Read... [08:59:38]Read from MH i2c: E2 0B 00 [08:59:38]MH_I2C_Read... [08:59:38]Read from MH i2c: E2 0B 00 E9 92 00 D3 F4 56 CF BE BA 87 EB 90 00 CD [08:59:38]RAPDU: D3 F4 56 CF BE BA 87 EB 90 00 [08:59:38]wFMCommunicate OK [08:59:38]SAM_PROTO_SignData done [08:59:38]FM_MakeSignedData done [08:59:38]CreateOFDProtocolMessage [08:59:38]wFMCommunicate request_size=4 [08:59:38]MH_SAM_APDU [08:59:38]CAPDU: 80 11 00 00 [08:59:38]Write to MH i2c: E2 08 00 EA 92 80 11 00 00 00 00 00 00 F6 [08:59:38]Write i2c OK [08:59:38]MH_I2C_Read... [08:59:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:59:38]Read from MH i2c: E2 [08:59:38]MH_I2C_Read... [08:59:38]Read from MH i2c: E2 17 00 [08:59:38]MH_I2C_Read... [08:59:38]Read from MH i2c: E2 17 00 EA 92 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 49 [08:59:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [08:59:38]wFMCommunicate OK [08:59:38]CreateOFDProtocolMessage done [08:59:38]OFDSenderStorePacket 103601 [08:59:38]StoreOFDPacket docnum=103601 [08:59:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 EC 98 07 01 9F E1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 F0 19 00 00 00 00 13 04 06 00 C0 06 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 06 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 97 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 17 37 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C0 06 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 04 9E 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 B1 94 01 00 35 04 06 00 B0 71 DC 38 90 87 D3 F4 56 CF BE BA 87 EB [08:59:38]CheckFolder [08:59:38]dirname=/storage/ofd_packets [08:59:38]CheckFolder done [08:59:38]ProducePacketName [08:59:38]name=ofd_packets/00103601 [08:59:38]NVStorageSaveData ofd_packets/00103601 [08:59:38]File name is /storage/ofd_packets/00103601 [08:59:38]Write 301 bytes [08:59:38]NVStorageSaveData done [08:59:38]OFDSenderStorePacket done [08:59:38]KKMCreateOFDPacket done [08:59:38]NVStorageSaveData kkm_last_timestamp [08:59:38]File name is /storage/kkm_last_timestamp [08:59:38]Write 4 bytes [08:59:38]NVStorageSaveData done [08:59:38]ExternCall_PrintAddStr [08:59:38]wPrintStart [08:59:38]Write to MH i2c: 01 00 00 EB 92 7D [08:59:38]Write i2c OK [08:59:38]MH_I2C_Read... [08:59:38]Read from MH i2c: 01 [08:59:38]MH_I2C_Read... [08:59:38]Read from MH i2c: 01 07 00 [08:59:38]MH_I2C_Read... [08:59:38]Read from MH i2c: 01 07 00 EB 92 00 00 00 00 00 FF 0F 92 [08:59:38]RasterBufferAndPrint [08:59:38]line Счет N : (1)672822 [08:59:38]line ИНН: 02508201610067 [08:59:38]line Контрольно-Кассовый Чек [08:59:38]line ПРОДАЖА [08:59:38]line ТРК (МРК, ГНК) : 32 [08:59:38]line Товар: 2710124130 [08:59:38]line Аи-92-К-5 [08:59:38]line 20.000 * 66.40 [08:59:38]line = 1328.00 [08:59:38]line НДС 12% НСП 1% [08:59:38]line > о реализуемом товаре [08:59:38]line ИТОГО: 1328.00 [08:59:38]line НСП 1% : 11.75 [08:59:38]line НДС 12% : 141.03 [08:59:38]line Наличными: 0.00 [08:59:38]line Безнал.: 1328.00 [08:59:38]line Место: АЗС № 120 "Партнер Нефть" [08:59:38]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [08:59:38]line СНО: Общий режим [08:59:38]line Чек 31 19.06.2024 08:59 [08:59:38]line Смена: 353 ФФД: 1.0 [08:59:38]line ЗНМ: 0300000164 [08:59:38]line РНМ: 0000000000092785 [08:59:38]line Версия ККМ: 001 [08:59:38]line Платежная система: Бакай Банк [08:59:38]line ФМ: 0000000000875093 [08:59:38]line ФД: 103601 [08:59:38]line ФПД: 194003072487559 [08:59:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T085948&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103601&fm=194003072487559&tin=02508201610067®Number=0000000000092785&sum=132800 [08:59:38]written 0, free lines is 4095 [08:59:38]OFD Sender: Processing packet 103601 [packets to send 17, broken 16] [08:59:38]ProducePacketName [08:59:38]name=ofd_packets/00103601 [08:59:38]OFD Sender: To server: pG, [08:59:38]CommunicateWithHost lk.salyk.kg:30040 [08:59:38]ConnectInit lk.salyk.kg [08:59:38]Connected sock=10 [08:59:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 EC 98 07 01 9F E1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 F0 19 00 00 00 00 13 04 06 00 C0 06 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 06 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 97 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 17 37 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C0 06 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 04 9E 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 B1 94 01 00 35 04 06 00 B0 71 DC 38 90 87 D3 F4 56 CF BE BA 87 EB [08:59: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 39 33 4F 00 00 00 D3 D0 47 00 05 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 39 33 10 04 04 00 B1 94 01 00 F4 03 04 00 8D 44 72 66 B6 04 01 00 00 21 51 18 A0 28 78 31 42 [08:59:38]CommunicateWithHost err = 0 [08:59:38]CheckOFDResponse [08:59:38]1017 (14) - 77093643461234 [08:59:38]1041 (16) - 0000000000875093 [08:59:38]1040 (4) - 103601 [08:59:38]1012 (4) - 19.06.2024 02:38 [08:59:38]1206 (1) - 0 [08:59:38]OFD Sender: Remove packet 103601 [08:59:38]ProducePacketName [08:59:38]name=ofd_packets/00103601 [08:59:38]NVStorageDeleteData [08:59:38]Write to MH i2c: 01 00 00 15 93 A8 [08:59:38]Write i2c OK [08:59:38]MH_I2C_Read... [08:59:38]Read from MH i2c: 01 [08:59:38]MH_I2C_Read... [08:59:38]Read from MH i2c: 01 07 00 [08:59:38]MH_I2C_Read... [08:59:38]Read from MH i2c: 01 07 00 15 93 00 00 00 00 00 00 0D BC [08:59:38]RasterBufferAndPrint [08:59:38]line [08:59:38]line [08:59:38]line [08:59:38]line [08:59:38]line [08:59:38]written 0, free lines is 3333 [08:59:38]MH_Cut [08:59:38]Write to MH i2c: D1 01 00 1C 93 01 81 [08:59:38]Write i2c OK [08:59:38]MH_I2C_Read... [08:59:38]Read from MH i2c: D1 [08:59:38]MH_I2C_Read... [08:59:38]Read from MH i2c: D1 01 00 [08:59:38]MH_I2C_Read... [08:59:38]Read from MH i2c: D1 01 00 1C 93 00 80 [08:59:38]Write to MH i2c: 01 00 00 1D 93 B0 [08:59:38]Write i2c OK [08:59:38]MH_I2C_Read... [08:59:39]OFD Sender: No OFD packet to send [08:59:39]*** Cut start [08:59:39]*** Partial cut [08:59:39]*** CUTSNS_PIN = 1 [08:59:39]*** CUTSNS_PIN = 0 [08:59:39]*** Brake cut motor [08:59:40]Read from MH i2c: 01 [08:59:40]MH_I2C_Read... [08:59:40]*** Stop cut motor [08:59:40]*** Cut end [08:59:40]Read from MH i2c: 01 07 00 [08:59:40]MH_I2C_Read... [08:59:40]Read from MH i2c: 01 07 00 1D 93 00 00 00 00 00 FF 0F C5 [08:59:40]process_action close_receipt done [08:59:40]requested_data is exist [08:59:40]produce_requested_data [08:59:40]requested_item fm.sn is exist - process it [08:59:40]wFMCommunicate request_size=4 [08:59:40]MH_SAM_APDU [08:59:40]CAPDU: 80 11 00 00 [08:59:40]Write to MH i2c: E2 08 00 1E 93 80 11 00 00 00 00 00 00 2B [08:59:40]Write i2c OK [08:59:40]MH_I2C_Read... [08:59:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:59:40]Read from MH i2c: E2 [08:59:40]MH_I2C_Read... [08:59:40]Read from MH i2c: E2 17 00 [08:59:40]MH_I2C_Read... [08:59:40]Read from MH i2c: E2 17 00 1E 93 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 7E [08:59:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [08:59:40]wFMCommunicate OK [08:59:40]requested_item fd.num is exist - process it [08:59:40]SAM_PROTO_GetFieldsCounters [08:59:40]wFMCommunicate request_size=4 [08:59:40]MH_SAM_APDU [08:59:40]CAPDU: 80 13 00 00 [08:59:40]Write to MH i2c: E2 08 00 1F 93 80 13 00 00 00 00 00 00 2E [08:59:40]Write i2c OK [08:59:40]MH_I2C_Read... [08:59:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:59:40]Read from MH i2c: E2 [08:59:40]MH_I2C_Read... [08:59:40]Read from MH i2c: E2 62 00 [08:59:40]MH_I2C_Read... [08:59:40]Read from MH i2c: E2 62 00 1F 93 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 B1 94 01 00 0E 04 04 00 61 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 5A [08:59:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 B1 94 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 1F 00 00 00 5E 04 04 00 1F 00 00 00 57 04 04 00 20 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:59:40]wFMCommunicate OK [08:59:40]SAM_PROTO_GetFieldsCounters done [08:59:40]requested_item shift.num is exist - process it [08:59:40]requested_item shift.opened is exist - process it [08:59:40]req_shift_opened [08:59:40]FM_GetShiftState [08:59:40]SAM_PROTO_GetShiftState [08:59:40]wFMCommunicate request_size=4 [08:59:40]MH_SAM_APDU [08:59:40]CAPDU: 80 13 01 00 [08:59:40]Write to MH i2c: E2 08 00 20 93 80 13 01 00 00 00 00 00 30 [08:59:40]Write i2c OK [08:59:40]MH_I2C_Read... [08:59:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:59:40]Read from MH i2c: E2 [08:59:40]MH_I2C_Read... [08:59:40]Read from MH i2c: E2 0E 00 [08:59:40]MH_I2C_Read... [08:59:40]Read from MH i2c: E2 0E 00 20 93 00 09 00 01 04 26 72 66 00 00 00 00 90 00 3E [08:59:40]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [08:59:40]wFMCommunicate OK [08:59:40]SAM_PROTO_GetShiftState done [08:59:40]FM_GetShiftState done [08:59:40]req_shift_opened done [08:59:40]requested_item shift.open_date is exist - process it [08:59:40]req_shift_open_date [08:59:40]req_shift_open_date done [08:59:40]produce_requested_data done [08:59:40]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103601,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [08:59:40]process_action_free close_receipt [08:59:40]json_value_free [08:59:40]json_value_free done [08:59:40]process_json_proto returns [08:59:40]Send response to host [08:59:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103601,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [08:59:40]free response buf [08:59:40]execute_script done [08:59:40]execute_script returns [08:59:40]free content buf [08:59:40]Sock 9.Close socket [08:59:40]Sock 9.Thread stoped [08:59:44]OFD Sender: No OFD packet to send [08:59:49]OFD Sender: No OFD packet to send [08:59:54]OFD Sender: No OFD packet to send [08:59:59]OFD Sender: No OFD packet to send [09:00:04]OFD Sender: No OFD packet to send [09:00:09]OFD Sender: No OFD packet to send [09:00:14]OFD Sender: No OFD packet to send [09:00:19]OFD Sender: No OFD packet to send [09:00:24]OFD Sender: No OFD packet to send [09:00:29]OFD Sender: No OFD packet to send [09:00:34]OFD Sender: No OFD packet to send [09:00:39]OFD Sender: No OFD packet to send [09:00:44]OFD Sender: No OFD packet to send [09:00:49]OFD Sender: No OFD packet to send [09:00:54]OFD Sender: No OFD packet to send [09:00:59]OFD Sender: No OFD packet to send [09:01:04]OFD Sender: No OFD packet to send [09:01:09]OFD Sender: No OFD packet to send [09:01:14]OFD Sender: No OFD packet to send [09:01:19]OFD Sender: No OFD packet to send [09:01:24]OFD Sender: No OFD packet to send [09:01:29]OFD Sender: No OFD packet to send [09:01:34]OFD Sender: No OFD packet to send [09:01:39]OFD Sender: No OFD packet to send [09:01:44]OFD Sender: No OFD packet to send [09:01:49]OFD Sender: No OFD packet to send [09:01:54]OFD Sender: No OFD packet to send [09:01:59]OFD Sender: No OFD packet to send [09:02:04]OFD Sender: No OFD packet to send [09:02:09]OFD Sender: No OFD packet to send [09:02:14]OFD Sender: No OFD packet to send [09:02:19]OFD Sender: No OFD packet to send [09:02:24]OFD Sender: No OFD packet to send [09:02:29]OFD Sender: No OFD packet to send [09:02:34]OFD Sender: No OFD packet to send [09:02:39]OFD Sender: No OFD packet to send [09:02:44]OFD Sender: No OFD packet to send [09:02:49]OFD Sender: No OFD packet to send [09:02:54]OFD Sender: No OFD packet to send [09:02:59]OFD Sender: No OFD packet to send [09:03:04]OFD Sender: No OFD packet to send [09:03:09]OFD Sender: No OFD packet to send [09:03:14]OFD Sender: No OFD packet to send [09:03:19]OFD Sender: No OFD packet to send [09:03:24]OFD Sender: No OFD packet to send [09:03:29]OFD Sender: No OFD packet to send [09:03:34]OFD Sender: No OFD packet to send [09:03:39]OFD Sender: No OFD packet to send [09:03:44]OFD Sender: No OFD packet to send [09:03:49]OFD Sender: No OFD packet to send [09:03:54]OFD Sender: No OFD packet to send [09:03:59]OFD Sender: No OFD packet to send [09:04:04]OFD Sender: No OFD packet to send [09:04:09]OFD Sender: No OFD packet to send [09:04:14]OFD Sender: No OFD packet to send [09:04:19]OFD Sender: No OFD packet to send [09:04:24]OFD Sender: No OFD packet to send [09:04:29]OFD Sender: No OFD packet to send [09:04:34]OFD Sender: No OFD packet to send [09:04:39]OFD Sender: No OFD packet to send [09:04:44]OFD Sender: No OFD packet to send [09:04:49]OFD Sender: No OFD packet to send [09:04:54]OFD Sender: No OFD packet to send [09:04:59]OFD Sender: No OFD packet to send [09:05:04]OFD Sender: No OFD packet to send [09:05:09]OFD Sender: No OFD packet to send [09:05:14]OFD Sender: No OFD packet to send [09:05:19]OFD Sender: No OFD packet to send [09:05:24]OFD Sender: No OFD packet to send [09:05:29]OFD Sender: No OFD packet to send [09:05:34]OFD Sender: No OFD packet to send [09:05:39]OFD Sender: No OFD packet to send [09:05:44]OFD Sender: No OFD packet to send [09:05:49]OFD Sender: No OFD packet to send [09:05:54]OFD Sender: No OFD packet to send [09:05:59]OFD Sender: No OFD packet to send [09:06:04]OFD Sender: No OFD packet to send [09:06:09]OFD Sender: No OFD packet to send [09:06:14]OFD Sender: No OFD packet to send [09:06:19]OFD Sender: No OFD packet to send [09:06:24]OFD Sender: No OFD packet to send [09:06:29]OFD Sender: No OFD packet to send [09:06:34]OFD Sender: No OFD packet to send [09:06:39]OFD Sender: No OFD packet to send [09:06:44]OFD Sender: No OFD packet to send [09:06:49]OFD Sender: No OFD packet to send [09:06:54]OFD Sender: No OFD packet to send [09:06:59]OFD Sender: No OFD packet to send [09:07:04]OFD Sender: No OFD packet to send [09:07:09]OFD Sender: No OFD packet to send [09:07:14]OFD Sender: No OFD packet to send [09:07:19]OFD Sender: No OFD packet to send [09:07:24]OFD Sender: No OFD packet to send [09:07:29]OFD Sender: No OFD packet to send [09:07:34]OFD Sender: No OFD packet to send [09:07:39]OFD Sender: No OFD packet to send [09:07:44]OFD Sender: No OFD packet to send [09:07:49]OFD Sender: No OFD packet to send [09:07:54]OFD Sender: No OFD packet to send [09:07:59]OFD Sender: No OFD packet to send [09:08:04]OFD Sender: No OFD packet to send [09:08:09]OFD Sender: No OFD packet to send [09:08:14]OFD Sender: No OFD packet to send [09:08:19]OFD Sender: No OFD packet to send [09:08:24]OFD Sender: No OFD packet to send [09:08:29]OFD Sender: No OFD packet to send [09:08:34]accept exits with 7 [09:08:34]New connection [09:08:34]New thread 3067084132 created [09:08:34]Thread 3067227492 joined [09:08:34]Waiting for new connection... [09:08:34] Sock 7.Parse request [09:08:34]Sock 7.Check first char [09:08:34]Sock 7.First char is OK [09:08:34]request: POST /json_proto HTTP/1.0 [09:08:34]Method: POST [09:08:34]URL: /json_proto [09:08:34]Method is POST - this is cgi request [09:08:34]url: /json_proto [09:08:34]query_string will be loaded in cgi processing [09:08:34]execute_cgi json_proto POST (null) [09:08:34]execute_cgi path=json_proto method=POST [09:08:34]POST find Content-Length [09:08:34]Host: 172.17.38.133:8080 [09:08:34]Content-Length: 682 [09:08:34]Content-Type: application/json [09:08:34] [09:08:34]POST finish read [09:08:34]Found Content-Length = 682 [09:08:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672823", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:08:34]execute_script... [09:08:34]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672823", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:08:34]POST & json_proto [09:08:34]process_json_proto [09:08:34]json parsed OK: [09:08:34]protocol is kg_v1.0 [09:08:34]action value=close_receipt [09:08:34]process_action close_receipt [09:08:34]cmd_close_receipt [09:08:34]MH_GetDate [09:08:34]Write to MH i2c: F0 00 00 21 93 A3 [09:08:34]Write i2c OK [09:08:34]MH_I2C_Read... [09:08:34]Read from MH i2c: F0 [09:08:34]MH_I2C_Read... [09:08:34]Read from MH i2c: F0 09 00 [09:08:34]MH_I2C_Read... [09:08:34]Read from MH i2c: F0 09 00 21 93 00 1D A0 72 66 BD 8F 7C 64 6D [09:08:34]GetLastDocTimeStamp 1718787588 [09:08:34]current date 1718788125 [09:08:34]FM_GetShiftState [09:08:34]SAM_PROTO_GetShiftState [09:08:34]wFMCommunicate request_size=4 [09:08:34]MH_SAM_APDU [09:08:34]CAPDU: 80 13 01 00 [09:08:34]Write to MH i2c: E2 08 00 22 93 80 13 01 00 00 00 00 00 32 [09:08:34]Write i2c OK [09:08:34]MH_I2C_Read... [09:08:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:08:34]Read from MH i2c: E2 [09:08:34]MH_I2C_Read... [09:08:34]Read from MH i2c: E2 0E 00 [09:08:34]MH_I2C_Read... [09:08:34]Read from MH i2c: E2 0E 00 22 93 00 09 00 01 04 26 72 66 00 00 00 00 90 00 40 [09:08:34]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [09:08:34]wFMCommunicate OK [09:08:34]SAM_PROTO_GetShiftState done [09:08:34]FM_GetShiftState done [09:08:34]opened in 1718756868 [09:08:34]opened+sec_in_day 1718843268 [09:08:34]quantity*price = 100064 [09:08:34]sum+1 = 100066 [09:08:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.65 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 32 19.06.2024 09:08 Смена: 353 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103602 ФПД: 47825199421176 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T090845&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103602&fm=47825199421176&tin=02508201610067®Number=0000000000092785&sum=100000 [09:08:35]StoreToDocumentArchive [09:08:35]shift 353 fd 103602 [09:08:35]save to /storage/0353/doc_00103602 [09:08:35]save last doc name /storage/0353/doc_00103602 to /storage/kkm_last_doc_name [09:08:35]save OK [09:08:35]Clear old archive folders... [09:08:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:08:35]tlvbuf is 01445E50 [09:08:35]SAM_PROTO_ClearQueue [09:08:35]wFMCommunicate request_size=4 [09:08:35]MH_SAM_APDU [09:08:35]CAPDU: 80 09 00 00 [09:08:35]Write to MH i2c: E2 08 00 2F 93 80 09 00 00 00 00 00 00 34 [09:08:35]Write i2c OK [09:08:35]MH_I2C_Read... [09:08:35]Read from MH i2c: E2 [09:08:35]MH_I2C_Read... [09:08:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:08:35]Read from MH i2c: E2 03 00 [09:08:35]MH_I2C_Read... [09:08:35]Read from MH i2c: E2 03 00 2F 93 00 90 00 36 [09:08:35]RAPDU: 90 00 [09:08:35]wFMCommunicate OK [09:08:35]SAM_PROTO_ClearQueue done [09:08:35]KKMCreateOFDPacket [09:08:35]OFDProtocolAddRootSTLVToBuf [09:08:35]FM_MakeSignedData [09:08:35]FM_MakeSignedData [09:08:35]SAM_PROTO_SignData [09:08:35]wFMCommunicate request_size=4 [09:08:35]MH_SAM_APDU [09:08:35]CAPDU: 80 0D 01 02 [09:08:35]Write to MH i2c: E2 08 00 30 93 80 0D 01 02 00 00 00 00 3C [09:08:35]Write i2c OK [09:08:35]MH_I2C_Read... [09:08:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:08:35]Read from MH i2c: E2 [09:08:35]MH_I2C_Read... [09:08:35]Read from MH i2c: E2 03 00 [09:08:35]MH_I2C_Read... [09:08:35]Read from MH i2c: E2 03 00 30 93 00 90 00 37 [09:08:35]RAPDU: 90 00 [09:08:35]wFMCommunicate OK [09:08:35]wFMCommunicate request_size=255 [09:08:35]MH_SAM_APDU [09:08:35]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 1D A0 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 B2 94 01 00 35 04 06 00 2B [09:08:35]Write to MH i2c: E2 02 01 31 93 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 1D A0 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 B2 94 01 00 35 04 06 00 2B 00 00 CF [09:08:35]Write i2c OK [09:08:35]MH_I2C_Read... [09:08:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:08:35]Read from MH i2c: E2 [09:08:35]MH_I2C_Read... [09:08:35]Read from MH i2c: E2 03 00 [09:08:35]MH_I2C_Read... [09:08:35]Read from MH i2c: E2 03 00 31 93 00 90 00 38 [09:08:35]RAPDU: 90 00 [09:08:35]wFMCommunicate OK [09:08:35]wFMCommunicate request_size=10 [09:08:35]MH_SAM_APDU [09:08:35]CAPDU: 80 0D 02 02 05 7F 2C 05 D6 F8 [09:08:35]Write to MH i2c: E2 0D 00 32 93 80 0D 02 02 05 00 7F 2C 05 D6 F8 00 00 C7 [09:08:35]Write i2c OK [09:08:35]MH_I2C_Read... [09:08:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:08:35]Read from MH i2c: E2 [09:08:35]MH_I2C_Read... [09:08:35]Read from MH i2c: E2 03 00 [09:08:35]MH_I2C_Read... [09:08:35]Read from MH i2c: E2 03 00 32 93 00 90 00 39 [09:08:35]RAPDU: 90 00 [09:08:35]wFMCommunicate OK [09:08:35]wFMCommunicate request_size=4 [09:08:35]MH_SAM_APDU [09:08:35]CAPDU: 80 0D 03 02 [09:08:35]Write to MH i2c: E2 08 00 33 93 80 0D 03 02 00 00 00 00 41 [09:08:35]Write i2c OK [09:08:35]MH_I2C_Read... [09:08:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:08:35]Read from MH i2c: E2 [09:08:35]MH_I2C_Read... [09:08:35]Read from MH i2c: E2 0B 00 [09:08:35]MH_I2C_Read... [09:08:35]Read from MH i2c: E2 0B 00 33 93 00 42 93 66 58 4A BC 7C 14 90 00 6B [09:08:36]RAPDU: 42 93 66 58 4A BC 7C 14 90 00 [09:08:36]wFMCommunicate OK [09:08:36]SAM_PROTO_SignData done [09:08:36]FM_MakeSignedData done [09:08:36]CreateOFDProtocolMessage [09:08:36]wFMCommunicate request_size=4 [09:08:36]MH_SAM_APDU [09:08:36]CAPDU: 80 11 00 00 [09:08:36]Write to MH i2c: E2 08 00 34 93 80 11 00 00 00 00 00 00 41 [09:08:36]Write i2c OK [09:08:36]MH_I2C_Read... [09:08:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:08:36]Read from MH i2c: E2 [09:08:36]MH_I2C_Read... [09:08:36]Read from MH i2c: E2 17 00 [09:08:36]MH_I2C_Read... [09:08:36]Read from MH i2c: E2 17 00 34 93 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 94 [09:08:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [09:08:36]wFMCommunicate OK [09:08:36]CreateOFDProtocolMessage done [09:08:36]OFDSenderStorePacket 103602 [09:08:36]StoreOFDPacket docnum=103602 [09:08:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 D5 E5 07 01 61 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 1D A0 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 B2 94 01 00 35 04 06 00 2B 7F 2C 05 D6 F8 42 93 66 58 4A BC 7C 14 [09:08:36]CheckFolder [09:08:36]dirname=/storage/ofd_packets [09:08:36]CheckFolder done [09:08:36]ProducePacketName [09:08:36]name=ofd_packets/00103602 [09:08:36]NVStorageSaveData ofd_packets/00103602 [09:08:36]File name is /storage/ofd_packets/00103602 [09:08:36]Write 301 bytes [09:08:36]NVStorageSaveData done [09:08:36]OFDSenderStorePacket done [09:08:36]KKMCreateOFDPacket done [09:08:36]NVStorageSaveData kkm_last_timestamp [09:08:36]File name is /storage/kkm_last_timestamp [09:08:36]Write 4 bytes [09:08:36]NVStorageSaveData done [09:08:36]ExternCall_PrintAddStr [09:08:36]wPrintStart [09:08:36]Write to MH i2c: 01 00 00 35 93 C8 [09:08:36]Write i2c OK [09:08:36]MH_I2C_Read... [09:08:36]Read from MH i2c: 01 [09:08:36]MH_I2C_Read... [09:08:36]Read from MH i2c: 01 07 00 [09:08:36]MH_I2C_Read... [09:08:36]Read from MH i2c: 01 07 00 35 93 00 00 00 00 00 FF 0F DD [09:08:36]RasterBufferAndPrint [09:08:36]line Счет N : (1)672823 [09:08:36]line ИНН: 02508201610067 [09:08:36]line Контрольно-Кассовый Чек [09:08:36]line ПРОДАЖА [09:08:36]line ТРК (МРК, ГНК) : 42 [09:08:36]line Товар: 2710124130 [09:08:36]line Аи-92-К-5 [09:08:36]line 15.070 * 66.40 [09:08:36]line = 1000.65 [09:08:36]line НДС 12% НСП 1% [09:08:36]line > о реализуемом товаре [09:08:36]line ОКРУГЛЕНИЕ: -0.65 [09:08:36]line ИТОГО: 1000.00 [09:08:36]line Внесено: 1000.00 [09:08:36]line СДАЧА: 0.00 [09:08:36]line НСП 1% : 8.85 [09:08:36]line НДС 12% : 106.26 [09:08:36]line Наличными: 1000.00 [09:08:36]line Безнал.: 0.00 [09:08:36]line Место: АЗС № 120 "Партнер Нефть" [09:08:36]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [09:08:36]line СНО: Общий режим [09:08:36]line Чек 32 19.06.2024 09:08 [09:08:36]line Смена: 353 ФФД: 1.0 [09:08:36]line ЗНМ: 0300000164 [09:08:36]line РНМ: 0000000000092785 [09:08:36]line Версия ККМ: 001 [09:08:36]line ФМ: 0000000000875093 [09:08:36]line ФД: 103602 [09:08:36]line ФПД: 47825199421176 [09:08:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T090845&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103602&fm=47825199421176&tin=02508201610067®Number=0000000000092785&sum=100000 [09:08:36]OFD Sender: Processing packet 103602 [packets to send 17, broken 16] [09:08:36]ProducePacketName [09:08:36]name=ofd_packets/00103602 [09:08:36]OFD Sender: To server: pG, [09:08:36]CommunicateWithHost lk.salyk.kg:30040 [09:08:36]ConnectInit lk.salyk.kg [09:08:36]written 0, free lines is 4095 [09:08:36]Connected sock=10 [09:08:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 D5 E5 07 01 61 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 1D A0 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 B2 94 01 00 35 04 06 00 2B 7F 2C 05 D6 F8 42 93 66 58 4A BC 7C 14 [09:08:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 21 56 47 00 4A 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 39 33 10 04 04 00 B2 94 01 00 F4 03 04 00 A7 46 72 66 B6 04 01 00 00 42 BD 3F C4 2F BD B8 9F [09:08:36]CommunicateWithHost err = 0 [09:08:36]CheckOFDResponse [09:08:36]1017 (14) - 77093643461234 [09:08:36]1041 (16) - 0000000000875093 [09:08:36]1040 (4) - 103602 [09:08:36]1012 (4) - 19.06.2024 02:47 [09:08:36]1206 (1) - 0 [09:08:36]OFD Sender: Remove packet 103602 [09:08:36]ProducePacketName [09:08:36]name=ofd_packets/00103602 [09:08:36]NVStorageDeleteData [09:08:36]Write to MH i2c: 01 00 00 60 93 F3 [09:08:36]Write i2c OK [09:08:36]MH_I2C_Read... [09:08:36]Read from MH i2c: 01 [09:08:36]MH_I2C_Read... [09:08:36]Read from MH i2c: 01 07 00 [09:08:36]MH_I2C_Read... [09:08:36]Read from MH i2c: 01 07 00 60 93 00 00 00 00 00 E8 0C EE [09:08:36]RasterBufferAndPrint [09:08:36]line [09:08:36]line [09:08:36]line [09:08:36]line [09:08:36]line [09:08:36]written 0, free lines is 3313 [09:08:36]MH_Cut [09:08:36]Write to MH i2c: D1 01 00 67 93 01 CC [09:08:36]Write i2c OK [09:08:36]MH_I2C_Read... [09:08:36]Read from MH i2c: D1 [09:08:36]MH_I2C_Read... [09:08:36]Read from MH i2c: D1 01 00 [09:08:36]MH_I2C_Read... [09:08:36]Read from MH i2c: D1 01 00 67 93 00 CB [09:08:36]Write to MH i2c: 01 00 00 68 93 FB [09:08:36]Write i2c OK [09:08:36]MH_I2C_Read... [09:08:37]OFD Sender: No OFD packet to send [09:08:37]*** Cut start [09:08:37]*** Partial cut [09:08:37]*** CUTSNS_PIN = 1 [09:08:37]*** CUTSNS_PIN = 0 [09:08:37]*** Brake cut motor [09:08:38]Read from MH i2c: 01 [09:08:38]MH_I2C_Read... [09:08:38]*** Stop cut motor [09:08:38]*** Cut end [09:08:38]Read from MH i2c: 01 07 00 [09:08:38]MH_I2C_Read... [09:08:38]Read from MH i2c: 01 07 00 68 93 00 00 00 00 00 FF 0F 10 [09:08:38]process_action close_receipt done [09:08:38]requested_data is exist [09:08:38]produce_requested_data [09:08:38]requested_item fm.sn is exist - process it [09:08:38]wFMCommunicate request_size=4 [09:08:38]MH_SAM_APDU [09:08:38]CAPDU: 80 11 00 00 [09:08:38]Write to MH i2c: E2 08 00 69 93 80 11 00 00 00 00 00 00 76 [09:08:38]Write i2c OK [09:08:38]MH_I2C_Read... [09:08:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:08:38]Read from MH i2c: E2 [09:08:38]MH_I2C_Read... [09:08:38]Read from MH i2c: E2 17 00 [09:08:38]MH_I2C_Read... [09:08:38]Read from MH i2c: E2 17 00 69 93 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 C9 [09:08:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [09:08:38]wFMCommunicate OK [09:08:38]requested_item fd.num is exist - process it [09:08:38]SAM_PROTO_GetFieldsCounters [09:08:38]wFMCommunicate request_size=4 [09:08:38]MH_SAM_APDU [09:08:38]CAPDU: 80 13 00 00 [09:08:38]Write to MH i2c: E2 08 00 6A 93 80 13 00 00 00 00 00 00 79 [09:08:38]Write i2c OK [09:08:38]MH_I2C_Read... [09:08:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:08:38]Read from MH i2c: E2 [09:08:38]MH_I2C_Read... [09:08:38]Read from MH i2c: E2 62 00 [09:08:38]MH_I2C_Read... [09:08:38]Read from MH i2c: E2 62 00 6A 93 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 B2 94 01 00 0E 04 04 00 61 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 A9 [09:08:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 B2 94 01 00 0E 04 04 00 61 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:08:38]wFMCommunicate OK [09:08:38]SAM_PROTO_GetFieldsCounters done [09:08:38]requested_item shift.num is exist - process it [09:08:38]requested_item shift.opened is exist - process it [09:08:38]req_shift_opened [09:08:38]FM_GetShiftState [09:08:38]SAM_PROTO_GetShiftState [09:08:38]wFMCommunicate request_size=4 [09:08:38]MH_SAM_APDU [09:08:38]CAPDU: 80 13 01 00 [09:08:38]Write to MH i2c: E2 08 00 6B 93 80 13 01 00 00 00 00 00 7B [09:08:38]Write i2c OK [09:08:38]MH_I2C_Read... [09:08:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:08:38]Read from MH i2c: E2 [09:08:38]MH_I2C_Read... [09:08:38]Read from MH i2c: E2 0E 00 [09:08:38]MH_I2C_Read... [09:08:38]Read from MH i2c: E2 0E 00 6B 93 00 09 00 01 04 26 72 66 00 00 00 00 90 00 89 [09:08:38]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [09:08:38]wFMCommunicate OK [09:08:38]SAM_PROTO_GetShiftState done [09:08:38]FM_GetShiftState done [09:08:38]req_shift_opened done [09:08:38]requested_item shift.open_date is exist - process it [09:08:38]req_shift_open_date [09:08:38]req_shift_open_date done [09:08:38]produce_requested_data done [09:08:38]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103602,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [09:08:38]process_action_free close_receipt [09:08:38]json_value_free [09:08:38]json_value_free done [09:08:38]process_json_proto returns [09:08:38]Send response to host [09:08:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103602,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [09:08:38]free response buf [09:08:38]execute_script done [09:08:38]execute_script returns [09:08:38]free content buf [09:08:38]Sock 7.Close socket [09:08:38]Sock 7.Thread stoped [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:45]accept exits with 9 [09:12:45]New connection [09:12:45]New thread 3067227492 created [09:12:45]Thread 3067084132 joined [09:12:45]Waiting for new connection... [09:12:45] Sock 9.Parse request [09:12:45]Sock 9.Check first char [09:12:45]Sock 9.First char is OK [09:12:45]request: POST /json_proto HTTP/1.0 [09:12:45]Method: POST [09:12:45]URL: /json_proto [09:12:45]Method is POST - this is cgi request [09:12:45]url: /json_proto [09:12:45]query_string will be loaded in cgi processing [09:12:45]execute_cgi json_proto POST (null) [09:12:45]execute_cgi path=json_proto method=POST [09:12:45]POST find Content-Length [09:12:45]Host: 172.17.38.133:8080 [09:12:45]Content-Length: 677 [09:12:45]Content-Type: application/json [09:12:45] [09:12:45]POST finish read [09:12:45]Found Content-Length = 677 [09:12:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672824", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:12:45]execute_script... [09:12:45]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672824", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:12:45]POST & json_proto [09:12:45]process_json_proto [09:12:45]json parsed OK: [09:12:45]protocol is kg_v1.0 [09:12:45]action value=close_receipt [09:12:45]process_action close_receipt [09:12:45]cmd_close_receipt [09:12:45]MH_GetDate [09:12:45]Write to MH i2c: F0 00 00 6C 93 EE [09:12:45]Write i2c OK [09:12:45]MH_I2C_Read... [09:12:45]Read from MH i2c: F0 [09:12:45]MH_I2C_Read... [09:12:45]Read from MH i2c: F0 09 00 [09:12:45]MH_I2C_Read... [09:12:45]Read from MH i2c: F0 09 00 6C 93 00 18 A1 72 66 BD 8F 7C 64 B4 [09:12:45]GetLastDocTimeStamp 1718788125 [09:12:45]current date 1718788376 [09:12:45]FM_GetShiftState [09:12:45]SAM_PROTO_GetShiftState [09:12:45]wFMCommunicate request_size=4 [09:12:45]MH_SAM_APDU [09:12:45]CAPDU: 80 13 01 00 [09:12:45]Write to MH i2c: E2 08 00 6D 93 80 13 01 00 00 00 00 00 7D [09:12:45]Write i2c OK [09:12:45]MH_I2C_Read... [09:12:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:12:45]Read from MH i2c: E2 [09:12:45]MH_I2C_Read... [09:12:45]Read from MH i2c: E2 0E 00 [09:12:45]MH_I2C_Read... [09:12:45]Read from MH i2c: E2 0E 00 6D 93 00 09 00 01 04 26 72 66 00 00 00 00 90 00 8B [09:12:45]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [09:12:45]wFMCommunicate OK [09:12:45]SAM_PROTO_GetShiftState done [09:12:45]FM_GetShiftState done [09:12:45]opened in 1718756868 [09:12:45]opened+sec_in_day 1718843268 [09:12:45]quantity*price = 50065 [09:12:45]sum+1 = 50067 [09:12:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.17 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 33 19.06.2024 09:12 Смена: 353 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103603 ФПД: 218675023280788 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T091256&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103603&fm=218675023280788&tin=02508201610067®Number=0000000000092785&sum=50000 [09:12:46]StoreToDocumentArchive [09:12:46]shift 353 fd 103603 [09:12:46]save to /storage/0353/doc_00103603 [09:12:46]save last doc name /storage/0353/doc_00103603 to /storage/kkm_last_doc_name [09:12:46]save OK [09:12:46]Clear old archive folders... [09:12:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:12:46]tlvbuf is 0145E4A0 [09:12:46]SAM_PROTO_ClearQueue [09:12:46]wFMCommunicate request_size=4 [09:12:46]MH_SAM_APDU [09:12:46]CAPDU: 80 09 00 00 [09:12:46]Write to MH i2c: E2 08 00 7A 93 80 09 00 00 00 00 00 00 7F [09:12:46]Write i2c OK [09:12:46]MH_I2C_Read... [09:12:46]Read from MH i2c: E2 [09:12:46]MH_I2C_Read... [09:12:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:12:46]Read from MH i2c: E2 03 00 [09:12:46]MH_I2C_Read... [09:12:46]Read from MH i2c: E2 03 00 7A 93 00 90 00 81 [09:12:46]RAPDU: 90 00 [09:12:46]wFMCommunicate OK [09:12:46]SAM_PROTO_ClearQueue done [09:12:46]KKMCreateOFDPacket [09:12:46]OFDProtocolAddRootSTLVToBuf [09:12:46]FM_MakeSignedData [09:12:46]FM_MakeSignedData [09:12:46]SAM_PROTO_SignData [09:12:46]wFMCommunicate request_size=4 [09:12:46]MH_SAM_APDU [09:12:46]CAPDU: 80 0D 01 02 [09:12:46]Write to MH i2c: E2 08 00 7B 93 80 0D 01 02 00 00 00 00 87 [09:12:46]Write i2c OK [09:12:46]MH_I2C_Read... [09:12:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:12:46]Read from MH i2c: E2 [09:12:46]MH_I2C_Read... [09:12:46]Read from MH i2c: E2 03 00 [09:12:46]MH_I2C_Read... [09:12:46]Read from MH i2c: E2 03 00 7B 93 00 90 00 82 [09:12:46]RAPDU: 90 00 [09:12:46]wFMCommunicate OK [09:12:46]wFMCommunicate request_size=255 [09:12:46]MH_SAM_APDU [09:12:46]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 18 A1 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 B3 94 01 00 35 04 06 00 C6 [09:12:46]Write to MH i2c: E2 02 01 7C 93 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 18 A1 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 B3 94 01 00 35 04 06 00 C6 00 00 63 [09:12:46]Write i2c OK [09:12:46]MH_I2C_Read... [09:12:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:12:46]Read from MH i2c: E2 [09:12:46]MH_I2C_Read... [09:12:46]Read from MH i2c: E2 03 00 [09:12:46]MH_I2C_Read... [09:12:46]Read from MH i2c: E2 03 00 7C 93 00 90 00 83 [09:12:46]RAPDU: 90 00 [09:12:46]wFMCommunicate OK [09:12:46]wFMCommunicate request_size=10 [09:12:46]MH_SAM_APDU [09:12:46]CAPDU: 80 0D 02 02 05 E2 3F 15 7A 94 [09:12:46]Write to MH i2c: E2 0D 00 7D 93 80 0D 02 02 05 00 E2 3F 15 7A 94 00 00 D8 [09:12:46]Write i2c OK [09:12:46]MH_I2C_Read... [09:12:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:12:46]Read from MH i2c: E2 [09:12:46]MH_I2C_Read... [09:12:46]Read from MH i2c: E2 03 00 [09:12:46]MH_I2C_Read... [09:12:46]Read from MH i2c: E2 03 00 7D 93 00 90 00 84 [09:12:46]RAPDU: 90 00 [09:12:46]wFMCommunicate OK [09:12:46]wFMCommunicate request_size=4 [09:12:46]MH_SAM_APDU [09:12:46]CAPDU: 80 0D 03 02 [09:12:46]Write to MH i2c: E2 08 00 7E 93 80 0D 03 02 00 00 00 00 8C [09:12:46]Write i2c OK [09:12:46]MH_I2C_Read... [09:12:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:12:46]Read from MH i2c: E2 [09:12:46]MH_I2C_Read... [09:12:46]Read from MH i2c: E2 0B 00 [09:12:46]MH_I2C_Read... [09:12:46]Read from MH i2c: E2 0B 00 7E 93 00 CF 77 54 8E 82 50 AC EF 90 00 22 [09:12:46]RAPDU: CF 77 54 8E 82 50 AC EF 90 00 [09:12:46]wFMCommunicate OK [09:12:46]SAM_PROTO_SignData done [09:12:46]FM_MakeSignedData done [09:12:46]CreateOFDProtocolMessage [09:12:46]wFMCommunicate request_size=4 [09:12:46]MH_SAM_APDU [09:12:46]CAPDU: 80 11 00 00 [09:12:46]Write to MH i2c: E2 08 00 7F 93 80 11 00 00 00 00 00 00 8C [09:12:46]Write i2c OK [09:12:46]MH_I2C_Read... [09:12:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:12:46]Read from MH i2c: E2 [09:12:46]MH_I2C_Read... [09:12:46]Read from MH i2c: E2 17 00 [09:12:46]MH_I2C_Read... [09:12:46]Read from MH i2c: E2 17 00 7F 93 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 DF [09:12:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [09:12:46]wFMCommunicate OK [09:12:46]CreateOFDProtocolMessage done [09:12:46]OFDSenderStorePacket 103603 [09:12:46]StoreOFDPacket docnum=103603 [09:12:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 95 A5 07 01 DF 50 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 18 A1 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 B3 94 01 00 35 04 06 00 C6 E2 3F 15 7A 94 CF 77 54 8E 82 50 AC EF [09:12:46]CheckFolder [09:12:46]dirname=/storage/ofd_packets [09:12:46]CheckFolder done [09:12:46]ProducePacketName [09:12:46]name=ofd_packets/00103603 [09:12:46]NVStorageSaveData ofd_packets/00103603 [09:12:46]File name is /storage/ofd_packets/00103603 [09:12:46]Write 301 bytes [09:12:46]NVStorageSaveData done [09:12:46]OFDSenderStorePacket done [09:12:46]KKMCreateOFDPacket done [09:12:46]NVStorageSaveData kkm_last_timestamp [09:12:46]File name is /storage/kkm_last_timestamp [09:12:46]Write 4 bytes [09:12:46]NVStorageSaveData done [09:12:46]ExternCall_PrintAddStr [09:12:46]wPrintStart [09:12:46]Write to MH i2c: 01 00 00 80 93 13 [09:12:46]Write i2c OK [09:12:46]MH_I2C_Read... [09:12:46]Read from MH i2c: 01 [09:12:46]MH_I2C_Read... [09:12:46]Read from MH i2c: 01 07 00 [09:12:46]MH_I2C_Read... [09:12:46]Read from MH i2c: 01 07 00 80 93 00 00 00 00 00 FF 0F 28 [09:12:46]RasterBufferAndPrint [09:12:46]line Счет N : (1)672824 [09:12:46]line ИНН: 02508201610067 [09:12:46]line Контрольно-Кассовый Чек [09:12:46]line ПРОДАЖА [09:12:46]line ТРК (МРК, ГНК) : 42 [09:12:46]line Товар: 2710124130 [09:12:46]line Аи-92-К-5 [09:12:46]line 7.540 * 66.40 [09:12:46]line = 500.66 [09:12:46]line НДС 12% НСП 1% [09:12:46]line > о реализуемом товаре [09:12:46]line ОКРУГЛЕНИЕ: -0.66 [09:12:46]line ИТОГО: 500.00 [09:12:46]line Внесено: 500.00 [09:12:46]line СДАЧА: 0.00 [09:12:46]line НСП 1% : 4.43 [09:12:46]line НДС 12% : 53.17 [09:12:46]line Наличными: 500.00 [09:12:46]line Безнал.: 0.00 [09:12:46]line Место: АЗС № 120 "Партнер Нефть" [09:12:46]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [09:12:46]line СНО: Общий режим [09:12:46]line Чек 33 19.06.2024 09:12 [09:12:46]line Смена: 353 ФФД: 1.0 [09:12:46]line ЗНМ: 0300000164 [09:12:46]line РНМ: 0000000000092785 [09:12:46]line Версия ККМ: 001 [09:12:46]line ФМ: 0000000000875093 [09:12:46]line ФД: 103603 [09:12:46]line ФПД: 218675023280788 [09:12:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T091256&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103603&fm=218675023280788&tin=02508201610067®Number=0000000000092785&sum=50000 [09:12:47]OFD Sender: Processing packet 103603 [packets to send 17, broken 16] [09:12:47]ProducePacketName [09:12:47]name=ofd_packets/00103603 [09:12:47]OFD Sender: To server: pG, [09:12:47]CommunicateWithHost lk.salyk.kg:30040 [09:12:47]ConnectInit lk.salyk.kg [09:12:47]written 0, free lines is 4095 [09:12:47]Connected sock=10 [09:12:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 95 A5 07 01 DF 50 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 18 A1 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 B3 94 01 00 35 04 06 00 C6 E2 3F 15 7A 94 CF 77 54 8E 82 50 AC EF [09:12:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 9F BB 47 00 9D 62 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 B3 94 01 00 F4 03 04 00 A2 47 72 66 B6 04 01 00 00 40 90 BD 0B 72 D5 A7 7D [09:12:47]CommunicateWithHost err = 0 [09:12:47]CheckOFDResponse [09:12:47]1017 (14) - 77093643461234 [09:12:47]1041 (16) - 0000000000875093 [09:12:47]1040 (4) - 103603 [09:12:47]1012 (4) - 19.06.2024 02:51 [09:12:47]1206 (1) - 0 [09:12:47]OFD Sender: Remove packet 103603 [09:12:47]ProducePacketName [09:12:47]name=ofd_packets/00103603 [09:12:47]NVStorageDeleteData [09:12:47]Write to MH i2c: 01 00 00 AB 93 3E [09:12:47]Write i2c OK [09:12:47]MH_I2C_Read... [09:12:47]Read from MH i2c: 01 [09:12:47]MH_I2C_Read... [09:12:47]Read from MH i2c: 01 07 00 [09:12:47]MH_I2C_Read... [09:12:47]Read from MH i2c: 01 07 00 AB 93 00 00 00 00 00 E0 0C 31 [09:12:47]RasterBufferAndPrint [09:12:47]line [09:12:47]line [09:12:47]line [09:12:47]line [09:12:47]line [09:12:47]written 0, free lines is 3304 [09:12:47]MH_Cut [09:12:47]Write to MH i2c: D1 01 00 B2 93 01 17 [09:12:47]Write i2c OK [09:12:47]MH_I2C_Read... [09:12:47]Read from MH i2c: D1 [09:12:47]MH_I2C_Read... [09:12:47]Read from MH i2c: D1 01 00 [09:12:47]MH_I2C_Read... [09:12:47]Read from MH i2c: D1 01 00 B2 93 00 16 [09:12:47]Write to MH i2c: 01 00 00 B3 93 46 [09:12:47]Write i2c OK [09:12:47]MH_I2C_Read... [09:12:48]OFD Sender: No OFD packet to send [09:12:48]*** Cut start [09:12:48]*** Partial cut [09:12:48]*** CUTSNS_PIN = 1 [09:12:48]*** CUTSNS_PIN = 0 [09:12:48]*** Brake cut motor [09:12:49]Read from MH i2c: 01 [09:12:49]MH_I2C_Read... [09:12:49]*** Stop cut motor [09:12:49]*** Cut end [09:12:49]Read from MH i2c: 01 07 00 [09:12:49]MH_I2C_Read... [09:12:49]Read from MH i2c: 01 07 00 B3 93 00 00 00 00 00 FF 0F 5B [09:12:49]process_action close_receipt done [09:12:49]requested_data is exist [09:12:49]produce_requested_data [09:12:49]requested_item fm.sn is exist - process it [09:12:49]wFMCommunicate request_size=4 [09:12:49]MH_SAM_APDU [09:12:49]CAPDU: 80 11 00 00 [09:12:49]Write to MH i2c: E2 08 00 B4 93 80 11 00 00 00 00 00 00 C1 [09:12:49]Write i2c OK [09:12:49]MH_I2C_Read... [09:12:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:12:49]Read from MH i2c: E2 [09:12:49]MH_I2C_Read... [09:12:49]Read from MH i2c: E2 17 00 [09:12:49]MH_I2C_Read... [09:12:49]Read from MH i2c: E2 17 00 B4 93 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 14 [09:12:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [09:12:49]wFMCommunicate OK [09:12:49]requested_item fd.num is exist - process it [09:12:49]SAM_PROTO_GetFieldsCounters [09:12:49]wFMCommunicate request_size=4 [09:12:49]MH_SAM_APDU [09:12:49]CAPDU: 80 13 00 00 [09:12:49]Write to MH i2c: E2 08 00 B5 93 80 13 00 00 00 00 00 00 C4 [09:12:49]Write i2c OK [09:12:49]MH_I2C_Read... [09:12:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:12:49]Read from MH i2c: E2 [09:12:49]MH_I2C_Read... [09:12:49]Read from MH i2c: E2 62 00 [09:12:49]MH_I2C_Read... [09:12:49]Read from MH i2c: E2 62 00 B5 93 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 B3 94 01 00 0E 04 04 00 61 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 F8 [09:12: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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 B3 94 01 00 0E 04 04 00 61 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:12:49]wFMCommunicate OK [09:12:49]SAM_PROTO_GetFieldsCounters done [09:12:49]requested_item shift.num is exist - process it [09:12:49]requested_item shift.opened is exist - process it [09:12:49]req_shift_opened [09:12:49]FM_GetShiftState [09:12:49]SAM_PROTO_GetShiftState [09:12:49]wFMCommunicate request_size=4 [09:12:49]MH_SAM_APDU [09:12:49]CAPDU: 80 13 01 00 [09:12:49]Write to MH i2c: E2 08 00 B6 93 80 13 01 00 00 00 00 00 C6 [09:12:49]Write i2c OK [09:12:49]MH_I2C_Read... [09:12:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:12:49]Read from MH i2c: E2 [09:12:49]MH_I2C_Read... [09:12:49]Read from MH i2c: E2 0E 00 [09:12:49]MH_I2C_Read... [09:12:49]Read from MH i2c: E2 0E 00 B6 93 00 09 00 01 04 26 72 66 00 00 00 00 90 00 D4 [09:12:49]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [09:12:49]wFMCommunicate OK [09:12:49]SAM_PROTO_GetShiftState done [09:12:49]FM_GetShiftState done [09:12:49]req_shift_opened done [09:12:49]requested_item shift.open_date is exist - process it [09:12:49]req_shift_open_date [09:12:49]req_shift_open_date done [09:12:49]produce_requested_data done [09:12:49]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103603,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [09:12:49]process_action_free close_receipt [09:12:49]json_value_free [09:12:49]json_value_free done [09:12:49]process_json_proto returns [09:12:49]Send response to host [09:12:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103603,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [09:12:49]free response buf [09:12:49]execute_script done [09:12:49]execute_script returns [09:12:49]free content buf [09:12:49]Sock 9.Close socket [09:12:49]Sock 9.Thread stoped [09:12:53]OFD Sender: No OFD packet to send [09:12:58]OFD Sender: No OFD packet to send [09:13:03]OFD Sender: No OFD packet to send [09:13:08]OFD Sender: No OFD packet to send [09:13:13]OFD Sender: No OFD packet to send [09:13:18]OFD Sender: No OFD packet to send [09:13:23]OFD Sender: No OFD packet to send [09:13:28]OFD Sender: No OFD packet to send [09:13:33]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:13]OFD Sender: No OFD packet to send [09:15:15]accept exits with 7 [09:15:15]New connection [09:15:15]New thread 3067084132 created [09:15:15]Thread 3067227492 joined [09:15:15]Waiting for new connection... [09:15:15] Sock 7.Parse request [09:15:15]Sock 7.Check first char [09:15:15]Sock 7.First char is OK [09:15:15]request: POST /json_proto HTTP/1.0 [09:15:15]Method: POST [09:15:15]URL: /json_proto [09:15:15]Method is POST - this is cgi request [09:15:15]url: /json_proto [09:15:15]query_string will be loaded in cgi processing [09:15:15]execute_cgi json_proto POST (null) [09:15:15]execute_cgi path=json_proto method=POST [09:15:15]POST find Content-Length [09:15:15]Host: 172.17.38.133:8080 [09:15:15]Content-Length: 682 [09:15:15]Content-Type: application/json [09:15:15] [09:15:15]POST finish read [09:15:15]Found Content-Length = 682 [09:15:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672826", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 8.240, "sum" : 600.70, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:15:15]execute_script... [09:15: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)672826", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 8.240, "sum" : 600.70, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:15:15]POST & json_proto [09:15:15]process_json_proto [09:15:15]json parsed OK: [09:15:15]protocol is kg_v1.0 [09:15:15]action value=close_receipt [09:15:15]process_action close_receipt [09:15:15]cmd_close_receipt [09:15:15]MH_GetDate [09:15:15]Write to MH i2c: F0 00 00 B7 93 39 [09:15:15]Write i2c OK [09:15:15]MH_I2C_Read... [09:15:15]Read from MH i2c: F0 [09:15:15]MH_I2C_Read... [09:15:15]Read from MH i2c: F0 09 00 [09:15:15]MH_I2C_Read... [09:15:15]Read from MH i2c: F0 09 00 B7 93 00 AF A1 72 66 BD 8F 7C 64 96 [09:15:15]GetLastDocTimeStamp 1718788376 [09:15:15]current date 1718788527 [09:15:15]FM_GetShiftState [09:15:15]SAM_PROTO_GetShiftState [09:15:15]wFMCommunicate request_size=4 [09:15:15]MH_SAM_APDU [09:15:15]CAPDU: 80 13 01 00 [09:15:15]Write to MH i2c: E2 08 00 B8 93 80 13 01 00 00 00 00 00 C8 [09:15:15]Write i2c OK [09:15:15]MH_I2C_Read... [09:15:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:15:15]Read from MH i2c: E2 [09:15:15]MH_I2C_Read... [09:15:15]Read from MH i2c: E2 0E 00 [09:15:15]MH_I2C_Read... [09:15:15]Read from MH i2c: E2 0E 00 B8 93 00 09 00 01 04 26 72 66 00 00 00 00 90 00 D6 [09:15:15]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [09:15:15]wFMCommunicate OK [09:15:15]SAM_PROTO_GetShiftState done [09:15:15]FM_GetShiftState done [09:15:15]opened in 1718756868 [09:15:15]opened+sec_in_day 1718843268 [09:15:15]quantity*price = 60069 [09:15:15]sum+1 = 60071 [09:15:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.70 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.32 НДС 12% : 63.79 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 34 19.06.2024 09:15 Смена: 353 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103604 ФПД: 156635241858068 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T091527&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103604&fm=156635241858068&tin=02508201610067®Number=0000000000092785&sum=60000 [09:15:16]StoreToDocumentArchive [09:15:16]shift 353 fd 103604 [09:15:16]save to /storage/0353/doc_00103604 [09:15:16]save last doc name /storage/0353/doc_00103604 to /storage/kkm_last_doc_name [09:15:16]save OK [09:15:16]Clear old archive folders... [09:15:16]ProcessDocumentItem done err = 0, tmpTLVsize=252 [09:15:16]tlvbuf is 014169B0 [09:15:16]SAM_PROTO_ClearQueue [09:15:16]wFMCommunicate request_size=4 [09:15:16]MH_SAM_APDU [09:15:16]CAPDU: 80 09 00 00 [09:15:16]Write to MH i2c: E2 08 00 C5 93 80 09 00 00 00 00 00 00 CA [09:15:16]Write i2c OK [09:15:16]MH_I2C_Read... [09:15:16]Read from MH i2c: E2 [09:15:16]MH_I2C_Read... [09:15:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:15:16]Read from MH i2c: E2 03 00 [09:15:16]MH_I2C_Read... [09:15:16]Read from MH i2c: E2 03 00 C5 93 00 90 00 CC [09:15:16]RAPDU: 90 00 [09:15:16]wFMCommunicate OK [09:15:16]SAM_PROTO_ClearQueue done [09:15:16]KKMCreateOFDPacket [09:15:16]OFDProtocolAddRootSTLVToBuf [09:15:16]FM_MakeSignedData [09:15:16]FM_MakeSignedData [09:15:16]SAM_PROTO_SignData [09:15:16]wFMCommunicate request_size=4 [09:15:16]MH_SAM_APDU [09:15:16]CAPDU: 80 0D 01 02 [09:15:16]Write to MH i2c: E2 08 00 C6 93 80 0D 01 02 00 00 00 00 D2 [09:15:16]Write i2c OK [09:15:16]MH_I2C_Read... [09:15:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:15:16]Read from MH i2c: E2 [09:15:16]MH_I2C_Read... [09:15:16]Read from MH i2c: E2 03 00 [09:15:16]MH_I2C_Read... [09:15:16]Read from MH i2c: E2 03 00 C6 93 00 90 00 CD [09:15:16]RAPDU: 90 00 [09:15:16]wFMCommunicate OK [09:15:16]wFMCommunicate request_size=255 [09:15:16]MH_SAM_APDU [09:15:16]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 30 20 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 A6 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 14 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EB 18 00 00 00 00 07 04 06 00 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 22 00 00 00 F4 03 04 00 AF A1 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 B4 94 01 00 35 04 06 00 [09:15:16]Write to MH i2c: E2 02 01 C7 93 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 30 20 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 A6 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 14 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EB 18 00 00 00 00 07 04 06 00 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 22 00 00 00 F4 03 04 00 AF A1 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 B4 94 01 00 35 04 06 00 00 00 35 [09:15:16]Write i2c OK [09:15:16]MH_I2C_Read... [09:15:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:15:17]Read from MH i2c: E2 [09:15:17]MH_I2C_Read... [09:15:17]Read from MH i2c: E2 03 00 [09:15:17]MH_I2C_Read... [09:15:17]Read from MH i2c: E2 03 00 C7 93 00 90 00 CE [09:15:17]RAPDU: 90 00 [09:15:17]wFMCommunicate OK [09:15:17]wFMCommunicate request_size=11 [09:15:17]MH_SAM_APDU [09:15:17]CAPDU: 80 0D 02 02 06 8E 75 7B F3 44 14 [09:15:17]Write to MH i2c: E2 0E 00 C8 93 80 0D 02 02 06 00 8E 75 7B F3 44 14 00 00 AA [09:15:17]Write i2c OK [09:15:17]MH_I2C_Read... [09:15:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:15:17]Read from MH i2c: E2 [09:15:17]MH_I2C_Read... [09:15:17]Read from MH i2c: E2 03 00 [09:15:17]MH_I2C_Read... [09:15:17]Read from MH i2c: E2 03 00 C8 93 00 90 00 CF [09:15:17]RAPDU: 90 00 [09:15:17]wFMCommunicate OK [09:15:17]wFMCommunicate request_size=4 [09:15:17]MH_SAM_APDU [09:15:17]CAPDU: 80 0D 03 02 [09:15:17]Write to MH i2c: E2 08 00 C9 93 80 0D 03 02 00 00 00 00 D7 [09:15:17]Write i2c OK [09:15:17]MH_I2C_Read... [09:15:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:15:17]Read from MH i2c: E2 [09:15:17]MH_I2C_Read... [09:15:17]Read from MH i2c: E2 0B 00 [09:15:17]MH_I2C_Read... [09:15:17]Read from MH i2c: E2 0B 00 C9 93 00 DE 36 EF 26 32 8A 87 04 90 00 48 [09:15:17]RAPDU: DE 36 EF 26 32 8A 87 04 90 00 [09:15:17]wFMCommunicate OK [09:15:17]SAM_PROTO_SignData done [09:15:17]FM_MakeSignedData done [09:15:17]CreateOFDProtocolMessage [09:15:17]wFMCommunicate request_size=4 [09:15:17]MH_SAM_APDU [09:15:17]CAPDU: 80 11 00 00 [09:15:17]Write to MH i2c: E2 08 00 CA 93 80 11 00 00 00 00 00 00 D7 [09:15:17]Write i2c OK [09:15:17]MH_I2C_Read... [09:15:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:15:17]Read from MH i2c: E2 [09:15:17]MH_I2C_Read... [09:15:17]Read from MH i2c: E2 17 00 [09:15:17]MH_I2C_Read... [09:15:17]Read from MH i2c: E2 17 00 CA 93 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 2A [09:15:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [09:15:17]wFMCommunicate OK [09:15:17]CreateOFDProtocolMessage done [09:15:17]OFDSenderStorePacket 103604 [09:15:17]StoreOFDPacket docnum=103604 [09:15:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 3C 43 08 01 4B DB 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 30 20 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 A6 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 14 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EB 18 00 00 00 00 07 04 06 00 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 22 00 00 00 F4 03 04 00 AF A1 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 B4 94 01 00 35 04 06 00 8E 75 7B F3 44 14 DE 36 EF 26 32 8A 87 04 [09:15:17]CheckFolder [09:15:17]dirname=/storage/ofd_packets [09:15:17]CheckFolder done [09:15:17]ProducePacketName [09:15:17]name=ofd_packets/00103604 [09:15:17]NVStorageSaveData ofd_packets/00103604 [09:15:17]File name is /storage/ofd_packets/00103604 [09:15:17]Write 302 bytes [09:15:17]NVStorageSaveData done [09:15:17]OFDSenderStorePacket done [09:15:17]KKMCreateOFDPacket done [09:15:17]NVStorageSaveData kkm_last_timestamp [09:15:17]File name is /storage/kkm_last_timestamp [09:15:17]Write 4 bytes [09:15:17]NVStorageSaveData done [09:15:17]ExternCall_PrintAddStr [09:15:17]wPrintStart [09:15:17]Write to MH i2c: 01 00 00 CB 93 5E [09:15:17]Write i2c OK [09:15:17]MH_I2C_Read... [09:15:17]Read from MH i2c: 01 [09:15:17]MH_I2C_Read... [09:15:17]Read from MH i2c: 01 07 00 [09:15:17]MH_I2C_Read... [09:15:17]Read from MH i2c: 01 07 00 CB 93 00 00 00 00 00 FF 0F 73 [09:15:17]RasterBufferAndPrint [09:15:17]line Счет N : (1)672826 [09:15:17]line ИНН: 02508201610067 [09:15:17]line Контрольно-Кассовый Чек [09:15:17]line ПРОДАЖА [09:15:17]line ТРК (МРК, ГНК) : 21 [09:15:17]line Товар: 2710194210 [09:15:17]line ДТ(л)-К-5 [09:15:17]line 8.240 * 72.90 [09:15:17]line = 600.70 [09:15:17]line НДС 12% НСП 1% [09:15:17]line > о реализуемом товаре [09:15:17]line ОКРУГЛЕНИЕ: -0.70 [09:15:17]line ИТОГО: 600.00 [09:15:17]line Внесено: 600.00 [09:15:17]line СДАЧА: 0.00 [09:15:17]line НСП 1% : 5.32 [09:15:17]line НДС 12% : 63.79 [09:15:17]line Наличными: 600.00 [09:15:17]line Безнал.: 0.00 [09:15:17]line Место: АЗС № 120 "Партнер Нефть" [09:15:17]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [09:15:17]line СНО: Общий режим [09:15:17]line Чек 34 19.06.2024 09:15 [09:15:17]line Смена: 353 ФФД: 1.0 [09:15:17]line ЗНМ: 0300000164 [09:15:17]line РНМ: 0000000000092785 [09:15:17]line Версия ККМ: 001 [09:15:17]line ФМ: 0000000000875093 [09:15:17]line ФД: 103604 [09:15:17]line ФПД: 156635241858068 [09:15:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T091527&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103604&fm=156635241858068&tin=02508201610067®Number=0000000000092785&sum=60000 [09:15:17]OFD Sender: Processing packet 103604 [packets to send 17, broken 16] [09:15:17]ProducePacketName [09:15:17]name=ofd_packets/00103604 [09:15:17]OFD Sender: To server: pG, [09:15:17]CommunicateWithHost lk.salyk.kg:30040 [09:15:17]ConnectInit lk.salyk.kg [09:15:17]written 0, free lines is 4095 [09:15:17]Connected sock=10 [09:15: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 39 33 10 01 00 00 3C 43 08 01 4B DB 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 30 20 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 A6 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 14 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EB 18 00 00 00 00 07 04 06 00 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 22 00 00 00 F4 03 04 00 AF A1 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 B4 94 01 00 35 04 06 00 8E 75 7B F3 44 14 DE 36 EF 26 32 8A 87 04 [09:15:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 2D F5 47 00 01 C6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 B4 94 01 00 F4 03 04 00 38 48 72 66 B6 04 01 00 00 50 4F 1F 82 FC 17 C3 AA [09:15:18]CommunicateWithHost err = 0 [09:15:18]CheckOFDResponse [09:15:18]1017 (14) - 77093643461234 [09:15:18]1041 (16) - 0000000000875093 [09:15:18]1040 (4) - 103604 [09:15:18]1012 (4) - 19.06.2024 02:53 [09:15:18]1206 (1) - 0 [09:15:18]OFD Sender: Remove packet 103604 [09:15:18]ProducePacketName [09:15:18]name=ofd_packets/00103604 [09:15:18]NVStorageDeleteData [09:15:18]Write to MH i2c: 01 00 00 F6 93 89 [09:15:18]Write i2c OK [09:15:18]MH_I2C_Read... [09:15:18]Read from MH i2c: 01 [09:15:18]MH_I2C_Read... [09:15:18]Read from MH i2c: 01 07 00 [09:15:18]MH_I2C_Read... [09:15:18]Read from MH i2c: 01 07 00 F6 93 00 00 00 00 00 E2 0C 7E [09:15:18]RasterBufferAndPrint [09:15:18]line [09:15:18]line [09:15:18]line [09:15:18]line [09:15:18]line [09:15:18]written 0, free lines is 3307 [09:15:18]MH_Cut [09:15:18]Write to MH i2c: D1 01 00 FD 93 01 62 [09:15:18]Write i2c OK [09:15:18]MH_I2C_Read... [09:15:18]Read from MH i2c: D1 [09:15:18]MH_I2C_Read... [09:15:18]Read from MH i2c: D1 01 00 [09:15:18]MH_I2C_Read... [09:15:18]Read from MH i2c: D1 01 00 FD 93 00 61 [09:15:18]Write to MH i2c: 01 00 00 FE 93 91 [09:15:18]Write i2c OK [09:15:18]MH_I2C_Read... [09:15:18]OFD Sender: No OFD packet to send [09:15:18]*** Cut start [09:15:18]*** Partial cut [09:15:18]*** CUTSNS_PIN = 1 [09:15:18]*** CUTSNS_PIN = 0 [09:15:19]*** Brake cut motor [09:15:19]Read from MH i2c: 01 [09:15:19]MH_I2C_Read... [09:15:19]*** Stop cut motor [09:15:19]*** Cut end [09:15:19]Read from MH i2c: 01 07 00 [09:15:19]MH_I2C_Read... [09:15:19]Read from MH i2c: 01 07 00 FE 93 00 00 00 00 00 FF 0F A6 [09:15:19]process_action close_receipt done [09:15:19]requested_data is exist [09:15:19]produce_requested_data [09:15:19]requested_item fm.sn is exist - process it [09:15:19]wFMCommunicate request_size=4 [09:15:19]MH_SAM_APDU [09:15:19]CAPDU: 80 11 00 00 [09:15:19]Write to MH i2c: E2 08 00 FF 93 80 11 00 00 00 00 00 00 0C [09:15:19]Write i2c OK [09:15:19]MH_I2C_Read... [09:15:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:15:19]Read from MH i2c: E2 [09:15:19]MH_I2C_Read... [09:15:19]Read from MH i2c: E2 17 00 [09:15:19]MH_I2C_Read... [09:15:19]Read from MH i2c: E2 17 00 FF 93 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 5F [09:15:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [09:15:19]wFMCommunicate OK [09:15:19]requested_item fd.num is exist - process it [09:15:19]SAM_PROTO_GetFieldsCounters [09:15:19]wFMCommunicate request_size=4 [09:15:19]MH_SAM_APDU [09:15:19]CAPDU: 80 13 00 00 [09:15:19]Write to MH i2c: E2 08 00 00 94 80 13 00 00 00 00 00 00 10 [09:15:19]Write i2c OK [09:15:19]MH_I2C_Read... [09:15:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:15:19]Read from MH i2c: E2 [09:15:19]MH_I2C_Read... [09:15:19]Read from MH i2c: E2 62 00 [09:15:19]MH_I2C_Read... [09:15:19]Read from MH i2c: E2 62 00 00 94 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 B4 94 01 00 0E 04 04 00 61 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 48 [09:15: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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 B4 94 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 22 00 00 00 5E 04 04 00 22 00 00 00 57 04 04 00 23 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:15:19]wFMCommunicate OK [09:15:19]SAM_PROTO_GetFieldsCounters done [09:15:19]requested_item shift.num is exist - process it [09:15:19]requested_item shift.opened is exist - process it [09:15:19]req_shift_opened [09:15:19]FM_GetShiftState [09:15:19]SAM_PROTO_GetShiftState [09:15:19]wFMCommunicate request_size=4 [09:15:19]MH_SAM_APDU [09:15:19]CAPDU: 80 13 01 00 [09:15:19]Write to MH i2c: E2 08 00 01 94 80 13 01 00 00 00 00 00 12 [09:15:19]Write i2c OK [09:15:19]MH_I2C_Read... [09:15:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:15:19]Read from MH i2c: E2 [09:15:19]MH_I2C_Read... [09:15:19]Read from MH i2c: E2 0E 00 [09:15:19]MH_I2C_Read... [09:15:19]Read from MH i2c: E2 0E 00 01 94 00 09 00 01 04 26 72 66 00 00 00 00 90 00 20 [09:15:19]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [09:15:19]wFMCommunicate OK [09:15:19]SAM_PROTO_GetShiftState done [09:15:19]FM_GetShiftState done [09:15:19]req_shift_opened done [09:15:19]requested_item shift.open_date is exist - process it [09:15:19]req_shift_open_date [09:15:19]req_shift_open_date done [09:15:19]produce_requested_data done [09:15:19]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103604,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [09:15:19]process_action_free close_receipt [09:15:19]json_value_free [09:15:19]json_value_free done [09:15:19]process_json_proto returns [09:15:19]Send response to host [09:15:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103604,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [09:15:19]free response buf [09:15:19]execute_script done [09:15:19]execute_script returns [09:15:19]free content buf [09:15:19]Sock 7.Close socket [09:15:19]Sock 7.Thread stoped [09:15:23]OFD Sender: No OFD packet to send [09:15:28]OFD Sender: No OFD packet to send [09:15:33]OFD Sender: No OFD packet to send [09:15:38]OFD Sender: No OFD packet to send [09:15:43]OFD Sender: No OFD packet to send [09:15:46]accept exits with 9 [09:15:46]New connection [09:15:46]New thread 3067227492 created [09:15:46]Thread 3067084132 joined [09:15:46]Waiting for new connection... [09:15:46] Sock 9.Parse request [09:15:46]Sock 9.Check first char [09:15:46]Sock 9.First char is OK [09:15:46]request: POST /json_proto HTTP/1.0 [09:15:46]Method: POST [09:15:46]URL: /json_proto [09:15:46]Method is POST - this is cgi request [09:15:46]url: /json_proto [09:15:46]query_string will be loaded in cgi processing [09:15:46]execute_cgi json_proto POST (null) [09:15:46]execute_cgi path=json_proto method=POST [09:15:46]POST find Content-Length [09:15:46]Host: 172.17.38.133:8080 [09:15:46]Content-Length: 819 [09:15:46]Content-Type: application/json [09:15:46] [09:15:46]POST finish read [09:15:46]Found Content-Length = 819 [09:15:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672825", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.65 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:15:46]execute_script... [09:15: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)672825", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.65 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:15:46]POST & json_proto [09:15:46]process_json_proto [09:15:46]json parsed OK: [09:15:46]protocol is kg_v1.0 [09:15:46]action value=close_receipt [09:15:46]process_action close_receipt [09:15:46]cmd_close_receipt [09:15:46]MH_GetDate [09:15:46]Write to MH i2c: F0 00 00 02 94 85 [09:15:46]Write i2c OK [09:15:46]MH_I2C_Read... [09:15:46]Read from MH i2c: F0 [09:15:46]MH_I2C_Read... [09:15:46]Read from MH i2c: F0 09 00 [09:15:46]MH_I2C_Read... [09:15:46]Read from MH i2c: F0 09 00 02 94 00 CD A1 72 66 BD 8F 7C 64 00 [09:15:46]GetLastDocTimeStamp 1718788527 [09:15:46]current date 1718788557 [09:15:46]FM_GetShiftState [09:15:46]SAM_PROTO_GetShiftState [09:15:46]wFMCommunicate request_size=4 [09:15:46]MH_SAM_APDU [09:15:46]CAPDU: 80 13 01 00 [09:15:46]Write to MH i2c: E2 08 00 03 94 80 13 01 00 00 00 00 00 14 [09:15:46]Write i2c OK [09:15:46]MH_I2C_Read... [09:15:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:15:46]Read from MH i2c: E2 [09:15:46]MH_I2C_Read... [09:15:46]Read from MH i2c: E2 0E 00 [09:15:46]MH_I2C_Read... [09:15:46]Read from MH i2c: E2 0E 00 03 94 00 09 00 01 04 26 72 66 00 00 00 00 90 00 22 [09:15:46]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [09:15:46]wFMCommunicate OK [09:15:46]SAM_PROTO_GetShiftState done [09:15:46]FM_GetShiftState done [09:15:46]opened in 1718756868 [09:15:46]opened+sec_in_day 1718843268 [09:15:46]quantity*price = 100064 [09:15:46]sum+1 = 100066 [09:15:46]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.65 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 0.00 Безнал.: 1000.65 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 35 19.06.2024 09:15 Смена: 353 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000875093 ФД: 103605 ФПД: 269291000435194 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T091557&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103605&fm=269291000435194&tin=02508201610067®Number=0000000000092785&sum=100065 [09:15:47]StoreToDocumentArchive [09:15:47]shift 353 fd 103605 [09:15:47]save to /storage/0353/doc_00103605 [09:15:47]save last doc name /storage/0353/doc_00103605 to /storage/kkm_last_doc_name [09:15:47]save OK [09:15:47]Clear old archive folders... [09:15:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:15:47]tlvbuf is 0145E5B0 [09:15:47]SAM_PROTO_ClearQueue [09:15:47]wFMCommunicate request_size=4 [09:15:47]MH_SAM_APDU [09:15:47]CAPDU: 80 09 00 00 [09:15:47]Write to MH i2c: E2 08 00 10 94 80 09 00 00 00 00 00 00 16 [09:15:47]Write i2c OK [09:15:47]MH_I2C_Read... [09:15:47]Read from MH i2c: E2 [09:15:47]MH_I2C_Read... [09:15:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:15:47]Read from MH i2c: E2 03 00 [09:15:47]MH_I2C_Read... [09:15:47]Read from MH i2c: E2 03 00 10 94 00 90 00 18 [09:15:47]RAPDU: 90 00 [09:15:47]wFMCommunicate OK [09:15:47]SAM_PROTO_ClearQueue done [09:15:47]KKMCreateOFDPacket [09:15:47]OFDProtocolAddRootSTLVToBuf [09:15:47]FM_MakeSignedData [09:15:47]FM_MakeSignedData [09:15:47]SAM_PROTO_SignData [09:15:47]wFMCommunicate request_size=4 [09:15:47]MH_SAM_APDU [09:15:47]CAPDU: 80 0D 01 02 [09:15:47]Write to MH i2c: E2 08 00 11 94 80 0D 01 02 00 00 00 00 1E [09:15:47]Write i2c OK [09:15:47]MH_I2C_Read... [09:15:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:15:47]Read from MH i2c: E2 [09:15:47]MH_I2C_Read... [09:15:47]Read from MH i2c: E2 03 00 [09:15:47]MH_I2C_Read... [09:15:47]Read from MH i2c: E2 03 00 11 94 00 90 00 19 [09:15:47]RAPDU: 90 00 [09:15:47]wFMCommunicate OK [09:15:47]wFMCommunicate request_size=255 [09:15:47]MH_SAM_APDU [09:15:47]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E1 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E1 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 CD A1 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 B5 94 01 00 35 04 06 00 F4 [09:15:47]Write to MH i2c: E2 02 01 12 94 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E1 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E1 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 CD A1 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 B5 94 01 00 35 04 06 00 F4 00 00 B3 [09:15:47]Write i2c OK [09:15:47]MH_I2C_Read... [09:15:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:15:47]Read from MH i2c: E2 [09:15:47]MH_I2C_Read... [09:15:47]Read from MH i2c: E2 03 00 [09:15:47]MH_I2C_Read... [09:15:47]Read from MH i2c: E2 03 00 12 94 00 90 00 1A [09:15:47]RAPDU: 90 00 [09:15:47]wFMCommunicate OK [09:15:47]wFMCommunicate request_size=10 [09:15:47]MH_SAM_APDU [09:15:47]CAPDU: 80 0D 02 02 05 EB 32 6C 11 FA [09:15:47]Write to MH i2c: E2 0D 00 13 94 80 0D 02 02 05 00 EB 32 6C 11 FA 00 00 BF [09:15:47]Write i2c OK [09:15:47]MH_I2C_Read... [09:15:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:15:47]Read from MH i2c: E2 [09:15:47]MH_I2C_Read... [09:15:47]Read from MH i2c: E2 03 00 [09:15:47]MH_I2C_Read... [09:15:47]Read from MH i2c: E2 03 00 13 94 00 90 00 1B [09:15:47]RAPDU: 90 00 [09:15:47]wFMCommunicate OK [09:15:47]wFMCommunicate request_size=4 [09:15:47]MH_SAM_APDU [09:15:47]CAPDU: 80 0D 03 02 [09:15:47]Write to MH i2c: E2 08 00 14 94 80 0D 03 02 00 00 00 00 23 [09:15:47]Write i2c OK [09:15:47]MH_I2C_Read... [09:15:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:15:47]Read from MH i2c: E2 [09:15:47]MH_I2C_Read... [09:15:47]Read from MH i2c: E2 0B 00 [09:15:47]MH_I2C_Read... [09:15:47]Read from MH i2c: E2 0B 00 14 94 00 81 03 91 FF 61 11 6E B5 90 00 CD [09:15:47]RAPDU: 81 03 91 FF 61 11 6E B5 90 00 [09:15:47]wFMCommunicate OK [09:15:47]SAM_PROTO_SignData done [09:15:47]FM_MakeSignedData done [09:15:47]CreateOFDProtocolMessage [09:15:47]wFMCommunicate request_size=4 [09:15:47]MH_SAM_APDU [09:15:47]CAPDU: 80 11 00 00 [09:15:47]Write to MH i2c: E2 08 00 15 94 80 11 00 00 00 00 00 00 23 [09:15:47]Write i2c OK [09:15:47]MH_I2C_Read... [09:15:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:15:47]Read from MH i2c: E2 [09:15:47]MH_I2C_Read... [09:15:47]Read from MH i2c: E2 17 00 [09:15:47]MH_I2C_Read... [09:15:47]Read from MH i2c: E2 17 00 15 94 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 76 [09:15:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [09:15:47]wFMCommunicate OK [09:15:47]CreateOFDProtocolMessage done [09:15:47]OFDSenderStorePacket 103605 [09:15:47]StoreOFDPacket docnum=103605 [09:15:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 6B 7F 07 01 70 97 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E1 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E1 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 CD A1 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 B5 94 01 00 35 04 06 00 F4 EB 32 6C 11 FA 81 03 91 FF 61 11 6E B5 [09:15:47]CheckFolder [09:15:47]dirname=/storage/ofd_packets [09:15:47]CheckFolder done [09:15:47]ProducePacketName [09:15:47]name=ofd_packets/00103605 [09:15:47]NVStorageSaveData ofd_packets/00103605 [09:15:47]File name is /storage/ofd_packets/00103605 [09:15:47]Write 301 bytes [09:15:47]NVStorageSaveData done [09:15:47]OFDSenderStorePacket done [09:15:47]KKMCreateOFDPacket done [09:15:47]NVStorageSaveData kkm_last_timestamp [09:15:47]File name is /storage/kkm_last_timestamp [09:15:47]Write 4 bytes [09:15:47]NVStorageSaveData done [09:15:47]ExternCall_PrintAddStr [09:15:47]wPrintStart [09:15:47]Write to MH i2c: 01 00 00 16 94 AA [09:15:47]Write i2c OK [09:15:47]MH_I2C_Read... [09:15:47]Read from MH i2c: 01 [09:15:47]MH_I2C_Read... [09:15:47]Read from MH i2c: 01 07 00 [09:15:47]MH_I2C_Read... [09:15:47]Read from MH i2c: 01 07 00 16 94 00 00 00 00 00 FF 0F BF [09:15:47]RasterBufferAndPrint [09:15:47]line Счет N : (1)672825 [09:15:47]line ИНН: 02508201610067 [09:15:47]line Контрольно-Кассовый Чек [09:15:47]line ПРОДАЖА [09:15:47]line ТРК (МРК, ГНК) : 32 [09:15:47]line Товар: 2710124130 [09:15:47]line Аи-92-К-5 [09:15:47]line 15.070 * 66.40 [09:15:47]line = 1000.65 [09:15:47]line НДС 12% НСП 1% [09:15:47]line > о реализуемом товаре [09:15:47]line ИТОГО: 1000.65 [09:15:47]line НСП 1% : 8.85 [09:15:47]line НДС 12% : 106.26 [09:15:47]line Наличными: 0.00 [09:15:47]line Безнал.: 1000.65 [09:15:47]line Место: АЗС № 120 "Партнер Нефть" [09:15:47]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [09:15:47]line СНО: Общий режим [09:15:47]line Чек 35 19.06.2024 09:15 [09:15:47]line Смена: 353 ФФД: 1.0 [09:15:47]line ЗНМ: 0300000164 [09:15:47]line РНМ: 0000000000092785 [09:15:47]line Версия ККМ: 001 [09:15:47]line Платежная система: Бакай Банк [09:15:47]line ФМ: 0000000000875093 [09:15:47]line ФД: 103605 [09:15:47]line ФПД: 269291000435194 [09:15:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T091557&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103605&fm=269291000435194&tin=02508201610067®Number=0000000000092785&sum=100065 [09:15:48]written 0, free lines is 4095 [09:15:48]OFD Sender: Processing packet 103605 [packets to send 17, broken 16] [09:15:48]ProducePacketName [09:15:48]name=ofd_packets/00103605 [09:15:48]OFD Sender: To server: pG, [09:15:48]CommunicateWithHost lk.salyk.kg:30040 [09:15:48]ConnectInit lk.salyk.kg [09:15:48]Connected sock=7 [09:15: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 39 33 0F 01 00 00 6B 7F 07 01 70 97 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E1 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E1 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 CD A1 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 B5 94 01 00 35 04 06 00 F4 EB 32 6C 11 FA 81 03 91 FF 61 11 6E B5 [09:15:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 23 58 47 00 77 96 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 B5 94 01 00 F4 03 04 00 57 48 72 66 B6 04 01 00 00 EF AD 24 BC 53 AC 10 2D [09:15:48]CommunicateWithHost err = 0 [09:15:48]CheckOFDResponse [09:15:48]1017 (14) - 77093643461234 [09:15:48]1041 (16) - 0000000000875093 [09:15:48]1040 (4) - 103605 [09:15:48]1012 (4) - 19.06.2024 02:54 [09:15:48]1206 (1) - 0 [09:15:48]OFD Sender: Remove packet 103605 [09:15:48]ProducePacketName [09:15:48]name=ofd_packets/00103605 [09:15:48]NVStorageDeleteData [09:15:48]Write to MH i2c: 01 00 00 40 94 D4 [09:15:48]Write i2c OK [09:15:48]MH_I2C_Read... [09:15:48]Read from MH i2c: 01 [09:15:48]MH_I2C_Read... [09:15:48]Read from MH i2c: 01 07 00 [09:15:48]MH_I2C_Read... [09:15:48]Read from MH i2c: 01 07 00 40 94 00 00 00 00 00 F6 0C DD [09:15:48]RasterBufferAndPrint [09:15:48]line [09:15:48]line [09:15:48]line [09:15:48]line [09:15:48]line [09:15:48]written 0, free lines is 3326 [09:15:48]MH_Cut [09:15:48]Write to MH i2c: D1 01 00 47 94 01 AD [09:15:48]Write i2c OK [09:15:48]MH_I2C_Read... [09:15:48]Read from MH i2c: D1 [09:15:48]MH_I2C_Read... [09:15:48]Read from MH i2c: D1 01 00 [09:15:48]MH_I2C_Read... [09:15:48]Read from MH i2c: D1 01 00 47 94 00 AC [09:15:48]Write to MH i2c: 01 00 00 48 94 DC [09:15:48]Write i2c OK [09:15:48]MH_I2C_Read... [09:15:49]OFD Sender: No OFD packet to send [09:15:49]*** Cut start [09:15:49]*** Partial cut [09:15:49]*** CUTSNS_PIN = 1 [09:15:49]*** CUTSNS_PIN = 0 [09:15:49]*** Brake cut motor [09:15:50]Read from MH i2c: 01 [09:15:50]MH_I2C_Read... [09:15:50]*** Stop cut motor [09:15:50]*** Cut end [09:15:50]Read from MH i2c: 01 07 00 [09:15:50]MH_I2C_Read... [09:15:50]Read from MH i2c: 01 07 00 48 94 00 00 00 00 00 FF 0F F1 [09:15:50]process_action close_receipt done [09:15:50]requested_data is exist [09:15:50]produce_requested_data [09:15:50]requested_item fm.sn is exist - process it [09:15:50]wFMCommunicate request_size=4 [09:15:50]MH_SAM_APDU [09:15:50]CAPDU: 80 11 00 00 [09:15:50]Write to MH i2c: E2 08 00 49 94 80 11 00 00 00 00 00 00 57 [09:15:50]Write i2c OK [09:15:50]MH_I2C_Read... [09:15:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:15:50]Read from MH i2c: E2 [09:15:50]MH_I2C_Read... [09:15:50]Read from MH i2c: E2 17 00 [09:15:50]MH_I2C_Read... [09:15:50]Read from MH i2c: E2 17 00 49 94 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 AA [09:15:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [09:15:50]wFMCommunicate OK [09:15:50]requested_item fd.num is exist - process it [09:15:50]SAM_PROTO_GetFieldsCounters [09:15:50]wFMCommunicate request_size=4 [09:15:50]MH_SAM_APDU [09:15:50]CAPDU: 80 13 00 00 [09:15:50]Write to MH i2c: E2 08 00 4A 94 80 13 00 00 00 00 00 00 5A [09:15:50]Write i2c OK [09:15:50]MH_I2C_Read... [09:15:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:15:50]Read from MH i2c: E2 [09:15:50]MH_I2C_Read... [09:15:50]Read from MH i2c: E2 62 00 [09:15:50]MH_I2C_Read... [09:15:50]Read from MH i2c: E2 62 00 4A 94 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 B5 94 01 00 0E 04 04 00 61 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 96 [09:15: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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 B5 94 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 23 00 00 00 5E 04 04 00 23 00 00 00 57 04 04 00 24 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:15:50]wFMCommunicate OK [09:15:50]SAM_PROTO_GetFieldsCounters done [09:15:50]requested_item shift.num is exist - process it [09:15:50]requested_item shift.opened is exist - process it [09:15:50]req_shift_opened [09:15:50]FM_GetShiftState [09:15:50]SAM_PROTO_GetShiftState [09:15:50]wFMCommunicate request_size=4 [09:15:50]MH_SAM_APDU [09:15:50]CAPDU: 80 13 01 00 [09:15:50]Write to MH i2c: E2 08 00 4B 94 80 13 01 00 00 00 00 00 5C [09:15:50]Write i2c OK [09:15:50]MH_I2C_Read... [09:15:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:15:50]Read from MH i2c: E2 [09:15:50]MH_I2C_Read... [09:15:50]Read from MH i2c: E2 0E 00 [09:15:50]MH_I2C_Read... [09:15:50]Read from MH i2c: E2 0E 00 4B 94 00 09 00 01 04 26 72 66 00 00 00 00 90 00 6A [09:15:50]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [09:15:50]wFMCommunicate OK [09:15:50]SAM_PROTO_GetShiftState done [09:15:50]FM_GetShiftState done [09:15:50]req_shift_opened done [09:15:50]requested_item shift.open_date is exist - process it [09:15:50]req_shift_open_date [09:15:50]req_shift_open_date done [09:15:50]produce_requested_data done [09:15:50]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103605,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [09:15:50]process_action_free close_receipt [09:15:50]json_value_free [09:15:50]json_value_free done [09:15:50]process_json_proto returns [09:15:50]Send response to host [09:15:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103605,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [09:15:50]free response buf [09:15:50]execute_script done [09:15:50]execute_script returns [09:15:50]free content buf [09:15:50]Sock 9.Close socket [09:15:50]Sock 9.Thread stoped [09:15:54]OFD Sender: No OFD packet to send [09:15:59]OFD Sender: No OFD packet to send [09:16:04]OFD Sender: No OFD packet to send [09:16:09]OFD Sender: No OFD packet to send [09:16:14]OFD Sender: No OFD packet to send [09:16:19]OFD Sender: No OFD packet to send [09:16:24]OFD Sender: No OFD packet to send [09:16:29]OFD Sender: No OFD packet to send [09:16:34]OFD Sender: No OFD packet to send [09:16:39]OFD Sender: No OFD packet to send [09:16:44]OFD Sender: No OFD packet to send [09:16:49]OFD Sender: No OFD packet to send [09:16:52]accept exits with 10 [09:16:52]New connection [09:16:52]New thread 3067084132 created [09:16:52]Thread 3067227492 joined [09:16:52]Waiting for new connection... [09:16:52] Sock 10.Parse request [09:16:52]Sock 10.Check first char [09:16:52]Sock 10.First char is OK [09:16:52]request: POST /json_proto HTTP/1.0 [09:16:52]Method: POST [09:16:52]URL: /json_proto [09:16:52]Method is POST - this is cgi request [09:16:52]url: /json_proto [09:16:52]query_string will be loaded in cgi processing [09:16:52]execute_cgi json_proto POST (null) [09:16:52]execute_cgi path=json_proto method=POST [09:16:52]POST find Content-Length [09:16:52]Host: 172.17.38.133:8080 [09:16:52]Content-Length: 678 [09:16:52]Content-Type: application/json [09:16:52] [09:16:52]POST finish read [09:16:52]Found Content-Length = 678 [09:16:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672827", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 12.050, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:16:52]execute_script... [09:16:52]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672827", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 12.050, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:16:52]POST & json_proto [09:16:52]process_json_proto [09:16:52]json parsed OK: [09:16:52]protocol is kg_v1.0 [09:16:52]action value=close_receipt [09:16:52]process_action close_receipt [09:16:52]cmd_close_receipt [09:16:52]MH_GetDate [09:16:52]Write to MH i2c: F0 00 00 4C 94 CF [09:16:52]Write i2c OK [09:16:52]MH_I2C_Read... [09:16:52]Read from MH i2c: F0 [09:16:52]MH_I2C_Read... [09:16:52]Read from MH i2c: F0 09 00 [09:16:52]MH_I2C_Read... [09:16:52]Read from MH i2c: F0 09 00 4C 94 00 0F A2 72 66 BD 8F 7C 64 8D [09:16:52]GetLastDocTimeStamp 1718788557 [09:16:52]current date 1718788623 [09:16:52]FM_GetShiftState [09:16:52]SAM_PROTO_GetShiftState [09:16:52]wFMCommunicate request_size=4 [09:16:52]MH_SAM_APDU [09:16:52]CAPDU: 80 13 01 00 [09:16:52]Write to MH i2c: E2 08 00 4D 94 80 13 01 00 00 00 00 00 5E [09:16:52]Write i2c OK [09:16:52]MH_I2C_Read... [09:16:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:16:52]Read from MH i2c: E2 [09:16:52]MH_I2C_Read... [09:16:52]Read from MH i2c: E2 0E 00 [09:16:52]MH_I2C_Read... [09:16:52]Read from MH i2c: E2 0E 00 4D 94 00 09 00 01 04 26 72 66 00 00 00 00 90 00 6C [09:16:52]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [09:16:52]wFMCommunicate OK [09:16:52]SAM_PROTO_GetShiftState done [09:16:52]FM_GetShiftState done [09:16:52]opened in 1718756868 [09:16:52]opened+sec_in_day 1718843268 [09:16:52]quantity*price = 80012 [09:16:52]sum+1 = 80013 [09:16:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 36 19.06.2024 09:17 Смена: 353 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103606 ФПД: 147654702254351 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T091704&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103606&fm=147654702254351&tin=02508201610067®Number=0000000000092785&sum=80000 [09:16:53]StoreToDocumentArchive [09:16:53]shift 353 fd 103606 [09:16:53]save to /storage/0353/doc_00103606 [09:16:53]save last doc name /storage/0353/doc_00103606 to /storage/kkm_last_doc_name [09:16:53]save OK [09:16:53]Clear old archive folders... [09:16:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:16:53]tlvbuf is 01489900 [09:16:53]SAM_PROTO_ClearQueue [09:16:53]wFMCommunicate request_size=4 [09:16:53]MH_SAM_APDU [09:16:53]CAPDU: 80 09 00 00 [09:16:53]Write to MH i2c: E2 08 00 5A 94 80 09 00 00 00 00 00 00 60 [09:16:53]Write i2c OK [09:16:53]MH_I2C_Read... [09:16:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:16:53]Read from MH i2c: E2 [09:16:53]MH_I2C_Read... [09:16:53]Read from MH i2c: E2 03 00 [09:16:53]MH_I2C_Read... [09:16:53]Read from MH i2c: E2 03 00 5A 94 00 90 00 62 [09:16:53]RAPDU: 90 00 [09:16:53]wFMCommunicate OK [09:16:53]SAM_PROTO_ClearQueue done [09:16:53]KKMCreateOFDPacket [09:16:53]OFDProtocolAddRootSTLVToBuf [09:16:53]FM_MakeSignedData [09:16:53]FM_MakeSignedData [09:16:53]SAM_PROTO_SignData [09:16:53]wFMCommunicate request_size=4 [09:16:53]MH_SAM_APDU [09:16:53]CAPDU: 80 0D 01 02 [09:16:53]Write to MH i2c: E2 08 00 5B 94 80 0D 01 02 00 00 00 00 68 [09:16:53]Write i2c OK [09:16:53]MH_I2C_Read... [09:16:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:16:53]Read from MH i2c: E2 [09:16:53]MH_I2C_Read... [09:16:53]Read from MH i2c: E2 03 00 [09:16:53]MH_I2C_Read... [09:16:53]Read from MH i2c: E2 03 00 5B 94 00 90 00 63 [09:16:53]RAPDU: 90 00 [09:16:53]wFMCommunicate OK [09:16:53]wFMCommunicate request_size=255 [09:16:53]MH_SAM_APDU [09:16: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 12 2F 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 10 A2 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 B6 94 01 00 35 04 06 00 86 [09:16:53]Write to MH i2c: E2 02 01 5C 94 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 12 2F 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 10 A2 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 B6 94 01 00 35 04 06 00 86 00 00 F2 [09:16:53]Write i2c OK [09:16:53]MH_I2C_Read... [09:16:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:16:53]Read from MH i2c: E2 [09:16:53]MH_I2C_Read... [09:16:53]Read from MH i2c: E2 03 00 [09:16:53]MH_I2C_Read... [09:16:53]Read from MH i2c: E2 03 00 5C 94 00 90 00 64 [09:16:53]RAPDU: 90 00 [09:16:53]wFMCommunicate OK [09:16:53]wFMCommunicate request_size=10 [09:16:53]MH_SAM_APDU [09:16:53]CAPDU: 80 0D 02 02 05 4A 8A 13 C9 0F [09:16:53]Write to MH i2c: E2 0D 00 5D 94 80 0D 02 02 05 00 4A 8A 13 C9 0F 00 00 34 [09:16:53]Write i2c OK [09:16:53]MH_I2C_Read... [09:16:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:16:54]Read from MH i2c: E2 [09:16:54]MH_I2C_Read... [09:16:54]Read from MH i2c: E2 03 00 [09:16:54]MH_I2C_Read... [09:16:54]Read from MH i2c: E2 03 00 5D 94 00 90 00 65 [09:16:54]RAPDU: 90 00 [09:16:54]wFMCommunicate OK [09:16:54]wFMCommunicate request_size=4 [09:16:54]MH_SAM_APDU [09:16:54]CAPDU: 80 0D 03 02 [09:16:54]Write to MH i2c: E2 08 00 5E 94 80 0D 03 02 00 00 00 00 6D [09:16:54]Write i2c OK [09:16:54]MH_I2C_Read... [09:16:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:16:54]Read from MH i2c: E2 [09:16:54]MH_I2C_Read... [09:16:54]Read from MH i2c: E2 0B 00 [09:16:54]MH_I2C_Read... [09:16:54]Read from MH i2c: E2 0B 00 5E 94 00 CC 80 30 A6 EF AE DC 41 90 00 4A [09:16:54]RAPDU: CC 80 30 A6 EF AE DC 41 90 00 [09:16:54]wFMCommunicate OK [09:16:54]SAM_PROTO_SignData done [09:16:54]FM_MakeSignedData done [09:16:54]CreateOFDProtocolMessage [09:16:54]wFMCommunicate request_size=4 [09:16:54]MH_SAM_APDU [09:16:54]CAPDU: 80 11 00 00 [09:16:54]Write to MH i2c: E2 08 00 5F 94 80 11 00 00 00 00 00 00 6D [09:16:54]Write i2c OK [09:16:54]MH_I2C_Read... [09:16:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:16:54]Read from MH i2c: E2 [09:16:54]MH_I2C_Read... [09:16:54]Read from MH i2c: E2 17 00 [09:16:54]MH_I2C_Read... [09:16:54]Read from MH i2c: E2 17 00 5F 94 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 C0 [09:16:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [09:16:54]wFMCommunicate OK [09:16:54]CreateOFDProtocolMessage done [09:16:54]OFDSenderStorePacket 103606 [09:16:54]StoreOFDPacket docnum=103606 [09:16:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 5C 53 07 01 8C 23 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 12 2F 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 10 A2 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 B6 94 01 00 35 04 06 00 86 4A 8A 13 C9 0F CC 80 30 A6 EF AE DC 41 [09:16:54]CheckFolder [09:16:54]dirname=/storage/ofd_packets [09:16:54]CheckFolder done [09:16:54]ProducePacketName [09:16:54]name=ofd_packets/00103606 [09:16:54]NVStorageSaveData ofd_packets/00103606 [09:16:54]File name is /storage/ofd_packets/00103606 [09:16:54]Write 301 bytes [09:16:54]NVStorageSaveData done [09:16:54]OFDSenderStorePacket done [09:16:54]KKMCreateOFDPacket done [09:16:54]NVStorageSaveData kkm_last_timestamp [09:16:54]File name is /storage/kkm_last_timestamp [09:16:54]Write 4 bytes [09:16:54]NVStorageSaveData done [09:16:54]ExternCall_PrintAddStr [09:16:54]wPrintStart [09:16:54]Write to MH i2c: 01 00 00 60 94 F4 [09:16:54]Write i2c OK [09:16:54]MH_I2C_Read... [09:16:54]Read from MH i2c: 01 [09:16:54]MH_I2C_Read... [09:16:54]Read from MH i2c: 01 07 00 [09:16:54]MH_I2C_Read... [09:16:54]Read from MH i2c: 01 07 00 60 94 00 00 00 00 00 FF 0F 09 [09:16:54]RasterBufferAndPrint [09:16:54]line Счет N : (1)672827 [09:16:54]line ИНН: 02508201610067 [09:16:54]line Контрольно-Кассовый Чек [09:16:54]line ПРОДАЖА [09:16:54]line ТРК (МРК, ГНК) : 42 [09:16:54]line Товар: 2710124130 [09:16:54]line Аи-92-К-5 [09:16:54]line 12.050 * 66.40 [09:16:54]line = 800.12 [09:16:54]line НДС 12% НСП 1% [09:16:54]line > о реализуемом товаре [09:16:54]line ОКРУГЛЕНИЕ: -0.12 [09:16:54]line ИТОГО: 800.00 [09:16:54]line Внесено: 800.00 [09:16:54]line СДАЧА: 0.00 [09:16:54]line НСП 1% : 7.08 [09:16:54]line НДС 12% : 84.97 [09:16:54]line Наличными: 800.00 [09:16:54]line Безнал.: 0.00 [09:16:54]line Место: АЗС № 120 "Партнер Нефть" [09:16:54]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [09:16:54]line СНО: Общий режим [09:16:54]line Чек 36 19.06.2024 09:17 [09:16:54]line Смена: 353 ФФД: 1.0 [09:16:54]line ЗНМ: 0300000164 [09:16:54]line РНМ: 0000000000092785 [09:16:54]line Версия ККМ: 001 [09:16:54]line ФМ: 0000000000875093 [09:16:54]line ФД: 103606 [09:16:54]line ФПД: 147654702254351 [09:16:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T091704&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103606&fm=147654702254351&tin=02508201610067®Number=0000000000092785&sum=80000 [09:16:54]OFD Sender: Processing packet 103606 [packets to send 17, broken 16] [09:16:54]ProducePacketName [09:16:54]name=ofd_packets/00103606 [09:16:54]OFD Sender: To server: pG, [09:16:54]CommunicateWithHost lk.salyk.kg:30040 [09:16:54]ConnectInit lk.salyk.kg [09:16:54]written 0, free lines is 4095 [09:16:54]Connected sock=9 [09:16: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 39 33 0F 01 00 00 5C 53 07 01 8C 23 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 12 2F 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 10 A2 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 B6 94 01 00 35 04 06 00 86 4A 8A 13 C9 0F CC 80 30 A6 EF AE DC 41 [09:16:54]Write to MH i2c: 01 00 00 8B 94 1F [09:16:54]Write i2c OK [09:16:54]MH_I2C_Read... [09:16:54]Read from MH i2c: 01 [09:16:54]MH_I2C_Read... [09:16:54]Read from MH i2c: 01 07 00 [09:16:54]MH_I2C_Read... [09:16:54]Read from MH i2c: 01 07 00 8B 94 00 00 00 00 00 DC 0C 0E [09:16:54]RasterBufferAndPrint [09:16:54]line [09:16:54]line [09:16:54]line [09:16:54]line [09:16:54]line [09:16:54]written 0, free lines is 3298 [09:16:54]MH_Cut [09:16:54]Write to MH i2c: D1 01 00 92 94 01 F8 [09:16:54]Write i2c OK [09:16:54]MH_I2C_Read... [09:16:54]Read from MH i2c: D1 [09:16:54]MH_I2C_Read... [09:16:54]Read from MH i2c: D1 01 00 [09:16:54]MH_I2C_Read... [09:16:54]Read from MH i2c: D1 01 00 92 94 00 F7 [09:16:54]Write to MH i2c: 01 00 00 93 94 27 [09:16:54]Write i2c OK [09:16:54]MH_I2C_Read... [09:16: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 39 33 4F 00 00 00 48 33 47 00 4E 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 39 33 10 04 04 00 B6 94 01 00 F4 03 04 00 99 48 72 66 B6 04 01 00 00 61 73 48 24 86 81 13 9B [09:16:54]CommunicateWithHost err = 0 [09:16:54]CheckOFDResponse [09:16:54]1017 (14) - 77093643461234 [09:16:54]1041 (16) - 0000000000875093 [09:16:54]1040 (4) - 103606 [09:16:54]1012 (4) - 19.06.2024 02:55 [09:16:54]1206 (1) - 0 [09:16:54]OFD Sender: Remove packet 103606 [09:16:54]ProducePacketName [09:16:54]name=ofd_packets/00103606 [09:16:54]NVStorageDeleteData [09:16:55]OFD Sender: No OFD packet to send [09:16:55]*** Cut start [09:16:55]*** Partial cut [09:16:55]*** CUTSNS_PIN = 1 [09:16:55]*** CUTSNS_PIN = 0 [09:16:55]*** Brake cut motor [09:16:56]Read from MH i2c: 01 [09:16:56]MH_I2C_Read... [09:16:56]*** Stop cut motor [09:16:56]*** Cut end [09:16:56]Read from MH i2c: 01 07 00 [09:16:56]MH_I2C_Read... [09:16:56]Read from MH i2c: 01 07 00 93 94 00 00 00 00 00 FF 0F 3C [09:16:56]process_action close_receipt done [09:16:56]requested_data is exist [09:16:56]produce_requested_data [09:16:56]requested_item fm.sn is exist - process it [09:16:56]wFMCommunicate request_size=4 [09:16:56]MH_SAM_APDU [09:16:56]CAPDU: 80 11 00 00 [09:16:56]Write to MH i2c: E2 08 00 94 94 80 11 00 00 00 00 00 00 A2 [09:16:56]Write i2c OK [09:16:56]MH_I2C_Read... [09:16:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:16:56]Read from MH i2c: E2 [09:16:56]MH_I2C_Read... [09:16:56]Read from MH i2c: E2 17 00 [09:16:56]MH_I2C_Read... [09:16:56]Read from MH i2c: E2 17 00 94 94 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 F5 [09:16:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [09:16:56]wFMCommunicate OK [09:16:56]requested_item fd.num is exist - process it [09:16:56]SAM_PROTO_GetFieldsCounters [09:16:56]wFMCommunicate request_size=4 [09:16:56]MH_SAM_APDU [09:16:56]CAPDU: 80 13 00 00 [09:16:56]Write to MH i2c: E2 08 00 95 94 80 13 00 00 00 00 00 00 A5 [09:16:56]Write i2c OK [09:16:56]MH_I2C_Read... [09:16:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:16:56]Read from MH i2c: E2 [09:16:56]MH_I2C_Read... [09:16:56]Read from MH i2c: E2 62 00 [09:16:56]MH_I2C_Read... [09:16:56]Read from MH i2c: E2 62 00 95 94 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 B6 94 01 00 0E 04 04 00 61 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 E5 [09:16: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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 B6 94 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 24 00 00 00 5E 04 04 00 24 00 00 00 57 04 04 00 25 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:16:56]wFMCommunicate OK [09:16:56]SAM_PROTO_GetFieldsCounters done [09:16:56]requested_item shift.num is exist - process it [09:16:56]requested_item shift.opened is exist - process it [09:16:56]req_shift_opened [09:16:56]FM_GetShiftState [09:16:56]SAM_PROTO_GetShiftState [09:16:56]wFMCommunicate request_size=4 [09:16:56]MH_SAM_APDU [09:16:56]CAPDU: 80 13 01 00 [09:16:56]Write to MH i2c: E2 08 00 96 94 80 13 01 00 00 00 00 00 A7 [09:16:56]Write i2c OK [09:16:56]MH_I2C_Read... [09:16:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:16:56]Read from MH i2c: E2 [09:16:56]MH_I2C_Read... [09:16:56]Read from MH i2c: E2 0E 00 [09:16:56]MH_I2C_Read... [09:16:56]Read from MH i2c: E2 0E 00 96 94 00 09 00 01 04 26 72 66 00 00 00 00 90 00 B5 [09:16:56]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [09:16:56]wFMCommunicate OK [09:16:56]SAM_PROTO_GetShiftState done [09:16:56]FM_GetShiftState done [09:16:56]req_shift_opened done [09:16:56]requested_item shift.open_date is exist - process it [09:16:56]req_shift_open_date [09:16:56]req_shift_open_date done [09:16:56]produce_requested_data done [09:16:56]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103606,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [09:16:56]process_action_free close_receipt [09:16:56]json_value_free [09:16:56]json_value_free done [09:16:56]process_json_proto returns [09:16:56]Send response to host [09:16:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103606,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [09:16:56]free response buf [09:16:56]execute_script done [09:16:56]execute_script returns [09:16:56]free content buf [09:16:56]Sock 10.Close socket [09:16:56]Sock 10.Thread stoped [09:17:00]OFD Sender: No OFD packet to send [09:17:05]OFD Sender: No OFD packet to send [09:17:10]OFD Sender: No OFD packet to send [09:17:15]OFD Sender: No OFD packet to send [09:17:20]OFD Sender: No OFD packet to send [09:17:25]OFD Sender: No OFD packet to send [09:17:30]OFD Sender: No OFD packet to send [09:17:35]OFD Sender: No OFD packet to send [09:17:40]OFD Sender: No OFD packet to send [09:17:45]OFD Sender: No OFD packet to send [09:17:50]OFD Sender: No OFD packet to send [09:17:55]OFD Sender: No OFD packet to send [09:18:00]OFD Sender: No OFD packet to send [09:18:05]OFD Sender: No OFD packet to send [09:18:10]OFD Sender: No OFD packet to send [09:18:15]OFD Sender: No OFD packet to send [09:18:18]accept exits with 7 [09:18:18]New connection [09:18:18]New thread 3067227492 created [09:18:18]Thread 3067084132 joined [09:18:18]Waiting for new connection... [09:18:18] Sock 7.Parse request [09:18:18]Sock 7.Check first char [09:18:18]Sock 7.First char is OK [09:18:18]request: POST /json_proto HTTP/1.0 [09:18:18]Method: POST [09:18:18]URL: /json_proto [09:18:18]Method is POST - this is cgi request [09:18:18]url: /json_proto [09:18:18]query_string will be loaded in cgi processing [09:18:18]execute_cgi json_proto POST (null) [09:18:18]execute_cgi path=json_proto method=POST [09:18:18]POST find Content-Length [09:18:18]Host: 172.17.38.133:8080 [09:18:18]Content-Length: 678 [09:18:18]Content-Type: application/json [09:18:18] [09:18:18]POST finish read [09:18:18]Found Content-Length = 678 [09:18:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672829", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 13.560, "sum" : 900.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 900.00, "total" : 900.00, "payments": [ { "type": 0, "sum" : 900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:18:18]execute_script... [09:18: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)672829", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 13.560, "sum" : 900.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 900.00, "total" : 900.00, "payments": [ { "type": 0, "sum" : 900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:18:18]POST & json_proto [09:18:18]process_json_proto [09:18:18]json parsed OK: [09:18:18]protocol is kg_v1.0 [09:18:18]action value=close_receipt [09:18:18]process_action close_receipt [09:18:18]cmd_close_receipt [09:18:18]MH_GetDate [09:18:18]Write to MH i2c: F0 00 00 97 94 1A [09:18:18]Write i2c OK [09:18:18]MH_I2C_Read... [09:18:18]Read from MH i2c: F0 [09:18:18]MH_I2C_Read... [09:18:18]Read from MH i2c: F0 09 00 [09:18:18]MH_I2C_Read... [09:18:18]Read from MH i2c: F0 09 00 97 94 00 66 A2 72 66 BD 8F 7C 64 2F [09:18:18]GetLastDocTimeStamp 1718788624 [09:18:18]current date 1718788710 [09:18:18]FM_GetShiftState [09:18:18]SAM_PROTO_GetShiftState [09:18:18]wFMCommunicate request_size=4 [09:18:18]MH_SAM_APDU [09:18:18]CAPDU: 80 13 01 00 [09:18:18]Write to MH i2c: E2 08 00 98 94 80 13 01 00 00 00 00 00 A9 [09:18:18]Write i2c OK [09:18:18]MH_I2C_Read... [09:18:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:18:18]Read from MH i2c: E2 [09:18:18]MH_I2C_Read... [09:18:18]Read from MH i2c: E2 0E 00 [09:18:18]MH_I2C_Read... [09:18:18]Read from MH i2c: E2 0E 00 98 94 00 09 00 01 04 26 72 66 00 00 00 00 90 00 B7 [09:18:18]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [09:18:18]wFMCommunicate OK [09:18:18]SAM_PROTO_GetShiftState done [09:18:18]FM_GetShiftState done [09:18:18]opened in 1718756868 [09:18:18]opened+sec_in_day 1718843268 [09:18:18]quantity*price = 90038 [09:18:18]sum+1 = 90039 [09:18:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 900.00 Внесено: 900.00 СДАЧА: 0.00 НСП 1% : 7.97 НДС 12% : 95.62 Наличными: 900.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 37 19.06.2024 09:18 Смена: 353 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103607 ФПД: 7812654056957 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T091830&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103607&fm=7812654056957&tin=02508201610067®Number=0000000000092785&sum=90000 [09:18:19]StoreToDocumentArchive [09:18:19]shift 353 fd 103607 [09:18:19]save to /storage/0353/doc_00103607 [09:18:19]save last doc name /storage/0353/doc_00103607 to /storage/kkm_last_doc_name [09:18:19]save OK [09:18:19]Clear old archive folders... [09:18:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:18:19]tlvbuf is 014F3870 [09:18:19]SAM_PROTO_ClearQueue [09:18:19]wFMCommunicate request_size=4 [09:18:19]MH_SAM_APDU [09:18:19]CAPDU: 80 09 00 00 [09:18:19]Write to MH i2c: E2 08 00 A5 94 80 09 00 00 00 00 00 00 AB [09:18:19]Write i2c OK [09:18:19]MH_I2C_Read... [09:18:19]Read from MH i2c: E2 [09:18:19]MH_I2C_Read... [09:18:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:18:19]Read from MH i2c: E2 03 00 [09:18:19]MH_I2C_Read... [09:18:19]Read from MH i2c: E2 03 00 A5 94 00 90 00 AD [09:18:19]RAPDU: 90 00 [09:18:19]wFMCommunicate OK [09:18:19]SAM_PROTO_ClearQueue done [09:18:19]KKMCreateOFDPacket [09:18:19]OFDProtocolAddRootSTLVToBuf [09:18:19]FM_MakeSignedData [09:18:19]FM_MakeSignedData [09:18:19]SAM_PROTO_SignData [09:18:19]wFMCommunicate request_size=4 [09:18:19]MH_SAM_APDU [09:18:19]CAPDU: 80 0D 01 02 [09:18:19]Write to MH i2c: E2 08 00 A6 94 80 0D 01 02 00 00 00 00 B3 [09:18:19]Write i2c OK [09:18:19]MH_I2C_Read... [09:18:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:18:19]Read from MH i2c: E2 [09:18:19]MH_I2C_Read... [09:18:19]Read from MH i2c: E2 03 00 [09:18:19]MH_I2C_Read... [09:18:19]Read from MH i2c: E2 03 00 A6 94 00 90 00 AE [09:18:19]RAPDU: 90 00 [09:18:19]wFMCommunicate OK [09:18:19]wFMCommunicate request_size=255 [09:18:19]MH_SAM_APDU [09:18: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 F8 34 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 B6 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 66 A2 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 B7 94 01 00 35 04 06 00 07 [09:18:19]Write to MH i2c: E2 02 01 A7 94 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F8 34 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 B6 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 66 A2 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 B7 94 01 00 35 04 06 00 07 00 00 47 [09:18:20]Write i2c OK [09:18:20]MH_I2C_Read... [09:18:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:18:20]Read from MH i2c: E2 [09:18:20]MH_I2C_Read... [09:18:20]Read from MH i2c: E2 03 00 [09:18:20]MH_I2C_Read... [09:18:20]Read from MH i2c: E2 03 00 A7 94 00 90 00 AF [09:18:20]RAPDU: 90 00 [09:18:20]wFMCommunicate OK [09:18:20]wFMCommunicate request_size=10 [09:18:20]MH_SAM_APDU [09:18:20]CAPDU: 80 0D 02 02 05 1B 06 78 45 FD [09:18:20]Write to MH i2c: E2 0D 00 A8 94 80 0D 02 02 05 00 1B 06 78 45 FD 00 00 9B [09:18:20]Write i2c OK [09:18:20]MH_I2C_Read... [09:18:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:18:20]Read from MH i2c: E2 [09:18:20]MH_I2C_Read... [09:18:20]Read from MH i2c: E2 03 00 [09:18:20]MH_I2C_Read... [09:18:20]Read from MH i2c: E2 03 00 A8 94 00 90 00 B0 [09:18:20]RAPDU: 90 00 [09:18:20]wFMCommunicate OK [09:18:20]wFMCommunicate request_size=4 [09:18:20]MH_SAM_APDU [09:18:20]CAPDU: 80 0D 03 02 [09:18:20]Write to MH i2c: E2 08 00 A9 94 80 0D 03 02 00 00 00 00 B8 [09:18:20]Write i2c OK [09:18:20]MH_I2C_Read... [09:18:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:18:20]Read from MH i2c: E2 [09:18:20]MH_I2C_Read... [09:18:20]Read from MH i2c: E2 0B 00 [09:18:20]MH_I2C_Read... [09:18:20]Read from MH i2c: E2 0B 00 A9 94 00 AC E6 F3 EF 39 E7 F7 FA 90 00 3E [09:18:20]RAPDU: AC E6 F3 EF 39 E7 F7 FA 90 00 [09:18:20]wFMCommunicate OK [09:18:20]SAM_PROTO_SignData done [09:18:20]FM_MakeSignedData done [09:18:20]CreateOFDProtocolMessage [09:18:20]wFMCommunicate request_size=4 [09:18:20]MH_SAM_APDU [09:18:20]CAPDU: 80 11 00 00 [09:18:20]Write to MH i2c: E2 08 00 AA 94 80 11 00 00 00 00 00 00 B8 [09:18:20]Write i2c OK [09:18:20]MH_I2C_Read... [09:18:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:18:20]Read from MH i2c: E2 [09:18:20]MH_I2C_Read... [09:18:20]Read from MH i2c: E2 17 00 [09:18:20]MH_I2C_Read... [09:18:20]Read from MH i2c: E2 17 00 AA 94 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 0B [09:18:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [09:18:20]wFMCommunicate OK [09:18:20]CreateOFDProtocolMessage done [09:18:20]OFDSenderStorePacket 103607 [09:18:20]StoreOFDPacket docnum=103607 [09:18:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 56 C5 07 01 BE 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 F8 34 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 B6 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 66 A2 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 B7 94 01 00 35 04 06 00 07 1B 06 78 45 FD AC E6 F3 EF 39 E7 F7 FA [09:18:20]CheckFolder [09:18:20]dirname=/storage/ofd_packets [09:18:20]CheckFolder done [09:18:20]ProducePacketName [09:18:20]name=ofd_packets/00103607 [09:18:20]NVStorageSaveData ofd_packets/00103607 [09:18:20]File name is /storage/ofd_packets/00103607 [09:18:20]Write 301 bytes [09:18:20]NVStorageSaveData done [09:18:20]OFDSenderStorePacket done [09:18:20]KKMCreateOFDPacket done [09:18:20]NVStorageSaveData kkm_last_timestamp [09:18:20]File name is /storage/kkm_last_timestamp [09:18:20]Write 4 bytes [09:18:20]NVStorageSaveData done [09:18:20]ExternCall_PrintAddStr [09:18:20]wPrintStart [09:18:20]Write to MH i2c: 01 00 00 AB 94 3F [09:18:20]Write i2c OK [09:18:20]MH_I2C_Read... [09:18:20]Read from MH i2c: 01 [09:18:20]MH_I2C_Read... [09:18:20]Read from MH i2c: 01 07 00 [09:18:20]MH_I2C_Read... [09:18:20]Read from MH i2c: 01 07 00 AB 94 00 00 00 00 00 FF 0F 54 [09:18:20]RasterBufferAndPrint [09:18:20]line Счет N : (1)672829 [09:18:20]line ИНН: 02508201610067 [09:18:20]line Контрольно-Кассовый Чек [09:18:20]line ПРОДАЖА [09:18:20]line ТРК (МРК, ГНК) : 32 [09:18:20]line Товар: 2710124130 [09:18:20]line Аи-92-К-5 [09:18:20]line 13.560 * 66.40 [09:18:20]line = 900.38 [09:18:20]line НДС 12% НСП 1% [09:18:20]line > о реализуемом товаре [09:18:20]line ОКРУГЛЕНИЕ: -0.38 [09:18:20]line ИТОГО: 900.00 [09:18:20]line Внесено: 900.00 [09:18:20]line СДАЧА: 0.00 [09:18:20]line НСП 1% : 7.97 [09:18:20]line НДС 12% : 95.62 [09:18:20]line Наличными: 900.00 [09:18:20]line Безнал.: 0.00 [09:18:20]line Место: АЗС № 120 "Партнер Нефть" [09:18:20]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [09:18:20]line СНО: Общий режим [09:18:20]line Чек 37 19.06.2024 09:18 [09:18:20]line Смена: 353 ФФД: 1.0 [09:18:20]line ЗНМ: 0300000164 [09:18:20]line РНМ: 0000000000092785 [09:18:20]line Версия ККМ: 001 [09:18:20]line ФМ: 0000000000875093 [09:18:20]line ФД: 103607 [09:18:20]line ФПД: 7812654056957 [09:18:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T091830&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103607&fm=7812654056957&tin=02508201610067®Number=0000000000092785&sum=90000 [09:18:20]written 0, free lines is 4095 [09:18:20]OFD Sender: Processing packet 103607 [packets to send 17, broken 16] [09:18:20]ProducePacketName [09:18:20]name=ofd_packets/00103607 [09:18:20]OFD Sender: To server: pG, [09:18:20]CommunicateWithHost lk.salyk.kg:30040 [09:18:20]ConnectInit lk.salyk.kg [09:18:20]Connected sock=10 [09:18: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 39 33 0F 01 00 00 56 C5 07 01 BE 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 F8 34 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 B6 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 66 A2 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 B7 94 01 00 35 04 06 00 07 1B 06 78 45 FD AC E6 F3 EF 39 E7 F7 FA [09:18: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 39 33 4F 00 00 00 38 F1 47 00 30 AE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 B7 94 01 00 F4 03 04 00 EF 48 72 66 B6 04 01 00 00 7A E6 17 D2 D3 ED AF 94 [09:18:21]CommunicateWithHost err = 0 [09:18:21]CheckOFDResponse [09:18:21]1017 (14) - 77093643461234 [09:18:21]1041 (16) - 0000000000875093 [09:18:21]1040 (4) - 103607 [09:18:21]1012 (4) - 19.06.2024 02:56 [09:18:21]1206 (1) - 0 [09:18:21]OFD Sender: Remove packet 103607 [09:18:21]ProducePacketName [09:18:21]name=ofd_packets/00103607 [09:18:21]NVStorageDeleteData [09:18:21]Write to MH i2c: 01 00 00 D6 94 6A [09:18:21]Write i2c OK [09:18:21]MH_I2C_Read... [09:18:21]Read from MH i2c: 01 [09:18:21]MH_I2C_Read... [09:18:21]Read from MH i2c: 01 07 00 [09:18:21]MH_I2C_Read... [09:18:21]Read from MH i2c: 01 07 00 D6 94 00 00 00 00 00 D6 0C 53 [09:18:21]RasterBufferAndPrint [09:18:21]line [09:18:21]line [09:18:21]line [09:18:21]line [09:18:21]line [09:18:21]written 0, free lines is 3293 [09:18:21]MH_Cut [09:18:21]Write to MH i2c: D1 01 00 DD 94 01 43 [09:18:21]Write i2c OK [09:18:21]MH_I2C_Read... [09:18:21]Read from MH i2c: D1 [09:18:21]MH_I2C_Read... [09:18:21]Read from MH i2c: D1 01 00 [09:18:21]MH_I2C_Read... [09:18:21]Read from MH i2c: D1 01 00 DD 94 00 42 [09:18:21]Write to MH i2c: 01 00 00 DE 94 72 [09:18:21]Write i2c OK [09:18:21]MH_I2C_Read... [09:18:21]OFD Sender: No OFD packet to send [09:18:21]*** Cut start [09:18:21]*** Partial cut [09:18:21]*** CUTSNS_PIN = 1 [09:18:22]*** CUTSNS_PIN = 0 [09:18:22]*** Brake cut motor [09:18:22]Read from MH i2c: 01 [09:18:22]MH_I2C_Read... [09:18:22]*** Stop cut motor [09:18:22]*** Cut end [09:18:22]Read from MH i2c: 01 07 00 [09:18:22]MH_I2C_Read... [09:18:22]Read from MH i2c: 01 07 00 DE 94 00 00 00 00 00 FF 0F 87 [09:18:22]process_action close_receipt done [09:18:22]requested_data is exist [09:18:22]produce_requested_data [09:18:22]requested_item fm.sn is exist - process it [09:18:22]wFMCommunicate request_size=4 [09:18:22]MH_SAM_APDU [09:18:22]CAPDU: 80 11 00 00 [09:18:22]Write to MH i2c: E2 08 00 DF 94 80 11 00 00 00 00 00 00 ED [09:18:22]Write i2c OK [09:18:22]MH_I2C_Read... [09:18:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:18:22]Read from MH i2c: E2 [09:18:22]MH_I2C_Read... [09:18:22]Read from MH i2c: E2 17 00 [09:18:22]MH_I2C_Read... [09:18:22]Read from MH i2c: E2 17 00 DF 94 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 40 [09:18:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [09:18:22]wFMCommunicate OK [09:18:22]requested_item fd.num is exist - process it [09:18:22]SAM_PROTO_GetFieldsCounters [09:18:22]wFMCommunicate request_size=4 [09:18:22]MH_SAM_APDU [09:18:22]CAPDU: 80 13 00 00 [09:18:22]Write to MH i2c: E2 08 00 E0 94 80 13 00 00 00 00 00 00 F0 [09:18:22]Write i2c OK [09:18:22]MH_I2C_Read... [09:18:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:18:22]Read from MH i2c: E2 [09:18:22]MH_I2C_Read... [09:18:22]Read from MH i2c: E2 62 00 [09:18:22]MH_I2C_Read... [09:18:22]Read from MH i2c: E2 62 00 E0 94 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 B7 94 01 00 0E 04 04 00 61 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 34 [09:18:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 B7 94 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 25 00 00 00 5E 04 04 00 25 00 00 00 57 04 04 00 26 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:18:22]wFMCommunicate OK [09:18:22]SAM_PROTO_GetFieldsCounters done [09:18:22]requested_item shift.num is exist - process it [09:18:22]requested_item shift.opened is exist - process it [09:18:22]req_shift_opened [09:18:22]FM_GetShiftState [09:18:22]SAM_PROTO_GetShiftState [09:18:22]wFMCommunicate request_size=4 [09:18:22]MH_SAM_APDU [09:18:22]CAPDU: 80 13 01 00 [09:18:22]Write to MH i2c: E2 08 00 E1 94 80 13 01 00 00 00 00 00 F2 [09:18:22]Write i2c OK [09:18:22]MH_I2C_Read... [09:18:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:18:22]Read from MH i2c: E2 [09:18:22]MH_I2C_Read... [09:18:22]Read from MH i2c: E2 0E 00 [09:18:22]MH_I2C_Read... [09:18:22]Read from MH i2c: E2 0E 00 E1 94 00 09 00 01 04 26 72 66 00 00 00 00 90 00 00 [09:18:22]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [09:18:22]wFMCommunicate OK [09:18:22]SAM_PROTO_GetShiftState done [09:18:22]FM_GetShiftState done [09:18:22]req_shift_opened done [09:18:22]requested_item shift.open_date is exist - process it [09:18:22]req_shift_open_date [09:18:22]req_shift_open_date done [09:18:22]produce_requested_data done [09:18:22]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103607,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [09:18:22]process_action_free close_receipt [09:18:22]json_value_free [09:18:22]json_value_free done [09:18:22]process_json_proto returns [09:18:22]Send response to host [09:18:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103607,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [09:18:22]free response buf [09:18:22]execute_script done [09:18:22]execute_script returns [09:18:22]free content buf [09:18:22]Sock 7.Close socket [09:18:22]Sock 7.Thread stoped [09:18:26]OFD Sender: No OFD packet to send [09:18:31]OFD Sender: No OFD packet to send [09:18:36]OFD Sender: No OFD packet to send [09:18:37]accept exits with 9 [09:18:37]New connection [09:18:37]New thread 3067084132 created [09:18:37]Thread 3067227492 joined [09:18:37]Waiting for new connection... [09:18:37] Sock 9.Parse request [09:18:37]Sock 9.Check first char [09:18:37]Sock 9.First char is OK [09:18:37]request: POST /json_proto HTTP/1.0 [09:18:37]Method: POST [09:18:37]URL: /json_proto [09:18:37]Method is POST - this is cgi request [09:18:37]url: /json_proto [09:18:37]query_string will be loaded in cgi processing [09:18:37]execute_cgi json_proto POST (null) [09:18:37]execute_cgi path=json_proto method=POST [09:18:37]POST find Content-Length [09:18:37]Host: 172.17.38.133:8080 [09:18:37]Content-Length: 806 [09:18:37]Content-Type: application/json [09:18:37] [09:18:37]POST finish read [09:18:37]Found Content-Length = 806 [09:18:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672828", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 10.290, "sum" : 750.14, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 750.14 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:18:37]execute_script... [09:18:37]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672828", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 10.290, "sum" : 750.14, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 750.14 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:18:37]POST & json_proto [09:18:37]process_json_proto [09:18:37]json parsed OK: [09:18:37]protocol is kg_v1.0 [09:18:37]action value=close_receipt [09:18:37]process_action close_receipt [09:18:37]cmd_close_receipt [09:18:37]MH_GetDate [09:18:37]Write to MH i2c: F0 00 00 E2 94 65 [09:18:37]Write i2c OK [09:18:37]MH_I2C_Read... [09:18:37]Read from MH i2c: F0 [09:18:37]MH_I2C_Read... [09:18:37]Read from MH i2c: F0 09 00 [09:18:37]MH_I2C_Read... [09:18:37]Read from MH i2c: F0 09 00 E2 94 00 79 A2 72 66 BD 8F 7C 64 8D [09:18:37]GetLastDocTimeStamp 1718788710 [09:18:37]current date 1718788729 [09:18:37]FM_GetShiftState [09:18:37]SAM_PROTO_GetShiftState [09:18:37]wFMCommunicate request_size=4 [09:18:37]MH_SAM_APDU [09:18:37]CAPDU: 80 13 01 00 [09:18:37]Write to MH i2c: E2 08 00 E3 94 80 13 01 00 00 00 00 00 F4 [09:18:37]Write i2c OK [09:18:37]MH_I2C_Read... [09:18:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:18:37]Read from MH i2c: E2 [09:18:37]MH_I2C_Read... [09:18:37]Read from MH i2c: E2 0E 00 [09:18:37]MH_I2C_Read... [09:18:37]Read from MH i2c: E2 0E 00 E3 94 00 09 00 01 04 26 72 66 00 00 00 00 90 00 02 [09:18:37]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [09:18:37]wFMCommunicate OK [09:18:37]SAM_PROTO_GetShiftState done [09:18:37]FM_GetShiftState done [09:18:37]opened in 1718756868 [09:18:37]opened+sec_in_day 1718843268 [09:18:37]quantity*price = 75014 [09:18:37]sum+1 = 75015 [09:18:37]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 750.14 НСП 1% : 6.64 НДС 12% : 79.66 Наличными: 0.00 Безнал.: 750.14 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 38 19.06.2024 09:18 Смена: 353 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000875093 ФД: 103608 ФПД: 223699430984384 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T091849&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103608&fm=223699430984384&tin=02508201610067®Number=0000000000092785&sum=75014 [09:18:38]StoreToDocumentArchive [09:18:38]shift 353 fd 103608 [09:18:38]save to /storage/0353/doc_00103608 [09:18:38]save last doc name /storage/0353/doc_00103608 to /storage/kkm_last_doc_name [09:18:38]save OK [09:18:38]Clear old archive folders... [09:18:38]ProcessDocumentItem done err = 0, tmpTLVsize=252 [09:18:38]tlvbuf is 013585A0 [09:18:38]SAM_PROTO_ClearQueue [09:18:38]wFMCommunicate request_size=4 [09:18:38]MH_SAM_APDU [09:18:38]CAPDU: 80 09 00 00 [09:18:38]Write to MH i2c: E2 08 00 F0 94 80 09 00 00 00 00 00 00 F6 [09:18:38]Write i2c OK [09:18:38]MH_I2C_Read... [09:18:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:18:38]Read from MH i2c: E2 [09:18:38]MH_I2C_Read... [09:18:38]Read from MH i2c: E2 03 00 [09:18:38]MH_I2C_Read... [09:18:38]Read from MH i2c: E2 03 00 F0 94 00 90 00 F8 [09:18:38]RAPDU: 90 00 [09:18:38]wFMCommunicate OK [09:18:38]SAM_PROTO_ClearQueue done [09:18:38]KKMCreateOFDPacket [09:18:38]OFDProtocolAddRootSTLVToBuf [09:18:38]FM_MakeSignedData [09:18:38]FM_MakeSignedData [09:18:38]SAM_PROTO_SignData [09:18:38]wFMCommunicate request_size=4 [09:18:38]MH_SAM_APDU [09:18:38]CAPDU: 80 0D 01 02 [09:18:38]Write to MH i2c: E2 08 00 F1 94 80 0D 01 02 00 00 00 00 FE [09:18:38]Write i2c OK [09:18:38]MH_I2C_Read... [09:18:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:18:38]Read from MH i2c: E2 [09:18:38]MH_I2C_Read... [09:18:38]Read from MH i2c: E2 03 00 [09:18:38]MH_I2C_Read... [09:18:38]Read from MH i2c: E2 03 00 F1 94 00 90 00 F9 [09:18:38]RAPDU: 90 00 [09:18:38]wFMCommunicate OK [09:18:38]wFMCommunicate request_size=255 [09:18:38]MH_SAM_APDU [09:18:38]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 32 28 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 06 25 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 06 25 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 98 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1E 1F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 06 25 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 79 A2 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 B8 94 01 00 35 04 06 00 [09:18:38]Write to MH i2c: E2 02 01 F2 94 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 32 28 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 06 25 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 06 25 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 98 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1E 1F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 06 25 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 79 A2 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 B8 94 01 00 35 04 06 00 00 00 5C [09:18:38]Write i2c OK [09:18:38]MH_I2C_Read... [09:18:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:18:39]Read from MH i2c: E2 [09:18:39]MH_I2C_Read... [09:18:39]Read from MH i2c: E2 03 00 [09:18:39]MH_I2C_Read... [09:18:39]Read from MH i2c: E2 03 00 F2 94 00 90 00 FA [09:18:39]RAPDU: 90 00 [09:18:39]wFMCommunicate OK [09:18:39]wFMCommunicate request_size=11 [09:18:39]MH_SAM_APDU [09:18:39]CAPDU: 80 0D 02 02 06 CB 74 15 1E CA C0 [09:18:39]Write to MH i2c: E2 0E 00 F3 94 80 0D 02 02 06 00 CB 74 15 1E CA C0 00 00 09 [09:18:39]Write i2c OK [09:18:39]MH_I2C_Read... [09:18:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:18:39]Read from MH i2c: E2 [09:18:39]MH_I2C_Read... [09:18:39]Read from MH i2c: E2 03 00 [09:18:39]MH_I2C_Read... [09:18:39]Read from MH i2c: E2 03 00 F3 94 00 90 00 FB [09:18:39]RAPDU: 90 00 [09:18:39]wFMCommunicate OK [09:18:39]wFMCommunicate request_size=4 [09:18:39]MH_SAM_APDU [09:18:39]CAPDU: 80 0D 03 02 [09:18:39]Write to MH i2c: E2 08 00 F4 94 80 0D 03 02 00 00 00 00 03 [09:18:39]Write i2c OK [09:18:39]MH_I2C_Read... [09:18:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:18:39]Read from MH i2c: E2 [09:18:39]MH_I2C_Read... [09:18:39]Read from MH i2c: E2 0B 00 [09:18:39]MH_I2C_Read... [09:18:39]Read from MH i2c: E2 0B 00 F4 94 00 E4 1F 3F 57 E4 91 8C 3D 90 00 DB [09:18:39]RAPDU: E4 1F 3F 57 E4 91 8C 3D 90 00 [09:18:39]wFMCommunicate OK [09:18:39]SAM_PROTO_SignData done [09:18:39]FM_MakeSignedData done [09:18:39]CreateOFDProtocolMessage [09:18:39]wFMCommunicate request_size=4 [09:18:39]MH_SAM_APDU [09:18:39]CAPDU: 80 11 00 00 [09:18:39]Write to MH i2c: E2 08 00 F5 94 80 11 00 00 00 00 00 00 03 [09:18:39]Write i2c OK [09:18:39]MH_I2C_Read... [09:18:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:18:39]Read from MH i2c: E2 [09:18:39]MH_I2C_Read... [09:18:39]Read from MH i2c: E2 17 00 [09:18:39]MH_I2C_Read... [09:18:39]Read from MH i2c: E2 17 00 F5 94 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 56 [09:18:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [09:18:39]wFMCommunicate OK [09:18:39]CreateOFDProtocolMessage done [09:18:39]OFDSenderStorePacket 103608 [09:18:39]StoreOFDPacket docnum=103608 [09:18:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 E6 50 08 01 96 93 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 32 28 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 06 25 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 06 25 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 98 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1E 1F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 06 25 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 79 A2 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 B8 94 01 00 35 04 06 00 CB 74 15 1E CA C0 E4 1F 3F 57 E4 91 8C 3D [09:18:39]CheckFolder [09:18:39]dirname=/storage/ofd_packets [09:18:39]CheckFolder done [09:18:39]ProducePacketName [09:18:39]name=ofd_packets/00103608 [09:18:39]NVStorageSaveData ofd_packets/00103608 [09:18:39]File name is /storage/ofd_packets/00103608 [09:18:39]Write 302 bytes [09:18:39]NVStorageSaveData done [09:18:39]OFDSenderStorePacket done [09:18:39]KKMCreateOFDPacket done [09:18:39]NVStorageSaveData kkm_last_timestamp [09:18:39]File name is /storage/kkm_last_timestamp [09:18:39]Write 4 bytes [09:18:39]NVStorageSaveData done [09:18:39]ExternCall_PrintAddStr [09:18:39]wPrintStart [09:18:39]Write to MH i2c: 01 00 00 F6 94 8A [09:18:39]Write i2c OK [09:18:39]MH_I2C_Read... [09:18:39]Read from MH i2c: 01 [09:18:39]MH_I2C_Read... [09:18:39]Read from MH i2c: 01 07 00 [09:18:39]MH_I2C_Read... [09:18:39]Read from MH i2c: 01 07 00 F6 94 00 00 00 00 00 FF 0F 9F [09:18:39]RasterBufferAndPrint [09:18:39]line Счет N : (1)672828 [09:18:39]line ИНН: 02508201610067 [09:18:39]line Контрольно-Кассовый Чек [09:18:39]line ПРОДАЖА [09:18:39]line ТРК (МРК, ГНК) : 11 [09:18:39]line Товар: 2710194210 [09:18:39]line ДТ(л)-К-5 [09:18:39]line 10.290 * 72.90 [09:18:39]line = 750.14 [09:18:39]line НДС 12% НСП 1% [09:18:39]line > о реализуемом товаре [09:18:39]line ИТОГО: 750.14 [09:18:39]line НСП 1% : 6.64 [09:18:39]line НДС 12% : 79.66 [09:18:39]line Наличными: 0.00 [09:18:39]line Безнал.: 750.14 [09:18:39]line Место: АЗС № 120 "Партнер Нефть" [09:18:39]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [09:18:39]line СНО: Общий режим [09:18:39]line Чек 38 19.06.2024 09:18 [09:18:39]line Смена: 353 ФФД: 1.0 [09:18:39]line ЗНМ: 0300000164 [09:18:39]line РНМ: 0000000000092785 [09:18:39]line Версия ККМ: 001 [09:18:39]line Платежная система: O! деньги [09:18:39]line ФМ: 0000000000875093 [09:18:39]line ФД: 103608 [09:18:39]line ФПД: 223699430984384 [09:18:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T091849&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103608&fm=223699430984384&tin=02508201610067®Number=0000000000092785&sum=75014 [09:18:39]OFD Sender: Processing packet 103608 [packets to send 17, broken 16] [09:18:39]ProducePacketName [09:18:39]name=ofd_packets/00103608 [09:18:39]OFD Sender: To server: pG, [09:18:39]CommunicateWithHost lk.salyk.kg:30040 [09:18:39]ConnectInit lk.salyk.kg [09:18:39]written 0, free lines is 4095 [09:18:39]Connected sock=7 [09:18:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 E6 50 08 01 96 93 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 32 28 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 06 25 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 06 25 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 98 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1E 1F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 06 25 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 79 A2 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 B8 94 01 00 35 04 06 00 CB 74 15 1E CA C0 E4 1F 3F 57 E4 91 8C 3D [09:18:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 45 38 47 00 79 BB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 B8 94 01 00 F4 03 04 00 02 49 72 66 B6 04 01 00 00 8C 20 78 A1 4D D9 35 13 [09:18:39]CommunicateWithHost err = 0 [09:18:39]CheckOFDResponse [09:18:39]1017 (14) - 77093643461234 [09:18:39]1041 (16) - 0000000000875093 [09:18:39]1040 (4) - 103608 [09:18:39]1012 (4) - 19.06.2024 02:57 [09:18:39]1206 (1) - 0 [09:18:39]OFD Sender: Remove packet 103608 [09:18:39]ProducePacketName [09:18:39]name=ofd_packets/00103608 [09:18:39]NVStorageDeleteData [09:18:40]Write to MH i2c: 01 00 00 20 95 B5 [09:18:40]Write i2c OK [09:18:40]MH_I2C_Read... [09:18:40]Read from MH i2c: 01 [09:18:40]MH_I2C_Read... [09:18:40]Read from MH i2c: 01 07 00 [09:18:40]MH_I2C_Read... [09:18:40]Read from MH i2c: 01 07 00 20 95 00 00 00 00 00 F4 0C BC [09:18:40]RasterBufferAndPrint [09:18:40]line [09:18:40]line [09:18:40]line [09:18:40]line [09:18:40]line [09:18:40]written 0, free lines is 3323 [09:18:40]MH_Cut [09:18:40]Write to MH i2c: D1 01 00 27 95 01 8E [09:18:40]Write i2c OK [09:18:40]MH_I2C_Read... [09:18:40]Read from MH i2c: D1 [09:18:40]MH_I2C_Read... [09:18:40]Read from MH i2c: D1 01 00 [09:18:40]MH_I2C_Read... [09:18:40]Read from MH i2c: D1 01 00 27 95 00 8D [09:18:40]Write to MH i2c: 01 00 00 28 95 BD [09:18:40]Write i2c OK [09:18:40]MH_I2C_Read... [09:18:40]OFD Sender: No OFD packet to send [09:18:40]*** Cut start [09:18:40]*** Partial cut [09:18:40]*** CUTSNS_PIN = 1 [09:18:40]*** CUTSNS_PIN = 0 [09:18:41]*** Brake cut motor [09:18:41]Read from MH i2c: 01 [09:18:41]MH_I2C_Read... [09:18:41]*** Stop cut motor [09:18:41]*** Cut end [09:18:41]Read from MH i2c: 01 07 00 [09:18:41]MH_I2C_Read... [09:18:41]Read from MH i2c: 01 07 00 28 95 00 00 00 00 00 FF 0F D2 [09:18:41]process_action close_receipt done [09:18:41]requested_data is exist [09:18:41]produce_requested_data [09:18:41]requested_item fm.sn is exist - process it [09:18:41]wFMCommunicate request_size=4 [09:18:41]MH_SAM_APDU [09:18:41]CAPDU: 80 11 00 00 [09:18:41]Write to MH i2c: E2 08 00 29 95 80 11 00 00 00 00 00 00 38 [09:18:41]Write i2c OK [09:18:41]MH_I2C_Read... [09:18:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:18:41]Read from MH i2c: E2 [09:18:41]MH_I2C_Read... [09:18:41]Read from MH i2c: E2 17 00 [09:18:41]MH_I2C_Read... [09:18:41]Read from MH i2c: E2 17 00 29 95 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 8B [09:18:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [09:18:41]wFMCommunicate OK [09:18:41]requested_item fd.num is exist - process it [09:18:41]SAM_PROTO_GetFieldsCounters [09:18:41]wFMCommunicate request_size=4 [09:18:41]MH_SAM_APDU [09:18:41]CAPDU: 80 13 00 00 [09:18:41]Write to MH i2c: E2 08 00 2A 95 80 13 00 00 00 00 00 00 3B [09:18:41]Write i2c OK [09:18:41]MH_I2C_Read... [09:18:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:18:41]Read from MH i2c: E2 [09:18:41]MH_I2C_Read... [09:18:41]Read from MH i2c: E2 62 00 [09:18:41]MH_I2C_Read... [09:18:41]Read from MH i2c: E2 62 00 2A 95 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 B8 94 01 00 0E 04 04 00 61 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 83 [09:18:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 B8 94 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 26 00 00 00 5E 04 04 00 26 00 00 00 57 04 04 00 27 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:18:41]wFMCommunicate OK [09:18:41]SAM_PROTO_GetFieldsCounters done [09:18:41]requested_item shift.num is exist - process it [09:18:41]requested_item shift.opened is exist - process it [09:18:41]req_shift_opened [09:18:41]FM_GetShiftState [09:18:41]SAM_PROTO_GetShiftState [09:18:41]wFMCommunicate request_size=4 [09:18:41]MH_SAM_APDU [09:18:41]CAPDU: 80 13 01 00 [09:18:41]Write to MH i2c: E2 08 00 2B 95 80 13 01 00 00 00 00 00 3D [09:18:41]Write i2c OK [09:18:41]MH_I2C_Read... [09:18:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:18:41]Read from MH i2c: E2 [09:18:41]MH_I2C_Read... [09:18:41]Read from MH i2c: E2 0E 00 [09:18:41]MH_I2C_Read... [09:18:41]Read from MH i2c: E2 0E 00 2B 95 00 09 00 01 04 26 72 66 00 00 00 00 90 00 4B [09:18:41]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [09:18:41]wFMCommunicate OK [09:18:41]SAM_PROTO_GetShiftState done [09:18:41]FM_GetShiftState done [09:18:41]req_shift_opened done [09:18:41]requested_item shift.open_date is exist - process it [09:18:41]req_shift_open_date [09:18:41]req_shift_open_date done [09:18:41]produce_requested_data done [09:18:41]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103608,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [09:18:41]process_action_free close_receipt [09:18:41]json_value_free [09:18:41]json_value_free done [09:18:41]process_json_proto returns [09:18:41]Send response to host [09:18:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103608,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [09:18:41]free response buf [09:18:41]execute_script done [09:18:41]execute_script returns [09:18:41]free content buf [09:18:41]Sock 9.Close socket [09:18:41]Sock 9.Thread stoped [09:18:45]OFD Sender: No OFD packet to send [09:18:50]OFD Sender: No OFD packet to send [09:18:55]OFD Sender: No OFD packet to send [09:19:00]OFD Sender: No OFD packet to send [09:19:05]OFD Sender: No OFD packet to send [09:19:10]OFD Sender: No OFD packet to send [09:19:15]OFD Sender: No OFD packet to send [09:19:20]OFD Sender: No OFD packet to send [09:19:25]OFD Sender: No OFD packet to send [09:19:30]OFD Sender: No OFD packet to send [09:19:35]OFD Sender: No OFD packet to send [09:19:40]OFD Sender: No OFD packet to send [09:19:45]OFD Sender: No OFD packet to send [09:19:50]OFD Sender: No OFD packet to send [09:19:55]OFD Sender: No OFD packet to send [09:20:00]OFD Sender: No OFD packet to send [09:20:05]OFD Sender: No OFD packet to send [09:20:10]OFD Sender: No OFD packet to send [09:20:15]OFD Sender: No OFD packet to send [09:20:20]OFD Sender: No OFD packet to send [09:20:25]OFD Sender: No OFD packet to send [09:20:30]OFD Sender: No OFD packet to send [09:20:35]OFD Sender: No OFD packet to send [09:20:40]OFD Sender: No OFD packet to send [09:20:45]OFD Sender: No OFD packet to send [09:20:50]OFD Sender: No OFD packet to send [09:20:55]OFD Sender: No OFD packet to send [09:21:00]OFD Sender: No OFD packet to send [09:21:05]OFD Sender: No OFD packet to send [09:21:10]OFD Sender: No OFD packet to send [09:21:15]OFD Sender: No OFD packet to send [09:21:20]OFD Sender: No OFD packet to send [09:21:25]OFD Sender: No OFD packet to send [09:21:30]OFD Sender: No OFD packet to send [09:21:35]OFD Sender: No OFD packet to send [09:21:40]OFD Sender: No OFD packet to send [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]OFD Sender: No OFD packet to send [09:22:55]OFD Sender: No OFD packet to send [09:23:00]OFD Sender: No OFD packet to send [09:23:05]OFD Sender: No OFD packet to send [09:23:10]OFD Sender: No OFD packet to send [09:23:15]OFD Sender: No OFD packet to send [09:23:20]OFD Sender: No OFD packet to send [09:23:25]OFD Sender: No OFD packet to send [09:23:30]OFD Sender: No OFD packet to send [09:23:35]OFD Sender: No OFD packet to send [09:23:40]OFD Sender: No OFD packet to send [09:23:45]OFD Sender: No OFD packet to send [09:23:50]OFD Sender: No OFD packet to send [09:23:55]OFD Sender: No OFD packet to send [09:24:00]OFD Sender: No OFD packet to send [09:24:05]OFD Sender: No OFD packet to send [09:24:10]OFD Sender: No OFD packet to send [09:24:15]OFD Sender: No OFD packet to send [09:24:20]OFD Sender: No OFD packet to send [09:24:25]OFD Sender: No OFD packet to send [09:24:30]OFD Sender: No OFD packet to send [09:24:35]OFD Sender: No OFD packet to send [09:24:40]OFD Sender: No OFD packet to send [09:24:45]OFD Sender: No OFD packet to send [09:24:50]OFD Sender: No OFD packet to send [09:24:55]OFD Sender: No OFD packet to send [09:25:00]OFD Sender: No OFD packet to send [09:25:05]accept exits with 10 [09:25:05]New connection [09:25:05]New thread 3067227492 created [09:25:05]Thread 3067084132 joined [09:25:05]Waiting for new connection... [09:25:05] Sock 10.Parse request [09:25:05]Sock 10.Check first char [09:25:05]Sock 10.First char is OK [09:25:05]request: POST /json_proto HTTP/1.0 [09:25:05]Method: POST [09:25:05]URL: /json_proto [09:25:05]Method is POST - this is cgi request [09:25:05]url: /json_proto [09:25:05]query_string will be loaded in cgi processing [09:25:05]execute_cgi json_proto POST (null) [09:25:05]execute_cgi path=json_proto method=POST [09:25:05]POST find Content-Length [09:25:05]Host: 172.17.38.133:8080 [09:25:05]Content-Length: 682 [09:25:05]Content-Type: application/json [09:25:05] [09:25:05]POST finish read [09:25:05]Found Content-Length = 682 [09:25:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672830", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 30.130, "sum" : 2000.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:25:05]execute_script... [09:25: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)672830", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 30.130, "sum" : 2000.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:25:05]POST & json_proto [09:25:05]process_json_proto [09:25:05]json parsed OK: [09:25:05]protocol is kg_v1.0 [09:25:05]action value=close_receipt [09:25:05]process_action close_receipt [09:25:05]cmd_close_receipt [09:25:05]MH_GetDate [09:25:05]Write to MH i2c: F0 00 00 2C 95 B0 [09:25:05]Write i2c OK [09:25:05]MH_I2C_Read... [09:25:05]Read from MH i2c: F0 [09:25:05]MH_I2C_Read... [09:25:05]Read from MH i2c: F0 09 00 [09:25:05]MH_I2C_Read... [09:25:05]Read from MH i2c: F0 09 00 2C 95 00 FD A3 72 66 BD 8F 7C 64 5D [09:25:05]GetLastDocTimeStamp 1718788729 [09:25:05]current date 1718789117 [09:25:05]FM_GetShiftState [09:25:05]SAM_PROTO_GetShiftState [09:25:05]wFMCommunicate request_size=4 [09:25:05]MH_SAM_APDU [09:25:05]CAPDU: 80 13 01 00 [09:25:05]Write to MH i2c: E2 08 00 2D 95 80 13 01 00 00 00 00 00 3F [09:25:05]Write i2c OK [09:25:05]MH_I2C_Read... [09:25:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:25:05]Read from MH i2c: E2 [09:25:05]MH_I2C_Read... [09:25:05]Read from MH i2c: E2 0E 00 [09:25:05]MH_I2C_Read... [09:25:05]Read from MH i2c: E2 0E 00 2D 95 00 09 00 01 04 26 72 66 00 00 00 00 90 00 4D [09:25:05]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [09:25:05]wFMCommunicate OK [09:25:05]SAM_PROTO_GetShiftState done [09:25:05]FM_GetShiftState done [09:25:05]opened in 1718756868 [09:25:05]opened+sec_in_day 1718843268 [09:25:05]quantity*price = 200063 [09:25:05]sum+1 = 200064 [09:25:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.46 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 39 19.06.2024 09:25 Смена: 353 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103609 ФПД: 196197545552027 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T092517&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103609&fm=196197545552027&tin=02508201610067®Number=0000000000092785&sum=200000 [09:25:06]StoreToDocumentArchive [09:25:06]shift 353 fd 103609 [09:25:06]save to /storage/0353/doc_00103609 [09:25:06]save last doc name /storage/0353/doc_00103609 to /storage/kkm_last_doc_name [09:25:06]save OK [09:25:06]Clear old archive folders... [09:25:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:25:06]tlvbuf is 015D8120 [09:25:06]SAM_PROTO_ClearQueue [09:25:06]wFMCommunicate request_size=4 [09:25:06]MH_SAM_APDU [09:25:06]CAPDU: 80 09 00 00 [09:25:06]Write to MH i2c: E2 08 00 3A 95 80 09 00 00 00 00 00 00 41 [09:25:06]Write i2c OK [09:25:06]MH_I2C_Read... [09:25:06]Read from MH i2c: E2 [09:25:06]MH_I2C_Read... [09:25:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:25:06]Read from MH i2c: E2 03 00 [09:25:06]MH_I2C_Read... [09:25:06]Read from MH i2c: E2 03 00 3A 95 00 90 00 43 [09:25:06]RAPDU: 90 00 [09:25:06]wFMCommunicate OK [09:25:06]SAM_PROTO_ClearQueue done [09:25:06]KKMCreateOFDPacket [09:25:06]OFDProtocolAddRootSTLVToBuf [09:25:06]FM_MakeSignedData [09:25:06]FM_MakeSignedData [09:25:06]SAM_PROTO_SignData [09:25:06]wFMCommunicate request_size=4 [09:25:06]MH_SAM_APDU [09:25:06]CAPDU: 80 0D 01 02 [09:25:06]Write to MH i2c: E2 08 00 3B 95 80 0D 01 02 00 00 00 00 49 [09:25:06]Write i2c OK [09:25:06]MH_I2C_Read... [09:25:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:25:06]Read from MH i2c: E2 [09:25:06]MH_I2C_Read... [09:25:06]Read from MH i2c: E2 03 00 [09:25:06]MH_I2C_Read... [09:25:06]Read from MH i2c: E2 03 00 3B 95 00 90 00 44 [09:25:06]RAPDU: 90 00 [09:25:06]wFMCommunicate OK [09:25:06]wFMCommunicate request_size=255 [09:25:06]MH_SAM_APDU [09:25: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 B2 75 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FE 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 FD A3 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 B9 94 01 00 35 04 06 00 B2 [09:25:06]Write to MH i2c: E2 02 01 3C 95 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B2 75 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FE 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 FD A3 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 B9 94 01 00 35 04 06 00 B2 00 00 F9 [09:25:06]Write i2c OK [09:25:06]MH_I2C_Read... [09:25:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:25:06]Read from MH i2c: E2 [09:25:07]MH_I2C_Read... [09:25:07]Read from MH i2c: E2 03 00 [09:25:07]MH_I2C_Read... [09:25:07]Read from MH i2c: E2 03 00 3C 95 00 90 00 45 [09:25:07]RAPDU: 90 00 [09:25:07]wFMCommunicate OK [09:25:07]wFMCommunicate request_size=10 [09:25:07]MH_SAM_APDU [09:25:07]CAPDU: 80 0D 02 02 05 70 CD 02 28 9B [09:25:07]Write to MH i2c: E2 0D 00 3D 95 80 0D 02 02 05 00 70 CD 02 28 9B 00 00 58 [09:25:07]Write i2c OK [09:25:07]MH_I2C_Read... [09:25:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:25:07]Read from MH i2c: E2 [09:25:07]MH_I2C_Read... [09:25:07]Read from MH i2c: E2 03 00 [09:25:07]MH_I2C_Read... [09:25:07]Read from MH i2c: E2 03 00 3D 95 00 90 00 46 [09:25:07]RAPDU: 90 00 [09:25:07]wFMCommunicate OK [09:25:07]wFMCommunicate request_size=4 [09:25:07]MH_SAM_APDU [09:25:07]CAPDU: 80 0D 03 02 [09:25:07]Write to MH i2c: E2 08 00 3E 95 80 0D 03 02 00 00 00 00 4E [09:25:07]Write i2c OK [09:25:07]MH_I2C_Read... [09:25:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:25:07]Read from MH i2c: E2 [09:25:07]MH_I2C_Read... [09:25:07]Read from MH i2c: E2 0B 00 [09:25:07]MH_I2C_Read... [09:25:07]Read from MH i2c: E2 0B 00 3E 95 00 E1 78 90 64 03 50 81 96 90 00 06 [09:25:07]RAPDU: E1 78 90 64 03 50 81 96 90 00 [09:25:07]wFMCommunicate OK [09:25:07]SAM_PROTO_SignData done [09:25:07]FM_MakeSignedData done [09:25:07]CreateOFDProtocolMessage [09:25:07]wFMCommunicate request_size=4 [09:25:07]MH_SAM_APDU [09:25:07]CAPDU: 80 11 00 00 [09:25:07]Write to MH i2c: E2 08 00 3F 95 80 11 00 00 00 00 00 00 4E [09:25:07]Write i2c OK [09:25:07]MH_I2C_Read... [09:25:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:25:07]Read from MH i2c: E2 [09:25:07]MH_I2C_Read... [09:25:07]Read from MH i2c: E2 17 00 [09:25:07]MH_I2C_Read... [09:25:07]Read from MH i2c: E2 17 00 3F 95 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 A1 [09:25:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [09:25:07]wFMCommunicate OK [09:25:07]CreateOFDProtocolMessage done [09:25:07]OFDSenderStorePacket 103609 [09:25:07]StoreOFDPacket docnum=103609 [09:25:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 D6 B9 07 01 F3 9E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B2 75 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FE 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 FD A3 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 B9 94 01 00 35 04 06 00 B2 70 CD 02 28 9B E1 78 90 64 03 50 81 96 [09:25:07]CheckFolder [09:25:07]dirname=/storage/ofd_packets [09:25:07]CheckFolder done [09:25:07]ProducePacketName [09:25:07]name=ofd_packets/00103609 [09:25:07]NVStorageSaveData ofd_packets/00103609 [09:25:07]File name is /storage/ofd_packets/00103609 [09:25:07]Write 301 bytes [09:25:07]NVStorageSaveData done [09:25:07]OFDSenderStorePacket done [09:25:07]KKMCreateOFDPacket done [09:25:07]NVStorageSaveData kkm_last_timestamp [09:25:07]File name is /storage/kkm_last_timestamp [09:25:07]Write 4 bytes [09:25:07]NVStorageSaveData done [09:25:07]ExternCall_PrintAddStr [09:25:07]wPrintStart [09:25:07]Write to MH i2c: 01 00 00 40 95 D5 [09:25:07]Write i2c OK [09:25:07]MH_I2C_Read... [09:25:07]Read from MH i2c: 01 [09:25:07]MH_I2C_Read... [09:25:07]Read from MH i2c: 01 07 00 [09:25:07]MH_I2C_Read... [09:25:07]Read from MH i2c: 01 07 00 40 95 00 00 00 00 00 FF 0F EA [09:25:07]RasterBufferAndPrint [09:25:07]line Счет N : (1)672830 [09:25:07]line ИНН: 02508201610067 [09:25:07]line Контрольно-Кассовый Чек [09:25:07]line ПРОДАЖА [09:25:07]line ТРК (МРК, ГНК) : 32 [09:25:07]line Товар: 2710124130 [09:25:07]line Аи-92-К-5 [09:25:07]line 30.130 * 66.40 [09:25:07]line = 2000.63 [09:25:07]line НДС 12% НСП 1% [09:25:07]line > о реализуемом товаре [09:25:07]line ОКРУГЛЕНИЕ: -0.63 [09:25:07]line ИТОГО: 2000.00 [09:25:07]line Внесено: 2000.00 [09:25:07]line СДАЧА: 0.00 [09:25:07]line НСП 1% : 17.70 [09:25:07]line НДС 12% : 212.46 [09:25:07]line Наличными: 2000.00 [09:25:07]line Безнал.: 0.00 [09:25:07]line Место: АЗС № 120 "Партнер Нефть" [09:25:07]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [09:25:07]line СНО: Общий режим [09:25:07]line Чек 39 19.06.2024 09:25 [09:25:07]line Смена: 353 ФФД: 1.0 [09:25:07]line ЗНМ: 0300000164 [09:25:07]line РНМ: 0000000000092785 [09:25:07]line Версия ККМ: 001 [09:25:07]line ФМ: 0000000000875093 [09:25:07]line ФД: 103609 [09:25:07]line ФПД: 196197545552027 [09:25:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T092517&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103609&fm=196197545552027&tin=02508201610067®Number=0000000000092785&sum=200000 [09:25:07]OFD Sender: Processing packet 103609 [packets to send 17, broken 16] [09:25:07]ProducePacketName [09:25:07]name=ofd_packets/00103609 [09:25:07]OFD Sender: To server: pG, [09:25:07]CommunicateWithHost lk.salyk.kg:30040 [09:25:07]ConnectInit lk.salyk.kg [09:25:07]written 0, free lines is 4095 [09:25:07]Connected sock=9 [09:25: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 39 33 0F 01 00 00 D6 B9 07 01 F3 9E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B2 75 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FE 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 FD A3 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 B9 94 01 00 35 04 06 00 B2 70 CD 02 28 9B E1 78 90 64 03 50 81 96 [09:25: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 39 33 4F 00 00 00 22 84 47 00 FE 22 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 B9 94 01 00 F4 03 04 00 86 4A 72 66 B6 04 01 00 00 75 4A 14 F6 4B 0A 49 08 [09:25:07]CommunicateWithHost err = 0 [09:25:07]CheckOFDResponse [09:25:07]1017 (14) - 77093643461234 [09:25:07]1041 (16) - 0000000000875093 [09:25:07]1040 (4) - 103609 [09:25:07]1012 (4) - 19.06.2024 03:03 [09:25:07]1206 (1) - 0 [09:25:07]OFD Sender: Remove packet 103609 [09:25:07]ProducePacketName [09:25:07]name=ofd_packets/00103609 [09:25:07]NVStorageDeleteData [09:25:07]Write to MH i2c: 01 00 00 6B 95 00 [09:25:07]Write i2c OK [09:25:07]MH_I2C_Read... [09:25:07]Read from MH i2c: 01 [09:25:07]MH_I2C_Read... [09:25:07]Read from MH i2c: 01 07 00 [09:25:07]MH_I2C_Read... [09:25:07]Read from MH i2c: 01 07 00 6B 95 00 00 00 00 00 E5 0C F8 [09:25:07]RasterBufferAndPrint [09:25:07]line [09:25:07]line [09:25:07]line [09:25:07]line [09:25:07]line [09:25:07]written 0, free lines is 3307 [09:25:07]MH_Cut [09:25:07]Write to MH i2c: D1 01 00 72 95 01 D9 [09:25:07]Write i2c OK [09:25:07]MH_I2C_Read... [09:25:07]Read from MH i2c: D1 [09:25:07]MH_I2C_Read... [09:25:07]Read from MH i2c: D1 01 00 [09:25:07]MH_I2C_Read... [09:25:07]Read from MH i2c: D1 01 00 72 95 00 D8 [09:25:07]Write to MH i2c: 01 00 00 73 95 08 [09:25:07]Write i2c OK [09:25:07]MH_I2C_Read... [09:25:08]OFD Sender: No OFD packet to send [09:25:08]*** Cut start [09:25:08]*** Partial cut [09:25:08]*** CUTSNS_PIN = 1 [09:25:08]*** CUTSNS_PIN = 0 [09:25:08]*** Brake cut motor [09:25:09]Read from MH i2c: 01 [09:25:09]MH_I2C_Read... [09:25:09]*** Stop cut motor [09:25:09]*** Cut end [09:25:09]Read from MH i2c: 01 07 00 [09:25:09]MH_I2C_Read... [09:25:09]Read from MH i2c: 01 07 00 73 95 00 00 00 00 00 FF 0F 1D [09:25:09]process_action close_receipt done [09:25:09]requested_data is exist [09:25:09]produce_requested_data [09:25:09]requested_item fm.sn is exist - process it [09:25:09]wFMCommunicate request_size=4 [09:25:09]MH_SAM_APDU [09:25:09]CAPDU: 80 11 00 00 [09:25:09]Write to MH i2c: E2 08 00 74 95 80 11 00 00 00 00 00 00 83 [09:25:09]Write i2c OK [09:25:09]MH_I2C_Read... [09:25:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:25:09]Read from MH i2c: E2 [09:25:09]MH_I2C_Read... [09:25:09]Read from MH i2c: E2 17 00 [09:25:09]MH_I2C_Read... [09:25:09]Read from MH i2c: E2 17 00 74 95 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 D6 [09:25:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [09:25:09]wFMCommunicate OK [09:25:09]requested_item fd.num is exist - process it [09:25:09]SAM_PROTO_GetFieldsCounters [09:25:09]wFMCommunicate request_size=4 [09:25:09]MH_SAM_APDU [09:25:09]CAPDU: 80 13 00 00 [09:25:09]Write to MH i2c: E2 08 00 75 95 80 13 00 00 00 00 00 00 86 [09:25:09]Write i2c OK [09:25:09]MH_I2C_Read... [09:25:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:25:09]Read from MH i2c: E2 [09:25:09]MH_I2C_Read... [09:25:09]Read from MH i2c: E2 62 00 [09:25:09]MH_I2C_Read... [09:25:09]Read from MH i2c: E2 62 00 75 95 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 B9 94 01 00 0E 04 04 00 61 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 D2 [09:25:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 B9 94 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 27 00 00 00 5E 04 04 00 27 00 00 00 57 04 04 00 28 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:25:09]wFMCommunicate OK [09:25:09]SAM_PROTO_GetFieldsCounters done [09:25:09]requested_item shift.num is exist - process it [09:25:09]requested_item shift.opened is exist - process it [09:25:09]req_shift_opened [09:25:09]FM_GetShiftState [09:25:09]SAM_PROTO_GetShiftState [09:25:09]wFMCommunicate request_size=4 [09:25:09]MH_SAM_APDU [09:25:09]CAPDU: 80 13 01 00 [09:25:09]Write to MH i2c: E2 08 00 76 95 80 13 01 00 00 00 00 00 88 [09:25:09]Write i2c OK [09:25:09]MH_I2C_Read... [09:25:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:25:09]Read from MH i2c: E2 [09:25:09]MH_I2C_Read... [09:25:09]Read from MH i2c: E2 0E 00 [09:25:09]MH_I2C_Read... [09:25:09]Read from MH i2c: E2 0E 00 76 95 00 09 00 01 04 26 72 66 00 00 00 00 90 00 96 [09:25:09]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [09:25:09]wFMCommunicate OK [09:25:09]SAM_PROTO_GetShiftState done [09:25:09]FM_GetShiftState done [09:25:09]req_shift_opened done [09:25:09]requested_item shift.open_date is exist - process it [09:25:09]req_shift_open_date [09:25:09]req_shift_open_date done [09:25:09]produce_requested_data done [09:25:09]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103609,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [09:25:09]process_action_free close_receipt [09:25:09]json_value_free [09:25:09]json_value_free done [09:25:09]process_json_proto returns [09:25:09]Send response to host [09:25:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103609,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [09:25:09]free response buf [09:25:09]execute_script done [09:25:09]execute_script returns [09:25:09]free content buf [09:25:09]Sock 10.Close socket [09:25:09]Sock 10.Thread stoped [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:38]OFD Sender: No OFD packet to send [09:27:43]OFD Sender: No OFD packet to send [09:27:48]OFD Sender: No OFD packet to send [09:27:53]OFD Sender: No OFD packet to send [09:27:58]OFD Sender: No OFD packet to send [09:28:03]OFD Sender: No OFD packet to send [09:28:08]OFD Sender: No OFD packet to send [09:28:13]OFD Sender: No OFD packet to send [09:28:18]OFD Sender: No OFD packet to send [09:28:23]OFD Sender: No OFD packet to send [09:28:27]accept exits with 7 [09:28:27]New connection [09:28:27]New thread 3067084132 created [09:28:27]Thread 3067227492 joined [09:28:27]Waiting for new connection... [09:28:27] Sock 7.Parse request [09:28:27]Sock 7.Check first char [09:28:27]Sock 7.First char is OK [09:28:27]request: POST /json_proto HTTP/1.0 [09:28:27]Method: POST [09:28:27]URL: /json_proto [09:28:27]Method is POST - this is cgi request [09:28:27]url: /json_proto [09:28:27]query_string will be loaded in cgi processing [09:28:27]execute_cgi json_proto POST (null) [09:28:27]execute_cgi path=json_proto method=POST [09:28:27]POST find Content-Length [09:28:27]Host: 172.17.38.133:8080 [09:28:27]Content-Length: 808 [09:28:27]Content-Type: application/json [09:28:27] [09:28:27]POST finish read [09:28:27]Found Content-Length = 808 [09:28:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672831", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 13.720, "sum" : 1000.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.19 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:28:27]execute_script... [09:28: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)672831", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 13.720, "sum" : 1000.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.19 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:28:27]POST & json_proto [09:28:27]process_json_proto [09:28:27]json parsed OK: [09:28:27]protocol is kg_v1.0 [09:28:27]action value=close_receipt [09:28:27]process_action close_receipt [09:28:27]cmd_close_receipt [09:28:27]MH_GetDate [09:28:27]Write to MH i2c: F0 00 00 77 95 FB [09:28:27]Write i2c OK [09:28:27]MH_I2C_Read... [09:28:27]Read from MH i2c: F0 [09:28:27]MH_I2C_Read... [09:28:27]Read from MH i2c: F0 09 00 [09:28:27]MH_I2C_Read... [09:28:27]Read from MH i2c: F0 09 00 77 95 00 C7 A4 72 66 BD 8F 7C 64 73 [09:28:27]GetLastDocTimeStamp 1718789117 [09:28:27]current date 1718789319 [09:28:27]FM_GetShiftState [09:28:27]SAM_PROTO_GetShiftState [09:28:27]wFMCommunicate request_size=4 [09:28:27]MH_SAM_APDU [09:28:27]CAPDU: 80 13 01 00 [09:28:27]Write to MH i2c: E2 08 00 78 95 80 13 01 00 00 00 00 00 8A [09:28:27]Write i2c OK [09:28:27]MH_I2C_Read... [09:28:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:28:27]Read from MH i2c: E2 [09:28:27]MH_I2C_Read... [09:28:27]Read from MH i2c: E2 0E 00 [09:28:27]MH_I2C_Read... [09:28:27]Read from MH i2c: E2 0E 00 78 95 00 09 00 01 04 26 72 66 00 00 00 00 90 00 98 [09:28:27]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [09:28:27]wFMCommunicate OK [09:28:27]SAM_PROTO_GetShiftState done [09:28:27]FM_GetShiftState done [09:28:27]opened in 1718756868 [09:28:27]opened+sec_in_day 1718843268 [09:28:27]quantity*price = 100018 [09:28:27]sum+1 = 100020 [09:28:27]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.19 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.19 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 40 19.06.2024 09:28 Смена: 353 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000875093 ФД: 103610 ФПД: 131858996957379 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T092839&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103610&fm=131858996957379&tin=02508201610067®Number=0000000000092785&sum=100019 [09:28:29]StoreToDocumentArchive [09:28:29]shift 353 fd 103610 [09:28:29]save to /storage/0353/doc_00103610 [09:28:29]save last doc name /storage/0353/doc_00103610 to /storage/kkm_last_doc_name [09:28:29]save OK [09:28:29]Clear old archive folders... [09:28:29]ProcessDocumentItem done err = 0, tmpTLVsize=252 [09:28:29]tlvbuf is 01593CA0 [09:28:29]SAM_PROTO_ClearQueue [09:28:29]wFMCommunicate request_size=4 [09:28:29]MH_SAM_APDU [09:28:29]CAPDU: 80 09 00 00 [09:28:29]Write to MH i2c: E2 08 00 85 95 80 09 00 00 00 00 00 00 8C [09:28:29]Write i2c OK [09:28:29]MH_I2C_Read... [09:28:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:28:29]Read from MH i2c: E2 [09:28:29]MH_I2C_Read... [09:28:29]Read from MH i2c: E2 03 00 [09:28:29]MH_I2C_Read... [09:28:29]Read from MH i2c: E2 03 00 85 95 00 90 00 8E [09:28:29]RAPDU: 90 00 [09:28:29]wFMCommunicate OK [09:28:29]SAM_PROTO_ClearQueue done [09:28:29]KKMCreateOFDPacket [09:28:29]OFDProtocolAddRootSTLVToBuf [09:28:29]FM_MakeSignedData [09:28:29]FM_MakeSignedData [09:28:29]SAM_PROTO_SignData [09:28:29]wFMCommunicate request_size=4 [09:28:29]MH_SAM_APDU [09:28:29]CAPDU: 80 0D 01 02 [09:28:29]Write to MH i2c: E2 08 00 86 95 80 0D 01 02 00 00 00 00 94 [09:28:29]Write i2c OK [09:28:29]MH_I2C_Read... [09:28:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:28:29]Read from MH i2c: E2 [09:28:29]MH_I2C_Read... [09:28:29]Read from MH i2c: E2 03 00 [09:28:29]MH_I2C_Read... [09:28:29]Read from MH i2c: E2 03 00 86 95 00 90 00 8F [09:28:29]RAPDU: 90 00 [09:28:29]wFMCommunicate OK [09:28:29]wFMCommunicate request_size=255 [09:28:29]MH_SAM_APDU [09:28:29]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 C7 A4 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 BA 94 01 00 35 04 06 00 [09:28:29]Write to MH i2c: E2 02 01 87 95 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 C7 A4 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 BA 94 01 00 35 04 06 00 00 00 2A [09:28:29]Write i2c OK [09:28:29]MH_I2C_Read... [09:28:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:28:29]Read from MH i2c: E2 [09:28:29]MH_I2C_Read... [09:28:29]Read from MH i2c: E2 03 00 [09:28:29]MH_I2C_Read... [09:28:29]Read from MH i2c: E2 03 00 87 95 00 90 00 90 [09:28:29]RAPDU: 90 00 [09:28:29]wFMCommunicate OK [09:28:29]wFMCommunicate request_size=11 [09:28:29]MH_SAM_APDU [09:28:29]CAPDU: 80 0D 02 02 06 77 EC D0 AC 90 C3 [09:28:29]Write to MH i2c: E2 0E 00 88 95 80 0D 02 02 06 00 77 EC D0 AC 90 C3 00 00 D5 [09:28:29]Write i2c OK [09:28:29]MH_I2C_Read... [09:28:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:28:29]Read from MH i2c: E2 [09:28:29]MH_I2C_Read... [09:28:29]Read from MH i2c: E2 03 00 [09:28:29]MH_I2C_Read... [09:28:29]Read from MH i2c: E2 03 00 88 95 00 90 00 91 [09:28:29]RAPDU: 90 00 [09:28:29]wFMCommunicate OK [09:28:29]wFMCommunicate request_size=4 [09:28:29]MH_SAM_APDU [09:28:29]CAPDU: 80 0D 03 02 [09:28:29]Write to MH i2c: E2 08 00 89 95 80 0D 03 02 00 00 00 00 99 [09:28:29]Write i2c OK [09:28:29]MH_I2C_Read... [09:28:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:28:29]Read from MH i2c: E2 [09:28:29]MH_I2C_Read... [09:28:29]Read from MH i2c: E2 0B 00 [09:28:29]MH_I2C_Read... [09:28:29]Read from MH i2c: E2 0B 00 89 95 00 1E D8 C3 5B 8F FB C2 17 90 00 11 [09:28:29]RAPDU: 1E D8 C3 5B 8F FB C2 17 90 00 [09:28:29]wFMCommunicate OK [09:28:29]SAM_PROTO_SignData done [09:28:29]FM_MakeSignedData done [09:28:29]CreateOFDProtocolMessage [09:28:29]wFMCommunicate request_size=4 [09:28:29]MH_SAM_APDU [09:28:29]CAPDU: 80 11 00 00 [09:28:29]Write to MH i2c: E2 08 00 8A 95 80 11 00 00 00 00 00 00 99 [09:28:29]Write i2c OK [09:28:29]MH_I2C_Read... [09:28:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:28:29]Read from MH i2c: E2 [09:28:29]MH_I2C_Read... [09:28:29]Read from MH i2c: E2 17 00 [09:28:29]MH_I2C_Read... [09:28:29]Read from MH i2c: E2 17 00 8A 95 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 EC [09:28:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [09:28:29]wFMCommunicate OK [09:28:29]CreateOFDProtocolMessage done [09:28:29]OFDSenderStorePacket 103610 [09:28:29]StoreOFDPacket docnum=103610 [09:28:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 AA 26 08 01 2E 73 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 C7 A4 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 BA 94 01 00 35 04 06 00 77 EC D0 AC 90 C3 1E D8 C3 5B 8F FB C2 17 [09:28:29]CheckFolder [09:28:29]dirname=/storage/ofd_packets [09:28:29]CheckFolder done [09:28:29]ProducePacketName [09:28:29]name=ofd_packets/00103610 [09:28:29]NVStorageSaveData ofd_packets/00103610 [09:28:29]File name is /storage/ofd_packets/00103610 [09:28:29]Write 302 bytes [09:28:29]NVStorageSaveData done [09:28:29]OFDSenderStorePacket done [09:28:29]KKMCreateOFDPacket done [09:28:29]NVStorageSaveData kkm_last_timestamp [09:28:29]File name is /storage/kkm_last_timestamp [09:28:29]Write 4 bytes [09:28:29]NVStorageSaveData done [09:28:29]ExternCall_PrintAddStr [09:28:29]wPrintStart [09:28:29]Write to MH i2c: 01 00 00 8B 95 20 [09:28:29]Write i2c OK [09:28:29]MH_I2C_Read... [09:28:29]Read from MH i2c: 01 [09:28:29]MH_I2C_Read... [09:28:29]Read from MH i2c: 01 07 00 [09:28:29]MH_I2C_Read... [09:28:29]Read from MH i2c: 01 07 00 8B 95 00 00 00 00 00 FF 0F 35 [09:28:29]RasterBufferAndPrint [09:28:29]line Счет N : (1)672831 [09:28:29]line ИНН: 02508201610067 [09:28:29]line Контрольно-Кассовый Чек [09:28:29]line ПРОДАЖА [09:28:29]line ТРК (МРК, ГНК) : 21 [09:28:29]line Товар: 2710194210 [09:28:29]line ДТ(л)-К-5 [09:28:29]line 13.720 * 72.90 [09:28:29]line = 1000.19 [09:28:29]line НДС 12% НСП 1% [09:28:29]line > о реализуемом товаре [09:28:29]line ИТОГО: 1000.19 [09:28:29]line НСП 1% : 8.85 [09:28:29]line НДС 12% : 106.21 [09:28:29]line Наличными: 0.00 [09:28:29]line Безнал.: 1000.19 [09:28:29]line Место: АЗС № 120 "Партнер Нефть" [09:28:29]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [09:28:29]line СНО: Общий режим [09:28:29]line Чек 40 19.06.2024 09:28 [09:28:29]line Смена: 353 ФФД: 1.0 [09:28:29]line ЗНМ: 0300000164 [09:28:29]line РНМ: 0000000000092785 [09:28:29]line Версия ККМ: 001 [09:28:29]line Платежная система: O! деньги [09:28:29]line ФМ: 0000000000875093 [09:28:29]line ФД: 103610 [09:28:29]line ФПД: 131858996957379 [09:28:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T092839&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103610&fm=131858996957379&tin=02508201610067®Number=0000000000092785&sum=100019 [09:28:29]OFD Sender: Processing packet 103610 [packets to send 17, broken 16] [09:28:29]ProducePacketName [09:28:29]name=ofd_packets/00103610 [09:28:29]OFD Sender: To server: pG, [09:28:29]CommunicateWithHost lk.salyk.kg:30040 [09:28:29]ConnectInit lk.salyk.kg [09:28:29]written 0, free lines is 4095 [09:28:30]Connected sock=10 [09:28: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 39 33 10 01 00 00 AA 26 08 01 2E 73 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 C7 A4 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 BA 94 01 00 35 04 06 00 77 EC D0 AC 90 C3 1E D8 C3 5B 8F FB C2 17 [09:28: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 39 33 4F 00 00 00 72 E8 47 00 BB 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 39 33 10 04 04 00 BA 94 01 00 F4 03 04 00 50 4B 72 66 B6 04 01 00 00 B5 8B 3A 2A 2B 80 2F BD [09:28:30]CommunicateWithHost err = 0 [09:28:30]CheckOFDResponse [09:28:30]1017 (14) - 77093643461234 [09:28:30]1041 (16) - 0000000000875093 [09:28:30]1040 (4) - 103610 [09:28:30]1012 (4) - 19.06.2024 03:06 [09:28:30]1206 (1) - 0 [09:28:30]OFD Sender: Remove packet 103610 [09:28:30]ProducePacketName [09:28:30]name=ofd_packets/00103610 [09:28:30]NVStorageDeleteData [09:28:30]Write to MH i2c: 01 00 00 B5 95 4A [09:28:30]Write i2c OK [09:28:30]MH_I2C_Read... [09:28:30]Read from MH i2c: 01 [09:28:30]MH_I2C_Read... [09:28:30]Read from MH i2c: 01 07 00 [09:28:30]MH_I2C_Read... [09:28:30]Read from MH i2c: 01 07 00 B5 95 00 00 00 00 00 F2 0C 4F [09:28:30]RasterBufferAndPrint [09:28:30]line [09:28:30]line [09:28:30]line [09:28:30]line [09:28:30]line [09:28:30]written 0, free lines is 3320 [09:28:30]MH_Cut [09:28:30]Write to MH i2c: D1 01 00 BC 95 01 23 [09:28:30]Write i2c OK [09:28:30]MH_I2C_Read... [09:28:30]Read from MH i2c: D1 [09:28:30]MH_I2C_Read... [09:28:30]Read from MH i2c: D1 01 00 [09:28:30]MH_I2C_Read... [09:28:30]Read from MH i2c: D1 01 00 BC 95 00 22 [09:28:30]Write to MH i2c: 01 00 00 BD 95 52 [09:28:30]Write i2c OK [09:28:30]MH_I2C_Read... [09:28:30]OFD Sender: No OFD packet to send [09:28:31]*** Cut start [09:28:31]*** Partial cut [09:28:31]*** CUTSNS_PIN = 1 [09:28:31]*** CUTSNS_PIN = 0 [09:28:31]*** Brake cut motor [09:28:31]Read from MH i2c: 01 [09:28:31]MH_I2C_Read... [09:28:31]*** Stop cut motor [09:28:31]*** Cut end [09:28:31]Read from MH i2c: 01 07 00 [09:28:31]MH_I2C_Read... [09:28:31]Read from MH i2c: 01 07 00 BD 95 00 00 00 00 00 FF 0F 67 [09:28:31]process_action close_receipt done [09:28:31]requested_data is exist [09:28:31]produce_requested_data [09:28:31]requested_item fm.sn is exist - process it [09:28:31]wFMCommunicate request_size=4 [09:28:31]MH_SAM_APDU [09:28:31]CAPDU: 80 11 00 00 [09:28:31]Write to MH i2c: E2 08 00 BE 95 80 11 00 00 00 00 00 00 CD [09:28:31]Write i2c OK [09:28:31]MH_I2C_Read... [09:28:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:28:31]Read from MH i2c: E2 [09:28:31]MH_I2C_Read... [09:28:31]Read from MH i2c: E2 17 00 [09:28:31]MH_I2C_Read... [09:28:31]Read from MH i2c: E2 17 00 BE 95 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 20 [09:28:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [09:28:31]wFMCommunicate OK [09:28:31]requested_item fd.num is exist - process it [09:28:31]SAM_PROTO_GetFieldsCounters [09:28:31]wFMCommunicate request_size=4 [09:28:31]MH_SAM_APDU [09:28:31]CAPDU: 80 13 00 00 [09:28:31]Write to MH i2c: E2 08 00 BF 95 80 13 00 00 00 00 00 00 D0 [09:28:31]Write i2c OK [09:28:31]MH_I2C_Read... [09:28:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:28:31]Read from MH i2c: E2 [09:28:31]MH_I2C_Read... [09:28:31]Read from MH i2c: E2 62 00 [09:28:31]MH_I2C_Read... [09:28:31]Read from MH i2c: E2 62 00 BF 95 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 BA 94 01 00 0E 04 04 00 61 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 20 [09:28:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 BA 94 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 28 00 00 00 5E 04 04 00 28 00 00 00 57 04 04 00 29 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:28:31]wFMCommunicate OK [09:28:31]SAM_PROTO_GetFieldsCounters done [09:28:31]requested_item shift.num is exist - process it [09:28:31]requested_item shift.opened is exist - process it [09:28:31]req_shift_opened [09:28:31]FM_GetShiftState [09:28:31]SAM_PROTO_GetShiftState [09:28:31]wFMCommunicate request_size=4 [09:28:31]MH_SAM_APDU [09:28:31]CAPDU: 80 13 01 00 [09:28:31]Write to MH i2c: E2 08 00 C0 95 80 13 01 00 00 00 00 00 D2 [09:28:31]Write i2c OK [09:28:31]MH_I2C_Read... [09:28:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:28:31]Read from MH i2c: E2 [09:28:31]MH_I2C_Read... [09:28:31]Read from MH i2c: E2 0E 00 [09:28:31]MH_I2C_Read... [09:28:31]Read from MH i2c: E2 0E 00 C0 95 00 09 00 01 04 26 72 66 00 00 00 00 90 00 E0 [09:28:31]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [09:28:31]wFMCommunicate OK [09:28:31]SAM_PROTO_GetShiftState done [09:28:31]FM_GetShiftState done [09:28:31]req_shift_opened done [09:28:31]requested_item shift.open_date is exist - process it [09:28:31]req_shift_open_date [09:28:31]req_shift_open_date done [09:28:31]produce_requested_data done [09:28:31]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103610,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [09:28:31]process_action_free close_receipt [09:28:31]json_value_free [09:28:31]json_value_free done [09:28:31]process_json_proto returns [09:28:31]Send response to host [09:28:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103610,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [09:28:31]free response buf [09:28:32]execute_script done [09:28:32]execute_script returns [09:28:32]free content buf [09:28:32]Sock 7.Close socket [09:28:32]Sock 7.Thread stoped [09:28:35]OFD Sender: No OFD packet to send [09:28:40]OFD Sender: No OFD packet to send [09:28:45]OFD Sender: No OFD packet to send [09:28:50]OFD Sender: No OFD packet to send [09:28:55]OFD Sender: No OFD packet to send [09:29:00]OFD Sender: No OFD packet to send [09:29:05]OFD Sender: No OFD packet to send [09:29:10]OFD Sender: No OFD packet to send [09:29:15]OFD Sender: No OFD packet to send [09:29:20]OFD Sender: No OFD packet to send [09:29:25]OFD Sender: No OFD packet to send [09:29:30]OFD Sender: No OFD packet to send [09:29:35]OFD Sender: No OFD packet to send [09:29:40]OFD Sender: No OFD packet to send [09:29:45]OFD Sender: No OFD packet to send [09:29:50]OFD Sender: No OFD packet to send [09:29:55]OFD Sender: No OFD packet to send [09:30:00]OFD Sender: No OFD packet to send [09:30:05]OFD Sender: No OFD packet to send [09:30:10]OFD Sender: No OFD packet to send [09:30:15]OFD Sender: No OFD packet to send [09:30:20]OFD Sender: No OFD packet to send [09:30:25]OFD Sender: No OFD packet to send [09:30:30]OFD Sender: No OFD packet to send [09:30:35]OFD Sender: No OFD packet to send [09:30:40]OFD Sender: No OFD packet to send [09:30:45]OFD Sender: No OFD packet to send [09:30:50]OFD Sender: No OFD packet to send [09:30:55]OFD Sender: No OFD packet to send [09:31:00]OFD Sender: No OFD packet to send [09:31:05]OFD Sender: No OFD packet to send [09:31:10]OFD Sender: No OFD packet to send [09:31:15]OFD Sender: No OFD packet to send [09:31:20]OFD Sender: No OFD packet to send [09:31:25]OFD Sender: No OFD packet to send [09:31:30]OFD Sender: No OFD packet to send [09:31:35]OFD Sender: No OFD packet to send [09:31:40]OFD Sender: No OFD packet to send [09:31:45]OFD Sender: No OFD packet to send [09:31:50]OFD Sender: No OFD packet to send [09:31:56]OFD Sender: No OFD packet to send [09:32:01]OFD Sender: No OFD packet to send [09:32:06]OFD Sender: No OFD packet to send [09:32:11]OFD Sender: No OFD packet to send [09:32:16]OFD Sender: No OFD packet to send [09:32:21]OFD Sender: No OFD packet to send [09:32:26]OFD Sender: No OFD packet to send [09:32:31]OFD Sender: No OFD packet to send [09:32:36]OFD Sender: No OFD packet to send [09:32:41]OFD Sender: No OFD packet to send [09:32:46]OFD Sender: No OFD packet to send [09:32:51]OFD Sender: No OFD packet to send [09:32:56]OFD Sender: No OFD packet to send [09:33:01]OFD Sender: No OFD packet to send [09:33:06]OFD Sender: No OFD packet to send [09:33:11]OFD Sender: No OFD packet to send [09:33:16]OFD Sender: No OFD packet to send [09:33:21]OFD Sender: No OFD packet to send [09:33:26]OFD Sender: No OFD packet to send [09:33:31]OFD Sender: No OFD packet to send [09:33:36]OFD Sender: No OFD packet to send [09:33:41]OFD Sender: No OFD packet to send [09:33:46]OFD Sender: No OFD packet to send [09:33:51]OFD Sender: No OFD packet to send [09:33:56]OFD Sender: No OFD packet to send [09:34:01]OFD Sender: No OFD packet to send [09:34:06]OFD Sender: No OFD packet to send [09:34:11]OFD Sender: No OFD packet to send [09:34:16]OFD Sender: No OFD packet to send [09:34:21]OFD Sender: No OFD packet to send [09:34:26]OFD Sender: No OFD packet to send [09:34:31]OFD Sender: No OFD packet to send [09:34:36]OFD Sender: No OFD packet to send [09:34:41]OFD Sender: No OFD packet to send [09:34:46]OFD Sender: No OFD packet to send [09:34:51]OFD Sender: No OFD packet to send [09:34:56]OFD Sender: No OFD packet to send [09:35:01]OFD Sender: No OFD packet to send [09:35:06]OFD Sender: No OFD packet to send [09:35:11]OFD Sender: No OFD packet to send [09:35:16]OFD Sender: No OFD packet to send [09:35:21]OFD Sender: No OFD packet to send [09:35:26]OFD Sender: No OFD packet to send [09:35:31]OFD Sender: No OFD packet to send [09:35:36]OFD Sender: No OFD packet to send [09:35:41]OFD Sender: No OFD packet to send [09:35:46]OFD Sender: No OFD packet to send [09:35:51]OFD Sender: No OFD packet to send [09:35:56]OFD Sender: No OFD packet to send [09:36:01]OFD Sender: No OFD packet to send [09:36:06]OFD Sender: No OFD packet to send [09:36:11]OFD Sender: No OFD packet to send [09:36:16]OFD Sender: No OFD packet to send [09:36:21]OFD Sender: No OFD packet to send [09:36:26]OFD Sender: No OFD packet to send [09:36:31]OFD Sender: No OFD packet to send [09:36:36]OFD Sender: No OFD packet to send [09:36:41]OFD Sender: No OFD packet to send [09:36:46]OFD Sender: No OFD packet to send [09:36:51]OFD Sender: No OFD packet to send [09:36:56]OFD Sender: No OFD packet to send [09:37:01]OFD Sender: No OFD packet to send [09:37:04]accept exits with 9 [09:37:04]New connection [09:37:04]New thread 3067227492 created [09:37:04]Thread 3067084132 joined [09:37:04]Waiting for new connection... [09:37:04] Sock 9.Parse request [09:37:04]Sock 9.Check first char [09:37:04]Sock 9.First char is OK [09:37:04]request: POST /json_proto HTTP/1.0 [09:37:04]Method: POST [09:37:04]URL: /json_proto [09:37:04]Method is POST - this is cgi request [09:37:04]url: /json_proto [09:37:04]query_string will be loaded in cgi processing [09:37:04]execute_cgi json_proto POST (null) [09:37:04]execute_cgi path=json_proto method=POST [09:37:04]POST find Content-Length [09:37:04]Host: 172.17.38.133:8080 [09:37:04]Content-Length: 1169 [09:37:04]Content-Type: application/json [09:37:04] [09:37:04]POST finish read [09:37:04]Found Content-Length = 1169 [09:37: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 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. \u000A\u0421\u0447\u0435\u0442 N : (1)672838\u000A19.06.2024 09:14\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 42\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 66.40\u000A\u0418\u0422\u041E\u0413: 1328.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30101697\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:37:04]execute_script... [09:37: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 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. \u000A\u0421\u0447\u0435\u0442 N : (1)672838\u000A19.06.2024 09:14\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 42\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 66.40\u000A\u0418\u0422\u041E\u0413: 1328.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30101697\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:37:04]POST & json_proto [09:37:04]process_json_proto [09:37:04]json parsed OK: [09:37:04]protocol is kg_v1.0 [09:37:04]action value=print_text [09:37:04]process_action print_text [09:37:04]cmd_print_text [09:37:04]ExternCall_PrintAddStr [09:37:04]wPrintStart [09:37:04]Write to MH i2c: 01 00 00 C1 95 56 [09:37:04]Write i2c OK [09:37:04]MH_I2C_Read... [09:37:04]Read from MH i2c: 01 [09:37:04]MH_I2C_Read... [09:37:04]Read from MH i2c: 01 07 00 [09:37:04]MH_I2C_Read... [09:37:04]Read from MH i2c: 01 07 00 C1 95 00 00 00 00 00 FF 0F 6B [09:37:04]RasterBufferAndPrint [09:37:04]line *****ТОВАРНЫЙ ЧЕК***** [09:37:04]line АЗС 120 [09:37:04]line Партнер нефть [09:37:04]line 02508201610067 [09:37:04]line Кассир : Байбугуева Г. [09:37:04]line Счет N : (1)672838 [09:37:04]line 19.06.2024 09:14 [09:37:04]line ПРОДАЖА [09:37:04]line ТРК (МРК, ГНК): 42 [09:37:04]line Вид ГСМ : 2710124130 [09:37:04]line Аи-92-К-5 [09:37:04]line 20.000 x 66.40 [09:37:04]line ИТОГ: 1328.00 [09:37:04]line Тип оплаты: Талоны: ТК ГПНА Online [09:37:04]line 30101697 [09:37:04]line ______________________ [09:37:04]line (подпись) [09:37:04]written 0, free lines is 4095 [09:37:05]Write to MH i2c: 01 00 00 D5 95 6A [09:37:05]Write i2c OK [09:37:05]MH_I2C_Read... [09:37:05]Read from MH i2c: 01 [09:37:05]MH_I2C_Read... [09:37:05]Read from MH i2c: 01 07 00 [09:37:05]MH_I2C_Read... [09:37:05]Read from MH i2c: 01 07 00 D5 95 00 00 00 00 00 12 0E 91 [09:37:05]RasterBufferAndPrint [09:37:05]line [09:37:05]line [09:37:05]line [09:37:05]line [09:37:05]line [09:37:05]written 0, free lines is 3604 [09:37:05]MH_Cut [09:37:05]Write to MH i2c: D1 01 00 DC 95 01 43 [09:37:05]Write i2c OK [09:37:05]MH_I2C_Read... [09:37:05]Read from MH i2c: D1 [09:37:05]MH_I2C_Read... [09:37:05]Read from MH i2c: D1 01 00 [09:37:05]MH_I2C_Read... [09:37:05]Read from MH i2c: D1 01 00 DC 95 00 42 [09:37:05]Write to MH i2c: 01 00 00 DD 95 72 [09:37:05]Write i2c OK [09:37:05]MH_I2C_Read... [09:37:05]*** Cut start [09:37:05]*** Partial cut [09:37:05]*** CUTSNS_PIN = 1 [09:37:05]*** CUTSNS_PIN = 0 [09:37:05]*** Brake cut motor [09:37:06]Read from MH i2c: 01 [09:37:06]MH_I2C_Read... [09:37:06]Read from MH i2c: 01 07 00 [09:37:06]MH_I2C_Read... [09:37:06]*** Stop cut motor [09:37:06]*** Cut end [09:37:06]Read from MH i2c: 01 07 00 DD 95 00 00 00 00 00 FF 0F 87 [09:37:06]process_action print_text done [09:37:06]requested_data is exist [09:37:06]produce_requested_data [09:37:06]requested_item fm.sn is exist - process it [09:37:06]wFMCommunicate request_size=4 [09:37:06]MH_SAM_APDU [09:37:06]CAPDU: 80 11 00 00 [09:37:06]Write to MH i2c: E2 08 00 DE 95 80 11 00 00 00 00 00 00 ED [09:37:06]Write i2c OK [09:37:06]MH_I2C_Read... [09:37:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:37:06]Read from MH i2c: E2 [09:37:06]MH_I2C_Read... [09:37:06]Read from MH i2c: E2 17 00 [09:37:06]MH_I2C_Read... [09:37:06]Read from MH i2c: E2 17 00 DE 95 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 40 [09:37:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [09:37:06]wFMCommunicate OK [09:37:06]requested_item fd.num is exist - process it [09:37:06]SAM_PROTO_GetFieldsCounters [09:37:06]wFMCommunicate request_size=4 [09:37:06]MH_SAM_APDU [09:37:06]CAPDU: 80 13 00 00 [09:37:06]Write to MH i2c: E2 08 00 DF 95 80 13 00 00 00 00 00 00 F0 [09:37:06]Write i2c OK [09:37:06]MH_I2C_Read... [09:37:06]OFD Sender: No OFD packet to send [09:37:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:37:06]Read from MH i2c: E2 [09:37:06]MH_I2C_Read... [09:37:06]Read from MH i2c: E2 62 00 [09:37:06]MH_I2C_Read... [09:37:06]Read from MH i2c: E2 62 00 DF 95 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 BA 94 01 00 0E 04 04 00 61 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 40 [09:37: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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 BA 94 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 28 00 00 00 5E 04 04 00 28 00 00 00 57 04 04 00 29 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:37:06]wFMCommunicate OK [09:37:06]SAM_PROTO_GetFieldsCounters done [09:37:06]requested_item shift.num is exist - process it [09:37:06]requested_item shift.opened is exist - process it [09:37:06]req_shift_opened [09:37:06]FM_GetShiftState [09:37:06]SAM_PROTO_GetShiftState [09:37:06]wFMCommunicate request_size=4 [09:37:06]MH_SAM_APDU [09:37:06]CAPDU: 80 13 01 00 [09:37:06]Write to MH i2c: E2 08 00 E0 95 80 13 01 00 00 00 00 00 F2 [09:37:06]Write i2c OK [09:37:06]MH_I2C_Read... [09:37:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:37:06]Read from MH i2c: E2 [09:37:06]MH_I2C_Read... [09:37:06]Read from MH i2c: E2 0E 00 [09:37:06]MH_I2C_Read... [09:37:06]Read from MH i2c: E2 0E 00 E0 95 00 09 00 01 04 26 72 66 00 00 00 00 90 00 00 [09:37:06]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [09:37:06]wFMCommunicate OK [09:37:06]SAM_PROTO_GetShiftState done [09:37:06]FM_GetShiftState done [09:37:06]req_shift_opened done [09:37:06]requested_item shift.open_date is exist - process it [09:37:06]req_shift_open_date [09:37:06]req_shift_open_date done [09:37:06]produce_requested_data done [09:37:06]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103610,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [09:37:06]process_action_free print_text [09:37:06]json_value_free [09:37:06]json_value_free done [09:37:06]process_json_proto returns [09:37:06]Send response to host [09:37:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103610,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [09:37:06]free response buf [09:37:06]execute_script done [09:37:06]execute_script returns [09:37:06]free content buf [09:37:06]Sock 9.Close socket [09:37:06]Sock 9.Thread stoped [09:37:11]OFD Sender: No OFD packet to send [09:37:16]OFD Sender: No OFD packet to send [09:37:21]OFD Sender: No OFD packet to send [09:37:26]OFD Sender: No OFD packet to send [09:37:31]OFD Sender: No OFD packet to send [09:37:36]OFD Sender: No OFD packet to send [09:37:41]OFD Sender: No OFD packet to send [09:37:46]OFD Sender: No OFD packet to send [09:37:51]OFD Sender: No OFD packet to send [09:37:56]OFD Sender: No OFD packet to send [09:38:01]OFD Sender: No OFD packet to send [09:38:06]OFD Sender: No OFD packet to send [09:38:11]OFD Sender: No OFD packet to send [09:38:16]OFD Sender: No OFD packet to send [09:38:21]OFD Sender: No OFD packet to send [09:38:26]OFD Sender: No OFD packet to send [09:38:31]OFD Sender: No OFD packet to send [09:38:36]OFD Sender: No OFD packet to send [09:38:41]OFD Sender: No OFD packet to send [09:38:46]OFD Sender: No OFD packet to send [09:38:51]OFD Sender: No OFD packet to send [09:38:56]OFD Sender: No OFD packet to send [09:39:01]OFD Sender: No OFD packet to send [09:39:06]OFD Sender: No OFD packet to send [09:39:11]OFD Sender: No OFD packet to send [09:39:16]OFD Sender: No OFD packet to send [09:39:21]OFD Sender: No OFD packet to send [09:39:26]OFD Sender: No OFD packet to send [09:39:31]OFD Sender: No OFD packet to send [09:39:36]OFD Sender: No OFD packet to send [09:39:41]OFD Sender: No OFD packet to send [09:39:46]OFD Sender: No OFD packet to send [09:39:51]OFD Sender: No OFD packet to send [09:39:56]OFD Sender: No OFD packet to send [09:40:01]OFD Sender: No OFD packet to send [09:40:06]OFD Sender: No OFD packet to send [09:40:06]accept exits with 7 [09:40:06]New connection [09:40:06]New thread 3067084132 created [09:40:06]Thread 3067227492 joined [09:40:06]Waiting for new connection... [09:40:06] Sock 7.Parse request [09:40:06]Sock 7.Check first char [09:40:06]Sock 7.First char is OK [09:40:06]request: POST /json_proto HTTP/1.0 [09:40:06]Method: POST [09:40:06]URL: /json_proto [09:40:06]Method is POST - this is cgi request [09:40:06]url: /json_proto [09:40:06]query_string will be loaded in cgi processing [09:40:06]execute_cgi json_proto POST (null) [09:40:06]execute_cgi path=json_proto method=POST [09:40:06]POST find Content-Length [09:40:06]Host: 172.17.38.133:8080 [09:40:06]Content-Length: 682 [09:40:06]Content-Type: application/json [09:40:06] [09:40:06]POST finish read [09:40:06]Found Content-Length = 682 [09:40:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672839", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 24.100, "sum" : 1600.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1600.00, "total" : 1600.00, "payments": [ { "type": 0, "sum" : 1600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:40:06]execute_script... [09:40: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)672839", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 24.100, "sum" : 1600.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1600.00, "total" : 1600.00, "payments": [ { "type": 0, "sum" : 1600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:40:06]POST & json_proto [09:40:06]process_json_proto [09:40:06]json parsed OK: [09:40:06]protocol is kg_v1.0 [09:40:06]action value=close_receipt [09:40:06]process_action close_receipt [09:40:06]cmd_close_receipt [09:40:06]MH_GetDate [09:40:06]Write to MH i2c: F0 00 00 E1 95 65 [09:40:06]Write i2c OK [09:40:06]MH_I2C_Read... [09:40:06]Read from MH i2c: F0 [09:40:06]MH_I2C_Read... [09:40:06]Read from MH i2c: F0 09 00 [09:40:06]MH_I2C_Read... [09:40:06]Read from MH i2c: F0 09 00 E1 95 00 82 A7 72 66 BD 8F 7C 64 9B [09:40:06]GetLastDocTimeStamp 1718789319 [09:40:06]current date 1718790018 [09:40:06]FM_GetShiftState [09:40:06]SAM_PROTO_GetShiftState [09:40:06]wFMCommunicate request_size=4 [09:40:06]MH_SAM_APDU [09:40:06]CAPDU: 80 13 01 00 [09:40:06]Write to MH i2c: E2 08 00 E2 95 80 13 01 00 00 00 00 00 F4 [09:40:06]Write i2c OK [09:40:06]MH_I2C_Read... [09:40:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:40:06]Read from MH i2c: E2 [09:40:06]MH_I2C_Read... [09:40:06]Read from MH i2c: E2 0E 00 [09:40:06]MH_I2C_Read... [09:40:06]Read from MH i2c: E2 0E 00 E2 95 00 09 00 01 04 26 72 66 00 00 00 00 90 00 02 [09:40:06]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [09:40:06]wFMCommunicate OK [09:40:06]SAM_PROTO_GetShiftState done [09:40:06]FM_GetShiftState done [09:40:06]opened in 1718756868 [09:40:06]opened+sec_in_day 1718843268 [09:40:06]quantity*price = 160024 [09:40:06]sum+1 = 160025 [09:40:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.24 ИТОГО: 1600.00 Внесено: 1600.00 СДАЧА: 0.00 НСП 1% : 14.16 НДС 12% : 169.94 Наличными: 1600.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 41 19.06.2024 09:40 Смена: 353 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103611 ФПД: 128985867097801 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T094018&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103611&fm=128985867097801&tin=02508201610067®Number=0000000000092785&sum=160000 [09:40:07]StoreToDocumentArchive [09:40:07]shift 353 fd 103611 [09:40:07]save to /storage/0353/doc_00103611 [09:40:07]save last doc name /storage/0353/doc_00103611 to /storage/kkm_last_doc_name [09:40:07]save OK [09:40:07]Clear old archive folders... [09:40:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:40:07]tlvbuf is 01445F00 [09:40:07]SAM_PROTO_ClearQueue [09:40:07]wFMCommunicate request_size=4 [09:40:07]MH_SAM_APDU [09:40:07]CAPDU: 80 09 00 00 [09:40:07]Write to MH i2c: E2 08 00 EF 95 80 09 00 00 00 00 00 00 F6 [09:40:07]Write i2c OK [09:40:07]MH_I2C_Read... [09:40:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:40:07]Read from MH i2c: E2 [09:40:07]MH_I2C_Read... [09:40:07]Read from MH i2c: E2 03 00 [09:40:07]MH_I2C_Read... [09:40:07]Read from MH i2c: E2 03 00 EF 95 00 90 00 F8 [09:40:07]RAPDU: 90 00 [09:40:07]wFMCommunicate OK [09:40:07]SAM_PROTO_ClearQueue done [09:40:07]KKMCreateOFDPacket [09:40:07]OFDProtocolAddRootSTLVToBuf [09:40:07]FM_MakeSignedData [09:40:07]FM_MakeSignedData [09:40:07]SAM_PROTO_SignData [09:40:07]wFMCommunicate request_size=4 [09:40:07]MH_SAM_APDU [09:40:07]CAPDU: 80 0D 01 02 [09:40:07]Write to MH i2c: E2 08 00 F0 95 80 0D 01 02 00 00 00 00 FE [09:40:07]Write i2c OK [09:40:07]MH_I2C_Read... [09:40:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:40:07]Read from MH i2c: E2 [09:40:07]MH_I2C_Read... [09:40:07]Read from MH i2c: E2 03 00 [09:40:07]MH_I2C_Read... [09:40:07]Read from MH i2c: E2 03 00 F0 95 00 90 00 F9 [09:40:07]RAPDU: 90 00 [09:40:07]wFMCommunicate OK [09:40:07]wFMCommunicate request_size=255 [09:40:07]MH_SAM_APDU [09:40:07]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 24 5E 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 18 71 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 71 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 62 42 00 00 00 00 07 04 06 00 00 71 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 82 A7 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 BB 94 01 00 35 04 06 00 75 [09:40:07]Write to MH i2c: E2 02 01 F1 95 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 5E 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 18 71 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 71 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 62 42 00 00 00 00 07 04 06 00 00 71 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 82 A7 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 BB 94 01 00 35 04 06 00 75 00 00 8C [09:40:07]Write i2c OK [09:40:07]MH_I2C_Read... [09:40:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:40:07]Read from MH i2c: E2 [09:40:07]MH_I2C_Read... [09:40:07]Read from MH i2c: E2 03 00 [09:40:07]MH_I2C_Read... [09:40:07]Read from MH i2c: E2 03 00 F1 95 00 90 00 FA [09:40:08]RAPDU: 90 00 [09:40:08]wFMCommunicate OK [09:40:08]wFMCommunicate request_size=10 [09:40:08]MH_SAM_APDU [09:40:08]CAPDU: 80 0D 02 02 05 4F DC CA 16 C9 [09:40:08]Write to MH i2c: E2 0D 00 F2 95 80 0D 02 02 05 00 4F DC CA 16 C9 00 00 DF [09:40:08]Write i2c OK [09:40:08]MH_I2C_Read... [09:40:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:40:08]Read from MH i2c: E2 [09:40:08]MH_I2C_Read... [09:40:08]Read from MH i2c: E2 03 00 [09:40:08]MH_I2C_Read... [09:40:08]Read from MH i2c: E2 03 00 F2 95 00 90 00 FB [09:40:08]RAPDU: 90 00 [09:40:08]wFMCommunicate OK [09:40:08]wFMCommunicate request_size=4 [09:40:08]MH_SAM_APDU [09:40:08]CAPDU: 80 0D 03 02 [09:40:08]Write to MH i2c: E2 08 00 F3 95 80 0D 03 02 00 00 00 00 03 [09:40:08]Write i2c OK [09:40:08]MH_I2C_Read... [09:40:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:40:08]Read from MH i2c: E2 [09:40:08]MH_I2C_Read... [09:40:08]Read from MH i2c: E2 0B 00 [09:40:08]MH_I2C_Read... [09:40:08]Read from MH i2c: E2 0B 00 F3 95 00 DA 70 18 62 D5 59 24 84 90 00 9E [09:40:08]RAPDU: DA 70 18 62 D5 59 24 84 90 00 [09:40:08]wFMCommunicate OK [09:40:08]SAM_PROTO_SignData done [09:40:08]FM_MakeSignedData done [09:40:08]CreateOFDProtocolMessage [09:40:08]wFMCommunicate request_size=4 [09:40:08]MH_SAM_APDU [09:40:08]CAPDU: 80 11 00 00 [09:40:08]Write to MH i2c: E2 08 00 F4 95 80 11 00 00 00 00 00 00 03 [09:40:08]Write i2c OK [09:40:08]MH_I2C_Read... [09:40:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:40:08]Read from MH i2c: E2 [09:40:08]MH_I2C_Read... [09:40:08]Read from MH i2c: E2 17 00 [09:40:08]MH_I2C_Read... [09:40:08]Read from MH i2c: E2 17 00 F4 95 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 56 [09:40:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [09:40:08]wFMCommunicate OK [09:40:08]CreateOFDProtocolMessage done [09:40:08]OFDSenderStorePacket 103611 [09:40:08]StoreOFDPacket docnum=103611 [09:40:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 AD 98 07 01 F8 88 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 24 5E 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 18 71 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 71 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 62 42 00 00 00 00 07 04 06 00 00 71 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 82 A7 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 BB 94 01 00 35 04 06 00 75 4F DC CA 16 C9 DA 70 18 62 D5 59 24 84 [09:40:08]CheckFolder [09:40:08]dirname=/storage/ofd_packets [09:40:08]CheckFolder done [09:40:08]ProducePacketName [09:40:08]name=ofd_packets/00103611 [09:40:08]NVStorageSaveData ofd_packets/00103611 [09:40:08]File name is /storage/ofd_packets/00103611 [09:40:08]Write 301 bytes [09:40:08]NVStorageSaveData done [09:40:08]OFDSenderStorePacket done [09:40:08]KKMCreateOFDPacket done [09:40:08]NVStorageSaveData kkm_last_timestamp [09:40:08]File name is /storage/kkm_last_timestamp [09:40:08]Write 4 bytes [09:40:08]NVStorageSaveData done [09:40:08]ExternCall_PrintAddStr [09:40:08]wPrintStart [09:40:08]Write to MH i2c: 01 00 00 F5 95 8A [09:40:08]Write i2c OK [09:40:08]MH_I2C_Read... [09:40:08]Read from MH i2c: 01 [09:40:08]MH_I2C_Read... [09:40:08]Read from MH i2c: 01 07 00 [09:40:08]MH_I2C_Read... [09:40:08]Read from MH i2c: 01 07 00 F5 95 00 00 00 00 00 FF 0F 9F [09:40:08]RasterBufferAndPrint [09:40:08]line Счет N : (1)672839 [09:40:08]line ИНН: 02508201610067 [09:40:08]line Контрольно-Кассовый Чек [09:40:08]line ПРОДАЖА [09:40:08]line ТРК (МРК, ГНК) : 42 [09:40:08]line Товар: 2710124130 [09:40:08]line Аи-92-К-5 [09:40:08]line 24.100 * 66.40 [09:40:08]line = 1600.24 [09:40:08]line НДС 12% НСП 1% [09:40:08]line > о реализуемом товаре [09:40:08]line ОКРУГЛЕНИЕ: -0.24 [09:40:08]line ИТОГО: 1600.00 [09:40:08]line Внесено: 1600.00 [09:40:08]line СДАЧА: 0.00 [09:40:08]line НСП 1% : 14.16 [09:40:08]line НДС 12% : 169.94 [09:40:08]line Наличными: 1600.00 [09:40:08]line Безнал.: 0.00 [09:40:08]line Место: АЗС № 120 "Партнер Нефть" [09:40:08]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [09:40:08]line СНО: Общий режим [09:40:08]line Чек 41 19.06.2024 09:40 [09:40:08]line Смена: 353 ФФД: 1.0 [09:40:08]line ЗНМ: 0300000164 [09:40:08]line РНМ: 0000000000092785 [09:40:08]line Версия ККМ: 001 [09:40:08]line ФМ: 0000000000875093 [09:40:08]line ФД: 103611 [09:40:08]line ФПД: 128985867097801 [09:40:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T094018&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103611&fm=128985867097801&tin=02508201610067®Number=0000000000092785&sum=160000 [09:40:08]OFD Sender: Processing packet 103611 [packets to send 17, broken 16] [09:40:08]ProducePacketName [09:40:08]name=ofd_packets/00103611 [09:40:08]OFD Sender: To server: pG, [09:40:08]CommunicateWithHost lk.salyk.kg:30040 [09:40:08]ConnectInit lk.salyk.kg [09:40:08]written 0, free lines is 4095 [09:40:08]Connected sock=10 [09:40: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 39 33 0F 01 00 00 AD 98 07 01 F8 88 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 24 5E 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 18 71 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 71 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 62 42 00 00 00 00 07 04 06 00 00 71 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 82 A7 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 BB 94 01 00 35 04 06 00 75 4F DC CA 16 C9 DA 70 18 62 D5 59 24 84 [09:40: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 39 33 4F 00 00 00 11 4B 47 00 5B 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 39 33 10 04 04 00 BB 94 01 00 F4 03 04 00 0B 4E 72 66 B6 04 01 00 00 8B 39 A2 27 D9 D0 E7 DA [09:40:08]CommunicateWithHost err = 0 [09:40:08]CheckOFDResponse [09:40:08]1017 (14) - 77093643461234 [09:40:08]1041 (16) - 0000000000875093 [09:40:08]1040 (4) - 103611 [09:40:08]1012 (4) - 19.06.2024 03:18 [09:40:08]1206 (1) - 0 [09:40:08]OFD Sender: Remove packet 103611 [09:40:08]ProducePacketName [09:40:08]name=ofd_packets/00103611 [09:40:08]NVStorageDeleteData [09:40:08]Write to MH i2c: 01 00 00 20 96 B6 [09:40:08]Write i2c OK [09:40:08]MH_I2C_Read... [09:40:08]Read from MH i2c: 01 [09:40:08]MH_I2C_Read... [09:40:08]Read from MH i2c: 01 07 00 [09:40:08]MH_I2C_Read... [09:40:08]Read from MH i2c: 01 07 00 20 96 00 00 00 00 00 E6 0C AF [09:40:08]RasterBufferAndPrint [09:40:08]line [09:40:08]line [09:40:08]line [09:40:08]line [09:40:08]line [09:40:08]written 0, free lines is 3308 [09:40:08]MH_Cut [09:40:08]Write to MH i2c: D1 01 00 27 96 01 8F [09:40:08]Write i2c OK [09:40:08]MH_I2C_Read... [09:40:08]Read from MH i2c: D1 [09:40:08]MH_I2C_Read... [09:40:08]Read from MH i2c: D1 01 00 [09:40:08]MH_I2C_Read... [09:40:08]Read from MH i2c: D1 01 00 27 96 00 8E [09:40:08]Write to MH i2c: 01 00 00 28 96 BE [09:40:08]Write i2c OK [09:40:08]MH_I2C_Read... [09:40:09]OFD Sender: No OFD packet to send [09:40:09]*** Cut start [09:40:09]*** Partial cut [09:40:09]*** CUTSNS_PIN = 1 [09:40:09]*** CUTSNS_PIN = 0 [09:40:09]*** Brake cut motor [09:40:10]Read from MH i2c: 01 [09:40:10]MH_I2C_Read... [09:40:10]*** Stop cut motor [09:40:10]*** Cut end [09:40:10]Read from MH i2c: 01 07 00 [09:40:10]MH_I2C_Read... [09:40:10]Read from MH i2c: 01 07 00 28 96 00 00 00 00 00 FF 0F D3 [09:40:10]process_action close_receipt done [09:40:10]requested_data is exist [09:40:10]produce_requested_data [09:40:10]requested_item fm.sn is exist - process it [09:40:10]wFMCommunicate request_size=4 [09:40:10]MH_SAM_APDU [09:40:10]CAPDU: 80 11 00 00 [09:40:10]Write to MH i2c: E2 08 00 29 96 80 11 00 00 00 00 00 00 39 [09:40:10]Write i2c OK [09:40:10]MH_I2C_Read... [09:40:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:40:10]Read from MH i2c: E2 [09:40:10]MH_I2C_Read... [09:40:10]Read from MH i2c: E2 17 00 [09:40:10]MH_I2C_Read... [09:40:10]Read from MH i2c: E2 17 00 29 96 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 8C [09:40:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [09:40:10]wFMCommunicate OK [09:40:10]requested_item fd.num is exist - process it [09:40:10]SAM_PROTO_GetFieldsCounters [09:40:10]wFMCommunicate request_size=4 [09:40:10]MH_SAM_APDU [09:40:10]CAPDU: 80 13 00 00 [09:40:10]Write to MH i2c: E2 08 00 2A 96 80 13 00 00 00 00 00 00 3C [09:40:10]Write i2c OK [09:40:10]MH_I2C_Read... [09:40:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:40:10]Read from MH i2c: E2 [09:40:10]MH_I2C_Read... [09:40:10]Read from MH i2c: E2 62 00 [09:40:10]MH_I2C_Read... [09:40:10]Read from MH i2c: E2 62 00 2A 96 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 BB 94 01 00 0E 04 04 00 61 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 90 [09: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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 BB 94 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 29 00 00 00 5E 04 04 00 29 00 00 00 57 04 04 00 2A 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:40:10]wFMCommunicate OK [09:40:10]SAM_PROTO_GetFieldsCounters done [09:40:10]requested_item shift.num is exist - process it [09:40:10]requested_item shift.opened is exist - process it [09:40:10]req_shift_opened [09:40:10]FM_GetShiftState [09:40:10]SAM_PROTO_GetShiftState [09:40:10]wFMCommunicate request_size=4 [09:40:10]MH_SAM_APDU [09:40:10]CAPDU: 80 13 01 00 [09:40:10]Write to MH i2c: E2 08 00 2B 96 80 13 01 00 00 00 00 00 3E [09:40:10]Write i2c OK [09:40:10]MH_I2C_Read... [09:40:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:40:10]Read from MH i2c: E2 [09:40:10]MH_I2C_Read... [09:40:10]Read from MH i2c: E2 0E 00 [09:40:10]MH_I2C_Read... [09:40:10]Read from MH i2c: E2 0E 00 2B 96 00 09 00 01 04 26 72 66 00 00 00 00 90 00 4C [09:40:10]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [09:40:10]wFMCommunicate OK [09:40:10]SAM_PROTO_GetShiftState done [09:40:10]FM_GetShiftState done [09:40:10]req_shift_opened done [09:40:10]requested_item shift.open_date is exist - process it [09:40:10]req_shift_open_date [09:40:10]req_shift_open_date done [09:40:10]produce_requested_data done [09:40:10]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103611,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [09:40:10]process_action_free close_receipt [09:40:10]json_value_free [09:40:10]json_value_free done [09:40:10]process_json_proto returns [09:40:10]Send response to host [09:40:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103611,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [09:40:10]free response buf [09:40:10]execute_script done [09:40:10]execute_script returns [09:40:10]free content buf [09:40:10]Sock 7.Close socket [09:40:10]Sock 7.Thread stoped [09:40:14]OFD Sender: No OFD packet to send [09:40:19]OFD Sender: No OFD packet to send [09:40:24]OFD Sender: No OFD packet to send [09:40:29]OFD Sender: No OFD packet to send [09:40:34]OFD Sender: No OFD packet to send [09:40:39]OFD Sender: No OFD packet to send [09:40:44]OFD Sender: No OFD packet to send [09:40:49]OFD Sender: No OFD packet to send [09:40:54]OFD Sender: No OFD packet to send [09:40:59]OFD Sender: No OFD packet to send [09:41:04]OFD Sender: No OFD packet to send [09:41:09]OFD Sender: No OFD packet to send [09:41:13]accept exits with 9 [09:41:13]New connection [09:41:13]New thread 3067227492 created [09:41:13]Thread 3067084132 joined [09:41:13]Waiting for new connection... [09:41:13] Sock 9.Parse request [09:41:13]Sock 9.Check first char [09:41:13]Sock 9.First char is OK [09:41:13]request: POST /json_proto HTTP/1.0 [09:41:13]Method: POST [09:41:13]URL: /json_proto [09:41:13]Method is POST - this is cgi request [09:41:13]url: /json_proto [09:41:13]query_string will be loaded in cgi processing [09:41:13]execute_cgi json_proto POST (null) [09:41:13]execute_cgi path=json_proto method=POST [09:41:13]POST find Content-Length [09:41:13]Host: 172.17.38.133:8080 [09:41:13]Content-Length: 1169 [09:41:13]Content-Type: application/json [09:41:13] [09:41:13]POST finish read [09:41:13]Found Content-Length = 1169 [09:41:13]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 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. \u000A\u0421\u0447\u0435\u0442 N : (1)672837\u000A19.06.2024 09:18\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 32\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 17.230 x 66.40\u000A\u0418\u0422\u041E\u0413: 1144.07\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30101697\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:41:13]execute_script... [09:41:13]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 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. \u000A\u0421\u0447\u0435\u0442 N : (1)672837\u000A19.06.2024 09:18\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 32\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 17.230 x 66.40\u000A\u0418\u0422\u041E\u0413: 1144.07\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30101697\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:41:13]POST & json_proto [09:41:13]process_json_proto [09:41:13]json parsed OK: [09:41:13]protocol is kg_v1.0 [09:41:13]action value=print_text [09:41:13]process_action print_text [09:41:13]cmd_print_text [09:41:13]ExternCall_PrintAddStr [09:41:13]wPrintStart [09:41:13]Write to MH i2c: 01 00 00 2C 96 C2 [09:41:13]Write i2c OK [09:41:13]MH_I2C_Read... [09:41:13]Read from MH i2c: 01 [09:41:13]MH_I2C_Read... [09:41:13]Read from MH i2c: 01 07 00 [09:41:13]MH_I2C_Read... [09:41:13]Read from MH i2c: 01 07 00 2C 96 00 00 00 00 00 FF 0F D7 [09:41:13]RasterBufferAndPrint [09:41:13]line *****ТОВАРНЫЙ ЧЕК***** [09:41:13]line АЗС 120 [09:41:13]line Партнер нефть [09:41:13]line 02508201610067 [09:41:13]line Кассир : Байбугуева Г. [09:41:13]line Счет N : (1)672837 [09:41:13]line 19.06.2024 09:18 [09:41:13]line ПРОДАЖА [09:41:13]line ТРК (МРК, ГНК): 32 [09:41:13]line Вид ГСМ : 2710124130 [09:41:13]line Аи-92-К-5 [09:41:13]line 17.230 x 66.40 [09:41:13]line ИТОГ: 1144.07 [09:41:13]line Тип оплаты: Талоны: ТК ГПНА Online [09:41:13]line 30101697 [09:41:13]line ______________________ [09:41:13]line (подпись) [09:41:13]written 0, free lines is 4095 [09:41:13]Write to MH i2c: 01 00 00 40 96 D6 [09:41:13]Write i2c OK [09:41:13]MH_I2C_Read... [09:41:13]Read from MH i2c: 01 [09:41:13]MH_I2C_Read... [09:41:13]Read from MH i2c: 01 07 00 [09:41:13]MH_I2C_Read... [09:41:13]Read from MH i2c: 01 07 00 40 96 00 00 00 00 00 12 0E FD [09:41:13]RasterBufferAndPrint [09:41:13]line [09:41:13]line [09:41:13]line [09:41:13]line [09:41:13]line [09:41:13]written 0, free lines is 3603 [09:41:13]MH_Cut [09:41:13]Write to MH i2c: D1 01 00 47 96 01 AF [09:41:13]Write i2c OK [09:41:13]MH_I2C_Read... [09:41:13]Read from MH i2c: D1 [09:41:13]MH_I2C_Read... [09:41:13]Read from MH i2c: D1 01 00 [09:41:13]MH_I2C_Read... [09:41:13]Read from MH i2c: D1 01 00 47 96 00 AE [09:41:13]Write to MH i2c: 01 00 00 48 96 DE [09:41:13]Write i2c OK [09:41:13]MH_I2C_Read... [09:41:13]*** Cut start [09:41:13]*** Partial cut [09:41:13]*** CUTSNS_PIN = 1 [09:41:14]*** CUTSNS_PIN = 0 [09:41:14]*** Brake cut motor [09:41:14]OFD Sender: No OFD packet to send [09:41:14]Read from MH i2c: 01 [09:41:14]MH_I2C_Read... [09:41:14]*** Stop cut motor [09:41:14]*** Cut end [09:41:14]Read from MH i2c: 01 07 00 [09:41:14]MH_I2C_Read... [09:41:14]Read from MH i2c: 01 07 00 48 96 00 00 00 00 00 FF 0F F3 [09:41:14]process_action print_text done [09:41:14]requested_data is exist [09:41:14]produce_requested_data [09:41:14]requested_item fm.sn is exist - process it [09:41:14]wFMCommunicate request_size=4 [09:41:14]MH_SAM_APDU [09:41:14]CAPDU: 80 11 00 00 [09:41:14]Write to MH i2c: E2 08 00 49 96 80 11 00 00 00 00 00 00 59 [09:41:14]Write i2c OK [09:41:14]MH_I2C_Read... [09:41:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:41:14]Read from MH i2c: E2 [09:41:14]MH_I2C_Read... [09:41:14]Read from MH i2c: E2 17 00 [09:41:14]MH_I2C_Read... [09:41:14]Read from MH i2c: E2 17 00 49 96 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 AC [09:41:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [09:41:14]wFMCommunicate OK [09:41:14]requested_item fd.num is exist - process it [09:41:14]SAM_PROTO_GetFieldsCounters [09:41:14]wFMCommunicate request_size=4 [09:41:14]MH_SAM_APDU [09:41:14]CAPDU: 80 13 00 00 [09:41:14]Write to MH i2c: E2 08 00 4A 96 80 13 00 00 00 00 00 00 5C [09:41:14]Write i2c OK [09:41:14]MH_I2C_Read... [09:41:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:41:14]Read from MH i2c: E2 [09:41:14]MH_I2C_Read... [09:41:14]Read from MH i2c: E2 62 00 [09:41:14]MH_I2C_Read... [09:41:14]Read from MH i2c: E2 62 00 4A 96 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 BB 94 01 00 0E 04 04 00 61 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 B0 [09:41:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 BB 94 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 29 00 00 00 5E 04 04 00 29 00 00 00 57 04 04 00 2A 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:41:14]wFMCommunicate OK [09:41:14]SAM_PROTO_GetFieldsCounters done [09:41:14]requested_item shift.num is exist - process it [09:41:14]requested_item shift.opened is exist - process it [09:41:14]req_shift_opened [09:41:14]FM_GetShiftState [09:41:14]SAM_PROTO_GetShiftState [09:41:14]wFMCommunicate request_size=4 [09:41:14]MH_SAM_APDU [09:41:14]CAPDU: 80 13 01 00 [09:41:14]Write to MH i2c: E2 08 00 4B 96 80 13 01 00 00 00 00 00 5E [09:41:14]Write i2c OK [09:41:14]MH_I2C_Read... [09:41:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:41:14]Read from MH i2c: E2 [09:41:14]MH_I2C_Read... [09:41:14]Read from MH i2c: E2 0E 00 [09:41:14]MH_I2C_Read... [09:41:14]Read from MH i2c: E2 0E 00 4B 96 00 09 00 01 04 26 72 66 00 00 00 00 90 00 6C [09:41:14]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [09:41:14]wFMCommunicate OK [09:41:14]SAM_PROTO_GetShiftState done [09:41:14]FM_GetShiftState done [09:41:14]req_shift_opened done [09:41:14]requested_item shift.open_date is exist - process it [09:41:14]req_shift_open_date [09:41:14]req_shift_open_date done [09:41:14]produce_requested_data done [09:41:14]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103611,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [09:41:14]process_action_free print_text [09:41:14]json_value_free [09:41:14]json_value_free done [09:41:14]process_json_proto returns [09:41:14]Send response to host [09:41:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103611,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [09:41:14]free response buf [09:41:14]execute_script done [09:41:14]execute_script returns [09:41:14]free content buf [09:41:14]Sock 9.Close socket [09:41:14]Sock 9.Thread stoped [09:41:19]OFD Sender: No OFD packet to send [09:41:24]OFD Sender: No OFD packet to send [09:41:29]OFD Sender: No OFD packet to send [09:41:34]OFD Sender: No OFD packet to send [09:41:39]OFD Sender: No OFD packet to send [09:41:44]OFD Sender: No OFD packet to send [09:41:49]OFD Sender: No OFD packet to send [09:41:54]OFD Sender: No OFD packet to send [09:41:59]accept exits with 7 [09:41:59]New connection [09:41:59]New thread 3067084132 created [09:41:59]Thread 3067227492 joined [09:41:59]Waiting for new connection... [09:41:59] Sock 7.Parse request [09:41:59]Sock 7.Check first char [09:41:59]Sock 7.First char is OK [09:41:59]request: POST /json_proto HTTP/1.0 [09:41:59]Method: POST [09:41:59]URL: /json_proto [09:41:59]Method is POST - this is cgi request [09:41:59]url: /json_proto [09:41:59]query_string will be loaded in cgi processing [09:41:59]execute_cgi json_proto POST (null) [09:41:59]execute_cgi path=json_proto method=POST [09:41:59]POST find Content-Length [09:41:59]Host: 172.17.38.133:8080 [09:41:59]Content-Length: 677 [09:41:59]Content-Type: application/json [09:41:59] [09:41:59]POST finish read [09:41:59]Found Content-Length = 677 [09:41:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672840", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:41:59]execute_script... [09:41:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672840", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:41:59]POST & json_proto [09:41:59]process_json_proto [09:41:59]json parsed OK: [09:41:59]protocol is kg_v1.0 [09:41:59]action value=close_receipt [09:41:59]process_action close_receipt [09:41:59]cmd_close_receipt [09:41:59]MH_GetDate [09:41:59]Write to MH i2c: F0 00 00 4C 96 D1 [09:41:59]Write i2c OK [09:41:59]MH_I2C_Read... [09:41:59]Read from MH i2c: F0 [09:41:59]MH_I2C_Read... [09:41:59]Read from MH i2c: F0 09 00 [09:41:59]MH_I2C_Read... [09:41:59]Read from MH i2c: F0 09 00 4C 96 00 F3 A7 72 66 BD 8F 7C 64 78 [09:41:59]GetLastDocTimeStamp 1718790018 [09:41:59]current date 1718790131 [09:41:59]FM_GetShiftState [09:41:59]SAM_PROTO_GetShiftState [09:41:59]wFMCommunicate request_size=4 [09:41:59]MH_SAM_APDU [09:41:59]CAPDU: 80 13 01 00 [09:41:59]Write to MH i2c: E2 08 00 4D 96 80 13 01 00 00 00 00 00 60 [09:41:59]Write i2c OK [09:41:59]MH_I2C_Read... [09:41:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:41:59]Read from MH i2c: E2 [09:41:59]MH_I2C_Read... [09:41:59]Read from MH i2c: E2 0E 00 [09:41:59]MH_I2C_Read... [09:41:59]Read from MH i2c: E2 0E 00 4D 96 00 09 00 01 04 26 72 66 00 00 00 00 90 00 6E [09:41:59]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [09:41:59]wFMCommunicate OK [09:41:59]SAM_PROTO_GetShiftState done [09:41:59]FM_GetShiftState done [09:41:59]opened in 1718756868 [09:41:59]opened+sec_in_day 1718843268 [09:41:59]quantity*price = 50065 [09:41:59]sum+1 = 50067 [09:41:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.17 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 42 19.06.2024 09:42 Смена: 353 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103612 ФПД: 203261673006101 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T094211&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103612&fm=203261673006101&tin=02508201610067®Number=0000000000092785&sum=50000 [09:42:00]StoreToDocumentArchive [09:42:00]shift 353 fd 103612 [09:42:00]save to /storage/0353/doc_00103612 [09:42:00]save last doc name /storage/0353/doc_00103612 to /storage/kkm_last_doc_name [09:42:00]save OK [09:42:00]Clear old archive folders... [09:42:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:42:00]tlvbuf is 014E79B0 [09:42:00]SAM_PROTO_ClearQueue [09:42:00]wFMCommunicate request_size=4 [09:42:00]MH_SAM_APDU [09:42:00]CAPDU: 80 09 00 00 [09:42:00]Write to MH i2c: E2 08 00 5A 96 80 09 00 00 00 00 00 00 62 [09:42:00]Write i2c OK [09:42:00]MH_I2C_Read... [09:42:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:42:00]Read from MH i2c: E2 [09:42:00]MH_I2C_Read... [09:42:00]Read from MH i2c: E2 03 00 [09:42:00]MH_I2C_Read... [09:42:00]Read from MH i2c: E2 03 00 5A 96 00 90 00 64 [09:42:00]RAPDU: 90 00 [09:42:00]wFMCommunicate OK [09:42:00]SAM_PROTO_ClearQueue done [09:42:00]KKMCreateOFDPacket [09:42:00]OFDProtocolAddRootSTLVToBuf [09:42:00]FM_MakeSignedData [09:42:00]FM_MakeSignedData [09:42:00]SAM_PROTO_SignData [09:42:00]wFMCommunicate request_size=4 [09:42:00]MH_SAM_APDU [09:42:00]CAPDU: 80 0D 01 02 [09:42:00]Write to MH i2c: E2 08 00 5B 96 80 0D 01 02 00 00 00 00 6A [09:42:00]Write i2c OK [09:42:00]MH_I2C_Read... [09:42:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:42:00]Read from MH i2c: E2 [09:42:00]MH_I2C_Read... [09:42:00]Read from MH i2c: E2 03 00 [09:42:00]MH_I2C_Read... [09:42:00]Read from MH i2c: E2 03 00 5B 96 00 90 00 65 [09:42:00]RAPDU: 90 00 [09:42:00]wFMCommunicate OK [09:42:00]wFMCommunicate request_size=255 [09:42:00]MH_SAM_APDU [09:42:00]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 F3 A7 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 BC 94 01 00 35 04 06 00 B8 [09:42:00]Write to MH i2c: E2 02 01 5C 96 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 F3 A7 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 BC 94 01 00 35 04 06 00 B8 00 00 2B [09:42:00]Write i2c OK [09:42:00]MH_I2C_Read... [09:42:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:42:00]Read from MH i2c: E2 [09:42:00]MH_I2C_Read... [09:42:00]Read from MH i2c: E2 03 00 [09:42:00]MH_I2C_Read... [09:42:00]Read from MH i2c: E2 03 00 5C 96 00 90 00 66 [09:42:00]RAPDU: 90 00 [09:42:00]wFMCommunicate OK [09:42:00]wFMCommunicate request_size=10 [09:42:00]MH_SAM_APDU [09:42:00]CAPDU: 80 0D 02 02 05 DD 8B D0 E4 15 [09:42:00]Write to MH i2c: E2 0D 00 5D 96 80 0D 02 02 05 00 DD 8B D0 E4 15 00 00 A8 [09:42:01]Write i2c OK [09:42:01]MH_I2C_Read... [09:42:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:42:01]Read from MH i2c: E2 [09:42:01]MH_I2C_Read... [09:42:01]Read from MH i2c: E2 03 00 [09:42:01]MH_I2C_Read... [09:42:01]Read from MH i2c: E2 03 00 5D 96 00 90 00 67 [09:42:01]RAPDU: 90 00 [09:42:01]wFMCommunicate OK [09:42:01]wFMCommunicate request_size=4 [09:42:01]MH_SAM_APDU [09:42:01]CAPDU: 80 0D 03 02 [09:42:01]Write to MH i2c: E2 08 00 5E 96 80 0D 03 02 00 00 00 00 6F [09:42:01]Write i2c OK [09:42:01]MH_I2C_Read... [09:42:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:42:01]Read from MH i2c: E2 [09:42:01]MH_I2C_Read... [09:42:01]Read from MH i2c: E2 0B 00 [09:42:01]MH_I2C_Read... [09:42:01]Read from MH i2c: E2 0B 00 5E 96 00 93 7A 6E 3C 57 D7 C7 C5 90 00 E1 [09:42:01]RAPDU: 93 7A 6E 3C 57 D7 C7 C5 90 00 [09:42:01]wFMCommunicate OK [09:42:01]SAM_PROTO_SignData done [09:42:01]FM_MakeSignedData done [09:42:01]CreateOFDProtocolMessage [09:42:01]wFMCommunicate request_size=4 [09:42:01]MH_SAM_APDU [09:42:01]CAPDU: 80 11 00 00 [09:42:01]Write to MH i2c: E2 08 00 5F 96 80 11 00 00 00 00 00 00 6F [09:42:01]Write i2c OK [09:42:01]MH_I2C_Read... [09:42:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:42:01]Read from MH i2c: E2 [09:42:01]MH_I2C_Read... [09:42:01]Read from MH i2c: E2 17 00 [09:42:01]MH_I2C_Read... [09:42:01]Read from MH i2c: E2 17 00 5F 96 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 C2 [09:42:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [09:42:01]wFMCommunicate OK [09:42:01]CreateOFDProtocolMessage done [09:42:01]OFDSenderStorePacket 103612 [09:42:01]StoreOFDPacket docnum=103612 [09:42:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 87 74 07 01 C0 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 F3 A7 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 BC 94 01 00 35 04 06 00 B8 DD 8B D0 E4 15 93 7A 6E 3C 57 D7 C7 C5 [09:42:01]CheckFolder [09:42:01]dirname=/storage/ofd_packets [09:42:01]CheckFolder done [09:42:01]ProducePacketName [09:42:01]name=ofd_packets/00103612 [09:42:01]NVStorageSaveData ofd_packets/00103612 [09:42:01]File name is /storage/ofd_packets/00103612 [09:42:01]Write 301 bytes [09:42:01]NVStorageSaveData done [09:42:01]OFDSenderStorePacket done [09:42:01]KKMCreateOFDPacket done [09:42:01]NVStorageSaveData kkm_last_timestamp [09:42:01]File name is /storage/kkm_last_timestamp [09:42:01]Write 4 bytes [09:42:01]NVStorageSaveData done [09:42:01]ExternCall_PrintAddStr [09:42:01]wPrintStart [09:42:01]Write to MH i2c: 01 00 00 60 96 F6 [09:42:01]Write i2c OK [09:42:01]MH_I2C_Read... [09:42:01]Read from MH i2c: 01 [09:42:01]MH_I2C_Read... [09:42:01]Read from MH i2c: 01 07 00 [09:42:01]MH_I2C_Read... [09:42:01]Read from MH i2c: 01 07 00 60 96 00 00 00 00 00 FF 0F 0B [09:42:01]RasterBufferAndPrint [09:42:01]line Счет N : (1)672840 [09:42:01]line ИНН: 02508201610067 [09:42:01]line Контрольно-Кассовый Чек [09:42:01]line ПРОДАЖА [09:42:01]line ТРК (МРК, ГНК) : 42 [09:42:01]line Товар: 2710124130 [09:42:01]line Аи-92-К-5 [09:42:01]line 7.540 * 66.40 [09:42:01]line = 500.66 [09:42:01]line НДС 12% НСП 1% [09:42:01]line > о реализуемом товаре [09:42:01]line ОКРУГЛЕНИЕ: -0.66 [09:42:01]line ИТОГО: 500.00 [09:42:01]line Внесено: 500.00 [09:42:01]line СДАЧА: 0.00 [09:42:01]line НСП 1% : 4.43 [09:42:01]line НДС 12% : 53.17 [09:42:01]line Наличными: 500.00 [09:42:01]line Безнал.: 0.00 [09:42:01]line Место: АЗС № 120 "Партнер Нефть" [09:42:01]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [09:42:01]line СНО: Общий режим [09:42:01]line Чек 42 19.06.2024 09:42 [09:42:01]line Смена: 353 ФФД: 1.0 [09:42:01]line ЗНМ: 0300000164 [09:42:01]line РНМ: 0000000000092785 [09:42:01]line Версия ККМ: 001 [09:42:01]line ФМ: 0000000000875093 [09:42:01]line ФД: 103612 [09:42:01]line ФПД: 203261673006101 [09:42:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T094211&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103612&fm=203261673006101&tin=02508201610067®Number=0000000000092785&sum=50000 [09:42:01]written 0, free lines is 4095 [09:42:01]OFD Sender: Processing packet 103612 [packets to send 17, broken 16] [09:42:01]ProducePacketName [09:42:01]name=ofd_packets/00103612 [09:42:01]OFD Sender: To server: pG, [09:42:01]CommunicateWithHost lk.salyk.kg:30040 [09:42:01]ConnectInit lk.salyk.kg [09:42:01]Connected sock=10 [09:42:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 87 74 07 01 C0 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 F3 A7 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 BC 94 01 00 35 04 06 00 B8 DD 8B D0 E4 15 93 7A 6E 3C 57 D7 C7 C5 [09:42: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 39 33 4F 00 00 00 64 62 47 00 B2 06 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 BC 94 01 00 F4 03 04 00 7C 4E 72 66 B6 04 01 00 00 53 C6 E5 18 13 BF F9 1A [09:42:01]CommunicateWithHost err = 0 [09:42:01]CheckOFDResponse [09:42:01]1017 (14) - 77093643461234 [09:42:01]1041 (16) - 0000000000875093 [09:42:01]1040 (4) - 103612 [09:42:01]1012 (4) - 19.06.2024 03:20 [09:42:01]1206 (1) - 0 [09:42:01]OFD Sender: Remove packet 103612 [09:42:01]ProducePacketName [09:42:01]name=ofd_packets/00103612 [09:42:01]NVStorageDeleteData [09:42:01]Write to MH i2c: 01 00 00 8B 96 21 [09:42:01]Write i2c OK [09:42:01]MH_I2C_Read... [09:42:01]Read from MH i2c: 01 [09:42:01]MH_I2C_Read... [09:42:01]Read from MH i2c: 01 07 00 [09:42:01]MH_I2C_Read... [09:42:01]Read from MH i2c: 01 07 00 8B 96 00 00 00 00 00 F2 0C 26 [09:42:01]RasterBufferAndPrint [09:42:01]line [09:42:01]line [09:42:01]line [09:42:01]line [09:42:01]line [09:42:01]written 0, free lines is 3320 [09:42:01]MH_Cut [09:42:01]Write to MH i2c: D1 01 00 92 96 01 FA [09:42:01]Write i2c OK [09:42:01]MH_I2C_Read... [09:42:01]Read from MH i2c: D1 [09:42:01]MH_I2C_Read... [09:42:01]Read from MH i2c: D1 01 00 [09:42:01]MH_I2C_Read... [09:42:01]Read from MH i2c: D1 01 00 92 96 00 F9 [09:42:01]Write to MH i2c: 01 00 00 93 96 29 [09:42:01]Write i2c OK [09:42:01]MH_I2C_Read... [09:42:02]OFD Sender: No OFD packet to send [09:42:02]*** Cut start [09:42:02]*** Partial cut [09:42:02]*** CUTSNS_PIN = 1 [09:42:02]*** CUTSNS_PIN = 0 [09:42:02]*** Brake cut motor [09:42:03]Read from MH i2c: 01 [09:42:03]MH_I2C_Read... [09:42:03]*** Stop cut motor [09:42:03]*** Cut end [09:42:03]Read from MH i2c: 01 07 00 [09:42:03]MH_I2C_Read... [09:42:03]Read from MH i2c: 01 07 00 93 96 00 00 00 00 00 FF 0F 3E [09:42:03]process_action close_receipt done [09:42:03]requested_data is exist [09:42:03]produce_requested_data [09:42:03]requested_item fm.sn is exist - process it [09:42:03]wFMCommunicate request_size=4 [09:42:03]MH_SAM_APDU [09:42:03]CAPDU: 80 11 00 00 [09:42:03]Write to MH i2c: E2 08 00 94 96 80 11 00 00 00 00 00 00 A4 [09:42:03]Write i2c OK [09:42:03]MH_I2C_Read... [09:42:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:42:03]Read from MH i2c: E2 [09:42:03]MH_I2C_Read... [09:42:03]Read from MH i2c: E2 17 00 [09:42:03]MH_I2C_Read... [09:42:03]Read from MH i2c: E2 17 00 94 96 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 F7 [09:42:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [09:42:03]wFMCommunicate OK [09:42:03]requested_item fd.num is exist - process it [09:42:03]SAM_PROTO_GetFieldsCounters [09:42:03]wFMCommunicate request_size=4 [09:42:03]MH_SAM_APDU [09:42:03]CAPDU: 80 13 00 00 [09:42:03]Write to MH i2c: E2 08 00 95 96 80 13 00 00 00 00 00 00 A7 [09:42:03]Write i2c OK [09:42:03]MH_I2C_Read... [09:42:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:42:03]Read from MH i2c: E2 [09:42:03]MH_I2C_Read... [09:42:03]Read from MH i2c: E2 62 00 [09:42:03]MH_I2C_Read... [09:42:03]Read from MH i2c: E2 62 00 95 96 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 BC 94 01 00 0E 04 04 00 61 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 FF [09:42:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 BC 94 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 2A 00 00 00 5E 04 04 00 2A 00 00 00 57 04 04 00 2B 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:42:03]wFMCommunicate OK [09:42:03]SAM_PROTO_GetFieldsCounters done [09:42:03]requested_item shift.num is exist - process it [09:42:03]requested_item shift.opened is exist - process it [09:42:03]req_shift_opened [09:42:03]FM_GetShiftState [09:42:03]SAM_PROTO_GetShiftState [09:42:03]wFMCommunicate request_size=4 [09:42:03]MH_SAM_APDU [09:42:03]CAPDU: 80 13 01 00 [09:42:03]Write to MH i2c: E2 08 00 96 96 80 13 01 00 00 00 00 00 A9 [09:42:03]Write i2c OK [09:42:03]MH_I2C_Read... [09:42:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:42:03]Read from MH i2c: E2 [09:42:03]MH_I2C_Read... [09:42:03]Read from MH i2c: E2 0E 00 [09:42:03]MH_I2C_Read... [09:42:03]Read from MH i2c: E2 0E 00 96 96 00 09 00 01 04 26 72 66 00 00 00 00 90 00 B7 [09:42:03]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [09:42:03]wFMCommunicate OK [09:42:03]SAM_PROTO_GetShiftState done [09:42:03]FM_GetShiftState done [09:42:03]req_shift_opened done [09:42:03]requested_item shift.open_date is exist - process it [09:42:03]req_shift_open_date [09:42:03]req_shift_open_date done [09:42:03]produce_requested_data done [09:42:03]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103612,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [09:42:03]process_action_free close_receipt [09:42:03]json_value_free [09:42:03]json_value_free done [09:42:03]process_json_proto returns [09:42:03]Send response to host [09:42:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103612,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [09:42:03]free response buf [09:42:03]execute_script done [09:42:03]execute_script returns [09:42:03]free content buf [09:42:03]Sock 7.Close socket [09:42:03]Sock 7.Thread stoped [09:42:07]OFD Sender: No OFD packet to send [09:42:12]OFD Sender: No OFD packet to send [09:42:17]OFD Sender: No OFD packet to send [09:42:20]accept exits with 9 [09:42:20]New connection [09:42:20]New thread 3067227492 created [09:42:20]Thread 3067084132 joined [09:42:20]Waiting for new connection... [09:42:20] Sock 9.Parse request [09:42:20]Sock 9.Check first char [09:42:20]Sock 9.First char is OK [09:42:20]request: POST /json_proto HTTP/1.0 [09:42:20]Method: POST [09:42:20]URL: /json_proto [09:42:20]Method is POST - this is cgi request [09:42:20]url: /json_proto [09:42:20]query_string will be loaded in cgi processing [09:42:20]execute_cgi json_proto POST (null) [09:42:20]execute_cgi path=json_proto method=POST [09:42:20]POST find Content-Length [09:42:20]Host: 172.17.38.133:8080 [09:42:20]Content-Length: 1167 [09:42:20]Content-Type: application/json [09:42:20] [09:42:20]POST finish read [09:42:20]Found Content-Length = 1167 [09:42:20]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 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. \u000A\u0421\u0447\u0435\u0442 N : (1)672841\u000A19.06.2024 09:19\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 32\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 2.770 x 66.40\u000A\u0418\u0422\u041E\u0413: 183.93\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30101697\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:42:20]execute_script... [09:42:20]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 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. \u000A\u0421\u0447\u0435\u0442 N : (1)672841\u000A19.06.2024 09:19\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 32\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 2.770 x 66.40\u000A\u0418\u0422\u041E\u0413: 183.93\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30101697\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:42:20]POST & json_proto [09:42:20]process_json_proto [09:42:20]json parsed OK: [09:42:20]protocol is kg_v1.0 [09:42:20]action value=print_text [09:42:20]process_action print_text [09:42:20]cmd_print_text [09:42:20]ExternCall_PrintAddStr [09:42:20]wPrintStart [09:42:20]Write to MH i2c: 01 00 00 97 96 2D [09:42:20]Write i2c OK [09:42:20]MH_I2C_Read... [09:42:20]Read from MH i2c: 01 [09:42:20]MH_I2C_Read... [09:42:20]Read from MH i2c: 01 07 00 [09:42:20]MH_I2C_Read... [09:42:20]Read from MH i2c: 01 07 00 97 96 00 00 00 00 00 FF 0F 42 [09:42:20]RasterBufferAndPrint [09:42:20]line *****ТОВАРНЫЙ ЧЕК***** [09:42:20]line АЗС 120 [09:42:20]line Партнер нефть [09:42:20]line 02508201610067 [09:42:20]line Кассир : Байбугуева Г. [09:42:20]line Счет N : (1)672841 [09:42:20]line 19.06.2024 09:19 [09:42:20]line ПРОДАЖА [09:42:20]line ТРК (МРК, ГНК): 32 [09:42:20]line Вид ГСМ : 2710124130 [09:42:20]line Аи-92-К-5 [09:42:20]line 2.770 x 66.40 [09:42:20]line ИТОГ: 183.93 [09:42:20]line Тип оплаты: Талоны: ТК ГПНА Online [09:42:20]line 30101697 [09:42:20]line ______________________ [09:42:20]line (подпись) [09:42:20]written 0, free lines is 4095 [09:42:21]Write to MH i2c: 01 00 00 AB 96 41 [09:42:21]Write i2c OK [09:42:21]MH_I2C_Read... [09:42:21]Read from MH i2c: 01 [09:42:21]MH_I2C_Read... [09:42:21]Read from MH i2c: 01 07 00 [09:42:21]MH_I2C_Read... [09:42:21]Read from MH i2c: 01 07 00 AB 96 00 00 00 00 00 11 0E 67 [09:42:21]RasterBufferAndPrint [09:42:21]line [09:42:21]line [09:42:21]line [09:42:21]line [09:42:21]line [09:42:21]written 0, free lines is 3603 [09:42:21]MH_Cut [09:42:21]Write to MH i2c: D1 01 00 B2 96 01 1A [09:42:21]Write i2c OK [09:42:21]MH_I2C_Read... [09:42:21]Read from MH i2c: D1 [09:42:21]MH_I2C_Read... [09:42:21]Read from MH i2c: D1 01 00 [09:42:21]MH_I2C_Read... [09:42:21]Read from MH i2c: D1 01 00 B2 96 00 19 [09:42:21]Write to MH i2c: 01 00 00 B3 96 49 [09:42:21]Write i2c OK [09:42:21]MH_I2C_Read... [09:42:21]*** Cut start [09:42:21]*** Partial cut [09:42:21]*** CUTSNS_PIN = 1 [09:42:21]*** CUTSNS_PIN = 0 [09:42:21]*** Brake cut motor [09:42:22]Read from MH i2c: 01 [09:42:22]MH_I2C_Read... [09:42:22]*** Stop cut motor [09:42:22]*** Cut end [09:42:22]Read from MH i2c: 01 07 00 [09:42:22]MH_I2C_Read... [09:42:22]Read from MH i2c: 01 07 00 B3 96 00 00 00 00 00 FF 0F 5E [09:42:22]process_action print_text done [09:42:22]requested_data is exist [09:42:22]produce_requested_data [09:42:22]requested_item fm.sn is exist - process it [09:42:22]wFMCommunicate request_size=4 [09:42:22]MH_SAM_APDU [09:42:22]CAPDU: 80 11 00 00 [09:42:22]Write to MH i2c: E2 08 00 B4 96 80 11 00 00 00 00 00 00 C4 [09:42:22]Write i2c OK [09:42:22]MH_I2C_Read... [09:42:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:42:22]Read from MH i2c: E2 [09:42:22]MH_I2C_Read... [09:42:22]Read from MH i2c: E2 17 00 [09:42:22]MH_I2C_Read... [09:42:22]Read from MH i2c: E2 17 00 B4 96 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 17 [09:42:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [09:42:22]wFMCommunicate OK [09:42:22]requested_item fd.num is exist - process it [09:42:22]SAM_PROTO_GetFieldsCounters [09:42:22]wFMCommunicate request_size=4 [09:42:22]MH_SAM_APDU [09:42:22]CAPDU: 80 13 00 00 [09:42:22]Write to MH i2c: E2 08 00 B5 96 80 13 00 00 00 00 00 00 C7 [09:42:22]Write i2c OK [09:42:22]MH_I2C_Read... [09:42:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:42:22]Read from MH i2c: E2 [09:42:22]MH_I2C_Read... [09:42:22]Read from MH i2c: E2 62 00 [09:42:22]MH_I2C_Read... [09:42:22]Read from MH i2c: E2 62 00 B5 96 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 BC 94 01 00 0E 04 04 00 61 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 1F [09:42:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 BC 94 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 2A 00 00 00 5E 04 04 00 2A 00 00 00 57 04 04 00 2B 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:42:22]wFMCommunicate OK [09:42:22]SAM_PROTO_GetFieldsCounters done [09:42:22]requested_item shift.num is exist - process it [09:42:22]requested_item shift.opened is exist - process it [09:42:22]req_shift_opened [09:42:22]FM_GetShiftState [09:42:22]SAM_PROTO_GetShiftState [09:42:22]wFMCommunicate request_size=4 [09:42:22]MH_SAM_APDU [09:42:22]CAPDU: 80 13 01 00 [09:42:22]Write to MH i2c: E2 08 00 B6 96 80 13 01 00 00 00 00 00 C9 [09:42:22]Write i2c OK [09:42:22]MH_I2C_Read... [09:42:22]OFD Sender: No OFD packet to send [09:42:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:42:22]Read from MH i2c: E2 [09:42:22]MH_I2C_Read... [09:42:22]Read from MH i2c: E2 0E 00 [09:42:22]MH_I2C_Read... [09:42:22]Read from MH i2c: E2 0E 00 B6 96 00 09 00 01 04 26 72 66 00 00 00 00 90 00 D7 [09:42:22]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [09:42:22]wFMCommunicate OK [09:42:22]SAM_PROTO_GetShiftState done [09:42:22]FM_GetShiftState done [09:42:22]req_shift_opened done [09:42:22]requested_item shift.open_date is exist - process it [09:42:22]req_shift_open_date [09:42:22]req_shift_open_date done [09:42:22]produce_requested_data done [09:42:22]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103612,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [09:42:22]process_action_free print_text [09:42:22]json_value_free [09:42:22]json_value_free done [09:42:22]process_json_proto returns [09:42:22]Send response to host [09:42:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103612,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [09:42:22]free response buf [09:42:22]execute_script done [09:42:22]execute_script returns [09:42:22]free content buf [09:42:22]Sock 9.Close socket [09:42:22]Sock 9.Thread stoped [09:42:27]OFD Sender: No OFD packet to send [09:42:32]OFD Sender: No OFD packet to send [09:42:37]OFD Sender: No OFD packet to send [09:42:42]OFD Sender: No OFD packet to send [09:42:47]OFD Sender: No OFD packet to send [09:42:52]OFD Sender: No OFD packet to send [09:42:57]OFD Sender: No OFD packet to send [09:43:02]OFD Sender: No OFD packet to send [09:43:07]OFD Sender: No OFD packet to send [09:43:12]OFD Sender: No OFD packet to send [09:43:17]OFD Sender: No OFD packet to send [09:43:22]OFD Sender: No OFD packet to send [09:43:27]OFD Sender: No OFD packet to send [09:43:32]OFD Sender: No OFD packet to send [09:43:37]OFD Sender: No OFD packet to send [09:43:42]OFD Sender: No OFD packet to send [09:43:47]OFD Sender: No OFD packet to send [09:43:52]OFD Sender: No OFD packet to send [09:43:57]OFD Sender: No OFD packet to send [09:44:02]OFD Sender: No OFD packet to send [09:44:07]OFD Sender: No OFD packet to send [09:44:12]OFD Sender: No OFD packet to send [09:44:17]OFD Sender: No OFD packet to send [09:44:22]OFD Sender: No OFD packet to send [09:44:27]OFD Sender: No OFD packet to send [09:44:32]OFD Sender: No OFD packet to send [09:44:37]OFD Sender: No OFD packet to send [09:44:42]OFD Sender: No OFD packet to send [09:44:47]OFD Sender: No OFD packet to send [09:44:52]OFD Sender: No OFD packet to send [09:44:57]OFD Sender: No OFD packet to send [09:45:02]OFD Sender: No OFD packet to send [09:45:07]OFD Sender: No OFD packet to send [09:45:12]OFD Sender: No OFD packet to send [09:45:17]OFD Sender: No OFD packet to send [09:45:22]OFD Sender: No OFD packet to send [09:45:27]OFD Sender: No OFD packet to send [09:45:32]OFD Sender: No OFD packet to send [09:45:37]OFD Sender: No OFD packet to send [09:45:42]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:12]OFD Sender: No OFD packet to send [09:46:17]OFD Sender: No OFD packet to send [09:46:22]OFD Sender: No OFD packet to send [09:46:27]OFD Sender: No OFD packet to send [09:46:32]OFD Sender: No OFD packet to send [09:46:37]OFD Sender: No OFD packet to send [09:46:42]OFD Sender: No OFD packet to send [09:46:47]OFD Sender: No OFD packet to send [09:46:52]OFD Sender: No OFD packet to send [09:46:57]OFD Sender: No OFD packet to send [09:47:02]OFD Sender: No OFD packet to send [09:47:07]OFD Sender: No OFD packet to send [09:47:12]OFD Sender: No OFD packet to send [09:47:17]OFD Sender: No OFD packet to send [09:47:22]OFD Sender: No OFD packet to send [09:47:27]OFD Sender: No OFD packet to send [09:47:32]OFD Sender: No OFD packet to send [09:47:37]OFD Sender: No OFD packet to send [09:47:42]OFD Sender: No OFD packet to send [09:47:47]OFD Sender: No OFD packet to send [09:47:52]OFD Sender: No OFD packet to send [09:47:57]OFD Sender: No OFD packet to send [09:48:02]OFD Sender: No OFD packet to send [09:48:07]OFD Sender: No OFD packet to send [09:48:12]OFD Sender: No OFD packet to send [09:48:17]OFD Sender: No OFD packet to send [09:48:22]OFD Sender: No OFD packet to send [09:48:27]OFD Sender: No OFD packet to send [09:48:32]OFD Sender: No OFD packet to send [09:48:32]accept exits with 10 [09:48:32]New connection [09:48:32]New thread 3067084132 created [09:48:32]Thread 3067227492 joined [09:48:32]Waiting for new connection... [09:48:32] Sock 10.Parse request [09:48:32]Sock 10.Check first char [09:48:32]Sock 10.First char is OK [09:48:32]request: POST /json_proto HTTP/1.0 [09:48:32]Method: POST [09:48:32]URL: /json_proto [09:48:32]Method is POST - this is cgi request [09:48:32]url: /json_proto [09:48:32]query_string will be loaded in cgi processing [09:48:32]execute_cgi json_proto POST (null) [09:48:32]execute_cgi path=json_proto method=POST [09:48:32]POST find Content-Length [09:48:32]Host: 172.17.38.133:8080 [09:48:32]Content-Length: 1169 [09:48:32]Content-Type: application/json [09:48:32] [09:48:32]POST finish read [09:48:32]Found Content-Length = 1169 [09:48:32]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 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. \u000A\u0421\u0447\u0435\u0442 N : (1)672843\u000A19.06.2024 09:26\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 32\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 40.000 x 66.40\u000A\u0418\u0422\u041E\u0413: 2656.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30101697\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:48:32]execute_script... [09:48:32]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 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. \u000A\u0421\u0447\u0435\u0442 N : (1)672843\u000A19.06.2024 09:26\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 32\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 40.000 x 66.40\u000A\u0418\u0422\u041E\u0413: 2656.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30101697\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:48:32]POST & json_proto [09:48:32]process_json_proto [09:48:32]json parsed OK: [09:48:32]protocol is kg_v1.0 [09:48:32]action value=print_text [09:48:32]process_action print_text [09:48:32]cmd_print_text [09:48:32]ExternCall_PrintAddStr [09:48:32]wPrintStart [09:48:32]Write to MH i2c: 01 00 00 B7 96 4D [09:48:32]Write i2c OK [09:48:32]MH_I2C_Read... [09:48:32]Read from MH i2c: 01 [09:48:32]MH_I2C_Read... [09:48:32]Read from MH i2c: 01 07 00 [09:48:32]MH_I2C_Read... [09:48:32]Read from MH i2c: 01 07 00 B7 96 00 00 00 00 00 FF 0F 62 [09:48:32]RasterBufferAndPrint [09:48:32]line *****ТОВАРНЫЙ ЧЕК***** [09:48:32]line АЗС 120 [09:48:32]line Партнер нефть [09:48:32]line 02508201610067 [09:48:32]line Кассир : Байбугуева Г. [09:48:32]line Счет N : (1)672843 [09:48:32]line 19.06.2024 09:26 [09:48:32]line ПРОДАЖА [09:48:32]line ТРК (МРК, ГНК): 32 [09:48:32]line Вид ГСМ : 2710124130 [09:48:32]line Аи-92-К-5 [09:48:32]line 40.000 x 66.40 [09:48:32]line ИТОГ: 2656.00 [09:48:32]line Тип оплаты: Талоны: ТК ГПНА Online [09:48:32]line 30101697 [09:48:32]line ______________________ [09:48:32]line (подпись) [09:48:32]written 0, free lines is 4095 [09:48:33]Write to MH i2c: 01 00 00 CB 96 61 [09:48:33]Write i2c OK [09:48:33]MH_I2C_Read... [09:48:33]Read from MH i2c: 01 [09:48:33]MH_I2C_Read... [09:48:33]Read from MH i2c: 01 07 00 [09:48:33]MH_I2C_Read... [09:48:33]Read from MH i2c: 01 07 00 CB 96 00 00 00 00 00 14 0E 8A [09:48:33]RasterBufferAndPrint [09:48:33]line [09:48:33]line [09:48:33]line [09:48:33]line [09:48:33]line [09:48:33]written 0, free lines is 3605 [09:48:33]MH_Cut [09:48:33]Write to MH i2c: D1 01 00 D2 96 01 3A [09:48:33]Write i2c OK [09:48:33]MH_I2C_Read... [09:48:33]Read from MH i2c: D1 [09:48:33]MH_I2C_Read... [09:48:33]Read from MH i2c: D1 01 00 [09:48:33]MH_I2C_Read... [09:48:33]Read from MH i2c: D1 01 00 D2 96 00 39 [09:48:33]Write to MH i2c: 01 00 00 D3 96 69 [09:48:33]Write i2c OK [09:48:33]MH_I2C_Read... [09:48:33]*** Cut start [09:48:33]*** Partial cut [09:48:33]*** CUTSNS_PIN = 1 [09:48:33]*** CUTSNS_PIN = 0 [09:48:33]*** Brake cut motor [09:48:34]Read from MH i2c: 01 [09:48:34]MH_I2C_Read... [09:48:34]*** Stop cut motor [09:48:34]*** Cut end [09:48:34]Read from MH i2c: 01 07 00 [09:48:34]MH_I2C_Read... [09:48:34]Read from MH i2c: 01 07 00 D3 96 00 00 00 00 00 FF 0F 7E [09:48:34]process_action print_text done [09:48:34]requested_data is exist [09:48:34]produce_requested_data [09:48:34]requested_item fm.sn is exist - process it [09:48:34]wFMCommunicate request_size=4 [09:48:34]MH_SAM_APDU [09:48:34]CAPDU: 80 11 00 00 [09:48:34]Write to MH i2c: E2 08 00 D4 96 80 11 00 00 00 00 00 00 E4 [09:48:34]Write i2c OK [09:48:34]MH_I2C_Read... [09:48:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:48:34]Read from MH i2c: E2 [09:48:34]MH_I2C_Read... [09:48:34]Read from MH i2c: E2 17 00 [09:48:34]MH_I2C_Read... [09:48:34]Read from MH i2c: E2 17 00 D4 96 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 37 [09:48:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [09:48:34]wFMCommunicate OK [09:48:34]requested_item fd.num is exist - process it [09:48:34]SAM_PROTO_GetFieldsCounters [09:48:34]wFMCommunicate request_size=4 [09:48:34]MH_SAM_APDU [09:48:34]CAPDU: 80 13 00 00 [09:48:34]Write to MH i2c: E2 08 00 D5 96 80 13 00 00 00 00 00 00 E7 [09:48:34]Write i2c OK [09:48:34]MH_I2C_Read... [09:48:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:48:34]Read from MH i2c: E2 [09:48:34]MH_I2C_Read... [09:48:34]Read from MH i2c: E2 62 00 [09:48:34]MH_I2C_Read... [09:48:34]Read from MH i2c: E2 62 00 D5 96 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 BC 94 01 00 0E 04 04 00 61 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 3F [09:48: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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 BC 94 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 2A 00 00 00 5E 04 04 00 2A 00 00 00 57 04 04 00 2B 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:48:34]wFMCommunicate OK [09:48:34]SAM_PROTO_GetFieldsCounters done [09:48:34]requested_item shift.num is exist - process it [09:48:34]requested_item shift.opened is exist - process it [09:48:34]req_shift_opened [09:48:34]FM_GetShiftState [09:48:34]SAM_PROTO_GetShiftState [09:48:34]wFMCommunicate request_size=4 [09:48:34]MH_SAM_APDU [09:48:34]CAPDU: 80 13 01 00 [09:48:34]Write to MH i2c: E2 08 00 D6 96 80 13 01 00 00 00 00 00 E9 [09:48:34]Write i2c OK [09:48:34]MH_I2C_Read... [09:48:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:48:34]Read from MH i2c: E2 [09:48:34]MH_I2C_Read... [09:48:34]Read from MH i2c: E2 0E 00 [09:48:34]MH_I2C_Read... [09:48:34]Read from MH i2c: E2 0E 00 D6 96 00 09 00 01 04 26 72 66 00 00 00 00 90 00 F7 [09:48:34]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [09:48:34]wFMCommunicate OK [09:48:34]SAM_PROTO_GetShiftState done [09:48:34]FM_GetShiftState done [09:48:34]req_shift_opened done [09:48:34]requested_item shift.open_date is exist - process it [09:48:34]req_shift_open_date [09:48:34]req_shift_open_date done [09:48:34]produce_requested_data done [09:48:34]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103612,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [09:48:34]process_action_free print_text [09:48:34]json_value_free [09:48:34]json_value_free done [09:48:34]process_json_proto returns [09:48:34]Send response to host [09:48:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103612,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [09:48:34]free response buf [09:48:34]execute_script done [09:48:34]execute_script returns [09:48:34]free content buf [09:48:34]Sock 10.Close socket [09:48:34]Sock 10.Thread stoped [09:48:37]OFD Sender: No OFD packet to send [09:48:42]OFD Sender: No OFD packet to send [09:48:47]OFD Sender: No OFD packet to send [09:48:52]OFD Sender: No OFD packet to send [09:48:57]OFD Sender: No OFD packet to send [09:49:02]OFD Sender: No OFD packet to send [09:49:07]OFD Sender: No OFD packet to send [09:49:12]OFD Sender: No OFD packet to send [09:49:17]OFD Sender: No OFD packet to send [09:49:22]OFD Sender: No OFD packet to send [09:49:27]OFD Sender: No OFD packet to send [09:49:32]OFD Sender: No OFD packet to send [09:49:37]OFD Sender: No OFD packet to send [09:49:42]OFD Sender: No OFD packet to send [09:49:47]OFD Sender: No OFD packet to send [09:49:52]OFD Sender: No OFD packet to send [09:49:57]OFD Sender: No OFD packet to send [09:50:02]OFD Sender: No OFD packet to send [09:50:07]OFD Sender: No OFD packet to send [09:50:12]OFD Sender: No OFD packet to send [09:50:17]OFD Sender: No OFD packet to send [09:50:22]OFD Sender: No OFD packet to send [09:50:27]OFD Sender: No OFD packet to send [09:50:32]OFD Sender: No OFD packet to send [09:50:37]OFD Sender: No OFD packet to send [09:50:42]OFD Sender: No OFD packet to send [09:50:47]OFD Sender: No OFD packet to send [09:50:52]OFD Sender: No OFD packet to send [09:50:57]OFD Sender: No OFD packet to send [09:51:02]OFD Sender: No OFD packet to send [09:51:07]OFD Sender: No OFD packet to send [09:51:12]OFD Sender: No OFD packet to send [09:51:17]OFD Sender: No OFD packet to send [09:51:22]OFD Sender: No OFD packet to send [09:51:27]OFD Sender: No OFD packet to send [09:51:32]OFD Sender: No OFD packet to send [09:51:37]OFD Sender: No OFD packet to send [09:51:42]OFD Sender: No OFD packet to send [09:51:47]OFD Sender: No OFD packet to send [09:51:52]OFD Sender: No OFD packet to send [09:51:57]OFD Sender: No OFD packet to send [09:52:02]OFD Sender: No OFD packet to send [09:52:07]OFD Sender: No OFD packet to send [09:52:12]OFD Sender: No OFD packet to send [09:52:17]OFD Sender: No OFD packet to send [09:52:22]OFD Sender: No OFD packet to send [09:52:27]accept exits with 7 [09:52:27]New connection [09:52:27]New thread 3067227492 created [09:52:27]Thread 3067084132 joined [09:52:27]Waiting for new connection... [09:52:27] Sock 7.Parse request [09:52:27]Sock 7.Check first char [09:52:27]Sock 7.First char is OK [09:52:27]request: POST /json_proto HTTP/1.0 [09:52:27]Method: POST [09:52:27]URL: /json_proto [09:52:27]Method is POST - this is cgi request [09:52:27]url: /json_proto [09:52:27]query_string will be loaded in cgi processing [09:52:27]execute_cgi json_proto POST (null) [09:52:27]execute_cgi path=json_proto method=POST [09:52:27]POST find Content-Length [09:52:27]Host: 172.17.38.133:8080 [09:52:27]Content-Length: 682 [09:52:27]Content-Type: application/json [09:52:27] [09:52:27]POST finish read [09:52:27]Found Content-Length = 682 [09:52:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672844", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 13.540, "sum" : 1000.61, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:52:27]execute_script... [09:52: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)672844", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 13.540, "sum" : 1000.61, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:52:27]POST & json_proto [09:52:27]process_json_proto [09:52:27]json parsed OK: [09:52:27]protocol is kg_v1.0 [09:52:27]action value=close_receipt [09:52:27]process_action close_receipt [09:52:27]cmd_close_receipt [09:52:27]MH_GetDate [09:52:27]Write to MH i2c: F0 00 00 D7 96 5C [09:52:27]Write i2c OK [09:52:27]MH_I2C_Read... [09:52:27]Read from MH i2c: F0 [09:52:27]MH_I2C_Read... [09:52:27]Read from MH i2c: F0 09 00 [09:52:27]MH_I2C_Read... [09:52:27]Read from MH i2c: F0 09 00 D7 96 00 67 AA 72 66 BD 8F 7C 64 7A [09:52:27]GetLastDocTimeStamp 1718790131 [09:52:27]current date 1718790759 [09:52:27]FM_GetShiftState [09:52:27]SAM_PROTO_GetShiftState [09:52:27]wFMCommunicate request_size=4 [09:52:27]MH_SAM_APDU [09:52:27]CAPDU: 80 13 01 00 [09:52:27]Write to MH i2c: E2 08 00 D8 96 80 13 01 00 00 00 00 00 EB [09:52:27]Write i2c OK [09:52:27]MH_I2C_Read... [09:52:27]OFD Sender: No OFD packet to send [09:52:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:52:27]Read from MH i2c: E2 [09:52:27]MH_I2C_Read... [09:52:27]Read from MH i2c: E2 0E 00 [09:52:27]MH_I2C_Read... [09:52:27]Read from MH i2c: E2 0E 00 D8 96 00 09 00 01 04 26 72 66 00 00 00 00 90 00 F9 [09:52:27]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [09:52:27]wFMCommunicate OK [09:52:27]SAM_PROTO_GetShiftState done [09:52:27]FM_GetShiftState done [09:52:27]opened in 1718756868 [09:52:27]opened+sec_in_day 1718843268 [09:52:27]quantity*price = 100060 [09:52:27]sum+1 = 100062 [09:52:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.61 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 43 19.06.2024 09:52 Смена: 353 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103613 ФПД: 266971740814230 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T095239&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103613&fm=266971740814230&tin=02508201610067®Number=0000000000092785&sum=100000 [09:52:29]StoreToDocumentArchive [09:52:29]shift 353 fd 103613 [09:52:29]save to /storage/0353/doc_00103613 [09:52:29]save last doc name /storage/0353/doc_00103613 to /storage/kkm_last_doc_name [09:52:29]save OK [09:52:29]Clear old archive folders... [09:52:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:52:29]tlvbuf is 014160A0 [09:52:29]SAM_PROTO_ClearQueue [09:52:29]wFMCommunicate request_size=4 [09:52:29]MH_SAM_APDU [09:52:29]CAPDU: 80 09 00 00 [09:52:29]Write to MH i2c: E2 08 00 E5 96 80 09 00 00 00 00 00 00 ED [09:52:29]Write i2c OK [09:52:29]MH_I2C_Read... [09:52:29]Read from MH i2c: E2 [09:52:29]MH_I2C_Read... [09:52:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:52:29]Read from MH i2c: E2 03 00 [09:52:29]MH_I2C_Read... [09:52:29]Read from MH i2c: E2 03 00 E5 96 00 90 00 EF [09:52:29]RAPDU: 90 00 [09:52:29]wFMCommunicate OK [09:52:29]SAM_PROTO_ClearQueue done [09:52:29]KKMCreateOFDPacket [09:52:29]OFDProtocolAddRootSTLVToBuf [09:52:29]FM_MakeSignedData [09:52:29]FM_MakeSignedData [09:52:29]SAM_PROTO_SignData [09:52:29]wFMCommunicate request_size=4 [09:52:29]MH_SAM_APDU [09:52:29]CAPDU: 80 0D 01 02 [09:52:29]Write to MH i2c: E2 08 00 E6 96 80 0D 01 02 00 00 00 00 F5 [09:52:29]Write i2c OK [09:52:29]MH_I2C_Read... [09:52:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:52:29]Read from MH i2c: E2 [09:52:29]MH_I2C_Read... [09:52:29]Read from MH i2c: E2 03 00 [09:52:29]MH_I2C_Read... [09:52:29]Read from MH i2c: E2 03 00 E6 96 00 90 00 F0 [09:52:29]RAPDU: 90 00 [09:52:29]wFMCommunicate OK [09:52:29]wFMCommunicate request_size=255 [09:52:29]MH_SAM_APDU [09:52:29]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E4 34 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 DD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 67 AA 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 BD 94 01 00 35 04 06 00 F2 [09:52:29]Write to MH i2c: E2 02 01 E7 96 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E4 34 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 DD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 67 AA 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 BD 94 01 00 35 04 06 00 F2 00 00 AA [09:52:29]Write i2c OK [09:52:29]MH_I2C_Read... [09:52:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:52:29]Read from MH i2c: E2 [09:52:29]MH_I2C_Read... [09:52:29]Read from MH i2c: E2 03 00 [09:52:29]MH_I2C_Read... [09:52:29]Read from MH i2c: E2 03 00 E7 96 00 90 00 F1 [09:52:29]RAPDU: 90 00 [09:52:29]wFMCommunicate OK [09:52:29]wFMCommunicate request_size=10 [09:52:29]MH_SAM_APDU [09:52:29]CAPDU: 80 0D 02 02 05 CF 33 C6 BB 96 [09:52:29]Write to MH i2c: E2 0D 00 E8 96 80 0D 02 02 05 00 CF 33 C6 BB 96 00 00 1B [09:52:29]Write i2c OK [09:52:29]MH_I2C_Read... [09:52:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:52:29]Read from MH i2c: E2 [09:52:29]MH_I2C_Read... [09:52:29]Read from MH i2c: E2 03 00 [09:52:29]MH_I2C_Read... [09:52:29]Read from MH i2c: E2 03 00 E8 96 00 90 00 F2 [09:52:29]RAPDU: 90 00 [09:52:29]wFMCommunicate OK [09:52:29]wFMCommunicate request_size=4 [09:52:29]MH_SAM_APDU [09:52:29]CAPDU: 80 0D 03 02 [09:52:29]Write to MH i2c: E2 08 00 E9 96 80 0D 03 02 00 00 00 00 FA [09:52:29]Write i2c OK [09:52:29]MH_I2C_Read... [09:52:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:52:29]Read from MH i2c: E2 [09:52:29]MH_I2C_Read... [09:52:29]Read from MH i2c: E2 0B 00 [09:52:29]MH_I2C_Read... [09:52:29]Read from MH i2c: E2 0B 00 E9 96 00 06 CC 82 09 E9 91 AF E6 90 00 67 [09:52:29]RAPDU: 06 CC 82 09 E9 91 AF E6 90 00 [09:52:29]wFMCommunicate OK [09:52:29]SAM_PROTO_SignData done [09:52:29]FM_MakeSignedData done [09:52:29]CreateOFDProtocolMessage [09:52:29]wFMCommunicate request_size=4 [09:52:29]MH_SAM_APDU [09:52:29]CAPDU: 80 11 00 00 [09:52:29]Write to MH i2c: E2 08 00 EA 96 80 11 00 00 00 00 00 00 FA [09:52:29]Write i2c OK [09:52:29]MH_I2C_Read... [09:52:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:52:29]Read from MH i2c: E2 [09:52:29]MH_I2C_Read... [09:52:29]Read from MH i2c: E2 17 00 [09:52:29]MH_I2C_Read... [09:52:29]Read from MH i2c: E2 17 00 EA 96 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 4D [09:52:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [09:52:29]wFMCommunicate OK [09:52:29]CreateOFDProtocolMessage done [09:52:29]OFDSenderStorePacket 103613 [09:52:29]StoreOFDPacket docnum=103613 [09:52:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 C5 8D 07 01 EA 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E4 34 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 DD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 67 AA 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 BD 94 01 00 35 04 06 00 F2 CF 33 C6 BB 96 06 CC 82 09 E9 91 AF E6 [09:52:29]CheckFolder [09:52:29]dirname=/storage/ofd_packets [09:52:29]CheckFolder done [09:52:29]ProducePacketName [09:52:29]name=ofd_packets/00103613 [09:52:29]NVStorageSaveData ofd_packets/00103613 [09:52:29]File name is /storage/ofd_packets/00103613 [09:52:29]Write 301 bytes [09:52:29]NVStorageSaveData done [09:52:29]OFDSenderStorePacket done [09:52:29]KKMCreateOFDPacket done [09:52:29]NVStorageSaveData kkm_last_timestamp [09:52:29]File name is /storage/kkm_last_timestamp [09:52:29]Write 4 bytes [09:52:29]NVStorageSaveData done [09:52:29]ExternCall_PrintAddStr [09:52:29]wPrintStart [09:52:29]Write to MH i2c: 01 00 00 EB 96 81 [09:52:29]Write i2c OK [09:52:29]MH_I2C_Read... [09:52:29]Read from MH i2c: 01 [09:52:29]MH_I2C_Read... [09:52:29]Read from MH i2c: 01 07 00 [09:52:29]MH_I2C_Read... [09:52:29]Read from MH i2c: 01 07 00 EB 96 00 00 00 00 00 FF 0F 96 [09:52:29]RasterBufferAndPrint [09:52:29]line Счет N : (1)672844 [09:52:29]line ИНН: 02508201610067 [09:52:29]line Контрольно-Кассовый Чек [09:52:29]line ПРОДАЖА [09:52:29]line ТРК (МРК, ГНК) : 41 [09:52:29]line Товар: 2710124500 [09:52:29]line Аи-95-К-5 [09:52:29]line 13.540 * 73.90 [09:52:29]line = 1000.61 [09:52:29]line НДС 12% НСП 1% [09:52:29]line > о реализуемом товаре [09:52:29]line ОКРУГЛЕНИЕ: -0.61 [09:52:29]line ИТОГО: 1000.00 [09:52:29]line Внесено: 1000.00 [09:52:29]line СДАЧА: 0.00 [09:52:29]line НСП 1% : 8.85 [09:52:29]line НДС 12% : 106.26 [09:52:29]line Наличными: 1000.00 [09:52:29]line Безнал.: 0.00 [09:52:29]line Место: АЗС № 120 "Партнер Нефть" [09:52:29]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [09:52:29]line СНО: Общий режим [09:52:29]line Чек 43 19.06.2024 09:52 [09:52:29]line Смена: 353 ФФД: 1.0 [09:52:29]line ЗНМ: 0300000164 [09:52:29]line РНМ: 0000000000092785 [09:52:29]line Версия ККМ: 001 [09:52:29]line ФМ: 0000000000875093 [09:52:29]line ФД: 103613 [09:52:29]line ФПД: 266971740814230 [09:52:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T095239&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103613&fm=266971740814230&tin=02508201610067®Number=0000000000092785&sum=100000 [09:52:29]OFD Sender: Processing packet 103613 [packets to send 17, broken 16] [09:52:29]ProducePacketName [09:52:29]name=ofd_packets/00103613 [09:52:29]OFD Sender: To server: pG, [09:52:29]CommunicateWithHost lk.salyk.kg:30040 [09:52:29]ConnectInit lk.salyk.kg [09:52:29]written 0, free lines is 4095 [09:52:30]Connected sock=10 [09:52:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 C5 8D 07 01 EA 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E4 34 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 DD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 67 AA 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 BD 94 01 00 35 04 06 00 F2 CF 33 C6 BB 96 06 CC 82 09 E9 91 AF E6 [09:52: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 39 33 4F 00 00 00 F3 C0 47 00 ED 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 39 33 10 04 04 00 BD 94 01 00 F4 03 04 00 F0 50 72 66 B6 04 01 00 00 A2 DC D5 94 D6 44 1C 85 [09:52:30]CommunicateWithHost err = 0 [09:52:30]CheckOFDResponse [09:52:30]1017 (14) - 77093643461234 [09:52:30]1041 (16) - 0000000000875093 [09:52:30]1040 (4) - 103613 [09:52:30]1012 (4) - 19.06.2024 03:30 [09:52:30]1206 (1) - 0 [09:52:30]OFD Sender: Remove packet 103613 [09:52:30]ProducePacketName [09:52:30]name=ofd_packets/00103613 [09:52:30]NVStorageDeleteData [09:52:30]Write to MH i2c: 01 00 00 16 97 AD [09:52:30]Write i2c OK [09:52:30]MH_I2C_Read... [09:52:30]Read from MH i2c: 01 [09:52:30]MH_I2C_Read... [09:52:30]Read from MH i2c: 01 07 00 [09:52:30]MH_I2C_Read... [09:52:30]Read from MH i2c: 01 07 00 16 97 00 00 00 00 00 E5 0C A5 [09:52:30]RasterBufferAndPrint [09:52:30]line [09:52:30]line [09:52:30]line [09:52:30]line [09:52:30]line [09:52:30]written 0, free lines is 3307 [09:52:30]MH_Cut [09:52:30]Write to MH i2c: D1 01 00 1D 97 01 86 [09:52:30]Write i2c OK [09:52:30]MH_I2C_Read... [09:52:30]Read from MH i2c: D1 [09:52:30]MH_I2C_Read... [09:52:30]Read from MH i2c: D1 01 00 [09:52:30]MH_I2C_Read... [09:52:30]Read from MH i2c: D1 01 00 1D 97 00 85 [09:52:30]Write to MH i2c: 01 00 00 1E 97 B5 [09:52:30]Write i2c OK [09:52:30]MH_I2C_Read... [09:52:30]OFD Sender: No OFD packet to send [09:52:31]*** Cut start [09:52:31]*** Partial cut [09:52:31]*** CUTSNS_PIN = 1 [09:52:31]*** CUTSNS_PIN = 0 [09:52:31]*** Brake cut motor [09:52:31]Read from MH i2c: 01 [09:52:31]MH_I2C_Read... [09:52:31]*** Stop cut motor [09:52:31]*** Cut end [09:52:31]Read from MH i2c: 01 07 00 [09:52:31]MH_I2C_Read... [09:52:31]Read from MH i2c: 01 07 00 1E 97 00 00 00 00 00 FF 0F CA [09:52:31]process_action close_receipt done [09:52:31]requested_data is exist [09:52:31]produce_requested_data [09:52:31]requested_item fm.sn is exist - process it [09:52:31]wFMCommunicate request_size=4 [09:52:31]MH_SAM_APDU [09:52:31]CAPDU: 80 11 00 00 [09:52:31]Write to MH i2c: E2 08 00 1F 97 80 11 00 00 00 00 00 00 30 [09:52:31]Write i2c OK [09:52:31]MH_I2C_Read... [09:52:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:52:31]Read from MH i2c: E2 [09:52:31]MH_I2C_Read... [09:52:31]Read from MH i2c: E2 17 00 [09:52:31]MH_I2C_Read... [09:52:31]Read from MH i2c: E2 17 00 1F 97 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 83 [09:52:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [09:52:31]wFMCommunicate OK [09:52:31]requested_item fd.num is exist - process it [09:52:31]SAM_PROTO_GetFieldsCounters [09:52:31]wFMCommunicate request_size=4 [09:52:31]MH_SAM_APDU [09:52:31]CAPDU: 80 13 00 00 [09:52:31]Write to MH i2c: E2 08 00 20 97 80 13 00 00 00 00 00 00 33 [09:52:31]Write i2c OK [09:52:31]MH_I2C_Read... [09:52:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:52:31]Read from MH i2c: E2 [09:52:31]MH_I2C_Read... [09:52:31]Read from MH i2c: E2 62 00 [09:52:31]MH_I2C_Read... [09:52:31]Read from MH i2c: E2 62 00 20 97 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 BD 94 01 00 0E 04 04 00 61 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 8F [09:52: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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 BD 94 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 2B 00 00 00 5E 04 04 00 2B 00 00 00 57 04 04 00 2C 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:52:31]wFMCommunicate OK [09:52:31]SAM_PROTO_GetFieldsCounters done [09:52:31]requested_item shift.num is exist - process it [09:52:31]requested_item shift.opened is exist - process it [09:52:31]req_shift_opened [09:52:31]FM_GetShiftState [09:52:31]SAM_PROTO_GetShiftState [09:52:31]wFMCommunicate request_size=4 [09:52:31]MH_SAM_APDU [09:52:31]CAPDU: 80 13 01 00 [09:52:31]Write to MH i2c: E2 08 00 21 97 80 13 01 00 00 00 00 00 35 [09:52:31]Write i2c OK [09:52:31]MH_I2C_Read... [09:52:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:52:32]Read from MH i2c: E2 [09:52:32]MH_I2C_Read... [09:52:32]Read from MH i2c: E2 0E 00 [09:52:32]MH_I2C_Read... [09:52:32]Read from MH i2c: E2 0E 00 21 97 00 09 00 01 04 26 72 66 00 00 00 00 90 00 43 [09:52:32]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [09:52:32]wFMCommunicate OK [09:52:32]SAM_PROTO_GetShiftState done [09:52:32]FM_GetShiftState done [09:52:32]req_shift_opened done [09:52:32]requested_item shift.open_date is exist - process it [09:52:32]req_shift_open_date [09:52:32]req_shift_open_date done [09:52:32]produce_requested_data done [09:52:32]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103613,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [09:52:32]process_action_free close_receipt [09:52:32]json_value_free [09:52:32]json_value_free done [09:52:32]process_json_proto returns [09:52:32]Send response to host [09:52:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103613,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [09:52:32]free response buf [09:52:32]execute_script done [09:52:32]execute_script returns [09:52:32]free content buf [09:52:32]Sock 7.Close socket [09:52:32]Sock 7.Thread stoped [09:52:35]OFD Sender: No OFD packet to send [09:52:40]OFD Sender: No OFD packet to send [09:52:45]OFD Sender: No OFD packet to send [09:52:50]OFD Sender: No OFD packet to send [09:52:55]OFD Sender: No OFD packet to send [09:53:00]OFD Sender: No OFD packet to send [09:53:05]OFD Sender: No OFD packet to send [09:53:10]OFD Sender: No OFD packet to send [09:53:15]OFD Sender: No OFD packet to send [09:53:20]OFD Sender: No OFD packet to send [09:53:25]accept exits with 9 [09:53:25]New connection [09:53:25]New thread 3067084132 created [09:53:25]Thread 3067227492 joined [09:53:25]Waiting for new connection... [09:53:25] Sock 9.Parse request [09:53:25]Sock 9.Check first char [09:53:25]Sock 9.First char is OK [09:53:25]request: POST /json_proto HTTP/1.0 [09:53:25]Method: POST [09:53:25]URL: /json_proto [09:53:25]Method is POST - this is cgi request [09:53:25]url: /json_proto [09:53:25]query_string will be loaded in cgi processing [09:53:25]execute_cgi json_proto POST (null) [09:53:25]execute_cgi path=json_proto method=POST [09:53:25]POST find Content-Length [09:53:25]Host: 172.17.38.133:8080 [09:53:25]Content-Length: 677 [09:53:25]Content-Type: application/json [09:53:25] [09:53:25]POST finish read [09:53:25]Found Content-Length = 677 [09:53:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672845", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 8.120, "sum" : 600.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:53:25]execute_script... [09:53: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)672845", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 8.120, "sum" : 600.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:53:25]POST & json_proto [09:53:25]process_json_proto [09:53:25]json parsed OK: [09:53:25]protocol is kg_v1.0 [09:53:25]action value=close_receipt [09:53:25]process_action close_receipt [09:53:25]cmd_close_receipt [09:53:25]MH_GetDate [09:53:25]Write to MH i2c: F0 00 00 22 97 A8 [09:53:25]Write i2c OK [09:53:25]MH_I2C_Read... [09:53:25]Read from MH i2c: F0 [09:53:25]MH_I2C_Read... [09:53:25]Read from MH i2c: F0 09 00 [09:53:25]MH_I2C_Read... [09:53:25]Read from MH i2c: F0 09 00 22 97 00 A1 AA 72 66 BD 8F 7C 64 00 [09:53:25]GetLastDocTimeStamp 1718790759 [09:53:25]current date 1718790817 [09:53:25]FM_GetShiftState [09:53:25]SAM_PROTO_GetShiftState [09:53:25]wFMCommunicate request_size=4 [09:53:25]MH_SAM_APDU [09:53:25]CAPDU: 80 13 01 00 [09:53:25]Write to MH i2c: E2 08 00 23 97 80 13 01 00 00 00 00 00 37 [09:53:25]Write i2c OK [09:53:25]MH_I2C_Read... [09:53:25]OFD Sender: No OFD packet to send [09:53:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:53:25]Read from MH i2c: E2 [09:53:25]MH_I2C_Read... [09:53:25]Read from MH i2c: E2 0E 00 [09:53:25]MH_I2C_Read... [09:53:25]Read from MH i2c: E2 0E 00 23 97 00 09 00 01 04 26 72 66 00 00 00 00 90 00 45 [09:53:25]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [09:53:25]wFMCommunicate OK [09:53:25]SAM_PROTO_GetShiftState done [09:53:25]FM_GetShiftState done [09:53:25]opened in 1718756868 [09:53:25]opened+sec_in_day 1718843268 [09:53:25]quantity*price = 60006 [09:53:25]sum+1 = 60008 [09:53:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.07 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.72 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 44 19.06.2024 09:53 Смена: 353 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103614 ФПД: 187889316036609 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T095337&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103614&fm=187889316036609&tin=02508201610067®Number=0000000000092785&sum=60000 [09:53:27]StoreToDocumentArchive [09:53:27]shift 353 fd 103614 [09:53:27]save to /storage/0353/doc_00103614 [09:53:27]save last doc name /storage/0353/doc_00103614 to /storage/kkm_last_doc_name [09:53:27]save OK [09:53:27]Clear old archive folders... [09:53:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:53:27]tlvbuf is 0139DD70 [09:53:27]SAM_PROTO_ClearQueue [09:53:27]wFMCommunicate request_size=4 [09:53:27]MH_SAM_APDU [09:53:27]CAPDU: 80 09 00 00 [09:53:27]Write to MH i2c: E2 08 00 30 97 80 09 00 00 00 00 00 00 39 [09:53:27]Write i2c OK [09:53:27]MH_I2C_Read... [09:53:27]Read from MH i2c: E2 [09:53:27]MH_I2C_Read... [09:53:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:53:27]Read from MH i2c: E2 03 00 [09:53:27]MH_I2C_Read... [09:53:27]Read from MH i2c: E2 03 00 30 97 00 90 00 3B [09:53:27]RAPDU: 90 00 [09:53:27]wFMCommunicate OK [09:53:27]SAM_PROTO_ClearQueue done [09:53:27]KKMCreateOFDPacket [09:53:27]OFDProtocolAddRootSTLVToBuf [09:53:27]FM_MakeSignedData [09:53:27]FM_MakeSignedData [09:53:27]SAM_PROTO_SignData [09:53:27]wFMCommunicate request_size=4 [09:53:27]MH_SAM_APDU [09:53:27]CAPDU: 80 0D 01 02 [09:53:27]Write to MH i2c: E2 08 00 31 97 80 0D 01 02 00 00 00 00 41 [09:53:27]Write i2c OK [09:53:27]MH_I2C_Read... [09:53:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:53:27]Read from MH i2c: E2 [09:53:27]MH_I2C_Read... [09:53:27]Read from MH i2c: E2 03 00 [09:53:27]MH_I2C_Read... [09:53:27]Read from MH i2c: E2 03 00 31 97 00 90 00 3C [09:53:27]RAPDU: 90 00 [09:53:27]wFMCommunicate OK [09:53:27]wFMCommunicate request_size=255 [09:53:27]MH_SAM_APDU [09:53:27]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 B8 1F 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 67 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 A1 AA 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 BE 94 01 00 35 04 06 00 AA [09:53:27]Write to MH i2c: E2 02 01 32 97 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 B8 1F 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 67 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 A1 AA 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 BE 94 01 00 35 04 06 00 AA 00 00 CA [09:53:27]Write i2c OK [09:53:27]MH_I2C_Read... [09:53:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:53:27]Read from MH i2c: E2 [09:53:27]MH_I2C_Read... [09:53:27]Read from MH i2c: E2 03 00 [09:53:27]MH_I2C_Read... [09:53:27]Read from MH i2c: E2 03 00 32 97 00 90 00 3D [09:53:27]RAPDU: 90 00 [09:53:27]wFMCommunicate OK [09:53:27]wFMCommunicate request_size=10 [09:53:27]MH_SAM_APDU [09:53:27]CAPDU: 80 0D 02 02 05 E2 63 F0 80 01 [09:53:27]Write to MH i2c: E2 0D 00 33 97 80 0D 02 02 05 00 E2 63 F0 80 01 00 00 04 [09:53:27]Write i2c OK [09:53:27]MH_I2C_Read... [09:53:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:53:27]Read from MH i2c: E2 [09:53:27]MH_I2C_Read... [09:53:27]Read from MH i2c: E2 03 00 [09:53:27]MH_I2C_Read... [09:53:27]Read from MH i2c: E2 03 00 33 97 00 90 00 3E [09:53:27]RAPDU: 90 00 [09:53:27]wFMCommunicate OK [09:53:27]wFMCommunicate request_size=4 [09:53:27]MH_SAM_APDU [09:53:27]CAPDU: 80 0D 03 02 [09:53:27]Write to MH i2c: E2 08 00 34 97 80 0D 03 02 00 00 00 00 46 [09:53:27]Write i2c OK [09:53:27]MH_I2C_Read... [09:53:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:53:27]Read from MH i2c: E2 [09:53:27]MH_I2C_Read... [09:53:27]Read from MH i2c: E2 0B 00 [09:53:27]MH_I2C_Read... [09:53:27]Read from MH i2c: E2 0B 00 34 97 00 FA 91 C5 BF FC AA 8B A8 90 00 2F [09:53:27]RAPDU: FA 91 C5 BF FC AA 8B A8 90 00 [09:53:27]wFMCommunicate OK [09:53:27]SAM_PROTO_SignData done [09:53:27]FM_MakeSignedData done [09:53:27]CreateOFDProtocolMessage [09:53:27]wFMCommunicate request_size=4 [09:53:27]MH_SAM_APDU [09:53:27]CAPDU: 80 11 00 00 [09:53:27]Write to MH i2c: E2 08 00 35 97 80 11 00 00 00 00 00 00 46 [09:53:27]Write i2c OK [09:53:27]MH_I2C_Read... [09:53:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:53:27]Read from MH i2c: E2 [09:53:27]MH_I2C_Read... [09:53:27]Read from MH i2c: E2 17 00 [09:53:27]MH_I2C_Read... [09:53:27]Read from MH i2c: E2 17 00 35 97 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 99 [09:53:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [09:53:27]wFMCommunicate OK [09:53:27]CreateOFDProtocolMessage done [09:53:27]OFDSenderStorePacket 103614 [09:53:27]StoreOFDPacket docnum=103614 [09:53:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 08 94 07 01 53 33 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 B8 1F 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 67 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 A1 AA 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 BE 94 01 00 35 04 06 00 AA E2 63 F0 80 01 FA 91 C5 BF FC AA 8B A8 [09:53:27]CheckFolder [09:53:27]dirname=/storage/ofd_packets [09:53:27]CheckFolder done [09:53:27]ProducePacketName [09:53:27]name=ofd_packets/00103614 [09:53:27]NVStorageSaveData ofd_packets/00103614 [09:53:27]File name is /storage/ofd_packets/00103614 [09:53:27]Write 301 bytes [09:53:27]NVStorageSaveData done [09:53:27]OFDSenderStorePacket done [09:53:27]KKMCreateOFDPacket done [09:53:27]NVStorageSaveData kkm_last_timestamp [09:53:27]File name is /storage/kkm_last_timestamp [09:53:27]Write 4 bytes [09:53:27]NVStorageSaveData done [09:53:27]ExternCall_PrintAddStr [09:53:27]wPrintStart [09:53:27]Write to MH i2c: 01 00 00 36 97 CD [09:53:27]Write i2c OK [09:53:27]MH_I2C_Read... [09:53:27]Read from MH i2c: 01 [09:53:27]MH_I2C_Read... [09:53:27]Read from MH i2c: 01 07 00 [09:53:27]MH_I2C_Read... [09:53:27]Read from MH i2c: 01 07 00 36 97 00 00 00 00 00 FF 0F E2 [09:53:27]RasterBufferAndPrint [09:53:27]line Счет N : (1)672845 [09:53:27]line ИНН: 02508201610067 [09:53:27]line Контрольно-Кассовый Чек [09:53:27]line ПРОДАЖА [09:53:27]line ТРК (МРК, ГНК) : 31 [09:53:27]line Товар: 2710124500 [09:53:27]line Аи-95-К-5 [09:53:27]line 8.120 * 73.90 [09:53:27]line = 600.07 [09:53:27]line НДС 12% НСП 1% [09:53:27]line > о реализуемом товаре [09:53:27]line ОКРУГЛЕНИЕ: -0.07 [09:53:27]line ИТОГО: 600.00 [09:53:27]line Внесено: 600.00 [09:53:27]line СДАЧА: 0.00 [09:53:27]line НСП 1% : 5.31 [09:53:27]line НДС 12% : 63.72 [09:53:27]line Наличными: 600.00 [09:53:27]line Безнал.: 0.00 [09:53:27]line Место: АЗС № 120 "Партнер Нефть" [09:53:27]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [09:53:27]line СНО: Общий режим [09:53:27]line Чек 44 19.06.2024 09:53 [09:53:27]line Смена: 353 ФФД: 1.0 [09:53:27]line ЗНМ: 0300000164 [09:53:27]line РНМ: 0000000000092785 [09:53:27]line Версия ККМ: 001 [09:53:27]line ФМ: 0000000000875093 [09:53:27]line ФД: 103614 [09:53:27]line ФПД: 187889316036609 [09:53:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T095337&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103614&fm=187889316036609&tin=02508201610067®Number=0000000000092785&sum=60000 [09:53:27]written 0, free lines is 4095 [09:53:27]OFD Sender: Processing packet 103614 [packets to send 17, broken 16] [09:53:27]ProducePacketName [09:53:27]name=ofd_packets/00103614 [09:53:27]OFD Sender: To server: pG, [09:53:27]CommunicateWithHost lk.salyk.kg:30040 [09:53:27]ConnectInit lk.salyk.kg [09:53:28]Connected sock=10 [09:53:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 08 94 07 01 53 33 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 B8 1F 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 67 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 A1 AA 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 BE 94 01 00 35 04 06 00 AA E2 63 F0 80 01 FA 91 C5 BF FC AA 8B A8 [09:53: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 39 33 4F 00 00 00 8C D9 47 00 B1 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 39 33 10 04 04 00 BE 94 01 00 F4 03 04 00 2A 51 72 66 B6 04 01 00 00 88 00 09 C2 2D 70 01 90 [09:53:28]CommunicateWithHost err = 0 [09:53:28]CheckOFDResponse [09:53:28]1017 (14) - 77093643461234 [09:53:28]1041 (16) - 0000000000875093 [09:53:28]1040 (4) - 103614 [09:53:28]1012 (4) - 19.06.2024 03:31 [09:53:28]1206 (1) - 0 [09:53:28]OFD Sender: Remove packet 103614 [09:53:28]ProducePacketName [09:53:28]name=ofd_packets/00103614 [09:53:28]NVStorageDeleteData [09:53:28]Write to MH i2c: 01 00 00 61 97 F8 [09:53:28]Write i2c OK [09:53:28]MH_I2C_Read... [09:53:28]Read from MH i2c: 01 [09:53:28]MH_I2C_Read... [09:53:28]Read from MH i2c: 01 07 00 [09:53:28]MH_I2C_Read... [09:53:28]Read from MH i2c: 01 07 00 61 97 00 00 00 00 00 E4 0C EF [09:53:28]RasterBufferAndPrint [09:53:28]line [09:53:28]line [09:53:28]line [09:53:28]line [09:53:28]line [09:53:28]written 0, free lines is 3309 [09:53:28]MH_Cut [09:53:28]Write to MH i2c: D1 01 00 68 97 01 D1 [09:53:28]Write i2c OK [09:53:28]MH_I2C_Read... [09:53:28]Read from MH i2c: D1 [09:53:28]MH_I2C_Read... [09:53:28]Read from MH i2c: D1 01 00 [09:53:28]MH_I2C_Read... [09:53:28]Read from MH i2c: D1 01 00 68 97 00 D0 [09:53:28]Write to MH i2c: 01 00 00 69 97 00 [09:53:28]Write i2c OK [09:53:28]MH_I2C_Read... [09:53:28]OFD Sender: No OFD packet to send [09:53:29]*** Cut start [09:53:29]*** Partial cut [09:53:29]*** CUTSNS_PIN = 1 [09:53:29]*** CUTSNS_PIN = 0 [09:53:29]*** Brake cut motor [09:53:29]Read from MH i2c: 01 [09:53:29]MH_I2C_Read... [09:53:29]*** Stop cut motor [09:53:29]*** Cut end [09:53:29]Read from MH i2c: 01 07 00 [09:53:29]MH_I2C_Read... [09:53:29]Read from MH i2c: 01 07 00 69 97 00 00 00 00 00 FF 0F 15 [09:53:29]process_action close_receipt done [09:53:29]requested_data is exist [09:53:29]produce_requested_data [09:53:29]requested_item fm.sn is exist - process it [09:53:29]wFMCommunicate request_size=4 [09:53:29]MH_SAM_APDU [09:53:29]CAPDU: 80 11 00 00 [09:53:29]Write to MH i2c: E2 08 00 6A 97 80 11 00 00 00 00 00 00 7B [09:53:29]Write i2c OK [09:53:29]MH_I2C_Read... [09:53:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:53:29]Read from MH i2c: E2 [09:53:29]MH_I2C_Read... [09:53:29]Read from MH i2c: E2 17 00 [09:53:29]MH_I2C_Read... [09:53:29]Read from MH i2c: E2 17 00 6A 97 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 CE [09:53:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [09:53:29]wFMCommunicate OK [09:53:29]requested_item fd.num is exist - process it [09:53:29]SAM_PROTO_GetFieldsCounters [09:53:29]wFMCommunicate request_size=4 [09:53:29]MH_SAM_APDU [09:53:29]CAPDU: 80 13 00 00 [09:53:29]Write to MH i2c: E2 08 00 6B 97 80 13 00 00 00 00 00 00 7E [09:53:29]Write i2c OK [09:53:29]MH_I2C_Read... [09:53:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:53:29]Read from MH i2c: E2 [09:53:29]MH_I2C_Read... [09:53:29]Read from MH i2c: E2 62 00 [09:53:29]MH_I2C_Read... [09:53:29]Read from MH i2c: E2 62 00 6B 97 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 BE 94 01 00 0E 04 04 00 61 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 DE [09:53: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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 BE 94 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 2C 00 00 00 5E 04 04 00 2C 00 00 00 57 04 04 00 2D 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:53:29]wFMCommunicate OK [09:53:29]SAM_PROTO_GetFieldsCounters done [09:53:29]requested_item shift.num is exist - process it [09:53:29]requested_item shift.opened is exist - process it [09:53:29]req_shift_opened [09:53:29]FM_GetShiftState [09:53:29]SAM_PROTO_GetShiftState [09:53:29]wFMCommunicate request_size=4 [09:53:29]MH_SAM_APDU [09:53:29]CAPDU: 80 13 01 00 [09:53:29]Write to MH i2c: E2 08 00 6C 97 80 13 01 00 00 00 00 00 80 [09:53:29]Write i2c OK [09:53:29]MH_I2C_Read... [09:53:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:53:29]Read from MH i2c: E2 [09:53:29]MH_I2C_Read... [09:53:29]Read from MH i2c: E2 0E 00 [09:53:29]MH_I2C_Read... [09:53:29]Read from MH i2c: E2 0E 00 6C 97 00 09 00 01 04 26 72 66 00 00 00 00 90 00 8E [09:53:29]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [09:53:29]wFMCommunicate OK [09:53:29]SAM_PROTO_GetShiftState done [09:53:29]FM_GetShiftState done [09:53:29]req_shift_opened done [09:53:29]requested_item shift.open_date is exist - process it [09:53:29]req_shift_open_date [09:53:29]req_shift_open_date done [09:53:29]produce_requested_data done [09:53:29]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103614,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [09:53:29]process_action_free close_receipt [09:53:29]json_value_free [09:53:29]json_value_free done [09:53:29]process_json_proto returns [09:53:29]Send response to host [09:53:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103614,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [09:53:29]free response buf [09:53:29]execute_script done [09:53:29]execute_script returns [09:53:29]free content buf [09:53:29]Sock 9.Close socket [09:53:29]Sock 9.Thread stoped [09:53:33]OFD Sender: No OFD packet to send [09:53:38]OFD Sender: No OFD packet to send [09:53:43]OFD Sender: No OFD packet to send [09:53:48]OFD Sender: No OFD packet to send [09:53:53]OFD Sender: No OFD packet to send [09:53:58]OFD Sender: No OFD packet to send [09:54:03]OFD Sender: No OFD packet to send [09:54:08]OFD Sender: No OFD packet to send [09:54:13]OFD Sender: No OFD packet to send [09:54:18]OFD Sender: No OFD packet to send [09:54:23]OFD Sender: No OFD packet to send [09:54:28]OFD Sender: No OFD packet to send [09:54:33]OFD Sender: No OFD packet to send [09:54:38]OFD Sender: No OFD packet to send [09:54:43]OFD Sender: No OFD packet to send [09:54:48]OFD Sender: No OFD packet to send [09:54:53]OFD Sender: No OFD packet to send [09:54:58]OFD Sender: No OFD packet to send [09:55:03]OFD Sender: No OFD packet to send [09:55:08]OFD Sender: No OFD packet to send [09:55:13]OFD Sender: No OFD packet to send [09:55:18]OFD Sender: No OFD packet to send [09:55:23]OFD Sender: No OFD packet to send [09:55:28]OFD Sender: No OFD packet to send [09:55:33]OFD Sender: No OFD packet to send [09:55:38]OFD Sender: No OFD packet to send [09:55:43]OFD Sender: No OFD packet to send [09:55:48]OFD Sender: No OFD packet to send [09:55:53]OFD Sender: No OFD packet to send [09:55:58]OFD Sender: No OFD packet to send [09:56:03]OFD Sender: No OFD packet to send [09:56:08]OFD Sender: No OFD packet to send [09:56:13]OFD Sender: No OFD packet to send [09:56:18]OFD Sender: No OFD packet to send [09:56:23]OFD Sender: No OFD packet to send [09:56:28]OFD Sender: No OFD packet to send [09:56:33]OFD Sender: No OFD packet to send [09:56:38]OFD Sender: No OFD packet to send [09:56:43]OFD Sender: No OFD packet to send [09:56:48]OFD Sender: No OFD packet to send [09:56:53]OFD Sender: No OFD packet to send [09:56:58]OFD Sender: No OFD packet to send [09:57:03]OFD Sender: No OFD packet to send [09:57:08]OFD Sender: No OFD packet to send [09:57:13]OFD Sender: No OFD packet to send [09:57:18]OFD Sender: No OFD packet to send [09:57:23]OFD Sender: No OFD packet to send [09:57:28]OFD Sender: No OFD packet to send [09:57:33]OFD Sender: No OFD packet to send [09:57:38]OFD Sender: No OFD packet to send [09:57:43]OFD Sender: No OFD packet to send [09:57:49]OFD Sender: No OFD packet to send [09:57:54]OFD Sender: No OFD packet to send [09:57:59]OFD Sender: No OFD packet to send [09:58:04]OFD Sender: No OFD packet to send [09:58:09]OFD Sender: No OFD packet to send [09:58:14]OFD Sender: No OFD packet to send [09:58:19]OFD Sender: No OFD packet to send [09:58:24]OFD Sender: No OFD packet to send [09:58:29]OFD Sender: No OFD packet to send [09:58:34]OFD Sender: No OFD packet to send [09:58:39]OFD Sender: No OFD packet to send [09:58:44]OFD Sender: No OFD packet to send [09:58:49]OFD Sender: No OFD packet to send [09:58:54]OFD Sender: No OFD packet to send [09:58:59]OFD Sender: No OFD packet to send [09:59:04]OFD Sender: No OFD packet to send [09:59:09]OFD Sender: No OFD packet to send [09:59:14]OFD Sender: No OFD packet to send [09:59:19]OFD Sender: No OFD packet to send [09:59:24]OFD Sender: No OFD packet to send [09:59:29]OFD Sender: No OFD packet to send [09:59:34]OFD Sender: No OFD packet to send [09:59:39]OFD Sender: No OFD packet to send [09:59:44]OFD Sender: No OFD packet to send [09:59:49]OFD Sender: No OFD packet to send [09:59:54]OFD Sender: No OFD packet to send [09:59:59]OFD Sender: No OFD packet to send [10:00:04]OFD Sender: No OFD packet to send [10:00:09]OFD Sender: No OFD packet to send [10:00:14]OFD Sender: No OFD packet to send [10:00:19]OFD Sender: No OFD packet to send [10:00:24]OFD Sender: No OFD packet to send [10:00:29]OFD Sender: No OFD packet to send [10:00:34]OFD Sender: No OFD packet to send [10:00:39]OFD Sender: No OFD packet to send [10:00:44]OFD Sender: No OFD packet to send [10:00:49]OFD Sender: No OFD packet to send [10:00:54]OFD Sender: No OFD packet to send [10:00:59]OFD Sender: No OFD packet to send [10:01:04]OFD Sender: No OFD packet to send [10:01:09]OFD Sender: No OFD packet to send [10:01:14]OFD Sender: No OFD packet to send [10:01:19]OFD Sender: No OFD packet to send [10:01:24]OFD Sender: No OFD packet to send [10:01:29]OFD Sender: No OFD packet to send [10:01:34]OFD Sender: No OFD packet to send [10:01:39]OFD Sender: No OFD packet to send [10:01:44]OFD Sender: No OFD packet to send [10:01:49]OFD Sender: No OFD packet to send [10:01:54]OFD Sender: No OFD packet to send [10:01:59]OFD Sender: No OFD packet to send [10:02:04]OFD Sender: No OFD packet to send [10:02:09]OFD Sender: No OFD packet to send [10:02:14]OFD Sender: No OFD packet to send [10:02:19]OFD Sender: No OFD packet to send [10:02:24]OFD Sender: No OFD packet to send [10:02:29]OFD Sender: No OFD packet to send [10:02:34]OFD Sender: No OFD packet to send [10:02:39]OFD Sender: No OFD packet to send [10:02:44]OFD Sender: No OFD packet to send [10:02:49]OFD Sender: No OFD packet to send [10:02:54]OFD Sender: No OFD packet to send [10:02:59]OFD Sender: No OFD packet to send [10:03:04]OFD Sender: No OFD packet to send [10:03:09]OFD Sender: No OFD packet to send [10:03:14]OFD Sender: No OFD packet to send [10:03:19]OFD Sender: No OFD packet to send [10:03:24]OFD Sender: No OFD packet to send [10:03:29]OFD Sender: No OFD packet to send [10:03:34]OFD Sender: No OFD packet to send [10:03:39]OFD Sender: No OFD packet to send [10:03:44]OFD Sender: No OFD packet to send [10:03:49]OFD Sender: No OFD packet to send [10:03:54]OFD Sender: No OFD packet to send [10:03:59]OFD Sender: No OFD packet to send [10:04:04]OFD Sender: No OFD packet to send [10:04:09]OFD Sender: No OFD packet to send [10:04:14]OFD Sender: No OFD packet to send [10:04:19]OFD Sender: No OFD packet to send [10:04:24]OFD Sender: No OFD packet to send [10:04:29]OFD Sender: No OFD packet to send [10:04:29]accept exits with 7 [10:04:29]New connection [10:04:29]New thread 3067227492 created [10:04:29]Thread 3067084132 joined [10:04:29]Waiting for new connection... [10:04:29] Sock 7.Parse request [10:04:29]Sock 7.Check first char [10:04:29]Sock 7.First char is OK [10:04:29]request: POST /json_proto HTTP/1.0 [10:04:29]Method: POST [10:04:29]URL: /json_proto [10:04:29]Method is POST - this is cgi request [10:04:29]url: /json_proto [10:04:29]query_string will be loaded in cgi processing [10:04:29]execute_cgi json_proto POST (null) [10:04:29]execute_cgi path=json_proto method=POST [10:04:29]POST find Content-Length [10:04:29]Host: 172.17.38.133:8080 [10:04:29]Content-Length: 1174 [10:04:29]Content-Type: application/json [10:04:29] [10:04:29]POST finish read [10:04:29]Found Content-Length = 1174 [10:04:29]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 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. \u000A\u0421\u0447\u0435\u0442 N : (1)672848\u000A19.06.2024 09:41\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 21\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-5\u000A 20.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 1458.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30150215\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:04:29]execute_script... [10:04:29]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 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. \u000A\u0421\u0447\u0435\u0442 N : (1)672848\u000A19.06.2024 09:41\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 21\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-5\u000A 20.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 1458.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30150215\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:04:29]POST & json_proto [10:04:29]process_json_proto [10:04:29]json parsed OK: [10:04:29]protocol is kg_v1.0 [10:04:29]action value=print_text [10:04:29]process_action print_text [10:04:29]cmd_print_text [10:04:29]ExternCall_PrintAddStr [10:04:29]wPrintStart [10:04:29]Write to MH i2c: 01 00 00 6D 97 04 [10:04:29]Write i2c OK [10:04:29]MH_I2C_Read... [10:04:29]Read from MH i2c: 01 [10:04:29]MH_I2C_Read... [10:04:29]Read from MH i2c: 01 07 00 [10:04:29]MH_I2C_Read... [10:04:29]Read from MH i2c: 01 07 00 6D 97 00 00 00 00 00 FF 0F 19 [10:04:29]RasterBufferAndPrint [10:04:29]line *****ТОВАРНЫЙ ЧЕК***** [10:04:29]line АЗС 120 [10:04:29]line Партнер нефть [10:04:29]line 02508201610067 [10:04:29]line Кассир : Байбугуева Г. [10:04:29]line Счет N : (1)672848 [10:04:29]line 19.06.2024 09:41 [10:04:29]line ПРОДАЖА [10:04:29]line ТРК (МРК, ГНК): 21 [10:04:29]line Вид ГСМ : 2710194210 [10:04:29]line ДТ(л)-К-5 [10:04:29]line 20.000 x 72.90 [10:04:29]line ИТОГ: 1458.00 [10:04:29]line Тип оплаты: Талоны: ТК ГПНА Online [10:04:29]line 30150215 [10:04:29]line ______________________ [10:04:29]line (подпись) [10:04:29]written 0, free lines is 4095 [10:04:29]Write to MH i2c: 01 00 00 81 97 18 [10:04:29]Write i2c OK [10:04:29]MH_I2C_Read... [10:04:29]Read from MH i2c: 01 [10:04:29]MH_I2C_Read... [10:04:29]Read from MH i2c: 01 07 00 [10:04:29]MH_I2C_Read... [10:04:29]Read from MH i2c: 01 07 00 81 97 00 00 00 00 00 12 0E 3F [10:04:29]RasterBufferAndPrint [10:04:29]line [10:04:29]line [10:04:29]line [10:04:29]line [10:04:29]line [10:04:29]written 0, free lines is 3603 [10:04:29]MH_Cut [10:04:29]Write to MH i2c: D1 01 00 88 97 01 F1 [10:04:29]Write i2c OK [10:04:29]MH_I2C_Read... [10:04:29]Read from MH i2c: D1 [10:04:29]MH_I2C_Read... [10:04:29]Read from MH i2c: D1 01 00 [10:04:29]MH_I2C_Read... [10:04:29]Read from MH i2c: D1 01 00 88 97 00 F0 [10:04:29]Write to MH i2c: 01 00 00 89 97 20 [10:04:29]Write i2c OK [10:04:29]MH_I2C_Read... [10:04:30]*** Cut start [10:04:30]*** Partial cut [10:04:30]*** CUTSNS_PIN = 1 [10:04:30]*** CUTSNS_PIN = 0 [10:04:30]*** Brake cut motor [10:04:30]Read from MH i2c: 01 [10:04:30]MH_I2C_Read... [10:04:30]*** Stop cut motor [10:04:30]*** Cut end [10:04:30]Read from MH i2c: 01 07 00 [10:04:30]MH_I2C_Read... [10:04:30]Read from MH i2c: 01 07 00 89 97 00 00 00 00 00 FF 0F 35 [10:04:30]process_action print_text done [10:04:30]requested_data is exist [10:04:30]produce_requested_data [10:04:30]requested_item fm.sn is exist - process it [10:04:30]wFMCommunicate request_size=4 [10:04:30]MH_SAM_APDU [10:04:30]CAPDU: 80 11 00 00 [10:04:30]Write to MH i2c: E2 08 00 8A 97 80 11 00 00 00 00 00 00 9B [10:04:30]Write i2c OK [10:04:30]MH_I2C_Read... [10:04:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:04:30]Read from MH i2c: E2 [10:04:30]MH_I2C_Read... [10:04:30]Read from MH i2c: E2 17 00 [10:04:30]MH_I2C_Read... [10:04:30]Read from MH i2c: E2 17 00 8A 97 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 EE [10:04:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [10:04:30]wFMCommunicate OK [10:04:30]requested_item fd.num is exist - process it [10:04:30]SAM_PROTO_GetFieldsCounters [10:04:30]wFMCommunicate request_size=4 [10:04:30]MH_SAM_APDU [10:04:30]CAPDU: 80 13 00 00 [10:04:30]Write to MH i2c: E2 08 00 8B 97 80 13 00 00 00 00 00 00 9E [10:04:30]Write i2c OK [10:04:30]MH_I2C_Read... [10:04:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:04:30]Read from MH i2c: E2 [10:04:30]MH_I2C_Read... [10:04:30]Read from MH i2c: E2 62 00 [10:04:30]MH_I2C_Read... [10:04:30]Read from MH i2c: E2 62 00 8B 97 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 BE 94 01 00 0E 04 04 00 61 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 FE [10:04:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 BE 94 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 2C 00 00 00 5E 04 04 00 2C 00 00 00 57 04 04 00 2D 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:04:30]wFMCommunicate OK [10:04:30]SAM_PROTO_GetFieldsCounters done [10:04:30]requested_item shift.num is exist - process it [10:04:30]requested_item shift.opened is exist - process it [10:04:30]req_shift_opened [10:04:30]FM_GetShiftState [10:04:30]SAM_PROTO_GetShiftState [10:04:30]wFMCommunicate request_size=4 [10:04:30]MH_SAM_APDU [10:04:30]CAPDU: 80 13 01 00 [10:04:30]Write to MH i2c: E2 08 00 8C 97 80 13 01 00 00 00 00 00 A0 [10:04:30]Write i2c OK [10:04:30]MH_I2C_Read... [10:04:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:04:30]Read from MH i2c: E2 [10:04:30]MH_I2C_Read... [10:04:30]Read from MH i2c: E2 0E 00 [10:04:30]MH_I2C_Read... [10:04:30]Read from MH i2c: E2 0E 00 8C 97 00 09 00 01 04 26 72 66 00 00 00 00 90 00 AE [10:04:30]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [10:04:30]wFMCommunicate OK [10:04:30]SAM_PROTO_GetShiftState done [10:04:30]FM_GetShiftState done [10:04:30]req_shift_opened done [10:04:30]requested_item shift.open_date is exist - process it [10:04:30]req_shift_open_date [10:04:30]req_shift_open_date done [10:04:30]produce_requested_data done [10:04:30]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103614,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [10:04:30]process_action_free print_text [10:04:30]json_value_free [10:04:30]json_value_free done [10:04:30]process_json_proto returns [10:04:30]Send response to host [10:04:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103614,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [10:04:30]free response buf [10:04:30]execute_script done [10:04:30]execute_script returns [10:04:30]free content buf [10:04:30]Sock 7.Close socket [10:04:30]Sock 7.Thread stoped [10:04:34]OFD Sender: No OFD packet to send [10:04:39]OFD Sender: No OFD packet to send [10:04:44]OFD Sender: No OFD packet to send [10:04:49]OFD Sender: No OFD packet to send [10:04:54]OFD Sender: No OFD packet to send [10:04:59]OFD Sender: No OFD packet to send [10:05:04]OFD Sender: No OFD packet to send [10:05:09]OFD Sender: No OFD packet to send [10:05:14]OFD Sender: No OFD packet to send [10:05:19]OFD Sender: No OFD packet to send [10:05:24]OFD Sender: No OFD packet to send [10:05:29]OFD Sender: No OFD packet to send [10:05:34]OFD Sender: No OFD packet to send [10:05:39]OFD Sender: No OFD packet to send [10:05:44]OFD Sender: No OFD packet to send [10:05:49]OFD Sender: No OFD packet to send [10:05:54]OFD Sender: No OFD packet to send [10:05:59]OFD Sender: No OFD packet to send [10:06:04]OFD Sender: No OFD packet to send [10:06:09]OFD Sender: No OFD packet to send [10:06:14]OFD Sender: No OFD packet to send [10:06:19]OFD Sender: No OFD packet to send [10:06:24]OFD Sender: No OFD packet to send [10:06:29]OFD Sender: No OFD packet to send [10:06:34]OFD Sender: No OFD packet to send [10:06:39]OFD Sender: No OFD packet to send [10:06:44]OFD Sender: No OFD packet to send [10:06:49]OFD Sender: No OFD packet to send [10:06:54]OFD Sender: No OFD packet to send [10:06:59]OFD Sender: No OFD packet to send [10:07:04]OFD Sender: No OFD packet to send [10:07:09]OFD Sender: No OFD packet to send [10:07:14]OFD Sender: No OFD packet to send [10:07:19]OFD Sender: No OFD packet to send [10:07:24]OFD Sender: No OFD packet to send [10:07:29]OFD Sender: No OFD packet to send [10:07:34]OFD Sender: No OFD packet to send [10:07:39]OFD Sender: No OFD packet to send [10:07:44]OFD Sender: No OFD packet to send [10:07:49]OFD Sender: No OFD packet to send [10:07:54]OFD Sender: No OFD packet to send [10:07:59]OFD Sender: No OFD packet to send [10:08:04]OFD Sender: No OFD packet to send [10:08:09]OFD Sender: No OFD packet to send [10:08:14]OFD Sender: No OFD packet to send [10:08:19]OFD Sender: No OFD packet to send [10:08:24]OFD Sender: No OFD packet to send [10:08:29]OFD Sender: No OFD packet to send [10:08:34]OFD Sender: No OFD packet to send [10:08:39]OFD Sender: No OFD packet to send [10:08:44]OFD Sender: No OFD packet to send [10:08:49]OFD Sender: No OFD packet to send [10:08:54]OFD Sender: No OFD packet to send [10:08:59]OFD Sender: No OFD packet to send [10:09:04]OFD Sender: No OFD packet to send [10:09:09]OFD Sender: No OFD packet to send [10:09:14]OFD Sender: No OFD packet to send [10:09:19]OFD Sender: No OFD packet to send [10:09:24]OFD Sender: No OFD packet to send [10:09: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:28]accept exits with 9 [10:12:28]New connection [10:12:28]New thread 3067084132 created [10:12:28]Thread 3067227492 joined [10:12:28]Waiting for new connection... [10:12:28] Sock 9.Parse request [10:12:28]Sock 9.Check first char [10:12:28]Sock 9.First char is OK [10:12:28]request: POST /json_proto HTTP/1.0 [10:12:28]Method: POST [10:12:28]URL: /json_proto [10:12:28]Method is POST - this is cgi request [10:12:28]url: /json_proto [10:12:28]query_string will be loaded in cgi processing [10:12:28]execute_cgi json_proto POST (null) [10:12:28]execute_cgi path=json_proto method=POST [10:12:28]POST find Content-Length [10:12:28]Host: 172.17.38.133:8080 [10:12:28]Content-Length: 1212 [10:12:28]Content-Type: application/json [10:12:28] [10:12:28]POST finish read [10:12:28]Found Content-Length = 1212 [10:12:28]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 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. \u000A\u0421\u0447\u0435\u0442 N : (1)672849\u000A19.06.2024 09:49\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-5\u000A 30.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 2187.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\u000A00562\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:12:28]execute_script... [10:12:28]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 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. \u000A\u0421\u0447\u0435\u0442 N : (1)672849\u000A19.06.2024 09:49\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-5\u000A 30.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 2187.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\u000A00562\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:12:28]POST & json_proto [10:12:28]process_json_proto [10:12:28]json parsed OK: [10:12:28]protocol is kg_v1.0 [10:12:28]action value=print_text [10:12:28]process_action print_text [10:12:28]cmd_print_text [10:12:28]ExternCall_PrintAddStr [10:12:28]wPrintStart [10:12:28]Write to MH i2c: 01 00 00 8D 97 24 [10:12:28]Write i2c OK [10:12:28]MH_I2C_Read... [10:12:28]Read from MH i2c: 01 [10:12:28]MH_I2C_Read... [10:12:28]Read from MH i2c: 01 07 00 [10:12:28]MH_I2C_Read... [10:12:28]Read from MH i2c: 01 07 00 8D 97 00 00 00 00 00 FF 0F 39 [10:12:28]RasterBufferAndPrint [10:12:28]line *****ТОВАРНЫЙ ЧЕК***** [10:12:28]line АЗС 120 [10:12:28]line Партнер нефть [10:12:28]line 02508201610067 [10:12:28]line Кассир : Байбугуева Г. [10:12:28]line Счет N : (1)672849 [10:12:28]line 19.06.2024 09:49 [10:12:28]line ПРОДАЖА [10:12:28]line ТРК (МРК, ГНК): 11 [10:12:28]line Вид ГСМ : 2710194210 [10:12:28]line ДТ(л)-К-5 [10:12:28]line 30.000 x 72.90 [10:12:28]line ИТОГ: 2187.00 [10:12:28]line Тип оплаты: Талоны: Топливная Карта [10:12:28]line 00562 [10:12:28]line ______________________ [10:12:28]line (подпись) [10:12:28]written 0, free lines is 4095 [10:12:29]Write to MH i2c: 01 00 00 A1 97 38 [10:12:29]Write i2c OK [10:12:29]MH_I2C_Read... [10:12:29]Read from MH i2c: 01 [10:12:29]MH_I2C_Read... [10:12:29]Read from MH i2c: 01 07 00 [10:12:29]MH_I2C_Read... [10:12:29]Read from MH i2c: 01 07 00 A1 97 00 00 00 00 00 13 0E 60 [10:12:29]RasterBufferAndPrint [10:12:29]line [10:12:29]line [10:12:29]line [10:12:29]line [10:12:29]line [10:12:29]written 0, free lines is 3605 [10:12:29]MH_Cut [10:12:29]Write to MH i2c: D1 01 00 A8 97 01 11 [10:12:29]Write i2c OK [10:12:29]MH_I2C_Read... [10:12:29]Read from MH i2c: D1 [10:12:29]MH_I2C_Read... [10:12:29]Read from MH i2c: D1 01 00 [10:12:29]MH_I2C_Read... [10:12:29]Read from MH i2c: D1 01 00 A8 97 00 10 [10:12:29]Write to MH i2c: 01 00 00 A9 97 40 [10:12:29]Write i2c OK [10:12:29]MH_I2C_Read... [10:12:29]*** Cut start [10:12:29]*** Partial cut [10:12:29]*** CUTSNS_PIN = 1 [10:12:29]*** CUTSNS_PIN = 0 [10:12:29]OFD Sender: No OFD packet to send [10:12:29]*** Brake cut motor [10:12:30]Read from MH i2c: 01 [10:12:30]MH_I2C_Read... [10:12:30]*** Stop cut motor [10:12:30]*** Cut end [10:12:30]Read from MH i2c: 01 07 00 [10:12:30]MH_I2C_Read... [10:12:30]Read from MH i2c: 01 07 00 A9 97 00 00 00 00 00 FF 0F 55 [10:12:30]process_action print_text done [10:12:30]requested_data is exist [10:12:30]produce_requested_data [10:12:30]requested_item fm.sn is exist - process it [10:12:30]wFMCommunicate request_size=4 [10:12:30]MH_SAM_APDU [10:12:30]CAPDU: 80 11 00 00 [10:12:30]Write to MH i2c: E2 08 00 AA 97 80 11 00 00 00 00 00 00 BB [10:12:30]Write i2c OK [10:12:30]MH_I2C_Read... [10:12:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:12:30]Read from MH i2c: E2 [10:12:30]MH_I2C_Read... [10:12:30]Read from MH i2c: E2 17 00 [10:12:30]MH_I2C_Read... [10:12:30]Read from MH i2c: E2 17 00 AA 97 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 0E [10:12:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [10:12:30]wFMCommunicate OK [10:12:30]requested_item fd.num is exist - process it [10:12:30]SAM_PROTO_GetFieldsCounters [10:12:30]wFMCommunicate request_size=4 [10:12:30]MH_SAM_APDU [10:12:30]CAPDU: 80 13 00 00 [10:12:30]Write to MH i2c: E2 08 00 AB 97 80 13 00 00 00 00 00 00 BE [10:12:30]Write i2c OK [10:12:30]MH_I2C_Read... [10:12:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:12:30]Read from MH i2c: E2 [10:12:30]MH_I2C_Read... [10:12:30]Read from MH i2c: E2 62 00 [10:12:30]MH_I2C_Read... [10:12:30]Read from MH i2c: E2 62 00 AB 97 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 BE 94 01 00 0E 04 04 00 61 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 1E [10:12:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 BE 94 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 2C 00 00 00 5E 04 04 00 2C 00 00 00 57 04 04 00 2D 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:12:30]wFMCommunicate OK [10:12:30]SAM_PROTO_GetFieldsCounters done [10:12:30]requested_item shift.num is exist - process it [10:12:30]requested_item shift.opened is exist - process it [10:12:30]req_shift_opened [10:12:30]FM_GetShiftState [10:12:30]SAM_PROTO_GetShiftState [10:12:30]wFMCommunicate request_size=4 [10:12:30]MH_SAM_APDU [10:12:30]CAPDU: 80 13 01 00 [10:12:30]Write to MH i2c: E2 08 00 AC 97 80 13 01 00 00 00 00 00 C0 [10:12:30]Write i2c OK [10:12:30]MH_I2C_Read... [10:12:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:12:30]Read from MH i2c: E2 [10:12:30]MH_I2C_Read... [10:12:30]Read from MH i2c: E2 0E 00 [10:12:30]MH_I2C_Read... [10:12:30]Read from MH i2c: E2 0E 00 AC 97 00 09 00 01 04 26 72 66 00 00 00 00 90 00 CE [10:12:30]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [10:12:30]wFMCommunicate OK [10:12:30]SAM_PROTO_GetShiftState done [10:12:30]FM_GetShiftState done [10:12:30]req_shift_opened done [10:12:30]requested_item shift.open_date is exist - process it [10:12:30]req_shift_open_date [10:12:30]req_shift_open_date done [10:12:30]produce_requested_data done [10:12:30]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103614,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [10:12:30]process_action_free print_text [10:12:30]json_value_free [10:12:30]json_value_free done [10:12:30]process_json_proto returns [10:12:30]Send response to host [10:12:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103614,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [10:12:30]free response buf [10:12:30]execute_script done [10:12:30]execute_script returns [10:12:30]free content buf [10:12:30]Sock 9.Close socket [10:12:30]Sock 9.Thread stoped [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:40]accept exits with 7 [10:13:40]New connection [10:13:40]New thread 3067227492 created [10:13:40]Thread 3067084132 joined [10:13:40]Waiting for new connection... [10:13:40] Sock 7.Parse request [10:13:40]Sock 7.Check first char [10:13:40]Sock 7.First char is OK [10:13:40]request: POST /json_proto HTTP/1.0 [10:13:40]Method: POST [10:13:40]URL: /json_proto [10:13:40]Method is POST - this is cgi request [10:13:40]url: /json_proto [10:13:40]query_string will be loaded in cgi processing [10:13:40]execute_cgi json_proto POST (null) [10:13:40]execute_cgi path=json_proto method=POST [10:13:40]POST find Content-Length [10:13:40]Host: 172.17.38.133:8080 [10:13:40]Content-Length: 682 [10:13:40]Content-Type: application/json [10:13:40] [10:13:40]POST finish read [10:13:40]Found Content-Length = 682 [10:13:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672850", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 21.090, "sum" : 1400.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1400.00, "total" : 1400.00, "payments": [ { "type": 0, "sum" : 1400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:13:40]execute_script... [10: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)672850", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 21.090, "sum" : 1400.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1400.00, "total" : 1400.00, "payments": [ { "type": 0, "sum" : 1400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:13:40]POST & json_proto [10:13:40]process_json_proto [10:13:40]json parsed OK: [10:13:40]protocol is kg_v1.0 [10:13:40]action value=close_receipt [10:13:40]process_action close_receipt [10:13:40]cmd_close_receipt [10:13:40]MH_GetDate [10:13:40]Write to MH i2c: F0 00 00 AD 97 33 [10:13:40]Write i2c OK [10:13:40]MH_I2C_Read... [10:13:40]Read from MH i2c: F0 [10:13:40]MH_I2C_Read... [10:13:40]Read from MH i2c: F0 09 00 [10:13:40]MH_I2C_Read... [10:13:40]Read from MH i2c: F0 09 00 AD 97 00 5F AF 72 66 BD 8F 7C 64 4E [10:13:40]GetLastDocTimeStamp 1718790817 [10:13:40]current date 1718792031 [10:13:40]FM_GetShiftState [10:13:40]SAM_PROTO_GetShiftState [10:13:40]wFMCommunicate request_size=4 [10:13:40]MH_SAM_APDU [10:13:40]CAPDU: 80 13 01 00 [10:13:40]Write to MH i2c: E2 08 00 AE 97 80 13 01 00 00 00 00 00 C2 [10:13:40]Write i2c OK [10:13:40]MH_I2C_Read... [10:13:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:13:40]Read from MH i2c: E2 [10:13:40]MH_I2C_Read... [10:13:40]Read from MH i2c: E2 0E 00 [10:13:40]MH_I2C_Read... [10:13:40]Read from MH i2c: E2 0E 00 AE 97 00 09 00 01 04 26 72 66 00 00 00 00 90 00 D0 [10:13:40]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [10:13:40]wFMCommunicate OK [10:13:40]SAM_PROTO_GetShiftState done [10:13:40]FM_GetShiftState done [10:13:40]opened in 1718756868 [10:13:40]opened+sec_in_day 1718843268 [10:13:40]quantity*price = 140037 [10:13:40]sum+1 = 140039 [10:13:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 1400.00 Внесено: 1400.00 СДАЧА: 0.00 НСП 1% : 12.39 НДС 12% : 148.71 Наличными: 1400.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 45 19.06.2024 10:13 Смена: 353 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103615 ФПД: 219871611982918 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T101351&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103615&fm=219871611982918&tin=02508201610067®Number=0000000000092785&sum=140000 [10:13:41]StoreToDocumentArchive [10:13:41]shift 353 fd 103615 [10:13:41]save to /storage/0353/doc_00103615 [10:13:41]save last doc name /storage/0353/doc_00103615 to /storage/kkm_last_doc_name [10:13:41]save OK [10:13:41]Clear old archive folders... [10:13:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:13:41]tlvbuf is 01390A70 [10:13:41]SAM_PROTO_ClearQueue [10:13:41]wFMCommunicate request_size=4 [10:13:41]MH_SAM_APDU [10:13:41]CAPDU: 80 09 00 00 [10:13:41]Write to MH i2c: E2 08 00 BB 97 80 09 00 00 00 00 00 00 C4 [10:13:41]Write i2c OK [10:13:41]MH_I2C_Read... [10:13:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:13:41]Read from MH i2c: E2 [10:13:41]MH_I2C_Read... [10:13:41]Read from MH i2c: E2 03 00 [10:13:41]MH_I2C_Read... [10:13:41]Read from MH i2c: E2 03 00 BB 97 00 90 00 C6 [10:13:41]RAPDU: 90 00 [10:13:41]wFMCommunicate OK [10:13:41]SAM_PROTO_ClearQueue done [10:13:41]KKMCreateOFDPacket [10:13:41]OFDProtocolAddRootSTLVToBuf [10:13:41]FM_MakeSignedData [10:13:41]FM_MakeSignedData [10:13:41]SAM_PROTO_SignData [10:13:41]wFMCommunicate request_size=4 [10:13:41]MH_SAM_APDU [10:13:41]CAPDU: 80 0D 01 02 [10:13:41]Write to MH i2c: E2 08 00 BC 97 80 0D 01 02 00 00 00 00 CC [10:13:41]Write i2c OK [10:13:41]MH_I2C_Read... [10:13:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:13:41]Read from MH i2c: E2 [10:13:41]MH_I2C_Read... [10:13:41]Read from MH i2c: E2 03 00 [10:13:41]MH_I2C_Read... [10:13:41]Read from MH i2c: E2 03 00 BC 97 00 90 00 C7 [10:13:41]RAPDU: 90 00 [10:13:41]wFMCommunicate OK [10:13:41]wFMCommunicate request_size=255 [10:13:41]MH_SAM_APDU [10: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 62 52 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 06 23 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 17 3A 00 00 00 00 07 04 06 00 E0 22 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 5F AF 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 BF 94 01 00 35 04 06 00 C7 [10:13:41]Write to MH i2c: E2 02 01 BD 97 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 62 52 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 06 23 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 17 3A 00 00 00 00 07 04 06 00 E0 22 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 5F AF 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 BF 94 01 00 35 04 06 00 C7 00 00 88 [10:13:41]Write i2c OK [10:13:41]MH_I2C_Read... [10:13:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:13:41]Read from MH i2c: E2 [10:13:41]MH_I2C_Read... [10:13:41]Read from MH i2c: E2 03 00 [10:13:41]MH_I2C_Read... [10:13:41]Read from MH i2c: E2 03 00 BD 97 00 90 00 C8 [10:13:41]RAPDU: 90 00 [10:13:41]wFMCommunicate OK [10:13:41]wFMCommunicate request_size=10 [10:13:41]MH_SAM_APDU [10:13:41]CAPDU: 80 0D 02 02 05 F8 D9 54 14 46 [10:13:41]Write to MH i2c: E2 0D 00 BE 97 80 0D 02 02 05 00 F8 D9 54 14 46 00 00 58 [10:13:41]Write i2c OK [10:13:41]MH_I2C_Read... [10:13:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:13:41]Read from MH i2c: E2 [10:13:41]MH_I2C_Read... [10:13:41]Read from MH i2c: E2 03 00 [10:13:41]MH_I2C_Read... [10:13:41]Read from MH i2c: E2 03 00 BE 97 00 90 00 C9 [10:13:41]RAPDU: 90 00 [10:13:41]wFMCommunicate OK [10:13:41]wFMCommunicate request_size=4 [10:13:41]MH_SAM_APDU [10:13:41]CAPDU: 80 0D 03 02 [10:13:41]Write to MH i2c: E2 08 00 BF 97 80 0D 03 02 00 00 00 00 D1 [10:13:41]Write i2c OK [10:13:41]MH_I2C_Read... [10:13:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:13:41]Read from MH i2c: E2 [10:13:41]MH_I2C_Read... [10:13:41]Read from MH i2c: E2 0B 00 [10:13:41]MH_I2C_Read... [10:13:41]Read from MH i2c: E2 0B 00 BF 97 00 5C 9C 50 E4 7E 09 81 5D 90 00 63 [10:13:41]RAPDU: 5C 9C 50 E4 7E 09 81 5D 90 00 [10:13:41]wFMCommunicate OK [10:13:41]SAM_PROTO_SignData done [10:13:41]FM_MakeSignedData done [10:13:41]CreateOFDProtocolMessage [10:13:41]wFMCommunicate request_size=4 [10:13:41]MH_SAM_APDU [10:13:41]CAPDU: 80 11 00 00 [10:13:41]Write to MH i2c: E2 08 00 C0 97 80 11 00 00 00 00 00 00 D1 [10:13:41]Write i2c OK [10:13:41]MH_I2C_Read... [10:13:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:13:41]Read from MH i2c: E2 [10:13:41]MH_I2C_Read... [10:13:41]Read from MH i2c: E2 17 00 [10:13:41]MH_I2C_Read... [10:13:41]Read from MH i2c: E2 17 00 C0 97 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 24 [10:13:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [10:13:41]wFMCommunicate OK [10:13:41]CreateOFDProtocolMessage done [10:13:41]OFDSenderStorePacket 103615 [10:13:41]StoreOFDPacket docnum=103615 [10:13:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 51 A4 07 01 B4 3F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 62 52 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 06 23 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 17 3A 00 00 00 00 07 04 06 00 E0 22 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 5F AF 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 BF 94 01 00 35 04 06 00 C7 F8 D9 54 14 46 5C 9C 50 E4 7E 09 81 5D [10:13:41]CheckFolder [10:13:41]dirname=/storage/ofd_packets [10:13:41]CheckFolder done [10:13:41]ProducePacketName [10:13:41]name=ofd_packets/00103615 [10:13:41]NVStorageSaveData ofd_packets/00103615 [10:13:41]File name is /storage/ofd_packets/00103615 [10:13:41]Write 301 bytes [10:13:41]NVStorageSaveData done [10:13:41]OFDSenderStorePacket done [10:13:41]KKMCreateOFDPacket done [10:13:41]NVStorageSaveData kkm_last_timestamp [10:13:41]File name is /storage/kkm_last_timestamp [10:13:41]Write 4 bytes [10:13:41]NVStorageSaveData done [10:13:41]ExternCall_PrintAddStr [10:13:41]wPrintStart [10:13:41]Write to MH i2c: 01 00 00 C1 97 58 [10:13:41]Write i2c OK [10:13:41]MH_I2C_Read... [10:13:41]Read from MH i2c: 01 [10:13:41]MH_I2C_Read... [10:13:41]Read from MH i2c: 01 07 00 [10:13:41]MH_I2C_Read... [10:13:41]Read from MH i2c: 01 07 00 C1 97 00 00 00 00 00 FF 0F 6D [10:13:41]RasterBufferAndPrint [10:13:41]line Счет N : (1)672850 [10:13:41]line ИНН: 02508201610067 [10:13:41]line Контрольно-Кассовый Чек [10:13:41]line ПРОДАЖА [10:13:41]line ТРК (МРК, ГНК) : 42 [10:13:41]line Товар: 2710124130 [10:13:41]line Аи-92-К-5 [10:13:41]line 21.090 * 66.40 [10:13:41]line = 1400.38 [10:13:41]line НДС 12% НСП 1% [10:13:41]line > о реализуемом товаре [10:13:41]line ОКРУГЛЕНИЕ: -0.38 [10:13:41]line ИТОГО: 1400.00 [10:13:41]line Внесено: 1400.00 [10:13:41]line СДАЧА: 0.00 [10:13:41]line НСП 1% : 12.39 [10:13:41]line НДС 12% : 148.71 [10:13:41]line Наличными: 1400.00 [10:13:41]line Безнал.: 0.00 [10:13:41]line Место: АЗС № 120 "Партнер Нефть" [10:13:41]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [10:13:41]line СНО: Общий режим [10:13:41]line Чек 45 19.06.2024 10:13 [10:13:41]line Смена: 353 ФФД: 1.0 [10:13:41]line ЗНМ: 0300000164 [10:13:41]line РНМ: 0000000000092785 [10:13:41]line Версия ККМ: 001 [10:13:41]line ФМ: 0000000000875093 [10:13:41]line ФД: 103615 [10:13:41]line ФПД: 219871611982918 [10:13:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T101351&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103615&fm=219871611982918&tin=02508201610067®Number=0000000000092785&sum=140000 [10:13:42]OFD Sender: Processing packet 103615 [packets to send 17, broken 16] [10:13:42]ProducePacketName [10:13:42]name=ofd_packets/00103615 [10:13:42]OFD Sender: To server: pG, [10:13:42]CommunicateWithHost lk.salyk.kg:30040 [10:13:42]ConnectInit lk.salyk.kg [10:13:42]written 0, free lines is 4095 [10:13:42]Connected sock=11 [10: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 39 33 0F 01 00 00 51 A4 07 01 B4 3F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 62 52 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 06 23 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 17 3A 00 00 00 00 07 04 06 00 E0 22 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 5F AF 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 BF 94 01 00 35 04 06 00 C7 F8 D9 54 14 46 5C 9C 50 E4 7E 09 81 5D [10:13:42]Write to MH i2c: 01 00 00 EC 97 83 [10:13:42]Write i2c OK [10:13:42]MH_I2C_Read... [10:13:42]Read from MH i2c: 01 [10:13:42]MH_I2C_Read... [10:13:42]Read from MH i2c: 01 07 00 [10:13:42]MH_I2C_Read... [10:13:42]Read from MH i2c: 01 07 00 EC 97 00 00 00 00 00 D4 0C 6A [10:13:42]RasterBufferAndPrint [10:13:42]line [10:13:42]line [10:13:42]line [10:13:42]line [10:13:42]line [10:13:42]written 0, free lines is 3292 [10: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 39 33 4F 00 00 00 67 0D 47 00 02 F0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 BF 94 01 00 F4 03 04 00 E9 55 72 66 B6 04 01 00 00 12 B2 1F 83 3E 1E 26 26 [10:13:42]CommunicateWithHost err = 0 [10:13:42]CheckOFDResponse [10:13:42]1017 (14) - 77093643461234 [10:13:42]1041 (16) - 0000000000875093 [10:13:42]1040 (4) - 103615 [10:13:42]1012 (4) - 19.06.2024 03:52 [10:13:42]1206 (1) - 0 [10:13:42]OFD Sender: Remove packet 103615 [10:13:42]ProducePacketName [10:13:42]name=ofd_packets/00103615 [10:13:42]NVStorageDeleteData [10:13:42]MH_Cut [10:13:42]Write to MH i2c: D1 01 00 F3 97 01 5C [10:13:42]Write i2c OK [10:13:42]MH_I2C_Read... [10:13:42]Read from MH i2c: D1 [10:13:42]MH_I2C_Read... [10:13:42]Read from MH i2c: D1 01 00 [10:13:42]MH_I2C_Read... [10:13:42]Read from MH i2c: D1 01 00 F3 97 00 5B [10:13:42]Write to MH i2c: 01 00 00 F4 97 8B [10:13:42]Write i2c OK [10:13:42]MH_I2C_Read... [10:13:43]OFD Sender: No OFD packet to send [10:13:43]*** Cut start [10:13:43]*** Partial cut [10:13:43]*** CUTSNS_PIN = 1 [10:13:43]*** CUTSNS_PIN = 0 [10:13:43]*** Brake cut motor [10:13:43]Read from MH i2c: 01 [10:13:43]MH_I2C_Read... [10:13:43]*** Stop cut motor [10:13:43]*** Cut end [10:13:43]Read from MH i2c: 01 07 00 [10:13:43]MH_I2C_Read... [10:13:43]Read from MH i2c: 01 07 00 F4 97 00 00 00 00 00 FF 0F A0 [10:13:43]process_action close_receipt done [10:13:43]requested_data is exist [10:13:43]produce_requested_data [10:13:43]requested_item fm.sn is exist - process it [10:13:43]wFMCommunicate request_size=4 [10:13:43]MH_SAM_APDU [10:13:43]CAPDU: 80 11 00 00 [10:13:43]Write to MH i2c: E2 08 00 F5 97 80 11 00 00 00 00 00 00 06 [10:13:43]Write i2c OK [10:13:43]MH_I2C_Read... [10:13:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:13:43]Read from MH i2c: E2 [10:13:43]MH_I2C_Read... [10:13:43]Read from MH i2c: E2 17 00 [10:13:43]MH_I2C_Read... [10:13:43]Read from MH i2c: E2 17 00 F5 97 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 59 [10:13:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [10:13:43]wFMCommunicate OK [10:13:43]requested_item fd.num is exist - process it [10:13:43]SAM_PROTO_GetFieldsCounters [10:13:43]wFMCommunicate request_size=4 [10:13:43]MH_SAM_APDU [10:13:43]CAPDU: 80 13 00 00 [10:13:43]Write to MH i2c: E2 08 00 F6 97 80 13 00 00 00 00 00 00 09 [10:13:43]Write i2c OK [10:13:43]MH_I2C_Read... [10:13:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:13:44]Read from MH i2c: E2 [10:13:44]MH_I2C_Read... [10:13:44]Read from MH i2c: E2 62 00 [10:13:44]MH_I2C_Read... [10:13:44]Read from MH i2c: E2 62 00 F6 97 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 BF 94 01 00 0E 04 04 00 61 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 6D [10:13: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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 BF 94 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 2D 00 00 00 5E 04 04 00 2D 00 00 00 57 04 04 00 2E 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:13:44]wFMCommunicate OK [10:13:44]SAM_PROTO_GetFieldsCounters done [10:13:44]requested_item shift.num is exist - process it [10:13:44]requested_item shift.opened is exist - process it [10:13:44]req_shift_opened [10:13:44]FM_GetShiftState [10:13:44]SAM_PROTO_GetShiftState [10:13:44]wFMCommunicate request_size=4 [10:13:44]MH_SAM_APDU [10:13:44]CAPDU: 80 13 01 00 [10:13:44]Write to MH i2c: E2 08 00 F7 97 80 13 01 00 00 00 00 00 0B [10:13:44]Write i2c OK [10:13:44]MH_I2C_Read... [10:13:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:13:44]Read from MH i2c: E2 [10:13:44]MH_I2C_Read... [10:13:44]Read from MH i2c: E2 0E 00 [10:13:44]MH_I2C_Read... [10:13:44]Read from MH i2c: E2 0E 00 F7 97 00 09 00 01 04 26 72 66 00 00 00 00 90 00 19 [10:13:44]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [10:13:44]wFMCommunicate OK [10:13:44]SAM_PROTO_GetShiftState done [10:13:44]FM_GetShiftState done [10:13:44]req_shift_opened done [10:13:44]requested_item shift.open_date is exist - process it [10:13:44]req_shift_open_date [10:13:44]req_shift_open_date done [10:13:44]produce_requested_data done [10:13:44]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103615,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [10:13:44]process_action_free close_receipt [10:13:44]json_value_free [10:13:44]json_value_free done [10:13:44]process_json_proto returns [10:13:44]Send response to host [10:13:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103615,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [10:13:44]free response buf [10:13:44]execute_script done [10:13:44]execute_script returns [10:13:44]free content buf [10:13:44]Sock 7.Close socket [10:13:44]Sock 7.Thread stoped [10:13:48]OFD Sender: No OFD packet to send [10:13:53]OFD Sender: No OFD packet to send [10:13:58]OFD Sender: No OFD packet to send [10:14:03]OFD Sender: No OFD packet to send [10:14:08]OFD Sender: No OFD packet to send [10:14:13]OFD Sender: No OFD packet to send [10:14:18]OFD Sender: No OFD packet to send [10:14:23]OFD Sender: No OFD packet to send [10:14:28]OFD Sender: No OFD packet to send [10:14:33]OFD Sender: No OFD packet to send [10:14:38]OFD Sender: No OFD packet to send [10:14:40]accept exits with 9 [10:14:40]New connection [10:14:40]New thread 3067084132 created [10:14:40]Thread 3067227492 joined [10:14:40]Waiting for new connection... [10:14:40] Sock 9.Parse request [10:14:40]Sock 9.Check first char [10:14:40]Sock 9.First char is OK [10:14:40]request: POST /json_proto HTTP/1.0 [10:14:40]Method: POST [10:14:40]URL: /json_proto [10:14:40]Method is POST - this is cgi request [10:14:40]url: /json_proto [10:14:40]query_string will be loaded in cgi processing [10:14:40]execute_cgi json_proto POST (null) [10:14:40]execute_cgi path=json_proto method=POST [10:14:40]POST find Content-Length [10:14:40]Host: 172.17.38.133:8080 [10:14:40]Content-Length: 682 [10:14:40]Content-Type: application/json [10:14:40] [10:14:40]POST finish read [10:14:40]Found Content-Length = 682 [10:14:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672851", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:14:40]execute_script... [10:14: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)672851", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:14:40]POST & json_proto [10:14:40]process_json_proto [10:14:40]json parsed OK: [10:14:40]protocol is kg_v1.0 [10:14:40]action value=close_receipt [10:14:40]process_action close_receipt [10:14:40]cmd_close_receipt [10:14:40]MH_GetDate [10:14:40]Write to MH i2c: F0 00 00 F8 97 7E [10:14:40]Write i2c OK [10:14:40]MH_I2C_Read... [10:14:40]Read from MH i2c: F0 [10:14:40]MH_I2C_Read... [10:14:40]Read from MH i2c: F0 09 00 [10:14:40]MH_I2C_Read... [10:14:40]Read from MH i2c: F0 09 00 F8 97 00 9C AF 72 66 BD 8F 7C 64 D6 [10:14:40]GetLastDocTimeStamp 1718792031 [10:14:40]current date 1718792092 [10:14:40]FM_GetShiftState [10:14:40]SAM_PROTO_GetShiftState [10:14:40]wFMCommunicate request_size=4 [10:14:40]MH_SAM_APDU [10:14:40]CAPDU: 80 13 01 00 [10:14:40]Write to MH i2c: E2 08 00 F9 97 80 13 01 00 00 00 00 00 0D [10:14:40]Write i2c OK [10:14:40]MH_I2C_Read... [10:14:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:14:40]Read from MH i2c: E2 [10:14:40]MH_I2C_Read... [10:14:40]Read from MH i2c: E2 0E 00 [10:14:40]MH_I2C_Read... [10:14:40]Read from MH i2c: E2 0E 00 F9 97 00 09 00 01 04 26 72 66 00 00 00 00 90 00 1B [10:14:40]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [10:14:40]wFMCommunicate OK [10:14:40]SAM_PROTO_GetShiftState done [10:14:40]FM_GetShiftState done [10:14:40]opened in 1718756868 [10:14:40]opened+sec_in_day 1718843268 [10:14:40]quantity*price = 100064 [10:14:40]sum+1 = 100066 [10:14:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.65 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 46 19.06.2024 10:14 Смена: 353 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103616 ФПД: 250036015558831 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T101452&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103616&fm=250036015558831&tin=02508201610067®Number=0000000000092785&sum=100000 [10:14:42]StoreToDocumentArchive [10:14:42]shift 353 fd 103616 [10:14:42]save to /storage/0353/doc_00103616 [10:14:42]save last doc name /storage/0353/doc_00103616 to /storage/kkm_last_doc_name [10:14:42]save OK [10:14:42]Clear old archive folders... [10:14:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:14:42]tlvbuf is 01454560 [10:14:42]SAM_PROTO_ClearQueue [10:14:42]wFMCommunicate request_size=4 [10:14:42]MH_SAM_APDU [10:14:42]CAPDU: 80 09 00 00 [10:14:42]Write to MH i2c: E2 08 00 06 98 80 09 00 00 00 00 00 00 10 [10:14:42]Write i2c OK [10:14:42]MH_I2C_Read... [10:14:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:14:42]Read from MH i2c: E2 [10:14:42]MH_I2C_Read... [10:14:42]Read from MH i2c: E2 03 00 [10:14:42]MH_I2C_Read... [10:14:42]Read from MH i2c: E2 03 00 06 98 00 90 00 12 [10:14:42]RAPDU: 90 00 [10:14:42]wFMCommunicate OK [10:14:42]SAM_PROTO_ClearQueue done [10:14:42]KKMCreateOFDPacket [10:14:42]OFDProtocolAddRootSTLVToBuf [10:14:42]FM_MakeSignedData [10:14:42]FM_MakeSignedData [10:14:42]SAM_PROTO_SignData [10:14:42]wFMCommunicate request_size=4 [10:14:42]MH_SAM_APDU [10:14:42]CAPDU: 80 0D 01 02 [10:14:42]Write to MH i2c: E2 08 00 07 98 80 0D 01 02 00 00 00 00 18 [10:14:42]Write i2c OK [10:14:42]MH_I2C_Read... [10:14:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:14:42]Read from MH i2c: E2 [10:14:42]MH_I2C_Read... [10:14:42]Read from MH i2c: E2 03 00 [10:14:42]MH_I2C_Read... [10:14:42]Read from MH i2c: E2 03 00 07 98 00 90 00 13 [10:14:42]RAPDU: 90 00 [10:14:42]wFMCommunicate OK [10:14:42]wFMCommunicate request_size=255 [10:14:42]MH_SAM_APDU [10:14: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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 9C AF 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 C0 94 01 00 35 04 06 00 E3 [10:14:42]Write to MH i2c: E2 02 01 08 98 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 9C AF 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 C0 94 01 00 35 04 06 00 E3 00 00 0D [10:14:42]Write i2c OK [10:14:42]MH_I2C_Read... [10:14:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:14:42]Read from MH i2c: E2 [10:14:42]MH_I2C_Read... [10:14:42]Read from MH i2c: E2 03 00 [10:14:42]MH_I2C_Read... [10:14:42]Read from MH i2c: E2 03 00 08 98 00 90 00 14 [10:14:42]RAPDU: 90 00 [10:14:42]wFMCommunicate OK [10:14:42]wFMCommunicate request_size=10 [10:14:42]MH_SAM_APDU [10:14:42]CAPDU: 80 0D 02 02 05 68 0B E3 70 AF [10:14:42]Write to MH i2c: E2 0D 00 09 98 80 0D 02 02 05 00 68 0B E3 70 AF 00 00 9A [10:14:42]Write i2c OK [10:14:42]MH_I2C_Read... [10:14:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:14:42]Read from MH i2c: E2 [10:14:42]MH_I2C_Read... [10:14:42]Read from MH i2c: E2 03 00 [10:14:42]MH_I2C_Read... [10:14:42]Read from MH i2c: E2 03 00 09 98 00 90 00 15 [10:14:42]RAPDU: 90 00 [10:14:42]wFMCommunicate OK [10:14:42]wFMCommunicate request_size=4 [10:14:42]MH_SAM_APDU [10:14:42]CAPDU: 80 0D 03 02 [10:14:42]Write to MH i2c: E2 08 00 0A 98 80 0D 03 02 00 00 00 00 1D [10:14:42]Write i2c OK [10:14:42]MH_I2C_Read... [10:14:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:14:42]Read from MH i2c: E2 [10:14:42]MH_I2C_Read... [10:14:42]Read from MH i2c: E2 0B 00 [10:14:42]MH_I2C_Read... [10:14:42]Read from MH i2c: E2 0B 00 0A 98 00 0E 9C 02 DE 88 94 F9 E8 90 00 A5 [10:14:42]RAPDU: 0E 9C 02 DE 88 94 F9 E8 90 00 [10:14:42]wFMCommunicate OK [10:14:42]SAM_PROTO_SignData done [10:14:42]FM_MakeSignedData done [10:14:42]CreateOFDProtocolMessage [10:14:42]wFMCommunicate request_size=4 [10:14:42]MH_SAM_APDU [10:14:42]CAPDU: 80 11 00 00 [10:14:42]Write to MH i2c: E2 08 00 0B 98 80 11 00 00 00 00 00 00 1D [10:14:42]Write i2c OK [10:14:42]MH_I2C_Read... [10:14:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:14:42]Read from MH i2c: E2 [10:14:42]MH_I2C_Read... [10:14:42]Read from MH i2c: E2 17 00 [10:14:42]MH_I2C_Read... [10:14:42]Read from MH i2c: E2 17 00 0B 98 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 70 [10:14:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [10:14:42]wFMCommunicate OK [10:14:42]CreateOFDProtocolMessage done [10:14:42]OFDSenderStorePacket 103616 [10:14:42]StoreOFDPacket docnum=103616 [10:14:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 29 A7 07 01 71 CA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 9C AF 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 C0 94 01 00 35 04 06 00 E3 68 0B E3 70 AF 0E 9C 02 DE 88 94 F9 E8 [10:14:42]CheckFolder [10:14:42]dirname=/storage/ofd_packets [10:14:42]CheckFolder done [10:14:42]ProducePacketName [10:14:42]name=ofd_packets/00103616 [10:14:42]NVStorageSaveData ofd_packets/00103616 [10:14:42]File name is /storage/ofd_packets/00103616 [10:14:42]Write 301 bytes [10:14:42]NVStorageSaveData done [10:14:42]OFDSenderStorePacket done [10:14:42]KKMCreateOFDPacket done [10:14:42]NVStorageSaveData kkm_last_timestamp [10:14:42]File name is /storage/kkm_last_timestamp [10:14:42]Write 4 bytes [10:14:42]NVStorageSaveData done [10:14:42]ExternCall_PrintAddStr [10:14:42]wPrintStart [10:14:42]Write to MH i2c: 01 00 00 0C 98 A4 [10:14:42]Write i2c OK [10:14:42]MH_I2C_Read... [10:14:42]Read from MH i2c: 01 [10:14:42]MH_I2C_Read... [10:14:42]Read from MH i2c: 01 07 00 [10:14:42]MH_I2C_Read... [10:14:42]Read from MH i2c: 01 07 00 0C 98 00 00 00 00 00 FF 0F B9 [10:14:42]RasterBufferAndPrint [10:14:42]line Счет N : (1)672851 [10:14:42]line ИНН: 02508201610067 [10:14:42]line Контрольно-Кассовый Чек [10:14:42]line ПРОДАЖА [10:14:42]line ТРК (МРК, ГНК) : 32 [10:14:42]line Товар: 2710124130 [10:14:42]line Аи-92-К-5 [10:14:42]line 15.070 * 66.40 [10:14:42]line = 1000.65 [10:14:42]line НДС 12% НСП 1% [10:14:42]line > о реализуемом товаре [10:14:42]line ОКРУГЛЕНИЕ: -0.65 [10:14:42]line ИТОГО: 1000.00 [10:14:42]line Внесено: 1000.00 [10:14:42]line СДАЧА: 0.00 [10:14:42]line НСП 1% : 8.85 [10:14:42]line НДС 12% : 106.26 [10:14:42]line Наличными: 1000.00 [10:14:42]line Безнал.: 0.00 [10:14:42]line Место: АЗС № 120 "Партнер Нефть" [10:14:42]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [10:14:42]line СНО: Общий режим [10:14:42]line Чек 46 19.06.2024 10:14 [10:14:42]line Смена: 353 ФФД: 1.0 [10:14:42]line ЗНМ: 0300000164 [10:14:42]line РНМ: 0000000000092785 [10:14:42]line Версия ККМ: 001 [10:14:42]line ФМ: 0000000000875093 [10:14:42]line ФД: 103616 [10:14:42]line ФПД: 250036015558831 [10:14:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T101452&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103616&fm=250036015558831&tin=02508201610067®Number=0000000000092785&sum=100000 [10:14:42]OFD Sender: Processing packet 103616 [packets to send 17, broken 16] [10:14:42]ProducePacketName [10:14:42]name=ofd_packets/00103616 [10:14:42]OFD Sender: To server: pG, [10:14:42]CommunicateWithHost lk.salyk.kg:30040 [10:14:42]ConnectInit lk.salyk.kg [10:14:42]written 0, free lines is 4095 [10:14:43]Connected sock=7 [10:14: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 39 33 0F 01 00 00 29 A7 07 01 71 CA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 9C AF 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 C0 94 01 00 35 04 06 00 E3 68 0B E3 70 AF 0E 9C 02 DE 88 94 F9 E8 [10:14: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 39 33 4F 00 00 00 8D 65 47 00 C3 72 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 C0 94 01 00 F4 03 04 00 25 56 72 66 B6 04 01 00 00 B1 15 74 D3 DE 9A 3B C3 [10:14:43]CommunicateWithHost err = 0 [10:14:43]CheckOFDResponse [10:14:43]1017 (14) - 77093643461234 [10:14:43]1041 (16) - 0000000000875093 [10:14:43]1040 (4) - 103616 [10:14:43]1012 (4) - 19.06.2024 03:53 [10:14:43]1206 (1) - 0 [10:14:43]OFD Sender: Remove packet 103616 [10:14:43]ProducePacketName [10:14:43]name=ofd_packets/00103616 [10:14:43]NVStorageDeleteData [10:14:43]Write to MH i2c: 01 00 00 37 98 CF [10:14:43]Write i2c OK [10:14:43]MH_I2C_Read... [10:14:43]Read from MH i2c: 01 [10:14:43]MH_I2C_Read... [10:14:43]Read from MH i2c: 01 07 00 [10:14:43]MH_I2C_Read... [10:14:43]Read from MH i2c: 01 07 00 37 98 00 00 00 00 00 E2 0C C4 [10:14:43]RasterBufferAndPrint [10:14:43]line [10:14:43]line [10:14:43]line [10:14:43]line [10:14:43]line [10:14:43]written 0, free lines is 3304 [10:14:43]MH_Cut [10:14:43]Write to MH i2c: D1 01 00 3E 98 01 A8 [10:14:43]Write i2c OK [10:14:43]MH_I2C_Read... [10:14:43]Read from MH i2c: D1 [10:14:43]MH_I2C_Read... [10:14:43]Read from MH i2c: D1 01 00 [10:14:43]MH_I2C_Read... [10:14:43]Read from MH i2c: D1 01 00 3E 98 00 A7 [10:14:43]Write to MH i2c: 01 00 00 3F 98 D7 [10:14:43]Write i2c OK [10:14:43]MH_I2C_Read... [10:14:43]OFD Sender: No OFD packet to send [10:14:44]*** Cut start [10:14:44]*** Partial cut [10:14:44]*** CUTSNS_PIN = 1 [10:14:44]*** CUTSNS_PIN = 0 [10:14:44]*** Brake cut motor [10:14:44]Read from MH i2c: 01 [10:14:44]MH_I2C_Read... [10:14:44]*** Stop cut motor [10:14:44]*** Cut end [10:14:44]Read from MH i2c: 01 07 00 [10:14:44]MH_I2C_Read... [10:14:44]Read from MH i2c: 01 07 00 3F 98 00 00 00 00 00 FF 0F EC [10:14:44]process_action close_receipt done [10:14:44]requested_data is exist [10:14:44]produce_requested_data [10:14:44]requested_item fm.sn is exist - process it [10:14:44]wFMCommunicate request_size=4 [10:14:44]MH_SAM_APDU [10:14:44]CAPDU: 80 11 00 00 [10:14:44]Write to MH i2c: E2 08 00 40 98 80 11 00 00 00 00 00 00 52 [10:14:44]Write i2c OK [10:14:44]MH_I2C_Read... [10:14:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:14:44]Read from MH i2c: E2 [10:14:44]MH_I2C_Read... [10:14:44]Read from MH i2c: E2 17 00 [10:14:44]MH_I2C_Read... [10:14:44]Read from MH i2c: E2 17 00 40 98 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 A5 [10:14:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [10:14:44]wFMCommunicate OK [10:14:44]requested_item fd.num is exist - process it [10:14:44]SAM_PROTO_GetFieldsCounters [10:14:44]wFMCommunicate request_size=4 [10:14:44]MH_SAM_APDU [10:14:44]CAPDU: 80 13 00 00 [10:14:44]Write to MH i2c: E2 08 00 41 98 80 13 00 00 00 00 00 00 55 [10:14:44]Write i2c OK [10:14:44]MH_I2C_Read... [10:14:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:14:44]Read from MH i2c: E2 [10:14:44]MH_I2C_Read... [10:14:44]Read from MH i2c: E2 62 00 [10:14:44]MH_I2C_Read... [10:14:44]Read from MH i2c: E2 62 00 41 98 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 C0 94 01 00 0E 04 04 00 61 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 BD [10:14: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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 C0 94 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 2E 00 00 00 5E 04 04 00 2E 00 00 00 57 04 04 00 2F 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:14:45]wFMCommunicate OK [10:14:45]SAM_PROTO_GetFieldsCounters done [10:14:45]requested_item shift.num is exist - process it [10:14:45]requested_item shift.opened is exist - process it [10:14:45]req_shift_opened [10:14:45]FM_GetShiftState [10:14:45]SAM_PROTO_GetShiftState [10:14:45]wFMCommunicate request_size=4 [10:14:45]MH_SAM_APDU [10:14:45]CAPDU: 80 13 01 00 [10:14:45]Write to MH i2c: E2 08 00 42 98 80 13 01 00 00 00 00 00 57 [10:14:45]Write i2c OK [10:14:45]MH_I2C_Read... [10:14:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:14:45]Read from MH i2c: E2 [10:14:45]MH_I2C_Read... [10:14:45]Read from MH i2c: E2 0E 00 [10:14:45]MH_I2C_Read... [10:14:45]Read from MH i2c: E2 0E 00 42 98 00 09 00 01 04 26 72 66 00 00 00 00 90 00 65 [10:14:45]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [10:14:45]wFMCommunicate OK [10:14:45]SAM_PROTO_GetShiftState done [10:14:45]FM_GetShiftState done [10:14:45]req_shift_opened done [10:14:45]requested_item shift.open_date is exist - process it [10:14:45]req_shift_open_date [10:14:45]req_shift_open_date done [10:14:45]produce_requested_data done [10:14:45]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103616,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [10:14:45]process_action_free close_receipt [10:14:45]json_value_free [10:14:45]json_value_free done [10:14:45]process_json_proto returns [10:14:45]Send response to host [10:14:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103616,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [10:14:45]free response buf [10:14:45]execute_script done [10:14:45]execute_script returns [10:14:45]free content buf [10:14:45]Sock 9.Close socket [10:14:45]Sock 9.Thread stoped [10:14:48]OFD Sender: No OFD packet to send [10:14:53]OFD Sender: No OFD packet to send [10:14:58]OFD Sender: No OFD packet to send [10:15:03]OFD Sender: No OFD packet to send [10:15:08]OFD Sender: No OFD packet to send [10:15:13]OFD Sender: No OFD packet to send [10:15:18]OFD Sender: No OFD packet to send [10:15:23]OFD Sender: No OFD packet to send [10:15:28]OFD Sender: No OFD packet to send [10:15:33]OFD Sender: No OFD packet to send [10:15:38]OFD Sender: No OFD packet to send [10:15:43]OFD Sender: No OFD packet to send [10:15:48]OFD Sender: No OFD packet to send [10:15:52]accept exits with 10 [10:15:52]New connection [10:15:52]New thread 3067227492 created [10:15:52]Thread 3067084132 joined [10:15:52]Waiting for new connection... [10:15:52] Sock 10.Parse request [10:15:52]Sock 10.Check first char [10:15:52]Sock 10.First char is OK [10:15:52]request: POST /json_proto HTTP/1.0 [10:15:52]Method: POST [10:15:52]URL: /json_proto [10:15:52]Method is POST - this is cgi request [10:15:52]url: /json_proto [10:15:52]query_string will be loaded in cgi processing [10:15:52]execute_cgi json_proto POST (null) [10:15:52]execute_cgi path=json_proto method=POST [10:15:52]POST find Content-Length [10:15:52]Host: 172.17.38.133:8080 [10:15:52]Content-Length: 677 [10:15:52]Content-Type: application/json [10:15:52] [10:15:52]POST finish read [10:15:52]Found Content-Length = 677 [10:15:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672853", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:15:52]execute_script... [10:15: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)672853", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:15:52]POST & json_proto [10:15:52]process_json_proto [10:15:52]json parsed OK: [10:15:52]protocol is kg_v1.0 [10:15:52]action value=close_receipt [10:15:52]process_action close_receipt [10:15:52]cmd_close_receipt [10:15:52]MH_GetDate [10:15:52]Write to MH i2c: F0 00 00 43 98 CA [10:15:52]Write i2c OK [10:15:52]MH_I2C_Read... [10:15:52]Read from MH i2c: F0 [10:15:52]MH_I2C_Read... [10:15:52]Read from MH i2c: F0 09 00 [10:15:52]MH_I2C_Read... [10:15:52]Read from MH i2c: F0 09 00 43 98 00 E4 AF 72 66 BD 8F 7C 64 6A [10:15:52]GetLastDocTimeStamp 1718792092 [10:15:52]current date 1718792164 [10:15:52]FM_GetShiftState [10:15:52]SAM_PROTO_GetShiftState [10:15:52]wFMCommunicate request_size=4 [10:15:52]MH_SAM_APDU [10:15:52]CAPDU: 80 13 01 00 [10:15:52]Write to MH i2c: E2 08 00 44 98 80 13 01 00 00 00 00 00 59 [10:15:52]Write i2c OK [10:15:52]MH_I2C_Read... [10:15:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:15:52]Read from MH i2c: E2 [10:15:52]MH_I2C_Read... [10:15:52]Read from MH i2c: E2 0E 00 [10:15:52]MH_I2C_Read... [10:15:52]Read from MH i2c: E2 0E 00 44 98 00 09 00 01 04 26 72 66 00 00 00 00 90 00 67 [10:15:52]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [10:15:52]wFMCommunicate OK [10:15:52]SAM_PROTO_GetShiftState done [10:15:52]FM_GetShiftState done [10:15:52]opened in 1718756868 [10:15:52]opened+sec_in_day 1718843268 [10:15:52]quantity*price = 50065 [10:15:52]sum+1 = 50067 [10:15:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.17 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 47 19.06.2024 10:16 Смена: 353 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103617 ФПД: 176244846380020 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T101604&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103617&fm=176244846380020&tin=02508201610067®Number=0000000000092785&sum=50000 [10:15:53]StoreToDocumentArchive [10:15:53]shift 353 fd 103617 [10:15:53]save to /storage/0353/doc_00103617 [10:15:53]save last doc name /storage/0353/doc_00103617 to /storage/kkm_last_doc_name [10:15:53]save OK [10:15:53]Clear old archive folders... [10:15:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:15:53]tlvbuf is 01489030 [10:15:53]SAM_PROTO_ClearQueue [10:15:53]wFMCommunicate request_size=4 [10:15:53]MH_SAM_APDU [10:15:53]CAPDU: 80 09 00 00 [10:15:53]Write to MH i2c: E2 08 00 51 98 80 09 00 00 00 00 00 00 5B [10:15:53]Write i2c OK [10:15:53]MH_I2C_Read... [10:15:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:15:53]Read from MH i2c: E2 [10:15:53]MH_I2C_Read... [10:15:53]Read from MH i2c: E2 03 00 [10:15:53]MH_I2C_Read... [10:15:53]Read from MH i2c: E2 03 00 51 98 00 90 00 5D [10:15:53]RAPDU: 90 00 [10:15:53]wFMCommunicate OK [10:15:53]SAM_PROTO_ClearQueue done [10:15:53]KKMCreateOFDPacket [10:15:53]OFDProtocolAddRootSTLVToBuf [10:15:53]FM_MakeSignedData [10:15:53]FM_MakeSignedData [10:15:53]SAM_PROTO_SignData [10:15:53]wFMCommunicate request_size=4 [10:15:53]MH_SAM_APDU [10:15:53]CAPDU: 80 0D 01 02 [10:15:53]Write to MH i2c: E2 08 00 52 98 80 0D 01 02 00 00 00 00 63 [10:15:53]Write i2c OK [10:15:53]MH_I2C_Read... [10:15:53]OFD Sender: No OFD packet to send [10:15:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:15:54]Read from MH i2c: E2 [10:15:54]MH_I2C_Read... [10:15:54]Read from MH i2c: E2 03 00 [10:15:54]MH_I2C_Read... [10:15:54]Read from MH i2c: E2 03 00 52 98 00 90 00 5E [10:15:54]RAPDU: 90 00 [10:15:54]wFMCommunicate OK [10:15:54]wFMCommunicate request_size=255 [10:15:54]MH_SAM_APDU [10:15: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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 E4 AF 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 C1 94 01 00 35 04 06 00 A0 [10:15:54]Write to MH i2c: E2 02 01 53 98 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 E4 AF 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 C1 94 01 00 35 04 06 00 A0 00 00 0F [10:15:54]Write i2c OK [10:15:54]MH_I2C_Read... [10:15:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:15:54]Read from MH i2c: E2 [10:15:54]MH_I2C_Read... [10:15:54]Read from MH i2c: E2 03 00 [10:15:54]MH_I2C_Read... [10:15:54]Read from MH i2c: E2 03 00 53 98 00 90 00 5F [10:15:54]RAPDU: 90 00 [10:15:54]wFMCommunicate OK [10:15:54]wFMCommunicate request_size=10 [10:15:54]MH_SAM_APDU [10:15:54]CAPDU: 80 0D 02 02 05 4B 33 76 43 F4 [10:15:54]Write to MH i2c: E2 0D 00 54 98 80 0D 02 02 05 00 4B 33 76 43 F4 00 00 9B [10:15:54]Write i2c OK [10:15:54]MH_I2C_Read... [10:15:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:15:54]Read from MH i2c: E2 [10:15:54]MH_I2C_Read... [10:15:54]Read from MH i2c: E2 03 00 [10:15:54]MH_I2C_Read... [10:15:54]Read from MH i2c: E2 03 00 54 98 00 90 00 60 [10:15:54]RAPDU: 90 00 [10:15:54]wFMCommunicate OK [10:15:54]wFMCommunicate request_size=4 [10:15:54]MH_SAM_APDU [10:15:54]CAPDU: 80 0D 03 02 [10:15:54]Write to MH i2c: E2 08 00 55 98 80 0D 03 02 00 00 00 00 68 [10:15:54]Write i2c OK [10:15:54]MH_I2C_Read... [10:15:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:15:54]Read from MH i2c: E2 [10:15:54]MH_I2C_Read... [10:15:54]Read from MH i2c: E2 0B 00 [10:15:54]MH_I2C_Read... [10:15:54]Read from MH i2c: E2 0B 00 55 98 00 B8 B9 B5 3E 75 12 E4 CA 90 00 02 [10:15:54]RAPDU: B8 B9 B5 3E 75 12 E4 CA 90 00 [10:15:54]wFMCommunicate OK [10:15:54]SAM_PROTO_SignData done [10:15:54]FM_MakeSignedData done [10:15:54]CreateOFDProtocolMessage [10:15:54]wFMCommunicate request_size=4 [10:15:54]MH_SAM_APDU [10:15:54]CAPDU: 80 11 00 00 [10:15:54]Write to MH i2c: E2 08 00 56 98 80 11 00 00 00 00 00 00 68 [10:15:54]Write i2c OK [10:15:54]MH_I2C_Read... [10:15:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:15:54]Read from MH i2c: E2 [10:15:54]MH_I2C_Read... [10:15:54]Read from MH i2c: E2 17 00 [10:15:54]MH_I2C_Read... [10:15:54]Read from MH i2c: E2 17 00 56 98 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 BB [10:15:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [10:15:54]wFMCommunicate OK [10:15:54]CreateOFDProtocolMessage done [10:15:54]OFDSenderStorePacket 103617 [10:15:54]StoreOFDPacket docnum=103617 [10:15:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 4C F8 07 01 AB CF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 E4 AF 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 C1 94 01 00 35 04 06 00 A0 4B 33 76 43 F4 B8 B9 B5 3E 75 12 E4 CA [10:15:54]CheckFolder [10:15:54]dirname=/storage/ofd_packets [10:15:54]CheckFolder done [10:15:54]ProducePacketName [10:15:54]name=ofd_packets/00103617 [10:15:54]NVStorageSaveData ofd_packets/00103617 [10:15:54]File name is /storage/ofd_packets/00103617 [10:15:54]Write 301 bytes [10:15:54]NVStorageSaveData done [10:15:54]OFDSenderStorePacket done [10:15:54]KKMCreateOFDPacket done [10:15:54]NVStorageSaveData kkm_last_timestamp [10:15:54]File name is /storage/kkm_last_timestamp [10:15:54]Write 4 bytes [10:15:54]NVStorageSaveData done [10:15:54]ExternCall_PrintAddStr [10:15:54]wPrintStart [10:15:54]Write to MH i2c: 01 00 00 57 98 EF [10:15:54]Write i2c OK [10:15:54]MH_I2C_Read... [10:15:54]Read from MH i2c: 01 [10:15:54]MH_I2C_Read... [10:15:54]Read from MH i2c: 01 07 00 [10:15:54]MH_I2C_Read... [10:15:54]Read from MH i2c: 01 07 00 57 98 00 00 00 00 00 FF 0F 04 [10:15:54]RasterBufferAndPrint [10:15:54]line Счет N : (1)672853 [10:15:54]line ИНН: 02508201610067 [10:15:54]line Контрольно-Кассовый Чек [10:15:54]line ПРОДАЖА [10:15:54]line ТРК (МРК, ГНК) : 32 [10:15:54]line Товар: 2710124130 [10:15:54]line Аи-92-К-5 [10:15:54]line 7.540 * 66.40 [10:15:54]line = 500.66 [10:15:54]line НДС 12% НСП 1% [10:15:54]line > о реализуемом товаре [10:15:54]line ОКРУГЛЕНИЕ: -0.66 [10:15:54]line ИТОГО: 500.00 [10:15:54]line Внесено: 500.00 [10:15:54]line СДАЧА: 0.00 [10:15:54]line НСП 1% : 4.43 [10:15:54]line НДС 12% : 53.17 [10:15:54]line Наличными: 500.00 [10:15:54]line Безнал.: 0.00 [10:15:54]line Место: АЗС № 120 "Партнер Нефть" [10:15:54]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [10:15:54]line СНО: Общий режим [10:15:54]line Чек 47 19.06.2024 10:16 [10:15:54]line Смена: 353 ФФД: 1.0 [10:15:54]line ЗНМ: 0300000164 [10:15:54]line РНМ: 0000000000092785 [10:15:54]line Версия ККМ: 001 [10:15:54]line ФМ: 0000000000875093 [10:15:54]line ФД: 103617 [10:15:54]line ФПД: 176244846380020 [10:15:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T101604&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103617&fm=176244846380020&tin=02508201610067®Number=0000000000092785&sum=50000 [10:15:54]OFD Sender: Processing packet 103617 [packets to send 17, broken 16] [10:15:54]ProducePacketName [10:15:54]name=ofd_packets/00103617 [10:15:54]OFD Sender: To server: pG, [10:15:54]CommunicateWithHost lk.salyk.kg:30040 [10:15:54]ConnectInit lk.salyk.kg [10:15:54]written 0, free lines is 4095 [10:15:54]Connected sock=9 [10:15: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 39 33 0F 01 00 00 4C F8 07 01 AB CF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 E4 AF 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 C1 94 01 00 35 04 06 00 A0 4B 33 76 43 F4 B8 B9 B5 3E 75 12 E4 CA [10:15: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 39 33 4F 00 00 00 DA 46 47 00 F1 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 39 33 10 04 04 00 C1 94 01 00 F4 03 04 00 6D 56 72 66 B6 04 01 00 00 1E C7 B7 9F BF 27 BA C5 [10:15:55]CommunicateWithHost err = 0 [10:15:55]CheckOFDResponse [10:15:55]1017 (14) - 77093643461234 [10:15:55]1041 (16) - 0000000000875093 [10:15:55]1040 (4) - 103617 [10:15:55]1012 (4) - 19.06.2024 03:54 [10:15:55]1206 (1) - 0 [10:15:55]OFD Sender: Remove packet 103617 [10:15:55]ProducePacketName [10:15:55]name=ofd_packets/00103617 [10:15:55]NVStorageDeleteData [10:15:55]Write to MH i2c: 01 00 00 82 98 1A [10:15:55]Write i2c OK [10:15:55]MH_I2C_Read... [10:15:55]Read from MH i2c: 01 [10:15:55]MH_I2C_Read... [10:15:55]Read from MH i2c: 01 07 00 [10:15:55]MH_I2C_Read... [10:15:55]Read from MH i2c: 01 07 00 82 98 00 00 00 00 00 D7 0C 04 [10:15:55]RasterBufferAndPrint [10:15:55]line [10:15:55]line [10:15:55]line [10:15:55]line [10:15:55]line [10:15:55]written 0, free lines is 3294 [10:15:55]MH_Cut [10:15:55]Write to MH i2c: D1 01 00 89 98 01 F3 [10:15:55]Write i2c OK [10:15:55]MH_I2C_Read... [10:15:55]Read from MH i2c: D1 [10:15:55]MH_I2C_Read... [10:15:55]Read from MH i2c: D1 01 00 [10:15:55]MH_I2C_Read... [10:15:55]Read from MH i2c: D1 01 00 89 98 00 F2 [10:15:55]Write to MH i2c: 01 00 00 8A 98 22 [10:15:55]Write i2c OK [10:15:55]MH_I2C_Read... [10:15:55]OFD Sender: No OFD packet to send [10:15:56]*** Cut start [10:15:56]*** Partial cut [10:15:56]*** CUTSNS_PIN = 1 [10:15:56]*** CUTSNS_PIN = 0 [10:15:56]*** Brake cut motor [10:15:56]Read from MH i2c: 01 [10:15:56]MH_I2C_Read... [10:15:56]*** Stop cut motor [10:15:56]*** Cut end [10:15:56]Read from MH i2c: 01 07 00 [10:15:56]MH_I2C_Read... [10:15:56]Read from MH i2c: 01 07 00 8A 98 00 00 00 00 00 FF 0F 37 [10:15:56]process_action close_receipt done [10:15:56]requested_data is exist [10:15:56]produce_requested_data [10:15:56]requested_item fm.sn is exist - process it [10:15:56]wFMCommunicate request_size=4 [10:15:56]MH_SAM_APDU [10:15:56]CAPDU: 80 11 00 00 [10:15:56]Write to MH i2c: E2 08 00 8B 98 80 11 00 00 00 00 00 00 9D [10:15:56]Write i2c OK [10:15:56]MH_I2C_Read... [10:15:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:15:56]Read from MH i2c: E2 [10:15:56]MH_I2C_Read... [10:15:56]Read from MH i2c: E2 17 00 [10:15:56]MH_I2C_Read... [10:15:56]Read from MH i2c: E2 17 00 8B 98 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 F0 [10:15:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [10:15:56]wFMCommunicate OK [10:15:56]requested_item fd.num is exist - process it [10:15:56]SAM_PROTO_GetFieldsCounters [10:15:56]wFMCommunicate request_size=4 [10:15:56]MH_SAM_APDU [10:15:56]CAPDU: 80 13 00 00 [10:15:56]Write to MH i2c: E2 08 00 8C 98 80 13 00 00 00 00 00 00 A0 [10:15:56]Write i2c OK [10:15:56]MH_I2C_Read... [10:15:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:15:56]Read from MH i2c: E2 [10:15:56]MH_I2C_Read... [10:15:56]Read from MH i2c: E2 62 00 [10:15:56]MH_I2C_Read... [10:15:56]Read from MH i2c: E2 62 00 8C 98 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 C1 94 01 00 0E 04 04 00 61 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 0C [10:15: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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 C1 94 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 2F 00 00 00 5E 04 04 00 2F 00 00 00 57 04 04 00 30 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:15:56]wFMCommunicate OK [10:15:56]SAM_PROTO_GetFieldsCounters done [10:15:56]requested_item shift.num is exist - process it [10:15:56]requested_item shift.opened is exist - process it [10:15:56]req_shift_opened [10:15:56]FM_GetShiftState [10:15:56]SAM_PROTO_GetShiftState [10:15:56]wFMCommunicate request_size=4 [10:15:56]MH_SAM_APDU [10:15:56]CAPDU: 80 13 01 00 [10:15:56]Write to MH i2c: E2 08 00 8D 98 80 13 01 00 00 00 00 00 A2 [10:15:56]Write i2c OK [10:15:56]MH_I2C_Read... [10:15:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:15:56]Read from MH i2c: E2 [10:15:56]MH_I2C_Read... [10:15:56]Read from MH i2c: E2 0E 00 [10:15:56]MH_I2C_Read... [10:15:56]Read from MH i2c: E2 0E 00 8D 98 00 09 00 01 04 26 72 66 00 00 00 00 90 00 B0 [10:15:56]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [10:15:56]wFMCommunicate OK [10:15:56]SAM_PROTO_GetShiftState done [10:15:56]FM_GetShiftState done [10:15:56]req_shift_opened done [10:15:56]requested_item shift.open_date is exist - process it [10:15:56]req_shift_open_date [10:15:56]req_shift_open_date done [10:15:56]produce_requested_data done [10:15:56]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103617,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [10:15:56]process_action_free close_receipt [10:15:56]json_value_free [10:15:56]json_value_free done [10:15:56]process_json_proto returns [10:15:56]Send response to host [10:15:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103617,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [10:15:56]free response buf [10:15:56]execute_script done [10:15:56]execute_script returns [10:15:56]free content buf [10:15:56]Sock 10.Close socket [10:15:56]Sock 10.Thread stoped [10:16:00]OFD Sender: No OFD packet to send [10:16:05]OFD Sender: No OFD packet to send [10:16:10]OFD Sender: No OFD packet to send [10:16:15]OFD Sender: No OFD packet to send [10:16:20]OFD Sender: No OFD packet to send [10:16:25]OFD Sender: No OFD packet to send [10:16:30]OFD Sender: No OFD packet to send [10:16:34]accept exits with 7 [10:16:34]New connection [10:16:34]New thread 3067084132 created [10:16:34]Thread 3067227492 joined [10:16:34]Waiting for new connection... [10:16:34] Sock 7.Parse request [10:16:34]Sock 7.Check first char [10:16:34]Sock 7.First char is OK [10:16:34]request: POST /json_proto HTTP/1.0 [10:16:34]Method: POST [10:16:34]URL: /json_proto [10:16:34]Method is POST - this is cgi request [10:16:34]url: /json_proto [10:16:34]query_string will be loaded in cgi processing [10:16:34]execute_cgi json_proto POST (null) [10:16:34]execute_cgi path=json_proto method=POST [10:16:34]POST find Content-Length [10:16:34]Host: 172.17.38.133:8080 [10:16:34]Content-Length: 1169 [10:16:34]Content-Type: application/json [10:16:34] [10:16:34]POST finish read [10:16:34]Found Content-Length = 1169 [10:16:34]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 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. \u000A\u0421\u0447\u0435\u0442 N : (1)672852\u000A19.06.2024 09:54\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 42\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 66.40\u000A\u0418\u0422\u041E\u0413: 1328.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30156824\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:16:34]execute_script... [10:16:34]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 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. \u000A\u0421\u0447\u0435\u0442 N : (1)672852\u000A19.06.2024 09:54\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 42\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 66.40\u000A\u0418\u0422\u041E\u0413: 1328.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30156824\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:16:34]POST & json_proto [10:16:34]process_json_proto [10:16:34]json parsed OK: [10:16:34]protocol is kg_v1.0 [10:16:34]action value=print_text [10:16:34]process_action print_text [10:16:34]cmd_print_text [10:16:34]ExternCall_PrintAddStr [10:16:34]wPrintStart [10:16:34]Write to MH i2c: 01 00 00 8E 98 26 [10:16:34]Write i2c OK [10:16:34]MH_I2C_Read... [10:16:34]Read from MH i2c: 01 [10:16:34]MH_I2C_Read... [10:16:34]Read from MH i2c: 01 07 00 [10:16:34]MH_I2C_Read... [10:16:34]Read from MH i2c: 01 07 00 8E 98 00 00 00 00 00 FF 0F 3B [10:16:34]RasterBufferAndPrint [10:16:34]line *****ТОВАРНЫЙ ЧЕК***** [10:16:34]line АЗС 120 [10:16:34]line Партнер нефть [10:16:34]line 02508201610067 [10:16:34]line Кассир : Байбугуева Г. [10:16:34]line Счет N : (1)672852 [10:16:34]line 19.06.2024 09:54 [10:16:34]line ПРОДАЖА [10:16:34]line ТРК (МРК, ГНК): 42 [10:16:34]line Вид ГСМ : 2710124130 [10:16:34]line Аи-92-К-5 [10:16:34]line 20.000 x 66.40 [10:16:34]line ИТОГ: 1328.00 [10:16:34]line Тип оплаты: Талоны: ТК ГПНА Online [10:16:34]line 30156824 [10:16:34]line ______________________ [10:16:34]line (подпись) [10:16:34]written 0, free lines is 4095 [10:16:34]Write to MH i2c: 01 00 00 A2 98 3A [10:16:34]Write i2c OK [10:16:34]MH_I2C_Read... [10:16:34]Read from MH i2c: 01 [10:16:34]MH_I2C_Read... [10:16:34]Read from MH i2c: 01 07 00 [10:16:34]MH_I2C_Read... [10:16:34]Read from MH i2c: 01 07 00 A2 98 00 00 00 00 00 13 0E 62 [10:16:34]RasterBufferAndPrint [10:16:34]line [10:16:34]line [10:16:34]line [10:16:34]line [10:16:34]line [10:16:34]written 0, free lines is 3605 [10:16:34]MH_Cut [10:16:34]Write to MH i2c: D1 01 00 A9 98 01 13 [10:16:34]Write i2c OK [10:16:34]MH_I2C_Read... [10:16:34]Read from MH i2c: D1 [10:16:34]MH_I2C_Read... [10:16:34]Read from MH i2c: D1 01 00 [10:16:34]MH_I2C_Read... [10:16:34]Read from MH i2c: D1 01 00 A9 98 00 12 [10:16:34]Write to MH i2c: 01 00 00 AA 98 42 [10:16:34]Write i2c OK [10:16:34]MH_I2C_Read... [10:16:35]*** Cut start [10:16:35]*** Partial cut [10:16:35]*** CUTSNS_PIN = 1 [10:16:35]*** CUTSNS_PIN = 0 [10:16:35]*** Brake cut motor [10:16:35]OFD Sender: No OFD packet to send [10:16:36]Read from MH i2c: 01 [10:16:36]MH_I2C_Read... [10:16:36]*** Stop cut motor [10:16:36]*** Cut end [10:16:36]Read from MH i2c: 01 07 00 [10:16:36]MH_I2C_Read... [10:16:36]Read from MH i2c: 01 07 00 AA 98 00 00 00 00 00 FF 0F 57 [10:16:36]process_action print_text done [10:16:36]requested_data is exist [10:16:36]produce_requested_data [10:16:36]requested_item fm.sn is exist - process it [10:16:36]wFMCommunicate request_size=4 [10:16:36]MH_SAM_APDU [10:16:36]CAPDU: 80 11 00 00 [10:16:36]Write to MH i2c: E2 08 00 AB 98 80 11 00 00 00 00 00 00 BD [10:16:36]Write i2c OK [10:16:36]MH_I2C_Read... [10:16:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:16:36]Read from MH i2c: E2 [10:16:36]MH_I2C_Read... [10:16:36]Read from MH i2c: E2 17 00 [10:16:36]MH_I2C_Read... [10:16:36]Read from MH i2c: E2 17 00 AB 98 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 10 [10:16:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [10:16:36]wFMCommunicate OK [10:16:36]requested_item fd.num is exist - process it [10:16:36]SAM_PROTO_GetFieldsCounters [10:16:36]wFMCommunicate request_size=4 [10:16:36]MH_SAM_APDU [10:16:36]CAPDU: 80 13 00 00 [10:16:36]Write to MH i2c: E2 08 00 AC 98 80 13 00 00 00 00 00 00 C0 [10:16:36]Write i2c OK [10:16:36]MH_I2C_Read... [10:16:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:16:36]Read from MH i2c: E2 [10:16:36]MH_I2C_Read... [10:16:36]Read from MH i2c: E2 62 00 [10:16:36]MH_I2C_Read... [10:16:36]Read from MH i2c: E2 62 00 AC 98 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 C1 94 01 00 0E 04 04 00 61 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 2C [10:16: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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 C1 94 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 2F 00 00 00 5E 04 04 00 2F 00 00 00 57 04 04 00 30 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:16:36]wFMCommunicate OK [10:16:36]SAM_PROTO_GetFieldsCounters done [10:16:36]requested_item shift.num is exist - process it [10:16:36]requested_item shift.opened is exist - process it [10:16:36]req_shift_opened [10:16:36]FM_GetShiftState [10:16:36]SAM_PROTO_GetShiftState [10:16:36]wFMCommunicate request_size=4 [10:16:36]MH_SAM_APDU [10:16:36]CAPDU: 80 13 01 00 [10:16:36]Write to MH i2c: E2 08 00 AD 98 80 13 01 00 00 00 00 00 C2 [10:16:36]Write i2c OK [10:16:36]MH_I2C_Read... [10:16:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:16:36]Read from MH i2c: E2 [10:16:36]MH_I2C_Read... [10:16:36]Read from MH i2c: E2 0E 00 [10:16:36]MH_I2C_Read... [10:16:36]Read from MH i2c: E2 0E 00 AD 98 00 09 00 01 04 26 72 66 00 00 00 00 90 00 D0 [10:16:36]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [10:16:36]wFMCommunicate OK [10:16:36]SAM_PROTO_GetShiftState done [10:16:36]FM_GetShiftState done [10:16:36]req_shift_opened done [10:16:36]requested_item shift.open_date is exist - process it [10:16:36]req_shift_open_date [10:16:36]req_shift_open_date done [10:16:36]produce_requested_data done [10:16:36]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103617,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [10:16:36]process_action_free print_text [10:16:36]json_value_free [10:16:36]json_value_free done [10:16:36]process_json_proto returns [10:16:36]Send response to host [10:16:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103617,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [10:16:36]free response buf [10:16:36]execute_script done [10:16:36]execute_script returns [10:16:36]free content buf [10:16:36]Sock 7.Close socket [10:16:36]Sock 7.Thread stoped [10:16:40]OFD Sender: No OFD packet to send [10:16:45]OFD Sender: No OFD packet to send [10:16:50]OFD Sender: No OFD packet to send [10:16:55]OFD Sender: No OFD packet to send [10:17:00]OFD Sender: No OFD packet to send [10:17:05]OFD Sender: No OFD packet to send [10:17:10]OFD Sender: No OFD packet to send [10:17:15]OFD Sender: No OFD packet to send [10:17:20]OFD Sender: No OFD packet to send [10:17:25]OFD Sender: No OFD packet to send [10:17:30]OFD Sender: No OFD packet to send [10:17:35]OFD Sender: No OFD packet to send [10:17:40]OFD Sender: No OFD packet to send [10:17:45]OFD Sender: No OFD packet to send [10:17:50]OFD Sender: No OFD packet to send [10:17:55]OFD Sender: No OFD packet to send [10:18:00]OFD Sender: No OFD packet to send [10:18:05]OFD Sender: No OFD packet to send [10:18:10]OFD Sender: No OFD packet to send [10:18:15]OFD Sender: No OFD packet to send [10:18:20]OFD Sender: No OFD packet to send [10:18:25]OFD Sender: No OFD packet to send [10:18:30]OFD Sender: No OFD packet to send [10:18:35]OFD Sender: No OFD packet to send [10:18:40]OFD Sender: No OFD packet to send [10:18:45]OFD Sender: No OFD packet to send [10:18:50]OFD Sender: No OFD packet to send [10:18:55]OFD Sender: No OFD packet to send [10:19:00]OFD Sender: No OFD packet to send [10:19:05]OFD Sender: No OFD packet to send [10:19:10]OFD Sender: No OFD packet to send [10:19:15]OFD Sender: No OFD packet to send [10:19:20]OFD Sender: No OFD packet to send [10:19:25]OFD Sender: No OFD packet to send [10:19:27]accept exits with 9 [10:19:27]New connection [10:19:27]New thread 3067227492 created [10:19:27]Thread 3067084132 joined [10:19:27]Waiting for new connection... [10:19:27] Sock 9.Parse request [10:19:27]Sock 9.Check first char [10:19:27]Sock 9.First char is OK [10:19:27]request: POST /json_proto HTTP/1.0 [10:19:27]Method: POST [10:19:27]URL: /json_proto [10:19:27]Method is POST - this is cgi request [10:19:27]url: /json_proto [10:19:27]query_string will be loaded in cgi processing [10:19:27]execute_cgi json_proto POST (null) [10:19:27]execute_cgi path=json_proto method=POST [10:19:27]POST find Content-Length [10:19:27]Host: 172.17.38.133:8080 [10:19:27]Content-Length: 645 [10:19:27]Content-Type: application/json [10:19:27] [10:19:27]POST finish read [10:19:27]Found Content-Length = 645 [10:19:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672855", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 10.000, "sum" : 729.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 729.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:19:27]execute_script... [10:19: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)672855", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 10.000, "sum" : 729.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 729.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:19:27]POST & json_proto [10:19:27]process_json_proto [10:19:27]json parsed OK: [10:19:27]protocol is kg_v1.0 [10:19:27]action value=close_receipt [10:19:27]process_action close_receipt [10:19:27]cmd_close_receipt [10:19:27]MH_GetDate [10:19:27]Write to MH i2c: F0 00 00 AE 98 35 [10:19:27]Write i2c OK [10:19:27]MH_I2C_Read... [10:19:27]Read from MH i2c: F0 [10:19:27]MH_I2C_Read... [10:19:27]Read from MH i2c: F0 09 00 [10:19:27]MH_I2C_Read... [10:19:27]Read from MH i2c: F0 09 00 AE 98 00 BB B0 72 66 BD 8F 7C 64 AD [10:19:27]GetLastDocTimeStamp 1718792164 [10:19:27]current date 1718792379 [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 AF 98 80 13 01 00 00 00 00 00 C4 [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 AF 98 00 09 00 01 04 26 72 66 00 00 00 00 90 00 D2 [10:19:27]RAPDU: 09 00 01 04 26 72 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]opened in 1718756868 [10:19:27]opened+sec_in_day 1718843268 [10:19:27]quantity*price = 72900 [10:19:27]sum+1 = 72901 [10:19:27]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 729.00 НСП 1% : 6.45 НДС 12% : 77.42 Наличными: 729.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 48 19.06.2024 10:19 Смена: 353 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103618 ФПД: 10792008109930 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T101939&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103618&fm=10792008109930&tin=02508201610067®Number=0000000000092785&sum=72900 [10:19:29]StoreToDocumentArchive [10:19:29]shift 353 fd 103618 [10:19:29]save to /storage/0353/doc_00103618 [10:19:29]save last doc name /storage/0353/doc_00103618 to /storage/kkm_last_doc_name [10:19:29]save OK [10:19:29]Clear old archive folders... [10:19:29]ProcessDocumentItem done err = 0, tmpTLVsize=252 [10:19:29]tlvbuf is 01337C40 [10:19:29]SAM_PROTO_ClearQueue [10:19:29]wFMCommunicate request_size=4 [10:19:29]MH_SAM_APDU [10:19:29]CAPDU: 80 09 00 00 [10:19:29]Write to MH i2c: E2 08 00 BC 98 80 09 00 00 00 00 00 00 C6 [10:19:29]Write i2c OK [10:19:29]MH_I2C_Read... [10:19:29]Read from MH i2c: E2 [10:19:29]MH_I2C_Read... [10:19:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:19:29]Read from MH i2c: E2 03 00 [10:19:29]MH_I2C_Read... [10:19:29]Read from MH i2c: E2 03 00 BC 98 00 90 00 C8 [10:19:29]RAPDU: 90 00 [10:19:29]wFMCommunicate OK [10:19:29]SAM_PROTO_ClearQueue done [10:19:29]KKMCreateOFDPacket [10:19:29]OFDProtocolAddRootSTLVToBuf [10:19:29]FM_MakeSignedData [10:19:29]FM_MakeSignedData [10:19:29]SAM_PROTO_SignData [10:19:29]wFMCommunicate request_size=4 [10:19:29]MH_SAM_APDU [10:19:29]CAPDU: 80 0D 01 02 [10:19:29]Write to MH i2c: E2 08 00 BD 98 80 0D 01 02 00 00 00 00 CE [10:19:29]Write i2c OK [10:19:29]MH_I2C_Read... [10:19:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:19:29]Read from MH i2c: E2 [10:19:29]MH_I2C_Read... [10:19:29]Read from MH i2c: E2 03 00 [10:19:29]MH_I2C_Read... [10:19:29]Read from MH i2c: E2 03 00 BD 98 00 90 00 C9 [10:19:29]RAPDU: 90 00 [10:19:29]wFMCommunicate OK [10:19:29]wFMCommunicate request_size=255 [10:19:29]MH_SAM_APDU [10:19:29]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 C4 1C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 1C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 1E 00 00 00 00 07 04 06 00 C4 1C 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 BB B0 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 C2 94 01 00 35 04 06 00 [10:19:29]Write to MH i2c: E2 02 01 BE 98 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 C4 1C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 1C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 1E 00 00 00 00 07 04 06 00 C4 1C 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 BB B0 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 C2 94 01 00 35 04 06 00 00 00 98 [10:19:29]Write i2c OK [10:19:29]MH_I2C_Read... [10:19:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:19:29]Read from MH i2c: E2 [10:19:29]MH_I2C_Read... [10:19:29]Read from MH i2c: E2 03 00 [10:19:29]MH_I2C_Read... [10:19:29]Read from MH i2c: E2 03 00 BE 98 00 90 00 CA [10:19:29]RAPDU: 90 00 [10:19:29]wFMCommunicate OK [10:19:29]wFMCommunicate request_size=11 [10:19:29]MH_SAM_APDU [10:19:29]CAPDU: 80 0D 02 02 06 09 D0 B5 CF 4F 6A [10:19:29]Write to MH i2c: E2 0E 00 BF 98 80 0D 02 02 06 00 09 D0 B5 CF 4F 6A 00 00 F3 [10:19:29]Write i2c OK [10:19:29]MH_I2C_Read... [10:19:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:19:29]Read from MH i2c: E2 [10:19:29]MH_I2C_Read... [10:19:29]Read from MH i2c: E2 03 00 [10:19:29]MH_I2C_Read... [10:19:29]Read from MH i2c: E2 03 00 BF 98 00 90 00 CB [10:19:29]RAPDU: 90 00 [10:19:29]wFMCommunicate OK [10:19:29]wFMCommunicate request_size=4 [10:19:29]MH_SAM_APDU [10:19:29]CAPDU: 80 0D 03 02 [10:19:29]Write to MH i2c: E2 08 00 C0 98 80 0D 03 02 00 00 00 00 D3 [10:19:29]Write i2c OK [10:19:29]MH_I2C_Read... [10:19:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:19:29]Read from MH i2c: E2 [10:19:29]MH_I2C_Read... [10:19:29]Read from MH i2c: E2 0B 00 [10:19:29]MH_I2C_Read... [10:19:29]Read from MH i2c: E2 0B 00 C0 98 00 48 A3 B9 22 93 1F 60 73 90 00 1F [10:19:29]RAPDU: 48 A3 B9 22 93 1F 60 73 90 00 [10:19:29]wFMCommunicate OK [10:19:29]SAM_PROTO_SignData done [10:19:29]FM_MakeSignedData done [10:19:29]CreateOFDProtocolMessage [10:19:29]wFMCommunicate request_size=4 [10:19:29]MH_SAM_APDU [10:19:29]CAPDU: 80 11 00 00 [10:19:29]Write to MH i2c: E2 08 00 C1 98 80 11 00 00 00 00 00 00 D3 [10:19:29]Write i2c OK [10:19:29]MH_I2C_Read... [10:19:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:19:29]Read from MH i2c: E2 [10:19:29]MH_I2C_Read... [10:19:29]Read from MH i2c: E2 17 00 [10:19:29]MH_I2C_Read... [10:19:29]Read from MH i2c: E2 17 00 C1 98 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 26 [10:19:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [10:19:29]wFMCommunicate OK [10:19:29]CreateOFDProtocolMessage done [10:19:29]OFDSenderStorePacket 103618 [10:19:29]StoreOFDPacket docnum=103618 [10:19:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 78 E5 08 01 10 71 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 C4 1C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 1C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 1E 00 00 00 00 07 04 06 00 C4 1C 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 BB B0 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 C2 94 01 00 35 04 06 00 09 D0 B5 CF 4F 6A 48 A3 B9 22 93 1F 60 73 [10:19:29]CheckFolder [10:19:29]dirname=/storage/ofd_packets [10:19:29]CheckFolder done [10:19:29]ProducePacketName [10:19:29]name=ofd_packets/00103618 [10:19:29]NVStorageSaveData ofd_packets/00103618 [10:19:29]File name is /storage/ofd_packets/00103618 [10:19:29]Write 302 bytes [10:19:29]NVStorageSaveData done [10:19:29]OFDSenderStorePacket done [10:19:29]KKMCreateOFDPacket done [10:19:29]NVStorageSaveData kkm_last_timestamp [10:19:29]File name is /storage/kkm_last_timestamp [10:19:29]Write 4 bytes [10:19:29]NVStorageSaveData done [10:19:29]ExternCall_PrintAddStr [10:19:29]wPrintStart [10:19:29]Write to MH i2c: 01 00 00 C2 98 5A [10:19:29]Write i2c OK [10:19:29]MH_I2C_Read... [10:19:29]Read from MH i2c: 01 [10:19:29]MH_I2C_Read... [10:19:29]Read from MH i2c: 01 07 00 [10:19:29]MH_I2C_Read... [10:19:29]Read from MH i2c: 01 07 00 C2 98 00 00 00 00 00 FF 0F 6F [10:19:29]RasterBufferAndPrint [10:19:29]line Счет N : (1)672855 [10:19:29]line ИНН: 02508201610067 [10:19:29]line Контрольно-Кассовый Чек [10:19:29]line ПРОДАЖА [10:19:29]line ТРК (МРК, ГНК) : 11 [10:19:29]line Товар: 2710194210 [10:19:29]line ДТ(л)-К-5 [10:19:29]line 10.000 * 72.90 [10:19:29]line = 729.00 [10:19:29]line НДС 12% НСП 1% [10:19:29]line > о реализуемом товаре [10:19:29]line ИТОГО: 729.00 [10:19:29]line НСП 1% : 6.45 [10:19:29]line НДС 12% : 77.42 [10:19:29]line Наличными: 729.00 [10:19:29]line Безнал.: 0.00 [10:19:29]line Место: АЗС № 120 "Партнер Нефть" [10:19:29]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [10:19:29]line СНО: Общий режим [10:19:29]line Чек 48 19.06.2024 10:19 [10:19:29]line Смена: 353 ФФД: 1.0 [10:19:29]line ЗНМ: 0300000164 [10:19:29]line РНМ: 0000000000092785 [10:19:29]line Версия ККМ: 001 [10:19:29]line ФМ: 0000000000875093 [10:19:29]line ФД: 103618 [10:19:29]line ФПД: 10792008109930 [10:19:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T101939&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103618&fm=10792008109930&tin=02508201610067®Number=0000000000092785&sum=72900 [10:19:29]written 0, free lines is 4095 [10:19:29]OFD Sender: Processing packet 103618 [packets to send 17, broken 16] [10:19:29]ProducePacketName [10:19:29]name=ofd_packets/00103618 [10:19:29]OFD Sender: To server: pG, [10:19:29]CommunicateWithHost lk.salyk.kg:30040 [10:19:29]ConnectInit lk.salyk.kg [10:19:29]Connected sock=11 [10:19: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 39 33 10 01 00 00 78 E5 08 01 10 71 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 C4 1C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 1C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 1E 00 00 00 00 07 04 06 00 C4 1C 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 BB B0 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 C2 94 01 00 35 04 06 00 09 D0 B5 CF 4F 6A 48 A3 B9 22 93 1F 60 73 [10:19:30]Write to MH i2c: 01 00 00 EA 98 82 [10:19:30]Write i2c OK [10:19:30]MH_I2C_Read... [10:19:30]Read from MH i2c: 01 [10:19:30]MH_I2C_Read... [10:19:30]Read from MH i2c: 01 07 00 [10:19:30]MH_I2C_Read... [10:19:30]Read from MH i2c: 01 07 00 EA 98 00 00 00 00 00 FE 0C 93 [10:19:30]RasterBufferAndPrint [10:19:30]line [10:19:30]line [10:19:30]line [10:19:30]line [10:19:30]line [10:19:30]written 0, free lines is 3332 [10:19:30]MH_Cut [10:19:30]Write to MH i2c: D1 01 00 F1 98 01 5B [10:19:30]Write i2c OK [10:19:30]MH_I2C_Read... [10:19:30]Read from MH i2c: D1 [10:19:30]MH_I2C_Read... [10:19:30]Read from MH i2c: D1 01 00 [10:19:30]MH_I2C_Read... [10:19:30]Read from MH i2c: D1 01 00 F1 98 00 5A [10:19:30]Write to MH i2c: 01 00 00 F2 98 8A [10:19:30]Write i2c OK [10:19:30]MH_I2C_Read... [10:19: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 39 33 4F 00 00 00 0B B3 47 00 BB 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 39 33 10 04 04 00 C2 94 01 00 F4 03 04 00 44 57 72 66 B6 04 01 00 00 6F 53 08 F1 01 72 3F 56 [10:19:30]CommunicateWithHost err = 0 [10:19:30]CheckOFDResponse [10:19:30]1017 (14) - 77093643461234 [10:19:30]1041 (16) - 0000000000875093 [10:19:30]1040 (4) - 103618 [10:19:30]1012 (4) - 19.06.2024 03:57 [10:19:30]1206 (1) - 0 [10:19:30]OFD Sender: Remove packet 103618 [10:19:30]ProducePacketName [10:19:30]name=ofd_packets/00103618 [10:19:30]NVStorageDeleteData [10:19:30]OFD Sender: No OFD packet to send [10:19:30]*** Cut start [10:19:30]*** Partial cut [10:19:30]*** CUTSNS_PIN = 1 [10:19:30]*** CUTSNS_PIN = 0 [10:19:31]*** Brake cut motor [10:19:31]Read from MH i2c: 01 [10:19:31]MH_I2C_Read... [10:19:31]*** Stop cut motor [10:19:31]*** Cut end [10:19:31]Read from MH i2c: 01 07 00 [10:19:31]MH_I2C_Read... [10:19:31]Read from MH i2c: 01 07 00 F2 98 00 00 00 00 00 FF 0F 9F [10:19:31]process_action close_receipt done [10:19:31]requested_data is exist [10:19:31]produce_requested_data [10:19:31]requested_item fm.sn is exist - process it [10:19:31]wFMCommunicate request_size=4 [10:19:31]MH_SAM_APDU [10:19:31]CAPDU: 80 11 00 00 [10:19:31]Write to MH i2c: E2 08 00 F3 98 80 11 00 00 00 00 00 00 05 [10:19:31]Write i2c OK [10:19:31]MH_I2C_Read... [10:19:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:19:31]Read from MH i2c: E2 [10:19:31]MH_I2C_Read... [10:19:31]Read from MH i2c: E2 17 00 [10:19:31]MH_I2C_Read... [10:19:31]Read from MH i2c: E2 17 00 F3 98 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 58 [10:19:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [10:19:31]wFMCommunicate OK [10:19:31]requested_item fd.num is exist - process it [10:19:31]SAM_PROTO_GetFieldsCounters [10:19:31]wFMCommunicate request_size=4 [10:19:31]MH_SAM_APDU [10:19:31]CAPDU: 80 13 00 00 [10:19:31]Write to MH i2c: E2 08 00 F4 98 80 13 00 00 00 00 00 00 08 [10:19:31]Write i2c OK [10:19:31]MH_I2C_Read... [10:19:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:19:31]Read from MH i2c: E2 [10:19:31]MH_I2C_Read... [10:19:31]Read from MH i2c: E2 62 00 [10:19:31]MH_I2C_Read... [10:19:31]Read from MH i2c: E2 62 00 F4 98 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 C2 94 01 00 0E 04 04 00 61 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 78 [10:19: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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 C2 94 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 30 00 00 00 5E 04 04 00 30 00 00 00 57 04 04 00 31 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:19:31]wFMCommunicate OK [10:19:31]SAM_PROTO_GetFieldsCounters done [10:19:31]requested_item shift.num is exist - process it [10:19:31]requested_item shift.opened is exist - process it [10:19:31]req_shift_opened [10:19:31]FM_GetShiftState [10:19:31]SAM_PROTO_GetShiftState [10:19:31]wFMCommunicate request_size=4 [10:19:31]MH_SAM_APDU [10:19:31]CAPDU: 80 13 01 00 [10:19:31]Write to MH i2c: E2 08 00 F5 98 80 13 01 00 00 00 00 00 0A [10:19:31]Write i2c OK [10:19:31]MH_I2C_Read... [10:19:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:19:31]Read from MH i2c: E2 [10:19:31]MH_I2C_Read... [10:19:31]Read from MH i2c: E2 0E 00 [10:19:31]MH_I2C_Read... [10:19:31]Read from MH i2c: E2 0E 00 F5 98 00 09 00 01 04 26 72 66 00 00 00 00 90 00 18 [10:19:31]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [10:19:31]wFMCommunicate OK [10:19:31]SAM_PROTO_GetShiftState done [10:19:31]FM_GetShiftState done [10:19:31]req_shift_opened done [10:19:31]requested_item shift.open_date is exist - process it [10:19:31]req_shift_open_date [10:19:31]req_shift_open_date done [10:19:31]produce_requested_data done [10:19:31]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103618,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [10:19:31]process_action_free close_receipt [10:19:31]json_value_free [10:19:31]json_value_free done [10:19:31]process_json_proto returns [10:19:31]Send response to host [10:19:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103618,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [10:19:31]free response buf [10:19:31]execute_script done [10:19:31]execute_script returns [10:19:31]free content buf [10:19:31]Sock 9.Close socket [10:19:31]Sock 9.Thread stoped [10:19:35]OFD Sender: No OFD packet to send [10:19:40]OFD Sender: No OFD packet to send [10:19:45]OFD Sender: No OFD packet to send [10:19:50]OFD Sender: No OFD packet to send [10:19:55]OFD Sender: No OFD packet to send [10:20:00]OFD Sender: No OFD packet to send [10:20:05]OFD Sender: No OFD packet to send [10:20:10]OFD Sender: No OFD packet to send [10:20:15]OFD Sender: No OFD packet to send [10:20:20]OFD Sender: No OFD packet to send [10:20:25]OFD Sender: No OFD packet to send [10:20:30]OFD Sender: No OFD packet to send [10:20:35]OFD Sender: No OFD packet to send [10:20:40]OFD Sender: No OFD packet to send [10:20:45]OFD Sender: No OFD packet to send [10:20:50]OFD Sender: No OFD packet to send [10:20:55]OFD Sender: No OFD packet to send [10:21:00]OFD Sender: No OFD packet to send [10:21:05]OFD Sender: No OFD packet to send [10:21:10]OFD Sender: No OFD packet to send [10:21:15]OFD Sender: No OFD packet to send [10:21:20]OFD Sender: No OFD packet to send [10:21:25]OFD Sender: No OFD packet to send [10:21:30]OFD Sender: No OFD packet to send [10:21:35]OFD Sender: No OFD packet to send [10:21:40]OFD Sender: No OFD packet to send [10:21:45]OFD Sender: No OFD packet to send [10:21:50]OFD Sender: No OFD packet to send [10:21:55]OFD Sender: No OFD packet to send [10:22:00]OFD Sender: No OFD packet to send [10:22:05]OFD Sender: No OFD packet to send [10:22:10]OFD Sender: No OFD packet to send [10:22:15]OFD Sender: No OFD packet to send [10:22:20]OFD Sender: No OFD packet to send [10:22:25]OFD Sender: No OFD packet to send [10:22:30]OFD Sender: No OFD packet to send [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]accept exits with 7 [10:23:10]New connection [10:23:10]New thread 3067084132 created [10:23:10]Thread 3067227492 joined [10:23:10]Waiting for new connection... [10:23:10] Sock 7.Parse request [10:23:10]Sock 7.Check first char [10:23:10]Sock 7.First char is OK [10:23:10]request: POST /json_proto HTTP/1.0 [10:23:10]Method: POST [10:23:10]URL: /json_proto [10:23:10]Method is POST - this is cgi request [10:23:10]url: /json_proto [10:23:10]query_string will be loaded in cgi processing [10:23:10]execute_cgi json_proto POST (null) [10:23:10]execute_cgi path=json_proto method=POST [10:23:10]POST find Content-Length [10:23:10]Host: 172.17.38.133:8080 [10:23:10]Content-Length: 682 [10:23:10]Content-Type: application/json [10:23:10] [10:23:10]POST finish read [10:23:10]Found Content-Length = 682 [10:23:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672854", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 30.130, "sum" : 2000.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:23:10]execute_script... [10:23:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672854", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 30.130, "sum" : 2000.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:23:10]POST & json_proto [10:23:10]process_json_proto [10:23:10]json parsed OK: [10:23:10]protocol is kg_v1.0 [10:23:10]action value=close_receipt [10:23:10]process_action close_receipt [10:23:10]cmd_close_receipt [10:23:10]MH_GetDate [10:23:10]Write to MH i2c: F0 00 00 F6 98 7D [10:23:10]Write i2c OK [10:23:10]MH_I2C_Read... [10:23:10]Read from MH i2c: F0 [10:23:10]MH_I2C_Read... [10:23:10]Read from MH i2c: F0 09 00 [10:23:10]MH_I2C_Read... [10:23:10]Read from MH i2c: F0 09 00 F6 98 00 9A B1 72 66 BD 8F 7C 64 D5 [10:23:10]GetLastDocTimeStamp 1718792379 [10:23:10]current date 1718792602 [10:23:10]FM_GetShiftState [10:23:10]SAM_PROTO_GetShiftState [10:23:10]wFMCommunicate request_size=4 [10:23:10]MH_SAM_APDU [10:23:10]CAPDU: 80 13 01 00 [10:23:10]Write to MH i2c: E2 08 00 F7 98 80 13 01 00 00 00 00 00 0C [10:23:10]Write i2c OK [10:23:10]MH_I2C_Read... [10:23:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:23:10]Read from MH i2c: E2 [10:23:10]MH_I2C_Read... [10:23:10]Read from MH i2c: E2 0E 00 [10:23:10]MH_I2C_Read... [10:23:10]Read from MH i2c: E2 0E 00 F7 98 00 09 00 01 04 26 72 66 00 00 00 00 90 00 1A [10:23:10]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [10:23:10]wFMCommunicate OK [10:23:10]SAM_PROTO_GetShiftState done [10:23:10]FM_GetShiftState done [10:23:10]opened in 1718756868 [10:23:10]opened+sec_in_day 1718843268 [10:23:10]quantity*price = 200063 [10:23:10]sum+1 = 200064 [10:23:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.46 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 49 19.06.2024 10:23 Смена: 353 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103619 ФПД: 70490256002640 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T102322&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103619&fm=70490256002640&tin=02508201610067®Number=0000000000092785&sum=200000 [10:23:11]StoreToDocumentArchive [10:23:11]shift 353 fd 103619 [10:23:11]save to /storage/0353/doc_00103619 [10:23:11]save last doc name /storage/0353/doc_00103619 to /storage/kkm_last_doc_name [10:23:11]save OK [10:23:11]Clear old archive folders... [10:23:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:23:11]tlvbuf is 014B20E0 [10:23:11]SAM_PROTO_ClearQueue [10:23:11]wFMCommunicate request_size=4 [10:23:11]MH_SAM_APDU [10:23:11]CAPDU: 80 09 00 00 [10:23:11]Write to MH i2c: E2 08 00 04 99 80 09 00 00 00 00 00 00 0F [10:23:11]Write i2c OK [10:23:11]MH_I2C_Read... [10:23:11]Read from MH i2c: E2 [10:23:11]MH_I2C_Read... [10:23:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:23:11]Read from MH i2c: E2 03 00 [10:23:11]MH_I2C_Read... [10:23:11]Read from MH i2c: E2 03 00 04 99 00 90 00 11 [10:23:11]RAPDU: 90 00 [10:23:11]wFMCommunicate OK [10:23:11]SAM_PROTO_ClearQueue done [10:23:11]KKMCreateOFDPacket [10:23:11]OFDProtocolAddRootSTLVToBuf [10:23:11]FM_MakeSignedData [10:23:11]FM_MakeSignedData [10:23:11]SAM_PROTO_SignData [10:23:11]wFMCommunicate request_size=4 [10:23:11]MH_SAM_APDU [10:23:11]CAPDU: 80 0D 01 02 [10:23:11]Write to MH i2c: E2 08 00 05 99 80 0D 01 02 00 00 00 00 17 [10:23:11]Write i2c OK [10:23:11]MH_I2C_Read... [10:23:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:23:11]Read from MH i2c: E2 [10:23:11]MH_I2C_Read... [10:23:11]Read from MH i2c: E2 03 00 [10:23:11]MH_I2C_Read... [10:23:11]Read from MH i2c: E2 03 00 05 99 00 90 00 12 [10:23:11]RAPDU: 90 00 [10:23:11]wFMCommunicate OK [10:23:11]wFMCommunicate request_size=255 [10:23:11]MH_SAM_APDU [10:23: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 B2 75 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FE 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 9A B1 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 C3 94 01 00 35 04 06 00 40 [10:23:11]Write to MH i2c: E2 02 01 06 99 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B2 75 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FE 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 9A B1 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 C3 94 01 00 35 04 06 00 40 00 00 14 [10:23:11]Write i2c OK [10:23:11]MH_I2C_Read... [10:23:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:23:12]Read from MH i2c: E2 [10:23:12]MH_I2C_Read... [10:23:12]Read from MH i2c: E2 03 00 [10:23:12]MH_I2C_Read... [10:23:12]Read from MH i2c: E2 03 00 06 99 00 90 00 13 [10:23:12]RAPDU: 90 00 [10:23:12]wFMCommunicate OK [10:23:12]wFMCommunicate request_size=10 [10:23:12]MH_SAM_APDU [10:23:12]CAPDU: 80 0D 02 02 05 1C 4A AB 4E 50 [10:23:12]Write to MH i2c: E2 0D 00 07 99 80 0D 02 02 05 00 1C 4A AB 4E 50 00 00 D3 [10:23:12]Write i2c OK [10:23:12]MH_I2C_Read... [10:23:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:23:12]Read from MH i2c: E2 [10:23:12]MH_I2C_Read... [10:23:12]Read from MH i2c: E2 03 00 [10:23:12]MH_I2C_Read... [10:23:12]Read from MH i2c: E2 03 00 07 99 00 90 00 14 [10:23:12]RAPDU: 90 00 [10:23:12]wFMCommunicate OK [10:23:12]wFMCommunicate request_size=4 [10:23:12]MH_SAM_APDU [10:23:12]CAPDU: 80 0D 03 02 [10:23:12]Write to MH i2c: E2 08 00 08 99 80 0D 03 02 00 00 00 00 1C [10:23:12]Write i2c OK [10:23:12]MH_I2C_Read... [10:23:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:23:12]Read from MH i2c: E2 [10:23:12]MH_I2C_Read... [10:23:12]Read from MH i2c: E2 0B 00 [10:23:12]MH_I2C_Read... [10:23:12]Read from MH i2c: E2 0B 00 08 99 00 78 2B 05 18 06 25 1C 93 90 00 B7 [10:23:12]RAPDU: 78 2B 05 18 06 25 1C 93 90 00 [10:23:12]wFMCommunicate OK [10:23:12]SAM_PROTO_SignData done [10:23:12]FM_MakeSignedData done [10:23:12]CreateOFDProtocolMessage [10:23:12]wFMCommunicate request_size=4 [10:23:12]MH_SAM_APDU [10:23:12]CAPDU: 80 11 00 00 [10:23:12]Write to MH i2c: E2 08 00 09 99 80 11 00 00 00 00 00 00 1C [10:23:12]Write i2c OK [10:23:12]MH_I2C_Read... [10:23:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:23:12]Read from MH i2c: E2 [10:23:12]MH_I2C_Read... [10:23:12]Read from MH i2c: E2 17 00 [10:23:12]MH_I2C_Read... [10:23:12]Read from MH i2c: E2 17 00 09 99 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 6F [10:23:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [10:23:12]wFMCommunicate OK [10:23:12]CreateOFDProtocolMessage done [10:23:12]OFDSenderStorePacket 103619 [10:23:12]StoreOFDPacket docnum=103619 [10:23:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 E7 78 07 01 3A 1A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B2 75 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FE 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 9A B1 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 C3 94 01 00 35 04 06 00 40 1C 4A AB 4E 50 78 2B 05 18 06 25 1C 93 [10:23:12]CheckFolder [10:23:12]dirname=/storage/ofd_packets [10:23:12]CheckFolder done [10:23:12]ProducePacketName [10:23:12]name=ofd_packets/00103619 [10:23:12]NVStorageSaveData ofd_packets/00103619 [10:23:12]File name is /storage/ofd_packets/00103619 [10:23:12]Write 301 bytes [10:23:12]NVStorageSaveData done [10:23:12]OFDSenderStorePacket done [10:23:12]KKMCreateOFDPacket done [10:23:12]NVStorageSaveData kkm_last_timestamp [10:23:12]File name is /storage/kkm_last_timestamp [10:23:12]Write 4 bytes [10:23:12]NVStorageSaveData done [10:23:12]ExternCall_PrintAddStr [10:23:12]wPrintStart [10:23:12]Write to MH i2c: 01 00 00 0A 99 A3 [10:23:12]Write i2c OK [10:23:12]MH_I2C_Read... [10:23:12]Read from MH i2c: 01 [10:23:12]MH_I2C_Read... [10:23:12]Read from MH i2c: 01 07 00 [10:23:12]MH_I2C_Read... [10:23:12]Read from MH i2c: 01 07 00 0A 99 00 00 00 00 00 FF 0F B8 [10:23:12]RasterBufferAndPrint [10:23:12]line Счет N : (1)672854 [10:23:12]line ИНН: 02508201610067 [10:23:12]line Контрольно-Кассовый Чек [10:23:12]line ПРОДАЖА [10:23:12]line ТРК (МРК, ГНК) : 42 [10:23:12]line Товар: 2710124130 [10:23:12]line Аи-92-К-5 [10:23:12]line 30.130 * 66.40 [10:23:12]line = 2000.63 [10:23:12]line НДС 12% НСП 1% [10:23:12]line > о реализуемом товаре [10:23:12]line ОКРУГЛЕНИЕ: -0.63 [10:23:12]line ИТОГО: 2000.00 [10:23:12]line Внесено: 2000.00 [10:23:12]line СДАЧА: 0.00 [10:23:12]line НСП 1% : 17.70 [10:23:12]line НДС 12% : 212.46 [10:23:12]line Наличными: 2000.00 [10:23:12]line Безнал.: 0.00 [10:23:12]line Место: АЗС № 120 "Партнер Нефть" [10:23:12]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [10:23:12]line СНО: Общий режим [10:23:12]line Чек 49 19.06.2024 10:23 [10:23:12]line Смена: 353 ФФД: 1.0 [10:23:12]line ЗНМ: 0300000164 [10:23:12]line РНМ: 0000000000092785 [10:23:12]line Версия ККМ: 001 [10:23:12]line ФМ: 0000000000875093 [10:23:12]line ФД: 103619 [10:23:12]line ФПД: 70490256002640 [10:23:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T102322&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103619&fm=70490256002640&tin=02508201610067®Number=0000000000092785&sum=200000 [10:23:12]OFD Sender: Processing packet 103619 [packets to send 17, broken 16] [10:23:12]ProducePacketName [10:23:12]name=ofd_packets/00103619 [10:23:12]OFD Sender: To server: pG, [10:23:12]CommunicateWithHost lk.salyk.kg:30040 [10:23:12]ConnectInit lk.salyk.kg [10:23:12]written 0, free lines is 4095 [10:23:12]Connected sock=10 [10:23: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 39 33 0F 01 00 00 E7 78 07 01 3A 1A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B2 75 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FE 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 9A B1 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 C3 94 01 00 35 04 06 00 40 1C 4A AB 4E 50 78 2B 05 18 06 25 1C 93 [10:23: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 39 33 4F 00 00 00 57 1F 47 00 BA E1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 C3 94 01 00 F4 03 04 00 23 58 72 66 B6 04 01 00 00 AE A0 95 49 96 29 26 F1 [10:23:12]CommunicateWithHost err = 0 [10:23:12]CheckOFDResponse [10:23:12]1017 (14) - 77093643461234 [10:23:12]1041 (16) - 0000000000875093 [10:23:12]1040 (4) - 103619 [10:23:12]1012 (4) - 19.06.2024 04:01 [10:23:12]1206 (1) - 0 [10:23:12]OFD Sender: Remove packet 103619 [10:23:12]ProducePacketName [10:23:12]name=ofd_packets/00103619 [10:23:12]NVStorageDeleteData [10:23:13]Write to MH i2c: 01 00 00 35 99 CE [10:23:13]Write i2c OK [10:23:13]MH_I2C_Read... [10:23:13]Read from MH i2c: 01 [10:23:13]MH_I2C_Read... [10:23:13]Read from MH i2c: 01 07 00 [10:23:13]MH_I2C_Read... [10:23:13]Read from MH i2c: 01 07 00 35 99 00 00 00 00 00 DA 0C BB [10:23:13]RasterBufferAndPrint [10:23:13]line [10:23:13]line [10:23:13]line [10:23:13]line [10:23:13]line [10:23:13]written 0, free lines is 3297 [10:23:13]MH_Cut [10:23:13]Write to MH i2c: D1 01 00 3C 99 01 A7 [10:23:13]Write i2c OK [10:23:13]MH_I2C_Read... [10:23:13]Read from MH i2c: D1 [10:23:13]MH_I2C_Read... [10:23:13]Read from MH i2c: D1 01 00 [10:23:13]MH_I2C_Read... [10:23:13]Read from MH i2c: D1 01 00 3C 99 00 A6 [10:23:13]Write to MH i2c: 01 00 00 3D 99 D6 [10:23:13]Write i2c OK [10:23:13]MH_I2C_Read... [10:23:13]OFD Sender: No OFD packet to send [10:23:13]*** Cut start [10:23:13]*** Partial cut [10:23:13]*** CUTSNS_PIN = 1 [10:23:13]*** CUTSNS_PIN = 0 [10:23:14]*** Brake cut motor [10:23:14]Read from MH i2c: 01 [10:23:14]MH_I2C_Read... [10:23:14]*** Stop cut motor [10:23:14]*** Cut end [10:23:14]Read from MH i2c: 01 07 00 [10:23:14]MH_I2C_Read... [10:23:14]Read from MH i2c: 01 07 00 3D 99 00 00 00 00 00 FF 0F EB [10:23:14]process_action close_receipt done [10:23:14]requested_data is exist [10:23:14]produce_requested_data [10:23:14]requested_item fm.sn is exist - process it [10:23:14]wFMCommunicate request_size=4 [10:23:14]MH_SAM_APDU [10:23:14]CAPDU: 80 11 00 00 [10:23:14]Write to MH i2c: E2 08 00 3E 99 80 11 00 00 00 00 00 00 51 [10:23:14]Write i2c OK [10:23:14]MH_I2C_Read... [10:23:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:23:14]Read from MH i2c: E2 [10:23:14]MH_I2C_Read... [10:23:14]Read from MH i2c: E2 17 00 [10:23:14]MH_I2C_Read... [10:23:14]Read from MH i2c: E2 17 00 3E 99 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 A4 [10:23:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [10:23:14]wFMCommunicate OK [10:23:14]requested_item fd.num is exist - process it [10:23:14]SAM_PROTO_GetFieldsCounters [10:23:14]wFMCommunicate request_size=4 [10:23:14]MH_SAM_APDU [10:23:14]CAPDU: 80 13 00 00 [10:23:14]Write to MH i2c: E2 08 00 3F 99 80 13 00 00 00 00 00 00 54 [10:23:14]Write i2c OK [10:23:14]MH_I2C_Read... [10:23:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:23:14]Read from MH i2c: E2 [10:23:14]MH_I2C_Read... [10:23:14]Read from MH i2c: E2 62 00 [10:23:14]MH_I2C_Read... [10:23:14]Read from MH i2c: E2 62 00 3F 99 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 C3 94 01 00 0E 04 04 00 61 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 C8 [10:23: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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 C3 94 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 31 00 00 00 5E 04 04 00 31 00 00 00 57 04 04 00 32 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:23:14]wFMCommunicate OK [10:23:14]SAM_PROTO_GetFieldsCounters done [10:23:14]requested_item shift.num is exist - process it [10:23:14]requested_item shift.opened is exist - process it [10:23:14]req_shift_opened [10:23:14]FM_GetShiftState [10:23:14]SAM_PROTO_GetShiftState [10:23:14]wFMCommunicate request_size=4 [10:23:14]MH_SAM_APDU [10:23:14]CAPDU: 80 13 01 00 [10:23:14]Write to MH i2c: E2 08 00 40 99 80 13 01 00 00 00 00 00 56 [10:23:14]Write i2c OK [10:23:14]MH_I2C_Read... [10:23:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:23:14]Read from MH i2c: E2 [10:23:14]MH_I2C_Read... [10:23:14]Read from MH i2c: E2 0E 00 [10:23:14]MH_I2C_Read... [10:23:14]Read from MH i2c: E2 0E 00 40 99 00 09 00 01 04 26 72 66 00 00 00 00 90 00 64 [10:23:14]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [10:23:14]wFMCommunicate OK [10:23:14]SAM_PROTO_GetShiftState done [10:23:14]FM_GetShiftState done [10:23:14]req_shift_opened done [10:23:14]requested_item shift.open_date is exist - process it [10:23:14]req_shift_open_date [10:23:14]req_shift_open_date done [10:23:14]produce_requested_data done [10:23:14]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103619,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [10:23:14]process_action_free close_receipt [10:23:14]json_value_free [10:23:14]json_value_free done [10:23:14]process_json_proto returns [10:23:14]Send response to host [10:23:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103619,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [10:23:14]free response buf [10:23:14]execute_script done [10:23:14]execute_script returns [10:23:14]free content buf [10:23:14]Sock 7.Close socket [10:23:14]Sock 7.Thread stoped [10:23:18]OFD Sender: No OFD packet to send [10:23:23]OFD Sender: No OFD packet to send [10:23:28]OFD Sender: No OFD packet to send [10:23:33]OFD Sender: No OFD packet to send [10:23:38]OFD Sender: No OFD packet to send [10:23:43]OFD Sender: No OFD packet to send [10:23:48]OFD Sender: No OFD packet to send [10:23:53]OFD Sender: No OFD packet to send [10:23:58]OFD Sender: No OFD packet to send [10:24:03]OFD Sender: No OFD packet to send [10:24:08]OFD Sender: No OFD packet to send [10:24:13]OFD Sender: No OFD packet to send [10:24:18]OFD Sender: No OFD packet to send [10:24:23]OFD Sender: No OFD packet to send [10:24:28]OFD Sender: No OFD packet to send [10:24:33]OFD Sender: No OFD packet to send [10:24:38]OFD Sender: No OFD packet to send [10:24:43]OFD Sender: No OFD packet to send [10:24:48]OFD Sender: No OFD packet to send [10:24:53]OFD Sender: No OFD packet to send [10:24:58]OFD Sender: No OFD packet to send [10:25:03]OFD Sender: No OFD packet to send [10:25:08]OFD Sender: No OFD packet to send [10:25:13]OFD Sender: No OFD packet to send [10:25:18]OFD Sender: No OFD packet to send [10:25:23]OFD Sender: No OFD packet to send [10:25:28]OFD Sender: No OFD packet to send [10:25:33]OFD Sender: No OFD packet to send [10:25:38]OFD Sender: No OFD packet to send [10:25:40]accept exits with 9 [10:25:40]New connection [10:25:40]New thread 3067227492 created [10:25:40]Thread 3067084132 joined [10:25:40]Waiting for new connection... [10:25:40] Sock 9.Parse request [10:25:40]Sock 9.Check first char [10:25:40]Sock 9.First char is OK [10:25:40]request: POST /json_proto HTTP/1.0 [10:25:40]Method: POST [10:25:40]URL: /json_proto [10:25:40]Method is POST - this is cgi request [10:25:40]url: /json_proto [10:25:40]query_string will be loaded in cgi processing [10:25:40]execute_cgi json_proto POST (null) [10:25:40]execute_cgi path=json_proto method=POST [10:25:40]POST find Content-Length [10:25:40]Host: 172.17.38.133:8080 [10:25:40]Content-Length: 801 [10:25:40]Content-Type: application/json [10:25:40] [10:25:40]POST finish read [10:25:40]Found Content-Length = 801 [10:25:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672857", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 10.100, "sum" : 670.64, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 670.64 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:25:40]execute_script... [10:25: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)672857", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 10.100, "sum" : 670.64, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 670.64 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:25:40]POST & json_proto [10:25:40]process_json_proto [10:25:40]json parsed OK: [10:25:40]protocol is kg_v1.0 [10:25:40]action value=close_receipt [10:25:40]process_action close_receipt [10:25:40]cmd_close_receipt [10:25:40]MH_GetDate [10:25:40]Write to MH i2c: F0 00 00 41 99 C9 [10:25:40]Write i2c OK [10:25:40]MH_I2C_Read... [10:25:40]Read from MH i2c: F0 [10:25:40]MH_I2C_Read... [10:25:40]Read from MH i2c: F0 09 00 [10:25:40]MH_I2C_Read... [10:25:40]Read from MH i2c: F0 09 00 41 99 00 30 B2 72 66 BD 8F 7C 64 B8 [10:25:40]GetLastDocTimeStamp 1718792602 [10:25:40]current date 1718792752 [10:25:40]FM_GetShiftState [10:25:40]SAM_PROTO_GetShiftState [10:25:40]wFMCommunicate request_size=4 [10:25:40]MH_SAM_APDU [10:25:40]CAPDU: 80 13 01 00 [10:25:40]Write to MH i2c: E2 08 00 42 99 80 13 01 00 00 00 00 00 58 [10:25:40]Write i2c OK [10:25:40]MH_I2C_Read... [10:25:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:25:40]Read from MH i2c: E2 [10:25:40]MH_I2C_Read... [10:25:40]Read from MH i2c: E2 0E 00 [10:25:40]MH_I2C_Read... [10:25:40]Read from MH i2c: E2 0E 00 42 99 00 09 00 01 04 26 72 66 00 00 00 00 90 00 66 [10:25:40]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [10:25:40]wFMCommunicate OK [10:25:40]SAM_PROTO_GetShiftState done [10:25:40]FM_GetShiftState done [10:25:40]opened in 1718756868 [10:25:40]opened+sec_in_day 1718843268 [10:25:40]quantity*price = 67064 [10:25:40]sum+1 = 67065 [10:25:40]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 670.64 НСП 1% : 5.93 НДС 12% : 71.22 Наличными: 0.00 Безнал.: 670.64 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 50 19.06.2024 10:25 Смена: 353 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000875093 ФД: 103620 ФПД: 101266707904277 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T102552&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103620&fm=101266707904277&tin=02508201610067®Number=0000000000092785&sum=67064 [10:25:41]StoreToDocumentArchive [10:25:41]shift 353 fd 103620 [10:25:41]save to /storage/0353/doc_00103620 [10:25:41]save last doc name /storage/0353/doc_00103620 to /storage/kkm_last_doc_name [10:25:41]save OK [10:25:41]Clear old archive folders... [10:25:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:25:41]tlvbuf is 01582E80 [10:25:41]SAM_PROTO_ClearQueue [10:25:41]wFMCommunicate request_size=4 [10:25:41]MH_SAM_APDU [10:25:41]CAPDU: 80 09 00 00 [10:25:41]Write to MH i2c: E2 08 00 4F 99 80 09 00 00 00 00 00 00 5A [10:25:41]Write i2c OK [10:25:41]MH_I2C_Read... [10:25:41]Read from MH i2c: E2 [10:25:41]MH_I2C_Read... [10:25:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:25:41]Read from MH i2c: E2 03 00 [10:25:41]MH_I2C_Read... [10:25:41]Read from MH i2c: E2 03 00 4F 99 00 90 00 5C [10:25:41]RAPDU: 90 00 [10:25:41]wFMCommunicate OK [10:25:41]SAM_PROTO_ClearQueue done [10:25:41]KKMCreateOFDPacket [10:25:41]OFDProtocolAddRootSTLVToBuf [10:25:41]FM_MakeSignedData [10:25:41]FM_MakeSignedData [10:25:41]SAM_PROTO_SignData [10:25:41]wFMCommunicate request_size=4 [10:25:41]MH_SAM_APDU [10:25:41]CAPDU: 80 0D 01 02 [10:25:41]Write to MH i2c: E2 08 00 50 99 80 0D 01 02 00 00 00 00 62 [10:25:41]Write i2c OK [10:25:41]MH_I2C_Read... [10:25:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:25:41]Read from MH i2c: E2 [10:25:41]MH_I2C_Read... [10:25:41]Read from MH i2c: E2 03 00 [10:25:41]MH_I2C_Read... [10:25:41]Read from MH i2c: E2 03 00 50 99 00 90 00 5D [10:25:41]RAPDU: 90 00 [10:25:41]wFMCommunicate OK [10:25:41]wFMCommunicate request_size=255 [10:25:41]MH_SAM_APDU [10:25: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 74 27 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 F8 05 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 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 D2 1B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F8 05 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 30 B2 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 C4 94 01 00 35 04 06 00 5C [10:25:41]Write to MH i2c: E2 02 01 51 99 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 27 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 F8 05 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 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 D2 1B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F8 05 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 30 B2 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 C4 94 01 00 35 04 06 00 5C 00 00 53 [10:25:41]Write i2c OK [10:25:41]MH_I2C_Read... [10:25:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:25:41]Read from MH i2c: E2 [10:25:41]MH_I2C_Read... [10:25:41]Read from MH i2c: E2 03 00 [10:25:41]MH_I2C_Read... [10:25:41]Read from MH i2c: E2 03 00 51 99 00 90 00 5E [10:25:41]RAPDU: 90 00 [10:25:41]wFMCommunicate OK [10:25:41]wFMCommunicate request_size=10 [10:25:41]MH_SAM_APDU [10:25:41]CAPDU: 80 0D 02 02 05 19 FE 26 F7 15 [10:25:41]Write to MH i2c: E2 0D 00 52 99 80 0D 02 02 05 00 19 FE 26 F7 15 00 00 B8 [10:25:41]Write i2c OK [10:25:41]MH_I2C_Read... [10:25:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:25:42]Read from MH i2c: E2 [10:25:42]MH_I2C_Read... [10:25:42]Read from MH i2c: E2 03 00 [10:25:42]MH_I2C_Read... [10:25:42]Read from MH i2c: E2 03 00 52 99 00 90 00 5F [10:25:42]RAPDU: 90 00 [10:25:42]wFMCommunicate OK [10:25:42]wFMCommunicate request_size=4 [10:25:42]MH_SAM_APDU [10:25:42]CAPDU: 80 0D 03 02 [10:25:42]Write to MH i2c: E2 08 00 53 99 80 0D 03 02 00 00 00 00 67 [10:25:42]Write i2c OK [10:25:42]MH_I2C_Read... [10:25:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:25:42]Read from MH i2c: E2 [10:25:42]MH_I2C_Read... [10:25:42]Read from MH i2c: E2 0B 00 [10:25:42]MH_I2C_Read... [10:25:42]Read from MH i2c: E2 0B 00 53 99 00 2E 2B C6 AE 8F E2 E6 98 90 00 24 [10:25:42]RAPDU: 2E 2B C6 AE 8F E2 E6 98 90 00 [10:25:42]wFMCommunicate OK [10:25:42]SAM_PROTO_SignData done [10:25:42]FM_MakeSignedData done [10:25:42]CreateOFDProtocolMessage [10:25:42]wFMCommunicate request_size=4 [10:25:42]MH_SAM_APDU [10:25:42]CAPDU: 80 11 00 00 [10:25:42]Write to MH i2c: E2 08 00 54 99 80 11 00 00 00 00 00 00 67 [10:25:42]Write i2c OK [10:25:42]MH_I2C_Read... [10:25:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:25:42]Read from MH i2c: E2 [10:25:42]MH_I2C_Read... [10:25:42]Read from MH i2c: E2 17 00 [10:25:42]MH_I2C_Read... [10:25:42]Read from MH i2c: E2 17 00 54 99 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 BA [10:25:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [10:25:42]wFMCommunicate OK [10:25:42]CreateOFDProtocolMessage done [10:25:42]OFDSenderStorePacket 103620 [10:25:42]StoreOFDPacket docnum=103620 [10:25:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 35 03 07 01 E2 19 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 27 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 F8 05 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 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 D2 1B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F8 05 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 30 B2 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 C4 94 01 00 35 04 06 00 5C 19 FE 26 F7 15 2E 2B C6 AE 8F E2 E6 98 [10:25:42]CheckFolder [10:25:42]dirname=/storage/ofd_packets [10:25:42]CheckFolder done [10:25:42]ProducePacketName [10:25:42]name=ofd_packets/00103620 [10:25:42]NVStorageSaveData ofd_packets/00103620 [10:25:42]File name is /storage/ofd_packets/00103620 [10:25:42]Write 301 bytes [10:25:42]NVStorageSaveData done [10:25:42]OFDSenderStorePacket done [10:25:42]KKMCreateOFDPacket done [10:25:42]NVStorageSaveData kkm_last_timestamp [10:25:42]File name is /storage/kkm_last_timestamp [10:25:42]Write 4 bytes [10:25:42]NVStorageSaveData done [10:25:42]ExternCall_PrintAddStr [10:25:42]wPrintStart [10:25:42]Write to MH i2c: 01 00 00 55 99 EE [10:25:42]Write i2c OK [10:25:42]MH_I2C_Read... [10:25:42]Read from MH i2c: 01 [10:25:42]MH_I2C_Read... [10:25:42]Read from MH i2c: 01 07 00 [10:25:42]MH_I2C_Read... [10:25:42]Read from MH i2c: 01 07 00 55 99 00 00 00 00 00 FF 0F 03 [10:25:42]RasterBufferAndPrint [10:25:42]line Счет N : (1)672857 [10:25:42]line ИНН: 02508201610067 [10:25:42]line Контрольно-Кассовый Чек [10:25:42]line ПРОДАЖА [10:25:42]line ТРК (МРК, ГНК) : 32 [10:25:42]line Товар: 2710124130 [10:25:42]line Аи-92-К-5 [10:25:42]line 10.100 * 66.40 [10:25:42]line = 670.64 [10:25:42]line НДС 12% НСП 1% [10:25:42]line > о реализуемом товаре [10:25:42]line ИТОГО: 670.64 [10:25:42]line НСП 1% : 5.93 [10:25:42]line НДС 12% : 71.22 [10:25:42]line Наличными: 0.00 [10:25:42]line Безнал.: 670.64 [10:25:42]line Место: АЗС № 120 "Партнер Нефть" [10:25:42]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [10:25:42]line СНО: Общий режим [10:25:42]line Чек 50 19.06.2024 10:25 [10:25:42]line Смена: 353 ФФД: 1.0 [10:25:42]line ЗНМ: 0300000164 [10:25:42]line РНМ: 0000000000092785 [10:25:42]line Версия ККМ: 001 [10:25:42]line Платежная система: O! деньги [10:25:42]line ФМ: 0000000000875093 [10:25:42]line ФД: 103620 [10:25:42]line ФПД: 101266707904277 [10:25:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T102552&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103620&fm=101266707904277&tin=02508201610067®Number=0000000000092785&sum=67064 [10:25:42]written 0, free lines is 4095 [10:25:42]OFD Sender: Processing packet 103620 [packets to send 17, broken 16] [10:25:42]ProducePacketName [10:25:42]name=ofd_packets/00103620 [10:25:42]OFD Sender: To server: pG, [10:25:42]CommunicateWithHost lk.salyk.kg:30040 [10:25:42]ConnectInit lk.salyk.kg [10:25:42]Connected sock=10 [10:25: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 39 33 0F 01 00 00 35 03 07 01 E2 19 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 27 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 F8 05 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 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 D2 1B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F8 05 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 30 B2 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 C4 94 01 00 35 04 06 00 5C 19 FE 26 F7 15 2E 2B C6 AE 8F E2 E6 98 [10:25: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 39 33 4F 00 00 00 64 0E 47 00 52 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 39 33 10 04 04 00 C4 94 01 00 F4 03 04 00 B9 58 72 66 B6 04 01 00 00 09 6E A1 36 93 B3 17 23 [10:25:42]CommunicateWithHost err = 0 [10:25:42]CheckOFDResponse [10:25:42]1017 (14) - 77093643461234 [10:25:42]1041 (16) - 0000000000875093 [10:25:42]1040 (4) - 103620 [10:25:42]1012 (4) - 19.06.2024 04:04 [10:25:42]1206 (1) - 0 [10:25:42]OFD Sender: Remove packet 103620 [10:25:42]ProducePacketName [10:25:42]name=ofd_packets/00103620 [10:25:42]NVStorageDeleteData [10:25:42]Write to MH i2c: 01 00 00 7F 99 18 [10:25:42]Write i2c OK [10:25:42]MH_I2C_Read... [10:25:42]Read from MH i2c: 01 [10:25:42]MH_I2C_Read... [10:25:42]Read from MH i2c: 01 07 00 [10:25:42]MH_I2C_Read... [10:25:42]Read from MH i2c: 01 07 00 7F 99 00 00 00 00 00 ED 0C 18 [10:25:42]RasterBufferAndPrint [10:25:42]line [10:25:42]line [10:25:42]line [10:25:42]line [10:25:42]line [10:25:42]written 0, free lines is 3318 [10:25:42]MH_Cut [10:25:42]Write to MH i2c: D1 01 00 86 99 01 F1 [10:25:42]Write i2c OK [10:25:42]MH_I2C_Read... [10:25:42]Read from MH i2c: D1 [10:25:42]MH_I2C_Read... [10:25:42]Read from MH i2c: D1 01 00 [10:25:42]MH_I2C_Read... [10:25:42]Read from MH i2c: D1 01 00 86 99 00 F0 [10:25:42]Write to MH i2c: 01 00 00 87 99 20 [10:25:42]Write i2c OK [10:25:42]MH_I2C_Read... [10:25:43]OFD Sender: No OFD packet to send [10:25:43]*** Cut start [10:25:43]*** Partial cut [10:25:43]*** CUTSNS_PIN = 1 [10:25:43]*** CUTSNS_PIN = 0 [10:25:43]*** Brake cut motor [10:25:44]Read from MH i2c: 01 [10:25:44]MH_I2C_Read... [10:25:44]*** Stop cut motor [10:25:44]*** Cut end [10:25:44]Read from MH i2c: 01 07 00 [10:25:44]MH_I2C_Read... [10:25:44]Read from MH i2c: 01 07 00 87 99 00 00 00 00 00 FF 0F 35 [10:25:44]process_action close_receipt done [10:25:44]requested_data is exist [10:25:44]produce_requested_data [10:25:44]requested_item fm.sn is exist - process it [10:25:44]wFMCommunicate request_size=4 [10:25:44]MH_SAM_APDU [10:25:44]CAPDU: 80 11 00 00 [10:25:44]Write to MH i2c: E2 08 00 88 99 80 11 00 00 00 00 00 00 9B [10:25:44]Write i2c OK [10:25:44]MH_I2C_Read... [10:25:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:25:44]Read from MH i2c: E2 [10:25:44]MH_I2C_Read... [10:25:44]Read from MH i2c: E2 17 00 [10:25:44]MH_I2C_Read... [10:25:44]Read from MH i2c: E2 17 00 88 99 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 EE [10:25:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [10:25:44]wFMCommunicate OK [10:25:44]requested_item fd.num is exist - process it [10:25:44]SAM_PROTO_GetFieldsCounters [10:25:44]wFMCommunicate request_size=4 [10:25:44]MH_SAM_APDU [10:25:44]CAPDU: 80 13 00 00 [10:25:44]Write to MH i2c: E2 08 00 89 99 80 13 00 00 00 00 00 00 9E [10:25:44]Write i2c OK [10:25:44]MH_I2C_Read... [10:25:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:25:44]Read from MH i2c: E2 [10:25:44]MH_I2C_Read... [10:25:44]Read from MH i2c: E2 62 00 [10:25:44]MH_I2C_Read... [10:25:44]Read from MH i2c: E2 62 00 89 99 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 C4 94 01 00 0E 04 04 00 61 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 16 [10:25: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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 C4 94 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 32 00 00 00 5E 04 04 00 32 00 00 00 57 04 04 00 33 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:25:44]wFMCommunicate OK [10:25:44]SAM_PROTO_GetFieldsCounters done [10:25:44]requested_item shift.num is exist - process it [10:25:44]requested_item shift.opened is exist - process it [10:25:44]req_shift_opened [10:25:44]FM_GetShiftState [10:25:44]SAM_PROTO_GetShiftState [10:25:44]wFMCommunicate request_size=4 [10:25:44]MH_SAM_APDU [10:25:44]CAPDU: 80 13 01 00 [10:25:44]Write to MH i2c: E2 08 00 8A 99 80 13 01 00 00 00 00 00 A0 [10:25:44]Write i2c OK [10:25:44]MH_I2C_Read... [10:25:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:25:44]Read from MH i2c: E2 [10:25:44]MH_I2C_Read... [10:25:44]Read from MH i2c: E2 0E 00 [10:25:44]MH_I2C_Read... [10:25:44]Read from MH i2c: E2 0E 00 8A 99 00 09 00 01 04 26 72 66 00 00 00 00 90 00 AE [10:25:44]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [10:25:44]wFMCommunicate OK [10:25:44]SAM_PROTO_GetShiftState done [10:25:44]FM_GetShiftState done [10:25:44]req_shift_opened done [10:25:44]requested_item shift.open_date is exist - process it [10:25:44]req_shift_open_date [10:25:44]req_shift_open_date done [10:25:44]produce_requested_data done [10:25:44]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103620,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [10:25:44]process_action_free close_receipt [10:25:44]json_value_free [10:25:44]json_value_free done [10:25:44]process_json_proto returns [10:25:44]Send response to host [10:25:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103620,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [10:25:44]free response buf [10:25:44]execute_script done [10:25:44]execute_script returns [10:25:44]free content buf [10:25:44]Sock 9.Close socket [10:25:44]Sock 9.Thread stoped [10:25:48]OFD Sender: No OFD packet to send [10:25:53]OFD Sender: No OFD packet to send [10:25:58]OFD Sender: No OFD packet to send [10:26:03]OFD Sender: No OFD packet to send [10:26:08]OFD Sender: No OFD packet to send [10:26:13]OFD Sender: No OFD packet to send [10:26:18]OFD Sender: No OFD packet to send [10:26:23]OFD Sender: No OFD packet to send [10:26:28]OFD Sender: No OFD packet to send [10:26:33]OFD Sender: No OFD packet to send [10:26:38]OFD Sender: No OFD packet to send [10:26:43]OFD Sender: No OFD packet to send [10:26:48]OFD Sender: No OFD packet to send [10:26:53]OFD Sender: No OFD packet to send [10:26:58]OFD Sender: No OFD packet to send [10:27:03]OFD Sender: No OFD packet to send [10:27:08]OFD Sender: No OFD packet to send [10:27:13]OFD Sender: No OFD packet to send [10:27:18]OFD Sender: No OFD packet to send [10:27:23]OFD Sender: No OFD packet to send [10:27:28]OFD Sender: No OFD packet to send [10:27:33]OFD Sender: No OFD packet to send [10:27:38]OFD Sender: No OFD packet to send [10:27:43]OFD Sender: No OFD packet to send [10:27:48]OFD Sender: No OFD packet to send [10:27:49]accept exits with 7 [10:27:49]New connection [10:27:49]New thread 3067084132 created [10:27:49]Thread 3067227492 joined [10:27:49]Waiting for new connection... [10:27:49] Sock 7.Parse request [10:27:49]Sock 7.Check first char [10:27:49]Sock 7.First char is OK [10:27:49]request: POST /json_proto HTTP/1.0 [10:27:49]Method: POST [10:27:49]URL: /json_proto [10:27:49]Method is POST - this is cgi request [10:27:49]url: /json_proto [10:27:49]query_string will be loaded in cgi processing [10:27:49]execute_cgi json_proto POST (null) [10:27:49]execute_cgi path=json_proto method=POST [10:27:49]POST find Content-Length [10:27:49]Host: 172.17.38.133:8080 [10:27:49]Content-Length: 687 [10:27:49]Content-Type: application/json [10:27:49] [10:27:49]POST finish read [10:27:49]Found Content-Length = 687 [10:27:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672856", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 68.590, "sum" : 5000.21, "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" ] } } [10:27:49]execute_script... [10:27: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)672856", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 68.590, "sum" : 5000.21, "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" ] } } [10:27:49]POST & json_proto [10:27:49]process_json_proto [10:27:49]json parsed OK: [10:27:49]protocol is kg_v1.0 [10:27:49]action value=close_receipt [10:27:49]process_action close_receipt [10:27:49]cmd_close_receipt [10:27:49]MH_GetDate [10:27:49]Write to MH i2c: F0 00 00 8B 99 13 [10:27:49]Write i2c OK [10:27:49]MH_I2C_Read... [10:27:49]Read from MH i2c: F0 [10:27:49]MH_I2C_Read... [10:27:49]Read from MH i2c: F0 09 00 [10:27:49]MH_I2C_Read... [10:27:49]Read from MH i2c: F0 09 00 8B 99 00 B1 B2 72 66 BD 8F 7C 64 83 [10:27:49]GetLastDocTimeStamp 1718792752 [10:27:49]current date 1718792881 [10:27:49]FM_GetShiftState [10:27:49]SAM_PROTO_GetShiftState [10:27:49]wFMCommunicate request_size=4 [10:27:49]MH_SAM_APDU [10:27:49]CAPDU: 80 13 01 00 [10:27:49]Write to MH i2c: E2 08 00 8C 99 80 13 01 00 00 00 00 00 A2 [10:27:49]Write i2c OK [10:27:49]MH_I2C_Read... [10:27:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:27:49]Read from MH i2c: E2 [10:27:49]MH_I2C_Read... [10:27:49]Read from MH i2c: E2 0E 00 [10:27:49]MH_I2C_Read... [10:27:49]Read from MH i2c: E2 0E 00 8C 99 00 09 00 01 04 26 72 66 00 00 00 00 90 00 B0 [10:27:49]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [10:27:49]wFMCommunicate OK [10:27:49]SAM_PROTO_GetShiftState done [10:27:49]FM_GetShiftState done [10:27:49]opened in 1718756868 [10:27:49]opened+sec_in_day 1718843268 [10:27:49]quantity*price = 500021 [10:27:49]sum+1 = 500022 [10:27:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.21 ИТОГО: 5000.00 Внесено: 5000.00 СДАЧА: 0.00 НСП 1% : 44.25 НДС 12% : 531.00 Наличными: 5000.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 51 19.06.2024 10:28 Смена: 353 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103621 ФПД: 162573924686955 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T102801&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103621&fm=162573924686955&tin=02508201610067®Number=0000000000092785&sum=500000 [10:27:50]StoreToDocumentArchive [10:27:50]shift 353 fd 103621 [10:27:50]save to /storage/0353/doc_00103621 [10:27:50]save last doc name /storage/0353/doc_00103621 to /storage/kkm_last_doc_name [10:27:50]save OK [10:27:50]Clear old archive folders... [10:27:50]ProcessDocumentItem done err = 0, tmpTLVsize=252 [10:27:50]tlvbuf is 01593AE0 [10:27:50]SAM_PROTO_ClearQueue [10:27:50]wFMCommunicate request_size=4 [10:27:50]MH_SAM_APDU [10:27:50]CAPDU: 80 09 00 00 [10:27:50]Write to MH i2c: E2 08 00 99 99 80 09 00 00 00 00 00 00 A4 [10:27:50]Write i2c OK [10:27:50]MH_I2C_Read... [10:27:50]Read from MH i2c: E2 [10:27:50]MH_I2C_Read... [10:27:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:27:50]Read from MH i2c: E2 03 00 [10:27:50]MH_I2C_Read... [10:27:50]Read from MH i2c: E2 03 00 99 99 00 90 00 A6 [10:27:50]RAPDU: 90 00 [10:27:50]wFMCommunicate OK [10:27:50]SAM_PROTO_ClearQueue done [10:27:50]KKMCreateOFDPacket [10:27:50]OFDProtocolAddRootSTLVToBuf [10:27:50]FM_MakeSignedData [10:27:50]FM_MakeSignedData [10:27:50]SAM_PROTO_SignData [10:27:50]wFMCommunicate request_size=4 [10:27:50]MH_SAM_APDU [10:27:50]CAPDU: 80 0D 01 02 [10:27:50]Write to MH i2c: E2 08 00 9A 99 80 0D 01 02 00 00 00 00 AC [10:27:50]Write i2c OK [10:27:50]MH_I2C_Read... [10:27:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:27:50]Read from MH i2c: E2 [10:27:50]MH_I2C_Read... [10:27:50]Read from MH i2c: E2 03 00 [10:27:50]MH_I2C_Read... [10:27:50]Read from MH i2c: E2 03 00 9A 99 00 90 00 A7 [10:27:50]RAPDU: 90 00 [10:27:50]wFMCommunicate OK [10:27:50]wFMCommunicate request_size=255 [10:27:50]MH_SAM_APDU [10:27:50]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 EE 0B 01 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 35 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C CF 00 00 00 00 07 04 06 00 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 33 00 00 00 F4 03 04 00 B1 B2 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 C5 94 01 00 35 04 06 00 [10:27:50]Write to MH i2c: E2 02 01 9B 99 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 EE 0B 01 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 35 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C CF 00 00 00 00 07 04 06 00 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 33 00 00 00 F4 03 04 00 B1 B2 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 C5 94 01 00 35 04 06 00 00 00 B3 [10:27:50]Write i2c OK [10:27:50]MH_I2C_Read... [10:27:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:27:50]Read from MH i2c: E2 [10:27:50]MH_I2C_Read... [10:27:50]Read from MH i2c: E2 03 00 [10:27:50]MH_I2C_Read... [10:27:50]Read from MH i2c: E2 03 00 9B 99 00 90 00 A8 [10:27:50]RAPDU: 90 00 [10:27:50]wFMCommunicate OK [10:27:50]wFMCommunicate request_size=11 [10:27:50]MH_SAM_APDU [10:27:50]CAPDU: 80 0D 02 02 06 93 DC 31 07 DC 6B [10:27:50]Write to MH i2c: E2 0E 00 9C 99 80 0D 02 02 06 00 93 DC 31 07 DC 6B 00 00 A9 [10:27:50]Write i2c OK [10:27:50]MH_I2C_Read... [10:27:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:27:50]Read from MH i2c: E2 [10:27:50]MH_I2C_Read... [10:27:50]Read from MH i2c: E2 03 00 [10:27:50]MH_I2C_Read... [10:27:50]Read from MH i2c: E2 03 00 9C 99 00 90 00 A9 [10:27:50]RAPDU: 90 00 [10:27:50]wFMCommunicate OK [10:27:50]wFMCommunicate request_size=4 [10:27:50]MH_SAM_APDU [10:27:50]CAPDU: 80 0D 03 02 [10:27:50]Write to MH i2c: E2 08 00 9D 99 80 0D 03 02 00 00 00 00 B1 [10:27:50]Write i2c OK [10:27:50]MH_I2C_Read... [10:27:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:27:51]Read from MH i2c: E2 [10:27:51]MH_I2C_Read... [10:27:51]Read from MH i2c: E2 0B 00 [10:27:51]MH_I2C_Read... [10:27:51]Read from MH i2c: E2 0B 00 9D 99 00 F3 E4 49 D6 45 50 61 8A 90 00 28 [10:27:51]RAPDU: F3 E4 49 D6 45 50 61 8A 90 00 [10:27:51]wFMCommunicate OK [10:27:51]SAM_PROTO_SignData done [10:27:51]FM_MakeSignedData done [10:27:51]CreateOFDProtocolMessage [10:27:51]wFMCommunicate request_size=4 [10:27:51]MH_SAM_APDU [10:27:51]CAPDU: 80 11 00 00 [10:27:51]Write to MH i2c: E2 08 00 9E 99 80 11 00 00 00 00 00 00 B1 [10:27:51]Write i2c OK [10:27:51]MH_I2C_Read... [10:27:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:27:51]Read from MH i2c: E2 [10:27:51]MH_I2C_Read... [10:27:51]Read from MH i2c: E2 17 00 [10:27:51]MH_I2C_Read... [10:27:51]Read from MH i2c: E2 17 00 9E 99 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 04 [10:27:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [10:27:51]wFMCommunicate OK [10:27:51]CreateOFDProtocolMessage done [10:27:51]OFDSenderStorePacket 103621 [10:27:51]StoreOFDPacket docnum=103621 [10:27:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 1C 39 08 01 9A CD 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 EE 0B 01 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 35 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C CF 00 00 00 00 07 04 06 00 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 33 00 00 00 F4 03 04 00 B1 B2 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 C5 94 01 00 35 04 06 00 93 DC 31 07 DC 6B F3 E4 49 D6 45 50 61 8A [10:27:51]CheckFolder [10:27:51]dirname=/storage/ofd_packets [10:27:51]CheckFolder done [10:27:51]ProducePacketName [10:27:51]name=ofd_packets/00103621 [10:27:51]NVStorageSaveData ofd_packets/00103621 [10:27:51]File name is /storage/ofd_packets/00103621 [10:27:51]Write 302 bytes [10:27:51]NVStorageSaveData done [10:27:51]OFDSenderStorePacket done [10:27:51]KKMCreateOFDPacket done [10:27:51]NVStorageSaveData kkm_last_timestamp [10:27:51]File name is /storage/kkm_last_timestamp [10:27:51]Write 4 bytes [10:27:51]NVStorageSaveData done [10:27:51]ExternCall_PrintAddStr [10:27:51]wPrintStart [10:27:51]Write to MH i2c: 01 00 00 9F 99 38 [10:27:51]Write i2c OK [10:27:51]MH_I2C_Read... [10:27:51]Read from MH i2c: 01 [10:27:51]MH_I2C_Read... [10:27:51]Read from MH i2c: 01 07 00 [10:27:51]MH_I2C_Read... [10:27:51]Read from MH i2c: 01 07 00 9F 99 00 00 00 00 00 FF 0F 4D [10:27:51]RasterBufferAndPrint [10:27:51]line Счет N : (1)672856 [10:27:51]line ИНН: 02508201610067 [10:27:51]line Контрольно-Кассовый Чек [10:27:51]line ПРОДАЖА [10:27:51]line ТРК (МРК, ГНК) : 11 [10:27:51]line Товар: 2710194210 [10:27:51]line ДТ(л)-К-5 [10:27:51]line 68.590 * 72.90 [10:27:51]line = 5000.21 [10:27:51]line НДС 12% НСП 1% [10:27:51]line > о реализуемом товаре [10:27:51]line ОКРУГЛЕНИЕ: -0.21 [10:27:51]line ИТОГО: 5000.00 [10:27:51]line Внесено: 5000.00 [10:27:51]line СДАЧА: 0.00 [10:27:51]line НСП 1% : 44.25 [10:27:51]line НДС 12% : 531.00 [10:27:51]line Наличными: 5000.00 [10:27:51]line Безнал.: 0.00 [10:27:51]line Место: АЗС № 120 "Партнер Нефть" [10:27:51]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [10:27:51]line СНО: Общий режим [10:27:51]line Чек 51 19.06.2024 10:28 [10:27:51]line Смена: 353 ФФД: 1.0 [10:27:51]line ЗНМ: 0300000164 [10:27:51]line РНМ: 0000000000092785 [10:27:51]line Версия ККМ: 001 [10:27:51]line ФМ: 0000000000875093 [10:27:51]line ФД: 103621 [10:27:51]line ФПД: 162573924686955 [10:27:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T102801&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103621&fm=162573924686955&tin=02508201610067®Number=0000000000092785&sum=500000 [10:27:51]OFD Sender: Processing packet 103621 [packets to send 17, broken 16] [10:27:51]ProducePacketName [10:27:51]name=ofd_packets/00103621 [10:27:51]OFD Sender: To server: pG, [10:27:51]CommunicateWithHost lk.salyk.kg:30040 [10:27:51]ConnectInit lk.salyk.kg [10:27:51]written 0, free lines is 4095 [10:27:51]Connected sock=10 [10:27: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 39 33 10 01 00 00 1C 39 08 01 9A CD 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 EE 0B 01 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 35 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C CF 00 00 00 00 07 04 06 00 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 33 00 00 00 F4 03 04 00 B1 B2 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 C5 94 01 00 35 04 06 00 93 DC 31 07 DC 6B F3 E4 49 D6 45 50 61 8A [10:27: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 39 33 4F 00 00 00 83 C7 47 00 79 EF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 C5 94 01 00 F4 03 04 00 3A 59 72 66 B6 04 01 00 00 25 1D 49 28 D9 06 23 6F [10:27:51]CommunicateWithHost err = 0 [10:27:51]CheckOFDResponse [10:27:51]1017 (14) - 77093643461234 [10:27:51]1041 (16) - 0000000000875093 [10:27:51]1040 (4) - 103621 [10:27:51]1012 (4) - 19.06.2024 04:06 [10:27:51]1206 (1) - 0 [10:27:51]OFD Sender: Remove packet 103621 [10:27:51]ProducePacketName [10:27:51]name=ofd_packets/00103621 [10:27:51]NVStorageDeleteData [10:27:51]Write to MH i2c: 01 00 00 CA 99 63 [10:27:51]Write i2c OK [10:27:51]MH_I2C_Read... [10:27:51]Read from MH i2c: 01 [10:27:51]MH_I2C_Read... [10:27:51]Read from MH i2c: 01 07 00 [10:27:51]MH_I2C_Read... [10:27:51]Read from MH i2c: 01 07 00 CA 99 00 00 00 00 00 DF 0C 55 [10:27:51]RasterBufferAndPrint [10:27:51]line [10:27:51]line [10:27:51]line [10:27:51]line [10:27:51]line [10:27:51]written 0, free lines is 3301 [10:27:51]MH_Cut [10:27:51]Write to MH i2c: D1 01 00 D1 99 01 3C [10:27:51]Write i2c OK [10:27:51]MH_I2C_Read... [10:27:51]Read from MH i2c: D1 [10:27:51]MH_I2C_Read... [10:27:51]Read from MH i2c: D1 01 00 [10:27:51]MH_I2C_Read... [10:27:51]Read from MH i2c: D1 01 00 D1 99 00 3B [10:27:51]Write to MH i2c: 01 00 00 D2 99 6B [10:27:51]Write i2c OK [10:27:51]MH_I2C_Read... [10:27:52]OFD Sender: No OFD packet to send [10:27:52]*** Cut start [10:27:52]*** Partial cut [10:27:52]*** CUTSNS_PIN = 1 [10:27:52]*** CUTSNS_PIN = 0 [10:27:52]*** Brake cut motor [10:27:53]Read from MH i2c: 01 [10:27:53]MH_I2C_Read... [10:27:53]*** Stop cut motor [10:27:53]*** Cut end [10:27:53]Read from MH i2c: 01 07 00 [10:27:53]MH_I2C_Read... [10:27:53]Read from MH i2c: 01 07 00 D2 99 00 00 00 00 00 FF 0F 80 [10:27:53]process_action close_receipt done [10:27:53]requested_data is exist [10:27:53]produce_requested_data [10:27:53]requested_item fm.sn is exist - process it [10:27:53]wFMCommunicate request_size=4 [10:27:53]MH_SAM_APDU [10:27:53]CAPDU: 80 11 00 00 [10:27:53]Write to MH i2c: E2 08 00 D3 99 80 11 00 00 00 00 00 00 E6 [10:27:53]Write i2c OK [10:27:53]MH_I2C_Read... [10:27:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:27:53]Read from MH i2c: E2 [10:27:53]MH_I2C_Read... [10:27:53]Read from MH i2c: E2 17 00 [10:27:53]MH_I2C_Read... [10:27:53]Read from MH i2c: E2 17 00 D3 99 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 39 [10:27:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [10:27:53]wFMCommunicate OK [10:27:53]requested_item fd.num is exist - process it [10:27:53]SAM_PROTO_GetFieldsCounters [10:27:53]wFMCommunicate request_size=4 [10:27:53]MH_SAM_APDU [10:27:53]CAPDU: 80 13 00 00 [10:27:53]Write to MH i2c: E2 08 00 D4 99 80 13 00 00 00 00 00 00 E9 [10:27:53]Write i2c OK [10:27:53]MH_I2C_Read... [10:27:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:27:53]Read from MH i2c: E2 [10:27:53]MH_I2C_Read... [10:27:53]Read from MH i2c: E2 62 00 [10:27:53]MH_I2C_Read... [10:27:53]Read from MH i2c: E2 62 00 D4 99 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 C5 94 01 00 0E 04 04 00 61 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 65 [10:27: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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 C5 94 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 33 00 00 00 5E 04 04 00 33 00 00 00 57 04 04 00 34 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:27:53]wFMCommunicate OK [10:27:53]SAM_PROTO_GetFieldsCounters done [10:27:53]requested_item shift.num is exist - process it [10:27:53]requested_item shift.opened is exist - process it [10:27:53]req_shift_opened [10:27:53]FM_GetShiftState [10:27:53]SAM_PROTO_GetShiftState [10:27:53]wFMCommunicate request_size=4 [10:27:53]MH_SAM_APDU [10:27:53]CAPDU: 80 13 01 00 [10:27:53]Write to MH i2c: E2 08 00 D5 99 80 13 01 00 00 00 00 00 EB [10:27:53]Write i2c OK [10:27:53]MH_I2C_Read... [10:27:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:27:53]Read from MH i2c: E2 [10:27:53]MH_I2C_Read... [10:27:53]Read from MH i2c: E2 0E 00 [10:27:53]MH_I2C_Read... [10:27:53]Read from MH i2c: E2 0E 00 D5 99 00 09 00 01 04 26 72 66 00 00 00 00 90 00 F9 [10:27:53]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [10:27:53]wFMCommunicate OK [10:27:53]SAM_PROTO_GetShiftState done [10:27:53]FM_GetShiftState done [10:27:53]req_shift_opened done [10:27:53]requested_item shift.open_date is exist - process it [10:27:53]req_shift_open_date [10:27:53]req_shift_open_date done [10:27:53]produce_requested_data done [10:27:53]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103621,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [10:27:53]process_action_free close_receipt [10:27:53]json_value_free [10:27:53]json_value_free done [10:27:53]process_json_proto returns [10:27:53]Send response to host [10:27:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103621,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [10:27:53]free response buf [10:27:53]execute_script done [10:27:53]execute_script returns [10:27:53]free content buf [10:27:53]Sock 7.Close socket [10:27:53]Sock 7.Thread stoped [10:27:57]OFD Sender: No OFD packet to send [10:28:02]OFD Sender: No OFD packet to send [10:28:07]OFD Sender: No OFD packet to send [10:28:12]OFD Sender: No OFD packet to send [10:28:17]OFD Sender: No OFD packet to send [10:28:22]OFD Sender: No OFD packet to send [10:28:23]accept exits with 9 [10:28:23]New connection [10:28:23]New thread 3067227492 created [10:28:23]Thread 3067084132 joined [10:28:23]Waiting for new connection... [10:28:23] Sock 9.Parse request [10:28:23]Sock 9.Check first char [10:28:23]Sock 9.First char is OK [10:28:23]request: POST /json_proto HTTP/1.0 [10:28:23]Method: POST [10:28:23]URL: /json_proto [10:28:23]Method is POST - this is cgi request [10:28:23]url: /json_proto [10:28:23]query_string will be loaded in cgi processing [10:28:23]execute_cgi json_proto POST (null) [10:28:23]execute_cgi path=json_proto method=POST [10:28:23]POST find Content-Length [10:28:23]Host: 172.17.38.133:8080 [10:28:23]Content-Length: 1207 [10:28:23]Content-Type: application/json [10:28:23] [10:28:23]POST finish read [10:28:23]Found Content-Length = 1207 [10:28:23]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 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. \u000A\u0421\u0447\u0435\u0442 N : (1)672858\u000A19.06.2024 10:05\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 42\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 40.000 x 66.40\u000A\u0418\u0422\u041E\u0413: 2656.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\u000A65695\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:28:23]execute_script... [10:28:23]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 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. \u000A\u0421\u0447\u0435\u0442 N : (1)672858\u000A19.06.2024 10:05\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 42\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 40.000 x 66.40\u000A\u0418\u0422\u041E\u0413: 2656.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\u000A65695\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:28:23]POST & json_proto [10:28:23]process_json_proto [10:28:23]json parsed OK: [10:28:23]protocol is kg_v1.0 [10:28:23]action value=print_text [10:28:23]process_action print_text [10:28:23]cmd_print_text [10:28:23]ExternCall_PrintAddStr [10:28:23]wPrintStart [10:28:23]Write to MH i2c: 01 00 00 D6 99 6F [10:28:23]Write i2c OK [10:28:23]MH_I2C_Read... [10:28:23]Read from MH i2c: 01 [10:28:23]MH_I2C_Read... [10:28:23]Read from MH i2c: 01 07 00 [10:28:23]MH_I2C_Read... [10:28:23]Read from MH i2c: 01 07 00 D6 99 00 00 00 00 00 FF 0F 84 [10:28:23]RasterBufferAndPrint [10:28:23]line *****ТОВАРНЫЙ ЧЕК***** [10:28:23]line АЗС 120 [10:28:23]line Партнер нефть [10:28:23]line 02508201610067 [10:28:23]line Кассир : Байбугуева Г. [10:28:23]line Счет N : (1)672858 [10:28:23]line 19.06.2024 10:05 [10:28:23]line ПРОДАЖА [10:28:23]line ТРК (МРК, ГНК): 42 [10:28:23]line Вид ГСМ : 2710124130 [10:28:23]line Аи-92-К-5 [10:28:23]line 40.000 x 66.40 [10:28:23]line ИТОГ: 2656.00 [10:28:23]line Тип оплаты: Талоны: Топливная Карта [10:28:23]line 65695 [10:28:23]line ______________________ [10:28:23]line (подпись) [10:28:23]written 0, free lines is 4095 [10:28:23]Write to MH i2c: 01 00 00 EA 99 83 [10:28:23]Write i2c OK [10:28:23]MH_I2C_Read... [10:28:23]Read from MH i2c: 01 [10:28:23]MH_I2C_Read... [10:28:23]Read from MH i2c: 01 07 00 [10:28:23]MH_I2C_Read... [10:28:23]Read from MH i2c: 01 07 00 EA 99 00 00 00 00 00 12 0E AA [10:28:23]RasterBufferAndPrint [10:28:23]line [10:28:23]line [10:28:23]line [10:28:23]line [10:28:23]line [10:28:23]written 0, free lines is 3604 [10:28:23]MH_Cut [10:28:23]Write to MH i2c: D1 01 00 F1 99 01 5C [10:28:23]Write i2c OK [10:28:23]MH_I2C_Read... [10:28:23]Read from MH i2c: D1 [10:28:23]MH_I2C_Read... [10:28:23]Read from MH i2c: D1 01 00 [10:28:23]MH_I2C_Read... [10:28:23]Read from MH i2c: D1 01 00 F1 99 00 5B [10:28:23]Write to MH i2c: 01 00 00 F2 99 8B [10:28:23]Write i2c OK [10:28:23]MH_I2C_Read... [10:28:24]*** Cut start [10:28:24]*** Partial cut [10:28:24]*** CUTSNS_PIN = 1 [10:28:24]*** CUTSNS_PIN = 0 [10:28:24]*** Brake cut motor [10:28:24]Read from MH i2c: 01 [10:28:24]MH_I2C_Read... [10:28:24]Read from MH i2c: 01 07 00 [10:28:24]MH_I2C_Read... [10:28:24]*** Stop cut motor [10:28:24]*** Cut end [10:28:24]Read from MH i2c: 01 07 00 F2 99 00 00 00 00 00 FF 0F A0 [10:28:24]process_action print_text done [10:28:24]requested_data is exist [10:28:24]produce_requested_data [10:28:24]requested_item fm.sn is exist - process it [10:28:24]wFMCommunicate request_size=4 [10:28:24]MH_SAM_APDU [10:28:24]CAPDU: 80 11 00 00 [10:28:24]Write to MH i2c: E2 08 00 F3 99 80 11 00 00 00 00 00 00 06 [10:28:24]Write i2c OK [10:28:24]MH_I2C_Read... [10:28:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:28:24]Read from MH i2c: E2 [10:28:24]MH_I2C_Read... [10:28:24]Read from MH i2c: E2 17 00 [10:28:24]MH_I2C_Read... [10:28:24]Read from MH i2c: E2 17 00 F3 99 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 59 [10:28:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [10:28:24]wFMCommunicate OK [10:28:24]requested_item fd.num is exist - process it [10:28:24]SAM_PROTO_GetFieldsCounters [10:28:24]wFMCommunicate request_size=4 [10:28:24]MH_SAM_APDU [10:28:24]CAPDU: 80 13 00 00 [10:28:24]Write to MH i2c: E2 08 00 F4 99 80 13 00 00 00 00 00 00 09 [10:28:24]Write i2c OK [10:28:24]MH_I2C_Read... [10:28:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:28:24]Read from MH i2c: E2 [10:28:24]MH_I2C_Read... [10:28:24]Read from MH i2c: E2 62 00 [10:28:24]MH_I2C_Read... [10:28:24]Read from MH i2c: E2 62 00 F4 99 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 C5 94 01 00 0E 04 04 00 61 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 85 [10:28:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 C5 94 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 33 00 00 00 5E 04 04 00 33 00 00 00 57 04 04 00 34 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:28:24]wFMCommunicate OK [10:28:24]SAM_PROTO_GetFieldsCounters done [10:28:24]requested_item shift.num is exist - process it [10:28:24]requested_item shift.opened is exist - process it [10:28:24]req_shift_opened [10:28:24]FM_GetShiftState [10:28:24]SAM_PROTO_GetShiftState [10:28:24]wFMCommunicate request_size=4 [10:28:24]MH_SAM_APDU [10:28:24]CAPDU: 80 13 01 00 [10:28:24]Write to MH i2c: E2 08 00 F5 99 80 13 01 00 00 00 00 00 0B [10:28:24]Write i2c OK [10:28:24]MH_I2C_Read... [10:28:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:28:24]Read from MH i2c: E2 [10:28:24]MH_I2C_Read... [10:28:24]Read from MH i2c: E2 0E 00 [10:28:24]MH_I2C_Read... [10:28:24]Read from MH i2c: E2 0E 00 F5 99 00 09 00 01 04 26 72 66 00 00 00 00 90 00 19 [10:28:24]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [10:28:24]wFMCommunicate OK [10:28:24]SAM_PROTO_GetShiftState done [10:28:24]FM_GetShiftState done [10:28:24]req_shift_opened done [10:28:24]requested_item shift.open_date is exist - process it [10:28:24]req_shift_open_date [10:28:24]req_shift_open_date done [10:28:24]produce_requested_data done [10:28:24]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103621,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [10:28:24]process_action_free print_text [10:28:24]json_value_free [10:28:24]json_value_free done [10:28:24]process_json_proto returns [10:28:24]Send response to host [10:28:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103621,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [10:28:24]free response buf [10:28:24]execute_script done [10:28:24]execute_script returns [10:28:24]free content buf [10:28:24]Sock 9.Close socket [10:28:24]Sock 9.Thread stoped [10:28:27]OFD Sender: No OFD packet to send [10:28:32]OFD Sender: No OFD packet to send [10:28:37]OFD Sender: No OFD packet to send [10:28:42]OFD Sender: No OFD packet to send [10:28:47]OFD Sender: No OFD packet to send [10:28:52]OFD Sender: No OFD packet to send [10:28:57]OFD Sender: No OFD packet to send [10:29:02]OFD Sender: No OFD packet to send [10:29:07]OFD Sender: No OFD packet to send [10:29:12]OFD Sender: No OFD packet to send [10:29:17]OFD Sender: No OFD packet to send [10:29:22]OFD Sender: No OFD packet to send [10:29:27]OFD Sender: No OFD packet to send [10:29:32]OFD Sender: No OFD packet to send [10:29:37]OFD Sender: No OFD packet to send [10:29:42]OFD Sender: No OFD packet to send [10:29:47]OFD Sender: No OFD packet to send [10:29:52]OFD Sender: No OFD packet to send [10:29:56]accept exits with 7 [10:29:56]New connection [10:29:56]New thread 3067084132 created [10:29:56]Thread 3067227492 joined [10:29:56]Waiting for new connection... [10:29:56] Sock 7.Parse request [10:29:56]Sock 7.Check first char [10:29:56]Sock 7.First char is OK [10:29:56]request: POST /json_proto HTTP/1.0 [10:29:56]Method: POST [10:29:56]URL: /json_proto [10:29:56]Method is POST - this is cgi request [10:29:56]url: /json_proto [10:29:56]query_string will be loaded in cgi processing [10:29:56]execute_cgi json_proto POST (null) [10:29:56]execute_cgi path=json_proto method=POST [10:29:56]POST find Content-Length [10:29:56]Host: 172.17.38.133:8080 [10:29:56]Content-Length: 682 [10:29:56]Content-Type: application/json [10:29:56] [10:29:56]POST finish read [10:29:56]Found Content-Length = 682 [10:29:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672859", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 45.190, "sum" : 3000.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:29:56]execute_script... [10:29: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)672859", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 45.190, "sum" : 3000.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:29:56]POST & json_proto [10:29:56]process_json_proto [10:29:56]json parsed OK: [10:29:56]protocol is kg_v1.0 [10:29:56]action value=close_receipt [10:29:56]process_action close_receipt [10:29:56]cmd_close_receipt [10:29:56]MH_GetDate [10:29:56]Write to MH i2c: F0 00 00 F6 99 7E [10:29:56]Write i2c OK [10:29:56]MH_I2C_Read... [10:29:56]Read from MH i2c: F0 [10:29:56]MH_I2C_Read... [10:29:56]Read from MH i2c: F0 09 00 [10:29:56]MH_I2C_Read... [10:29:56]Read from MH i2c: F0 09 00 F6 99 00 30 B3 72 66 BD 8F 7C 64 6E [10:29:56]GetLastDocTimeStamp 1718792881 [10:29:56]current date 1718793008 [10:29:56]FM_GetShiftState [10:29:56]SAM_PROTO_GetShiftState [10:29:56]wFMCommunicate request_size=4 [10:29:56]MH_SAM_APDU [10:29:56]CAPDU: 80 13 01 00 [10:29:56]Write to MH i2c: E2 08 00 F7 99 80 13 01 00 00 00 00 00 0D [10:29:56]Write i2c OK [10:29:56]MH_I2C_Read... [10:29:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:29:56]Read from MH i2c: E2 [10:29:56]MH_I2C_Read... [10:29:56]Read from MH i2c: E2 0E 00 [10:29:56]MH_I2C_Read... [10:29:56]Read from MH i2c: E2 0E 00 F7 99 00 09 00 01 04 26 72 66 00 00 00 00 90 00 1B [10:29:56]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [10:29:56]wFMCommunicate OK [10:29:56]SAM_PROTO_GetShiftState done [10:29:56]FM_GetShiftState done [10:29:56]opened in 1718756868 [10:29:56]opened+sec_in_day 1718843268 [10:29:56]quantity*price = 300061 [10:29:56]sum+1 = 300063 [10:29:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.62 ИТОГО: 3000.00 Внесено: 3000.00 СДАЧА: 0.00 НСП 1% : 26.55 НДС 12% : 318.65 Наличными: 3000.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 52 19.06.2024 10:30 Смена: 353 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103622 ФПД: 78237876861540 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T103008&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103622&fm=78237876861540&tin=02508201610067®Number=0000000000092785&sum=300000 [10:29:57]StoreToDocumentArchive [10:29:57]shift 353 fd 103622 [10:29:57]save to /storage/0353/doc_00103622 [10:29:57]save last doc name /storage/0353/doc_00103622 to /storage/kkm_last_doc_name [10:29:57]save OK [10:29:57]Clear old archive folders... [10:29:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:29:57]tlvbuf is 014E7A30 [10:29:57]SAM_PROTO_ClearQueue [10:29:57]wFMCommunicate request_size=4 [10:29:57]MH_SAM_APDU [10:29:57]CAPDU: 80 09 00 00 [10:29:57]Write to MH i2c: E2 08 00 04 9A 80 09 00 00 00 00 00 00 10 [10:29:57]Write i2c OK [10:29:57]MH_I2C_Read... [10:29:57]Read from MH i2c: E2 [10:29:57]MH_I2C_Read... [10:29:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:29:57]Read from MH i2c: E2 03 00 [10:29:57]MH_I2C_Read... [10:29:57]Read from MH i2c: E2 03 00 04 9A 00 90 00 12 [10:29:57]RAPDU: 90 00 [10:29:57]wFMCommunicate OK [10:29:57]SAM_PROTO_ClearQueue done [10:29:57]KKMCreateOFDPacket [10:29:57]OFDProtocolAddRootSTLVToBuf [10:29:57]FM_MakeSignedData [10:29:57]FM_MakeSignedData [10:29:57]SAM_PROTO_SignData [10:29:57]wFMCommunicate request_size=4 [10:29:57]MH_SAM_APDU [10:29:57]CAPDU: 80 0D 01 02 [10:29:57]Write to MH i2c: E2 08 00 05 9A 80 0D 01 02 00 00 00 00 18 [10:29:57]Write i2c OK [10:29:57]MH_I2C_Read... [10:29:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:29:57]Read from MH i2c: E2 [10:29:57]MH_I2C_Read... [10:29:57]Read from MH i2c: E2 03 00 [10:29:57]MH_I2C_Read... [10:29:57]Read from MH i2c: E2 03 00 05 9A 00 90 00 13 [10:29:57]RAPDU: 90 00 [10:29:57]wFMCommunicate OK [10:29:57]wFMCommunicate request_size=255 [10:29:57]MH_SAM_APDU [10:29: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 B0 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 1E 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 30 B3 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 C6 94 01 00 35 04 06 00 47 [10:29:57]Write to MH i2c: E2 02 01 06 9A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 B0 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 1E 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 30 B3 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 C6 94 01 00 35 04 06 00 47 00 00 5C [10:29:57]Write i2c OK [10:29:57]MH_I2C_Read... [10:29:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:29:57]Read from MH i2c: E2 [10:29:57]MH_I2C_Read... [10:29:57]Read from MH i2c: E2 03 00 [10:29:57]MH_I2C_Read... [10:29:57]Read from MH i2c: E2 03 00 06 9A 00 90 00 14 [10:29:57]RAPDU: 90 00 [10:29:57]wFMCommunicate OK [10:29:57]wFMCommunicate request_size=10 [10:29:57]MH_SAM_APDU [10:29:57]CAPDU: 80 0D 02 02 05 28 2C DB BA 64 [10:29:57]Write to MH i2c: E2 0D 00 07 9A 80 0D 02 02 05 00 28 2C DB BA 64 00 00 72 [10:29:57]Write i2c OK [10:29:57]MH_I2C_Read... [10:29:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:29:57]Read from MH i2c: E2 [10:29:57]MH_I2C_Read... [10:29:57]Read from MH i2c: E2 03 00 [10:29:57]MH_I2C_Read... [10:29:57]Read from MH i2c: E2 03 00 07 9A 00 90 00 15 [10:29:57]RAPDU: 90 00 [10:29:57]wFMCommunicate OK [10:29:57]wFMCommunicate request_size=4 [10:29:57]MH_SAM_APDU [10:29:57]CAPDU: 80 0D 03 02 [10:29:57]Write to MH i2c: E2 08 00 08 9A 80 0D 03 02 00 00 00 00 1D [10:29:57]Write i2c OK [10:29:57]MH_I2C_Read... [10:29:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:29:58]Read from MH i2c: E2 [10:29:58]MH_I2C_Read... [10:29:58]Read from MH i2c: E2 0B 00 [10:29:58]MH_I2C_Read... [10:29:58]Read from MH i2c: E2 0B 00 08 9A 00 16 D7 06 4A 4A AA FC 67 90 00 B2 [10:29:58]RAPDU: 16 D7 06 4A 4A AA FC 67 90 00 [10:29:58]wFMCommunicate OK [10:29:58]SAM_PROTO_SignData done [10:29:58]FM_MakeSignedData done [10:29:58]CreateOFDProtocolMessage [10:29:58]wFMCommunicate request_size=4 [10:29:58]MH_SAM_APDU [10:29:58]CAPDU: 80 11 00 00 [10:29:58]Write to MH i2c: E2 08 00 09 9A 80 11 00 00 00 00 00 00 1D [10:29:58]Write i2c OK [10:29:58]MH_I2C_Read... [10:29:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:29:58]Read from MH i2c: E2 [10:29:58]MH_I2C_Read... [10:29:58]Read from MH i2c: E2 17 00 [10:29:58]MH_I2C_Read... [10:29:58]Read from MH i2c: E2 17 00 09 9A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 70 [10:29:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [10:29:58]wFMCommunicate OK [10:29:58]CreateOFDProtocolMessage done [10:29:58]OFDSenderStorePacket 103622 [10:29:58]StoreOFDPacket docnum=103622 [10:29:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 0F 3C 07 01 9D 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 86 B0 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 1E 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 30 B3 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 C6 94 01 00 35 04 06 00 47 28 2C DB BA 64 16 D7 06 4A 4A AA FC 67 [10:29:58]CheckFolder [10:29:58]dirname=/storage/ofd_packets [10:29:58]CheckFolder done [10:29:58]ProducePacketName [10:29:58]name=ofd_packets/00103622 [10:29:58]NVStorageSaveData ofd_packets/00103622 [10:29:58]File name is /storage/ofd_packets/00103622 [10:29:58]Write 301 bytes [10:29:58]NVStorageSaveData done [10:29:58]OFDSenderStorePacket done [10:29:58]KKMCreateOFDPacket done [10:29:58]NVStorageSaveData kkm_last_timestamp [10:29:58]File name is /storage/kkm_last_timestamp [10:29:58]Write 4 bytes [10:29:58]NVStorageSaveData done [10:29:58]ExternCall_PrintAddStr [10:29:58]wPrintStart [10:29:58]Write to MH i2c: 01 00 00 0A 9A A4 [10:29:58]Write i2c OK [10:29:58]MH_I2C_Read... [10:29:58]Read from MH i2c: 01 [10:29:58]MH_I2C_Read... [10:29:58]Read from MH i2c: 01 07 00 [10:29:58]MH_I2C_Read... [10:29:58]Read from MH i2c: 01 07 00 0A 9A 00 00 00 00 00 FF 0F B9 [10:29:58]RasterBufferAndPrint [10:29:58]line Счет N : (1)672859 [10:29:58]line ИНН: 02508201610067 [10:29:58]line Контрольно-Кассовый Чек [10:29:58]line ПРОДАЖА [10:29:58]line ТРК (МРК, ГНК) : 32 [10:29:58]line Товар: 2710124130 [10:29:58]line Аи-92-К-5 [10:29:58]line 45.190 * 66.40 [10:29:58]line = 3000.62 [10:29:58]line НДС 12% НСП 1% [10:29:58]line > о реализуемом товаре [10:29:58]line ОКРУГЛЕНИЕ: -0.62 [10:29:58]line ИТОГО: 3000.00 [10:29:58]line Внесено: 3000.00 [10:29:58]line СДАЧА: 0.00 [10:29:58]line НСП 1% : 26.55 [10:29:58]line НДС 12% : 318.65 [10:29:58]line Наличными: 3000.00 [10:29:58]line Безнал.: 0.00 [10:29:58]line Место: АЗС № 120 "Партнер Нефть" [10:29:58]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [10:29:58]line СНО: Общий режим [10:29:58]line Чек 52 19.06.2024 10:30 [10:29:58]line Смена: 353 ФФД: 1.0 [10:29:58]line ЗНМ: 0300000164 [10:29:58]line РНМ: 0000000000092785 [10:29:58]line Версия ККМ: 001 [10:29:58]line ФМ: 0000000000875093 [10:29:58]line ФД: 103622 [10:29:58]line ФПД: 78237876861540 [10:29:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T103008&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103622&fm=78237876861540&tin=02508201610067®Number=0000000000092785&sum=300000 [10:29:58]OFD Sender: Processing packet 103622 [packets to send 17, broken 16] [10:29:58]ProducePacketName [10:29:58]name=ofd_packets/00103622 [10:29:58]OFD Sender: To server: pG, [10:29:58]CommunicateWithHost lk.salyk.kg:30040 [10:29:58]ConnectInit lk.salyk.kg [10:29:58]written 0, free lines is 4095 [10:29:58]Connected sock=10 [10:29: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 39 33 0F 01 00 00 0F 3C 07 01 9D 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 86 B0 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 1E 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 30 B3 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 C6 94 01 00 35 04 06 00 47 28 2C DB BA 64 16 D7 06 4A 4A AA FC 67 [10:29: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 39 33 4F 00 00 00 3A 12 47 00 D8 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 39 33 10 04 04 00 C6 94 01 00 F4 03 04 00 B9 59 72 66 B6 04 01 00 00 84 A9 24 33 30 28 4C 64 [10:29:58]CommunicateWithHost err = 0 [10:29:58]CheckOFDResponse [10:29:58]1017 (14) - 77093643461234 [10:29:58]1041 (16) - 0000000000875093 [10:29:58]1040 (4) - 103622 [10:29:58]1012 (4) - 19.06.2024 04:08 [10:29:58]1206 (1) - 0 [10:29:58]OFD Sender: Remove packet 103622 [10:29:58]ProducePacketName [10:29:58]name=ofd_packets/00103622 [10:29:58]NVStorageDeleteData [10:29:58]Write to MH i2c: 01 00 00 35 9A CF [10:29:58]Write i2c OK [10:29:58]MH_I2C_Read... [10:29:58]Read from MH i2c: 01 [10:29:58]MH_I2C_Read... [10:29:58]Read from MH i2c: 01 07 00 [10:29:58]MH_I2C_Read... [10:29:58]Read from MH i2c: 01 07 00 35 9A 00 00 00 00 00 E4 0C C6 [10:29:58]RasterBufferAndPrint [10:29:58]line [10:29:58]line [10:29:58]line [10:29:58]line [10:29:58]line [10:29:58]written 0, free lines is 3306 [10:29:58]MH_Cut [10:29:58]Write to MH i2c: D1 01 00 3C 9A 01 A8 [10:29:58]Write i2c OK [10:29:58]MH_I2C_Read... [10:29:58]Read from MH i2c: D1 [10:29:58]MH_I2C_Read... [10:29:58]Read from MH i2c: D1 01 00 [10:29:58]MH_I2C_Read... [10:29:58]Read from MH i2c: D1 01 00 3C 9A 00 A7 [10:29:58]Write to MH i2c: 01 00 00 3D 9A D7 [10:29:58]Write i2c OK [10:29:58]MH_I2C_Read... [10:29:59]OFD Sender: No OFD packet to send [10:29:59]*** Cut start [10:29:59]*** Partial cut [10:29:59]*** CUTSNS_PIN = 1 [10:29:59]*** CUTSNS_PIN = 0 [10:29:59]*** Brake cut motor [10:30:00]Read from MH i2c: 01 [10:30:00]MH_I2C_Read... [10:30:00]*** Stop cut motor [10:30:00]*** Cut end [10:30:00]Read from MH i2c: 01 07 00 [10:30:00]MH_I2C_Read... [10:30:00]Read from MH i2c: 01 07 00 3D 9A 00 00 00 00 00 FF 0F EC [10:30:00]process_action close_receipt done [10:30:00]requested_data is exist [10:30:00]produce_requested_data [10:30:00]requested_item fm.sn is exist - process it [10:30:00]wFMCommunicate request_size=4 [10:30:00]MH_SAM_APDU [10:30:00]CAPDU: 80 11 00 00 [10:30:00]Write to MH i2c: E2 08 00 3E 9A 80 11 00 00 00 00 00 00 52 [10:30:00]Write i2c OK [10:30:00]MH_I2C_Read... [10:30:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:30:00]Read from MH i2c: E2 [10:30:00]MH_I2C_Read... [10:30:00]Read from MH i2c: E2 17 00 [10:30:00]MH_I2C_Read... [10:30:00]Read from MH i2c: E2 17 00 3E 9A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 A5 [10:30:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [10:30:00]wFMCommunicate OK [10:30:00]requested_item fd.num is exist - process it [10:30:00]SAM_PROTO_GetFieldsCounters [10:30:00]wFMCommunicate request_size=4 [10:30:00]MH_SAM_APDU [10:30:00]CAPDU: 80 13 00 00 [10:30:00]Write to MH i2c: E2 08 00 3F 9A 80 13 00 00 00 00 00 00 55 [10:30:00]Write i2c OK [10:30:00]MH_I2C_Read... [10:30:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:30:00]Read from MH i2c: E2 [10:30:00]MH_I2C_Read... [10:30:00]Read from MH i2c: E2 62 00 [10:30:00]MH_I2C_Read... [10:30:00]Read from MH i2c: E2 62 00 3F 9A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 C6 94 01 00 0E 04 04 00 61 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 D5 [10:30: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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 C6 94 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 34 00 00 00 5E 04 04 00 34 00 00 00 57 04 04 00 35 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:30:00]wFMCommunicate OK [10:30:00]SAM_PROTO_GetFieldsCounters done [10:30:00]requested_item shift.num is exist - process it [10:30:00]requested_item shift.opened is exist - process it [10:30:00]req_shift_opened [10:30:00]FM_GetShiftState [10:30:00]SAM_PROTO_GetShiftState [10:30:00]wFMCommunicate request_size=4 [10:30:00]MH_SAM_APDU [10:30:00]CAPDU: 80 13 01 00 [10:30:00]Write to MH i2c: E2 08 00 40 9A 80 13 01 00 00 00 00 00 57 [10:30:00]Write i2c OK [10:30:00]MH_I2C_Read... [10:30:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:30:00]Read from MH i2c: E2 [10:30:00]MH_I2C_Read... [10:30:00]Read from MH i2c: E2 0E 00 [10:30:00]MH_I2C_Read... [10:30:00]Read from MH i2c: E2 0E 00 40 9A 00 09 00 01 04 26 72 66 00 00 00 00 90 00 65 [10:30:00]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [10:30:00]wFMCommunicate OK [10:30:00]SAM_PROTO_GetShiftState done [10:30:00]FM_GetShiftState done [10:30:00]req_shift_opened done [10:30:00]requested_item shift.open_date is exist - process it [10:30:00]req_shift_open_date [10:30:00]req_shift_open_date done [10:30:00]produce_requested_data done [10:30:00]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103622,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [10:30:00]process_action_free close_receipt [10:30:00]json_value_free [10:30:00]json_value_free done [10:30:00]process_json_proto returns [10:30:00]Send response to host [10:30:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103622,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [10:30:00]free response buf [10:30:00]execute_script done [10:30:00]execute_script returns [10:30:00]free content buf [10:30:00]Sock 7.Close socket [10:30:00]Sock 7.Thread stoped [10:30:04]OFD Sender: No OFD packet to send [10:30:09]OFD Sender: No OFD packet to send [10:30:14]OFD Sender: No OFD packet to send [10:30:19]OFD Sender: No OFD packet to send [10:30:24]OFD Sender: No OFD packet to send [10:30:29]OFD Sender: No OFD packet to send [10:30:34]OFD Sender: No OFD packet to send [10:30:39]OFD Sender: No OFD packet to send [10:30:44]OFD Sender: No OFD packet to send [10:30:49]OFD Sender: No OFD packet to send [10:30:54]OFD Sender: No OFD packet to send [10:30:59]OFD Sender: No OFD packet to send [10:31:04]OFD Sender: No OFD packet to send [10:31:09]OFD Sender: No OFD packet to send [10:31:14]OFD Sender: No OFD packet to send [10:31:19]OFD Sender: No OFD packet to send [10:31:24]OFD Sender: No OFD packet to send [10:31:29]OFD Sender: No OFD packet to send [10:31:34]OFD Sender: No OFD packet to send [10:31:39]OFD Sender: No OFD packet to send [10:31:44]OFD Sender: No OFD packet to send [10:31:45]accept exits with 9 [10:31:45]New connection [10:31:45]New thread 3067227492 created [10:31:45]Thread 3067084132 joined [10:31:45]Waiting for new connection... [10:31:45] Sock 9.Parse request [10:31:45]Sock 9.Check first char [10:31:45]Sock 9.First char is OK [10:31:45]request: POST /json_proto HTTP/1.0 [10:31:45]Method: POST [10:31:45]URL: /json_proto [10:31:45]Method is POST - this is cgi request [10:31:45]url: /json_proto [10:31:45]query_string will be loaded in cgi processing [10:31:45]execute_cgi json_proto POST (null) [10:31:45]execute_cgi path=json_proto method=POST [10:31:45]POST find Content-Length [10:31:45]Host: 172.17.38.133:8080 [10:31:45]Content-Length: 1169 [10:31:45]Content-Type: application/json [10:31:45] [10:31:45]POST finish read [10:31:45]Found Content-Length = 1169 [10:31:45]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 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. \u000A\u0421\u0447\u0435\u0442 N : (1)672860\u000A19.06.2024 10:09\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 42\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 30.000 x 66.40\u000A\u0418\u0422\u041E\u0413: 1992.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30085080\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:31:45]execute_script... [10:31:45]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 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. \u000A\u0421\u0447\u0435\u0442 N : (1)672860\u000A19.06.2024 10:09\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 42\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 30.000 x 66.40\u000A\u0418\u0422\u041E\u0413: 1992.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30085080\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:31:45]POST & json_proto [10:31:45]process_json_proto [10:31:45]json parsed OK: [10:31:45]protocol is kg_v1.0 [10:31:45]action value=print_text [10:31:45]process_action print_text [10:31:45]cmd_print_text [10:31:45]ExternCall_PrintAddStr [10:31:45]wPrintStart [10:31:45]Write to MH i2c: 01 00 00 41 9A DB [10:31:45]Write i2c OK [10:31:45]MH_I2C_Read... [10:31:45]Read from MH i2c: 01 [10:31:45]MH_I2C_Read... [10:31:45]Read from MH i2c: 01 07 00 [10:31:45]MH_I2C_Read... [10:31:45]Read from MH i2c: 01 07 00 41 9A 00 00 00 00 00 FF 0F F0 [10:31:45]RasterBufferAndPrint [10:31:45]line *****ТОВАРНЫЙ ЧЕК***** [10:31:45]line АЗС 120 [10:31:45]line Партнер нефть [10:31:45]line 02508201610067 [10:31:45]line Кассир : Байбугуева Г. [10:31:45]line Счет N : (1)672860 [10:31:45]line 19.06.2024 10:09 [10:31:45]line ПРОДАЖА [10:31:45]line ТРК (МРК, ГНК): 42 [10:31:45]line Вид ГСМ : 2710124130 [10:31:45]line Аи-92-К-5 [10:31:45]line 30.000 x 66.40 [10:31:45]line ИТОГ: 1992.00 [10:31:45]line Тип оплаты: Талоны: ТК ГПНА Online [10:31:45]line 30085080 [10:31:45]line ______________________ [10:31:45]line (подпись) [10:31:45]written 0, free lines is 4095 [10:31:45]Write to MH i2c: 01 00 00 55 9A EF [10:31:45]Write i2c OK [10:31:45]MH_I2C_Read... [10:31:45]Read from MH i2c: 01 [10:31:45]MH_I2C_Read... [10:31:45]Read from MH i2c: 01 07 00 [10:31:45]MH_I2C_Read... [10:31:45]Read from MH i2c: 01 07 00 55 9A 00 00 00 00 00 12 0E 16 [10:31:45]RasterBufferAndPrint [10:31:45]line [10:31:45]line [10:31:45]line [10:31:45]line [10:31:45]line [10:31:45]written 0, free lines is 3604 [10:31:45]MH_Cut [10:31:45]Write to MH i2c: D1 01 00 5C 9A 01 C8 [10:31:45]Write i2c OK [10:31:45]MH_I2C_Read... [10:31:45]Read from MH i2c: D1 [10:31:45]MH_I2C_Read... [10:31:45]Read from MH i2c: D1 01 00 [10:31:45]MH_I2C_Read... [10:31:45]Read from MH i2c: D1 01 00 5C 9A 00 C7 [10:31:45]Write to MH i2c: 01 00 00 5D 9A F7 [10:31:45]Write i2c OK [10:31:45]MH_I2C_Read... [10:31:46]*** Cut start [10:31:46]*** Partial cut [10:31:46]*** CUTSNS_PIN = 1 [10:31:46]*** CUTSNS_PIN = 0 [10:31:46]*** Brake cut motor [10:31:46]Read from MH i2c: 01 [10:31:46]MH_I2C_Read... [10:31:46]Read from MH i2c: 01 07 00 [10:31:46]MH_I2C_Read... [10:31:46]*** Stop cut motor [10:31:46]*** Cut end [10:31:46]Read from MH i2c: 01 07 00 5D 9A 00 00 00 00 00 FF 0F 0C [10:31:46]process_action print_text done [10:31:46]requested_data is exist [10:31:46]produce_requested_data [10:31:46]requested_item fm.sn is exist - process it [10:31:46]wFMCommunicate request_size=4 [10:31:46]MH_SAM_APDU [10:31:46]CAPDU: 80 11 00 00 [10:31:46]Write to MH i2c: E2 08 00 5E 9A 80 11 00 00 00 00 00 00 72 [10:31:46]Write i2c OK [10:31:46]MH_I2C_Read... [10:31:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:31:46]Read from MH i2c: E2 [10:31:46]MH_I2C_Read... [10:31:46]Read from MH i2c: E2 17 00 [10:31:46]MH_I2C_Read... [10:31:46]Read from MH i2c: E2 17 00 5E 9A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 C5 [10:31:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [10:31:46]wFMCommunicate OK [10:31:46]requested_item fd.num is exist - process it [10:31:46]SAM_PROTO_GetFieldsCounters [10:31:46]wFMCommunicate request_size=4 [10:31:46]MH_SAM_APDU [10:31:46]CAPDU: 80 13 00 00 [10:31:46]Write to MH i2c: E2 08 00 5F 9A 80 13 00 00 00 00 00 00 75 [10:31:46]Write i2c OK [10:31:46]MH_I2C_Read... [10:31:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:31:46]Read from MH i2c: E2 [10:31:46]MH_I2C_Read... [10:31:46]Read from MH i2c: E2 62 00 [10:31:46]MH_I2C_Read... [10:31:46]Read from MH i2c: E2 62 00 5F 9A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 C6 94 01 00 0E 04 04 00 61 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 F5 [10:31: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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 C6 94 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 34 00 00 00 5E 04 04 00 34 00 00 00 57 04 04 00 35 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:31:46]wFMCommunicate OK [10:31:46]SAM_PROTO_GetFieldsCounters done [10:31:46]requested_item shift.num is exist - process it [10:31:46]requested_item shift.opened is exist - process it [10:31:46]req_shift_opened [10:31:46]FM_GetShiftState [10:31:46]SAM_PROTO_GetShiftState [10:31:46]wFMCommunicate request_size=4 [10:31:46]MH_SAM_APDU [10:31:46]CAPDU: 80 13 01 00 [10:31:46]Write to MH i2c: E2 08 00 60 9A 80 13 01 00 00 00 00 00 77 [10:31:46]Write i2c OK [10:31:46]MH_I2C_Read... [10:31:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:31:46]Read from MH i2c: E2 [10:31:46]MH_I2C_Read... [10:31:46]Read from MH i2c: E2 0E 00 [10:31:46]MH_I2C_Read... [10:31:46]Read from MH i2c: E2 0E 00 60 9A 00 09 00 01 04 26 72 66 00 00 00 00 90 00 85 [10:31:46]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [10:31:46]wFMCommunicate OK [10:31:46]SAM_PROTO_GetShiftState done [10:31:46]FM_GetShiftState done [10:31:46]req_shift_opened done [10:31:46]requested_item shift.open_date is exist - process it [10:31:46]req_shift_open_date [10:31:46]req_shift_open_date done [10:31:46]produce_requested_data done [10:31:46]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103622,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [10:31:46]process_action_free print_text [10:31:46]json_value_free [10:31:46]json_value_free done [10:31:46]process_json_proto returns [10:31:46]Send response to host [10:31:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103622,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [10:31:46]free response buf [10:31:46]execute_script done [10:31:46]execute_script returns [10:31:46]free content buf [10:31:46]Sock 9.Close socket [10:31:46]Sock 9.Thread stoped [10:31:49]OFD Sender: No OFD packet to send [10:31:54]OFD Sender: No OFD packet to send [10:31:59]OFD Sender: No OFD packet to send [10:32:04]OFD Sender: No OFD packet to send [10:32:09]OFD Sender: No OFD packet to send [10:32:14]OFD Sender: No OFD packet to send [10:32:19]OFD Sender: No OFD packet to send [10:32:24]OFD Sender: No OFD packet to send [10:32:29]OFD Sender: No OFD packet to send [10:32:34]OFD Sender: No OFD packet to send [10:32:39]OFD Sender: No OFD packet to send [10:32:44]OFD Sender: No OFD packet to send [10:32:49]OFD Sender: No OFD packet to send [10:32:54]OFD Sender: No OFD packet to send [10:32:59]OFD Sender: No OFD packet to send [10:33:04]OFD Sender: No OFD packet to send [10:33:09]OFD Sender: No OFD packet to send [10:33:14]OFD Sender: No OFD packet to send [10:33:19]OFD Sender: No OFD packet to send [10:33:22]accept exits with 7 [10:33:22]New connection [10:33:22]New thread 3067084132 created [10:33:22]Thread 3067227492 joined [10:33:22]Waiting for new connection... [10:33:22] Sock 7.Parse request [10:33:22]Sock 7.Check first char [10:33:22]Sock 7.First char is OK [10:33:22]request: POST /json_proto HTTP/1.0 [10:33:22]Method: POST [10:33:22]URL: /json_proto [10:33:22]Method is POST - this is cgi request [10:33:22]url: /json_proto [10:33:22]query_string will be loaded in cgi processing [10:33:22]execute_cgi json_proto POST (null) [10:33:22]execute_cgi path=json_proto method=POST [10:33:22]POST find Content-Length [10:33:22]Host: 172.17.38.133:8080 [10:33:22]Content-Length: 680 [10:33:22]Content-Type: application/json [10:33:22] [10:33:22]POST finish read [10:33:22]Found Content-Length = 680 [10:33:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672861", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 11.560, "sum" : 854.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 10000.00, "total" : 854.00, "payments": [ { "type": 0, "sum" : 854.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:33:22]execute_script... [10:33: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)672861", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 11.560, "sum" : 854.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 10000.00, "total" : 854.00, "payments": [ { "type": 0, "sum" : 854.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:33:22]POST & json_proto [10:33:22]process_json_proto [10:33:22]json parsed OK: [10:33:22]protocol is kg_v1.0 [10:33:22]action value=close_receipt [10:33:22]process_action close_receipt [10:33:22]cmd_close_receipt [10:33:22]MH_GetDate [10:33:22]Write to MH i2c: F0 00 00 61 9A EA [10:33:22]Write i2c OK [10:33:22]MH_I2C_Read... [10:33:22]Read from MH i2c: F0 [10:33:22]MH_I2C_Read... [10:33:22]Read from MH i2c: F0 09 00 [10:33:22]MH_I2C_Read... [10:33:22]Read from MH i2c: F0 09 00 61 9A 00 FE B3 72 66 BD 8F 7C 64 A8 [10:33:22]GetLastDocTimeStamp 1718793008 [10:33:22]current date 1718793214 [10:33:22]FM_GetShiftState [10:33:22]SAM_PROTO_GetShiftState [10:33:22]wFMCommunicate request_size=4 [10:33:22]MH_SAM_APDU [10:33:22]CAPDU: 80 13 01 00 [10:33:22]Write to MH i2c: E2 08 00 62 9A 80 13 01 00 00 00 00 00 79 [10:33:22]Write i2c OK [10:33:22]MH_I2C_Read... [10:33:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:33:22]Read from MH i2c: E2 [10:33:22]MH_I2C_Read... [10:33:22]Read from MH i2c: E2 0E 00 [10:33:22]MH_I2C_Read... [10:33:22]Read from MH i2c: E2 0E 00 62 9A 00 09 00 01 04 26 72 66 00 00 00 00 90 00 87 [10:33:22]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [10:33:22]wFMCommunicate OK [10:33:22]SAM_PROTO_GetShiftState done [10:33:22]FM_GetShiftState done [10:33:22]opened in 1718756868 [10:33:22]opened+sec_in_day 1718843268 [10:33:22]quantity*price = 85428 [10:33:22]sum+1 = 85429 [10:33:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 854.00 Внесено: 10000.00 СДАЧА: 9146.00 НСП 1% : 7.56 НДС 12% : 90.72 Наличными: 854.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 53 19.06.2024 10:33 Смена: 353 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103623 ФПД: 27775019885071 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T103334&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103623&fm=27775019885071&tin=02508201610067®Number=0000000000092785&sum=85400 [10:33:23]StoreToDocumentArchive [10:33:23]shift 353 fd 103623 [10:33:23]save to /storage/0353/doc_00103623 [10:33:23]save last doc name /storage/0353/doc_00103623 to /storage/kkm_last_doc_name [10:33:23]save OK [10:33:23]Clear old archive folders... [10:33:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:33:23]tlvbuf is 013B11A0 [10:33:23]SAM_PROTO_ClearQueue [10:33:23]wFMCommunicate request_size=4 [10:33:23]MH_SAM_APDU [10:33:23]CAPDU: 80 09 00 00 [10:33:23]Write to MH i2c: E2 08 00 6F 9A 80 09 00 00 00 00 00 00 7B [10:33:23]Write i2c OK [10:33:23]MH_I2C_Read... [10:33:23]Read from MH i2c: E2 [10:33:23]MH_I2C_Read... [10:33:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:33:23]Read from MH i2c: E2 03 00 [10:33:23]MH_I2C_Read... [10:33:23]Read from MH i2c: E2 03 00 6F 9A 00 90 00 7D [10:33:23]RAPDU: 90 00 [10:33:23]wFMCommunicate OK [10:33:23]SAM_PROTO_ClearQueue done [10:33:23]KKMCreateOFDPacket [10:33:23]OFDProtocolAddRootSTLVToBuf [10:33:23]FM_MakeSignedData [10:33:23]FM_MakeSignedData [10:33:23]SAM_PROTO_SignData [10:33:23]wFMCommunicate request_size=4 [10:33:23]MH_SAM_APDU [10:33:23]CAPDU: 80 0D 01 02 [10:33:23]Write to MH i2c: E2 08 00 70 9A 80 0D 01 02 00 00 00 00 83 [10:33:23]Write i2c OK [10:33:23]MH_I2C_Read... [10:33:23]Read from MH i2c: E2 [10:33:23]MH_I2C_Read... [10:33:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:33:23]Read from MH i2c: E2 03 00 [10:33:23]MH_I2C_Read... [10:33:23]Read from MH i2c: E2 03 00 70 9A 00 90 00 7E [10:33:23]RAPDU: 90 00 [10:33:23]wFMCommunicate OK [10:33:23]wFMCommunicate request_size=255 [10:33:23]MH_SAM_APDU [10:33: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 28 2D 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 B4 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 35 00 00 00 F4 03 04 00 FE B3 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 C7 94 01 00 35 04 06 00 19 [10:33:23]Write to MH i2c: E2 02 01 71 9A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 28 2D 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 B4 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 35 00 00 00 F4 03 04 00 FE B3 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 C7 94 01 00 35 04 06 00 19 00 00 D2 [10:33:23]Write i2c OK [10:33:23]MH_I2C_Read... [10:33:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:33:24]Read from MH i2c: E2 [10:33:24]MH_I2C_Read... [10:33:24]Read from MH i2c: E2 03 00 [10:33:24]MH_I2C_Read... [10:33:24]Read from MH i2c: E2 03 00 71 9A 00 90 00 7F [10:33:24]RAPDU: 90 00 [10:33:24]wFMCommunicate OK [10:33:24]wFMCommunicate request_size=10 [10:33:24]MH_SAM_APDU [10:33:24]CAPDU: 80 0D 02 02 05 42 E0 31 A2 0F [10:33:24]Write to MH i2c: E2 0D 00 72 9A 80 0D 02 02 05 00 42 E0 31 A2 0F 00 00 94 [10:33:24]Write i2c OK [10:33:24]MH_I2C_Read... [10:33:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:33:24]Read from MH i2c: E2 [10:33:24]MH_I2C_Read... [10:33:24]Read from MH i2c: E2 03 00 [10:33:24]MH_I2C_Read... [10:33:24]Read from MH i2c: E2 03 00 72 9A 00 90 00 80 [10:33:24]RAPDU: 90 00 [10:33:24]wFMCommunicate OK [10:33:24]wFMCommunicate request_size=4 [10:33:24]MH_SAM_APDU [10:33:24]CAPDU: 80 0D 03 02 [10:33:24]Write to MH i2c: E2 08 00 73 9A 80 0D 03 02 00 00 00 00 88 [10:33:24]Write i2c OK [10:33:24]MH_I2C_Read... [10:33:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:33:24]Read from MH i2c: E2 [10:33:24]MH_I2C_Read... [10:33:24]Read from MH i2c: E2 0B 00 [10:33:24]MH_I2C_Read... [10:33:24]Read from MH i2c: E2 0B 00 73 9A 00 9E 3B C8 55 0A 77 C8 2D 90 00 F5 [10:33:24]RAPDU: 9E 3B C8 55 0A 77 C8 2D 90 00 [10:33:24]wFMCommunicate OK [10:33:24]SAM_PROTO_SignData done [10:33:24]FM_MakeSignedData done [10:33:24]CreateOFDProtocolMessage [10:33:24]wFMCommunicate request_size=4 [10:33:24]MH_SAM_APDU [10:33:24]CAPDU: 80 11 00 00 [10:33:24]Write to MH i2c: E2 08 00 74 9A 80 11 00 00 00 00 00 00 88 [10:33:24]Write i2c OK [10:33:24]MH_I2C_Read... [10:33:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:33:24]Read from MH i2c: E2 [10:33:24]MH_I2C_Read... [10:33:24]Read from MH i2c: E2 17 00 [10:33:24]MH_I2C_Read... [10:33:24]Read from MH i2c: E2 17 00 74 9A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 DB [10:33:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [10:33:24]wFMCommunicate OK [10:33:24]CreateOFDProtocolMessage done [10:33:24]OFDSenderStorePacket 103623 [10:33:24]StoreOFDPacket docnum=103623 [10:33:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 D2 09 07 01 E9 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 28 2D 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 B4 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 35 00 00 00 F4 03 04 00 FE B3 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 C7 94 01 00 35 04 06 00 19 42 E0 31 A2 0F 9E 3B C8 55 0A 77 C8 2D [10:33:24]CheckFolder [10:33:24]dirname=/storage/ofd_packets [10:33:24]CheckFolder done [10:33:24]ProducePacketName [10:33:24]name=ofd_packets/00103623 [10:33:24]NVStorageSaveData ofd_packets/00103623 [10:33:24]File name is /storage/ofd_packets/00103623 [10:33:24]Write 301 bytes [10:33:24]NVStorageSaveData done [10:33:24]OFDSenderStorePacket done [10:33:24]KKMCreateOFDPacket done [10:33:24]NVStorageSaveData kkm_last_timestamp [10:33:24]File name is /storage/kkm_last_timestamp [10:33:24]Write 4 bytes [10:33:24]NVStorageSaveData done [10:33:24]ExternCall_PrintAddStr [10:33:24]wPrintStart [10:33:24]Write to MH i2c: 01 00 00 75 9A 0F [10:33:24]Write i2c OK [10:33:24]MH_I2C_Read... [10:33:24]Read from MH i2c: 01 [10:33:24]MH_I2C_Read... [10:33:24]Read from MH i2c: 01 07 00 [10:33:24]MH_I2C_Read... [10:33:24]Read from MH i2c: 01 07 00 75 9A 00 00 00 00 00 FF 0F 24 [10:33:24]RasterBufferAndPrint [10:33:24]line Счет N : (1)672861 [10:33:24]line ИНН: 02508201610067 [10:33:24]line Контрольно-Кассовый Чек [10:33:24]line ПРОДАЖА [10:33:24]line ТРК (МРК, ГНК) : 31 [10:33:24]line Товар: 2710124500 [10:33:24]line Аи-95-К-5 [10:33:24]line 11.560 * 73.90 [10:33:24]line = 854.28 [10:33:24]line НДС 12% НСП 1% [10:33:24]line > о реализуемом товаре [10:33:24]line ОКРУГЛЕНИЕ: -0.28 [10:33:24]line ИТОГО: 854.00 [10:33:24]line Внесено: 10000.00 [10:33:24]line СДАЧА: 9146.00 [10:33:24]line НСП 1% : 7.56 [10:33:24]line НДС 12% : 90.72 [10:33:24]line Наличными: 854.00 [10:33:24]line Безнал.: 0.00 [10:33:24]line Место: АЗС № 120 "Партнер Нефть" [10:33:24]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [10:33:24]line СНО: Общий режим [10:33:24]line Чек 53 19.06.2024 10:33 [10:33:24]line Смена: 353 ФФД: 1.0 [10:33:24]line ЗНМ: 0300000164 [10:33:24]line РНМ: 0000000000092785 [10:33:24]line Версия ККМ: 001 [10:33:24]line ФМ: 0000000000875093 [10:33:24]line ФД: 103623 [10:33:24]line ФПД: 27775019885071 [10:33:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T103334&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103623&fm=27775019885071&tin=02508201610067®Number=0000000000092785&sum=85400 [10:33:24]written 0, free lines is 4095 [10:33:24]OFD Sender: Processing packet 103623 [packets to send 17, broken 16] [10:33:24]ProducePacketName [10:33:24]name=ofd_packets/00103623 [10:33:24]OFD Sender: To server: pG, [10:33:24]CommunicateWithHost lk.salyk.kg:30040 [10:33:24]ConnectInit lk.salyk.kg [10:33:24]Connected sock=11 [10:33: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 39 33 0F 01 00 00 D2 09 07 01 E9 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 28 2D 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 B4 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 35 00 00 00 F4 03 04 00 FE B3 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 C7 94 01 00 35 04 06 00 19 42 E0 31 A2 0F 9E 3B C8 55 0A 77 C8 2D [10:33: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 39 33 4F 00 00 00 E8 8B 47 00 D6 C3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 C7 94 01 00 F4 03 04 00 87 5A 72 66 B6 04 01 00 00 22 40 00 D7 83 A9 88 B8 [10:33:24]CommunicateWithHost err = 0 [10:33:24]CheckOFDResponse [10:33:24]1017 (14) - 77093643461234 [10:33:24]1041 (16) - 0000000000875093 [10:33:24]1040 (4) - 103623 [10:33:24]1012 (4) - 19.06.2024 04:11 [10:33:24]1206 (1) - 0 [10:33:24]OFD Sender: Remove packet 103623 [10:33:24]ProducePacketName [10:33:24]name=ofd_packets/00103623 [10:33:24]NVStorageDeleteData [10:33:24]Write to MH i2c: 01 00 00 A0 9A 3A [10:33:24]Write i2c OK [10:33:24]MH_I2C_Read... [10:33:24]Read from MH i2c: 01 [10:33:24]MH_I2C_Read... [10:33:24]Read from MH i2c: 01 07 00 [10:33:24]MH_I2C_Read... [10:33:24]Read from MH i2c: 01 07 00 A0 9A 00 00 00 00 00 DD 0C 2A [10:33:24]RasterBufferAndPrint [10:33:24]line [10:33:24]line [10:33:24]line [10:33:24]line [10:33:24]line [10:33:24]written 0, free lines is 3299 [10:33:24]MH_Cut [10:33:24]Write to MH i2c: D1 01 00 A7 9A 01 13 [10:33:24]Write i2c OK [10:33:24]MH_I2C_Read... [10:33:24]Read from MH i2c: D1 [10:33:24]MH_I2C_Read... [10:33:24]Read from MH i2c: D1 01 00 [10:33:24]MH_I2C_Read... [10:33:24]Read from MH i2c: D1 01 00 A7 9A 00 12 [10:33:24]Write to MH i2c: 01 00 00 A8 9A 42 [10:33:24]Write i2c OK [10:33:24]MH_I2C_Read... [10:33:25]OFD Sender: No OFD packet to send [10:33:25]*** Cut start [10:33:25]*** Partial cut [10:33:25]*** CUTSNS_PIN = 1 [10:33:25]*** CUTSNS_PIN = 0 [10:33:25]*** Brake cut motor [10:33:26]Read from MH i2c: 01 [10:33:26]MH_I2C_Read... [10:33:26]*** Stop cut motor [10:33:26]*** Cut end [10:33:26]Read from MH i2c: 01 07 00 [10:33:26]MH_I2C_Read... [10:33:26]Read from MH i2c: 01 07 00 A8 9A 00 00 00 00 00 FF 0F 57 [10:33:26]process_action close_receipt done [10:33:26]requested_data is exist [10:33:26]produce_requested_data [10:33:26]requested_item fm.sn is exist - process it [10:33:26]wFMCommunicate request_size=4 [10:33:26]MH_SAM_APDU [10:33:26]CAPDU: 80 11 00 00 [10:33:26]Write to MH i2c: E2 08 00 A9 9A 80 11 00 00 00 00 00 00 BD [10:33:26]Write i2c OK [10:33:26]MH_I2C_Read... [10:33:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:33:26]Read from MH i2c: E2 [10:33:26]MH_I2C_Read... [10:33:26]Read from MH i2c: E2 17 00 [10:33:26]MH_I2C_Read... [10:33:26]Read from MH i2c: E2 17 00 A9 9A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 10 [10:33:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [10:33:26]wFMCommunicate OK [10:33:26]requested_item fd.num is exist - process it [10:33:26]SAM_PROTO_GetFieldsCounters [10:33:26]wFMCommunicate request_size=4 [10:33:26]MH_SAM_APDU [10:33:26]CAPDU: 80 13 00 00 [10:33:26]Write to MH i2c: E2 08 00 AA 9A 80 13 00 00 00 00 00 00 C0 [10:33:26]Write i2c OK [10:33:26]MH_I2C_Read... [10:33:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:33:26]Read from MH i2c: E2 [10:33:26]MH_I2C_Read... [10:33:26]Read from MH i2c: E2 62 00 [10:33:26]MH_I2C_Read... [10:33:26]Read from MH i2c: E2 62 00 AA 9A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 C7 94 01 00 0E 04 04 00 61 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 44 [10:33: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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 C7 94 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 35 00 00 00 5E 04 04 00 35 00 00 00 57 04 04 00 36 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:33:26]wFMCommunicate OK [10:33:26]SAM_PROTO_GetFieldsCounters done [10:33:26]requested_item shift.num is exist - process it [10:33:26]requested_item shift.opened is exist - process it [10:33:26]req_shift_opened [10:33:26]FM_GetShiftState [10:33:26]SAM_PROTO_GetShiftState [10:33:26]wFMCommunicate request_size=4 [10:33:26]MH_SAM_APDU [10:33:26]CAPDU: 80 13 01 00 [10:33:26]Write to MH i2c: E2 08 00 AB 9A 80 13 01 00 00 00 00 00 C2 [10:33:26]Write i2c OK [10:33:26]MH_I2C_Read... [10:33:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:33:26]Read from MH i2c: E2 [10:33:26]MH_I2C_Read... [10:33:26]Read from MH i2c: E2 0E 00 [10:33:26]MH_I2C_Read... [10:33:26]Read from MH i2c: E2 0E 00 AB 9A 00 09 00 01 04 26 72 66 00 00 00 00 90 00 D0 [10:33:26]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [10:33:26]wFMCommunicate OK [10:33:26]SAM_PROTO_GetShiftState done [10:33:26]FM_GetShiftState done [10:33:26]req_shift_opened done [10:33:26]requested_item shift.open_date is exist - process it [10:33:26]req_shift_open_date [10:33:26]req_shift_open_date done [10:33:26]produce_requested_data done [10:33:26]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103623,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [10:33:26]process_action_free close_receipt [10:33:26]json_value_free [10:33:26]json_value_free done [10:33:26]process_json_proto returns [10:33:26]Send response to host [10:33:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103623,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [10:33:26]free response buf [10:33:26]execute_script done [10:33:26]execute_script returns [10:33:26]free content buf [10:33:26]Sock 7.Close socket [10:33:26]Sock 7.Thread stoped [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:20]OFD Sender: No OFD packet to send [10:34:25]OFD Sender: No OFD packet to send [10:34:30]OFD Sender: No OFD packet to send [10:34:35]OFD Sender: No OFD packet to send [10:34:40]OFD Sender: No OFD packet to send [10:34:45]OFD Sender: No OFD packet to send [10:34:50]OFD Sender: No OFD packet to send [10:34:55]OFD Sender: No OFD packet to send [10:35:00]OFD Sender: No OFD packet to send [10:35:05]OFD Sender: No OFD packet to send [10:35:10]OFD Sender: No OFD packet to send [10:35:15]OFD Sender: No OFD packet to send [10:35:20]OFD Sender: No OFD packet to send [10:35:25]OFD Sender: No OFD packet to send [10:35:27]accept exits with 9 [10:35:27]New connection [10:35:27]New thread 3067227492 created [10:35:27]Thread 3067084132 joined [10:35:27]Waiting for new connection... [10:35:27] Sock 9.Parse request [10:35:27]Sock 9.Check first char [10:35:27]Sock 9.First char is OK [10:35:27]request: POST /json_proto HTTP/1.0 [10:35:27]Method: POST [10:35:27]URL: /json_proto [10:35:27]Method is POST - this is cgi request [10:35:27]url: /json_proto [10:35:27]query_string will be loaded in cgi processing [10:35:27]execute_cgi json_proto POST (null) [10:35:27]execute_cgi path=json_proto method=POST [10:35:27]POST find Content-Length [10:35:27]Host: 172.17.38.133:8080 [10:35:27]Content-Length: 816 [10:35:27]Content-Type: application/json [10:35:27] [10:35:27]POST finish read [10:35:27]Found Content-Length = 816 [10:35:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672862", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.66 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:35:27]execute_script... [10:35: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)672862", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.66 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:35:27]POST & json_proto [10:35:27]process_json_proto [10:35:27]json parsed OK: [10:35:27]protocol is kg_v1.0 [10:35:27]action value=close_receipt [10:35:27]process_action close_receipt [10:35:27]cmd_close_receipt [10:35:27]MH_GetDate [10:35:27]Write to MH i2c: F0 00 00 AC 9A 35 [10:35:27]Write i2c OK [10:35:27]MH_I2C_Read... [10:35:27]Read from MH i2c: F0 [10:35:27]MH_I2C_Read... [10:35:27]Read from MH i2c: F0 09 00 [10:35:27]MH_I2C_Read... [10:35:27]Read from MH i2c: F0 09 00 AC 9A 00 7B B4 72 66 BD 8F 7C 64 71 [10:35:27]GetLastDocTimeStamp 1718793214 [10:35:27]current date 1718793339 [10:35:27]FM_GetShiftState [10:35:27]SAM_PROTO_GetShiftState [10:35:27]wFMCommunicate request_size=4 [10:35:27]MH_SAM_APDU [10:35:27]CAPDU: 80 13 01 00 [10:35:27]Write to MH i2c: E2 08 00 AD 9A 80 13 01 00 00 00 00 00 C4 [10:35:27]Write i2c OK [10:35:27]MH_I2C_Read... [10:35:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:35:27]Read from MH i2c: E2 [10:35:27]MH_I2C_Read... [10:35:27]Read from MH i2c: E2 0E 00 [10:35:27]MH_I2C_Read... [10:35:27]Read from MH i2c: E2 0E 00 AD 9A 00 09 00 01 04 26 72 66 00 00 00 00 90 00 D2 [10:35:27]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [10:35:27]wFMCommunicate OK [10:35:27]SAM_PROTO_GetShiftState done [10:35:27]FM_GetShiftState done [10:35:27]opened in 1718756868 [10:35:27]opened+sec_in_day 1718843268 [10:35:27]quantity*price = 50065 [10:35:27]sum+1 = 50067 [10:35:27]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.66 НСП 1% : 4.43 НДС 12% : 53.17 Наличными: 0.00 Безнал.: 500.66 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 54 19.06.2024 10:35 Смена: 353 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000875093 ФД: 103624 ФПД: 249324358570317 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T103539&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103624&fm=249324358570317&tin=02508201610067®Number=0000000000092785&sum=50066 [10:35:28]StoreToDocumentArchive [10:35:28]shift 353 fd 103624 [10:35:28]save to /storage/0353/doc_00103624 [10:35:28]save last doc name /storage/0353/doc_00103624 to /storage/kkm_last_doc_name [10:35:28]save OK [10:35:28]Clear old archive folders... [10:35:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:35:28]tlvbuf is 01613970 [10:35:28]SAM_PROTO_ClearQueue [10:35:28]wFMCommunicate request_size=4 [10:35:28]MH_SAM_APDU [10:35:28]CAPDU: 80 09 00 00 [10:35:28]Write to MH i2c: E2 08 00 BA 9A 80 09 00 00 00 00 00 00 C6 [10:35:28]Write i2c OK [10:35:28]MH_I2C_Read... [10:35:28]Read from MH i2c: E2 [10:35:28]MH_I2C_Read... [10:35:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:35:28]Read from MH i2c: E2 03 00 [10:35:28]MH_I2C_Read... [10:35:28]Read from MH i2c: E2 03 00 BA 9A 00 90 00 C8 [10:35:28]RAPDU: 90 00 [10:35:28]wFMCommunicate OK [10:35:28]SAM_PROTO_ClearQueue done [10:35:28]KKMCreateOFDPacket [10:35:28]OFDProtocolAddRootSTLVToBuf [10:35:28]FM_MakeSignedData [10:35:28]FM_MakeSignedData [10:35:28]SAM_PROTO_SignData [10:35:28]wFMCommunicate request_size=4 [10:35:28]MH_SAM_APDU [10:35:28]CAPDU: 80 0D 01 02 [10:35:28]Write to MH i2c: E2 08 00 BB 9A 80 0D 01 02 00 00 00 00 CE [10:35:28]Write i2c OK [10:35:28]MH_I2C_Read... [10:35:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:35:29]Read from MH i2c: E2 [10:35:29]MH_I2C_Read... [10:35:29]Read from MH i2c: E2 03 00 [10:35:29]MH_I2C_Read... [10:35:29]Read from MH i2c: E2 03 00 BB 9A 00 90 00 C9 [10:35:29]RAPDU: 90 00 [10:35:29]wFMCommunicate OK [10:35:29]wFMCommunicate request_size=255 [10:35:29]MH_SAM_APDU [10:35:29]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 92 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 92 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 7B B4 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 C8 94 01 00 35 04 06 00 E2 [10:35:29]Write to MH i2c: E2 02 01 BC 9A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 92 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 92 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 7B B4 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 C8 94 01 00 35 04 06 00 E2 00 00 EA [10:35:29]Write i2c OK [10:35:29]MH_I2C_Read... [10:35:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:35:29]Read from MH i2c: E2 [10:35:29]MH_I2C_Read... [10:35:29]Read from MH i2c: E2 03 00 [10:35:29]MH_I2C_Read... [10:35:29]Read from MH i2c: E2 03 00 BC 9A 00 90 00 CA [10:35:29]RAPDU: 90 00 [10:35:29]wFMCommunicate OK [10:35:29]wFMCommunicate request_size=10 [10:35:29]MH_SAM_APDU [10:35:29]CAPDU: 80 0D 02 02 05 C2 59 D3 91 4D [10:35:29]Write to MH i2c: E2 0D 00 BD 9A 80 0D 02 02 05 00 C2 59 D3 91 4D 00 00 A7 [10:35:29]Write i2c OK [10:35:29]MH_I2C_Read... [10:35:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:35:29]Read from MH i2c: E2 [10:35:29]MH_I2C_Read... [10:35:29]Read from MH i2c: E2 03 00 [10:35:29]MH_I2C_Read... [10:35:29]Read from MH i2c: E2 03 00 BD 9A 00 90 00 CB [10:35:29]RAPDU: 90 00 [10:35:29]wFMCommunicate OK [10:35:29]wFMCommunicate request_size=4 [10:35:29]MH_SAM_APDU [10:35:29]CAPDU: 80 0D 03 02 [10:35:29]Write to MH i2c: E2 08 00 BE 9A 80 0D 03 02 00 00 00 00 D3 [10:35:29]Write i2c OK [10:35:29]MH_I2C_Read... [10:35:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:35:29]Read from MH i2c: E2 [10:35:29]MH_I2C_Read... [10:35:29]Read from MH i2c: E2 0B 00 [10:35:29]MH_I2C_Read... [10:35:29]Read from MH i2c: E2 0B 00 BE 9A 00 74 98 C1 5A E7 C1 0A 68 90 00 15 [10:35:29]RAPDU: 74 98 C1 5A E7 C1 0A 68 90 00 [10:35:29]wFMCommunicate OK [10:35:29]SAM_PROTO_SignData done [10:35:29]FM_MakeSignedData done [10:35:29]CreateOFDProtocolMessage [10:35:29]wFMCommunicate request_size=4 [10:35:29]MH_SAM_APDU [10:35:29]CAPDU: 80 11 00 00 [10:35:29]Write to MH i2c: E2 08 00 BF 9A 80 11 00 00 00 00 00 00 D3 [10:35:29]Write i2c OK [10:35:29]MH_I2C_Read... [10:35:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:35:29]Read from MH i2c: E2 [10:35:29]MH_I2C_Read... [10:35:29]Read from MH i2c: E2 17 00 [10:35:29]MH_I2C_Read... [10:35:29]Read from MH i2c: E2 17 00 BF 9A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 26 [10:35:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [10:35:29]wFMCommunicate OK [10:35:29]CreateOFDProtocolMessage done [10:35:29]OFDSenderStorePacket 103624 [10:35:29]StoreOFDPacket docnum=103624 [10:35:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 B2 FA 07 01 1E 1D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 92 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 92 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 7B B4 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 C8 94 01 00 35 04 06 00 E2 C2 59 D3 91 4D 74 98 C1 5A E7 C1 0A 68 [10:35:29]CheckFolder [10:35:29]dirname=/storage/ofd_packets [10:35:29]CheckFolder done [10:35:29]ProducePacketName [10:35:29]name=ofd_packets/00103624 [10:35:29]NVStorageSaveData ofd_packets/00103624 [10:35:29]File name is /storage/ofd_packets/00103624 [10:35:29]Write 301 bytes [10:35:29]NVStorageSaveData done [10:35:29]OFDSenderStorePacket done [10:35:29]KKMCreateOFDPacket done [10:35:29]NVStorageSaveData kkm_last_timestamp [10:35:29]File name is /storage/kkm_last_timestamp [10:35:29]Write 4 bytes [10:35:29]NVStorageSaveData done [10:35:29]ExternCall_PrintAddStr [10:35:29]wPrintStart [10:35:29]Write to MH i2c: 01 00 00 C0 9A 5A [10:35:29]Write i2c OK [10:35:29]MH_I2C_Read... [10:35:29]Read from MH i2c: 01 [10:35:29]MH_I2C_Read... [10:35:29]Read from MH i2c: 01 07 00 [10:35:29]MH_I2C_Read... [10:35:29]Read from MH i2c: 01 07 00 C0 9A 00 00 00 00 00 FF 0F 6F [10:35:29]RasterBufferAndPrint [10:35:29]line Счет N : (1)672862 [10:35:29]line ИНН: 02508201610067 [10:35:29]line Контрольно-Кассовый Чек [10:35:29]line ПРОДАЖА [10:35:29]line ТРК (МРК, ГНК) : 42 [10:35:29]line Товар: 2710124130 [10:35:29]line Аи-92-К-5 [10:35:29]line 7.540 * 66.40 [10:35:29]line = 500.66 [10:35:29]line НДС 12% НСП 1% [10:35:29]line > о реализуемом товаре [10:35:29]line ИТОГО: 500.66 [10:35:29]line НСП 1% : 4.43 [10:35:29]line НДС 12% : 53.17 [10:35:29]line Наличными: 0.00 [10:35:29]line Безнал.: 500.66 [10:35:29]line Место: АЗС № 120 "Партнер Нефть" [10:35:29]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [10:35:29]line СНО: Общий режим [10:35:29]line Чек 54 19.06.2024 10:35 [10:35:29]line Смена: 353 ФФД: 1.0 [10:35:29]line ЗНМ: 0300000164 [10:35:29]line РНМ: 0000000000092785 [10:35:29]line Версия ККМ: 001 [10:35:29]line Платежная система: Бакай Банк [10:35:29]line ФМ: 0000000000875093 [10:35:29]line ФД: 103624 [10:35:29]line ФПД: 249324358570317 [10:35:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T103539&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103624&fm=249324358570317&tin=02508201610067®Number=0000000000092785&sum=50066 [10:35:29]OFD Sender: Processing packet 103624 [packets to send 17, broken 16] [10:35:29]ProducePacketName [10:35:29]name=ofd_packets/00103624 [10:35:29]OFD Sender: To server: pG, [10:35:29]CommunicateWithHost lk.salyk.kg:30040 [10:35:29]ConnectInit lk.salyk.kg [10:35:29]written 0, free lines is 4095 [10:35:29]Connected sock=10 [10:35: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 39 33 0F 01 00 00 B2 FA 07 01 1E 1D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 92 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 92 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 7B B4 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 C8 94 01 00 35 04 06 00 E2 C2 59 D3 91 4D 74 98 C1 5A E7 C1 0A 68 [10:35:30]Write to MH i2c: 01 00 00 EA 9A 84 [10:35:30]Write i2c OK [10:35:30]MH_I2C_Read... [10:35:30]Read from MH i2c: 01 [10:35:30]MH_I2C_Read... [10:35:30]Read from MH i2c: 01 07 00 [10:35:30]MH_I2C_Read... [10:35:30]Read from MH i2c: 01 07 00 EA 9A 00 00 00 00 00 E4 0C 7B [10:35:30]RasterBufferAndPrint [10:35:30]line [10:35:30]line [10:35:30]line [10:35:30]line [10:35:30]line [10:35:30]written 0, free lines is 3307 [10:35: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 39 33 4F 00 00 00 57 C1 47 00 92 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 39 33 10 04 04 00 C8 94 01 00 F4 03 04 00 04 5B 72 66 B6 04 01 00 00 6A 3E 46 2B 57 30 38 28 [10:35:30]CommunicateWithHost err = 0 [10:35:30]CheckOFDResponse [10:35:30]1017 (14) - 77093643461234 [10:35:30]1041 (16) - 0000000000875093 [10:35:30]1040 (4) - 103624 [10:35:30]1012 (4) - 19.06.2024 04:13 [10:35:30]1206 (1) - 0 [10:35:30]OFD Sender: Remove packet 103624 [10:35:30]ProducePacketName [10:35:30]name=ofd_packets/00103624 [10:35:30]NVStorageDeleteData [10:35:30]MH_Cut [10:35:30]Write to MH i2c: D1 01 00 F1 9A 01 5D [10:35:30]Write i2c OK [10:35:30]MH_I2C_Read... [10:35:30]Read from MH i2c: D1 [10:35:30]MH_I2C_Read... [10:35:30]Read from MH i2c: D1 01 00 [10:35:30]MH_I2C_Read... [10:35:30]Read from MH i2c: D1 01 00 F1 9A 00 5C [10:35:30]Write to MH i2c: 01 00 00 F2 9A 8C [10:35:30]Write i2c OK [10:35:30]MH_I2C_Read... [10:35:30]OFD Sender: No OFD packet to send [10:35:31]*** Cut start [10:35:31]*** Partial cut [10:35:31]*** CUTSNS_PIN = 1 [10:35:31]*** CUTSNS_PIN = 0 [10:35:31]*** Brake cut motor [10:35:31]Read from MH i2c: 01 [10:35:31]MH_I2C_Read... [10:35:31]*** Stop cut motor [10:35:31]*** Cut end [10:35:31]Read from MH i2c: 01 07 00 [10:35:31]MH_I2C_Read... [10:35:31]Read from MH i2c: 01 07 00 F2 9A 00 00 00 00 00 FF 0F A1 [10:35:31]process_action close_receipt done [10:35:31]requested_data is exist [10:35:31]produce_requested_data [10:35:31]requested_item fm.sn is exist - process it [10:35:31]wFMCommunicate request_size=4 [10:35:31]MH_SAM_APDU [10:35:31]CAPDU: 80 11 00 00 [10:35:31]Write to MH i2c: E2 08 00 F3 9A 80 11 00 00 00 00 00 00 07 [10:35:31]Write i2c OK [10:35:31]MH_I2C_Read... [10:35:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:35:31]Read from MH i2c: E2 [10:35:31]MH_I2C_Read... [10:35:31]Read from MH i2c: E2 17 00 [10:35:31]MH_I2C_Read... [10:35:31]Read from MH i2c: E2 17 00 F3 9A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 5A [10:35:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [10:35:31]wFMCommunicate OK [10:35:31]requested_item fd.num is exist - process it [10:35:31]SAM_PROTO_GetFieldsCounters [10:35:31]wFMCommunicate request_size=4 [10:35:31]MH_SAM_APDU [10:35:31]CAPDU: 80 13 00 00 [10:35:31]Write to MH i2c: E2 08 00 F4 9A 80 13 00 00 00 00 00 00 0A [10:35:31]Write i2c OK [10:35:31]MH_I2C_Read... [10:35:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:35:31]Read from MH i2c: E2 [10:35:31]MH_I2C_Read... [10:35:31]Read from MH i2c: E2 62 00 [10:35:31]MH_I2C_Read... [10:35:31]Read from MH i2c: E2 62 00 F4 9A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 C8 94 01 00 0E 04 04 00 61 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 92 [10:35: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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 C8 94 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 36 00 00 00 5E 04 04 00 36 00 00 00 57 04 04 00 37 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:35:31]wFMCommunicate OK [10:35:31]SAM_PROTO_GetFieldsCounters done [10:35:31]requested_item shift.num is exist - process it [10:35:31]requested_item shift.opened is exist - process it [10:35:31]req_shift_opened [10:35:31]FM_GetShiftState [10:35:31]SAM_PROTO_GetShiftState [10:35:31]wFMCommunicate request_size=4 [10:35:31]MH_SAM_APDU [10:35:31]CAPDU: 80 13 01 00 [10:35:31]Write to MH i2c: E2 08 00 F5 9A 80 13 01 00 00 00 00 00 0C [10:35:31]Write i2c OK [10:35:31]MH_I2C_Read... [10:35:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:35:31]Read from MH i2c: E2 [10:35:31]MH_I2C_Read... [10:35:31]Read from MH i2c: E2 0E 00 [10:35:31]MH_I2C_Read... [10:35:31]Read from MH i2c: E2 0E 00 F5 9A 00 09 00 01 04 26 72 66 00 00 00 00 90 00 1A [10:35:31]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [10:35:31]wFMCommunicate OK [10:35:31]SAM_PROTO_GetShiftState done [10:35:31]FM_GetShiftState done [10:35:31]req_shift_opened done [10:35:31]requested_item shift.open_date is exist - process it [10:35:31]req_shift_open_date [10:35:31]req_shift_open_date done [10:35:31]produce_requested_data done [10:35:31]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103624,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [10:35:31]process_action_free close_receipt [10:35:31]json_value_free [10:35:31]json_value_free done [10:35:31]process_json_proto returns [10:35:31]Send response to host [10:35:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103624,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [10:35:31]free response buf [10:35:31]execute_script done [10:35:31]execute_script returns [10:35:31]free content buf [10:35:31]Sock 9.Close socket [10:35:31]Sock 9.Thread stoped [10:35:35]OFD Sender: No OFD packet to send [10:35:40]OFD Sender: No OFD packet to send [10:35:45]OFD Sender: No OFD packet to send [10:35:50]OFD Sender: No OFD packet to send [10:35:55]accept exits with 7 [10:35:55]New connection [10:35:55]New thread 3067084132 created [10:35:55]Thread 3067227492 joined [10:35:55]Waiting for new connection... [10:35:55] Sock 7.Parse request [10:35:55]Sock 7.Check first char [10:35:55]Sock 7.First char is OK [10:35:55]request: POST /json_proto HTTP/1.0 [10:35:55]Method: POST [10:35:55]URL: /json_proto [10:35:55]Method is POST - this is cgi request [10:35:55]url: /json_proto [10:35:55]query_string will be loaded in cgi processing [10:35:55]execute_cgi json_proto POST (null) [10:35:55]execute_cgi path=json_proto method=POST [10:35:55]POST find Content-Length [10:35:55]Host: 172.17.38.133:8080 [10:35:55]Content-Length: 678 [10:35:55]Content-Type: application/json [10:35:55] [10:35:55]POST finish read [10:35:55]Found Content-Length = 678 [10:35:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672863", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 10.550, "sum" : 700.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:35:55]execute_script... [10:35: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)672863", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 10.550, "sum" : 700.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:35:55]POST & json_proto [10:35:55]process_json_proto [10:35:55]json parsed OK: [10:35:55]protocol is kg_v1.0 [10:35:55]action value=close_receipt [10:35:55]process_action close_receipt [10:35:55]cmd_close_receipt [10:35:55]MH_GetDate [10:35:55]Write to MH i2c: F0 00 00 F6 9A 7F [10:35:55]Write i2c OK [10:35:55]MH_I2C_Read... [10:35:55]Read from MH i2c: F0 [10:35:55]MH_I2C_Read... [10:35:55]Read from MH i2c: F0 09 00 [10:35:55]MH_I2C_Read... [10:35:55]Read from MH i2c: F0 09 00 F6 9A 00 96 B4 72 66 BD 8F 7C 64 D6 [10:35:55]GetLastDocTimeStamp 1718793339 [10:35:55]current date 1718793366 [10:35:55]FM_GetShiftState [10:35:55]SAM_PROTO_GetShiftState [10:35:55]wFMCommunicate request_size=4 [10:35:55]MH_SAM_APDU [10:35:55]CAPDU: 80 13 01 00 [10:35:55]Write to MH i2c: E2 08 00 F7 9A 80 13 01 00 00 00 00 00 0E [10:35:55]Write i2c OK [10:35:55]MH_I2C_Read... [10:35:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:35:55]Read from MH i2c: E2 [10:35:55]MH_I2C_Read... [10:35:55]Read from MH i2c: E2 0E 00 [10:35:55]MH_I2C_Read... [10:35:55]Read from MH i2c: E2 0E 00 F7 9A 00 09 00 01 04 26 72 66 00 00 00 00 90 00 1C [10:35:55]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [10:35:55]wFMCommunicate OK [10:35:55]SAM_PROTO_GetShiftState done [10:35:55]FM_GetShiftState done [10:35:55]opened in 1718756868 [10:35:55]opened+sec_in_day 1718843268 [10:35:55]quantity*price = 70052 [10:35:55]sum+1 = 70053 [10:35:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.52 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.39 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 55 19.06.2024 10:36 Смена: 353 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103625 ФПД: 4437144333803 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T103606&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103625&fm=4437144333803&tin=02508201610067®Number=0000000000092785&sum=70000 [10:35:56]StoreToDocumentArchive [10:35:56]shift 353 fd 103625 [10:35:56]save to /storage/0353/doc_00103625 [10:35:56]save last doc name /storage/0353/doc_00103625 to /storage/kkm_last_doc_name [10:35:56]save OK [10:35:56]Clear old archive folders... [10:35:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:35:56]tlvbuf is 013F6220 [10:35:56]SAM_PROTO_ClearQueue [10:35:56]wFMCommunicate request_size=4 [10:35:56]MH_SAM_APDU [10:35:56]CAPDU: 80 09 00 00 [10:35:56]Write to MH i2c: E2 08 00 04 9B 80 09 00 00 00 00 00 00 11 [10:35:56]Write i2c OK [10:35:56]MH_I2C_Read... [10:35:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:35:56]Read from MH i2c: E2 [10:35:56]MH_I2C_Read... [10:35:56]Read from MH i2c: E2 03 00 [10:35:56]MH_I2C_Read... [10:35:56]Read from MH i2c: E2 03 00 04 9B 00 90 00 13 [10:35:56]RAPDU: 90 00 [10:35:56]wFMCommunicate OK [10:35:56]SAM_PROTO_ClearQueue done [10:35:56]KKMCreateOFDPacket [10:35:56]OFDProtocolAddRootSTLVToBuf [10:35:56]FM_MakeSignedData [10:35:56]FM_MakeSignedData [10:35:56]SAM_PROTO_SignData [10:35:56]wFMCommunicate request_size=4 [10:35:56]MH_SAM_APDU [10:35:56]CAPDU: 80 0D 01 02 [10:35:56]Write to MH i2c: E2 08 00 05 9B 80 0D 01 02 00 00 00 00 19 [10:35:56]Write i2c OK [10:35:56]MH_I2C_Read... [10:35:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:35:56]Read from MH i2c: E2 [10:35:56]MH_I2C_Read... [10:35:56]Read from MH i2c: E2 03 00 [10:35:56]MH_I2C_Read... [10:35:56]Read from MH i2c: E2 03 00 05 9B 00 90 00 14 [10:35:56]RAPDU: 90 00 [10:35:56]wFMCommunicate OK [10:35:56]wFMCommunicate request_size=255 [10:35:56]MH_SAM_APDU [10:35: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 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 96 B4 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 C9 94 01 00 35 04 06 00 04 [10:35:56]Write to MH i2c: E2 02 01 06 9B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 96 B4 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 C9 94 01 00 35 04 06 00 04 00 00 02 [10:35:56]Write i2c OK [10:35:56]MH_I2C_Read... [10:35:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:35:56]Read from MH i2c: E2 [10:35:56]MH_I2C_Read... [10:35:56]Read from MH i2c: E2 03 00 [10:35:56]MH_I2C_Read... [10:35:56]Read from MH i2c: E2 03 00 06 9B 00 90 00 15 [10:35:56]RAPDU: 90 00 [10:35:56]wFMCommunicate OK [10:35:56]wFMCommunicate request_size=10 [10:35:56]MH_SAM_APDU [10:35:56]CAPDU: 80 0D 02 02 05 09 1A 69 6D EB [10:35:56]Write to MH i2c: E2 0D 00 07 9B 80 0D 02 02 05 00 09 1A 69 6D EB 00 00 0A [10:35:56]Write i2c OK [10:35:56]MH_I2C_Read... [10:35:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:35:56]Read from MH i2c: E2 [10:35:56]MH_I2C_Read... [10:35:56]Read from MH i2c: E2 03 00 [10:35:56]MH_I2C_Read... [10:35:56]Read from MH i2c: E2 03 00 07 9B 00 90 00 16 [10:35:56]RAPDU: 90 00 [10:35:56]wFMCommunicate OK [10:35:56]wFMCommunicate request_size=4 [10:35:56]MH_SAM_APDU [10:35:56]CAPDU: 80 0D 03 02 [10:35:56]Write to MH i2c: E2 08 00 08 9B 80 0D 03 02 00 00 00 00 1E [10:35:56]Write i2c OK [10:35:56]MH_I2C_Read... [10:35:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:35:56]Read from MH i2c: E2 [10:35:56]MH_I2C_Read... [10:35:56]Read from MH i2c: E2 0B 00 [10:35:56]MH_I2C_Read... [10:35:56]Read from MH i2c: E2 0B 00 08 9B 00 CF 20 E6 4B BA B1 B9 86 90 00 E9 [10:35:56]RAPDU: CF 20 E6 4B BA B1 B9 86 90 00 [10:35:56]wFMCommunicate OK [10:35:56]SAM_PROTO_SignData done [10:35:56]FM_MakeSignedData done [10:35:56]CreateOFDProtocolMessage [10:35:56]wFMCommunicate request_size=4 [10:35:56]MH_SAM_APDU [10:35:56]CAPDU: 80 11 00 00 [10:35:56]Write to MH i2c: E2 08 00 09 9B 80 11 00 00 00 00 00 00 1E [10:35:56]Write i2c OK [10:35:56]MH_I2C_Read... [10:35:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:35:56]Read from MH i2c: E2 [10:35:56]MH_I2C_Read... [10:35:56]Read from MH i2c: E2 17 00 [10:35:56]MH_I2C_Read... [10:35:56]Read from MH i2c: E2 17 00 09 9B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 71 [10:35:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [10:35:56]wFMCommunicate OK [10:35:56]CreateOFDProtocolMessage done [10:35:56]OFDSenderStorePacket 103625 [10:35:56]StoreOFDPacket docnum=103625 [10:35:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 CC 1D 07 01 98 0F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 96 B4 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 C9 94 01 00 35 04 06 00 04 09 1A 69 6D EB CF 20 E6 4B BA B1 B9 86 [10:35:56]CheckFolder [10:35:56]dirname=/storage/ofd_packets [10:35:56]CheckFolder done [10:35:56]ProducePacketName [10:35:56]name=ofd_packets/00103625 [10:35:56]NVStorageSaveData ofd_packets/00103625 [10:35:56]File name is /storage/ofd_packets/00103625 [10:35:56]Write 301 bytes [10:35:56]NVStorageSaveData done [10:35:56]OFDSenderStorePacket done [10:35:56]KKMCreateOFDPacket done [10:35:56]NVStorageSaveData kkm_last_timestamp [10:35:56]File name is /storage/kkm_last_timestamp [10:35:56]Write 4 bytes [10:35:56]NVStorageSaveData done [10:35:56]ExternCall_PrintAddStr [10:35:56]wPrintStart [10:35:56]Write to MH i2c: 01 00 00 0A 9B A5 [10:35:56]Write i2c OK [10:35:56]MH_I2C_Read... [10:35:56]Read from MH i2c: 01 [10:35:56]MH_I2C_Read... [10:35:56]Read from MH i2c: 01 07 00 [10:35:56]MH_I2C_Read... [10:35:56]Read from MH i2c: 01 07 00 0A 9B 00 00 00 00 00 FF 0F BA [10:35:56]RasterBufferAndPrint [10:35:56]line Счет N : (1)672863 [10:35:56]line ИНН: 02508201610067 [10:35:56]line Контрольно-Кассовый Чек [10:35:56]line ПРОДАЖА [10:35:56]line ТРК (МРК, ГНК) : 32 [10:35:56]line Товар: 2710124130 [10:35:56]line Аи-92-К-5 [10:35:56]line 10.550 * 66.40 [10:35:56]line = 700.52 [10:35:56]line НДС 12% НСП 1% [10:35:56]line > о реализуемом товаре [10:35:56]line ОКРУГЛЕНИЕ: -0.52 [10:35:56]line ИТОГО: 700.00 [10:35:56]line Внесено: 700.00 [10:35:56]line СДАЧА: 0.00 [10:35:56]line НСП 1% : 6.20 [10:35:56]line НДС 12% : 74.39 [10:35:56]line Наличными: 700.00 [10:35:56]line Безнал.: 0.00 [10:35:56]line Место: АЗС № 120 "Партнер Нефть" [10:35:56]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [10:35:56]line СНО: Общий режим [10:35:56]line Чек 55 19.06.2024 10:36 [10:35:56]line Смена: 353 ФФД: 1.0 [10:35:56]line ЗНМ: 0300000164 [10:35:56]line РНМ: 0000000000092785 [10:35:56]line Версия ККМ: 001 [10:35:56]line ФМ: 0000000000875093 [10:35:56]line ФД: 103625 [10:35:56]line ФПД: 4437144333803 [10:35:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T103606&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103625&fm=4437144333803&tin=02508201610067®Number=0000000000092785&sum=70000 [10:35:57]written 0, free lines is 4095 [10:35:57]OFD Sender: Processing packet 103625 [packets to send 17, broken 16] [10:35:57]ProducePacketName [10:35:57]name=ofd_packets/00103625 [10:35:57]OFD Sender: To server: pG, [10:35:57]CommunicateWithHost lk.salyk.kg:30040 [10:35:57]ConnectInit lk.salyk.kg [10:35:57]Connected sock=10 [10:35: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 39 33 0F 01 00 00 CC 1D 07 01 98 0F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 96 B4 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 C9 94 01 00 35 04 06 00 04 09 1A 69 6D EB CF 20 E6 4B BA B1 B9 86 [10:35: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 39 33 4F 00 00 00 F2 BA 47 00 A2 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 39 33 10 04 04 00 C9 94 01 00 F4 03 04 00 20 5B 72 66 B6 04 01 00 00 98 16 BB 3F 3A D9 39 31 [10:35:57]CommunicateWithHost err = 0 [10:35:57]CheckOFDResponse [10:35:57]1017 (14) - 77093643461234 [10:35:57]1041 (16) - 0000000000875093 [10:35:57]1040 (4) - 103625 [10:35:57]1012 (4) - 19.06.2024 04:14 [10:35:57]1206 (1) - 0 [10:35:57]OFD Sender: Remove packet 103625 [10:35:57]ProducePacketName [10:35:57]name=ofd_packets/00103625 [10:35:57]NVStorageDeleteData [10:35:57]Write to MH i2c: 01 00 00 35 9B D0 [10:35:57]Write i2c OK [10:35:57]MH_I2C_Read... [10:35:57]Read from MH i2c: 01 [10:35:57]MH_I2C_Read... [10:35:57]Read from MH i2c: 01 07 00 [10:35:57]MH_I2C_Read... [10:35:57]Read from MH i2c: 01 07 00 35 9B 00 00 00 00 00 CA 0C AD [10:35:57]RasterBufferAndPrint [10:35:57]line [10:35:57]line [10:35:57]line [10:35:57]line [10:35:57]line [10:35:57]written 0, free lines is 3280 [10:35:57]MH_Cut [10:35:57]Write to MH i2c: D1 01 00 3C 9B 01 A9 [10:35:57]Write i2c OK [10:35:57]MH_I2C_Read... [10:35:57]Read from MH i2c: D1 [10:35:57]MH_I2C_Read... [10:35:57]Read from MH i2c: D1 01 00 [10:35:57]MH_I2C_Read... [10:35:57]Read from MH i2c: D1 01 00 3C 9B 00 A8 [10:35:57]Write to MH i2c: 01 00 00 3D 9B D8 [10:35:57]Write i2c OK [10:35:57]MH_I2C_Read... [10:35:58]OFD Sender: No OFD packet to send [10:35:58]*** Cut start [10:35:58]*** Partial cut [10:35:58]*** CUTSNS_PIN = 1 [10:35:58]*** CUTSNS_PIN = 0 [10:35:58]*** Brake cut motor [10:35:58]Read from MH i2c: 01 [10:35:58]MH_I2C_Read... [10:35:58]*** Stop cut motor [10:35:58]*** Cut end [10:35:58]Read from MH i2c: 01 07 00 [10:35:58]MH_I2C_Read... [10:35:58]Read from MH i2c: 01 07 00 3D 9B 00 00 00 00 00 FF 0F ED [10:35:58]process_action close_receipt done [10:35:58]requested_data is exist [10:35:58]produce_requested_data [10:35:58]requested_item fm.sn is exist - process it [10:35:58]wFMCommunicate request_size=4 [10:35:58]MH_SAM_APDU [10:35:58]CAPDU: 80 11 00 00 [10:35:58]Write to MH i2c: E2 08 00 3E 9B 80 11 00 00 00 00 00 00 53 [10:35:58]Write i2c OK [10:35:58]MH_I2C_Read... [10:35:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:35:58]Read from MH i2c: E2 [10:35:58]MH_I2C_Read... [10:35:58]Read from MH i2c: E2 17 00 [10:35:58]MH_I2C_Read... [10:35:58]Read from MH i2c: E2 17 00 3E 9B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 A6 [10:35:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [10:35:58]wFMCommunicate OK [10:35:58]requested_item fd.num is exist - process it [10:35:58]SAM_PROTO_GetFieldsCounters [10:35:58]wFMCommunicate request_size=4 [10:35:58]MH_SAM_APDU [10:35:58]CAPDU: 80 13 00 00 [10:35:58]Write to MH i2c: E2 08 00 3F 9B 80 13 00 00 00 00 00 00 56 [10:35:58]Write i2c OK [10:35:58]MH_I2C_Read... [10:35:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:35:59]Read from MH i2c: E2 [10:35:59]MH_I2C_Read... [10:35:59]Read from MH i2c: E2 62 00 [10:35:59]MH_I2C_Read... [10:35:59]Read from MH i2c: E2 62 00 3F 9B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 C9 94 01 00 0E 04 04 00 61 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 E2 [10:35: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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 C9 94 01 00 0E 04 04 00 61 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 [10:35:59]wFMCommunicate OK [10:35:59]SAM_PROTO_GetFieldsCounters done [10:35:59]requested_item shift.num is exist - process it [10:35:59]requested_item shift.opened is exist - process it [10:35:59]req_shift_opened [10:35:59]FM_GetShiftState [10:35:59]SAM_PROTO_GetShiftState [10:35:59]wFMCommunicate request_size=4 [10:35:59]MH_SAM_APDU [10:35:59]CAPDU: 80 13 01 00 [10:35:59]Write to MH i2c: E2 08 00 40 9B 80 13 01 00 00 00 00 00 58 [10:35:59]Write i2c OK [10:35:59]MH_I2C_Read... [10:35:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:35:59]Read from MH i2c: E2 [10:35:59]MH_I2C_Read... [10:35:59]Read from MH i2c: E2 0E 00 [10:35:59]MH_I2C_Read... [10:35:59]Read from MH i2c: E2 0E 00 40 9B 00 09 00 01 04 26 72 66 00 00 00 00 90 00 66 [10:35:59]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [10:35:59]wFMCommunicate OK [10:35:59]SAM_PROTO_GetShiftState done [10:35:59]FM_GetShiftState done [10:35:59]req_shift_opened done [10:35:59]requested_item shift.open_date is exist - process it [10:35:59]req_shift_open_date [10:35:59]req_shift_open_date done [10:35:59]produce_requested_data done [10:35:59]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103625,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [10:35:59]process_action_free close_receipt [10:35:59]json_value_free [10:35:59]json_value_free done [10:35:59]process_json_proto returns [10:35:59]Send response to host [10:35:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103625,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [10:35:59]free response buf [10:35:59]execute_script done [10:35:59]execute_script returns [10:35:59]free content buf [10:35:59]Sock 7.Close socket [10:35:59]Sock 7.Thread stoped [10:36:03]OFD Sender: No OFD packet to send [10:36:08]OFD Sender: No OFD packet to send [10:36:13]OFD Sender: No OFD packet to send [10:36:18]OFD Sender: No OFD packet to send [10:36:23]OFD Sender: No OFD packet to send [10:36:28]OFD Sender: No OFD packet to send [10:36:33]OFD Sender: No OFD packet to send [10:36:38]OFD Sender: No OFD packet to send [10:36:43]OFD Sender: No OFD packet to send [10:36:48]OFD Sender: No OFD packet to send [10:36:53]OFD Sender: No OFD packet to send [10:36:58]OFD Sender: No OFD packet to send [10:37:03]OFD Sender: No OFD packet to send [10:37:08]OFD Sender: No OFD packet to send [10:37:13]OFD Sender: No OFD packet to send [10:37:18]OFD Sender: No OFD packet to send [10:37:23]OFD Sender: No OFD packet to send [10:37:28]OFD Sender: No OFD packet to send [10:37:33]OFD Sender: No OFD packet to send [10:37:38]OFD Sender: No OFD packet to send [10:37:43]OFD Sender: No OFD packet to send [10:37:48]OFD Sender: No OFD packet to send [10:37:53]OFD Sender: No OFD packet to send [10:37:58]OFD Sender: No OFD packet to send [10:38:03]OFD Sender: No OFD packet to send [10:38:08]OFD Sender: No OFD packet to send [10:38:13]OFD Sender: No OFD packet to send [10:38:18]OFD Sender: No OFD packet to send [10:38:23]accept exits with 9 [10:38:23]New connection [10:38:23]New thread 3067227492 created [10:38:23]Thread 3067084132 joined [10:38:23]Waiting for new connection... [10:38:23] Sock 9.Parse request [10:38:23]Sock 9.Check first char [10:38:23]Sock 9.First char is OK [10:38:23]request: POST /json_proto HTTP/1.0 [10:38:23]Method: POST [10:38:23]URL: /json_proto [10:38:23]Method is POST - this is cgi request [10:38:23]url: /json_proto [10:38:23]query_string will be loaded in cgi processing [10:38:23]execute_cgi json_proto POST (null) [10:38:23]execute_cgi path=json_proto method=POST [10:38:23]POST find Content-Length [10:38:23]Host: 172.17.38.133:8080 [10:38:23]Content-Length: 1206 [10:38:23]Content-Type: application/json [10:38:23] [10:38:23]POST finish read [10:38:23]Found Content-Length = 1206 [10:38:23]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 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. \u000A\u0421\u0447\u0435\u0442 N : (1)672864\u000A19.06.2024 10:15\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 42\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 10.000 x 66.40\u000A\u0418\u0422\u041E\u0413: 664.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A81670\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:38:23]execute_script... [10:38:23]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 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. \u000A\u0421\u0447\u0435\u0442 N : (1)672864\u000A19.06.2024 10:15\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 42\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 10.000 x 66.40\u000A\u0418\u0422\u041E\u0413: 664.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A81670\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:38:23]POST & json_proto [10:38:23]process_json_proto [10:38:23]json parsed OK: [10:38:23]protocol is kg_v1.0 [10:38:23]action value=print_text [10:38:23]process_action print_text [10:38:23]cmd_print_text [10:38:23]ExternCall_PrintAddStr [10:38:23]wPrintStart [10:38:23]Write to MH i2c: 01 00 00 41 9B DC [10:38:23]Write i2c OK [10:38:23]MH_I2C_Read... [10:38:23]Read from MH i2c: 01 [10:38:23]MH_I2C_Read... [10:38:23]Read from MH i2c: 01 07 00 [10:38:23]MH_I2C_Read... [10:38:23]Read from MH i2c: 01 07 00 41 9B 00 00 00 00 00 FF 0F F1 [10:38:23]RasterBufferAndPrint [10:38:23]line *****ТОВАРНЫЙ ЧЕК***** [10:38:23]line АЗС 120 [10:38:23]line Партнер нефть [10:38:23]line 02508201610067 [10:38:23]line Кассир : Байбугуева Г. [10:38:23]line Счет N : (1)672864 [10:38:23]line 19.06.2024 10:15 [10:38:23]line ПРОДАЖА [10:38:23]line ТРК (МРК, ГНК): 42 [10:38:23]line Вид ГСМ : 2710124130 [10:38:23]line Аи-92-К-5 [10:38:23]line 10.000 x 66.40 [10:38:23]line ИТОГ: 664.00 [10:38:23]line Тип оплаты: Талоны: Топливная Карта [10:38:23]line 81670 [10:38:23]line ______________________ [10:38:23]line (подпись) [10:38:23]written 0, free lines is 4095 [10:38:23]OFD Sender: No OFD packet to send [10:38:23]Write to MH i2c: 01 00 00 55 9B F0 [10:38:23]Write i2c OK [10:38:23]MH_I2C_Read... [10:38:23]Read from MH i2c: 01 [10:38:23]MH_I2C_Read... [10:38:23]Read from MH i2c: 01 07 00 [10:38:23]MH_I2C_Read... [10:38:23]Read from MH i2c: 01 07 00 55 9B 00 00 00 00 00 11 0E 16 [10:38:23]RasterBufferAndPrint [10:38:23]line [10:38:23]line [10:38:23]line [10:38:23]line [10:38:23]line [10:38:23]written 0, free lines is 3602 [10:38:23]MH_Cut [10:38:23]Write to MH i2c: D1 01 00 5C 9B 01 C9 [10:38:23]Write i2c OK [10:38:23]MH_I2C_Read... [10:38:23]Read from MH i2c: D1 [10:38:23]MH_I2C_Read... [10:38:23]Read from MH i2c: D1 01 00 [10:38:23]MH_I2C_Read... [10:38:23]Read from MH i2c: D1 01 00 5C 9B 00 C8 [10:38:23]Write to MH i2c: 01 00 00 5D 9B F8 [10:38:23]Write i2c OK [10:38:23]MH_I2C_Read... [10:38:23]*** Cut start [10:38:23]*** Partial cut [10:38:23]*** CUTSNS_PIN = 1 [10:38:23]*** CUTSNS_PIN = 0 [10:38:24]*** Brake cut motor [10:38:24]Read from MH i2c: 01 [10:38:24]MH_I2C_Read... [10:38:24]Read from MH i2c: 01 07 00 [10:38:24]MH_I2C_Read... [10:38:24]*** Stop cut motor [10:38:24]*** Cut end [10:38:24]Read from MH i2c: 01 07 00 5D 9B 00 00 00 00 00 FF 0F 0D [10:38:24]process_action print_text done [10:38:24]requested_data is exist [10:38:24]produce_requested_data [10:38:24]requested_item fm.sn is exist - process it [10:38:24]wFMCommunicate request_size=4 [10:38:24]MH_SAM_APDU [10:38:24]CAPDU: 80 11 00 00 [10:38:24]Write to MH i2c: E2 08 00 5E 9B 80 11 00 00 00 00 00 00 73 [10:38:24]Write i2c OK [10:38:24]MH_I2C_Read... [10:38:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:38:24]Read from MH i2c: E2 [10:38:24]MH_I2C_Read... [10:38:24]Read from MH i2c: E2 17 00 [10:38:24]MH_I2C_Read... [10:38:24]Read from MH i2c: E2 17 00 5E 9B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 C6 [10:38:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [10:38:24]wFMCommunicate OK [10:38:24]requested_item fd.num is exist - process it [10:38:24]SAM_PROTO_GetFieldsCounters [10:38:24]wFMCommunicate request_size=4 [10:38:24]MH_SAM_APDU [10:38:24]CAPDU: 80 13 00 00 [10:38:24]Write to MH i2c: E2 08 00 5F 9B 80 13 00 00 00 00 00 00 76 [10:38:24]Write i2c OK [10:38:24]MH_I2C_Read... [10:38:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:38:24]Read from MH i2c: E2 [10:38:24]MH_I2C_Read... [10:38:24]Read from MH i2c: E2 62 00 [10:38:24]MH_I2C_Read... [10:38:24]Read from MH i2c: E2 62 00 5F 9B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 C9 94 01 00 0E 04 04 00 61 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 02 [10:38: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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 C9 94 01 00 0E 04 04 00 61 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 [10:38:24]wFMCommunicate OK [10:38:24]SAM_PROTO_GetFieldsCounters done [10:38:24]requested_item shift.num is exist - process it [10:38:24]requested_item shift.opened is exist - process it [10:38:24]req_shift_opened [10:38:24]FM_GetShiftState [10:38:24]SAM_PROTO_GetShiftState [10:38:24]wFMCommunicate request_size=4 [10:38:24]MH_SAM_APDU [10:38:24]CAPDU: 80 13 01 00 [10:38:24]Write to MH i2c: E2 08 00 60 9B 80 13 01 00 00 00 00 00 78 [10:38:24]Write i2c OK [10:38:24]MH_I2C_Read... [10:38:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:38:24]Read from MH i2c: E2 [10:38:24]MH_I2C_Read... [10:38:24]Read from MH i2c: E2 0E 00 [10:38:24]MH_I2C_Read... [10:38:24]Read from MH i2c: E2 0E 00 60 9B 00 09 00 01 04 26 72 66 00 00 00 00 90 00 86 [10:38:24]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [10:38:24]wFMCommunicate OK [10:38:24]SAM_PROTO_GetShiftState done [10:38:24]FM_GetShiftState done [10:38:24]req_shift_opened done [10:38:24]requested_item shift.open_date is exist - process it [10:38:24]req_shift_open_date [10:38:24]req_shift_open_date done [10:38:24]produce_requested_data done [10:38:24]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103625,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [10:38:24]process_action_free print_text [10:38:24]json_value_free [10:38:24]json_value_free done [10:38:24]process_json_proto returns [10:38:24]Send response to host [10:38:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103625,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [10:38:24]free response buf [10:38:24]execute_script done [10:38:24]execute_script returns [10:38:24]free content buf [10:38:24]Sock 9.Close socket [10:38:24]Sock 9.Thread stoped [10:38:28]OFD Sender: No OFD packet to send [10:38:33]OFD Sender: No OFD packet to send [10:38:38]OFD Sender: No OFD packet to send [10:38:43]OFD Sender: No OFD packet to send [10:38:48]OFD Sender: No OFD packet to send [10:38:52]accept exits with 7 [10:38:52]New connection [10:38:52]New thread 3067084132 created [10:38:52]Thread 3067227492 joined [10:38:52]Waiting for new connection... [10:38:52] Sock 7.Parse request [10:38:52]Sock 7.Check first char [10:38:52]Sock 7.First char is OK [10:38:52]request: POST /json_proto HTTP/1.0 [10:38:52]Method: POST [10:38:52]URL: /json_proto [10:38:52]Method is POST - this is cgi request [10:38:52]url: /json_proto [10:38:52]query_string will be loaded in cgi processing [10:38:52]execute_cgi json_proto POST (null) [10:38:52]execute_cgi path=json_proto method=POST [10:38:52]POST find Content-Length [10:38:52]Host: 172.17.38.133:8080 [10:38:52]Content-Length: 682 [10:38:52]Content-Type: application/json [10:38:52] [10:38:52]POST finish read [10:38:52]Found Content-Length = 682 [10:38:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672865", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:38:52]execute_script... [10:38: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)672865", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:38:52]POST & json_proto [10:38:52]process_json_proto [10:38:52]json parsed OK: [10:38:52]protocol is kg_v1.0 [10:38:52]action value=close_receipt [10:38:52]process_action close_receipt [10:38:52]cmd_close_receipt [10:38:52]MH_GetDate [10:38:52]Write to MH i2c: F0 00 00 61 9B EB [10:38:52]Write i2c OK [10:38:52]MH_I2C_Read... [10:38:52]Read from MH i2c: F0 [10:38:52]MH_I2C_Read... [10:38:52]Read from MH i2c: F0 09 00 [10:38:52]MH_I2C_Read... [10:38:52]Read from MH i2c: F0 09 00 61 9B 00 48 B5 72 66 BD 8F 7C 64 F5 [10:38:52]GetLastDocTimeStamp 1718793366 [10:38:52]current date 1718793544 [10:38:52]FM_GetShiftState [10:38:52]SAM_PROTO_GetShiftState [10:38:52]wFMCommunicate request_size=4 [10:38:52]MH_SAM_APDU [10:38:52]CAPDU: 80 13 01 00 [10:38:52]Write to MH i2c: E2 08 00 62 9B 80 13 01 00 00 00 00 00 7A [10:38:52]Write i2c OK [10:38:52]MH_I2C_Read... [10:38:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:38:52]Read from MH i2c: E2 [10:38:52]MH_I2C_Read... [10:38:52]Read from MH i2c: E2 0E 00 [10:38:52]MH_I2C_Read... [10:38:52]Read from MH i2c: E2 0E 00 62 9B 00 09 00 01 04 26 72 66 00 00 00 00 90 00 88 [10:38:52]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [10:38:52]wFMCommunicate OK [10:38:52]SAM_PROTO_GetShiftState done [10:38:52]FM_GetShiftState done [10:38:52]opened in 1718756868 [10:38:52]opened+sec_in_day 1718843268 [10:38:52]quantity*price = 100064 [10:38:52]sum+1 = 100066 [10:38:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.65 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 56 19.06.2024 10:39 Смена: 353 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103626 ФПД: 202589612221929 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T103904&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103626&fm=202589612221929&tin=02508201610067®Number=0000000000092785&sum=100000 [10:38:54]StoreToDocumentArchive [10:38:54]shift 353 fd 103626 [10:38:54]save to /storage/0353/doc_00103626 [10:38:54]save last doc name /storage/0353/doc_00103626 to /storage/kkm_last_doc_name [10:38:54]save OK [10:38:54]Clear old archive folders... [10:38:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:38:54]tlvbuf is B6F1D5D0 [10:38:54]SAM_PROTO_ClearQueue [10:38:54]wFMCommunicate request_size=4 [10:38:54]MH_SAM_APDU [10:38:54]CAPDU: 80 09 00 00 [10:38:54]Write to MH i2c: E2 08 00 6F 9B 80 09 00 00 00 00 00 00 7C [10:38:54]Write i2c OK [10:38:54]MH_I2C_Read... [10:38:54]Read from MH i2c: E2 [10:38:54]MH_I2C_Read... [10:38:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:38:54]Read from MH i2c: E2 03 00 [10:38:54]MH_I2C_Read... [10:38:54]Read from MH i2c: E2 03 00 6F 9B 00 90 00 7E [10:38:54]RAPDU: 90 00 [10:38:54]wFMCommunicate OK [10:38:54]SAM_PROTO_ClearQueue done [10:38:54]KKMCreateOFDPacket [10:38:54]OFDProtocolAddRootSTLVToBuf [10:38:54]FM_MakeSignedData [10:38:54]FM_MakeSignedData [10:38:54]SAM_PROTO_SignData [10:38:54]wFMCommunicate request_size=4 [10:38:54]MH_SAM_APDU [10:38:54]CAPDU: 80 0D 01 02 [10:38:54]Write to MH i2c: E2 08 00 70 9B 80 0D 01 02 00 00 00 00 84 [10:38:54]Write i2c OK [10:38:54]MH_I2C_Read... [10:38:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:38:54]Read from MH i2c: E2 [10:38:54]MH_I2C_Read... [10:38:54]Read from MH i2c: E2 03 00 [10:38:54]MH_I2C_Read... [10:38:54]Read from MH i2c: E2 03 00 70 9B 00 90 00 7F [10:38:54]RAPDU: 90 00 [10:38:54]wFMCommunicate OK [10:38:54]wFMCommunicate request_size=255 [10:38:54]MH_SAM_APDU [10:38: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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 48 B5 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 CA 94 01 00 35 04 06 00 B8 [10:38:54]Write to MH i2c: E2 02 01 71 9B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 48 B5 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 CA 94 01 00 35 04 06 00 B8 00 00 14 [10:38:54]Write i2c OK [10:38:54]MH_I2C_Read... [10:38:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:38:54]Read from MH i2c: E2 [10:38:54]MH_I2C_Read... [10:38:54]Read from MH i2c: E2 03 00 [10:38:54]MH_I2C_Read... [10:38:54]Read from MH i2c: E2 03 00 71 9B 00 90 00 80 [10:38:54]RAPDU: 90 00 [10:38:54]wFMCommunicate OK [10:38:54]wFMCommunicate request_size=10 [10:38:54]MH_SAM_APDU [10:38:54]CAPDU: 80 0D 02 02 05 41 11 DF 25 E9 [10:38:54]Write to MH i2c: E2 0D 00 72 9B 80 0D 02 02 05 00 41 11 DF 25 E9 00 00 D0 [10:38:54]Write i2c OK [10:38:54]MH_I2C_Read... [10:38:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:38:54]Read from MH i2c: E2 [10:38:54]MH_I2C_Read... [10:38:54]Read from MH i2c: E2 03 00 [10:38:54]MH_I2C_Read... [10:38:54]Read from MH i2c: E2 03 00 72 9B 00 90 00 81 [10:38:54]RAPDU: 90 00 [10:38:54]wFMCommunicate OK [10:38:54]wFMCommunicate request_size=4 [10:38:54]MH_SAM_APDU [10:38:54]CAPDU: 80 0D 03 02 [10:38:54]Write to MH i2c: E2 08 00 73 9B 80 0D 03 02 00 00 00 00 89 [10:38:54]Write i2c OK [10:38:54]MH_I2C_Read... [10:38:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:38:54]Read from MH i2c: E2 [10:38:54]MH_I2C_Read... [10:38:54]Read from MH i2c: E2 0B 00 [10:38:54]MH_I2C_Read... [10:38:54]Read from MH i2c: E2 0B 00 73 9B 00 C3 86 4D 7E 7D 4F 0F 06 90 00 7F [10:38:54]RAPDU: C3 86 4D 7E 7D 4F 0F 06 90 00 [10:38:54]wFMCommunicate OK [10:38:54]SAM_PROTO_SignData done [10:38:54]FM_MakeSignedData done [10:38:54]CreateOFDProtocolMessage [10:38:54]wFMCommunicate request_size=4 [10:38:54]MH_SAM_APDU [10:38:54]CAPDU: 80 11 00 00 [10:38:54]Write to MH i2c: E2 08 00 74 9B 80 11 00 00 00 00 00 00 89 [10:38:54]Write i2c OK [10:38:54]MH_I2C_Read... [10:38:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:38:54]Read from MH i2c: E2 [10:38:54]MH_I2C_Read... [10:38:54]Read from MH i2c: E2 17 00 [10:38:54]MH_I2C_Read... [10:38:54]Read from MH i2c: E2 17 00 74 9B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 DC [10:38:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [10:38:54]wFMCommunicate OK [10:38:54]CreateOFDProtocolMessage done [10:38:54]OFDSenderStorePacket 103626 [10:38:54]StoreOFDPacket docnum=103626 [10:38:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 DB BD 07 01 15 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 48 B5 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 CA 94 01 00 35 04 06 00 B8 41 11 DF 25 E9 C3 86 4D 7E 7D 4F 0F 06 [10:38:54]CheckFolder [10:38:54]dirname=/storage/ofd_packets [10:38:54]CheckFolder done [10:38:54]ProducePacketName [10:38:54]name=ofd_packets/00103626 [10:38:54]NVStorageSaveData ofd_packets/00103626 [10:38:54]File name is /storage/ofd_packets/00103626 [10:38:54]Write 301 bytes [10:38:54]NVStorageSaveData done [10:38:54]OFDSenderStorePacket done [10:38:54]KKMCreateOFDPacket done [10:38:54]NVStorageSaveData kkm_last_timestamp [10:38:54]File name is /storage/kkm_last_timestamp [10:38:54]Write 4 bytes [10:38:54]NVStorageSaveData done [10:38:54]ExternCall_PrintAddStr [10:38:54]wPrintStart [10:38:54]Write to MH i2c: 01 00 00 75 9B 10 [10:38:54]Write i2c OK [10:38:54]MH_I2C_Read... [10:38:54]Read from MH i2c: 01 [10:38:54]MH_I2C_Read... [10:38:54]Read from MH i2c: 01 07 00 [10:38:54]MH_I2C_Read... [10:38:54]Read from MH i2c: 01 07 00 75 9B 00 00 00 00 00 FF 0F 25 [10:38:54]RasterBufferAndPrint [10:38:54]line Счет N : (1)672865 [10:38:54]line ИНН: 02508201610067 [10:38:54]line Контрольно-Кассовый Чек [10:38:54]line ПРОДАЖА [10:38:54]line ТРК (МРК, ГНК) : 32 [10:38:54]line Товар: 2710124130 [10:38:54]line Аи-92-К-5 [10:38:54]line 15.070 * 66.40 [10:38:54]line = 1000.65 [10:38:54]line НДС 12% НСП 1% [10:38:54]line > о реализуемом товаре [10:38:54]line ОКРУГЛЕНИЕ: -0.65 [10:38:54]line ИТОГО: 1000.00 [10:38:54]line Внесено: 1000.00 [10:38:54]line СДАЧА: 0.00 [10:38:54]line НСП 1% : 8.85 [10:38:54]line НДС 12% : 106.26 [10:38:54]line Наличными: 1000.00 [10:38:54]line Безнал.: 0.00 [10:38:54]line Место: АЗС № 120 "Партнер Нефть" [10:38:54]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [10:38:54]line СНО: Общий режим [10:38:54]line Чек 56 19.06.2024 10:39 [10:38:54]line Смена: 353 ФФД: 1.0 [10:38:54]line ЗНМ: 0300000164 [10:38:54]line РНМ: 0000000000092785 [10:38:54]line Версия ККМ: 001 [10:38:54]line ФМ: 0000000000875093 [10:38:54]line ФД: 103626 [10:38:54]line ФПД: 202589612221929 [10:38:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T103904&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103626&fm=202589612221929&tin=02508201610067®Number=0000000000092785&sum=100000 [10:38:54]OFD Sender: Processing packet 103626 [packets to send 17, broken 16] [10:38:54]ProducePacketName [10:38:54]name=ofd_packets/00103626 [10:38:54]OFD Sender: To server: pG, [10:38:54]CommunicateWithHost lk.salyk.kg:30040 [10:38:54]ConnectInit lk.salyk.kg [10:38:54]written 0, free lines is 4095 [10:38:55]Connected sock=10 [10:38: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 39 33 0F 01 00 00 DB BD 07 01 15 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 48 B5 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 CA 94 01 00 35 04 06 00 B8 41 11 DF 25 E9 C3 86 4D 7E 7D 4F 0F 06 [10:38: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 39 33 4F 00 00 00 54 23 47 00 69 0A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 CA 94 01 00 F4 03 04 00 D1 5B 72 66 B6 04 01 00 00 90 58 B1 6B A4 8F 6C CD [10:38:55]CommunicateWithHost err = 0 [10:38:55]CheckOFDResponse [10:38:55]1017 (14) - 77093643461234 [10:38:55]1041 (16) - 0000000000875093 [10:38:55]1040 (4) - 103626 [10:38:55]1012 (4) - 19.06.2024 04:17 [10:38:55]1206 (1) - 0 [10:38:55]OFD Sender: Remove packet 103626 [10:38:55]ProducePacketName [10:38:55]name=ofd_packets/00103626 [10:38:55]NVStorageDeleteData [10:38:55]Write to MH i2c: 01 00 00 A0 9B 3B [10:38:55]Write i2c OK [10:38:55]MH_I2C_Read... [10:38:55]Read from MH i2c: 01 [10:38:55]MH_I2C_Read... [10:38:55]Read from MH i2c: 01 07 00 [10:38:55]MH_I2C_Read... [10:38:55]Read from MH i2c: 01 07 00 A0 9B 00 00 00 00 00 D6 0C 24 [10:38:55]RasterBufferAndPrint [10:38:55]line [10:38:55]line [10:38:55]line [10:38:55]line [10:38:55]line [10:38:55]written 0, free lines is 3293 [10:38:55]MH_Cut [10:38:55]Write to MH i2c: D1 01 00 A7 9B 01 14 [10:38:55]Write i2c OK [10:38:55]MH_I2C_Read... [10:38:55]Read from MH i2c: D1 [10:38:55]MH_I2C_Read... [10:38:55]Read from MH i2c: D1 01 00 [10:38:55]MH_I2C_Read... [10:38:55]Read from MH i2c: D1 01 00 A7 9B 00 13 [10:38:55]Write to MH i2c: 01 00 00 A8 9B 43 [10:38:55]Write i2c OK [10:38:55]MH_I2C_Read... [10:38:55]OFD Sender: No OFD packet to send [10:38:56]*** Cut start [10:38:56]*** Partial cut [10:38:56]*** CUTSNS_PIN = 1 [10:38:56]*** CUTSNS_PIN = 0 [10:38:56]*** Brake cut motor [10:38:56]Read from MH i2c: 01 [10:38:56]MH_I2C_Read... [10:38:56]*** Stop cut motor [10:38:56]*** Cut end [10:38:56]Read from MH i2c: 01 07 00 [10:38:56]MH_I2C_Read... [10:38:56]Read from MH i2c: 01 07 00 A8 9B 00 00 00 00 00 FF 0F 58 [10:38:56]process_action close_receipt done [10:38:56]requested_data is exist [10:38:56]produce_requested_data [10:38:56]requested_item fm.sn is exist - process it [10:38:56]wFMCommunicate request_size=4 [10:38:56]MH_SAM_APDU [10:38:56]CAPDU: 80 11 00 00 [10:38:56]Write to MH i2c: E2 08 00 A9 9B 80 11 00 00 00 00 00 00 BE [10:38:56]Write i2c OK [10:38:56]MH_I2C_Read... [10:38:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:38:56]Read from MH i2c: E2 [10:38:56]MH_I2C_Read... [10:38:56]Read from MH i2c: E2 17 00 [10:38:56]MH_I2C_Read... [10:38:56]Read from MH i2c: E2 17 00 A9 9B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 11 [10:38:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [10:38:56]wFMCommunicate OK [10:38:56]requested_item fd.num is exist - process it [10:38:56]SAM_PROTO_GetFieldsCounters [10:38:56]wFMCommunicate request_size=4 [10:38:56]MH_SAM_APDU [10:38:56]CAPDU: 80 13 00 00 [10:38:56]Write to MH i2c: E2 08 00 AA 9B 80 13 00 00 00 00 00 00 C1 [10:38:56]Write i2c OK [10:38:56]MH_I2C_Read... [10:38:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:38:56]Read from MH i2c: E2 [10:38:56]MH_I2C_Read... [10:38:56]Read from MH i2c: E2 62 00 [10:38:56]MH_I2C_Read... [10:38:56]Read from MH i2c: E2 62 00 AA 9B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 CA 94 01 00 0E 04 04 00 61 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 51 [10:38: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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 CA 94 01 00 0E 04 04 00 61 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 [10:38:56]wFMCommunicate OK [10:38:56]SAM_PROTO_GetFieldsCounters done [10:38:56]requested_item shift.num is exist - process it [10:38:56]requested_item shift.opened is exist - process it [10:38:56]req_shift_opened [10:38:56]FM_GetShiftState [10:38:56]SAM_PROTO_GetShiftState [10:38:56]wFMCommunicate request_size=4 [10:38:56]MH_SAM_APDU [10:38:56]CAPDU: 80 13 01 00 [10:38:56]Write to MH i2c: E2 08 00 AB 9B 80 13 01 00 00 00 00 00 C3 [10:38:56]Write i2c OK [10:38:56]MH_I2C_Read... [10:38:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:38:56]Read from MH i2c: E2 [10:38:56]MH_I2C_Read... [10:38:56]Read from MH i2c: E2 0E 00 [10:38:56]MH_I2C_Read... [10:38:56]Read from MH i2c: E2 0E 00 AB 9B 00 09 00 01 04 26 72 66 00 00 00 00 90 00 D1 [10:38:57]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [10:38:57]wFMCommunicate OK [10:38:57]SAM_PROTO_GetShiftState done [10:38:57]FM_GetShiftState done [10:38:57]req_shift_opened done [10:38:57]requested_item shift.open_date is exist - process it [10:38:57]req_shift_open_date [10:38:57]req_shift_open_date done [10:38:57]produce_requested_data done [10:38:57]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103626,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [10:38:57]process_action_free close_receipt [10:38:57]json_value_free [10:38:57]json_value_free done [10:38:57]process_json_proto returns [10:38:57]Send response to host [10:38:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103626,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [10:38:57]free response buf [10:38:57]execute_script done [10:38:57]execute_script returns [10:38:57]free content buf [10:38:57]Sock 7.Close socket [10:38:57]Sock 7.Thread stoped [10:39:00]OFD Sender: No OFD packet to send [10:39:05]OFD Sender: No OFD packet to send [10:39:10]OFD Sender: No OFD packet to send [10:39:15]OFD Sender: No OFD packet to send [10:39:20]OFD Sender: No OFD packet to send [10:39:25]OFD Sender: No OFD packet to send [10:39:30]OFD Sender: No OFD packet to send [10:39:35]OFD Sender: No OFD packet to send [10:39:40]OFD Sender: No OFD packet to send [10:39:45]OFD Sender: No OFD packet to send [10:39:50]accept exits with 9 [10:39:50]New connection [10:39:50]New thread 3067227492 created [10:39:50]Thread 3067084132 joined [10:39:50]Waiting for new connection... [10:39:50] Sock 9.Parse request [10:39:50]Sock 9.Check first char [10:39:50]Sock 9.First char is OK [10:39:50]request: POST /json_proto HTTP/1.0 [10:39:50]Method: POST [10:39:50]URL: /json_proto [10:39:50]Method is POST - this is cgi request [10:39:50]url: /json_proto [10:39:50]query_string will be loaded in cgi processing [10:39:50]execute_cgi json_proto POST (null) [10:39:50]execute_cgi path=json_proto method=POST [10:39:50]POST find Content-Length [10:39:50]Host: 172.17.38.133:8080 [10:39:50]Content-Length: 821 [10:39:50]Content-Type: application/json [10:39:50] [10:39:50]POST finish read [10:39:50]Found Content-Length = 821 [10:39:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672866", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 4.940, "sum" : 360.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 360.13 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:39:50]execute_script... [10:39:50]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672866", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 4.940, "sum" : 360.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 360.13 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:39:50]POST & json_proto [10:39:50]process_json_proto [10:39:50]json parsed OK: [10:39:50]protocol is kg_v1.0 [10:39:50]action value=close_receipt [10:39:50]process_action close_receipt [10:39:50]cmd_close_receipt [10:39:50]MH_GetDate [10:39:50]Write to MH i2c: F0 00 00 AC 9B 36 [10:39:50]Write i2c OK [10:39:50]MH_I2C_Read... [10:39:50]Read from MH i2c: F0 [10:39:50]MH_I2C_Read... [10:39:50]Read from MH i2c: F0 09 00 [10:39:50]MH_I2C_Read... [10:39:50]Read from MH i2c: F0 09 00 AC 9B 00 82 B5 72 66 BD 8F 7C 64 7A [10:39:50]GetLastDocTimeStamp 1718793544 [10:39:50]current date 1718793602 [10:39:50]FM_GetShiftState [10:39:50]SAM_PROTO_GetShiftState [10:39:50]wFMCommunicate request_size=4 [10:39:50]MH_SAM_APDU [10:39:50]CAPDU: 80 13 01 00 [10:39:50]Write to MH i2c: E2 08 00 AD 9B 80 13 01 00 00 00 00 00 C5 [10:39:50]Write i2c OK [10:39:50]MH_I2C_Read... [10:39:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:39:50]Read from MH i2c: E2 [10:39:50]MH_I2C_Read... [10:39:50]Read from MH i2c: E2 0E 00 [10:39:50]MH_I2C_Read... [10:39:50]Read from MH i2c: E2 0E 00 AD 9B 00 09 00 01 04 26 72 66 00 00 00 00 90 00 D3 [10:39:50]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [10:39:50]wFMCommunicate OK [10:39:50]SAM_PROTO_GetShiftState done [10:39:50]FM_GetShiftState done [10:39:50]opened in 1718756868 [10:39:50]opened+sec_in_day 1718843268 [10:39:50]quantity*price = 36012 [10:39:50]sum+1 = 36014 [10:39:50]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 360.13 НСП 1% : 3.19 НДС 12% : 38.24 Наличными: 0.00 Безнал.: 360.13 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 57 19.06.2024 10:40 Смена: 353 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000875093 ФД: 103627 ФПД: 43703598172156 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T104002&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103627&fm=43703598172156&tin=02508201610067®Number=0000000000092785&sum=36013 [10:39:51]StoreToDocumentArchive [10:39:51]shift 353 fd 103627 [10:39:51]save to /storage/0353/doc_00103627 [10:39:51]save last doc name /storage/0353/doc_00103627 to /storage/kkm_last_doc_name [10:39:51]save OK [10:39:51]Clear old archive folders... [10:39:51]ProcessDocumentItem done err = 0, tmpTLVsize=252 [10:39:51]tlvbuf is B6F9B590 [10:39:51]SAM_PROTO_ClearQueue [10:39:51]wFMCommunicate request_size=4 [10:39:51]MH_SAM_APDU [10:39:51]CAPDU: 80 09 00 00 [10:39:51]Write to MH i2c: E2 08 00 BA 9B 80 09 00 00 00 00 00 00 C7 [10:39:51]Write i2c OK [10:39:51]MH_I2C_Read... [10:39:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:39:51]Read from MH i2c: E2 [10:39:51]MH_I2C_Read... [10:39:51]Read from MH i2c: E2 03 00 [10:39:51]MH_I2C_Read... [10:39:51]Read from MH i2c: E2 03 00 BA 9B 00 90 00 C9 [10:39:51]RAPDU: 90 00 [10:39:51]wFMCommunicate OK [10:39:51]SAM_PROTO_ClearQueue done [10:39:51]KKMCreateOFDPacket [10:39:51]OFDProtocolAddRootSTLVToBuf [10:39:51]FM_MakeSignedData [10:39:51]FM_MakeSignedData [10:39:51]SAM_PROTO_SignData [10:39:51]wFMCommunicate request_size=4 [10:39:51]MH_SAM_APDU [10:39:51]CAPDU: 80 0D 01 02 [10:39:51]Write to MH i2c: E2 08 00 BB 9B 80 0D 01 02 00 00 00 00 CF [10:39:51]Write i2c OK [10:39:51]MH_I2C_Read... [10:39:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:39:51]Read from MH i2c: E2 [10:39:51]MH_I2C_Read... [10:39:51]Read from MH i2c: E2 03 00 [10:39:51]MH_I2C_Read... [10:39:51]Read from MH i2c: E2 03 00 BB 9B 00 90 00 CA [10:39:51]RAPDU: 90 00 [10:39:51]wFMCommunicate OK [10:39:51]wFMCommunicate request_size=255 [10:39:51]MH_SAM_APDU [10:39:51]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 4C 13 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 AD 8C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AD 8C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F0 0E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 AD 8C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 82 B5 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 CB 94 01 00 35 04 06 00 [10:39:51]Write to MH i2c: E2 02 01 BC 9B 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 4C 13 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 AD 8C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AD 8C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F0 0E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 AD 8C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 82 B5 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 CB 94 01 00 35 04 06 00 00 00 02 [10:39:51]Write i2c OK [10:39:51]MH_I2C_Read... [10:39:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:39:51]Read from MH i2c: E2 [10:39:51]MH_I2C_Read... [10:39:51]Read from MH i2c: E2 03 00 [10:39:51]MH_I2C_Read... [10:39:51]Read from MH i2c: E2 03 00 BC 9B 00 90 00 CB [10:39:51]RAPDU: 90 00 [10:39:51]wFMCommunicate OK [10:39:51]wFMCommunicate request_size=11 [10:39:51]MH_SAM_APDU [10:39:51]CAPDU: 80 0D 02 02 06 27 BF 89 71 C7 FC [10:39:51]Write to MH i2c: E2 0E 00 BD 9B 80 0D 02 02 06 00 27 BF 89 71 C7 FC 00 00 81 [10:39:51]Write i2c OK [10:39:51]MH_I2C_Read... [10:39:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:39:51]Read from MH i2c: E2 [10:39:51]MH_I2C_Read... [10:39:51]Read from MH i2c: E2 03 00 [10:39:51]MH_I2C_Read... [10:39:51]Read from MH i2c: E2 03 00 BD 9B 00 90 00 CC [10:39:51]RAPDU: 90 00 [10:39:51]wFMCommunicate OK [10:39:51]wFMCommunicate request_size=4 [10:39:51]MH_SAM_APDU [10:39:51]CAPDU: 80 0D 03 02 [10:39:51]Write to MH i2c: E2 08 00 BE 9B 80 0D 03 02 00 00 00 00 D4 [10:39:51]Write i2c OK [10:39:51]MH_I2C_Read... [10:39:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:39:51]Read from MH i2c: E2 [10:39:51]MH_I2C_Read... [10:39:51]Read from MH i2c: E2 0B 00 [10:39:51]MH_I2C_Read... [10:39:51]Read from MH i2c: E2 0B 00 BE 9B 00 DB 9B 98 86 9E A3 CF 29 90 00 A2 [10:39:51]RAPDU: DB 9B 98 86 9E A3 CF 29 90 00 [10:39:51]wFMCommunicate OK [10:39:51]SAM_PROTO_SignData done [10:39:51]FM_MakeSignedData done [10:39:51]CreateOFDProtocolMessage [10:39:51]wFMCommunicate request_size=4 [10:39:51]MH_SAM_APDU [10:39:51]CAPDU: 80 11 00 00 [10:39:51]Write to MH i2c: E2 08 00 BF 9B 80 11 00 00 00 00 00 00 D4 [10:39:51]Write i2c OK [10:39:51]MH_I2C_Read... [10:39:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:39:51]Read from MH i2c: E2 [10:39:51]MH_I2C_Read... [10:39:51]Read from MH i2c: E2 17 00 [10:39:51]MH_I2C_Read... [10:39:51]Read from MH i2c: E2 17 00 BF 9B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 27 [10:39:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [10:39:51]wFMCommunicate OK [10:39:51]CreateOFDProtocolMessage done [10:39:51]OFDSenderStorePacket 103627 [10:39:51]StoreOFDPacket docnum=103627 [10:39:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 15 3C 08 01 3D 2A 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 4C 13 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 AD 8C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AD 8C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F0 0E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 AD 8C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 82 B5 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 CB 94 01 00 35 04 06 00 27 BF 89 71 C7 FC DB 9B 98 86 9E A3 CF 29 [10:39:51]CheckFolder [10:39:51]dirname=/storage/ofd_packets [10:39:51]CheckFolder done [10:39:51]ProducePacketName [10:39:51]name=ofd_packets/00103627 [10:39:51]NVStorageSaveData ofd_packets/00103627 [10:39:51]File name is /storage/ofd_packets/00103627 [10:39:51]Write 302 bytes [10:39:51]NVStorageSaveData done [10:39:51]OFDSenderStorePacket done [10:39:51]KKMCreateOFDPacket done [10:39:51]NVStorageSaveData kkm_last_timestamp [10:39:51]File name is /storage/kkm_last_timestamp [10:39:51]Write 4 bytes [10:39:51]NVStorageSaveData done [10:39:51]ExternCall_PrintAddStr [10:39:51]wPrintStart [10:39:51]Write to MH i2c: 01 00 00 C0 9B 5B [10:39:51]Write i2c OK [10:39:51]MH_I2C_Read... [10:39:51]Read from MH i2c: 01 [10:39:51]MH_I2C_Read... [10:39:51]Read from MH i2c: 01 07 00 [10:39:51]MH_I2C_Read... [10:39:51]Read from MH i2c: 01 07 00 C0 9B 00 00 00 00 00 FF 0F 70 [10:39:51]RasterBufferAndPrint [10:39:51]line Счет N : (1)672866 [10:39:51]line ИНН: 02508201610067 [10:39:51]line Контрольно-Кассовый Чек [10:39:51]line ПРОДАЖА [10:39:51]line ТРК (МРК, ГНК) : 21 [10:39:51]line Товар: 2710194210 [10:39:51]line ДТ(л)-К-5 [10:39:51]line 4.940 * 72.90 [10:39:51]line = 360.13 [10:39:51]line НДС 12% НСП 1% [10:39:51]line > о реализуемом товаре [10:39:51]line ИТОГО: 360.13 [10:39:51]line НСП 1% : 3.19 [10:39:51]line НДС 12% : 38.24 [10:39:51]line Наличными: 0.00 [10:39:51]line Безнал.: 360.13 [10:39:51]line Место: АЗС № 120 "Партнер Нефть" [10:39:51]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [10:39:51]line СНО: Общий режим [10:39:51]line Чек 57 19.06.2024 10:40 [10:39:51]line Смена: 353 ФФД: 1.0 [10:39:51]line ЗНМ: 0300000164 [10:39:51]line РНМ: 0000000000092785 [10:39:51]line Версия ККМ: 001 [10:39:51]line Платежная система: Бакай Банк [10:39:51]line ФМ: 0000000000875093 [10:39:51]line ФД: 103627 [10:39:51]line ФПД: 43703598172156 [10:39:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T104002&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103627&fm=43703598172156&tin=02508201610067®Number=0000000000092785&sum=36013 [10:39:52]OFD Sender: Processing packet 103627 [packets to send 17, broken 16] [10:39:52]ProducePacketName [10:39:52]name=ofd_packets/00103627 [10:39:52]OFD Sender: To server: pG, [10:39:52]CommunicateWithHost lk.salyk.kg:30040 [10:39:52]ConnectInit lk.salyk.kg [10:39:52]written 0, free lines is 4095 [10:39:52]Connected sock=10 [10:39:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 15 3C 08 01 3D 2A 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 4C 13 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 AD 8C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AD 8C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F0 0E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 AD 8C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 82 B5 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 CB 94 01 00 35 04 06 00 27 BF 89 71 C7 FC DB 9B 98 86 9E A3 CF 29 [10:39: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 39 33 4F 00 00 00 46 A1 47 00 BB B7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 CB 94 01 00 F4 03 04 00 0B 5C 72 66 B6 04 01 00 00 39 48 7E 55 1D C1 53 4A [10:39:52]CommunicateWithHost err = 0 [10:39:52]CheckOFDResponse [10:39:52]1017 (14) - 77093643461234 [10:39:52]1041 (16) - 0000000000875093 [10:39:52]1040 (4) - 103627 [10:39:52]1012 (4) - 19.06.2024 04:18 [10:39:52]1206 (1) - 0 [10:39:52]OFD Sender: Remove packet 103627 [10:39:52]ProducePacketName [10:39:52]name=ofd_packets/00103627 [10:39:52]NVStorageDeleteData [10:39:52]Write to MH i2c: 01 00 00 EA 9B 85 [10:39:52]Write i2c OK [10:39:52]MH_I2C_Read... [10:39:52]Read from MH i2c: 01 [10:39:52]MH_I2C_Read... [10:39:52]Read from MH i2c: 01 07 00 [10:39:52]MH_I2C_Read... [10:39:52]Read from MH i2c: 01 07 00 EA 9B 00 00 00 00 00 E4 0C 7C [10:39:52]RasterBufferAndPrint [10:39:52]line [10:39:52]line [10:39:52]line [10:39:52]line [10:39:52]line [10:39:52]written 0, free lines is 3307 [10:39:52]MH_Cut [10:39:52]Write to MH i2c: D1 01 00 F1 9B 01 5E [10:39:52]Write i2c OK [10:39:52]MH_I2C_Read... [10:39:52]Read from MH i2c: D1 [10:39:52]MH_I2C_Read... [10:39:52]Read from MH i2c: D1 01 00 [10:39:52]MH_I2C_Read... [10:39:52]Read from MH i2c: D1 01 00 F1 9B 00 5D [10:39:52]Write to MH i2c: 01 00 00 F2 9B 8D [10:39:52]Write i2c OK [10:39:52]MH_I2C_Read... [10:39:53]OFD Sender: No OFD packet to send [10:39:53]*** Cut start [10:39:53]*** Partial cut [10:39:53]*** CUTSNS_PIN = 1 [10:39:53]*** CUTSNS_PIN = 0 [10:39:53]*** Brake cut motor [10:39:54]Read from MH i2c: 01 [10:39:54]MH_I2C_Read... [10:39:54]*** Stop cut motor [10:39:54]*** Cut end [10:39:54]Read from MH i2c: 01 07 00 [10:39:54]MH_I2C_Read... [10:39:54]Read from MH i2c: 01 07 00 F2 9B 00 00 00 00 00 FF 0F A2 [10:39:54]process_action close_receipt done [10:39:54]requested_data is exist [10:39:54]produce_requested_data [10:39:54]requested_item fm.sn is exist - process it [10:39:54]wFMCommunicate request_size=4 [10:39:54]MH_SAM_APDU [10:39:54]CAPDU: 80 11 00 00 [10:39:54]Write to MH i2c: E2 08 00 F3 9B 80 11 00 00 00 00 00 00 08 [10:39:54]Write i2c OK [10:39:54]MH_I2C_Read... [10:39:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:39:54]Read from MH i2c: E2 [10:39:54]MH_I2C_Read... [10:39:54]Read from MH i2c: E2 17 00 [10:39:54]MH_I2C_Read... [10:39:54]Read from MH i2c: E2 17 00 F3 9B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 5B [10:39:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [10:39:54]wFMCommunicate OK [10:39:54]requested_item fd.num is exist - process it [10:39:54]SAM_PROTO_GetFieldsCounters [10:39:54]wFMCommunicate request_size=4 [10:39:54]MH_SAM_APDU [10:39:54]CAPDU: 80 13 00 00 [10:39:54]Write to MH i2c: E2 08 00 F4 9B 80 13 00 00 00 00 00 00 0B [10:39:54]Write i2c OK [10:39:54]MH_I2C_Read... [10:39:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:39:54]Read from MH i2c: E2 [10:39:54]MH_I2C_Read... [10:39:54]Read from MH i2c: E2 62 00 [10:39:54]MH_I2C_Read... [10:39:54]Read from MH i2c: E2 62 00 F4 9B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 CB 94 01 00 0E 04 04 00 61 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 9F [10:39:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 CB 94 01 00 0E 04 04 00 61 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 [10:39:54]wFMCommunicate OK [10:39:54]SAM_PROTO_GetFieldsCounters done [10:39:54]requested_item shift.num is exist - process it [10:39:54]requested_item shift.opened is exist - process it [10:39:54]req_shift_opened [10:39:54]FM_GetShiftState [10:39:54]SAM_PROTO_GetShiftState [10:39:54]wFMCommunicate request_size=4 [10:39:54]MH_SAM_APDU [10:39:54]CAPDU: 80 13 01 00 [10:39:54]Write to MH i2c: E2 08 00 F5 9B 80 13 01 00 00 00 00 00 0D [10:39:54]Write i2c OK [10:39:54]MH_I2C_Read... [10:39:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:39:54]Read from MH i2c: E2 [10:39:54]MH_I2C_Read... [10:39:54]Read from MH i2c: E2 0E 00 [10:39:54]MH_I2C_Read... [10:39:54]Read from MH i2c: E2 0E 00 F5 9B 00 09 00 01 04 26 72 66 00 00 00 00 90 00 1B [10:39:54]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [10:39:54]wFMCommunicate OK [10:39:54]SAM_PROTO_GetShiftState done [10:39:54]FM_GetShiftState done [10:39:54]req_shift_opened done [10:39:54]requested_item shift.open_date is exist - process it [10:39:54]req_shift_open_date [10:39:54]req_shift_open_date done [10:39:54]produce_requested_data done [10:39:54]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103627,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [10:39:54]process_action_free close_receipt [10:39:54]json_value_free [10:39:54]json_value_free done [10:39:54]process_json_proto returns [10:39:54]Send response to host [10:39:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103627,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [10:39:54]free response buf [10:39:54]execute_script done [10:39:54]execute_script returns [10:39:54]free content buf [10:39:54]Sock 9.Close socket [10:39:54]Sock 9.Thread stoped [10:39:58]OFD Sender: No OFD packet to send [10:40:03]OFD Sender: No OFD packet to send [10:40:08]OFD Sender: No OFD packet to send [10:40:13]OFD Sender: No OFD packet to send [10:40:18]OFD Sender: No OFD packet to send [10:40:23]OFD Sender: No OFD packet to send [10:40:28]OFD Sender: No OFD packet to send [10:40:33]OFD Sender: No OFD packet to send [10:40:38]OFD Sender: No OFD packet to send [10:40:43]OFD Sender: No OFD packet to send [10:40:48]OFD Sender: No OFD packet to send [10:40:53]OFD Sender: No OFD packet to send [10:40:58]OFD Sender: No OFD packet to send [10:41:03]OFD Sender: No OFD packet to send [10:41:03]accept exits with 7 [10:41:03]New connection [10:41:03]New thread 3067084132 created [10:41:03]Thread 3067227492 joined [10:41:03]Waiting for new connection... [10:41:03] Sock 7.Parse request [10:41:03]Sock 7.Check first char [10:41:03]Sock 7.First char is OK [10:41:03]request: POST /json_proto HTTP/1.0 [10:41:03]Method: POST [10:41:03]URL: /json_proto [10:41:03]Method is POST - this is cgi request [10:41:03]url: /json_proto [10:41:03]query_string will be loaded in cgi processing [10:41:03]execute_cgi json_proto POST (null) [10:41:03]execute_cgi path=json_proto method=POST [10:41:03]POST find Content-Length [10:41:03]Host: 172.17.38.133:8080 [10:41:03]Content-Length: 682 [10:41:03]Content-Type: application/json [10:41:03] [10:41:03]POST finish read [10:41:03]Found Content-Length = 682 [10:41:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672867", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 6.860, "sum" : 500.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:41:03]execute_script... [10:41:03]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672867", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 6.860, "sum" : 500.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:41:03]POST & json_proto [10:41:03]process_json_proto [10:41:03]json parsed OK: [10:41:03]protocol is kg_v1.0 [10:41:03]action value=close_receipt [10:41:03]process_action close_receipt [10:41:03]cmd_close_receipt [10:41:03]MH_GetDate [10:41:03]Write to MH i2c: F0 00 00 F6 9B 80 [10:41:03]Write i2c OK [10:41:03]MH_I2C_Read... [10:41:03]Read from MH i2c: F0 [10:41:03]MH_I2C_Read... [10:41:03]Read from MH i2c: F0 09 00 [10:41:03]MH_I2C_Read... [10:41:03]Read from MH i2c: F0 09 00 F6 9B 00 CB B5 72 66 BD 8F 7C 64 0D [10:41:03]GetLastDocTimeStamp 1718793602 [10:41:03]current date 1718793675 [10:41:03]FM_GetShiftState [10:41:03]SAM_PROTO_GetShiftState [10:41:03]wFMCommunicate request_size=4 [10:41:03]MH_SAM_APDU [10:41:03]CAPDU: 80 13 01 00 [10:41:03]Write to MH i2c: E2 08 00 F7 9B 80 13 01 00 00 00 00 00 0F [10:41:03]Write i2c OK [10:41:03]MH_I2C_Read... [10:41:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:41:03]Read from MH i2c: E2 [10:41:03]MH_I2C_Read... [10:41:03]Read from MH i2c: E2 0E 00 [10:41:03]MH_I2C_Read... [10:41:03]Read from MH i2c: E2 0E 00 F7 9B 00 09 00 01 04 26 72 66 00 00 00 00 90 00 1D [10:41:03]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [10:41:03]wFMCommunicate OK [10:41:03]SAM_PROTO_GetShiftState done [10:41:03]FM_GetShiftState done [10:41:03]opened in 1718756868 [10:41:03]opened+sec_in_day 1718843268 [10:41:03]quantity*price = 50009 [10:41:03]sum+1 = 50010 [10:41:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 58 19.06.2024 10:41 Смена: 353 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103628 ФПД: 141530747448017 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T104115&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103628&fm=141530747448017&tin=02508201610067®Number=0000000000092785&sum=50000 [10:41:04]StoreToDocumentArchive [10:41:04]shift 353 fd 103628 [10:41:04]save to /storage/0353/doc_00103628 [10:41:04]save last doc name /storage/0353/doc_00103628 to /storage/kkm_last_doc_name [10:41:04]save OK [10:41:04]Clear old archive folders... [10:41:04]ProcessDocumentItem done err = 0, tmpTLVsize=252 [10:41:04]tlvbuf is 0148B860 [10:41:04]SAM_PROTO_ClearQueue [10:41:04]wFMCommunicate request_size=4 [10:41:04]MH_SAM_APDU [10:41:04]CAPDU: 80 09 00 00 [10:41:04]Write to MH i2c: E2 08 00 04 9C 80 09 00 00 00 00 00 00 12 [10:41:04]Write i2c OK [10:41:04]MH_I2C_Read... [10:41:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:41:04]Read from MH i2c: E2 [10:41:04]MH_I2C_Read... [10:41:04]Read from MH i2c: E2 03 00 [10:41:04]MH_I2C_Read... [10:41:04]Read from MH i2c: E2 03 00 04 9C 00 90 00 14 [10:41:04]RAPDU: 90 00 [10:41:04]wFMCommunicate OK [10:41:04]SAM_PROTO_ClearQueue done [10:41:04]KKMCreateOFDPacket [10:41:04]OFDProtocolAddRootSTLVToBuf [10:41:04]FM_MakeSignedData [10:41:04]FM_MakeSignedData [10:41:04]SAM_PROTO_SignData [10:41:04]wFMCommunicate request_size=4 [10:41:04]MH_SAM_APDU [10:41:04]CAPDU: 80 0D 01 02 [10:41:04]Write to MH i2c: E2 08 00 05 9C 80 0D 01 02 00 00 00 00 1A [10:41:04]Write i2c OK [10:41:04]MH_I2C_Read... [10:41:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:41:04]Read from MH i2c: E2 [10:41:04]MH_I2C_Read... [10:41:04]Read from MH i2c: E2 03 00 [10:41:04]MH_I2C_Read... [10:41:04]Read from MH i2c: E2 03 00 05 9C 00 90 00 15 [10:41:04]RAPDU: 90 00 [10:41:04]wFMCommunicate OK [10:41:04]wFMCommunicate request_size=255 [10:41:04]MH_SAM_APDU [10:41:04]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 CB B5 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 CC 94 01 00 35 04 06 00 [10:41:04]Write to MH i2c: E2 02 01 06 9C 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 CB B5 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 CC 94 01 00 35 04 06 00 00 00 07 [10:41:04]Write i2c OK [10:41:04]MH_I2C_Read... [10:41:05]Read from MH i2c: E2 [10:41:05]MH_I2C_Read... [10:41:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:41:05]Read from MH i2c: E2 03 00 [10:41:05]MH_I2C_Read... [10:41:05]Read from MH i2c: E2 03 00 06 9C 00 90 00 16 [10:41:05]RAPDU: 90 00 [10:41:05]wFMCommunicate OK [10:41:05]wFMCommunicate request_size=11 [10:41:05]MH_SAM_APDU [10:41:05]CAPDU: 80 0D 02 02 06 80 B8 B1 ED 2A D1 [10:41:05]Write to MH i2c: E2 0E 00 07 9C 80 0D 02 02 06 00 80 B8 B1 ED 2A D1 00 00 FA [10:41:05]Write i2c OK [10:41:05]MH_I2C_Read... [10:41:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:41:05]Read from MH i2c: E2 [10:41:05]MH_I2C_Read... [10:41:05]Read from MH i2c: E2 03 00 [10:41:05]MH_I2C_Read... [10:41:05]Read from MH i2c: E2 03 00 07 9C 00 90 00 17 [10:41:05]RAPDU: 90 00 [10:41:05]wFMCommunicate OK [10:41:05]wFMCommunicate request_size=4 [10:41:05]MH_SAM_APDU [10:41:05]CAPDU: 80 0D 03 02 [10:41:05]Write to MH i2c: E2 08 00 08 9C 80 0D 03 02 00 00 00 00 1F [10:41:05]Write i2c OK [10:41:05]MH_I2C_Read... [10:41:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:41:05]Read from MH i2c: E2 [10:41:05]MH_I2C_Read... [10:41:05]Read from MH i2c: E2 0B 00 [10:41:05]MH_I2C_Read... [10:41:05]Read from MH i2c: E2 0B 00 08 9C 00 B8 B1 3F 54 5B 23 6B C5 90 00 CA [10:41:05]RAPDU: B8 B1 3F 54 5B 23 6B C5 90 00 [10:41:05]wFMCommunicate OK [10:41:05]SAM_PROTO_SignData done [10:41:05]FM_MakeSignedData done [10:41:05]CreateOFDProtocolMessage [10:41:05]wFMCommunicate request_size=4 [10:41:05]MH_SAM_APDU [10:41:05]CAPDU: 80 11 00 00 [10:41:05]Write to MH i2c: E2 08 00 09 9C 80 11 00 00 00 00 00 00 1F [10:41:05]Write i2c OK [10:41:05]MH_I2C_Read... [10:41:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:41:05]Read from MH i2c: E2 [10:41:05]MH_I2C_Read... [10:41:05]Read from MH i2c: E2 17 00 [10:41:05]MH_I2C_Read... [10:41:05]Read from MH i2c: E2 17 00 09 9C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 72 [10:41:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [10:41:05]wFMCommunicate OK [10:41:05]CreateOFDProtocolMessage done [10:41:05]OFDSenderStorePacket 103628 [10:41:05]StoreOFDPacket docnum=103628 [10:41:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 D4 68 08 01 48 9B 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 CB B5 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 CC 94 01 00 35 04 06 00 80 B8 B1 ED 2A D1 B8 B1 3F 54 5B 23 6B C5 [10:41:05]CheckFolder [10:41:05]dirname=/storage/ofd_packets [10:41:05]CheckFolder done [10:41:05]ProducePacketName [10:41:05]name=ofd_packets/00103628 [10:41:05]NVStorageSaveData ofd_packets/00103628 [10:41:05]File name is /storage/ofd_packets/00103628 [10:41:05]Write 302 bytes [10:41:05]NVStorageSaveData done [10:41:05]OFDSenderStorePacket done [10:41:05]KKMCreateOFDPacket done [10:41:05]NVStorageSaveData kkm_last_timestamp [10:41:05]File name is /storage/kkm_last_timestamp [10:41:05]Write 4 bytes [10:41:05]NVStorageSaveData done [10:41:05]ExternCall_PrintAddStr [10:41:05]wPrintStart [10:41:05]Write to MH i2c: 01 00 00 0A 9C A6 [10:41:05]Write i2c OK [10:41:05]MH_I2C_Read... [10:41:05]Read from MH i2c: 01 [10:41:05]MH_I2C_Read... [10:41:05]Read from MH i2c: 01 07 00 [10:41:05]MH_I2C_Read... [10:41:05]Read from MH i2c: 01 07 00 0A 9C 00 00 00 00 00 FF 0F BB [10:41:05]RasterBufferAndPrint [10:41:05]line Счет N : (1)672867 [10:41:05]line ИНН: 02508201610067 [10:41:05]line Контрольно-Кассовый Чек [10:41:05]line ПРОДАЖА [10:41:05]line ТРК (МРК, ГНК) : 11 [10:41:05]line Товар: 2710194210 [10:41:05]line ДТ(л)-К-5 [10:41:05]line 6.860 * 72.90 [10:41:05]line = 500.09 [10:41:05]line НДС 12% НСП 1% [10:41:05]line > о реализуемом товаре [10:41:05]line ОКРУГЛЕНИЕ: -0.09 [10:41:05]line ИТОГО: 500.00 [10:41:05]line Внесено: 500.00 [10:41:05]line СДАЧА: 0.00 [10:41:05]line НСП 1% : 4.43 [10:41:05]line НДС 12% : 53.11 [10:41:05]line Наличными: 500.00 [10:41:05]line Безнал.: 0.00 [10:41:05]line Место: АЗС № 120 "Партнер Нефть" [10:41:05]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [10:41:05]line СНО: Общий режим [10:41:05]line Чек 58 19.06.2024 10:41 [10:41:05]line Смена: 353 ФФД: 1.0 [10:41:05]line ЗНМ: 0300000164 [10:41:05]line РНМ: 0000000000092785 [10:41:05]line Версия ККМ: 001 [10:41:05]line ФМ: 0000000000875093 [10:41:05]line ФД: 103628 [10:41:05]line ФПД: 141530747448017 [10:41:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T104115&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103628&fm=141530747448017&tin=02508201610067®Number=0000000000092785&sum=50000 [10:41:05]OFD Sender: Processing packet 103628 [packets to send 17, broken 16] [10:41:05]ProducePacketName [10:41:05]name=ofd_packets/00103628 [10:41:05]OFD Sender: To server: pG, [10:41:05]CommunicateWithHost lk.salyk.kg:30040 [10:41:05]ConnectInit lk.salyk.kg [10:41:05]written 0, free lines is 4095 [10:41:05]Connected sock=10 [10:41:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 D4 68 08 01 48 9B 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 CB B5 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 CC 94 01 00 35 04 06 00 80 B8 B1 ED 2A D1 B8 B1 3F 54 5B 23 6B C5 [10:41:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 A8 43 47 00 26 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 39 33 10 04 04 00 CC 94 01 00 F4 03 04 00 54 5C 72 66 B6 04 01 00 00 D6 FF 8F C6 73 15 60 11 [10:41:05]CommunicateWithHost err = 0 [10:41:05]CheckOFDResponse [10:41:05]1017 (14) - 77093643461234 [10:41:05]1041 (16) - 0000000000875093 [10:41:05]1040 (4) - 103628 [10:41:05]1012 (4) - 19.06.2024 04:19 [10:41:05]1206 (1) - 0 [10:41:05]OFD Sender: Remove packet 103628 [10:41:05]ProducePacketName [10:41:05]name=ofd_packets/00103628 [10:41:05]NVStorageDeleteData [10:41:05]Write to MH i2c: 01 00 00 35 9C D1 [10:41:05]Write i2c OK [10:41:05]MH_I2C_Read... [10:41:05]Read from MH i2c: 01 [10:41:05]MH_I2C_Read... [10:41:05]Read from MH i2c: 01 07 00 [10:41:06]MH_I2C_Read... [10:41:06]Read from MH i2c: 01 07 00 35 9C 00 00 00 00 00 CD 0C B1 [10:41:06]RasterBufferAndPrint [10:41:06]line [10:41:06]line [10:41:06]line [10:41:06]line [10:41:06]line [10:41:06]written 0, free lines is 3284 [10:41:06]MH_Cut [10:41:06]Write to MH i2c: D1 01 00 3C 9C 01 AA [10:41:06]Write i2c OK [10:41:06]MH_I2C_Read... [10:41:06]Read from MH i2c: D1 [10:41:06]MH_I2C_Read... [10:41:06]Read from MH i2c: D1 01 00 [10:41:06]MH_I2C_Read... [10:41:06]Read from MH i2c: D1 01 00 3C 9C 00 A9 [10:41:06]Write to MH i2c: 01 00 00 3D 9C D9 [10:41:06]Write i2c OK [10:41:06]MH_I2C_Read... [10:41:06]OFD Sender: No OFD packet to send [10:41:06]*** Cut start [10:41:06]*** Partial cut [10:41:06]*** CUTSNS_PIN = 1 [10:41:06]*** CUTSNS_PIN = 0 [10:41:07]*** Brake cut motor [10:41:07]Read from MH i2c: 01 [10:41:07]MH_I2C_Read... [10:41:07]*** Stop cut motor [10:41:07]*** Cut end [10:41:07]Read from MH i2c: 01 07 00 [10:41:07]MH_I2C_Read... [10:41:07]Read from MH i2c: 01 07 00 3D 9C 00 00 00 00 00 FF 0F EE [10:41:07]process_action close_receipt done [10:41:07]requested_data is exist [10:41:07]produce_requested_data [10:41:07]requested_item fm.sn is exist - process it [10:41:07]wFMCommunicate request_size=4 [10:41:07]MH_SAM_APDU [10:41:07]CAPDU: 80 11 00 00 [10:41:07]Write to MH i2c: E2 08 00 3E 9C 80 11 00 00 00 00 00 00 54 [10:41:07]Write i2c OK [10:41:07]MH_I2C_Read... [10:41:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:41:07]Read from MH i2c: E2 [10:41:07]MH_I2C_Read... [10:41:07]Read from MH i2c: E2 17 00 [10:41:07]MH_I2C_Read... [10:41:07]Read from MH i2c: E2 17 00 3E 9C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 A7 [10:41:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [10:41:07]wFMCommunicate OK [10:41:07]requested_item fd.num is exist - process it [10:41:07]SAM_PROTO_GetFieldsCounters [10:41:07]wFMCommunicate request_size=4 [10:41:07]MH_SAM_APDU [10:41:07]CAPDU: 80 13 00 00 [10:41:07]Write to MH i2c: E2 08 00 3F 9C 80 13 00 00 00 00 00 00 57 [10:41:07]Write i2c OK [10:41:07]MH_I2C_Read... [10:41:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:41:07]Read from MH i2c: E2 [10:41:07]MH_I2C_Read... [10:41:07]Read from MH i2c: E2 62 00 [10:41:07]MH_I2C_Read... [10:41:07]Read from MH i2c: E2 62 00 3F 9C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 CC 94 01 00 0E 04 04 00 61 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 EF [10:41: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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 CC 94 01 00 0E 04 04 00 61 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 [10:41:07]wFMCommunicate OK [10:41:07]SAM_PROTO_GetFieldsCounters done [10:41:07]requested_item shift.num is exist - process it [10:41:07]requested_item shift.opened is exist - process it [10:41:07]req_shift_opened [10:41:07]FM_GetShiftState [10:41:07]SAM_PROTO_GetShiftState [10:41:07]wFMCommunicate request_size=4 [10:41:07]MH_SAM_APDU [10:41:07]CAPDU: 80 13 01 00 [10:41:07]Write to MH i2c: E2 08 00 40 9C 80 13 01 00 00 00 00 00 59 [10:41:07]Write i2c OK [10:41:07]MH_I2C_Read... [10:41:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:41:07]Read from MH i2c: E2 [10:41:07]MH_I2C_Read... [10:41:07]Read from MH i2c: E2 0E 00 [10:41:07]MH_I2C_Read... [10:41:07]Read from MH i2c: E2 0E 00 40 9C 00 09 00 01 04 26 72 66 00 00 00 00 90 00 67 [10:41:07]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [10:41:07]wFMCommunicate OK [10:41:07]SAM_PROTO_GetShiftState done [10:41:07]FM_GetShiftState done [10:41:07]req_shift_opened done [10:41:07]requested_item shift.open_date is exist - process it [10:41:07]req_shift_open_date [10:41:07]req_shift_open_date done [10:41:07]produce_requested_data done [10:41:07]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103628,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [10:41:07]process_action_free close_receipt [10:41:07]json_value_free [10:41:07]json_value_free done [10:41:07]process_json_proto returns [10:41:07]Send response to host [10:41:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103628,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [10:41:07]free response buf [10:41:07]execute_script done [10:41:07]execute_script returns [10:41:07]free content buf [10:41:07]Sock 7.Close socket [10:41:07]Sock 7.Thread stoped [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:06]OFD Sender: No OFD packet to send [10:45:11]OFD Sender: No OFD packet to send [10:45:16]OFD Sender: No OFD packet to send [10:45:21]OFD Sender: No OFD packet to send [10:45:26]OFD Sender: No OFD packet to send [10:45:31]OFD Sender: No OFD packet to send [10:45:36]OFD Sender: No OFD packet to send [10:45:41]OFD Sender: No OFD packet to send [10:45:46]OFD Sender: No OFD packet to send [10:45:51]OFD Sender: No OFD packet to send [10:45:56]OFD Sender: No OFD packet to send [10:46:01]OFD Sender: No OFD packet to send [10:46:06]OFD Sender: No OFD packet to send [10:46:11]OFD Sender: No OFD packet to send [10:46:16]OFD Sender: No OFD packet to send [10:46:21]OFD Sender: No OFD packet to send [10:46:26]OFD Sender: No OFD packet to send [10:46:31]OFD Sender: No OFD packet to send [10:46:36]OFD Sender: No OFD packet to send [10:46:41]OFD Sender: No OFD packet to send [10:46:46]OFD Sender: No OFD packet to send [10:46:47]accept exits with 9 [10:46:47]New connection [10:46:47]New thread 3067227492 created [10:46:47]Thread 3067084132 joined [10:46:47]Waiting for new connection... [10:46:47] Sock 9.Parse request [10:46:47]Sock 9.Check first char [10:46:47]Sock 9.First char is OK [10:46:47]request: POST /json_proto HTTP/1.0 [10:46:47]Method: POST [10:46:47]URL: /json_proto [10:46:47]Method is POST - this is cgi request [10:46:47]url: /json_proto [10:46:47]query_string will be loaded in cgi processing [10:46:47]execute_cgi json_proto POST (null) [10:46:47]execute_cgi path=json_proto method=POST [10:46:47]POST find Content-Length [10:46:47]Host: 172.17.38.133:8080 [10:46:47]Content-Length: 663 [10:46:47]Content-Type: application/json [10:46:47] [10:46:47]POST finish read [10:46:47]Found Content-Length = 663 [10:46:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672869", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 30.000, "sum" : 1992.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 5000.00, "payments": [ { "type": 0, "sum" : 1992.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:46:47]execute_script... [10:46: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)672869", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 30.000, "sum" : 1992.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 5000.00, "payments": [ { "type": 0, "sum" : 1992.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:46:47]POST & json_proto [10:46:47]process_json_proto [10:46:47]json parsed OK: [10:46:47]protocol is kg_v1.0 [10:46:47]action value=close_receipt [10:46:47]process_action close_receipt [10:46:47]cmd_close_receipt [10:46:47]MH_GetDate [10:46:47]Write to MH i2c: F0 00 00 41 9C CC [10:46:47]Write i2c OK [10:46:47]MH_I2C_Read... [10:46:47]Read from MH i2c: F0 [10:46:47]MH_I2C_Read... [10:46:47]Read from MH i2c: F0 09 00 [10:46:47]MH_I2C_Read... [10:46:47]Read from MH i2c: F0 09 00 41 9C 00 23 B7 72 66 BD 8F 7C 64 B3 [10:46:47]GetLastDocTimeStamp 1718793675 [10:46:47]current date 1718794019 [10:46:47]FM_GetShiftState [10:46:47]SAM_PROTO_GetShiftState [10:46:47]wFMCommunicate request_size=4 [10:46:47]MH_SAM_APDU [10:46:47]CAPDU: 80 13 01 00 [10:46:47]Write to MH i2c: E2 08 00 42 9C 80 13 01 00 00 00 00 00 5B [10:46:47]Write i2c OK [10:46:47]MH_I2C_Read... [10:46:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:46:47]Read from MH i2c: E2 [10:46:47]MH_I2C_Read... [10:46:47]Read from MH i2c: E2 0E 00 [10:46:47]MH_I2C_Read... [10:46:47]Read from MH i2c: E2 0E 00 42 9C 00 09 00 01 04 26 72 66 00 00 00 00 90 00 69 [10:46:47]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [10:46:47]wFMCommunicate OK [10:46:47]SAM_PROTO_GetShiftState done [10:46:47]FM_GetShiftState done [10:46:47]opened in 1718756868 [10:46:47]opened+sec_in_day 1718843268 [10:46:47]quantity*price = 199200 [10:46:47]sum+1 = 199201 [10:46:47]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1992.00 Внесено: 5000.00 СДАЧА: 3008.00 НСП 1% : 17.63 НДС 12% : 211.54 Наличными: 1992.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 59 19.06.2024 10:46 Смена: 353 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103629 ФПД: 149056221037447 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T104659&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103629&fm=149056221037447&tin=02508201610067®Number=0000000000092785&sum=199200 [10:46:48]StoreToDocumentArchive [10:46:48]shift 353 fd 103629 [10:46:48]save to /storage/0353/doc_00103629 [10:46:48]save last doc name /storage/0353/doc_00103629 to /storage/kkm_last_doc_name [10:46:48]save OK [10:46:48]Clear old archive folders... [10:46:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:46:48]tlvbuf is 0139DCD0 [10:46:48]SAM_PROTO_ClearQueue [10:46:48]wFMCommunicate request_size=4 [10:46:48]MH_SAM_APDU [10:46:48]CAPDU: 80 09 00 00 [10:46:48]Write to MH i2c: E2 08 00 4F 9C 80 09 00 00 00 00 00 00 5D [10:46:48]Write i2c OK [10:46:48]MH_I2C_Read... [10:46:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:46:48]Read from MH i2c: E2 [10:46:48]MH_I2C_Read... [10:46:48]Read from MH i2c: E2 03 00 [10:46:48]MH_I2C_Read... [10:46:48]Read from MH i2c: E2 03 00 4F 9C 00 90 00 5F [10:46:48]RAPDU: 90 00 [10:46:48]wFMCommunicate OK [10:46:48]SAM_PROTO_ClearQueue done [10:46:48]KKMCreateOFDPacket [10:46:48]OFDProtocolAddRootSTLVToBuf [10:46:48]FM_MakeSignedData [10:46:48]FM_MakeSignedData [10:46:48]SAM_PROTO_SignData [10:46:48]wFMCommunicate request_size=4 [10:46:48]MH_SAM_APDU [10:46:48]CAPDU: 80 0D 01 02 [10:46:48]Write to MH i2c: E2 08 00 50 9C 80 0D 01 02 00 00 00 00 65 [10:46:48]Write i2c OK [10:46:48]MH_I2C_Read... [10:46:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:46:48]Read from MH i2c: E2 [10:46:48]MH_I2C_Read... [10:46:48]Read from MH i2c: E2 03 00 [10:46:48]MH_I2C_Read... [10:46:48]Read from MH i2c: E2 03 00 50 9C 00 90 00 60 [10:46:48]RAPDU: 90 00 [10:46:48]wFMCommunicate OK [10:46:48]wFMCommunicate request_size=255 [10:46:48]MH_SAM_APDU [10:46: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 30 75 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 20 0A 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 0A 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E3 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A2 52 00 00 00 00 07 04 06 00 20 0A 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 23 B7 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 CD 94 01 00 35 04 06 00 87 [10:46:48]Write to MH i2c: E2 02 01 51 9C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 20 0A 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 0A 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E3 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A2 52 00 00 00 00 07 04 06 00 20 0A 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 23 B7 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 CD 94 01 00 35 04 06 00 87 00 00 BF [10:46:48]Write i2c OK [10:46:48]MH_I2C_Read... [10:46:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:46:49]Read from MH i2c: E2 [10:46:49]MH_I2C_Read... [10:46:49]Read from MH i2c: E2 03 00 [10:46:49]MH_I2C_Read... [10:46:49]Read from MH i2c: E2 03 00 51 9C 00 90 00 61 [10:46:49]RAPDU: 90 00 [10:46:49]wFMCommunicate OK [10:46:49]wFMCommunicate request_size=10 [10:46:49]MH_SAM_APDU [10:46:49]CAPDU: 80 0D 02 02 05 90 DB 1B 43 87 [10:46:49]Write to MH i2c: E2 0D 00 52 9C 80 0D 02 02 05 00 90 DB 1B 43 87 00 00 C2 [10:46:49]Write i2c OK [10:46:49]MH_I2C_Read... [10:46:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:46:49]Read from MH i2c: E2 [10:46:49]MH_I2C_Read... [10:46:49]Read from MH i2c: E2 03 00 [10:46:49]MH_I2C_Read... [10:46:49]Read from MH i2c: E2 03 00 52 9C 00 90 00 62 [10:46:49]RAPDU: 90 00 [10:46:49]wFMCommunicate OK [10:46:49]wFMCommunicate request_size=4 [10:46:49]MH_SAM_APDU [10:46:49]CAPDU: 80 0D 03 02 [10:46:49]Write to MH i2c: E2 08 00 53 9C 80 0D 03 02 00 00 00 00 6A [10:46:49]Write i2c OK [10:46:49]MH_I2C_Read... [10:46:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:46:49]Read from MH i2c: E2 [10:46:49]MH_I2C_Read... [10:46:49]Read from MH i2c: E2 0B 00 [10:46:49]MH_I2C_Read... [10:46:49]Read from MH i2c: E2 0B 00 53 9C 00 F1 F4 6A D6 59 F2 88 80 90 00 E3 [10:46:49]RAPDU: F1 F4 6A D6 59 F2 88 80 90 00 [10:46:49]wFMCommunicate OK [10:46:49]SAM_PROTO_SignData done [10:46:49]FM_MakeSignedData done [10:46:49]CreateOFDProtocolMessage [10:46:49]wFMCommunicate request_size=4 [10:46:49]MH_SAM_APDU [10:46:49]CAPDU: 80 11 00 00 [10:46:49]Write to MH i2c: E2 08 00 54 9C 80 11 00 00 00 00 00 00 6A [10:46:49]Write i2c OK [10:46:49]MH_I2C_Read... [10:46:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:46:49]Read from MH i2c: E2 [10:46:49]MH_I2C_Read... [10:46:49]Read from MH i2c: E2 17 00 [10:46:49]MH_I2C_Read... [10:46:49]Read from MH i2c: E2 17 00 54 9C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 BD [10:46:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [10:46:49]wFMCommunicate OK [10:46:49]CreateOFDProtocolMessage done [10:46:49]OFDSenderStorePacket 103629 [10:46:49]StoreOFDPacket docnum=103629 [10:46:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 CE 85 07 01 A0 DE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 20 0A 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 0A 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E3 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A2 52 00 00 00 00 07 04 06 00 20 0A 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 23 B7 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 CD 94 01 00 35 04 06 00 87 90 DB 1B 43 87 F1 F4 6A D6 59 F2 88 80 [10:46:49]CheckFolder [10:46:49]dirname=/storage/ofd_packets [10:46:49]CheckFolder done [10:46:49]ProducePacketName [10:46:49]name=ofd_packets/00103629 [10:46:49]NVStorageSaveData ofd_packets/00103629 [10:46:49]File name is /storage/ofd_packets/00103629 [10:46:49]Write 301 bytes [10:46:49]NVStorageSaveData done [10:46:49]OFDSenderStorePacket done [10:46:49]KKMCreateOFDPacket done [10:46:49]NVStorageSaveData kkm_last_timestamp [10:46:49]File name is /storage/kkm_last_timestamp [10:46:49]Write 4 bytes [10:46:49]NVStorageSaveData done [10:46:49]ExternCall_PrintAddStr [10:46:49]wPrintStart [10:46:49]Write to MH i2c: 01 00 00 55 9C F1 [10:46:49]Write i2c OK [10:46:49]MH_I2C_Read... [10:46:49]Read from MH i2c: 01 [10:46:49]MH_I2C_Read... [10:46:49]Read from MH i2c: 01 07 00 [10:46:49]MH_I2C_Read... [10:46:49]Read from MH i2c: 01 07 00 55 9C 00 00 00 00 00 FF 0F 06 [10:46:49]RasterBufferAndPrint [10:46:49]line Счет N : (1)672869 [10:46:49]line ИНН: 02508201610067 [10:46:49]line Контрольно-Кассовый Чек [10:46:49]line ПРОДАЖА [10:46:49]line ТРК (МРК, ГНК) : 32 [10:46:49]line Товар: 2710124130 [10:46:49]line Аи-92-К-5 [10:46:49]line 30.000 * 66.40 [10:46:49]line = 1992.00 [10:46:49]line НДС 12% НСП 1% [10:46:49]line > о реализуемом товаре [10:46:49]line ИТОГО: 1992.00 [10:46:49]line Внесено: 5000.00 [10:46:49]line СДАЧА: 3008.00 [10:46:49]line НСП 1% : 17.63 [10:46:49]line НДС 12% : 211.54 [10:46:49]line Наличными: 1992.00 [10:46:49]line Безнал.: 0.00 [10:46:49]line Место: АЗС № 120 "Партнер Нефть" [10:46:49]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [10:46:49]line СНО: Общий режим [10:46:49]line Чек 59 19.06.2024 10:46 [10:46:49]line Смена: 353 ФФД: 1.0 [10:46:49]line ЗНМ: 0300000164 [10:46:49]line РНМ: 0000000000092785 [10:46:49]line Версия ККМ: 001 [10:46:49]line ФМ: 0000000000875093 [10:46:49]line ФД: 103629 [10:46:49]line ФПД: 149056221037447 [10:46:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T104659&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103629&fm=149056221037447&tin=02508201610067®Number=0000000000092785&sum=199200 [10:46:49]OFD Sender: Processing packet 103629 [packets to send 17, broken 16] [10:46:49]ProducePacketName [10:46:49]name=ofd_packets/00103629 [10:46:49]OFD Sender: To server: pG, [10:46:49]CommunicateWithHost lk.salyk.kg:30040 [10:46:49]ConnectInit lk.salyk.kg [10:46:49]written 0, free lines is 4095 [10:46:49]Connected sock=10 [10:46: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 39 33 0F 01 00 00 CE 85 07 01 A0 DE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 20 0A 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 0A 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E3 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A2 52 00 00 00 00 07 04 06 00 20 0A 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 23 B7 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 CD 94 01 00 35 04 06 00 87 90 DB 1B 43 87 F1 F4 6A D6 59 F2 88 80 [10:46: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 39 33 4F 00 00 00 D9 F8 47 00 E3 DC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 CD 94 01 00 F4 03 04 00 AC 5D 72 66 B6 04 01 00 00 A6 22 36 04 42 72 66 AD [10:46:50]CommunicateWithHost err = 0 [10:46:50]CheckOFDResponse [10:46:50]1017 (14) - 77093643461234 [10:46:50]1041 (16) - 0000000000875093 [10:46:50]1040 (4) - 103629 [10:46:50]1012 (4) - 19.06.2024 04:25 [10:46:50]1206 (1) - 0 [10:46:50]OFD Sender: Remove packet 103629 [10:46:50]ProducePacketName [10:46:50]name=ofd_packets/00103629 [10:46:50]NVStorageDeleteData [10:46:50]Write to MH i2c: 01 00 00 7F 9C 1B [10:46:50]Write i2c OK [10:46:50]MH_I2C_Read... [10:46:50]Read from MH i2c: 01 [10:46:50]MH_I2C_Read... [10:46:50]Read from MH i2c: 01 07 00 [10:46:50]MH_I2C_Read... [10:46:50]Read from MH i2c: 01 07 00 7F 9C 00 00 00 00 00 EC 0C 1A [10:46:50]RasterBufferAndPrint [10:46:50]line [10:46:50]line [10:46:50]line [10:46:50]line [10:46:50]line [10:46:50]written 0, free lines is 3314 [10:46:50]MH_Cut [10:46:50]Write to MH i2c: D1 01 00 86 9C 01 F4 [10:46:50]Write i2c OK [10:46:50]MH_I2C_Read... [10:46:50]Read from MH i2c: D1 [10:46:50]MH_I2C_Read... [10:46:50]Read from MH i2c: D1 01 00 [10:46:50]MH_I2C_Read... [10:46:50]Read from MH i2c: D1 01 00 86 9C 00 F3 [10:46:50]Write to MH i2c: 01 00 00 87 9C 23 [10:46:50]Write i2c OK [10:46:50]MH_I2C_Read... [10:46:50]OFD Sender: No OFD packet to send [10:46:50]*** Cut start [10:46:50]*** Partial cut [10:46:50]*** CUTSNS_PIN = 1 [10:46:50]*** CUTSNS_PIN = 0 [10:46:51]*** Brake cut motor [10:46:51]Read from MH i2c: 01 [10:46:51]MH_I2C_Read... [10:46:51]*** Stop cut motor [10:46:51]*** Cut end [10:46:51]Read from MH i2c: 01 07 00 [10:46:51]MH_I2C_Read... [10:46:51]Read from MH i2c: 01 07 00 87 9C 00 00 00 00 00 FF 0F 38 [10:46:51]process_action close_receipt done [10:46:51]requested_data is exist [10:46:51]produce_requested_data [10:46:51]requested_item fm.sn is exist - process it [10:46:51]wFMCommunicate request_size=4 [10:46:51]MH_SAM_APDU [10:46:51]CAPDU: 80 11 00 00 [10:46:51]Write to MH i2c: E2 08 00 88 9C 80 11 00 00 00 00 00 00 9E [10:46:51]Write i2c OK [10:46:51]MH_I2C_Read... [10:46:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:46:51]Read from MH i2c: E2 [10:46:51]MH_I2C_Read... [10:46:51]Read from MH i2c: E2 17 00 [10:46:51]MH_I2C_Read... [10:46:51]Read from MH i2c: E2 17 00 88 9C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 F1 [10:46:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [10:46:51]wFMCommunicate OK [10:46:51]requested_item fd.num is exist - process it [10:46:51]SAM_PROTO_GetFieldsCounters [10:46:51]wFMCommunicate request_size=4 [10:46:51]MH_SAM_APDU [10:46:51]CAPDU: 80 13 00 00 [10:46:51]Write to MH i2c: E2 08 00 89 9C 80 13 00 00 00 00 00 00 A1 [10:46:51]Write i2c OK [10:46:51]MH_I2C_Read... [10:46:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:46:51]Read from MH i2c: E2 [10:46:51]MH_I2C_Read... [10:46:51]Read from MH i2c: E2 62 00 [10:46:51]MH_I2C_Read... [10:46:51]Read from MH i2c: E2 62 00 89 9C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 CD 94 01 00 0E 04 04 00 61 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 3D [10:46: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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 CD 94 01 00 0E 04 04 00 61 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 [10:46:51]wFMCommunicate OK [10:46:51]SAM_PROTO_GetFieldsCounters done [10:46:51]requested_item shift.num is exist - process it [10:46:51]requested_item shift.opened is exist - process it [10:46:51]req_shift_opened [10:46:51]FM_GetShiftState [10:46:51]SAM_PROTO_GetShiftState [10:46:51]wFMCommunicate request_size=4 [10:46:51]MH_SAM_APDU [10:46:51]CAPDU: 80 13 01 00 [10:46:51]Write to MH i2c: E2 08 00 8A 9C 80 13 01 00 00 00 00 00 A3 [10:46:51]Write i2c OK [10:46:51]MH_I2C_Read... [10:46:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:46:51]Read from MH i2c: E2 [10:46:51]MH_I2C_Read... [10:46:51]Read from MH i2c: E2 0E 00 [10:46:51]MH_I2C_Read... [10:46:51]Read from MH i2c: E2 0E 00 8A 9C 00 09 00 01 04 26 72 66 00 00 00 00 90 00 B1 [10:46:51]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [10:46:51]wFMCommunicate OK [10:46:51]SAM_PROTO_GetShiftState done [10:46:51]FM_GetShiftState done [10:46:51]req_shift_opened done [10:46:51]requested_item shift.open_date is exist - process it [10:46:51]req_shift_open_date [10:46:51]req_shift_open_date done [10:46:51]produce_requested_data done [10:46:51]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103629,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [10:46:51]process_action_free close_receipt [10:46:51]json_value_free [10:46:51]json_value_free done [10:46:51]process_json_proto returns [10:46:51]Send response to host [10:46:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103629,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [10:46:51]free response buf [10:46:51]execute_script done [10:46:51]execute_script returns [10:46:51]free content buf [10:46:51]Sock 9.Close socket [10:46:51]Sock 9.Thread stoped [10:46:55]OFD Sender: No OFD packet to send [10:47:00]OFD Sender: No OFD packet to send [10:47:05]OFD Sender: No OFD packet to send [10:47:10]OFD Sender: No OFD packet to send [10:47:15]OFD Sender: No OFD packet to send [10:47:20]OFD Sender: No OFD packet to send [10:47:25]OFD Sender: No OFD packet to send [10:47:30]OFD Sender: No OFD packet to send [10:47:35]OFD Sender: No OFD packet to send [10:47:40]OFD Sender: No OFD packet to send [10:47:45]OFD Sender: No OFD packet to send [10:47:50]OFD Sender: No OFD packet to send [10:47:55]OFD Sender: No OFD packet to send [10:48:00]OFD Sender: No OFD packet to send [10:48:05]OFD Sender: No OFD packet to send [10:48:10]OFD Sender: No OFD packet to send [10:48:15]OFD Sender: No OFD packet to send [10:48:20]OFD Sender: No OFD packet to send [10:48:25]OFD Sender: No OFD packet to send [10:48:30]OFD Sender: No OFD packet to send [10:48:35]OFD Sender: No OFD packet to send [10:48:40]OFD Sender: No OFD packet to send [10:48:45]OFD Sender: No OFD packet to send [10:48:50]OFD Sender: No OFD packet to send [10:48:55]OFD Sender: No OFD packet to send [10:49:00]OFD Sender: No OFD packet to send [10:49:05]OFD Sender: No OFD packet to send [10:49:10]OFD Sender: No OFD packet to send [10:49:15]OFD Sender: No OFD packet to send [10:49:20]OFD Sender: No OFD packet to send [10:49:25]OFD Sender: No OFD packet to send [10:49:30]OFD Sender: No OFD packet to send [10:49:35]OFD Sender: No OFD packet to send [10:49:40]OFD Sender: No OFD packet to send [10:49:45]OFD Sender: No OFD packet to send [10:49:50]OFD Sender: No OFD packet to send [10:49:51]accept exits with 7 [10:49:51]New connection [10:49:51]New thread 3067084132 created [10:49:51]Thread 3067227492 joined [10:49:51]Waiting for new connection... [10:49:51] Sock 7.Parse request [10:49:51]Sock 7.Check first char [10:49:51]Sock 7.First char is OK [10:49:51]request: POST /json_proto HTTP/1.0 [10:49:51]Method: POST [10:49:51]URL: /json_proto [10:49:51]Method is POST - this is cgi request [10:49:51]url: /json_proto [10:49:51]query_string will be loaded in cgi processing [10:49:51]execute_cgi json_proto POST (null) [10:49:51]execute_cgi path=json_proto method=POST [10:49:51]POST find Content-Length [10:49:51]Host: 172.17.38.133:8080 [10:49:51]Content-Length: 1208 [10:49:51]Content-Type: application/json [10:49:51] [10:49:51]POST finish read [10:49:51]Found Content-Length = 1208 [10:49:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. \u000A\u0421\u0447\u0435\u0442 N : (1)672868\u000A19.06.2024 10:27\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 21\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-5\u000A 60.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 4374.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\u000A3787955/56/57\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:49:51]execute_script... [10:49:51]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. \u000A\u0421\u0447\u0435\u0442 N : (1)672868\u000A19.06.2024 10:27\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 21\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-5\u000A 60.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 4374.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\u000A3787955/56/57\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:49:51]POST & json_proto [10:49:51]process_json_proto [10:49:51]json parsed OK: [10:49:51]protocol is kg_v1.0 [10:49:51]action value=print_text [10:49:51]process_action print_text [10:49:51]cmd_print_text [10:49:51]ExternCall_PrintAddStr [10:49:51]wPrintStart [10:49:51]Write to MH i2c: 01 00 00 8B 9C 27 [10:49:51]Write i2c OK [10:49:51]MH_I2C_Read... [10:49:51]Read from MH i2c: 01 [10:49:51]MH_I2C_Read... [10:49:51]Read from MH i2c: 01 07 00 [10:49:51]MH_I2C_Read... [10:49:51]Read from MH i2c: 01 07 00 8B 9C 00 00 00 00 00 FF 0F 3C [10:49:51]RasterBufferAndPrint [10:49:51]line *****ТОВАРНЫЙ ЧЕК***** [10:49:51]line АЗС 120 [10:49:51]line Партнер нефть [10:49:51]line 02508201610067 [10:49:51]line Кассир : Байбугуева Г. [10:49:51]line Счет N : (1)672868 [10:49:51]line 19.06.2024 10:27 [10:49:51]line ПРОДАЖА [10:49:51]line ТРК (МРК, ГНК): 21 [10:49:51]line Вид ГСМ : 2710194210 [10:49:51]line ДТ(л)-К-5 [10:49:51]line 60.000 x 72.90 [10:49:51]line ИТОГ: 4374.00 [10:49:51]line Тип оплаты: Талоны: Партнер нефть [10:49:51]line 3787955/56/57 [10:49:51]line ______________________ [10:49:51]line (подпись) [10:49:51]written 0, free lines is 4095 [10:49:51]Write to MH i2c: 01 00 00 9F 9C 3B [10:49:51]Write i2c OK [10:49:51]MH_I2C_Read... [10:49:51]Read from MH i2c: 01 [10:49:51]MH_I2C_Read... [10:49:51]Read from MH i2c: 01 07 00 [10:49:51]MH_I2C_Read... [10:49:51]Read from MH i2c: 01 07 00 9F 9C 00 00 00 00 00 17 0E 67 [10:49:51]RasterBufferAndPrint [10:49:51]line [10:49:51]line [10:49:51]line [10:49:51]line [10:49:51]line [10:49:51]written 0, free lines is 3609 [10:49:51]MH_Cut [10:49:51]Write to MH i2c: D1 01 00 A6 9C 01 14 [10:49:51]Write i2c OK [10:49:51]MH_I2C_Read... [10:49:51]Read from MH i2c: D1 [10:49:51]MH_I2C_Read... [10:49:51]Read from MH i2c: D1 01 00 [10:49:51]MH_I2C_Read... [10:49:51]Read from MH i2c: D1 01 00 A6 9C 00 13 [10:49:51]Write to MH i2c: 01 00 00 A7 9C 43 [10:49:51]Write i2c OK [10:49:51]MH_I2C_Read... [10:49:51]*** Cut start [10:49:51]*** Partial cut [10:49:51]*** CUTSNS_PIN = 1 [10:49:51]*** CUTSNS_PIN = 0 [10:49:52]*** Brake cut motor [10:49:52]Read from MH i2c: 01 [10:49:52]MH_I2C_Read... [10:49:52]*** Stop cut motor [10:49:52]*** Cut end [10:49:52]Read from MH i2c: 01 07 00 [10:49:52]MH_I2C_Read... [10:49:52]Read from MH i2c: 01 07 00 A7 9C 00 00 00 00 00 FF 0F 58 [10:49:52]process_action print_text done [10:49:52]requested_data is exist [10:49:52]produce_requested_data [10:49:52]requested_item fm.sn is exist - process it [10:49:52]wFMCommunicate request_size=4 [10:49:52]MH_SAM_APDU [10:49:52]CAPDU: 80 11 00 00 [10:49:52]Write to MH i2c: E2 08 00 A8 9C 80 11 00 00 00 00 00 00 BE [10:49:52]Write i2c OK [10:49:52]MH_I2C_Read... [10:49:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:49:52]Read from MH i2c: E2 [10:49:52]MH_I2C_Read... [10:49:52]Read from MH i2c: E2 17 00 [10:49:52]MH_I2C_Read... [10:49:52]Read from MH i2c: E2 17 00 A8 9C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 11 [10:49:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [10:49:52]wFMCommunicate OK [10:49:52]requested_item fd.num is exist - process it [10:49:52]SAM_PROTO_GetFieldsCounters [10:49:52]wFMCommunicate request_size=4 [10:49:52]MH_SAM_APDU [10:49:52]CAPDU: 80 13 00 00 [10:49:52]Write to MH i2c: E2 08 00 A9 9C 80 13 00 00 00 00 00 00 C1 [10:49:52]Write i2c OK [10:49:52]MH_I2C_Read... [10:49:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:49:52]Read from MH i2c: E2 [10:49:52]MH_I2C_Read... [10:49:52]Read from MH i2c: E2 62 00 [10:49:52]MH_I2C_Read... [10:49:52]Read from MH i2c: E2 62 00 A9 9C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 CD 94 01 00 0E 04 04 00 61 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 5D [10:49: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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 CD 94 01 00 0E 04 04 00 61 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 [10:49:52]wFMCommunicate OK [10:49:52]SAM_PROTO_GetFieldsCounters done [10:49:52]requested_item shift.num is exist - process it [10:49:52]requested_item shift.opened is exist - process it [10:49:52]req_shift_opened [10:49:52]FM_GetShiftState [10:49:52]SAM_PROTO_GetShiftState [10:49:52]wFMCommunicate request_size=4 [10:49:52]MH_SAM_APDU [10:49:52]CAPDU: 80 13 01 00 [10:49:52]Write to MH i2c: E2 08 00 AA 9C 80 13 01 00 00 00 00 00 C3 [10:49:52]Write i2c OK [10:49:52]MH_I2C_Read... [10:49:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:49:52]Read from MH i2c: E2 [10:49:52]MH_I2C_Read... [10:49:52]Read from MH i2c: E2 0E 00 [10:49:52]MH_I2C_Read... [10:49:52]Read from MH i2c: E2 0E 00 AA 9C 00 09 00 01 04 26 72 66 00 00 00 00 90 00 D1 [10:49:52]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [10:49:52]wFMCommunicate OK [10:49:52]SAM_PROTO_GetShiftState done [10:49:52]FM_GetShiftState done [10:49:52]req_shift_opened done [10:49:52]requested_item shift.open_date is exist - process it [10:49:52]req_shift_open_date [10:49:52]req_shift_open_date done [10:49:52]produce_requested_data done [10:49:52]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103629,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [10:49:52]process_action_free print_text [10:49:52]json_value_free [10:49:52]json_value_free done [10:49:52]process_json_proto returns [10:49:52]Send response to host [10:49:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103629,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [10:49:52]free response buf [10:49:52]execute_script done [10:49:52]execute_script returns [10:49:52]free content buf [10:49:52]Sock 7.Close socket [10:49:52]Sock 7.Thread stoped [10:49:55]OFD Sender: No OFD packet to send [10:50:00]OFD Sender: No OFD packet to send [10:50:05]OFD Sender: No OFD packet to send [10:50:10]OFD Sender: No OFD packet to send [10:50:15]OFD Sender: No OFD packet to send [10:50:20]OFD Sender: No OFD packet to send [10:50:25]OFD Sender: No OFD packet to send [10:50:30]OFD Sender: No OFD packet to send [10:50:35]OFD Sender: No OFD packet to send [10:50:40]OFD Sender: No OFD packet to send [10:50:45]OFD Sender: No OFD packet to send [10:50:50]OFD Sender: No OFD packet to send [10:50:55]OFD Sender: No OFD packet to send [10:51:00]OFD Sender: No OFD packet to send [10:51:05]OFD Sender: No OFD packet to send [10:51:10]OFD Sender: No OFD packet to send [10:51:15]OFD Sender: No OFD packet to send [10:51:20]OFD Sender: No OFD packet to send [10:51:25]OFD Sender: No OFD packet to send [10:51:30]OFD Sender: No OFD packet to send [10:51:35]OFD Sender: No OFD packet to send [10:51:40]OFD Sender: No OFD packet to send [10:51:45]OFD Sender: No OFD packet to send [10:51:50]OFD Sender: No OFD packet to send [10:51:55]OFD Sender: No OFD packet to send [10:52:00]OFD Sender: No OFD packet to send [10:52:05]OFD Sender: No OFD packet to send [10:52:10]OFD Sender: No OFD packet to send [10:52:15]OFD Sender: No OFD packet to send [10:52:20]OFD Sender: No OFD packet to send [10:52:25]OFD Sender: No OFD packet to send [10:52:30]OFD Sender: No OFD packet to send [10:52:35]OFD Sender: No OFD packet to send [10:52:40]OFD Sender: No OFD packet to send [10:52:45]OFD Sender: No OFD packet to send [10:52:50]OFD Sender: No OFD packet to send [10:52:55]OFD Sender: No OFD packet to send [10:53:00]OFD Sender: No OFD packet to send [10:53:05]OFD Sender: No OFD packet to send [10:53:10]OFD Sender: No OFD packet to send [10:53:15]OFD Sender: No OFD packet to send [10:53:20]OFD Sender: No OFD packet to send [10:53:25]OFD Sender: No OFD packet to send [10:53:30]OFD Sender: No OFD packet to send [10:53:35]OFD Sender: No OFD packet to send [10:53:40]OFD Sender: No OFD packet to send [10:53:45]OFD Sender: No OFD packet to send [10:53:50]OFD Sender: No OFD packet to send [10:53:55]OFD Sender: No OFD packet to send [10:54:00]OFD Sender: No OFD packet to send [10:54:05]OFD Sender: No OFD packet to send [10:54:10]OFD Sender: No OFD packet to send [10:54:15]OFD Sender: No OFD packet to send [10:54:20]OFD Sender: No OFD packet to send [10:54:25]OFD Sender: No OFD packet to send [10:54:30]OFD Sender: No OFD packet to send [10:54:35]OFD Sender: No OFD packet to send [10:54:40]OFD Sender: No OFD packet to send [10:54:45]OFD Sender: No OFD packet to send [10:54:50]OFD Sender: No OFD packet to send [10:54:55]OFD Sender: No OFD packet to send [10:55:00]OFD Sender: No OFD packet to send [10:55:05]OFD Sender: No OFD packet to send [10:55:10]OFD Sender: No OFD packet to send [10:55:15]OFD Sender: No OFD packet to send [10:55:20]OFD Sender: No OFD packet to send [10:55:25]OFD Sender: No OFD packet to send [10:55:27]accept exits with 9 [10:55:27]New connection [10:55:27]New thread 3067227492 created [10:55:27]Thread 3067084132 joined [10:55:27]Waiting for new connection... [10:55:27] Sock 9.Parse request [10:55:27]Sock 9.Check first char [10:55:27]Sock 9.First char is OK [10:55:27]request: POST /json_proto HTTP/1.0 [10:55:27]Method: POST [10:55:27]URL: /json_proto [10:55:27]Method is POST - this is cgi request [10:55:27]url: /json_proto [10:55:27]query_string will be loaded in cgi processing [10:55:27]execute_cgi json_proto POST (null) [10:55:27]execute_cgi path=json_proto method=POST [10:55:27]POST find Content-Length [10:55:27]Host: 172.17.38.133:8080 [10:55:27]Content-Length: 1197 [10:55:27]Content-Type: application/json [10:55:27] [10:55:27]POST finish read [10:55:27]Found Content-Length = 1197 [10:55:27]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 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. \u000A\u0421\u0447\u0435\u0442 N : (1)672871\u000A19.06.2024 10:32\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 32\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 66.40\u000A\u0418\u0422\u041E\u0413: 1328.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\u000A3592857\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:55:27]execute_script... [10:55:27]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 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. \u000A\u0421\u0447\u0435\u0442 N : (1)672871\u000A19.06.2024 10:32\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 32\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 66.40\u000A\u0418\u0422\u041E\u0413: 1328.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\u000A3592857\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:55:27]POST & json_proto [10:55:27]process_json_proto [10:55:27]json parsed OK: [10:55:27]protocol is kg_v1.0 [10:55:27]action value=print_text [10:55:27]process_action print_text [10:55:27]cmd_print_text [10:55:27]ExternCall_PrintAddStr [10:55:27]wPrintStart [10:55:27]Write to MH i2c: 01 00 00 AB 9C 47 [10:55:27]Write i2c OK [10:55:27]MH_I2C_Read... [10:55:27]Read from MH i2c: 01 [10:55:27]MH_I2C_Read... [10:55:27]Read from MH i2c: 01 07 00 [10:55:27]MH_I2C_Read... [10:55:27]Read from MH i2c: 01 07 00 AB 9C 00 00 00 00 00 FF 0F 5C [10:55:27]RasterBufferAndPrint [10:55:27]line *****ТОВАРНЫЙ ЧЕК***** [10:55:27]line АЗС 120 [10:55:27]line Партнер нефть [10:55:27]line 02508201610067 [10:55:27]line Кассир : Байбугуева Г. [10:55:27]line Счет N : (1)672871 [10:55:27]line 19.06.2024 10:32 [10:55:27]line ПРОДАЖА [10:55:27]line ТРК (МРК, ГНК): 32 [10:55:27]line Вид ГСМ : 2710124130 [10:55:27]line Аи-92-К-5 [10:55:27]line 20.000 x 66.40 [10:55:27]line ИТОГ: 1328.00 [10:55:27]line Тип оплаты: Талоны: Партнер нефть [10:55:27]line 3592857 [10:55:27]line ______________________ [10:55:27]line (подпись) [10:55:27]written 0, free lines is 4095 [10:55:27]Write to MH i2c: 01 00 00 BF 9C 5B [10:55:27]Write i2c OK [10:55:27]MH_I2C_Read... [10:55:27]Read from MH i2c: 01 [10:55:27]MH_I2C_Read... [10:55:27]Read from MH i2c: 01 07 00 [10:55:27]MH_I2C_Read... [10:55:27]Read from MH i2c: 01 07 00 BF 9C 00 00 00 00 00 14 0E 84 [10:55:27]RasterBufferAndPrint [10:55:27]line [10:55:27]line [10:55:27]line [10:55:27]line [10:55:27]line [10:55:27]written 0, free lines is 3606 [10:55:27]MH_Cut [10:55:27]Write to MH i2c: D1 01 00 C6 9C 01 34 [10:55:27]Write i2c OK [10:55:27]MH_I2C_Read... [10:55:27]Read from MH i2c: D1 [10:55:27]MH_I2C_Read... [10:55:27]Read from MH i2c: D1 01 00 [10:55:27]MH_I2C_Read... [10:55:27]Read from MH i2c: D1 01 00 C6 9C 00 33 [10:55:27]Write to MH i2c: 01 00 00 C7 9C 63 [10:55:27]Write i2c OK [10:55:27]MH_I2C_Read... [10:55:28]*** Cut start [10:55:28]*** Partial cut [10:55:28]*** CUTSNS_PIN = 1 [10:55:28]*** CUTSNS_PIN = 0 [10:55:28]*** Brake cut motor [10:55:28]Read from MH i2c: 01 [10:55:28]MH_I2C_Read... [10:55:28]*** Stop cut motor [10:55:28]*** Cut end [10:55:28]Read from MH i2c: 01 07 00 [10:55:28]MH_I2C_Read... [10:55:28]Read from MH i2c: 01 07 00 C7 9C 00 00 00 00 00 FF 0F 78 [10:55:28]process_action print_text done [10:55:28]requested_data is exist [10:55:28]produce_requested_data [10:55:28]requested_item fm.sn is exist - process it [10:55:28]wFMCommunicate request_size=4 [10:55:28]MH_SAM_APDU [10:55:28]CAPDU: 80 11 00 00 [10:55:28]Write to MH i2c: E2 08 00 C8 9C 80 11 00 00 00 00 00 00 DE [10:55:28]Write i2c OK [10:55:28]MH_I2C_Read... [10:55:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:55:28]Read from MH i2c: E2 [10:55:28]MH_I2C_Read... [10:55:28]Read from MH i2c: E2 17 00 [10:55:28]MH_I2C_Read... [10:55:28]Read from MH i2c: E2 17 00 C8 9C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 31 [10:55:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [10:55:28]wFMCommunicate OK [10:55:28]requested_item fd.num is exist - process it [10:55:28]SAM_PROTO_GetFieldsCounters [10:55:28]wFMCommunicate request_size=4 [10:55:28]MH_SAM_APDU [10:55:28]CAPDU: 80 13 00 00 [10:55:28]Write to MH i2c: E2 08 00 C9 9C 80 13 00 00 00 00 00 00 E1 [10:55:28]Write i2c OK [10:55:28]MH_I2C_Read... [10:55:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:55:28]Read from MH i2c: E2 [10:55:28]MH_I2C_Read... [10:55:28]Read from MH i2c: E2 62 00 [10:55:28]MH_I2C_Read... [10:55:28]Read from MH i2c: E2 62 00 C9 9C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 CD 94 01 00 0E 04 04 00 61 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 7D [10:55: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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 CD 94 01 00 0E 04 04 00 61 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 [10:55:28]wFMCommunicate OK [10:55:28]SAM_PROTO_GetFieldsCounters done [10:55:28]requested_item shift.num is exist - process it [10:55:28]requested_item shift.opened is exist - process it [10:55:28]req_shift_opened [10:55:28]FM_GetShiftState [10:55:28]SAM_PROTO_GetShiftState [10:55:28]wFMCommunicate request_size=4 [10:55:28]MH_SAM_APDU [10:55:28]CAPDU: 80 13 01 00 [10:55:28]Write to MH i2c: E2 08 00 CA 9C 80 13 01 00 00 00 00 00 E3 [10:55:28]Write i2c OK [10:55:28]MH_I2C_Read... [10:55:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:55:28]Read from MH i2c: E2 [10:55:28]MH_I2C_Read... [10:55:28]Read from MH i2c: E2 0E 00 [10:55:28]MH_I2C_Read... [10:55:28]Read from MH i2c: E2 0E 00 CA 9C 00 09 00 01 04 26 72 66 00 00 00 00 90 00 F1 [10:55:28]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [10:55:28]wFMCommunicate OK [10:55:28]SAM_PROTO_GetShiftState done [10:55:28]FM_GetShiftState done [10:55:28]req_shift_opened done [10:55:28]requested_item shift.open_date is exist - process it [10:55:28]req_shift_open_date [10:55:28]req_shift_open_date done [10:55:28]produce_requested_data done [10:55:28]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103629,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [10:55:28]process_action_free print_text [10:55:28]json_value_free [10:55:28]json_value_free done [10:55:28]process_json_proto returns [10:55:28]Send response to host [10:55:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103629,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [10:55:28]free response buf [10:55:28]execute_script done [10:55:28]execute_script returns [10:55:28]free content buf [10:55:28]Sock 9.Close socket [10:55:28]Sock 9.Thread stoped [10:55:31]OFD Sender: No OFD packet to send [10:55:36]OFD Sender: No OFD packet to send [10:55:41]OFD Sender: No OFD packet to send [10:55:46]OFD Sender: No OFD packet to send [10:55:51]OFD Sender: No OFD packet to send [10:55:56]OFD Sender: No OFD packet to send [10:56:01]OFD Sender: No OFD packet to send [10:56:06]OFD Sender: No OFD packet to send [10:56:11]OFD Sender: No OFD packet to send [10:56:16]OFD Sender: No OFD packet to send [10:56:21]OFD Sender: No OFD packet to send [10:56:26]OFD Sender: No OFD packet to send [10:56:31]OFD Sender: No OFD packet to send [10:56:36]OFD Sender: No OFD packet to send [10:56:41]OFD Sender: No OFD packet to send [10:56:45]accept exits with 7 [10:56:45]New connection [10:56:45]New thread 3067084132 created [10:56:45]Thread 3067227492 joined [10:56:45]Waiting for new connection... [10:56:45] Sock 7.Parse request [10:56:45]Sock 7.Check first char [10:56:45]Sock 7.First char is OK [10:56:45]request: POST /json_proto HTTP/1.0 [10:56:45]Method: POST [10:56:45]URL: /json_proto [10:56:45]Method is POST - this is cgi request [10:56:45]url: /json_proto [10:56:45]query_string will be loaded in cgi processing [10:56:45]execute_cgi json_proto POST (null) [10:56:45]execute_cgi path=json_proto method=POST [10:56:45]POST find Content-Length [10:56:45]Host: 172.17.38.133:8080 [10:56:45]Content-Length: 1206 [10:56:45]Content-Type: application/json [10:56:45] [10:56:45]POST finish read [10:56:45]Found Content-Length = 1206 [10:56:45]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 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. \u000A\u0421\u0447\u0435\u0442 N : (1)672872\u000A19.06.2024 10:34\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 42\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 10.000 x 66.40\u000A\u0418\u0422\u041E\u0413: 664.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A53329\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:56:45]execute_script... [10:56:45]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 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. \u000A\u0421\u0447\u0435\u0442 N : (1)672872\u000A19.06.2024 10:34\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 42\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 10.000 x 66.40\u000A\u0418\u0422\u041E\u0413: 664.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A53329\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:56:45]POST & json_proto [10:56:45]process_json_proto [10:56:45]json parsed OK: [10:56:45]protocol is kg_v1.0 [10:56:45]action value=print_text [10:56:45]process_action print_text [10:56:45]cmd_print_text [10:56:45]ExternCall_PrintAddStr [10:56:45]wPrintStart [10:56:45]Write to MH i2c: 01 00 00 CB 9C 67 [10:56:45]Write i2c OK [10:56:45]MH_I2C_Read... [10:56:45]Read from MH i2c: 01 [10:56:45]MH_I2C_Read... [10:56:45]Read from MH i2c: 01 07 00 [10:56:45]MH_I2C_Read... [10:56:45]Read from MH i2c: 01 07 00 CB 9C 00 00 00 00 00 FF 0F 7C [10:56:45]RasterBufferAndPrint [10:56:45]line *****ТОВАРНЫЙ ЧЕК***** [10:56:45]line АЗС 120 [10:56:45]line Партнер нефть [10:56:45]line 02508201610067 [10:56:45]line Кассир : Байбугуева Г. [10:56:45]line Счет N : (1)672872 [10:56:45]line 19.06.2024 10:34 [10:56:45]line ПРОДАЖА [10:56:45]line ТРК (МРК, ГНК): 42 [10:56:45]line Вид ГСМ : 2710124130 [10:56:45]line Аи-92-К-5 [10:56:45]line 10.000 x 66.40 [10:56:45]line ИТОГ: 664.00 [10:56:45]line Тип оплаты: Талоны: Топливная Карта [10:56:45]line 53329 [10:56:45]line ______________________ [10:56:45]line (подпись) [10:56:45]written 0, free lines is 4095 [10:56:46]OFD Sender: No OFD packet to send [10:56:46]Write to MH i2c: 01 00 00 DF 9C 7B [10:56:46]Write i2c OK [10:56:46]MH_I2C_Read... [10:56:46]Read from MH i2c: 01 [10:56:46]MH_I2C_Read... [10:56:46]Read from MH i2c: 01 07 00 [10:56:46]MH_I2C_Read... [10:56:46]Read from MH i2c: 01 07 00 DF 9C 00 00 00 00 00 13 0E A3 [10:56:46]RasterBufferAndPrint [10:56:46]line [10:56:46]line [10:56:46]line [10:56:46]line [10:56:46]line [10:56:46]written 0, free lines is 3605 [10:56:46]MH_Cut [10:56:46]Write to MH i2c: D1 01 00 E6 9C 01 54 [10:56:46]Write i2c OK [10:56:46]MH_I2C_Read... [10:56:46]Read from MH i2c: D1 [10:56:46]MH_I2C_Read... [10:56:46]Read from MH i2c: D1 01 00 [10:56:46]MH_I2C_Read... [10:56:46]Read from MH i2c: D1 01 00 E6 9C 00 53 [10:56:46]Write to MH i2c: 01 00 00 E7 9C 83 [10:56:46]Write i2c OK [10:56:46]MH_I2C_Read... [10:56:46]*** Cut start [10:56:46]*** Partial cut [10:56:46]*** CUTSNS_PIN = 1 [10:56:46]*** CUTSNS_PIN = 0 [10:56:46]*** Brake cut motor [10:56:47]Read from MH i2c: 01 [10:56:47]MH_I2C_Read... [10:56:47]*** Stop cut motor [10:56:47]*** Cut end [10:56:47]Read from MH i2c: 01 07 00 [10:56:47]MH_I2C_Read... [10:56:47]Read from MH i2c: 01 07 00 E7 9C 00 00 00 00 00 FF 0F 98 [10:56:47]process_action print_text done [10:56:47]requested_data is exist [10:56:47]produce_requested_data [10:56:47]requested_item fm.sn is exist - process it [10:56:47]wFMCommunicate request_size=4 [10:56:47]MH_SAM_APDU [10:56:47]CAPDU: 80 11 00 00 [10:56:47]Write to MH i2c: E2 08 00 E8 9C 80 11 00 00 00 00 00 00 FE [10:56:47]Write i2c OK [10:56:47]MH_I2C_Read... [10:56:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:56:47]Read from MH i2c: E2 [10:56:47]MH_I2C_Read... [10:56:47]Read from MH i2c: E2 17 00 [10:56:47]MH_I2C_Read... [10:56:47]Read from MH i2c: E2 17 00 E8 9C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 51 [10:56:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [10:56:47]wFMCommunicate OK [10:56:47]requested_item fd.num is exist - process it [10:56:47]SAM_PROTO_GetFieldsCounters [10:56:47]wFMCommunicate request_size=4 [10:56:47]MH_SAM_APDU [10:56:47]CAPDU: 80 13 00 00 [10:56:47]Write to MH i2c: E2 08 00 E9 9C 80 13 00 00 00 00 00 00 01 [10:56:47]Write i2c OK [10:56:47]MH_I2C_Read... [10:56:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:56:47]Read from MH i2c: E2 [10:56:47]MH_I2C_Read... [10:56:47]Read from MH i2c: E2 62 00 [10:56:47]MH_I2C_Read... [10:56:47]Read from MH i2c: E2 62 00 E9 9C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 CD 94 01 00 0E 04 04 00 61 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 9D [10:56: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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 CD 94 01 00 0E 04 04 00 61 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 [10:56:47]wFMCommunicate OK [10:56:47]SAM_PROTO_GetFieldsCounters done [10:56:47]requested_item shift.num is exist - process it [10:56:47]requested_item shift.opened is exist - process it [10:56:47]req_shift_opened [10:56:47]FM_GetShiftState [10:56:47]SAM_PROTO_GetShiftState [10:56:47]wFMCommunicate request_size=4 [10:56:47]MH_SAM_APDU [10:56:47]CAPDU: 80 13 01 00 [10:56:47]Write to MH i2c: E2 08 00 EA 9C 80 13 01 00 00 00 00 00 03 [10:56:47]Write i2c OK [10:56:47]MH_I2C_Read... [10:56:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:56:47]Read from MH i2c: E2 [10:56:47]MH_I2C_Read... [10:56:47]Read from MH i2c: E2 0E 00 [10:56:47]MH_I2C_Read... [10:56:47]Read from MH i2c: E2 0E 00 EA 9C 00 09 00 01 04 26 72 66 00 00 00 00 90 00 11 [10:56:47]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [10:56:47]wFMCommunicate OK [10:56:47]SAM_PROTO_GetShiftState done [10:56:47]FM_GetShiftState done [10:56:47]req_shift_opened done [10:56:47]requested_item shift.open_date is exist - process it [10:56:47]req_shift_open_date [10:56:47]req_shift_open_date done [10:56:47]produce_requested_data done [10:56:47]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103629,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [10:56:47]process_action_free print_text [10:56:47]json_value_free [10:56:47]json_value_free done [10:56:47]process_json_proto returns [10:56:47]Send response to host [10:56:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103629,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [10:56:47]free response buf [10:56:47]execute_script done [10:56:47]execute_script returns [10:56:47]free content buf [10:56:47]Sock 7.Close socket [10:56:47]Sock 7.Thread stoped [10:56:51]OFD Sender: No OFD packet to send [10:56:56]OFD Sender: No OFD packet to send [10:57:01]OFD Sender: No OFD packet to send [10:57:06]OFD Sender: No OFD packet to send [10:57:11]OFD Sender: No OFD packet to send [10:57:16]OFD Sender: No OFD packet to send [10:57:21]OFD Sender: No OFD packet to send [10:57:26]OFD Sender: No OFD packet to send [10:57:31]OFD Sender: No OFD packet to send [10:57:36]OFD Sender: No OFD packet to send [10:57:41]OFD Sender: No OFD packet to send [10:57:46]OFD Sender: No OFD packet to send [10:57:51]OFD Sender: No OFD packet to send [10:57:56]OFD Sender: No OFD packet to send [10:58:01]OFD Sender: No OFD packet to send [10:58:05]accept exits with 9 [10:58:05]New connection [10:58:05]New thread 3067227492 created [10:58:05]Thread 3067084132 joined [10:58:05]Waiting for new connection... [10:58:05] Sock 9.Parse request [10:58:05]Sock 9.Check first char [10:58:05]Sock 9.First char is OK [10:58:05]request: POST /json_proto HTTP/1.0 [10:58:05]Method: POST [10:58:05]URL: /json_proto [10:58:05]Method is POST - this is cgi request [10:58:05]url: /json_proto [10:58:05]query_string will be loaded in cgi processing [10:58:05]execute_cgi json_proto POST (null) [10:58:05]execute_cgi path=json_proto method=POST [10:58:05]POST find Content-Length [10:58:05]Host: 172.17.38.133:8080 [10:58:05]Content-Length: 682 [10:58:05]Content-Type: application/json [10:58:05] [10:58:05]POST finish read [10:58:05]Found Content-Length = 682 [10:58:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672873", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:58:05]execute_script... [10:58: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)672873", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:58:05]POST & json_proto [10:58:05]process_json_proto [10:58:05]json parsed OK: [10:58:05]protocol is kg_v1.0 [10:58:05]action value=close_receipt [10:58:05]process_action close_receipt [10:58:05]cmd_close_receipt [10:58:05]MH_GetDate [10:58:05]Write to MH i2c: F0 00 00 EB 9C 76 [10:58:05]Write i2c OK [10:58:05]MH_I2C_Read... [10:58:05]Read from MH i2c: F0 [10:58:05]MH_I2C_Read... [10:58:05]Read from MH i2c: F0 09 00 [10:58:05]MH_I2C_Read... [10:58:05]Read from MH i2c: F0 09 00 EB 9C 00 C9 B9 72 66 BD 8F 7C 64 05 [10:58:05]GetLastDocTimeStamp 1718794019 [10:58:05]current date 1718794697 [10:58:05]FM_GetShiftState [10:58:05]SAM_PROTO_GetShiftState [10:58:05]wFMCommunicate request_size=4 [10:58:05]MH_SAM_APDU [10:58:05]CAPDU: 80 13 01 00 [10:58:05]Write to MH i2c: E2 08 00 EC 9C 80 13 01 00 00 00 00 00 05 [10:58:05]Write i2c OK [10:58:05]MH_I2C_Read... [10:58:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:58:05]Read from MH i2c: E2 [10:58:05]MH_I2C_Read... [10:58:05]Read from MH i2c: E2 0E 00 [10:58:05]MH_I2C_Read... [10:58:05]Read from MH i2c: E2 0E 00 EC 9C 00 09 00 01 04 26 72 66 00 00 00 00 90 00 13 [10:58:05]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [10:58:05]wFMCommunicate OK [10:58:05]SAM_PROTO_GetShiftState done [10:58:05]FM_GetShiftState done [10:58:05]opened in 1718756868 [10:58:05]opened+sec_in_day 1718843268 [10:58:05]quantity*price = 100064 [10:58:05]sum+1 = 100066 [10:58:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.65 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 60 19.06.2024 10:58 Смена: 353 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103630 ФПД: 86876099306965 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T105817&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103630&fm=86876099306965&tin=02508201610067®Number=0000000000092785&sum=100000 [10:58:06]StoreToDocumentArchive [10:58:06]shift 353 fd 103630 [10:58:06]save to /storage/0353/doc_00103630 [10:58:06]save last doc name /storage/0353/doc_00103630 to /storage/kkm_last_doc_name [10:58:06]save OK [10:58:06]Clear old archive folders... [10:58:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:58:06]tlvbuf is 0152C1C0 [10:58:06]SAM_PROTO_ClearQueue [10:58:06]wFMCommunicate request_size=4 [10:58:06]MH_SAM_APDU [10:58:06]CAPDU: 80 09 00 00 [10:58:06]Write to MH i2c: E2 08 00 F9 9C 80 09 00 00 00 00 00 00 07 [10:58:06]Write i2c OK [10:58:06]MH_I2C_Read... [10:58:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:58:06]Read from MH i2c: E2 [10:58:06]MH_I2C_Read... [10:58:06]Read from MH i2c: E2 03 00 [10:58:06]MH_I2C_Read... [10:58:06]Read from MH i2c: E2 03 00 F9 9C 00 90 00 09 [10:58:06]RAPDU: 90 00 [10:58:06]wFMCommunicate OK [10:58:06]SAM_PROTO_ClearQueue done [10:58:06]KKMCreateOFDPacket [10:58:06]OFDProtocolAddRootSTLVToBuf [10:58:06]FM_MakeSignedData [10:58:06]FM_MakeSignedData [10:58:06]SAM_PROTO_SignData [10:58:06]wFMCommunicate request_size=4 [10:58:06]MH_SAM_APDU [10:58:06]CAPDU: 80 0D 01 02 [10:58:06]Write to MH i2c: E2 08 00 FA 9C 80 0D 01 02 00 00 00 00 0F [10:58:06]Write i2c OK [10:58:06]MH_I2C_Read... [10:58:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:58:06]Read from MH i2c: E2 [10:58:06]MH_I2C_Read... [10:58:06]Read from MH i2c: E2 03 00 [10:58:06]MH_I2C_Read... [10:58:06]Read from MH i2c: E2 03 00 FA 9C 00 90 00 0A [10:58:06]RAPDU: 90 00 [10:58:06]wFMCommunicate OK [10:58:06]wFMCommunicate request_size=255 [10:58:06]MH_SAM_APDU [10:58: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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 C9 B9 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 CE 94 01 00 35 04 06 00 4F [10:58:06]Write to MH i2c: E2 02 01 FB 9C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 C9 B9 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 CE 94 01 00 35 04 06 00 4F 00 00 C3 [10:58:06]Write i2c OK [10:58:06]MH_I2C_Read... [10:58:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:58:07]Read from MH i2c: E2 [10:58:07]MH_I2C_Read... [10:58:07]Read from MH i2c: E2 03 00 [10:58:07]MH_I2C_Read... [10:58:07]Read from MH i2c: E2 03 00 FB 9C 00 90 00 0B [10:58:07]RAPDU: 90 00 [10:58:07]wFMCommunicate OK [10:58:07]wFMCommunicate request_size=10 [10:58:07]MH_SAM_APDU [10:58:07]CAPDU: 80 0D 02 02 05 03 6B 09 E5 D5 [10:58:07]Write to MH i2c: E2 0D 00 FC 9C 80 0D 02 02 05 00 03 6B 09 E5 D5 00 00 4D [10:58:07]Write i2c OK [10:58:07]MH_I2C_Read... [10:58:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:58:07]Read from MH i2c: E2 [10:58:07]MH_I2C_Read... [10:58:07]Read from MH i2c: E2 03 00 [10:58:07]MH_I2C_Read... [10:58:07]Read from MH i2c: E2 03 00 FC 9C 00 90 00 0C [10:58:07]RAPDU: 90 00 [10:58:07]wFMCommunicate OK [10:58:07]wFMCommunicate request_size=4 [10:58:07]MH_SAM_APDU [10:58:07]CAPDU: 80 0D 03 02 [10:58:07]Write to MH i2c: E2 08 00 FD 9C 80 0D 03 02 00 00 00 00 14 [10:58:07]Write i2c OK [10:58:07]MH_I2C_Read... [10:58:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:58:07]Read from MH i2c: E2 [10:58:07]MH_I2C_Read... [10:58:07]Read from MH i2c: E2 0B 00 [10:58:07]MH_I2C_Read... [10:58:07]Read from MH i2c: E2 0B 00 FD 9C 00 84 4C 57 3C 74 D2 50 A9 90 00 B7 [10:58:07]RAPDU: 84 4C 57 3C 74 D2 50 A9 90 00 [10:58:07]wFMCommunicate OK [10:58:07]SAM_PROTO_SignData done [10:58:07]FM_MakeSignedData done [10:58:07]CreateOFDProtocolMessage [10:58:07]wFMCommunicate request_size=4 [10:58:07]MH_SAM_APDU [10:58:07]CAPDU: 80 11 00 00 [10:58:07]Write to MH i2c: E2 08 00 FE 9C 80 11 00 00 00 00 00 00 14 [10:58:07]Write i2c OK [10:58:07]MH_I2C_Read... [10:58:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:58:07]Read from MH i2c: E2 [10:58:07]MH_I2C_Read... [10:58:07]Read from MH i2c: E2 17 00 [10:58:07]MH_I2C_Read... [10:58:07]Read from MH i2c: E2 17 00 FE 9C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 67 [10:58:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [10:58:07]wFMCommunicate OK [10:58:07]CreateOFDProtocolMessage done [10:58:07]OFDSenderStorePacket 103630 [10:58:07]StoreOFDPacket docnum=103630 [10:58:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 84 5A 07 01 5A CA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 C9 B9 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 CE 94 01 00 35 04 06 00 4F 03 6B 09 E5 D5 84 4C 57 3C 74 D2 50 A9 [10:58:07]CheckFolder [10:58:07]dirname=/storage/ofd_packets [10:58:07]CheckFolder done [10:58:07]ProducePacketName [10:58:07]name=ofd_packets/00103630 [10:58:07]NVStorageSaveData ofd_packets/00103630 [10:58:07]File name is /storage/ofd_packets/00103630 [10:58:07]Write 301 bytes [10:58:07]NVStorageSaveData done [10:58:07]OFDSenderStorePacket done [10:58:07]KKMCreateOFDPacket done [10:58:07]NVStorageSaveData kkm_last_timestamp [10:58:07]File name is /storage/kkm_last_timestamp [10:58:07]Write 4 bytes [10:58:07]NVStorageSaveData done [10:58:07]ExternCall_PrintAddStr [10:58:07]wPrintStart [10:58:07]Write to MH i2c: 01 00 00 FF 9C 9B [10:58:07]Write i2c OK [10:58:07]MH_I2C_Read... [10:58:07]Read from MH i2c: 01 [10:58:07]MH_I2C_Read... [10:58:07]Read from MH i2c: 01 07 00 [10:58:07]MH_I2C_Read... [10:58:07]Read from MH i2c: 01 07 00 FF 9C 00 00 00 00 00 FF 0F B0 [10:58:07]RasterBufferAndPrint [10:58:07]line Счет N : (1)672873 [10:58:07]line ИНН: 02508201610067 [10:58:07]line Контрольно-Кассовый Чек [10:58:07]line ПРОДАЖА [10:58:07]line ТРК (МРК, ГНК) : 32 [10:58:07]line Товар: 2710124130 [10:58:07]line Аи-92-К-5 [10:58:07]line 15.070 * 66.40 [10:58:07]line = 1000.65 [10:58:07]line НДС 12% НСП 1% [10:58:07]line > о реализуемом товаре [10:58:07]line ОКРУГЛЕНИЕ: -0.65 [10:58:07]line ИТОГО: 1000.00 [10:58:07]line Внесено: 1000.00 [10:58:07]line СДАЧА: 0.00 [10:58:07]line НСП 1% : 8.85 [10:58:07]line НДС 12% : 106.26 [10:58:07]line Наличными: 1000.00 [10:58:07]line Безнал.: 0.00 [10:58:07]line Место: АЗС № 120 "Партнер Нефть" [10:58:07]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [10:58:07]line СНО: Общий режим [10:58:07]line Чек 60 19.06.2024 10:58 [10:58:07]line Смена: 353 ФФД: 1.0 [10:58:07]line ЗНМ: 0300000164 [10:58:07]line РНМ: 0000000000092785 [10:58:07]line Версия ККМ: 001 [10:58:07]line ФМ: 0000000000875093 [10:58:07]line ФД: 103630 [10:58:07]line ФПД: 86876099306965 [10:58:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T105817&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103630&fm=86876099306965&tin=02508201610067®Number=0000000000092785&sum=100000 [10:58:07]OFD Sender: Processing packet 103630 [packets to send 17, broken 16] [10:58:07]ProducePacketName [10:58:07]name=ofd_packets/00103630 [10:58:07]OFD Sender: To server: pG, [10:58:07]CommunicateWithHost lk.salyk.kg:30040 [10:58:07]ConnectInit lk.salyk.kg [10:58:07]written 0, free lines is 4095 [10:58:07]Connected sock=10 [10:58: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 39 33 0F 01 00 00 84 5A 07 01 5A CA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 C9 B9 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 CE 94 01 00 35 04 06 00 4F 03 6B 09 E5 D5 84 4C 57 3C 74 D2 50 A9 [10:58: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 39 33 4F 00 00 00 6A 69 47 00 02 6C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 CE 94 01 00 F4 03 04 00 52 60 72 66 B6 04 01 00 00 C4 29 21 E1 AD 53 1D F5 [10:58:07]CommunicateWithHost err = 0 [10:58:07]CheckOFDResponse [10:58:07]1017 (14) - 77093643461234 [10:58:07]1041 (16) - 0000000000875093 [10:58:07]1040 (4) - 103630 [10:58:07]1012 (4) - 19.06.2024 04:36 [10:58:07]1206 (1) - 0 [10:58:07]OFD Sender: Remove packet 103630 [10:58:07]ProducePacketName [10:58:07]name=ofd_packets/00103630 [10:58:07]NVStorageDeleteData [10:58:08]Write to MH i2c: 01 00 00 2A 9D C7 [10:58:08]Write i2c OK [10:58:08]MH_I2C_Read... [10:58:08]Read from MH i2c: 01 [10:58:08]MH_I2C_Read... [10:58:08]Read from MH i2c: 01 07 00 [10:58:08]MH_I2C_Read... [10:58:08]Read from MH i2c: 01 07 00 2A 9D 00 00 00 00 00 F1 0C CB [10:58:08]RasterBufferAndPrint [10:58:08]line [10:58:08]line [10:58:08]line [10:58:08]line [10:58:08]line [10:58:08]written 0, free lines is 3319 [10:58:08]MH_Cut [10:58:08]Write to MH i2c: D1 01 00 31 9D 01 A0 [10:58:08]Write i2c OK [10:58:08]MH_I2C_Read... [10:58:08]Read from MH i2c: D1 [10:58:08]MH_I2C_Read... [10:58:08]Read from MH i2c: D1 01 00 [10:58:08]MH_I2C_Read... [10:58:08]Read from MH i2c: D1 01 00 31 9D 00 9F [10:58:08]Write to MH i2c: 01 00 00 32 9D CF [10:58:08]Write i2c OK [10:58:08]MH_I2C_Read... [10:58:08]OFD Sender: No OFD packet to send [10:58:08]*** Cut start [10:58:08]*** Partial cut [10:58:08]*** CUTSNS_PIN = 1 [10:58:08]*** CUTSNS_PIN = 0 [10:58:09]*** Brake cut motor [10:58:09]Read from MH i2c: 01 [10:58:09]MH_I2C_Read... [10:58:09]*** Stop cut motor [10:58:09]*** Cut end [10:58:09]Read from MH i2c: 01 07 00 [10:58:09]MH_I2C_Read... [10:58:09]Read from MH i2c: 01 07 00 32 9D 00 00 00 00 00 FF 0F E4 [10:58:09]process_action close_receipt done [10:58:09]requested_data is exist [10:58:09]produce_requested_data [10:58:09]requested_item fm.sn is exist - process it [10:58:09]wFMCommunicate request_size=4 [10:58:09]MH_SAM_APDU [10:58:09]CAPDU: 80 11 00 00 [10:58:09]Write to MH i2c: E2 08 00 33 9D 80 11 00 00 00 00 00 00 4A [10:58:09]Write i2c OK [10:58:09]MH_I2C_Read... [10:58:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:58:09]Read from MH i2c: E2 [10:58:09]MH_I2C_Read... [10:58:09]Read from MH i2c: E2 17 00 [10:58:09]MH_I2C_Read... [10:58:09]Read from MH i2c: E2 17 00 33 9D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 9D [10:58:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [10:58:09]wFMCommunicate OK [10:58:09]requested_item fd.num is exist - process it [10:58:09]SAM_PROTO_GetFieldsCounters [10:58:09]wFMCommunicate request_size=4 [10:58:09]MH_SAM_APDU [10:58:09]CAPDU: 80 13 00 00 [10:58:09]Write to MH i2c: E2 08 00 34 9D 80 13 00 00 00 00 00 00 4D [10:58:09]Write i2c OK [10:58:09]MH_I2C_Read... [10:58:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:58:09]Read from MH i2c: E2 [10:58:09]MH_I2C_Read... [10:58:09]Read from MH i2c: E2 62 00 [10:58:09]MH_I2C_Read... [10:58:09]Read from MH i2c: E2 62 00 34 9D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 CE 94 01 00 0E 04 04 00 61 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 ED [10:58:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 CE 94 01 00 0E 04 04 00 61 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 [10:58:09]wFMCommunicate OK [10:58:09]SAM_PROTO_GetFieldsCounters done [10:58:09]requested_item shift.num is exist - process it [10:58:09]requested_item shift.opened is exist - process it [10:58:09]req_shift_opened [10:58:09]FM_GetShiftState [10:58:09]SAM_PROTO_GetShiftState [10:58:09]wFMCommunicate request_size=4 [10:58:09]MH_SAM_APDU [10:58:09]CAPDU: 80 13 01 00 [10:58:09]Write to MH i2c: E2 08 00 35 9D 80 13 01 00 00 00 00 00 4F [10:58:09]Write i2c OK [10:58:09]MH_I2C_Read... [10:58:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:58:09]Read from MH i2c: E2 [10:58:09]MH_I2C_Read... [10:58:09]Read from MH i2c: E2 0E 00 [10:58:09]MH_I2C_Read... [10:58:09]Read from MH i2c: E2 0E 00 35 9D 00 09 00 01 04 26 72 66 00 00 00 00 90 00 5D [10:58:09]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [10:58:09]wFMCommunicate OK [10:58:09]SAM_PROTO_GetShiftState done [10:58:09]FM_GetShiftState done [10:58:09]req_shift_opened done [10:58:09]requested_item shift.open_date is exist - process it [10:58:09]req_shift_open_date [10:58:09]req_shift_open_date done [10:58:09]produce_requested_data done [10:58:09]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103630,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [10:58:09]process_action_free close_receipt [10:58:09]json_value_free [10:58:09]json_value_free done [10:58:09]process_json_proto returns [10:58:09]Send response to host [10:58:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103630,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [10:58:09]free response buf [10:58:09]execute_script done [10:58:09]execute_script returns [10:58:09]free content buf [10:58:09]Sock 9.Close socket [10:58:09]Sock 9.Thread stoped [10:58:13]OFD Sender: No OFD packet to send [10:58:18]OFD Sender: No OFD packet to send [10:58:23]OFD Sender: No OFD packet to send [10:58:28]OFD Sender: No OFD packet to send [10:58:33]OFD Sender: No OFD packet to send [10:58:38]OFD Sender: No OFD packet to send [10:58:43]accept exits with 7 [10:58:43]New connection [10:58:43]New thread 3067084132 created [10:58:43]Thread 3067227492 joined [10:58:43]Waiting for new connection... [10:58:43] Sock 7.Parse request [10:58:43]Sock 7.Check first char [10:58:43]Sock 7.First char is OK [10:58:43]request: POST /json_proto HTTP/1.0 [10:58:43]Method: POST [10:58:43]URL: /json_proto [10:58:43]Method is POST - this is cgi request [10:58:43]url: /json_proto [10:58:43]query_string will be loaded in cgi processing [10:58:43]execute_cgi json_proto POST (null) [10:58:43]execute_cgi path=json_proto method=POST [10:58:43]POST find Content-Length [10:58:43]Host: 172.17.38.133:8080 [10:58:43]Content-Length: 677 [10:58:43]Content-Type: application/json [10:58:43] [10:58:43]POST finish read [10:58:43]Found Content-Length = 677 [10:58:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672874", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 5.280, "sum" : 350.59, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 350.00, "total" : 350.00, "payments": [ { "type": 0, "sum" : 350.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:58:43]execute_script... [10:58: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)672874", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 5.280, "sum" : 350.59, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 350.00, "total" : 350.00, "payments": [ { "type": 0, "sum" : 350.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:58:43]POST & json_proto [10:58:43]process_json_proto [10:58:43]json parsed OK: [10:58:43]protocol is kg_v1.0 [10:58:43]action value=close_receipt [10:58:43]process_action close_receipt [10:58:43]cmd_close_receipt [10:58:43]MH_GetDate [10:58:43]Write to MH i2c: F0 00 00 36 9D C2 [10:58:43]OFD Sender: No OFD packet to send [10:58:43]Write i2c OK [10:58:43]MH_I2C_Read... [10:58:43]Read from MH i2c: F0 [10:58:43]MH_I2C_Read... [10:58:43]Read from MH i2c: F0 09 00 [10:58:43]MH_I2C_Read... [10:58:43]Read from MH i2c: F0 09 00 36 9D 00 EF B9 72 66 BD 8F 7C 64 77 [10:58:43]GetLastDocTimeStamp 1718794697 [10:58:43]current date 1718794735 [10:58:43]FM_GetShiftState [10:58:43]SAM_PROTO_GetShiftState [10:58:43]wFMCommunicate request_size=4 [10:58:43]MH_SAM_APDU [10:58:43]CAPDU: 80 13 01 00 [10:58:43]Write to MH i2c: E2 08 00 37 9D 80 13 01 00 00 00 00 00 51 [10:58:43]Write i2c OK [10:58:43]MH_I2C_Read... [10:58:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:58:43]Read from MH i2c: E2 [10:58:43]MH_I2C_Read... [10:58:43]Read from MH i2c: E2 0E 00 [10:58:43]MH_I2C_Read... [10:58:43]Read from MH i2c: E2 0E 00 37 9D 00 09 00 01 04 26 72 66 00 00 00 00 90 00 5F [10:58:43]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [10:58:43]wFMCommunicate OK [10:58:43]SAM_PROTO_GetShiftState done [10:58:43]FM_GetShiftState done [10:58:43]opened in 1718756868 [10:58:43]opened+sec_in_day 1718843268 [10:58:43]quantity*price = 35059 [10:58:43]sum+1 = 35060 [10:58:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.59 ИТОГО: 350.00 Внесено: 350.00 СДАЧА: 0.00 НСП 1% : 3.10 НДС 12% : 37.23 Наличными: 350.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 61 19.06.2024 10:58 Смена: 353 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103631 ФПД: 265397859699619 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T105855&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103631&fm=265397859699619&tin=02508201610067®Number=0000000000092785&sum=35000 [10:58:44]StoreToDocumentArchive [10:58:44]shift 353 fd 103631 [10:58:44]save to /storage/0353/doc_00103631 [10:58:44]save last doc name /storage/0353/doc_00103631 to /storage/kkm_last_doc_name [10:58:44]save OK [10:58:44]Clear old archive folders... [10:58:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:58:44]tlvbuf is 0132D170 [10:58:44]SAM_PROTO_ClearQueue [10:58:44]wFMCommunicate request_size=4 [10:58:44]MH_SAM_APDU [10:58:44]CAPDU: 80 09 00 00 [10:58:44]Write to MH i2c: E2 08 00 44 9D 80 09 00 00 00 00 00 00 53 [10:58:44]Write i2c OK [10:58:44]MH_I2C_Read... [10:58:44]Read from MH i2c: E2 [10:58:44]MH_I2C_Read... [10:58:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:58:44]Read from MH i2c: E2 03 00 [10:58:44]MH_I2C_Read... [10:58:44]Read from MH i2c: E2 03 00 44 9D 00 90 00 55 [10:58:44]RAPDU: 90 00 [10:58:44]wFMCommunicate OK [10:58:44]SAM_PROTO_ClearQueue done [10:58:44]KKMCreateOFDPacket [10:58:44]OFDProtocolAddRootSTLVToBuf [10:58:44]FM_MakeSignedData [10:58:44]FM_MakeSignedData [10:58:44]SAM_PROTO_SignData [10:58:44]wFMCommunicate request_size=4 [10:58:44]MH_SAM_APDU [10:58:44]CAPDU: 80 0D 01 02 [10:58:44]Write to MH i2c: E2 08 00 45 9D 80 0D 01 02 00 00 00 00 5B [10:58:44]Write i2c OK [10:58:44]MH_I2C_Read... [10:58:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:58:44]Read from MH i2c: E2 [10:58:44]MH_I2C_Read... [10:58:44]Read from MH i2c: E2 03 00 [10:58:44]MH_I2C_Read... [10:58:44]Read from MH i2c: E2 03 00 45 9D 00 90 00 56 [10:58:44]RAPDU: 90 00 [10:58:44]wFMCommunicate OK [10:58:44]wFMCommunicate request_size=255 [10:58:44]MH_SAM_APDU [10:58: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 A0 14 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 F3 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 EF B9 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 CF 94 01 00 35 04 06 00 F1 [10:58:44]Write to MH i2c: E2 02 01 46 9D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A0 14 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 F3 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 EF B9 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 CF 94 01 00 35 04 06 00 F1 00 00 67 [10:58:44]Write i2c OK [10:58:44]MH_I2C_Read... [10:58:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:58:45]Read from MH i2c: E2 [10:58:45]MH_I2C_Read... [10:58:45]Read from MH i2c: E2 03 00 [10:58:45]MH_I2C_Read... [10:58:45]Read from MH i2c: E2 03 00 46 9D 00 90 00 57 [10:58:45]RAPDU: 90 00 [10:58:45]wFMCommunicate OK [10:58:45]wFMCommunicate request_size=10 [10:58:45]MH_SAM_APDU [10:58:45]CAPDU: 80 0D 02 02 05 60 C1 26 CB A3 [10:58:45]Write to MH i2c: E2 0D 00 47 9D 80 0D 02 02 05 00 60 C1 26 CB A3 00 00 1D [10:58:45]Write i2c OK [10:58:45]MH_I2C_Read... [10:58:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:58:45]Read from MH i2c: E2 [10:58:45]MH_I2C_Read... [10:58:45]Read from MH i2c: E2 03 00 [10:58:45]MH_I2C_Read... [10:58:45]Read from MH i2c: E2 03 00 47 9D 00 90 00 58 [10:58:45]RAPDU: 90 00 [10:58:45]wFMCommunicate OK [10:58:45]wFMCommunicate request_size=4 [10:58:45]MH_SAM_APDU [10:58:45]CAPDU: 80 0D 03 02 [10:58:45]Write to MH i2c: E2 08 00 48 9D 80 0D 03 02 00 00 00 00 60 [10:58:45]Write i2c OK [10:58:45]MH_I2C_Read... [10:58:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:58:45]Read from MH i2c: E2 [10:58:45]MH_I2C_Read... [10:58:45]Read from MH i2c: E2 0B 00 [10:58:45]MH_I2C_Read... [10:58:45]Read from MH i2c: E2 0B 00 48 9D 00 59 A8 D4 7A 4A 52 CC A4 90 00 BC [10:58:45]RAPDU: 59 A8 D4 7A 4A 52 CC A4 90 00 [10:58:45]wFMCommunicate OK [10:58:45]SAM_PROTO_SignData done [10:58:45]FM_MakeSignedData done [10:58:45]CreateOFDProtocolMessage [10:58:45]wFMCommunicate request_size=4 [10:58:45]MH_SAM_APDU [10:58:45]CAPDU: 80 11 00 00 [10:58:45]Write to MH i2c: E2 08 00 49 9D 80 11 00 00 00 00 00 00 60 [10:58:45]Write i2c OK [10:58:45]MH_I2C_Read... [10:58:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:58:45]Read from MH i2c: E2 [10:58:45]MH_I2C_Read... [10:58:45]Read from MH i2c: E2 17 00 [10:58:45]MH_I2C_Read... [10:58:45]Read from MH i2c: E2 17 00 49 9D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 B3 [10:58:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [10:58:45]wFMCommunicate OK [10:58:45]CreateOFDProtocolMessage done [10:58:45]OFDSenderStorePacket 103631 [10:58:45]StoreOFDPacket docnum=103631 [10:58:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 5D 0D 07 01 46 E0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A0 14 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 F3 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 EF B9 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 CF 94 01 00 35 04 06 00 F1 60 C1 26 CB A3 59 A8 D4 7A 4A 52 CC A4 [10:58:45]CheckFolder [10:58:45]dirname=/storage/ofd_packets [10:58:45]CheckFolder done [10:58:45]ProducePacketName [10:58:45]name=ofd_packets/00103631 [10:58:45]NVStorageSaveData ofd_packets/00103631 [10:58:45]File name is /storage/ofd_packets/00103631 [10:58:45]Write 301 bytes [10:58:45]NVStorageSaveData done [10:58:45]OFDSenderStorePacket done [10:58:45]KKMCreateOFDPacket done [10:58:45]NVStorageSaveData kkm_last_timestamp [10:58:45]File name is /storage/kkm_last_timestamp [10:58:45]Write 4 bytes [10:58:45]NVStorageSaveData done [10:58:45]ExternCall_PrintAddStr [10:58:45]wPrintStart [10:58:45]Write to MH i2c: 01 00 00 4A 9D E7 [10:58:45]Write i2c OK [10:58:45]MH_I2C_Read... [10:58:45]Read from MH i2c: 01 [10:58:45]MH_I2C_Read... [10:58:45]Read from MH i2c: 01 07 00 [10:58:45]MH_I2C_Read... [10:58:45]Read from MH i2c: 01 07 00 4A 9D 00 00 00 00 00 FF 0F FC [10:58:45]RasterBufferAndPrint [10:58:45]line Счет N : (1)672874 [10:58:45]line ИНН: 02508201610067 [10:58:45]line Контрольно-Кассовый Чек [10:58:45]line ПРОДАЖА [10:58:45]line ТРК (МРК, ГНК) : 42 [10:58:45]line Товар: 2710124130 [10:58:45]line Аи-92-К-5 [10:58:45]line 5.280 * 66.40 [10:58:45]line = 350.59 [10:58:45]line НДС 12% НСП 1% [10:58:45]line > о реализуемом товаре [10:58:45]line ОКРУГЛЕНИЕ: -0.59 [10:58:45]line ИТОГО: 350.00 [10:58:45]line Внесено: 350.00 [10:58:45]line СДАЧА: 0.00 [10:58:45]line НСП 1% : 3.10 [10:58:45]line НДС 12% : 37.23 [10:58:45]line Наличными: 350.00 [10:58:45]line Безнал.: 0.00 [10:58:45]line Место: АЗС № 120 "Партнер Нефть" [10:58:45]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [10:58:45]line СНО: Общий режим [10:58:45]line Чек 61 19.06.2024 10:58 [10:58:45]line Смена: 353 ФФД: 1.0 [10:58:45]line ЗНМ: 0300000164 [10:58:45]line РНМ: 0000000000092785 [10:58:45]line Версия ККМ: 001 [10:58:45]line ФМ: 0000000000875093 [10:58:45]line ФД: 103631 [10:58:45]line ФПД: 265397859699619 [10:58:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T105855&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103631&fm=265397859699619&tin=02508201610067®Number=0000000000092785&sum=35000 [10:58:45]OFD Sender: Processing packet 103631 [packets to send 17, broken 16] [10:58:45]ProducePacketName [10:58:45]name=ofd_packets/00103631 [10:58:45]OFD Sender: To server: pG, [10:58:45]CommunicateWithHost lk.salyk.kg:30040 [10:58:45]ConnectInit lk.salyk.kg [10:58:45]written 0, free lines is 4095 [10:58:45]Connected sock=10 [10:58: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 39 33 0F 01 00 00 5D 0D 07 01 46 E0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A0 14 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 F3 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 EF B9 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 CF 94 01 00 35 04 06 00 F1 60 C1 26 CB A3 59 A8 D4 7A 4A 52 CC A4 [10:58: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 39 33 4F 00 00 00 67 01 47 00 7C 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 39 33 10 04 04 00 CF 94 01 00 F4 03 04 00 78 60 72 66 B6 04 01 00 00 C9 91 11 A2 BF A0 44 25 [10:58:45]CommunicateWithHost err = 0 [10:58:45]CheckOFDResponse [10:58:45]1017 (14) - 77093643461234 [10:58:45]1041 (16) - 0000000000875093 [10:58:45]1040 (4) - 103631 [10:58:45]1012 (4) - 19.06.2024 04:37 [10:58:45]1206 (1) - 0 [10:58:45]OFD Sender: Remove packet 103631 [10:58:45]ProducePacketName [10:58:45]name=ofd_packets/00103631 [10:58:45]NVStorageDeleteData [10:58:45]Write to MH i2c: 01 00 00 75 9D 12 [10:58:45]Write i2c OK [10:58:45]MH_I2C_Read... [10:58:45]Read from MH i2c: 01 [10:58:45]MH_I2C_Read... [10:58:45]Read from MH i2c: 01 07 00 [10:58:45]MH_I2C_Read... [10:58:45]Read from MH i2c: 01 07 00 75 9D 00 00 00 00 00 E9 0C 0E [10:58:45]RasterBufferAndPrint [10:58:45]line [10:58:45]line [10:58:45]line [10:58:45]line [10:58:45]line [10:58:45]written 0, free lines is 3314 [10:58:45]MH_Cut [10:58:45]Write to MH i2c: D1 01 00 7C 9D 01 EB [10:58:45]Write i2c OK [10:58:45]MH_I2C_Read... [10:58:45]Read from MH i2c: D1 [10:58:45]MH_I2C_Read... [10:58:45]Read from MH i2c: D1 01 00 [10:58:45]MH_I2C_Read... [10:58:45]Read from MH i2c: D1 01 00 7C 9D 00 EA [10:58:45]Write to MH i2c: 01 00 00 7D 9D 1A [10:58:46]Write i2c OK [10:58:46]MH_I2C_Read... [10:58:46]OFD Sender: No OFD packet to send [10:58:46]*** Cut start [10:58:46]*** Partial cut [10:58:46]*** CUTSNS_PIN = 1 [10:58:46]*** CUTSNS_PIN = 0 [10:58:46]*** Brake cut motor [10:58:47]Read from MH i2c: 01 [10:58:47]MH_I2C_Read... [10:58:47]*** Stop cut motor [10:58:47]*** Cut end [10:58:47]Read from MH i2c: 01 07 00 [10:58:47]MH_I2C_Read... [10:58:47]Read from MH i2c: 01 07 00 7D 9D 00 00 00 00 00 FF 0F 2F [10:58:47]process_action close_receipt done [10:58:47]requested_data is exist [10:58:47]produce_requested_data [10:58:47]requested_item fm.sn is exist - process it [10:58:47]wFMCommunicate request_size=4 [10:58:47]MH_SAM_APDU [10:58:47]CAPDU: 80 11 00 00 [10:58:47]Write to MH i2c: E2 08 00 7E 9D 80 11 00 00 00 00 00 00 95 [10:58:47]Write i2c OK [10:58:47]MH_I2C_Read... [10:58:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:58:47]Read from MH i2c: E2 [10:58:47]MH_I2C_Read... [10:58:47]Read from MH i2c: E2 17 00 [10:58:47]MH_I2C_Read... [10:58:47]Read from MH i2c: E2 17 00 7E 9D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 E8 [10:58:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [10:58:47]wFMCommunicate OK [10:58:47]requested_item fd.num is exist - process it [10:58:47]SAM_PROTO_GetFieldsCounters [10:58:47]wFMCommunicate request_size=4 [10:58:47]MH_SAM_APDU [10:58:47]CAPDU: 80 13 00 00 [10:58:47]Write to MH i2c: E2 08 00 7F 9D 80 13 00 00 00 00 00 00 98 [10:58:47]Write i2c OK [10:58:47]MH_I2C_Read... [10:58:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:58:47]Read from MH i2c: E2 [10:58:47]MH_I2C_Read... [10:58:47]Read from MH i2c: E2 62 00 [10:58:47]MH_I2C_Read... [10:58:47]Read from MH i2c: E2 62 00 7F 9D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 CF 94 01 00 0E 04 04 00 61 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 3C [10: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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 CF 94 01 00 0E 04 04 00 61 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 [10:58:47]wFMCommunicate OK [10:58:47]SAM_PROTO_GetFieldsCounters done [10:58:47]requested_item shift.num is exist - process it [10:58:47]requested_item shift.opened is exist - process it [10:58:47]req_shift_opened [10:58:47]FM_GetShiftState [10:58:47]SAM_PROTO_GetShiftState [10:58:47]wFMCommunicate request_size=4 [10:58:47]MH_SAM_APDU [10:58:47]CAPDU: 80 13 01 00 [10:58:47]Write to MH i2c: E2 08 00 80 9D 80 13 01 00 00 00 00 00 9A [10:58:47]Write i2c OK [10:58:47]MH_I2C_Read... [10:58:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:58:47]Read from MH i2c: E2 [10:58:47]MH_I2C_Read... [10:58:47]Read from MH i2c: E2 0E 00 [10:58:47]MH_I2C_Read... [10:58:47]Read from MH i2c: E2 0E 00 80 9D 00 09 00 01 04 26 72 66 00 00 00 00 90 00 A8 [10:58:47]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [10:58:47]wFMCommunicate OK [10:58:47]SAM_PROTO_GetShiftState done [10:58:47]FM_GetShiftState done [10:58:47]req_shift_opened done [10:58:47]requested_item shift.open_date is exist - process it [10:58:47]req_shift_open_date [10:58:47]req_shift_open_date done [10:58:47]produce_requested_data done [10:58:47]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103631,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [10:58:47]process_action_free close_receipt [10:58:47]json_value_free [10:58:47]json_value_free done [10:58:47]process_json_proto returns [10:58:47]Send response to host [10:58:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103631,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [10:58:47]free response buf [10:58:47]execute_script done [10:58:47]execute_script returns [10:58:47]free content buf [10:58:47]Sock 7.Close socket [10:58:47]Sock 7.Thread stoped [10:58:51]OFD Sender: No OFD packet to send [10:58:56]OFD Sender: No OFD packet to send [10:59:01]OFD Sender: No OFD packet to send [10:59:05]accept exits with 9 [10:59:05]New connection [10:59:05]New thread 3067227492 created [10:59:05]Thread 3067084132 joined [10:59:05]Waiting for new connection... [10:59:05] Sock 9.Parse request [10:59:05]Sock 9.Check first char [10:59:05]Sock 9.First char is OK [10:59:05]request: POST /json_proto HTTP/1.0 [10:59:05]Method: POST [10:59:05]URL: /json_proto [10:59:05]Method is POST - this is cgi request [10:59:05]url: /json_proto [10:59:05]query_string will be loaded in cgi processing [10:59:05]execute_cgi json_proto POST (null) [10:59:05]execute_cgi path=json_proto method=POST [10:59:05]POST find Content-Length [10:59:05]Host: 172.17.38.133:8080 [10:59:05]Content-Length: 682 [10:59:05]Content-Type: application/json [10:59:05] [10:59:05]POST finish read [10:59:05]Found Content-Length = 682 [10:59:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672875", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 8.240, "sum" : 600.70, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:59:05]execute_script... [10:59: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)672875", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 8.240, "sum" : 600.70, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:59:05]POST & json_proto [10:59:05]process_json_proto [10:59:05]json parsed OK: [10:59:05]protocol is kg_v1.0 [10:59:05]action value=close_receipt [10:59:05]process_action close_receipt [10:59:05]cmd_close_receipt [10:59:05]MH_GetDate [10:59:05]Write to MH i2c: F0 00 00 81 9D 0D [10:59:05]Write i2c OK [10:59:05]MH_I2C_Read... [10:59:05]Read from MH i2c: F0 [10:59:05]MH_I2C_Read... [10:59:05]Read from MH i2c: F0 09 00 [10:59:05]MH_I2C_Read... [10:59:05]Read from MH i2c: F0 09 00 81 9D 00 05 BA 72 66 BD 8F 7C 64 D9 [10:59:05]GetLastDocTimeStamp 1718794735 [10:59:05]current date 1718794757 [10:59:05]FM_GetShiftState [10:59:05]SAM_PROTO_GetShiftState [10:59:05]wFMCommunicate request_size=4 [10:59:05]MH_SAM_APDU [10:59:05]CAPDU: 80 13 01 00 [10:59:05]Write to MH i2c: E2 08 00 82 9D 80 13 01 00 00 00 00 00 9C [10:59:05]Write i2c OK [10:59:05]MH_I2C_Read... [10:59:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:59:05]Read from MH i2c: E2 [10:59:05]MH_I2C_Read... [10:59:05]Read from MH i2c: E2 0E 00 [10:59:05]MH_I2C_Read... [10:59:05]Read from MH i2c: E2 0E 00 82 9D 00 09 00 01 04 26 72 66 00 00 00 00 90 00 AA [10:59:05]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [10:59:05]wFMCommunicate OK [10:59:05]SAM_PROTO_GetShiftState done [10:59:05]FM_GetShiftState done [10:59:05]opened in 1718756868 [10:59:05]opened+sec_in_day 1718843268 [10:59:05]quantity*price = 60069 [10:59:05]sum+1 = 60071 [10:59:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.70 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.32 НДС 12% : 63.79 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 62 19.06.2024 10:59 Смена: 353 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103632 ФПД: 187327189143563 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T105917&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103632&fm=187327189143563&tin=02508201610067®Number=0000000000092785&sum=60000 [10:59:06]StoreToDocumentArchive [10:59:06]shift 353 fd 103632 [10:59:06]save to /storage/0353/doc_00103632 [10:59:06]save last doc name /storage/0353/doc_00103632 to /storage/kkm_last_doc_name [10:59:06]save OK [10:59:06]Clear old archive folders... [10:59:06]ProcessDocumentItem done err = 0, tmpTLVsize=252 [10:59:06]tlvbuf is 014F38A0 [10:59:06]SAM_PROTO_ClearQueue [10:59:06]wFMCommunicate request_size=4 [10:59:06]MH_SAM_APDU [10:59:06]CAPDU: 80 09 00 00 [10:59:06]Write to MH i2c: E2 08 00 8F 9D 80 09 00 00 00 00 00 00 9E [10:59:06]Write i2c OK [10:59:06]MH_I2C_Read... [10:59:06]Read from MH i2c: E2 [10:59:06]MH_I2C_Read... [10:59:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:59:06]Read from MH i2c: E2 03 00 [10:59:06]MH_I2C_Read... [10:59:06]Read from MH i2c: E2 03 00 8F 9D 00 90 00 A0 [10:59:06]RAPDU: 90 00 [10:59:06]wFMCommunicate OK [10:59:06]SAM_PROTO_ClearQueue done [10:59:06]KKMCreateOFDPacket [10:59:06]OFDProtocolAddRootSTLVToBuf [10:59:06]FM_MakeSignedData [10:59:06]FM_MakeSignedData [10:59:06]SAM_PROTO_SignData [10:59:06]wFMCommunicate request_size=4 [10:59:06]MH_SAM_APDU [10:59:06]CAPDU: 80 0D 01 02 [10:59:06]Write to MH i2c: E2 08 00 90 9D 80 0D 01 02 00 00 00 00 A6 [10:59:06]Write i2c OK [10:59:06]MH_I2C_Read... [10:59:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:59:06]Read from MH i2c: E2 [10:59:06]MH_I2C_Read... [10:59:06]Read from MH i2c: E2 03 00 [10:59:06]MH_I2C_Read... [10:59:06]Read from MH i2c: E2 03 00 90 9D 00 90 00 A1 [10:59:06]RAPDU: 90 00 [10:59:06]wFMCommunicate OK [10:59:06]wFMCommunicate request_size=255 [10:59:06]MH_SAM_APDU [10:59: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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 30 20 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 A6 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 14 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EB 18 00 00 00 00 07 04 06 00 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 3E 00 00 00 F4 03 04 00 05 BA 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 D0 94 01 00 35 04 06 00 [10:59:06]Write to MH i2c: E2 02 01 91 9D 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 30 20 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 A6 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 14 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EB 18 00 00 00 00 07 04 06 00 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 3E 00 00 00 F4 03 04 00 05 BA 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 D0 94 01 00 35 04 06 00 00 00 B0 [10:59:06]Write i2c OK [10:59:06]MH_I2C_Read... [10:59:06]OFD Sender: No OFD packet to send [10:59:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:59:06]Read from MH i2c: E2 [10:59:06]MH_I2C_Read... [10:59:06]Read from MH i2c: E2 03 00 [10:59:06]MH_I2C_Read... [10:59:06]Read from MH i2c: E2 03 00 91 9D 00 90 00 A2 [10:59:06]RAPDU: 90 00 [10:59:06]wFMCommunicate OK [10:59:06]wFMCommunicate request_size=11 [10:59:06]MH_SAM_APDU [10:59:06]CAPDU: 80 0D 02 02 06 AA 5F 82 90 D0 0B [10:59:06]Write to MH i2c: E2 0E 00 92 9D 80 0D 02 02 06 00 AA 5F 82 90 D0 0B 00 00 AB [10:59:06]Write i2c OK [10:59:06]MH_I2C_Read... [10:59:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:59:06]Read from MH i2c: E2 [10:59:06]MH_I2C_Read... [10:59:06]Read from MH i2c: E2 03 00 [10:59:06]MH_I2C_Read... [10:59:06]Read from MH i2c: E2 03 00 92 9D 00 90 00 A3 [10:59:06]RAPDU: 90 00 [10:59:06]wFMCommunicate OK [10:59:06]wFMCommunicate request_size=4 [10:59:06]MH_SAM_APDU [10:59:06]CAPDU: 80 0D 03 02 [10:59:06]Write to MH i2c: E2 08 00 93 9D 80 0D 03 02 00 00 00 00 AB [10:59:06]Write i2c OK [10:59:06]MH_I2C_Read... [10:59:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:59:06]Read from MH i2c: E2 [10:59:06]MH_I2C_Read... [10:59:06]Read from MH i2c: E2 0B 00 [10:59:06]MH_I2C_Read... [10:59:06]Read from MH i2c: E2 0B 00 93 9D 00 94 AE D2 03 0A 9B 10 65 90 00 DD [10:59:06]RAPDU: 94 AE D2 03 0A 9B 10 65 90 00 [10:59:06]wFMCommunicate OK [10:59:06]SAM_PROTO_SignData done [10:59:06]FM_MakeSignedData done [10:59:06]CreateOFDProtocolMessage [10:59:06]wFMCommunicate request_size=4 [10:59:06]MH_SAM_APDU [10:59:06]CAPDU: 80 11 00 00 [10:59:06]Write to MH i2c: E2 08 00 94 9D 80 11 00 00 00 00 00 00 AB [10:59:06]Write i2c OK [10:59:06]MH_I2C_Read... [10:59:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:59:06]Read from MH i2c: E2 [10:59:06]MH_I2C_Read... [10:59:06]Read from MH i2c: E2 17 00 [10:59:06]MH_I2C_Read... [10:59:06]Read from MH i2c: E2 17 00 94 9D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 FE [10:59:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [10:59:06]wFMCommunicate OK [10:59:06]CreateOFDProtocolMessage done [10:59:06]OFDSenderStorePacket 103632 [10:59:06]StoreOFDPacket docnum=103632 [10:59:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 9B C0 08 01 49 BF 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 30 20 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 A6 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 14 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EB 18 00 00 00 00 07 04 06 00 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 3E 00 00 00 F4 03 04 00 05 BA 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 D0 94 01 00 35 04 06 00 AA 5F 82 90 D0 0B 94 AE D2 03 0A 9B 10 65 [10:59:06]CheckFolder [10:59:06]dirname=/storage/ofd_packets [10:59:06]CheckFolder done [10:59:06]ProducePacketName [10:59:06]name=ofd_packets/00103632 [10:59:06]NVStorageSaveData ofd_packets/00103632 [10:59:06]File name is /storage/ofd_packets/00103632 [10:59:06]Write 302 bytes [10:59:06]NVStorageSaveData done [10:59:06]OFDSenderStorePacket done [10:59:06]KKMCreateOFDPacket done [10:59:06]NVStorageSaveData kkm_last_timestamp [10:59:06]File name is /storage/kkm_last_timestamp [10:59:06]Write 4 bytes [10:59:06]NVStorageSaveData done [10:59:06]ExternCall_PrintAddStr [10:59:06]wPrintStart [10:59:06]Write to MH i2c: 01 00 00 95 9D 32 [10:59:06]Write i2c OK [10:59:06]MH_I2C_Read... [10:59:06]Read from MH i2c: 01 [10:59:06]MH_I2C_Read... [10:59:06]Read from MH i2c: 01 07 00 [10:59:06]MH_I2C_Read... [10:59:06]Read from MH i2c: 01 07 00 95 9D 00 00 00 00 00 FF 0F 47 [10:59:06]RasterBufferAndPrint [10:59:06]line Счет N : (1)672875 [10:59:06]line ИНН: 02508201610067 [10:59:06]line Контрольно-Кассовый Чек [10:59:06]line ПРОДАЖА [10:59:06]line ТРК (МРК, ГНК) : 21 [10:59:06]line Товар: 2710194210 [10:59:06]line ДТ(л)-К-5 [10:59:06]line 8.240 * 72.90 [10:59:06]line = 600.70 [10:59:06]line НДС 12% НСП 1% [10:59:06]line > о реализуемом товаре [10:59:06]line ОКРУГЛЕНИЕ: -0.70 [10:59:06]line ИТОГО: 600.00 [10:59:06]line Внесено: 600.00 [10:59:06]line СДАЧА: 0.00 [10:59:06]line НСП 1% : 5.32 [10:59:06]line НДС 12% : 63.79 [10:59:06]line Наличными: 600.00 [10:59:06]line Безнал.: 0.00 [10:59:06]line Место: АЗС № 120 "Партнер Нефть" [10:59:06]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [10:59:06]line СНО: Общий режим [10:59:06]line Чек 62 19.06.2024 10:59 [10:59:06]line Смена: 353 ФФД: 1.0 [10:59:06]line ЗНМ: 0300000164 [10:59:06]line РНМ: 0000000000092785 [10:59:06]line Версия ККМ: 001 [10:59:06]line ФМ: 0000000000875093 [10:59:06]line ФД: 103632 [10:59:06]line ФПД: 187327189143563 [10:59:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T105917&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103632&fm=187327189143563&tin=02508201610067®Number=0000000000092785&sum=60000 [10:59:07]OFD Sender: Processing packet 103632 [packets to send 17, broken 16] [10:59:07]ProducePacketName [10:59:07]name=ofd_packets/00103632 [10:59:07]OFD Sender: To server: pG, [10:59:07]CommunicateWithHost lk.salyk.kg:30040 [10:59:07]ConnectInit lk.salyk.kg [10:59:07]written 0, free lines is 4095 [10:59:07]Connected sock=10 [10:59: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 39 33 10 01 00 00 9B C0 08 01 49 BF 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 30 20 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 A6 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 14 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EB 18 00 00 00 00 07 04 06 00 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 3E 00 00 00 F4 03 04 00 05 BA 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 D0 94 01 00 35 04 06 00 AA 5F 82 90 D0 0B 94 AE D2 03 0A 9B 10 65 [10:59: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 39 33 4F 00 00 00 1C 20 47 00 F2 E3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 D0 94 01 00 F4 03 04 00 8E 60 72 66 B6 04 01 00 00 65 6F 4C 28 6C BA A4 09 [10:59:07]CommunicateWithHost err = 0 [10:59:07]CheckOFDResponse [10:59:07]1017 (14) - 77093643461234 [10:59:07]1041 (16) - 0000000000875093 [10:59:07]1040 (4) - 103632 [10:59:07]1012 (4) - 19.06.2024 04:37 [10:59:07]1206 (1) - 0 [10:59:07]OFD Sender: Remove packet 103632 [10:59:07]ProducePacketName [10:59:07]name=ofd_packets/00103632 [10:59:07]NVStorageDeleteData [10:59:07]Write to MH i2c: 01 00 00 C0 9D 5D [10:59:07]Write i2c OK [10:59:07]MH_I2C_Read... [10:59:07]Read from MH i2c: 01 [10:59:07]MH_I2C_Read... [10:59:07]Read from MH i2c: 01 07 00 [10:59:07]MH_I2C_Read... [10:59:07]Read from MH i2c: 01 07 00 C0 9D 00 00 00 00 00 D9 0C 49 [10:59:07]RasterBufferAndPrint [10:59:07]line [10:59:07]line [10:59:07]line [10:59:07]line [10:59:07]line [10:59:07]written 0, free lines is 3296 [10:59:07]MH_Cut [10:59:07]Write to MH i2c: D1 01 00 C7 9D 01 36 [10:59:07]Write i2c OK [10:59:07]MH_I2C_Read... [10:59:07]Read from MH i2c: D1 [10:59:07]MH_I2C_Read... [10:59:07]Read from MH i2c: D1 01 00 [10:59:07]MH_I2C_Read... [10:59:07]Read from MH i2c: D1 01 00 C7 9D 00 35 [10:59:07]Write to MH i2c: 01 00 00 C8 9D 65 [10:59:07]Write i2c OK [10:59:07]MH_I2C_Read... [10:59:08]OFD Sender: No OFD packet to send [10:59:08]*** Cut start [10:59:08]*** Partial cut [10:59:08]*** CUTSNS_PIN = 1 [10:59:08]*** CUTSNS_PIN = 0 [10:59:08]*** Brake cut motor [10:59:08]Read from MH i2c: 01 [10:59:08]MH_I2C_Read... [10:59:08]*** Stop cut motor [10:59:08]*** Cut end [10:59:08]Read from MH i2c: 01 07 00 [10:59:08]MH_I2C_Read... [10:59:08]Read from MH i2c: 01 07 00 C8 9D 00 00 00 00 00 FF 0F 7A [10:59:08]process_action close_receipt done [10:59:08]requested_data is exist [10:59:08]produce_requested_data [10:59:08]requested_item fm.sn is exist - process it [10:59:08]wFMCommunicate request_size=4 [10:59:08]MH_SAM_APDU [10:59:08]CAPDU: 80 11 00 00 [10:59:08]Write to MH i2c: E2 08 00 C9 9D 80 11 00 00 00 00 00 00 E0 [10:59:08]Write i2c OK [10:59:08]MH_I2C_Read... [10:59:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:59:09]Read from MH i2c: E2 [10:59:09]MH_I2C_Read... [10:59:09]Read from MH i2c: E2 17 00 [10:59:09]MH_I2C_Read... [10:59:09]Read from MH i2c: E2 17 00 C9 9D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 33 [10:59:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [10:59:09]wFMCommunicate OK [10:59:09]requested_item fd.num is exist - process it [10:59:09]SAM_PROTO_GetFieldsCounters [10:59:09]wFMCommunicate request_size=4 [10:59:09]MH_SAM_APDU [10:59:09]CAPDU: 80 13 00 00 [10:59:09]Write to MH i2c: E2 08 00 CA 9D 80 13 00 00 00 00 00 00 E3 [10:59:09]Write i2c OK [10:59:09]MH_I2C_Read... [10:59:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:59:09]Read from MH i2c: E2 [10:59:09]MH_I2C_Read... [10:59:09]Read from MH i2c: E2 62 00 [10:59:09]MH_I2C_Read... [10:59:09]Read from MH i2c: E2 62 00 CA 9D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 D0 94 01 00 0E 04 04 00 61 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 8B [10:59:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 D0 94 01 00 0E 04 04 00 61 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 [10:59:09]wFMCommunicate OK [10:59:09]SAM_PROTO_GetFieldsCounters done [10:59:09]requested_item shift.num is exist - process it [10:59:09]requested_item shift.opened is exist - process it [10:59:09]req_shift_opened [10:59:09]FM_GetShiftState [10:59:09]SAM_PROTO_GetShiftState [10:59:09]wFMCommunicate request_size=4 [10:59:09]MH_SAM_APDU [10:59:09]CAPDU: 80 13 01 00 [10:59:09]Write to MH i2c: E2 08 00 CB 9D 80 13 01 00 00 00 00 00 E5 [10:59:09]Write i2c OK [10:59:09]MH_I2C_Read... [10:59:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:59:09]Read from MH i2c: E2 [10:59:09]MH_I2C_Read... [10:59:09]Read from MH i2c: E2 0E 00 [10:59:09]MH_I2C_Read... [10:59:09]Read from MH i2c: E2 0E 00 CB 9D 00 09 00 01 04 26 72 66 00 00 00 00 90 00 F3 [10:59:09]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [10:59:09]wFMCommunicate OK [10:59:09]SAM_PROTO_GetShiftState done [10:59:09]FM_GetShiftState done [10:59:09]req_shift_opened done [10:59:09]requested_item shift.open_date is exist - process it [10:59:09]req_shift_open_date [10:59:09]req_shift_open_date done [10:59:09]produce_requested_data done [10:59:09]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103632,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [10:59:09]process_action_free close_receipt [10:59:09]json_value_free [10:59:09]json_value_free done [10:59:09]process_json_proto returns [10:59:09]Send response to host [10:59:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103632,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [10:59:09]free response buf [10:59:09]execute_script done [10:59:09]execute_script returns [10:59:09]free content buf [10:59:09]Sock 9.Close socket [10:59:09]Sock 9.Thread stoped [10:59:13]OFD Sender: No OFD packet to send [10:59:18]OFD Sender: No OFD packet to send [10:59:23]OFD Sender: No OFD packet to send [10:59:28]OFD Sender: No OFD packet to send [10:59:33]OFD Sender: No OFD packet to send [10:59:38]OFD Sender: No OFD packet to send [10:59:43]OFD Sender: No OFD packet to send [10:59:48]OFD Sender: No OFD packet to send [10:59:53]OFD Sender: No OFD packet to send [10:59:58]OFD Sender: No OFD packet to send [11:00:03]OFD Sender: No OFD packet to send [11:00:08]OFD Sender: No OFD packet to send [11:00:13]OFD Sender: No OFD packet to send [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:20]accept exits with 7 [11:01:20]New connection [11:01:20]New thread 3067084132 created [11:01:20]Thread 3067227492 joined [11:01:20]Waiting for new connection... [11:01:20] Sock 7.Parse request [11:01:20]Sock 7.Check first char [11:01:20]Sock 7.First char is OK [11:01:20]request: POST /json_proto HTTP/1.0 [11:01:20]Method: POST [11:01:20]URL: /json_proto [11:01:20]Method is POST - this is cgi request [11:01:20]url: /json_proto [11:01:20]query_string will be loaded in cgi processing [11:01:20]execute_cgi json_proto POST (null) [11:01:20]execute_cgi path=json_proto method=POST [11:01:20]POST find Content-Length [11:01:20]Host: 172.17.38.133:8080 [11:01:20]Content-Length: 682 [11:01:20]Content-Type: application/json [11:01:20] [11:01:20]POST finish read [11:01:20]Found Content-Length = 682 [11:01:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672876", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 17.320, "sum" : 1150.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1150.00, "total" : 1150.00, "payments": [ { "type": 0, "sum" : 1150.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:01:20]execute_script... [11:01: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)672876", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 17.320, "sum" : 1150.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1150.00, "total" : 1150.00, "payments": [ { "type": 0, "sum" : 1150.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:01:20]POST & json_proto [11:01:20]process_json_proto [11:01:20]json parsed OK: [11:01:20]protocol is kg_v1.0 [11:01:20]action value=close_receipt [11:01:20]process_action close_receipt [11:01:20]cmd_close_receipt [11:01:20]MH_GetDate [11:01:20]Write to MH i2c: F0 00 00 CC 9D 58 [11:01:20]Write i2c OK [11:01:20]MH_I2C_Read... [11:01:20]Read from MH i2c: F0 [11:01:20]MH_I2C_Read... [11:01:20]Read from MH i2c: F0 09 00 [11:01:20]MH_I2C_Read... [11:01:20]Read from MH i2c: F0 09 00 CC 9D 00 8C BA 72 66 BD 8F 7C 64 AB [11:01:20]GetLastDocTimeStamp 1718794757 [11:01:20]current date 1718794892 [11:01:20]FM_GetShiftState [11:01:20]SAM_PROTO_GetShiftState [11:01:20]wFMCommunicate request_size=4 [11:01:20]MH_SAM_APDU [11:01:20]CAPDU: 80 13 01 00 [11:01:20]Write to MH i2c: E2 08 00 CD 9D 80 13 01 00 00 00 00 00 E7 [11:01:20]Write i2c OK [11:01:20]MH_I2C_Read... [11:01:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:01:21]Read from MH i2c: E2 [11:01:21]MH_I2C_Read... [11:01:21]Read from MH i2c: E2 0E 00 [11:01:21]MH_I2C_Read... [11:01:21]Read from MH i2c: E2 0E 00 CD 9D 00 09 00 01 04 26 72 66 00 00 00 00 90 00 F5 [11:01:21]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [11:01:21]wFMCommunicate OK [11:01:21]SAM_PROTO_GetShiftState done [11:01:21]FM_GetShiftState done [11:01:21]opened in 1718756868 [11:01:21]opened+sec_in_day 1718843268 [11:01:21]quantity*price = 115004 [11:01:21]sum+1 = 115006 [11:01:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1150.00 Внесено: 1150.00 СДАЧА: 0.00 НСП 1% : 10.18 НДС 12% : 122.13 Наличными: 1150.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 63 19.06.2024 11:01 Смена: 353 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103633 ФПД: 19494526611576 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T110132&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103633&fm=19494526611576&tin=02508201610067®Number=0000000000092785&sum=115000 [11:01:22]StoreToDocumentArchive [11:01:22]shift 353 fd 103633 [11:01:22]save to /storage/0353/doc_00103633 [11:01:22]save last doc name /storage/0353/doc_00103633 to /storage/kkm_last_doc_name [11:01:22]save OK [11:01:22]Clear old archive folders... [11:01:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:01:22]tlvbuf is 015CB770 [11:01:22]SAM_PROTO_ClearQueue [11:01:22]wFMCommunicate request_size=4 [11:01:22]MH_SAM_APDU [11:01:22]CAPDU: 80 09 00 00 [11:01:22]Write to MH i2c: E2 08 00 DA 9D 80 09 00 00 00 00 00 00 E9 [11:01:22]Write i2c OK [11:01:22]MH_I2C_Read... [11:01:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:01:22]Read from MH i2c: E2 [11:01:22]MH_I2C_Read... [11:01:22]Read from MH i2c: E2 03 00 [11:01:22]MH_I2C_Read... [11:01:22]Read from MH i2c: E2 03 00 DA 9D 00 90 00 EB [11:01:22]RAPDU: 90 00 [11:01:22]wFMCommunicate OK [11:01:22]SAM_PROTO_ClearQueue done [11:01:22]KKMCreateOFDPacket [11:01:22]OFDProtocolAddRootSTLVToBuf [11:01:22]FM_MakeSignedData [11:01:22]FM_MakeSignedData [11:01:22]SAM_PROTO_SignData [11:01:22]wFMCommunicate request_size=4 [11:01:22]MH_SAM_APDU [11:01:22]CAPDU: 80 0D 01 02 [11:01:22]Write to MH i2c: E2 08 00 DB 9D 80 0D 01 02 00 00 00 00 F1 [11:01:22]Write i2c OK [11:01:22]MH_I2C_Read... [11:01:22]Read from MH i2c: E2 [11:01:22]MH_I2C_Read... [11:01:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:01:22]Read from MH i2c: E2 03 00 [11:01:22]MH_I2C_Read... [11:01:22]Read from MH i2c: E2 03 00 DB 9D 00 90 00 EC [11:01:22]RAPDU: 90 00 [11:01:22]wFMCommunicate OK [11:01:22]wFMCommunicate request_size=255 [11:01:22]MH_SAM_APDU [11:01:22]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 43 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D C1 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 C1 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FA 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B5 2F 00 00 00 00 07 04 06 00 38 C1 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 8C BA 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 D1 94 01 00 35 04 06 00 11 [11:01:22]Write to MH i2c: E2 02 01 DC 9D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 43 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D C1 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 C1 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FA 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B5 2F 00 00 00 00 07 04 06 00 38 C1 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 8C BA 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 D1 94 01 00 35 04 06 00 11 00 00 FF [11:01:22]Write i2c OK [11:01:22]MH_I2C_Read... [11:01:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:01:22]Read from MH i2c: E2 [11:01:22]MH_I2C_Read... [11:01:22]Read from MH i2c: E2 03 00 [11:01:22]MH_I2C_Read... [11:01:22]Read from MH i2c: E2 03 00 DC 9D 00 90 00 ED [11:01:22]RAPDU: 90 00 [11:01:22]wFMCommunicate OK [11:01:22]wFMCommunicate request_size=10 [11:01:22]MH_SAM_APDU [11:01:22]CAPDU: 80 0D 02 02 05 BA EC 55 70 78 [11:01:22]Write to MH i2c: E2 0D 00 DD 9D 80 0D 02 02 05 00 BA EC 55 70 78 00 00 E1 [11:01:22]Write i2c OK [11:01:22]MH_I2C_Read... [11:01:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:01:22]Read from MH i2c: E2 [11:01:22]MH_I2C_Read... [11:01:22]Read from MH i2c: E2 03 00 [11:01:22]MH_I2C_Read... [11:01:22]Read from MH i2c: E2 03 00 DD 9D 00 90 00 EE [11:01:22]RAPDU: 90 00 [11:01:22]wFMCommunicate OK [11:01:22]wFMCommunicate request_size=4 [11:01:22]MH_SAM_APDU [11:01:22]CAPDU: 80 0D 03 02 [11:01:22]Write to MH i2c: E2 08 00 DE 9D 80 0D 03 02 00 00 00 00 F6 [11:01:22]Write i2c OK [11:01:22]MH_I2C_Read... [11:01:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:01:22]Read from MH i2c: E2 [11:01:22]MH_I2C_Read... [11:01:22]Read from MH i2c: E2 0B 00 [11:01:22]MH_I2C_Read... [11:01:22]Read from MH i2c: E2 0B 00 DE 9D 00 BD 53 C6 AD 2B 86 C2 4B 90 00 38 [11:01:22]RAPDU: BD 53 C6 AD 2B 86 C2 4B 90 00 [11:01:22]wFMCommunicate OK [11:01:22]SAM_PROTO_SignData done [11:01:22]FM_MakeSignedData done [11:01:22]CreateOFDProtocolMessage [11:01:22]wFMCommunicate request_size=4 [11:01:22]MH_SAM_APDU [11:01:22]CAPDU: 80 11 00 00 [11:01:22]Write to MH i2c: E2 08 00 DF 9D 80 11 00 00 00 00 00 00 F6 [11:01:22]Write i2c OK [11:01:22]MH_I2C_Read... [11:01:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:01:22]Read from MH i2c: E2 [11:01:22]MH_I2C_Read... [11:01:22]Read from MH i2c: E2 17 00 [11:01:22]MH_I2C_Read... [11:01:22]Read from MH i2c: E2 17 00 DF 9D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 49 [11:01:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [11:01:22]wFMCommunicate OK [11:01:22]CreateOFDProtocolMessage done [11:01:22]OFDSenderStorePacket 103633 [11:01:22]StoreOFDPacket docnum=103633 [11:01:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 DD 12 07 01 DD F7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 43 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D C1 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 C1 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FA 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B5 2F 00 00 00 00 07 04 06 00 38 C1 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 8C BA 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 D1 94 01 00 35 04 06 00 11 BA EC 55 70 78 BD 53 C6 AD 2B 86 C2 4B [11:01:22]CheckFolder [11:01:22]dirname=/storage/ofd_packets [11:01:22]CheckFolder done [11:01:22]ProducePacketName [11:01:22]name=ofd_packets/00103633 [11:01:22]NVStorageSaveData ofd_packets/00103633 [11:01:22]File name is /storage/ofd_packets/00103633 [11:01:22]Write 301 bytes [11:01:22]NVStorageSaveData done [11:01:22]OFDSenderStorePacket done [11:01:22]KKMCreateOFDPacket done [11:01:22]NVStorageSaveData kkm_last_timestamp [11:01:22]File name is /storage/kkm_last_timestamp [11:01:22]Write 4 bytes [11:01:22]NVStorageSaveData done [11:01:22]ExternCall_PrintAddStr [11:01:22]wPrintStart [11:01:22]Write to MH i2c: 01 00 00 E0 9D 7D [11:01:22]Write i2c OK [11:01:22]MH_I2C_Read... [11:01:22]Read from MH i2c: 01 [11:01:22]MH_I2C_Read... [11:01:22]Read from MH i2c: 01 07 00 [11:01:22]MH_I2C_Read... [11:01:22]Read from MH i2c: 01 07 00 E0 9D 00 00 00 00 00 FF 0F 92 [11:01:22]RasterBufferAndPrint [11:01:22]line Счет N : (1)672876 [11:01:22]line ИНН: 02508201610067 [11:01:22]line Контрольно-Кассовый Чек [11:01:22]line ПРОДАЖА [11:01:22]line ТРК (МРК, ГНК) : 42 [11:01:22]line Товар: 2710124130 [11:01:22]line Аи-92-К-5 [11:01:22]line 17.320 * 66.40 [11:01:22]line = 1150.05 [11:01:22]line НДС 12% НСП 1% [11:01:22]line > о реализуемом товаре [11:01:22]line ОКРУГЛЕНИЕ: -0.05 [11:01:22]line ИТОГО: 1150.00 [11:01:22]line Внесено: 1150.00 [11:01:22]line СДАЧА: 0.00 [11:01:22]line НСП 1% : 10.18 [11:01:22]line НДС 12% : 122.13 [11:01:22]line Наличными: 1150.00 [11:01:22]line Безнал.: 0.00 [11:01:22]line Место: АЗС № 120 "Партнер Нефть" [11:01:22]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [11:01:22]line СНО: Общий режим [11:01:22]line Чек 63 19.06.2024 11:01 [11:01:22]line Смена: 353 ФФД: 1.0 [11:01:22]line ЗНМ: 0300000164 [11:01:22]line РНМ: 0000000000092785 [11:01:22]line Версия ККМ: 001 [11:01:22]line ФМ: 0000000000875093 [11:01:22]line ФД: 103633 [11:01:22]line ФПД: 19494526611576 [11:01:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T110132&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103633&fm=19494526611576&tin=02508201610067®Number=0000000000092785&sum=115000 [11:01:22]OFD Sender: Processing packet 103633 [packets to send 17, broken 16] [11:01:22]ProducePacketName [11:01:22]name=ofd_packets/00103633 [11:01:22]OFD Sender: To server: pG, [11:01:22]CommunicateWithHost lk.salyk.kg:30040 [11:01:22]ConnectInit lk.salyk.kg [11:01:22]written 0, free lines is 4095 [11:01:23]Connected sock=10 [11:01:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 DD 12 07 01 DD F7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 43 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D C1 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 C1 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FA 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B5 2F 00 00 00 00 07 04 06 00 38 C1 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 8C BA 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 D1 94 01 00 35 04 06 00 11 BA EC 55 70 78 BD 53 C6 AD 2B 86 C2 4B [11:01:23]Write to MH i2c: 01 00 00 0B 9E A9 [11:01:23]Write i2c OK [11:01:23]MH_I2C_Read... [11:01:23]Read from MH i2c: 01 [11:01:23]MH_I2C_Read... [11:01:23]Read from MH i2c: 01 07 00 [11:01:23]MH_I2C_Read... [11:01:23]Read from MH i2c: 01 07 00 0B 9E 00 00 00 00 00 DC 0C 98 [11:01:23]RasterBufferAndPrint [11:01:23]line [11:01:23]line [11:01:23]line [11:01:23]line [11:01:23]line [11:01:23]written 0, free lines is 3298 [11:01:23]MH_Cut [11:01:23]Write to MH i2c: D1 01 00 12 9E 01 82 [11:01:23]Write i2c OK [11:01:23]MH_I2C_Read... [11:01:23]Read from MH i2c: D1 [11:01:23]MH_I2C_Read... [11:01:23]Read from MH i2c: D1 01 00 [11:01:23]MH_I2C_Read... [11:01:23]Read from MH i2c: D1 01 00 12 9E 00 81 [11:01:23]Write to MH i2c: 01 00 00 13 9E B1 [11:01:23]Write i2c OK [11:01:23]MH_I2C_Read... [11:01:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 6D 25 47 00 A2 E9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 D1 94 01 00 F4 03 04 00 16 61 72 66 B6 04 01 00 00 C7 6D 50 42 EE AC AE 32 [11:01:23]CommunicateWithHost err = 0 [11:01:23]CheckOFDResponse [11:01:23]1017 (14) - 77093643461234 [11:01:23]1041 (16) - 0000000000875093 [11:01:23]1040 (4) - 103633 [11:01:23]1012 (4) - 19.06.2024 04:39 [11:01:23]1206 (1) - 0 [11:01:23]OFD Sender: Remove packet 103633 [11:01:23]ProducePacketName [11:01:23]name=ofd_packets/00103633 [11:01:23]NVStorageDeleteData [11:01:23]OFD Sender: No OFD packet to send [11:01:24]*** Cut start [11:01:24]*** Partial cut [11:01:24]*** CUTSNS_PIN = 1 [11:01:24]*** CUTSNS_PIN = 0 [11:01:24]*** Brake cut motor [11:01:24]Read from MH i2c: 01 [11:01:24]MH_I2C_Read... [11:01:24]*** Stop cut motor [11:01:24]*** Cut end [11:01:24]Read from MH i2c: 01 07 00 [11:01:24]MH_I2C_Read... [11:01:24]Read from MH i2c: 01 07 00 13 9E 00 00 00 00 00 FF 0F C6 [11:01:24]process_action close_receipt done [11:01:24]requested_data is exist [11:01:24]produce_requested_data [11:01:24]requested_item fm.sn is exist - process it [11:01:24]wFMCommunicate request_size=4 [11:01:24]MH_SAM_APDU [11:01:24]CAPDU: 80 11 00 00 [11:01:24]Write to MH i2c: E2 08 00 14 9E 80 11 00 00 00 00 00 00 2C [11:01:24]Write i2c OK [11:01:24]MH_I2C_Read... [11:01:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:01:24]Read from MH i2c: E2 [11:01:24]MH_I2C_Read... [11:01:24]Read from MH i2c: E2 17 00 [11:01:24]MH_I2C_Read... [11:01:24]Read from MH i2c: E2 17 00 14 9E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 7F [11:01:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [11:01:24]wFMCommunicate OK [11:01:24]requested_item fd.num is exist - process it [11:01:24]SAM_PROTO_GetFieldsCounters [11:01:24]wFMCommunicate request_size=4 [11:01:24]MH_SAM_APDU [11:01:24]CAPDU: 80 13 00 00 [11:01:24]Write to MH i2c: E2 08 00 15 9E 80 13 00 00 00 00 00 00 2F [11:01:24]Write i2c OK [11:01:24]MH_I2C_Read... [11:01:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:01:25]Read from MH i2c: E2 [11:01:25]MH_I2C_Read... [11:01:25]Read from MH i2c: E2 62 00 [11:01:25]MH_I2C_Read... [11:01:25]Read from MH i2c: E2 62 00 15 9E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 D1 94 01 00 0E 04 04 00 61 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 DB [11:01:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 D1 94 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 3F 00 00 00 5E 04 04 00 3F 00 00 00 57 04 04 00 40 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:01:25]wFMCommunicate OK [11:01:25]SAM_PROTO_GetFieldsCounters done [11:01:25]requested_item shift.num is exist - process it [11:01:25]requested_item shift.opened is exist - process it [11:01:25]req_shift_opened [11:01:25]FM_GetShiftState [11:01:25]SAM_PROTO_GetShiftState [11:01:25]wFMCommunicate request_size=4 [11:01:25]MH_SAM_APDU [11:01:25]CAPDU: 80 13 01 00 [11:01:25]Write to MH i2c: E2 08 00 16 9E 80 13 01 00 00 00 00 00 31 [11:01:25]Write i2c OK [11:01:25]MH_I2C_Read... [11:01:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:01:25]Read from MH i2c: E2 [11:01:25]MH_I2C_Read... [11:01:25]Read from MH i2c: E2 0E 00 [11:01:25]MH_I2C_Read... [11:01:25]Read from MH i2c: E2 0E 00 16 9E 00 09 00 01 04 26 72 66 00 00 00 00 90 00 3F [11:01:25]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [11:01:25]wFMCommunicate OK [11:01:25]SAM_PROTO_GetShiftState done [11:01:25]FM_GetShiftState done [11:01:25]req_shift_opened done [11:01:25]requested_item shift.open_date is exist - process it [11:01:25]req_shift_open_date [11:01:25]req_shift_open_date done [11:01:25]produce_requested_data done [11:01:25]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103633,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [11:01:25]process_action_free close_receipt [11:01:25]json_value_free [11:01:25]json_value_free done [11:01:25]process_json_proto returns [11:01:25]Send response to host [11:01:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103633,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [11:01:25]free response buf [11:01:25]execute_script done [11:01:25]execute_script returns [11:01:25]free content buf [11:01:25]Sock 7.Close socket [11:01:25]Sock 7.Thread stoped [11:01:28]OFD Sender: No OFD packet to send [11:01:33]OFD Sender: No OFD packet to send [11:01:39]OFD Sender: No OFD packet to send [11:01:44]OFD Sender: No OFD packet to send [11:01:49]OFD Sender: No OFD packet to send [11:01:54]OFD Sender: No OFD packet to send [11:01:59]OFD Sender: No OFD packet to send [11:02:04]OFD Sender: No OFD packet to send [11:02:09]OFD Sender: No OFD packet to send [11:02:14]OFD Sender: No OFD packet to send [11:02:19]OFD Sender: No OFD packet to send [11:02:24]OFD Sender: No OFD packet to send [11:02:29]OFD Sender: No OFD packet to send [11:02:34]OFD Sender: No OFD packet to send [11:02:39]OFD Sender: No OFD packet to send [11:02:44]OFD Sender: No OFD packet to send [11:02:49]OFD Sender: No OFD packet to send [11:02:54]OFD Sender: No OFD packet to send [11:02:59]OFD Sender: No OFD packet to send [11:03:04]OFD Sender: No OFD packet to send [11:03:09]OFD Sender: No OFD packet to send [11:03:14]OFD Sender: No OFD packet to send [11:03:19]OFD Sender: No OFD packet to send [11:03:24]OFD Sender: No OFD packet to send [11:03:29]OFD Sender: No OFD packet to send [11:03:34]OFD Sender: No OFD packet to send [11:03:39]OFD Sender: No OFD packet to send [11:03:44]OFD Sender: No OFD packet to send [11:03:49]OFD Sender: No OFD packet to send [11:03:54]OFD Sender: No OFD packet to send [11:03:59]OFD Sender: No OFD packet to send [11:04:04]OFD Sender: No OFD packet to send [11:04:09]OFD Sender: No OFD packet to send [11:04:14]OFD Sender: No OFD packet to send [11:04:19]OFD Sender: No OFD packet to send [11:04:24]OFD Sender: No OFD packet to send [11:04:29]OFD Sender: No OFD packet to send [11:04:34]OFD Sender: No OFD packet to send [11:04:39]OFD Sender: No OFD packet to send [11:04:44]OFD Sender: No OFD packet to send [11:04:49]OFD Sender: No OFD packet to send [11:04:54]OFD Sender: No OFD packet to send [11:04:59]OFD Sender: No OFD packet to send [11:05:04]OFD Sender: No OFD packet to send [11:05:09]OFD Sender: No OFD packet to send [11:05:14]OFD Sender: No OFD packet to send [11:05:19]OFD Sender: No OFD packet to send [11:05:24]OFD Sender: No OFD packet to send [11:05:29]OFD Sender: No OFD packet to send [11:05:34]OFD Sender: No OFD packet to send [11:05:39]OFD Sender: No OFD packet to send [11:05:44]OFD Sender: No OFD packet to send [11:05:49]OFD Sender: No OFD packet to send [11:05:54]OFD Sender: No OFD packet to send [11:05:59]OFD Sender: No OFD packet to send [11:06:04]OFD Sender: No OFD packet to send [11:06:09]OFD Sender: No OFD packet to send [11:06:14]OFD Sender: No OFD packet to send [11:06:19]OFD Sender: No OFD packet to send [11:06:24]OFD Sender: No OFD packet to send [11:06:29]OFD Sender: No OFD packet to send [11:06:34]OFD Sender: No OFD packet to send [11:06:39]OFD Sender: No OFD packet to send [11:06:44]OFD Sender: No OFD packet to send [11:06:49]OFD Sender: No OFD packet to send [11:06:54]OFD Sender: No OFD packet to send [11:06:56]accept exits with 9 [11:06:56]New connection [11:06:56]New thread 3067227492 created [11:06:56]Thread 3067084132 joined [11:06:56]Waiting for new connection... [11:06:56] Sock 9.Parse request [11:06:56]Sock 9.Check first char [11:06:56]Sock 9.First char is OK [11:06:56]request: POST /json_proto HTTP/1.0 [11:06:56]Method: POST [11:06:56]URL: /json_proto [11:06:56]Method is POST - this is cgi request [11:06:56]url: /json_proto [11:06:56]query_string will be loaded in cgi processing [11:06:56]execute_cgi json_proto POST (null) [11:06:56]execute_cgi path=json_proto method=POST [11:06:56]POST find Content-Length [11:06:56]Host: 172.17.38.133:8080 [11:06:56]Content-Length: 678 [11:06:56]Content-Type: application/json [11:06:56] [11:06:56]POST finish read [11:06:56]Found Content-Length = 678 [11:06:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672877", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 10.250, "sum" : 680.60, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 680.00, "total" : 680.00, "payments": [ { "type": 0, "sum" : 680.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:06:56]execute_script... [11:06:56]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672877", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 10.250, "sum" : 680.60, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 680.00, "total" : 680.00, "payments": [ { "type": 0, "sum" : 680.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:06:56]POST & json_proto [11:06:56]process_json_proto [11:06:56]json parsed OK: [11:06:56]protocol is kg_v1.0 [11:06:56]action value=close_receipt [11:06:56]process_action close_receipt [11:06:56]cmd_close_receipt [11:06:56]MH_GetDate [11:06:56]Write to MH i2c: F0 00 00 17 9E A4 [11:06:56]Write i2c OK [11:06:56]MH_I2C_Read... [11:06:56]Read from MH i2c: F0 [11:06:56]MH_I2C_Read... [11:06:56]Read from MH i2c: F0 09 00 [11:06:56]MH_I2C_Read... [11:06:56]Read from MH i2c: F0 09 00 17 9E 00 DC BB 72 66 BD 8F 7C 64 48 [11:06:56]GetLastDocTimeStamp 1718794892 [11:06:56]current date 1718795228 [11:06:56]FM_GetShiftState [11:06:56]SAM_PROTO_GetShiftState [11:06:56]wFMCommunicate request_size=4 [11:06:56]MH_SAM_APDU [11:06:56]CAPDU: 80 13 01 00 [11:06:56]Write to MH i2c: E2 08 00 18 9E 80 13 01 00 00 00 00 00 33 [11:06:56]Write i2c OK [11:06:56]MH_I2C_Read... [11:06:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:06:56]Read from MH i2c: E2 [11:06:56]MH_I2C_Read... [11:06:56]Read from MH i2c: E2 0E 00 [11:06:56]MH_I2C_Read... [11:06:56]Read from MH i2c: E2 0E 00 18 9E 00 09 00 01 04 26 72 66 00 00 00 00 90 00 41 [11:06:56]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [11:06:56]wFMCommunicate OK [11:06:56]SAM_PROTO_GetShiftState done [11:06:56]FM_GetShiftState done [11:06:56]opened in 1718756868 [11:06:56]opened+sec_in_day 1718843268 [11:06:56]quantity*price = 68060 [11:06:56]sum+1 = 68061 [11:06:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.60 ИТОГО: 680.00 Внесено: 680.00 СДАЧА: 0.00 НСП 1% : 6.02 НДС 12% : 72.28 Наличными: 680.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 64 19.06.2024 11:07 Смена: 353 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103634 ФПД: 108926466491896 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T110708&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103634&fm=108926466491896&tin=02508201610067®Number=0000000000092785&sum=68000 [11:06:57]StoreToDocumentArchive [11:06:57]shift 353 fd 103634 [11:06:57]save to /storage/0353/doc_00103634 [11:06:57]save last doc name /storage/0353/doc_00103634 to /storage/kkm_last_doc_name [11:06:57]save OK [11:06:57]Clear old archive folders... [11:06:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:06:57]tlvbuf is 01593EE0 [11:06:57]SAM_PROTO_ClearQueue [11:06:57]wFMCommunicate request_size=4 [11:06:57]MH_SAM_APDU [11:06:57]CAPDU: 80 09 00 00 [11:06:57]Write to MH i2c: E2 08 00 25 9E 80 09 00 00 00 00 00 00 35 [11:06:57]Write i2c OK [11:06:57]MH_I2C_Read... [11:06:57]Read from MH i2c: E2 [11:06:57]MH_I2C_Read... [11:06:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:06:57]Read from MH i2c: E2 03 00 [11:06:57]MH_I2C_Read... [11:06:57]Read from MH i2c: E2 03 00 25 9E 00 90 00 37 [11:06:57]RAPDU: 90 00 [11:06:57]wFMCommunicate OK [11:06:57]SAM_PROTO_ClearQueue done [11:06:57]KKMCreateOFDPacket [11:06:57]OFDProtocolAddRootSTLVToBuf [11:06:57]FM_MakeSignedData [11:06:57]FM_MakeSignedData [11:06:57]SAM_PROTO_SignData [11:06:57]wFMCommunicate request_size=4 [11:06:57]MH_SAM_APDU [11:06:57]CAPDU: 80 0D 01 02 [11:06:57]Write to MH i2c: E2 08 00 26 9E 80 0D 01 02 00 00 00 00 3D [11:06:57]Write i2c OK [11:06:57]MH_I2C_Read... [11:06:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:06:57]Read from MH i2c: E2 [11:06:57]MH_I2C_Read... [11:06:57]Read from MH i2c: E2 03 00 [11:06:57]MH_I2C_Read... [11:06:57]Read from MH i2c: E2 03 00 26 9E 00 90 00 38 [11:06:57]RAPDU: 90 00 [11:06:57]wFMCommunicate OK [11:06:57]wFMCommunicate request_size=255 [11:06:57]MH_SAM_APDU [11:06: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 0A 28 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 DC 09 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 09 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5A 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3C 1C 00 00 00 00 07 04 06 00 A0 09 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 DC BB 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 D2 94 01 00 35 04 06 00 63 [11:06:57]Write to MH i2c: E2 02 01 27 9E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 28 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 DC 09 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 09 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5A 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3C 1C 00 00 00 00 07 04 06 00 A0 09 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 DC BB 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 D2 94 01 00 35 04 06 00 63 00 00 51 [11:06:57]Write i2c OK [11:06:57]MH_I2C_Read... [11:06:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:06:57]Read from MH i2c: E2 [11:06:57]MH_I2C_Read... [11:06:57]Read from MH i2c: E2 03 00 [11:06:57]MH_I2C_Read... [11:06:57]Read from MH i2c: E2 03 00 27 9E 00 90 00 39 [11:06:57]RAPDU: 90 00 [11:06:57]wFMCommunicate OK [11:06:57]wFMCommunicate request_size=10 [11:06:57]MH_SAM_APDU [11:06:57]CAPDU: 80 0D 02 02 05 11 6B 57 85 F8 [11:06:57]Write to MH i2c: E2 0D 00 28 9E 80 0D 02 02 05 00 11 6B 57 85 F8 00 00 9A [11:06:57]Write i2c OK [11:06:57]MH_I2C_Read... [11:06:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:06:58]Read from MH i2c: E2 [11:06:58]MH_I2C_Read... [11:06:58]Read from MH i2c: E2 03 00 [11:06:58]MH_I2C_Read... [11:06:58]Read from MH i2c: E2 03 00 28 9E 00 90 00 3A [11:06:58]RAPDU: 90 00 [11:06:58]wFMCommunicate OK [11:06:58]wFMCommunicate request_size=4 [11:06:58]MH_SAM_APDU [11:06:58]CAPDU: 80 0D 03 02 [11:06:58]Write to MH i2c: E2 08 00 29 9E 80 0D 03 02 00 00 00 00 42 [11:06:58]Write i2c OK [11:06:58]MH_I2C_Read... [11:06:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:06:58]Read from MH i2c: E2 [11:06:58]MH_I2C_Read... [11:06:58]Read from MH i2c: E2 0B 00 [11:06:58]MH_I2C_Read... [11:06:58]Read from MH i2c: E2 0B 00 29 9E 00 B7 A7 1B 5B 5F 2A EA C4 90 00 4E [11:06:58]RAPDU: B7 A7 1B 5B 5F 2A EA C4 90 00 [11:06:58]wFMCommunicate OK [11:06:58]SAM_PROTO_SignData done [11:06:58]FM_MakeSignedData done [11:06:58]CreateOFDProtocolMessage [11:06:58]wFMCommunicate request_size=4 [11:06:58]MH_SAM_APDU [11:06:58]CAPDU: 80 11 00 00 [11:06:58]Write to MH i2c: E2 08 00 2A 9E 80 11 00 00 00 00 00 00 42 [11:06:58]Write i2c OK [11:06:58]MH_I2C_Read... [11:06:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:06:58]Read from MH i2c: E2 [11:06:58]MH_I2C_Read... [11:06:58]Read from MH i2c: E2 17 00 [11:06:58]MH_I2C_Read... [11:06:58]Read from MH i2c: E2 17 00 2A 9E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 95 [11:06:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [11:06:58]wFMCommunicate OK [11:06:58]CreateOFDProtocolMessage done [11:06:58]OFDSenderStorePacket 103634 [11:06:58]StoreOFDPacket docnum=103634 [11:06:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 DC C7 07 01 2E 51 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 28 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 DC 09 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 09 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5A 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3C 1C 00 00 00 00 07 04 06 00 A0 09 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 DC BB 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 D2 94 01 00 35 04 06 00 63 11 6B 57 85 F8 B7 A7 1B 5B 5F 2A EA C4 [11:06:58]CheckFolder [11:06:58]dirname=/storage/ofd_packets [11:06:58]CheckFolder done [11:06:58]ProducePacketName [11:06:58]name=ofd_packets/00103634 [11:06:58]NVStorageSaveData ofd_packets/00103634 [11:06:58]File name is /storage/ofd_packets/00103634 [11:06:58]Write 301 bytes [11:06:58]NVStorageSaveData done [11:06:58]OFDSenderStorePacket done [11:06:58]KKMCreateOFDPacket done [11:06:58]NVStorageSaveData kkm_last_timestamp [11:06:58]File name is /storage/kkm_last_timestamp [11:06:58]Write 4 bytes [11:06:58]NVStorageSaveData done [11:06:58]ExternCall_PrintAddStr [11:06:58]wPrintStart [11:06:58]Write to MH i2c: 01 00 00 2B 9E C9 [11:06:58]Write i2c OK [11:06:58]MH_I2C_Read... [11:06:58]Read from MH i2c: 01 [11:06:58]MH_I2C_Read... [11:06:58]Read from MH i2c: 01 07 00 [11:06:58]MH_I2C_Read... [11:06:58]Read from MH i2c: 01 07 00 2B 9E 00 00 00 00 00 FF 0F DE [11:06:58]RasterBufferAndPrint [11:06:58]line Счет N : (1)672877 [11:06:58]line ИНН: 02508201610067 [11:06:58]line Контрольно-Кассовый Чек [11:06:58]line ПРОДАЖА [11:06:58]line ТРК (МРК, ГНК) : 32 [11:06:58]line Товар: 2710124130 [11:06:58]line Аи-92-К-5 [11:06:58]line 10.250 * 66.40 [11:06:58]line = 680.60 [11:06:58]line НДС 12% НСП 1% [11:06:58]line > о реализуемом товаре [11:06:58]line ОКРУГЛЕНИЕ: -0.60 [11:06:58]line ИТОГО: 680.00 [11:06:58]line Внесено: 680.00 [11:06:58]line СДАЧА: 0.00 [11:06:58]line НСП 1% : 6.02 [11:06:58]line НДС 12% : 72.28 [11:06:58]line Наличными: 680.00 [11:06:58]line Безнал.: 0.00 [11:06:58]line Место: АЗС № 120 "Партнер Нефть" [11:06:58]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [11:06:58]line СНО: Общий режим [11:06:58]line Чек 64 19.06.2024 11:07 [11:06:58]line Смена: 353 ФФД: 1.0 [11:06:58]line ЗНМ: 0300000164 [11:06:58]line РНМ: 0000000000092785 [11:06:58]line Версия ККМ: 001 [11:06:58]line ФМ: 0000000000875093 [11:06:58]line ФД: 103634 [11:06:58]line ФПД: 108926466491896 [11:06:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T110708&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103634&fm=108926466491896&tin=02508201610067®Number=0000000000092785&sum=68000 [11:06:58]OFD Sender: Processing packet 103634 [packets to send 17, broken 16] [11:06:58]ProducePacketName [11:06:58]name=ofd_packets/00103634 [11:06:58]OFD Sender: To server: pG, [11:06:58]CommunicateWithHost lk.salyk.kg:30040 [11:06:58]ConnectInit lk.salyk.kg [11:06:58]written 0, free lines is 4095 [11:06:58]Write to MH i2c: 01 00 00 56 9E F4 [11:06:58]Write i2c OK [11:06:58]MH_I2C_Read... [11:06:58]Read from MH i2c: 01 [11:06:58]MH_I2C_Read... [11:06:58]Read from MH i2c: 01 07 00 [11:06:58]MH_I2C_Read... [11:06:58]Read from MH i2c: 01 07 00 56 9E 00 00 00 00 00 DC 0C E3 [11:06:58]RasterBufferAndPrint [11:06:58]line [11:06:58]line [11:06:58]line [11:06:58]line [11:06:58]line [11:06:58]written 0, free lines is 3299 [11:06:58]MH_Cut [11:06:58]Write to MH i2c: D1 01 00 5D 9E 01 CD [11:06:58]Write i2c OK [11:06:58]MH_I2C_Read... [11:06:58]Read from MH i2c: D1 [11:06:58]MH_I2C_Read... [11:06:58]Read from MH i2c: D1 01 00 [11:06:58]MH_I2C_Read... [11:06:58]Read from MH i2c: D1 01 00 5D 9E 00 CC [11:06:58]Write to MH i2c: 01 00 00 5E 9E FC [11:06:58]Write i2c OK [11:06:58]MH_I2C_Read... [11:06:59]*** Cut start [11:06:59]*** Partial cut [11:06:59]*** CUTSNS_PIN = 1 [11:06:59]*** CUTSNS_PIN = 0 [11:06:59]*** Brake cut motor [11:07:00]Read from MH i2c: 01 [11:07:00]MH_I2C_Read... [11:07:00]*** Stop cut motor [11:07:00]*** Cut end [11:07:00]Read from MH i2c: 01 07 00 [11:07:00]MH_I2C_Read... [11:07:00]Read from MH i2c: 01 07 00 5E 9E 00 00 00 00 00 FF 0F 11 [11:07:00]process_action close_receipt done [11:07:00]requested_data is exist [11:07:00]produce_requested_data [11:07:00]requested_item fm.sn is exist - process it [11:07:00]wFMCommunicate request_size=4 [11:07:00]MH_SAM_APDU [11:07:00]CAPDU: 80 11 00 00 [11:07:00]Write to MH i2c: E2 08 00 5F 9E 80 11 00 00 00 00 00 00 77 [11:07:00]Write i2c OK [11:07:00]MH_I2C_Read... [11:07:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:07:00]Read from MH i2c: E2 [11:07:00]MH_I2C_Read... [11:07:00]Read from MH i2c: E2 17 00 [11:07:00]MH_I2C_Read... [11:07:00]Read from MH i2c: E2 17 00 5F 9E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 CA [11:07:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [11:07:00]wFMCommunicate OK [11:07:00]requested_item fd.num is exist - process it [11:07:00]SAM_PROTO_GetFieldsCounters [11:07:00]wFMCommunicate request_size=4 [11:07:00]MH_SAM_APDU [11:07:00]CAPDU: 80 13 00 00 [11:07:00]Write to MH i2c: E2 08 00 60 9E 80 13 00 00 00 00 00 00 7A [11:07:00]Write i2c OK [11:07:00]MH_I2C_Read... [11:07:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:07:00]Read from MH i2c: E2 [11:07:00]MH_I2C_Read... [11:07:00]Read from MH i2c: E2 62 00 [11:07:00]MH_I2C_Read... [11:07:00]Read from MH i2c: E2 62 00 60 9E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 D2 94 01 00 0E 04 04 00 61 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 2A [11:07:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 D2 94 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 40 00 00 00 5E 04 04 00 40 00 00 00 57 04 04 00 41 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:07:00]wFMCommunicate OK [11:07:00]SAM_PROTO_GetFieldsCounters done [11:07:00]requested_item shift.num is exist - process it [11:07:00]requested_item shift.opened is exist - process it [11:07:00]req_shift_opened [11:07:00]FM_GetShiftState [11:07:00]SAM_PROTO_GetShiftState [11:07:00]wFMCommunicate request_size=4 [11:07:00]MH_SAM_APDU [11:07:00]CAPDU: 80 13 01 00 [11:07:00]Write to MH i2c: E2 08 00 61 9E 80 13 01 00 00 00 00 00 7C [11:07:00]Write i2c OK [11:07:00]MH_I2C_Read... [11:07:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:07:00]Read from MH i2c: E2 [11:07:00]MH_I2C_Read... [11:07:00]Read from MH i2c: E2 0E 00 [11:07:00]MH_I2C_Read... [11:07:00]Read from MH i2c: E2 0E 00 61 9E 00 09 00 01 04 26 72 66 00 00 00 00 90 00 8A [11:07:00]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [11:07:00]wFMCommunicate OK [11:07:00]SAM_PROTO_GetShiftState done [11:07:00]FM_GetShiftState done [11:07:00]req_shift_opened done [11:07:00]requested_item shift.open_date is exist - process it [11:07:00]req_shift_open_date [11:07:00]req_shift_open_date done [11:07:00]produce_requested_data done [11:07:00]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103634,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [11:07:00]process_action_free close_receipt [11:07:00]json_value_free [11:07:00]json_value_free done [11:07:00]process_json_proto returns [11:07:00]Send response to host [11:07:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103634,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [11:07:00]free response buf [11:07:00]execute_script done [11:07:00]execute_script returns [11:07:00]free content buf [11:07:00]Sock 9.Close socket [11:07:00]Sock 9.Thread stoped [11:07:26]accept exits with 7 [11:07:26]New connection [11:07:26]New thread 3067084132 created [11:07:26]Thread 3067227492 joined [11:07:26]Waiting for new connection... [11:07:26] Sock 7.Parse request [11:07:26]Sock 7.Check first char [11:07:26]Sock 7.First char is OK [11:07:26]request: POST /json_proto HTTP/1.0 [11:07:26]Method: POST [11:07:26]URL: /json_proto [11:07:26]Method is POST - this is cgi request [11:07:26]url: /json_proto [11:07:26]query_string will be loaded in cgi processing [11:07:26]execute_cgi json_proto POST (null) [11:07:26]execute_cgi path=json_proto method=POST [11:07:26]POST find Content-Length [11:07:26]Host: 172.17.38.133:8080 [11:07:26]Content-Length: 682 [11:07:26]Content-Type: application/json [11:07:26] [11:07:26]POST finish read [11:07:26]Found Content-Length = 682 [11:07:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672878", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 30.130, "sum" : 2000.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:07:26]execute_script... [11:07: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)672878", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 30.130, "sum" : 2000.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:07:26]POST & json_proto [11:07:26]process_json_proto [11:07:26]json parsed OK: [11:07:26]protocol is kg_v1.0 [11:07:26]action value=close_receipt [11:07:26]process_action close_receipt [11:07:26]cmd_close_receipt [11:07:26]MH_GetDate [11:07:26]Write to MH i2c: F0 00 00 62 9E EF [11:07:26]Write i2c OK [11:07:26]MH_I2C_Read... [11:07:26]Read from MH i2c: F0 [11:07:26]MH_I2C_Read... [11:07:26]Read from MH i2c: F0 09 00 [11:07:26]MH_I2C_Read... [11:07:26]Read from MH i2c: F0 09 00 62 9E 00 FA BB 72 66 BD 8F 7C 64 B1 [11:07:26]GetLastDocTimeStamp 1718795228 [11:07:26]current date 1718795258 [11:07:26]FM_GetShiftState [11:07:26]SAM_PROTO_GetShiftState [11:07:26]wFMCommunicate request_size=4 [11:07:26]MH_SAM_APDU [11:07:26]CAPDU: 80 13 01 00 [11:07:26]Write to MH i2c: E2 08 00 63 9E 80 13 01 00 00 00 00 00 7E [11:07:26]Write i2c OK [11:07:26]MH_I2C_Read... [11:07:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:07:26]Read from MH i2c: E2 [11:07:26]MH_I2C_Read... [11:07:26]Read from MH i2c: E2 0E 00 [11:07:26]MH_I2C_Read... [11:07:26]Read from MH i2c: E2 0E 00 63 9E 00 09 00 01 04 26 72 66 00 00 00 00 90 00 8C [11:07:26]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [11:07:26]wFMCommunicate OK [11:07:26]SAM_PROTO_GetShiftState done [11:07:26]FM_GetShiftState done [11:07:26]opened in 1718756868 [11:07:26]opened+sec_in_day 1718843268 [11:07:26]quantity*price = 200063 [11:07:26]sum+1 = 200064 [11:07:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.46 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 65 19.06.2024 11:07 Смена: 353 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103635 ФПД: 37990861664993 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T110738&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103635&fm=37990861664993&tin=02508201610067®Number=0000000000092785&sum=200000 [11:07:27]StoreToDocumentArchive [11:07:27]shift 353 fd 103635 [11:07:27]save to /storage/0353/doc_00103635 [11:07:27]save last doc name /storage/0353/doc_00103635 to /storage/kkm_last_doc_name [11:07:27]save OK [11:07:27]Clear old archive folders... [11:07:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:07:27]tlvbuf is B6F980A0 [11:07:27]SAM_PROTO_ClearQueue [11:07:27]wFMCommunicate request_size=4 [11:07:27]MH_SAM_APDU [11:07:27]CAPDU: 80 09 00 00 [11:07:27]Write to MH i2c: E2 08 00 70 9E 80 09 00 00 00 00 00 00 80 [11:07:27]Write i2c OK [11:07:27]MH_I2C_Read... [11:07:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:07:27]Read from MH i2c: E2 [11:07:27]MH_I2C_Read... [11:07:27]Read from MH i2c: E2 03 00 [11:07:27]MH_I2C_Read... [11:07:27]Read from MH i2c: E2 03 00 70 9E 00 90 00 82 [11:07:27]RAPDU: 90 00 [11:07:27]wFMCommunicate OK [11:07:27]SAM_PROTO_ClearQueue done [11:07:27]KKMCreateOFDPacket [11:07:27]OFDProtocolAddRootSTLVToBuf [11:07:27]FM_MakeSignedData [11:07:27]FM_MakeSignedData [11:07:27]SAM_PROTO_SignData [11:07:27]wFMCommunicate request_size=4 [11:07:27]MH_SAM_APDU [11:07:27]CAPDU: 80 0D 01 02 [11:07:27]Write to MH i2c: E2 08 00 71 9E 80 0D 01 02 00 00 00 00 88 [11:07:27]Write i2c OK [11:07:27]MH_I2C_Read... [11:07:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:07:27]Read from MH i2c: E2 [11:07:27]MH_I2C_Read... [11:07:27]Read from MH i2c: E2 03 00 [11:07:27]MH_I2C_Read... [11:07:27]Read from MH i2c: E2 03 00 71 9E 00 90 00 83 [11:07:27]RAPDU: 90 00 [11:07:27]wFMCommunicate OK [11:07:27]wFMCommunicate request_size=255 [11:07:27]MH_SAM_APDU [11:07:27]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B2 75 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FE 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 FA BB 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 D3 94 01 00 35 04 06 00 22 [11:07:27]Write to MH i2c: E2 02 01 72 9E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B2 75 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FE 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 FA BB 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 D3 94 01 00 35 04 06 00 22 00 00 F1 [11:07:27]Write i2c OK [11:07:27]MH_I2C_Read... [11:07:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:07:27]Read from MH i2c: E2 [11:07:27]MH_I2C_Read... [11:07:27]Read from MH i2c: E2 03 00 [11:07:27]MH_I2C_Read... [11:07:27]Read from MH i2c: E2 03 00 72 9E 00 90 00 84 [11:07:27]RAPDU: 90 00 [11:07:27]wFMCommunicate OK [11:07:27]wFMCommunicate request_size=10 [11:07:27]MH_SAM_APDU [11:07:27]CAPDU: 80 0D 02 02 05 8D 6F D0 72 E1 [11:07:27]Write to MH i2c: E2 0D 00 73 9E 80 0D 02 02 05 00 8D 6F D0 72 E1 00 00 B4 [11:07:27]Write i2c OK [11:07:27]MH_I2C_Read... [11:07:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:07:27]Read from MH i2c: E2 [11:07:27]MH_I2C_Read... [11:07:27]Read from MH i2c: E2 03 00 [11:07:27]MH_I2C_Read... [11:07:27]Read from MH i2c: E2 03 00 73 9E 00 90 00 85 [11:07:27]RAPDU: 90 00 [11:07:27]wFMCommunicate OK [11:07:27]wFMCommunicate request_size=4 [11:07:27]MH_SAM_APDU [11:07:27]CAPDU: 80 0D 03 02 [11:07:27]Write to MH i2c: E2 08 00 74 9E 80 0D 03 02 00 00 00 00 8D [11:07:27]Write i2c OK [11:07:27]MH_I2C_Read... [11:07:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:07:27]Read from MH i2c: E2 [11:07:27]MH_I2C_Read... [11:07:27]Read from MH i2c: E2 0B 00 [11:07:27]MH_I2C_Read... [11:07:27]Read from MH i2c: E2 0B 00 74 9E 00 77 F0 C9 01 23 F2 16 72 90 00 5C [11:07:27]RAPDU: 77 F0 C9 01 23 F2 16 72 90 00 [11:07:27]wFMCommunicate OK [11:07:27]SAM_PROTO_SignData done [11:07:27]FM_MakeSignedData done [11:07:27]CreateOFDProtocolMessage [11:07:27]wFMCommunicate request_size=4 [11:07:27]MH_SAM_APDU [11:07:27]CAPDU: 80 11 00 00 [11:07:27]Write to MH i2c: E2 08 00 75 9E 80 11 00 00 00 00 00 00 8D [11:07:27]Write i2c OK [11:07:27]MH_I2C_Read... [11:07:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:07:27]Read from MH i2c: E2 [11:07:27]MH_I2C_Read... [11:07:27]Read from MH i2c: E2 17 00 [11:07:27]MH_I2C_Read... [11:07:27]Read from MH i2c: E2 17 00 75 9E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 E0 [11:07:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [11:07:27]wFMCommunicate OK [11:07:27]CreateOFDProtocolMessage done [11:07:27]OFDSenderStorePacket 103635 [11:07:27]StoreOFDPacket docnum=103635 [11:07:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 85 4F 07 01 9C CF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B2 75 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FE 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 FA BB 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 D3 94 01 00 35 04 06 00 22 8D 6F D0 72 E1 77 F0 C9 01 23 F2 16 72 [11:07:27]CheckFolder [11:07:27]dirname=/storage/ofd_packets [11:07:27]CheckFolder done [11:07:27]ProducePacketName [11:07:27]name=ofd_packets/00103635 [11:07:27]NVStorageSaveData ofd_packets/00103635 [11:07:27]File name is /storage/ofd_packets/00103635 [11:07:27]Write 301 bytes [11:07:27]NVStorageSaveData done [11:07:27]OFDSenderStorePacket done [11:07:27]KKMCreateOFDPacket done [11:07:27]NVStorageSaveData kkm_last_timestamp [11:07:27]File name is /storage/kkm_last_timestamp [11:07:27]Write 4 bytes [11:07:27]NVStorageSaveData done [11:07:27]ExternCall_PrintAddStr [11:07:27]wPrintStart [11:07:27]Write to MH i2c: 01 00 00 76 9E 14 [11:07:27]Write i2c OK [11:07:27]MH_I2C_Read... [11:07:27]Read from MH i2c: 01 [11:07:27]MH_I2C_Read... [11:07:27]Read from MH i2c: 01 07 00 [11:07:27]MH_I2C_Read... [11:07:27]Read from MH i2c: 01 07 00 76 9E 00 00 00 00 00 FF 0F 29 [11:07:27]RasterBufferAndPrint [11:07:27]line Счет N : (1)672878 [11:07:27]line ИНН: 02508201610067 [11:07:27]line Контрольно-Кассовый Чек [11:07:27]line ПРОДАЖА [11:07:27]line ТРК (МРК, ГНК) : 42 [11:07:27]line Товар: 2710124130 [11:07:27]line Аи-92-К-5 [11:07:27]line 30.130 * 66.40 [11:07:27]line = 2000.63 [11:07:27]line НДС 12% НСП 1% [11:07:27]line > о реализуемом товаре [11:07:27]line ОКРУГЛЕНИЕ: -0.63 [11:07:27]line ИТОГО: 2000.00 [11:07:27]line Внесено: 2000.00 [11:07:27]line СДАЧА: 0.00 [11:07:27]line НСП 1% : 17.70 [11:07:27]line НДС 12% : 212.46 [11:07:27]line Наличными: 2000.00 [11:07:27]line Безнал.: 0.00 [11:07:27]line Место: АЗС № 120 "Партнер Нефть" [11:07:27]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [11:07:27]line СНО: Общий режим [11:07:27]line Чек 65 19.06.2024 11:07 [11:07:27]line Смена: 353 ФФД: 1.0 [11:07:27]line ЗНМ: 0300000164 [11:07:27]line РНМ: 0000000000092785 [11:07:27]line Версия ККМ: 001 [11:07:27]line ФМ: 0000000000875093 [11:07:27]line ФД: 103635 [11:07:27]line ФПД: 37990861664993 [11:07:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T110738&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103635&fm=37990861664993&tin=02508201610067®Number=0000000000092785&sum=200000 [11:07:28]written 0, free lines is 4095 [11:07:28]Write to MH i2c: 01 00 00 A1 9E 3F [11:07:28]Write i2c OK [11:07:28]MH_I2C_Read... [11:07:28]Read from MH i2c: 01 [11:07:28]MH_I2C_Read... [11:07:28]Read from MH i2c: 01 07 00 [11:07:28]MH_I2C_Read... [11:07:28]Read from MH i2c: 01 07 00 A1 9E 00 00 00 00 00 DB 0C 2D [11:07:28]RasterBufferAndPrint [11:07:28]line [11:07:28]line [11:07:28]line [11:07:28]line [11:07:28]line [11:07:28]written 0, free lines is 3297 [11:07:28]MH_Cut [11:07:28]Write to MH i2c: D1 01 00 A8 9E 01 18 [11:07:28]Write i2c OK [11:07:28]MH_I2C_Read... [11:07:28]Read from MH i2c: D1 [11:07:28]MH_I2C_Read... [11:07:28]Read from MH i2c: D1 01 00 [11:07:28]MH_I2C_Read... [11:07:28]Read from MH i2c: D1 01 00 A8 9E 00 17 [11:07:28]Write to MH i2c: 01 00 00 A9 9E 47 [11:07:28]Write i2c OK [11:07:28]MH_I2C_Read... [11:07:29]*** Cut start [11:07:29]*** Partial cut [11:07:29]*** CUTSNS_PIN = 1 [11:07:29]*** CUTSNS_PIN = 0 [11:07:29]*** Brake cut motor [11:07:29]Read from MH i2c: 01 [11:07:29]MH_I2C_Read... [11:07:29]*** Stop cut motor [11:07:29]*** Cut end [11:07:29]Read from MH i2c: 01 07 00 [11:07:29]MH_I2C_Read... [11:07:29]Read from MH i2c: 01 07 00 A9 9E 00 00 00 00 00 FF 0F 5C [11:07:29]process_action close_receipt done [11:07:29]requested_data is exist [11:07:29]produce_requested_data [11:07:29]requested_item fm.sn is exist - process it [11:07:29]wFMCommunicate request_size=4 [11:07:29]MH_SAM_APDU [11:07:29]CAPDU: 80 11 00 00 [11:07:29]Write to MH i2c: E2 08 00 AA 9E 80 11 00 00 00 00 00 00 C2 [11:07:29]Write i2c OK [11:07:29]MH_I2C_Read... [11:07:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:07:30]Read from MH i2c: E2 [11:07:30]MH_I2C_Read... [11:07:30]Read from MH i2c: E2 17 00 [11:07:30]MH_I2C_Read... [11:07:30]Read from MH i2c: E2 17 00 AA 9E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 15 [11:07:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [11:07:30]wFMCommunicate OK [11:07:30]requested_item fd.num is exist - process it [11:07:30]SAM_PROTO_GetFieldsCounters [11:07:30]wFMCommunicate request_size=4 [11:07:30]MH_SAM_APDU [11:07:30]CAPDU: 80 13 00 00 [11:07:30]Write to MH i2c: E2 08 00 AB 9E 80 13 00 00 00 00 00 00 C5 [11:07:30]Write i2c OK [11:07:30]MH_I2C_Read... [11:07:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:07:30]Read from MH i2c: E2 [11:07:30]MH_I2C_Read... [11:07:30]Read from MH i2c: E2 62 00 [11:07:30]MH_I2C_Read... [11:07:30]Read from MH i2c: E2 62 00 AB 9E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 D3 94 01 00 0E 04 04 00 61 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 79 [11:07:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 D3 94 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 41 00 00 00 5E 04 04 00 41 00 00 00 57 04 04 00 42 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:07:30]wFMCommunicate OK [11:07:30]SAM_PROTO_GetFieldsCounters done [11:07:30]requested_item shift.num is exist - process it [11:07:30]requested_item shift.opened is exist - process it [11:07:30]req_shift_opened [11:07:30]FM_GetShiftState [11:07:30]SAM_PROTO_GetShiftState [11:07:30]wFMCommunicate request_size=4 [11:07:30]MH_SAM_APDU [11:07:30]CAPDU: 80 13 01 00 [11:07:30]Write to MH i2c: E2 08 00 AC 9E 80 13 01 00 00 00 00 00 C7 [11:07:30]Write i2c OK [11:07:30]MH_I2C_Read... [11:07:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:07:30]Read from MH i2c: E2 [11:07:30]MH_I2C_Read... [11:07:30]Read from MH i2c: E2 0E 00 [11:07:30]MH_I2C_Read... [11:07:30]Read from MH i2c: E2 0E 00 AC 9E 00 09 00 01 04 26 72 66 00 00 00 00 90 00 D5 [11:07:30]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [11:07:30]wFMCommunicate OK [11:07:30]SAM_PROTO_GetShiftState done [11:07:30]FM_GetShiftState done [11:07:30]req_shift_opened done [11:07:30]requested_item shift.open_date is exist - process it [11:07:30]req_shift_open_date [11:07:30]req_shift_open_date done [11:07:30]produce_requested_data done [11:07:30]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103635,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [11:07:30]process_action_free close_receipt [11:07:30]json_value_free [11:07:30]json_value_free done [11:07:30]process_json_proto returns [11:07:30]Send response to host [11:07:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103635,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [11:07:30]free response buf [11:07:30]execute_script done [11:07:30]execute_script returns [11:07:30]free content buf [11:07:30]Sock 7.Close socket [11:07:30]Sock 7.Thread stoped [11:09:11]ConnectInit Can't connect to host [11:09:11]CommunicateWithHost connect error [11:09:11]CommunicateWithHost err = -1 [11:09:11]OFD Sender: Server communicate error [11:09:11]OFD Sender: Processing packet 103634 [packets to send 18, broken 16] [11:09:11]ProducePacketName [11:09:11]name=ofd_packets/00103634 [11:09:11]OFD Sender: To server: pG, [11:09:11]CommunicateWithHost lk.salyk.kg:30040 [11:09:11]ConnectInit lk.salyk.kg [11:09:11]Connected sock=7 [11:09: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 39 33 0F 01 00 00 DC C7 07 01 2E 51 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 28 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 DC 09 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 09 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5A 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3C 1C 00 00 00 00 07 04 06 00 A0 09 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 DC BB 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 D2 94 01 00 35 04 06 00 63 11 6B 57 85 F8 B7 A7 1B 5B 5F 2A EA C4 [11:09: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 39 33 4F 00 00 00 C9 8D 47 00 D7 29 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 D2 94 01 00 F4 03 04 00 EA 62 72 66 B6 04 01 00 00 3E C5 59 A7 39 F8 84 FF [11:09:11]CommunicateWithHost err = 0 [11:09:11]CheckOFDResponse [11:09:11]1017 (14) - 77093643461234 [11:09:11]1041 (16) - 0000000000875093 [11:09:11]1040 (4) - 103634 [11:09:11]1012 (4) - 19.06.2024 04:47 [11:09:11]1206 (1) - 0 [11:09:11]OFD Sender: Remove packet 103634 [11:09:11]ProducePacketName [11:09:11]name=ofd_packets/00103634 [11:09:11]NVStorageDeleteData [11:09:12]OFD Sender: Processing packet 103635 [packets to send 17, broken 16] [11:09:12]ProducePacketName [11:09:12]name=ofd_packets/00103635 [11:09:12]OFD Sender: To server: pG, [11:09:12]CommunicateWithHost lk.salyk.kg:30040 [11:09:12]ConnectInit lk.salyk.kg [11:09:12]Connected sock=7 [11:09: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 39 33 0F 01 00 00 85 4F 07 01 9C CF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B2 75 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FE 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 FA BB 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 D3 94 01 00 35 04 06 00 22 8D 6F D0 72 E1 77 F0 C9 01 23 F2 16 72 [11:09: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 39 33 4F 00 00 00 CF 4D 47 00 0C 22 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 D3 94 01 00 F4 03 04 00 EB 62 72 66 B6 04 01 00 00 B7 F5 CF D5 07 CF C6 11 [11:09:12]CommunicateWithHost err = 0 [11:09:12]CheckOFDResponse [11:09:12]1017 (14) - 77093643461234 [11:09:12]1041 (16) - 0000000000875093 [11:09:12]1040 (4) - 103635 [11:09:12]1012 (4) - 19.06.2024 04:47 [11:09:12]1206 (1) - 0 [11:09:12]OFD Sender: Remove packet 103635 [11:09:12]ProducePacketName [11:09:12]name=ofd_packets/00103635 [11:09:12]NVStorageDeleteData [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:24]accept exits with 9 [11:10:24]New connection [11:10:24]New thread 3067227492 created [11:10:24]Thread 3067084132 joined [11:10:24]Waiting for new connection... [11:10:24] Sock 9.Parse request [11:10:24]Sock 9.Check first char [11:10:24]Sock 9.First char is OK [11:10:24]request: POST /json_proto HTTP/1.0 [11:10:24]Method: POST [11:10:24]URL: /json_proto [11:10:24]Method is POST - this is cgi request [11:10:24]url: /json_proto [11:10:24]query_string will be loaded in cgi processing [11:10:24]execute_cgi json_proto POST (null) [11:10:24]execute_cgi path=json_proto method=POST [11:10:24]POST find Content-Length [11:10:24]Host: 172.17.38.133:8080 [11:10:24]Content-Length: 677 [11:10:24]Content-Type: application/json [11:10:24] [11:10:24]POST finish read [11:10:24]Found Content-Length = 677 [11:10:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672879", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 9.040, "sum" : 600.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:10:24]execute_script... [11:10:24]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672879", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 9.040, "sum" : 600.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:10:24]POST & json_proto [11:10:24]process_json_proto [11:10:24]json parsed OK: [11:10:24]protocol is kg_v1.0 [11:10:24]action value=close_receipt [11:10:24]process_action close_receipt [11:10:24]cmd_close_receipt [11:10:24]MH_GetDate [11:10:24]Write to MH i2c: F0 00 00 AD 9E 3A [11:10:24]Write i2c OK [11:10:24]MH_I2C_Read... [11:10:24]Read from MH i2c: F0 [11:10:24]MH_I2C_Read... [11:10:24]Read from MH i2c: F0 09 00 [11:10:24]MH_I2C_Read... [11:10:24]Read from MH i2c: F0 09 00 AD 9E 00 AC BC 72 66 BD 8F 7C 64 AF [11:10:24]GetLastDocTimeStamp 1718795258 [11:10:24]current date 1718795436 [11:10:24]FM_GetShiftState [11:10:24]SAM_PROTO_GetShiftState [11:10:24]wFMCommunicate request_size=4 [11:10:24]MH_SAM_APDU [11:10:24]CAPDU: 80 13 01 00 [11:10:24]Write to MH i2c: E2 08 00 AE 9E 80 13 01 00 00 00 00 00 C9 [11:10:24]Write i2c OK [11:10:24]MH_I2C_Read... [11:10:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:10:24]Read from MH i2c: E2 [11:10:24]MH_I2C_Read... [11:10:24]Read from MH i2c: E2 0E 00 [11:10:24]MH_I2C_Read... [11:10:24]Read from MH i2c: E2 0E 00 AE 9E 00 09 00 01 04 26 72 66 00 00 00 00 90 00 D7 [11:10:24]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [11:10:24]wFMCommunicate OK [11:10:24]SAM_PROTO_GetShiftState done [11:10:24]FM_GetShiftState done [11:10:24]opened in 1718756868 [11:10:24]opened+sec_in_day 1718843268 [11:10:24]quantity*price = 60025 [11:10:24]sum+1 = 60027 [11:10:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.26 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.74 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 66 19.06.2024 11:10 Смена: 353 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103636 ФПД: 22273438396865 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T111036&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103636&fm=22273438396865&tin=02508201610067®Number=0000000000092785&sum=60000 [11:10:25]StoreToDocumentArchive [11:10:25]shift 353 fd 103636 [11:10:25]save to /storage/0353/doc_00103636 [11:10:25]save last doc name /storage/0353/doc_00103636 to /storage/kkm_last_doc_name [11:10:25]save OK [11:10:25]Clear old archive folders... [11:10:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:10:25]tlvbuf is 0132D210 [11:10:25]SAM_PROTO_ClearQueue [11:10:25]wFMCommunicate request_size=4 [11:10:25]MH_SAM_APDU [11:10:25]CAPDU: 80 09 00 00 [11:10:25]Write to MH i2c: E2 08 00 BB 9E 80 09 00 00 00 00 00 00 CB [11:10:25]Write i2c OK [11:10:25]MH_I2C_Read... [11:10:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:10:25]Read from MH i2c: E2 [11:10:25]MH_I2C_Read... [11:10:25]Read from MH i2c: E2 03 00 [11:10:25]MH_I2C_Read... [11:10:25]Read from MH i2c: E2 03 00 BB 9E 00 90 00 CD [11:10:25]RAPDU: 90 00 [11:10:25]wFMCommunicate OK [11:10:25]SAM_PROTO_ClearQueue done [11:10:25]KKMCreateOFDPacket [11:10:25]OFDProtocolAddRootSTLVToBuf [11:10:25]FM_MakeSignedData [11:10:25]FM_MakeSignedData [11:10:25]SAM_PROTO_SignData [11:10:25]wFMCommunicate request_size=4 [11:10:25]MH_SAM_APDU [11:10:25]CAPDU: 80 0D 01 02 [11:10:25]Write to MH i2c: E2 08 00 BC 9E 80 0D 01 02 00 00 00 00 D3 [11:10:25]Write i2c OK [11:10:25]MH_I2C_Read... [11:10:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:10:25]Read from MH i2c: E2 [11:10:25]MH_I2C_Read... [11:10:25]Read from MH i2c: E2 03 00 [11:10:25]MH_I2C_Read... [11:10:25]Read from MH i2c: E2 03 00 BC 9E 00 90 00 CE [11:10:25]RAPDU: 90 00 [11:10:25]wFMCommunicate OK [11:10:25]wFMCommunicate request_size=255 [11:10:25]MH_SAM_APDU [11:10: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 50 23 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 AC BC 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 D4 94 01 00 35 04 06 00 14 [11:10:25]Write to MH i2c: E2 02 01 BD 9E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 50 23 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 AC BC 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 D4 94 01 00 35 04 06 00 14 00 00 CB [11:10:25]Write i2c OK [11:10:25]MH_I2C_Read... [11:10:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:10:25]Read from MH i2c: E2 [11:10:25]MH_I2C_Read... [11:10:25]Read from MH i2c: E2 03 00 [11:10:25]MH_I2C_Read... [11:10:25]Read from MH i2c: E2 03 00 BD 9E 00 90 00 CF [11:10:25]RAPDU: 90 00 [11:10:25]wFMCommunicate OK [11:10:25]wFMCommunicate request_size=10 [11:10:25]MH_SAM_APDU [11:10:25]CAPDU: 80 0D 02 02 05 41 F0 62 31 C1 [11:10:25]Write to MH i2c: E2 0D 00 BE 9E 80 0D 02 02 05 00 41 F0 62 31 C1 00 00 65 [11:10:25]Write i2c OK [11:10:25]MH_I2C_Read... [11:10:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:10:25]Read from MH i2c: E2 [11:10:25]MH_I2C_Read... [11:10:25]Read from MH i2c: E2 03 00 [11:10:25]MH_I2C_Read... [11:10:25]Read from MH i2c: E2 03 00 BE 9E 00 90 00 D0 [11:10:25]RAPDU: 90 00 [11:10:25]wFMCommunicate OK [11:10:25]wFMCommunicate request_size=4 [11:10:25]MH_SAM_APDU [11:10:25]CAPDU: 80 0D 03 02 [11:10:25]Write to MH i2c: E2 08 00 BF 9E 80 0D 03 02 00 00 00 00 D8 [11:10:25]Write i2c OK [11:10:25]MH_I2C_Read... [11:10:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:10:26]Read from MH i2c: E2 [11:10:26]MH_I2C_Read... [11:10:26]Read from MH i2c: E2 0B 00 [11:10:26]MH_I2C_Read... [11:10:26]Read from MH i2c: E2 0B 00 BF 9E 00 A9 DF FC 00 B5 A7 5A 15 90 00 28 [11:10:26]RAPDU: A9 DF FC 00 B5 A7 5A 15 90 00 [11:10:26]wFMCommunicate OK [11:10:26]SAM_PROTO_SignData done [11:10:26]FM_MakeSignedData done [11:10:26]CreateOFDProtocolMessage [11:10:26]wFMCommunicate request_size=4 [11:10:26]MH_SAM_APDU [11:10:26]CAPDU: 80 11 00 00 [11:10:26]Write to MH i2c: E2 08 00 C0 9E 80 11 00 00 00 00 00 00 D8 [11:10:26]Write i2c OK [11:10:26]MH_I2C_Read... [11:10:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:10:26]Read from MH i2c: E2 [11:10:26]MH_I2C_Read... [11:10:26]Read from MH i2c: E2 17 00 [11:10:26]MH_I2C_Read... [11:10:26]Read from MH i2c: E2 17 00 C0 9E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 2B [11:10:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [11:10:26]wFMCommunicate OK [11:10:26]CreateOFDProtocolMessage done [11:10:26]OFDSenderStorePacket 103636 [11:10:26]StoreOFDPacket docnum=103636 [11:10:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 29 26 07 01 20 1A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 50 23 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 AC BC 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 D4 94 01 00 35 04 06 00 14 41 F0 62 31 C1 A9 DF FC 00 B5 A7 5A 15 [11:10:26]CheckFolder [11:10:26]dirname=/storage/ofd_packets [11:10:26]CheckFolder done [11:10:26]ProducePacketName [11:10:26]name=ofd_packets/00103636 [11:10:26]NVStorageSaveData ofd_packets/00103636 [11:10:26]File name is /storage/ofd_packets/00103636 [11:10:26]Write 301 bytes [11:10:26]NVStorageSaveData done [11:10:26]OFDSenderStorePacket done [11:10:26]KKMCreateOFDPacket done [11:10:26]NVStorageSaveData kkm_last_timestamp [11:10:26]File name is /storage/kkm_last_timestamp [11:10:26]Write 4 bytes [11:10:26]NVStorageSaveData done [11:10:26]ExternCall_PrintAddStr [11:10:26]wPrintStart [11:10:26]Write to MH i2c: 01 00 00 C1 9E 5F [11:10:26]Write i2c OK [11:10:26]MH_I2C_Read... [11:10:26]Read from MH i2c: 01 [11:10:26]MH_I2C_Read... [11:10:26]Read from MH i2c: 01 07 00 [11:10:26]MH_I2C_Read... [11:10:26]Read from MH i2c: 01 07 00 C1 9E 00 00 00 00 00 FF 0F 74 [11:10:26]RasterBufferAndPrint [11:10:26]line Счет N : (1)672879 [11:10:26]line ИНН: 02508201610067 [11:10:26]line Контрольно-Кассовый Чек [11:10:26]line ПРОДАЖА [11:10:26]line ТРК (МРК, ГНК) : 42 [11:10:26]line Товар: 2710124130 [11:10:26]line Аи-92-К-5 [11:10:26]line 9.040 * 66.40 [11:10:26]line = 600.26 [11:10:26]line НДС 12% НСП 1% [11:10:26]line > о реализуемом товаре [11:10:26]line ОКРУГЛЕНИЕ: -0.26 [11:10:26]line ИТОГО: 600.00 [11:10:26]line Внесено: 600.00 [11:10:26]line СДАЧА: 0.00 [11:10:26]line НСП 1% : 5.31 [11:10:26]line НДС 12% : 63.74 [11:10:26]line Наличными: 600.00 [11:10:26]line Безнал.: 0.00 [11:10:26]line Место: АЗС № 120 "Партнер Нефть" [11:10:26]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [11:10:26]line СНО: Общий режим [11:10:26]line Чек 66 19.06.2024 11:10 [11:10:26]line Смена: 353 ФФД: 1.0 [11:10:26]line ЗНМ: 0300000164 [11:10:26]line РНМ: 0000000000092785 [11:10:26]line Версия ККМ: 001 [11:10:26]line ФМ: 0000000000875093 [11:10:26]line ФД: 103636 [11:10:26]line ФПД: 22273438396865 [11:10:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T111036&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103636&fm=22273438396865&tin=02508201610067®Number=0000000000092785&sum=60000 [11:10:26]OFD Sender: Processing packet 103636 [packets to send 17, broken 16] [11:10:26]ProducePacketName [11:10:26]name=ofd_packets/00103636 [11:10:26]OFD Sender: To server: pG, [11:10:26]CommunicateWithHost lk.salyk.kg:30040 [11:10:26]ConnectInit lk.salyk.kg [11:10:26]written 0, free lines is 4095 [11:10:26]Connected sock=10 [11:10:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 29 26 07 01 20 1A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 50 23 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 AC BC 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 D4 94 01 00 35 04 06 00 14 41 F0 62 31 C1 A9 DF FC 00 B5 A7 5A 15 [11:10: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 39 33 4F 00 00 00 42 48 47 00 8D 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 39 33 10 04 04 00 D4 94 01 00 F4 03 04 00 35 63 72 66 B6 04 01 00 00 88 22 29 28 09 C2 81 5D [11:10:26]CommunicateWithHost err = 0 [11:10:26]CheckOFDResponse [11:10:26]1017 (14) - 77093643461234 [11:10:26]1041 (16) - 0000000000875093 [11:10:26]1040 (4) - 103636 [11:10:26]1012 (4) - 19.06.2024 04:48 [11:10:26]1206 (1) - 0 [11:10:26]OFD Sender: Remove packet 103636 [11:10:26]ProducePacketName [11:10:26]name=ofd_packets/00103636 [11:10:26]NVStorageDeleteData [11:10:26]Write to MH i2c: 01 00 00 EC 9E 8A [11:10:26]Write i2c OK [11:10:26]MH_I2C_Read... [11:10:26]Read from MH i2c: 01 [11:10:26]MH_I2C_Read... [11:10:26]Read from MH i2c: 01 07 00 [11:10:26]MH_I2C_Read... [11:10:26]Read from MH i2c: 01 07 00 EC 9E 00 00 00 00 00 E7 0C 84 [11:10:26]RasterBufferAndPrint [11:10:26]line [11:10:26]line [11:10:26]line [11:10:26]line [11:10:26]line [11:10:26]written 0, free lines is 3309 [11:10:26]MH_Cut [11:10:26]Write to MH i2c: D1 01 00 F3 9E 01 63 [11:10:26]Write i2c OK [11:10:26]MH_I2C_Read... [11:10:26]Read from MH i2c: D1 [11:10:26]MH_I2C_Read... [11:10:26]Read from MH i2c: D1 01 00 [11:10:26]MH_I2C_Read... [11:10:26]Read from MH i2c: D1 01 00 F3 9E 00 62 [11:10:26]Write to MH i2c: 01 00 00 F4 9E 92 [11:10:26]Write i2c OK [11:10:26]MH_I2C_Read... [11:10:27]OFD Sender: No OFD packet to send [11:10:27]*** Cut start [11:10:27]*** Partial cut [11:10:27]*** CUTSNS_PIN = 1 [11:10:27]*** CUTSNS_PIN = 0 [11:10:27]*** Brake cut motor [11:10:28]Read from MH i2c: 01 [11:10:28]MH_I2C_Read... [11:10:28]*** Stop cut motor [11:10:28]*** Cut end [11:10:28]Read from MH i2c: 01 07 00 [11:10:28]MH_I2C_Read... [11:10:28]Read from MH i2c: 01 07 00 F4 9E 00 00 00 00 00 FF 0F A7 [11:10:28]process_action close_receipt done [11:10:28]requested_data is exist [11:10:28]produce_requested_data [11:10:28]requested_item fm.sn is exist - process it [11:10:28]wFMCommunicate request_size=4 [11:10:28]MH_SAM_APDU [11:10:28]CAPDU: 80 11 00 00 [11:10:28]Write to MH i2c: E2 08 00 F5 9E 80 11 00 00 00 00 00 00 0D [11:10:28]Write i2c OK [11:10:28]MH_I2C_Read... [11:10:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:10:28]Read from MH i2c: E2 [11:10:28]MH_I2C_Read... [11:10:28]Read from MH i2c: E2 17 00 [11:10:28]MH_I2C_Read... [11:10:28]Read from MH i2c: E2 17 00 F5 9E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 60 [11:10:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [11:10:28]wFMCommunicate OK [11:10:28]requested_item fd.num is exist - process it [11:10:28]SAM_PROTO_GetFieldsCounters [11:10:28]wFMCommunicate request_size=4 [11:10:28]MH_SAM_APDU [11:10:28]CAPDU: 80 13 00 00 [11:10:28]Write to MH i2c: E2 08 00 F6 9E 80 13 00 00 00 00 00 00 10 [11:10:28]Write i2c OK [11:10:28]MH_I2C_Read... [11:10:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:10:28]Read from MH i2c: E2 [11:10:28]MH_I2C_Read... [11:10:28]Read from MH i2c: E2 62 00 [11:10:28]MH_I2C_Read... [11:10:28]Read from MH i2c: E2 62 00 F6 9E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 D4 94 01 00 0E 04 04 00 61 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 C8 [11:10: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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 D4 94 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 42 00 00 00 5E 04 04 00 42 00 00 00 57 04 04 00 43 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:10:28]wFMCommunicate OK [11:10:28]SAM_PROTO_GetFieldsCounters done [11:10:28]requested_item shift.num is exist - process it [11:10:28]requested_item shift.opened is exist - process it [11:10:28]req_shift_opened [11:10:28]FM_GetShiftState [11:10:28]SAM_PROTO_GetShiftState [11:10:28]wFMCommunicate request_size=4 [11:10:28]MH_SAM_APDU [11:10:28]CAPDU: 80 13 01 00 [11:10:28]Write to MH i2c: E2 08 00 F7 9E 80 13 01 00 00 00 00 00 12 [11:10:28]Write i2c OK [11:10:28]MH_I2C_Read... [11:10:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:10:28]Read from MH i2c: E2 [11:10:28]MH_I2C_Read... [11:10:28]Read from MH i2c: E2 0E 00 [11:10:28]MH_I2C_Read... [11:10:28]Read from MH i2c: E2 0E 00 F7 9E 00 09 00 01 04 26 72 66 00 00 00 00 90 00 20 [11:10:28]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [11:10:28]wFMCommunicate OK [11:10:28]SAM_PROTO_GetShiftState done [11:10:28]FM_GetShiftState done [11:10:28]req_shift_opened done [11:10:28]requested_item shift.open_date is exist - process it [11:10:28]req_shift_open_date [11:10:28]req_shift_open_date done [11:10:28]produce_requested_data done [11:10:28]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103636,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [11:10:28]process_action_free close_receipt [11:10:28]json_value_free [11:10:28]json_value_free done [11:10:28]process_json_proto returns [11:10:28]Send response to host [11:10:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103636,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [11:10:28]free response buf [11:10:28]execute_script done [11:10:28]execute_script returns [11:10:28]free content buf [11:10:28]Sock 9.Close socket [11:10:28]Sock 9.Thread stoped [11:10:32]OFD Sender: No OFD packet to send [11:10:37]OFD Sender: No OFD packet to send [11:10:42]OFD Sender: No OFD packet to send [11:10:47]OFD Sender: No OFD packet to send [11:10:52]OFD Sender: No OFD packet to send [11:10:57]OFD Sender: No OFD packet to send [11:11:02]OFD Sender: No OFD packet to send [11:11:07]OFD Sender: No OFD packet to send [11:11:12]OFD Sender: No OFD packet to send [11:11:17]OFD Sender: No OFD packet to send [11:11:22]OFD Sender: No OFD packet to send [11:11:27]OFD Sender: No OFD packet to send [11:11:32]OFD Sender: No OFD packet to send [11:11:37]OFD Sender: No OFD packet to send [11:11:42]OFD Sender: No OFD packet to send [11:11:47]OFD Sender: No OFD packet to send [11:11:52]OFD Sender: No OFD packet to send [11:11:57]OFD Sender: No OFD packet to send [11:12:02]OFD Sender: No OFD packet to send [11:12:07]OFD Sender: No OFD packet to send [11:12:07]accept exits with 7 [11:12:07]New connection [11:12:07]New thread 3067084132 created [11:12:07]Thread 3067227492 joined [11:12:07]Waiting for new connection... [11:12:07] Sock 7.Parse request [11:12:07]Sock 7.Check first char [11:12:07]Sock 7.First char is OK [11:12:07]request: POST /json_proto HTTP/1.0 [11:12:07]Method: POST [11:12:07]URL: /json_proto [11:12:07]Method is POST - this is cgi request [11:12:07]url: /json_proto [11:12:07]query_string will be loaded in cgi processing [11:12:07]execute_cgi json_proto POST (null) [11:12:07]execute_cgi path=json_proto method=POST [11:12:07]POST find Content-Length [11:12:07]Host: 172.17.38.133:8080 [11:12:07]Content-Length: 808 [11:12:07]Content-Type: application/json [11:12:07] [11:12:07]POST finish read [11:12:07]Found Content-Length = 808 [11:12:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672880", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 13.720, "sum" : 1000.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.19 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:12:07]execute_script... [11: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)672880", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 13.720, "sum" : 1000.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.19 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:12:07]POST & json_proto [11:12:07]process_json_proto [11:12:07]json parsed OK: [11:12:07]protocol is kg_v1.0 [11:12:07]action value=close_receipt [11:12:07]process_action close_receipt [11:12:07]cmd_close_receipt [11:12:07]MH_GetDate [11:12:07]Write to MH i2c: F0 00 00 F8 9E 85 [11:12:07]Write i2c OK [11:12:07]MH_I2C_Read... [11:12:07]Read from MH i2c: F0 [11:12:07]MH_I2C_Read... [11:12:07]Read from MH i2c: F0 09 00 [11:12:07]MH_I2C_Read... [11:12:07]Read from MH i2c: F0 09 00 F8 9E 00 13 BD 72 66 BD 8F 7C 64 62 [11:12:07]GetLastDocTimeStamp 1718795436 [11:12:07]current date 1718795539 [11:12:07]FM_GetShiftState [11:12:07]SAM_PROTO_GetShiftState [11:12:07]wFMCommunicate request_size=4 [11:12:07]MH_SAM_APDU [11:12:07]CAPDU: 80 13 01 00 [11:12:07]Write to MH i2c: E2 08 00 F9 9E 80 13 01 00 00 00 00 00 14 [11:12:07]Write i2c OK [11:12:07]MH_I2C_Read... [11:12:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:12:07]Read from MH i2c: E2 [11:12:07]MH_I2C_Read... [11:12:07]Read from MH i2c: E2 0E 00 [11:12:07]MH_I2C_Read... [11:12:07]Read from MH i2c: E2 0E 00 F9 9E 00 09 00 01 04 26 72 66 00 00 00 00 90 00 22 [11:12:07]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [11:12:07]wFMCommunicate OK [11:12:07]SAM_PROTO_GetShiftState done [11:12:07]FM_GetShiftState done [11:12:07]opened in 1718756868 [11:12:07]opened+sec_in_day 1718843268 [11:12:07]quantity*price = 100018 [11:12:07]sum+1 = 100020 [11:12:07]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.19 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.19 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 67 19.06.2024 11:12 Смена: 353 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000875093 ФД: 103637 ФПД: 280013703537962 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T111219&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103637&fm=280013703537962&tin=02508201610067®Number=0000000000092785&sum=100019 [11:12:08]StoreToDocumentArchive [11:12:08]shift 353 fd 103637 [11:12:08]save to /storage/0353/doc_00103637 [11:12:08]save last doc name /storage/0353/doc_00103637 to /storage/kkm_last_doc_name [11:12:08]save OK [11:12:08]Clear old archive folders... [11:12:08]ProcessDocumentItem done err = 0, tmpTLVsize=252 [11:12:08]tlvbuf is 01678F70 [11:12:08]SAM_PROTO_ClearQueue [11:12:08]wFMCommunicate request_size=4 [11:12:08]MH_SAM_APDU [11:12:08]CAPDU: 80 09 00 00 [11:12:08]Write to MH i2c: E2 08 00 06 9F 80 09 00 00 00 00 00 00 17 [11:12:08]Write i2c OK [11:12:08]MH_I2C_Read... [11:12:08]Read from MH i2c: E2 [11:12:08]MH_I2C_Read... [11:12:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:12:08]Read from MH i2c: E2 03 00 [11:12:08]MH_I2C_Read... [11:12:08]Read from MH i2c: E2 03 00 06 9F 00 90 00 19 [11:12:08]RAPDU: 90 00 [11:12:08]wFMCommunicate OK [11:12:08]SAM_PROTO_ClearQueue done [11:12:08]KKMCreateOFDPacket [11:12:08]OFDProtocolAddRootSTLVToBuf [11:12:08]FM_MakeSignedData [11:12:08]FM_MakeSignedData [11:12:08]SAM_PROTO_SignData [11:12:08]wFMCommunicate request_size=4 [11:12:08]MH_SAM_APDU [11:12:08]CAPDU: 80 0D 01 02 [11:12:08]Write to MH i2c: E2 08 00 07 9F 80 0D 01 02 00 00 00 00 1F [11:12:08]Write i2c OK [11:12:08]MH_I2C_Read... [11:12:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:12:08]Read from MH i2c: E2 [11:12:08]MH_I2C_Read... [11:12:08]Read from MH i2c: E2 03 00 [11:12:08]MH_I2C_Read... [11:12:08]Read from MH i2c: E2 03 00 07 9F 00 90 00 1A [11:12:08]RAPDU: 90 00 [11:12:08]wFMCommunicate OK [11:12:08]wFMCommunicate request_size=255 [11:12:08]MH_SAM_APDU [11:12:08]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 13 BD 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 D5 94 01 00 35 04 06 00 [11:12:08]Write to MH i2c: E2 02 01 08 9F 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 13 BD 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 D5 94 01 00 35 04 06 00 00 00 50 [11:12:08]Write i2c OK [11:12:08]MH_I2C_Read... [11:12:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:12:09]Read from MH i2c: E2 [11:12:09]MH_I2C_Read... [11:12:09]Read from MH i2c: E2 03 00 [11:12:09]MH_I2C_Read... [11:12:09]Read from MH i2c: E2 03 00 08 9F 00 90 00 1B [11:12:09]RAPDU: 90 00 [11:12:09]wFMCommunicate OK [11:12:09]wFMCommunicate request_size=11 [11:12:09]MH_SAM_APDU [11:12:09]CAPDU: 80 0D 02 02 06 FE AB C5 54 E5 2A [11:12:09]Write to MH i2c: E2 0E 00 09 9F 80 0D 02 02 06 00 FE AB C5 54 E5 2A 00 00 FF [11:12:09]Write i2c OK [11:12:09]MH_I2C_Read... [11:12:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:12:09]Read from MH i2c: E2 [11:12:09]MH_I2C_Read... [11:12:09]Read from MH i2c: E2 03 00 [11:12:09]MH_I2C_Read... [11:12:09]Read from MH i2c: E2 03 00 09 9F 00 90 00 1C [11:12:09]RAPDU: 90 00 [11:12:09]wFMCommunicate OK [11:12:09]wFMCommunicate request_size=4 [11:12:09]MH_SAM_APDU [11:12:09]CAPDU: 80 0D 03 02 [11:12:09]Write to MH i2c: E2 08 00 0A 9F 80 0D 03 02 00 00 00 00 24 [11:12:09]Write i2c OK [11:12:09]MH_I2C_Read... [11:12:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:12:09]Read from MH i2c: E2 [11:12:09]MH_I2C_Read... [11:12:09]Read from MH i2c: E2 0B 00 [11:12:09]MH_I2C_Read... [11:12:09]Read from MH i2c: E2 0B 00 0A 9F 00 63 D2 3A E3 B3 5C 40 F2 90 00 B8 [11:12:09]RAPDU: 63 D2 3A E3 B3 5C 40 F2 90 00 [11:12:09]wFMCommunicate OK [11:12:09]SAM_PROTO_SignData done [11:12:09]FM_MakeSignedData done [11:12:09]CreateOFDProtocolMessage [11:12:09]wFMCommunicate request_size=4 [11:12:09]MH_SAM_APDU [11:12:09]CAPDU: 80 11 00 00 [11:12:09]Write to MH i2c: E2 08 00 0B 9F 80 11 00 00 00 00 00 00 24 [11:12:09]Write i2c OK [11:12:09]MH_I2C_Read... [11:12:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:12:09]Read from MH i2c: E2 [11:12:09]MH_I2C_Read... [11:12:09]Read from MH i2c: E2 17 00 [11:12:09]MH_I2C_Read... [11:12:09]Read from MH i2c: E2 17 00 0B 9F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 77 [11:12:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [11:12:09]wFMCommunicate OK [11:12:09]CreateOFDProtocolMessage done [11:12:09]OFDSenderStorePacket 103637 [11:12:09]StoreOFDPacket docnum=103637 [11:12:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 63 75 08 01 F4 70 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 13 BD 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 D5 94 01 00 35 04 06 00 FE AB C5 54 E5 2A 63 D2 3A E3 B3 5C 40 F2 [11:12:09]CheckFolder [11:12:09]dirname=/storage/ofd_packets [11:12:09]CheckFolder done [11:12:09]ProducePacketName [11:12:09]name=ofd_packets/00103637 [11:12:09]NVStorageSaveData ofd_packets/00103637 [11:12:09]File name is /storage/ofd_packets/00103637 [11:12:09]Write 302 bytes [11:12:09]NVStorageSaveData done [11:12:09]OFDSenderStorePacket done [11:12:09]KKMCreateOFDPacket done [11:12:09]NVStorageSaveData kkm_last_timestamp [11:12:09]File name is /storage/kkm_last_timestamp [11:12:09]Write 4 bytes [11:12:09]NVStorageSaveData done [11:12:09]ExternCall_PrintAddStr [11:12:09]wPrintStart [11:12:09]Write to MH i2c: 01 00 00 0C 9F AB [11:12:09]Write i2c OK [11:12:09]MH_I2C_Read... [11:12:09]Read from MH i2c: 01 [11:12:09]MH_I2C_Read... [11:12:09]Read from MH i2c: 01 07 00 [11:12:09]MH_I2C_Read... [11:12:09]Read from MH i2c: 01 07 00 0C 9F 00 00 00 00 00 FF 0F C0 [11:12:09]RasterBufferAndPrint [11:12:09]line Счет N : (1)672880 [11:12:09]line ИНН: 02508201610067 [11:12:09]line Контрольно-Кассовый Чек [11:12:09]line ПРОДАЖА [11:12:09]line ТРК (МРК, ГНК) : 11 [11:12:09]line Товар: 2710194210 [11:12:09]line ДТ(л)-К-5 [11:12:09]line 13.720 * 72.90 [11:12:09]line = 1000.19 [11:12:09]line НДС 12% НСП 1% [11:12:09]line > о реализуемом товаре [11:12:09]line ИТОГО: 1000.19 [11:12:09]line НСП 1% : 8.85 [11:12:09]line НДС 12% : 106.21 [11:12:09]line Наличными: 0.00 [11:12:09]line Безнал.: 1000.19 [11:12:09]line Место: АЗС № 120 "Партнер Нефть" [11:12:09]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [11:12:09]line СНО: Общий режим [11:12:09]line Чек 67 19.06.2024 11:12 [11:12:09]line Смена: 353 ФФД: 1.0 [11:12:09]line ЗНМ: 0300000164 [11:12:09]line РНМ: 0000000000092785 [11:12:09]line Версия ККМ: 001 [11:12:09]line Платежная система: O! деньги [11:12:09]line ФМ: 0000000000875093 [11:12:09]line ФД: 103637 [11:12:09]line ФПД: 280013703537962 [11:12:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T111219&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103637&fm=280013703537962&tin=02508201610067®Number=0000000000092785&sum=100019 [11:12:09]OFD Sender: Processing packet 103637 [packets to send 17, broken 16] [11:12:09]ProducePacketName [11:12:09]name=ofd_packets/00103637 [11:12:09]OFD Sender: To server: pG, [11:12:09]CommunicateWithHost lk.salyk.kg:30040 [11:12:09]ConnectInit lk.salyk.kg [11:12:09]written 0, free lines is 4095 [11:12:09]Connected sock=10 [11: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 39 33 10 01 00 00 63 75 08 01 F4 70 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 13 BD 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 D5 94 01 00 35 04 06 00 FE AB C5 54 E5 2A 63 D2 3A E3 B3 5C 40 F2 [11: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 39 33 4F 00 00 00 F2 40 47 00 8D D2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 D5 94 01 00 F4 03 04 00 9C 63 72 66 B6 04 01 00 00 51 32 66 10 C3 AD 11 49 [11:12:10]CommunicateWithHost err = 0 [11:12:10]CheckOFDResponse [11:12:10]1017 (14) - 77093643461234 [11:12:10]1041 (16) - 0000000000875093 [11:12:10]1040 (4) - 103637 [11:12:10]1012 (4) - 19.06.2024 04:50 [11:12:10]1206 (1) - 0 [11:12:10]OFD Sender: Remove packet 103637 [11:12:10]ProducePacketName [11:12:10]name=ofd_packets/00103637 [11:12:10]NVStorageDeleteData [11:12:10]Write to MH i2c: 01 00 00 36 9F D5 [11:12:10]Write i2c OK [11:12:10]MH_I2C_Read... [11:12:10]Read from MH i2c: 01 [11:12:10]MH_I2C_Read... [11:12:10]Read from MH i2c: 01 07 00 [11:12:10]MH_I2C_Read... [11:12:10]Read from MH i2c: 01 07 00 36 9F 00 00 00 00 00 02 0D EB [11:12:10]RasterBufferAndPrint [11:12:10]line [11:12:10]line [11:12:10]line [11:12:10]line [11:12:10]line [11:12:10]written 0, free lines is 3339 [11:12:10]MH_Cut [11:12:10]Write to MH i2c: D1 01 00 3D 9F 01 AE [11:12:10]Write i2c OK [11:12:10]MH_I2C_Read... [11:12:10]Read from MH i2c: D1 [11:12:10]MH_I2C_Read... [11:12:10]Read from MH i2c: D1 01 00 [11:12:10]MH_I2C_Read... [11:12:10]Read from MH i2c: D1 01 00 3D 9F 00 AD [11:12:10]Write to MH i2c: 01 00 00 3E 9F DD [11:12:10]Write i2c OK [11:12:10]MH_I2C_Read... [11:12:10]OFD Sender: No OFD packet to send [11:12:10]*** Cut start [11:12:10]*** Partial cut [11:12:10]*** CUTSNS_PIN = 1 [11:12:11]*** CUTSNS_PIN = 0 [11:12:11]*** Brake cut motor [11:12:11]Read from MH i2c: 01 [11:12:11]MH_I2C_Read... [11:12:11]*** Stop cut motor [11:12:11]*** Cut end [11:12:11]Read from MH i2c: 01 07 00 [11:12:11]MH_I2C_Read... [11:12:11]Read from MH i2c: 01 07 00 3E 9F 00 00 00 00 00 FF 0F F2 [11:12:11]process_action close_receipt done [11:12:11]requested_data is exist [11:12:11]produce_requested_data [11:12:11]requested_item fm.sn is exist - process it [11:12:11]wFMCommunicate request_size=4 [11:12:11]MH_SAM_APDU [11:12:11]CAPDU: 80 11 00 00 [11:12:11]Write to MH i2c: E2 08 00 3F 9F 80 11 00 00 00 00 00 00 58 [11:12:11]Write i2c OK [11:12:11]MH_I2C_Read... [11:12:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:12:11]Read from MH i2c: E2 [11:12:11]MH_I2C_Read... [11:12:11]Read from MH i2c: E2 17 00 [11:12:11]MH_I2C_Read... [11:12:11]Read from MH i2c: E2 17 00 3F 9F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 AB [11:12:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [11:12:11]wFMCommunicate OK [11:12:11]requested_item fd.num is exist - process it [11:12:11]SAM_PROTO_GetFieldsCounters [11:12:11]wFMCommunicate request_size=4 [11:12:11]MH_SAM_APDU [11:12:11]CAPDU: 80 13 00 00 [11:12:11]Write to MH i2c: E2 08 00 40 9F 80 13 00 00 00 00 00 00 5B [11:12:11]Write i2c OK [11:12:11]MH_I2C_Read... [11:12:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:12:11]Read from MH i2c: E2 [11:12:11]MH_I2C_Read... [11:12:11]Read from MH i2c: E2 62 00 [11:12:11]MH_I2C_Read... [11:12:11]Read from MH i2c: E2 62 00 40 9F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 D5 94 01 00 0E 04 04 00 61 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 17 [11: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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 D5 94 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 43 00 00 00 5E 04 04 00 43 00 00 00 57 04 04 00 44 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:12:11]wFMCommunicate OK [11:12:11]SAM_PROTO_GetFieldsCounters done [11:12:11]requested_item shift.num is exist - process it [11:12:11]requested_item shift.opened is exist - process it [11:12:11]req_shift_opened [11:12:11]FM_GetShiftState [11:12:11]SAM_PROTO_GetShiftState [11:12:11]wFMCommunicate request_size=4 [11:12:11]MH_SAM_APDU [11:12:11]CAPDU: 80 13 01 00 [11:12:11]Write to MH i2c: E2 08 00 41 9F 80 13 01 00 00 00 00 00 5D [11:12:11]Write i2c OK [11:12:11]MH_I2C_Read... [11:12:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:12:11]Read from MH i2c: E2 [11:12:11]MH_I2C_Read... [11:12:11]Read from MH i2c: E2 0E 00 [11:12:11]MH_I2C_Read... [11:12:11]Read from MH i2c: E2 0E 00 41 9F 00 09 00 01 04 26 72 66 00 00 00 00 90 00 6B [11:12:11]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [11:12:11]wFMCommunicate OK [11:12:11]SAM_PROTO_GetShiftState done [11:12:11]FM_GetShiftState done [11:12:11]req_shift_opened done [11:12:11]requested_item shift.open_date is exist - process it [11:12:11]req_shift_open_date [11:12:11]req_shift_open_date done [11:12:11]produce_requested_data done [11:12:11]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103637,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [11:12:11]process_action_free close_receipt [11:12:11]json_value_free [11:12:11]json_value_free done [11:12:11]process_json_proto returns [11:12:11]Send response to host [11:12:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103637,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [11:12:11]free response buf [11:12:11]execute_script done [11:12:11]execute_script returns [11:12:11]free content buf [11:12:11]Sock 7.Close socket [11:12:11]Sock 7.Thread stoped [11:12:15]OFD Sender: No OFD packet to send [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:45]OFD Sender: No OFD packet to send [11:12:50]OFD Sender: No OFD packet to send [11:12:55]OFD Sender: No OFD packet to send [11:13:00]OFD Sender: No OFD packet to send [11:13:05]OFD Sender: No OFD packet to send [11:13:10]OFD Sender: No OFD packet to send [11:13:15]OFD Sender: No OFD packet to send [11:13:20]OFD Sender: No OFD packet to send [11:13:25]OFD Sender: No OFD packet to send [11:13:30]OFD Sender: No OFD packet to send [11:13:35]OFD Sender: No OFD packet to send [11:13:40]OFD Sender: No OFD packet to send [11:13:45]OFD Sender: No OFD packet to send [11:13:50]OFD Sender: No OFD packet to send [11:13:55]OFD Sender: No OFD packet to send [11:14:00]OFD Sender: No OFD packet to send [11:14:05]OFD Sender: No OFD packet to send [11:14:10]OFD Sender: No OFD packet to send [11:14:15]OFD Sender: No OFD packet to send [11:14:20]OFD Sender: No OFD packet to send [11:14:25]OFD Sender: No OFD packet to send [11:14:27]accept exits with 9 [11:14:27]New connection [11:14:27]New thread 3067227492 created [11:14:27]Thread 3067084132 joined [11:14:27]Waiting for new connection... [11:14:27] Sock 9.Parse request [11:14:27]Sock 9.Check first char [11:14:27]Sock 9.First char is OK [11:14:27]request: POST /json_proto HTTP/1.0 [11:14:27]Method: POST [11:14:27]URL: /json_proto [11:14:27]Method is POST - this is cgi request [11:14:27]url: /json_proto [11:14:27]query_string will be loaded in cgi processing [11:14:27]execute_cgi json_proto POST (null) [11:14:27]execute_cgi path=json_proto method=POST [11:14:27]POST find Content-Length [11:14:27]Host: 172.17.38.133:8080 [11:14:27]Content-Length: 1205 [11:14:27]Content-Type: application/json [11:14:27] [11:14:27]POST finish read [11:14:27]Found Content-Length = 1205 [11:14:27]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 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. \u000A\u0421\u0447\u0435\u0442 N : (1)672881\u000A19.06.2024 10:51\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 42\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 66.40\u000A\u0418\u0422\u041E\u0413: 1328.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\u000A4104035;4104036\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:14:27]execute_script... [11:14:27]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 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. \u000A\u0421\u0447\u0435\u0442 N : (1)672881\u000A19.06.2024 10:51\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 42\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 66.40\u000A\u0418\u0422\u041E\u0413: 1328.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\u000A4104035;4104036\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:14:27]POST & json_proto [11:14:27]process_json_proto [11:14:27]json parsed OK: [11:14:27]protocol is kg_v1.0 [11:14:27]action value=print_text [11:14:27]process_action print_text [11:14:27]cmd_print_text [11:14:27]ExternCall_PrintAddStr [11:14:27]wPrintStart [11:14:27]Write to MH i2c: 01 00 00 42 9F E1 [11:14:27]Write i2c OK [11:14:27]MH_I2C_Read... [11:14:27]Read from MH i2c: 01 [11:14:27]MH_I2C_Read... [11:14:27]Read from MH i2c: 01 07 00 [11:14:27]MH_I2C_Read... [11:14:27]Read from MH i2c: 01 07 00 42 9F 00 00 00 00 00 FF 0F F6 [11:14:27]RasterBufferAndPrint [11:14:27]line *****ТОВАРНЫЙ ЧЕК***** [11:14:27]line АЗС 120 [11:14:27]line Партнер нефть [11:14:27]line 02508201610067 [11:14:27]line Кассир : Байбугуева Г. [11:14:27]line Счет N : (1)672881 [11:14:27]line 19.06.2024 10:51 [11:14:27]line ПРОДАЖА [11:14:27]line ТРК (МРК, ГНК): 42 [11:14:27]line Вид ГСМ : 2710124130 [11:14:27]line Аи-92-К-5 [11:14:27]line 20.000 x 66.40 [11:14:27]line ИТОГ: 1328.00 [11:14:27]line Тип оплаты: Талоны: Партнер нефть [11:14:27]line 4104035;4104036 [11:14:27]line ______________________ [11:14:27]line (подпись) [11:14:27]written 0, free lines is 4095 [11:14:27]Write to MH i2c: 01 00 00 56 9F F5 [11:14:27]Write i2c OK [11:14:27]MH_I2C_Read... [11:14:27]Read from MH i2c: 01 [11:14:27]MH_I2C_Read... [11:14:27]Read from MH i2c: 01 07 00 [11:14:27]MH_I2C_Read... [11:14:27]Read from MH i2c: 01 07 00 56 9F 00 00 00 00 00 17 0E 21 [11:14:27]RasterBufferAndPrint [11:14:27]line [11:14:27]line [11:14:27]line [11:14:27]line [11:14:27]line [11:14:27]written 0, free lines is 3609 [11:14:27]MH_Cut [11:14:27]Write to MH i2c: D1 01 00 5D 9F 01 CE [11:14:27]Write i2c OK [11:14:27]MH_I2C_Read... [11:14:27]Read from MH i2c: D1 [11:14:27]MH_I2C_Read... [11:14:27]Read from MH i2c: D1 01 00 [11:14:27]MH_I2C_Read... [11:14:27]Read from MH i2c: D1 01 00 5D 9F 00 CD [11:14:27]Write to MH i2c: 01 00 00 5E 9F FD [11:14:27]Write i2c OK [11:14:27]MH_I2C_Read... [11:14:28]*** Cut start [11:14:28]*** Partial cut [11:14:28]*** CUTSNS_PIN = 1 [11:14:28]*** CUTSNS_PIN = 0 [11:14:28]*** Brake cut motor [11:14:28]Read from MH i2c: 01 [11:14:28]MH_I2C_Read... [11:14:28]Read from MH i2c: 01 07 00 [11:14:28]MH_I2C_Read... [11:14:28]*** Stop cut motor [11:14:28]*** Cut end [11:14:28]Read from MH i2c: 01 07 00 5E 9F 00 00 00 00 00 FF 0F 12 [11:14:28]process_action print_text done [11:14:28]requested_data is exist [11:14:28]produce_requested_data [11:14:28]requested_item fm.sn is exist - process it [11:14:28]wFMCommunicate request_size=4 [11:14:28]MH_SAM_APDU [11:14:28]CAPDU: 80 11 00 00 [11:14:28]Write to MH i2c: E2 08 00 5F 9F 80 11 00 00 00 00 00 00 78 [11:14:28]Write i2c OK [11:14:28]MH_I2C_Read... [11:14:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:14:28]Read from MH i2c: E2 [11:14:28]MH_I2C_Read... [11:14:28]Read from MH i2c: E2 17 00 [11:14:28]MH_I2C_Read... [11:14:28]Read from MH i2c: E2 17 00 5F 9F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 CB [11:14:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [11:14:28]wFMCommunicate OK [11:14:28]requested_item fd.num is exist - process it [11:14:28]SAM_PROTO_GetFieldsCounters [11:14:28]wFMCommunicate request_size=4 [11:14:28]MH_SAM_APDU [11:14:28]CAPDU: 80 13 00 00 [11:14:28]Write to MH i2c: E2 08 00 60 9F 80 13 00 00 00 00 00 00 7B [11:14:28]Write i2c OK [11:14:28]MH_I2C_Read... [11:14:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:14:29]Read from MH i2c: E2 [11:14:29]MH_I2C_Read... [11:14:29]Read from MH i2c: E2 62 00 [11:14:29]MH_I2C_Read... [11:14:29]Read from MH i2c: E2 62 00 60 9F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 D5 94 01 00 0E 04 04 00 61 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 37 [11:14: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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 D5 94 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 43 00 00 00 5E 04 04 00 43 00 00 00 57 04 04 00 44 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:14:29]wFMCommunicate OK [11:14:29]SAM_PROTO_GetFieldsCounters done [11:14:29]requested_item shift.num is exist - process it [11:14:29]requested_item shift.opened is exist - process it [11:14:29]req_shift_opened [11:14:29]FM_GetShiftState [11:14:29]SAM_PROTO_GetShiftState [11:14:29]wFMCommunicate request_size=4 [11:14:29]MH_SAM_APDU [11:14:29]CAPDU: 80 13 01 00 [11:14:29]Write to MH i2c: E2 08 00 61 9F 80 13 01 00 00 00 00 00 7D [11:14:29]Write i2c OK [11:14:29]MH_I2C_Read... [11:14:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:14:29]Read from MH i2c: E2 [11:14:29]MH_I2C_Read... [11:14:29]Read from MH i2c: E2 0E 00 [11:14:29]MH_I2C_Read... [11:14:29]Read from MH i2c: E2 0E 00 61 9F 00 09 00 01 04 26 72 66 00 00 00 00 90 00 8B [11:14:29]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [11:14:29]wFMCommunicate OK [11:14:29]SAM_PROTO_GetShiftState done [11:14:29]FM_GetShiftState done [11:14:29]req_shift_opened done [11:14:29]requested_item shift.open_date is exist - process it [11:14:29]req_shift_open_date [11:14:29]req_shift_open_date done [11:14:29]produce_requested_data done [11:14:29]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103637,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [11:14:29]process_action_free print_text [11:14:29]json_value_free [11:14:29]json_value_free done [11:14:29]process_json_proto returns [11:14:29]Send response to host [11:14:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103637,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [11:14:29]free response buf [11:14:29]execute_script done [11:14:29]execute_script returns [11:14:29]free content buf [11:14:29]Sock 9.Close socket [11:14:29]Sock 9.Thread stoped [11:14:30]OFD Sender: No OFD packet to send [11:14:35]OFD Sender: No OFD packet to send [11:14:40]OFD Sender: No OFD packet to send [11:14:45]OFD Sender: No OFD packet to send [11:14:50]OFD Sender: No OFD packet to send [11:14:55]OFD Sender: No OFD packet to send [11:15:00]OFD Sender: No OFD packet to send [11:15:05]OFD Sender: No OFD packet to send [11:15:05]accept exits with 7 [11:15:05]New connection [11:15:05]New thread 3067084132 created [11:15:05]Thread 3067227492 joined [11:15:05]Waiting for new connection... [11:15:05] Sock 7.Parse request [11:15:05]Sock 7.Check first char [11:15:05]Sock 7.First char is OK [11:15:05]request: POST /json_proto HTTP/1.0 [11:15:05]Method: POST [11:15:05]URL: /json_proto [11:15:05]Method is POST - this is cgi request [11:15:05]url: /json_proto [11:15:05]query_string will be loaded in cgi processing [11:15:05]execute_cgi json_proto POST (null) [11:15:05]execute_cgi path=json_proto method=POST [11:15:05]POST find Content-Length [11:15:05]Host: 172.17.38.133:8080 [11:15:05]Content-Length: 800 [11:15:05]Content-Type: application/json [11:15:05] [11:15:05]POST finish read [11:15:05]Found Content-Length = 800 [11:15:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672882", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.66 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:15:05]execute_script... [11:15: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)672882", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.66 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:15:05]POST & json_proto [11:15:05]process_json_proto [11:15:05]json parsed OK: [11:15:05]protocol is kg_v1.0 [11:15:05]action value=close_receipt [11:15:05]process_action close_receipt [11:15:05]cmd_close_receipt [11:15:05]MH_GetDate [11:15:05]Write to MH i2c: F0 00 00 62 9F F0 [11:15:05]Write i2c OK [11:15:05]MH_I2C_Read... [11:15:05]Read from MH i2c: F0 [11:15:05]MH_I2C_Read... [11:15:05]Read from MH i2c: F0 09 00 [11:15:05]MH_I2C_Read... [11:15:05]Read from MH i2c: F0 09 00 62 9F 00 C5 BD 72 66 BD 8F 7C 64 7F [11:15:05]GetLastDocTimeStamp 1718795539 [11:15:05]current date 1718795717 [11:15:05]FM_GetShiftState [11:15:05]SAM_PROTO_GetShiftState [11:15:05]wFMCommunicate request_size=4 [11:15:05]MH_SAM_APDU [11:15:05]CAPDU: 80 13 01 00 [11:15:05]Write to MH i2c: E2 08 00 63 9F 80 13 01 00 00 00 00 00 7F [11:15:05]Write i2c OK [11:15:05]MH_I2C_Read... [11:15:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:15:06]Read from MH i2c: E2 [11:15:06]MH_I2C_Read... [11:15:06]Read from MH i2c: E2 0E 00 [11:15:06]MH_I2C_Read... [11:15:06]Read from MH i2c: E2 0E 00 63 9F 00 09 00 01 04 26 72 66 00 00 00 00 90 00 8D [11:15:06]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [11:15:06]wFMCommunicate OK [11:15:06]SAM_PROTO_GetShiftState done [11:15:06]FM_GetShiftState done [11:15:06]opened in 1718756868 [11:15:06]opened+sec_in_day 1718843268 [11:15:06]quantity*price = 50065 [11:15:06]sum+1 = 50067 [11:15:06]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.66 НСП 1% : 4.43 НДС 12% : 53.17 Наличными: 0.00 Безнал.: 500.66 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 68 19.06.2024 11:15 Смена: 353 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000875093 ФД: 103638 ФПД: 157734866632950 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T111518&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103638&fm=157734866632950&tin=02508201610067®Number=0000000000092785&sum=50066 [11:15:07]StoreToDocumentArchive [11:15:07]shift 353 fd 103638 [11:15:07]save to /storage/0353/doc_00103638 [11:15:07]save last doc name /storage/0353/doc_00103638 to /storage/kkm_last_doc_name [11:15:07]save OK [11:15:07]Clear old archive folders... [11:15:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:15:07]tlvbuf is 014B26D0 [11:15:07]SAM_PROTO_ClearQueue [11:15:07]wFMCommunicate request_size=4 [11:15:07]MH_SAM_APDU [11:15:07]CAPDU: 80 09 00 00 [11:15:07]Write to MH i2c: E2 08 00 70 9F 80 09 00 00 00 00 00 00 81 [11:15:07]Write i2c OK [11:15:07]MH_I2C_Read... [11:15:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:15:07]Read from MH i2c: E2 [11:15:07]MH_I2C_Read... [11:15:07]Read from MH i2c: E2 03 00 [11:15:07]MH_I2C_Read... [11:15:07]Read from MH i2c: E2 03 00 70 9F 00 90 00 83 [11:15:07]RAPDU: 90 00 [11:15:07]wFMCommunicate OK [11:15:07]SAM_PROTO_ClearQueue done [11:15:07]KKMCreateOFDPacket [11:15:07]OFDProtocolAddRootSTLVToBuf [11:15:07]FM_MakeSignedData [11:15:07]FM_MakeSignedData [11:15:07]SAM_PROTO_SignData [11:15:07]wFMCommunicate request_size=4 [11:15:07]MH_SAM_APDU [11:15:07]CAPDU: 80 0D 01 02 [11:15:07]Write to MH i2c: E2 08 00 71 9F 80 0D 01 02 00 00 00 00 89 [11:15:07]Write i2c OK [11:15:07]MH_I2C_Read... [11:15:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:15:07]Read from MH i2c: E2 [11:15:07]MH_I2C_Read... [11:15:07]Read from MH i2c: E2 03 00 [11:15:07]MH_I2C_Read... [11:15:07]Read from MH i2c: E2 03 00 71 9F 00 90 00 84 [11:15:07]RAPDU: 90 00 [11:15:07]wFMCommunicate OK [11:15:07]wFMCommunicate request_size=255 [11:15:07]MH_SAM_APDU [11:15:07]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 92 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 92 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 C6 BD 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 D6 94 01 00 35 04 06 00 8F [11:15:07]Write to MH i2c: E2 02 01 72 9F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 92 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 92 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 C6 BD 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 D6 94 01 00 35 04 06 00 8F 00 00 C2 [11:15:07]Write i2c OK [11:15:07]MH_I2C_Read... [11:15:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:15:07]Read from MH i2c: E2 [11:15:07]MH_I2C_Read... [11:15:07]Read from MH i2c: E2 03 00 [11:15:07]MH_I2C_Read... [11:15:07]Read from MH i2c: E2 03 00 72 9F 00 90 00 85 [11:15:07]RAPDU: 90 00 [11:15:07]wFMCommunicate OK [11:15:07]wFMCommunicate request_size=10 [11:15:07]MH_SAM_APDU [11:15:07]CAPDU: 80 0D 02 02 05 75 82 B1 C0 F6 [11:15:07]Write to MH i2c: E2 0D 00 73 9F 80 0D 02 02 05 00 75 82 B1 C0 F6 00 00 F4 [11:15:07]Write i2c OK [11:15:07]MH_I2C_Read... [11:15:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:15:07]Read from MH i2c: E2 [11:15:07]MH_I2C_Read... [11:15:07]Read from MH i2c: E2 03 00 [11:15:07]MH_I2C_Read... [11:15:07]Read from MH i2c: E2 03 00 73 9F 00 90 00 86 [11:15:07]RAPDU: 90 00 [11:15:07]wFMCommunicate OK [11:15:07]wFMCommunicate request_size=4 [11:15:07]MH_SAM_APDU [11:15:07]CAPDU: 80 0D 03 02 [11:15:07]Write to MH i2c: E2 08 00 74 9F 80 0D 03 02 00 00 00 00 8E [11:15:07]Write i2c OK [11:15:07]MH_I2C_Read... [11:15:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:15:07]Read from MH i2c: E2 [11:15:07]MH_I2C_Read... [11:15:07]Read from MH i2c: E2 0B 00 [11:15:07]MH_I2C_Read... [11:15:07]Read from MH i2c: E2 0B 00 74 9F 00 F5 7E B5 67 EE EC 9C AC 90 00 40 [11:15:07]RAPDU: F5 7E B5 67 EE EC 9C AC 90 00 [11:15:07]wFMCommunicate OK [11:15:07]SAM_PROTO_SignData done [11:15:07]FM_MakeSignedData done [11:15:07]CreateOFDProtocolMessage [11:15:07]wFMCommunicate request_size=4 [11:15:07]MH_SAM_APDU [11:15:07]CAPDU: 80 11 00 00 [11:15:07]Write to MH i2c: E2 08 00 75 9F 80 11 00 00 00 00 00 00 8E [11:15:07]Write i2c OK [11:15:07]MH_I2C_Read... [11:15:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:15:07]Read from MH i2c: E2 [11:15:07]MH_I2C_Read... [11:15:07]Read from MH i2c: E2 17 00 [11:15:07]MH_I2C_Read... [11:15:07]Read from MH i2c: E2 17 00 75 9F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 E1 [11:15:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [11:15:07]wFMCommunicate OK [11:15:07]CreateOFDProtocolMessage done [11:15:07]OFDSenderStorePacket 103638 [11:15:07]StoreOFDPacket docnum=103638 [11:15:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 C2 29 07 01 70 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 92 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 92 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 C6 BD 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 D6 94 01 00 35 04 06 00 8F 75 82 B1 C0 F6 F5 7E B5 67 EE EC 9C AC [11:15:07]CheckFolder [11:15:07]dirname=/storage/ofd_packets [11:15:07]CheckFolder done [11:15:07]ProducePacketName [11:15:07]name=ofd_packets/00103638 [11:15:07]NVStorageSaveData ofd_packets/00103638 [11:15:07]File name is /storage/ofd_packets/00103638 [11:15:07]Write 301 bytes [11:15:07]NVStorageSaveData done [11:15:07]OFDSenderStorePacket done [11:15:07]KKMCreateOFDPacket done [11:15:07]NVStorageSaveData kkm_last_timestamp [11:15:07]File name is /storage/kkm_last_timestamp [11:15:07]Write 4 bytes [11:15:07]NVStorageSaveData done [11:15:07]ExternCall_PrintAddStr [11:15:07]wPrintStart [11:15:07]Write to MH i2c: 01 00 00 76 9F 15 [11:15:07]Write i2c OK [11:15:07]MH_I2C_Read... [11:15:07]Read from MH i2c: 01 [11:15:07]MH_I2C_Read... [11:15:07]Read from MH i2c: 01 07 00 [11:15:07]MH_I2C_Read... [11:15:07]Read from MH i2c: 01 07 00 76 9F 00 00 00 00 00 FF 0F 2A [11:15:07]RasterBufferAndPrint [11:15:07]line Счет N : (1)672882 [11:15:07]line ИНН: 02508201610067 [11:15:07]line Контрольно-Кассовый Чек [11:15:07]line ПРОДАЖА [11:15:07]line ТРК (МРК, ГНК) : 32 [11:15:07]line Товар: 2710124130 [11:15:07]line Аи-92-К-5 [11:15:07]line 7.540 * 66.40 [11:15:07]line = 500.66 [11:15:07]line НДС 12% НСП 1% [11:15:07]line > о реализуемом товаре [11:15:07]line ИТОГО: 500.66 [11:15:07]line НСП 1% : 4.43 [11:15:07]line НДС 12% : 53.17 [11:15:07]line Наличными: 0.00 [11:15:07]line Безнал.: 500.66 [11:15:07]line Место: АЗС № 120 "Партнер Нефть" [11:15:07]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [11:15:07]line СНО: Общий режим [11:15:07]line Чек 68 19.06.2024 11:15 [11:15:07]line Смена: 353 ФФД: 1.0 [11:15:07]line ЗНМ: 0300000164 [11:15:07]line РНМ: 0000000000092785 [11:15:07]line Версия ККМ: 001 [11:15:07]line Платежная система: O! деньги [11:15:07]line ФМ: 0000000000875093 [11:15:07]line ФД: 103638 [11:15:07]line ФПД: 157734866632950 [11:15:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T111518&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103638&fm=157734866632950&tin=02508201610067®Number=0000000000092785&sum=50066 [11:15:08]OFD Sender: Processing packet 103638 [packets to send 17, broken 16] [11:15:08]ProducePacketName [11:15:08]name=ofd_packets/00103638 [11:15:08]OFD Sender: To server: pG, [11:15:08]CommunicateWithHost lk.salyk.kg:30040 [11:15:08]ConnectInit lk.salyk.kg [11:15:08]written 0, free lines is 4095 [11:15:08]Connected sock=10 [11:15: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 39 33 0F 01 00 00 C2 29 07 01 70 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 92 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 92 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 C6 BD 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 D6 94 01 00 35 04 06 00 8F 75 82 B1 C0 F6 F5 7E B5 67 EE EC 9C AC [11:15: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 39 33 4F 00 00 00 9B D0 47 00 0F F1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 D6 94 01 00 F4 03 04 00 4F 64 72 66 B6 04 01 00 00 76 C2 3D 4D 70 47 C3 09 [11:15:08]CommunicateWithHost err = 0 [11:15:08]CheckOFDResponse [11:15:08]1017 (14) - 77093643461234 [11:15:08]1041 (16) - 0000000000875093 [11:15:08]1040 (4) - 103638 [11:15:08]1012 (4) - 19.06.2024 04:53 [11:15:08]1206 (1) - 0 [11:15:08]OFD Sender: Remove packet 103638 [11:15:08]ProducePacketName [11:15:08]name=ofd_packets/00103638 [11:15:08]NVStorageDeleteData [11:15:08]Write to MH i2c: 01 00 00 A0 9F 3F [11:15:08]Write i2c OK [11:15:08]MH_I2C_Read... [11:15:08]Read from MH i2c: 01 [11:15:08]MH_I2C_Read... [11:15:08]Read from MH i2c: 01 07 00 [11:15:08]MH_I2C_Read... [11:15:08]Read from MH i2c: 01 07 00 A0 9F 00 00 00 00 00 F9 0C 4B [11:15:08]RasterBufferAndPrint [11:15:08]line [11:15:08]line [11:15:08]line [11:15:08]line [11:15:08]line [11:15:08]written 0, free lines is 3327 [11:15:08]MH_Cut [11:15:08]Write to MH i2c: D1 01 00 A7 9F 01 18 [11:15:08]Write i2c OK [11:15:08]MH_I2C_Read... [11:15:08]Read from MH i2c: D1 [11:15:08]MH_I2C_Read... [11:15:08]Read from MH i2c: D1 01 00 [11:15:08]MH_I2C_Read... [11:15:08]Read from MH i2c: D1 01 00 A7 9F 00 17 [11:15:08]Write to MH i2c: 01 00 00 A8 9F 47 [11:15:08]Write i2c OK [11:15:08]MH_I2C_Read... [11:15:08]OFD Sender: No OFD packet to send [11:15:09]*** Cut start [11:15:09]*** Partial cut [11:15:09]*** CUTSNS_PIN = 1 [11:15:09]*** CUTSNS_PIN = 0 [11:15:09]*** Brake cut motor [11:15:09]Read from MH i2c: 01 [11:15:09]MH_I2C_Read... [11:15:09]*** Stop cut motor [11:15:09]*** Cut end [11:15:09]Read from MH i2c: 01 07 00 [11:15:09]MH_I2C_Read... [11:15:09]Read from MH i2c: 01 07 00 A8 9F 00 00 00 00 00 FF 0F 5C [11:15:09]process_action close_receipt done [11:15:09]requested_data is exist [11:15:09]produce_requested_data [11:15:09]requested_item fm.sn is exist - process it [11:15:09]wFMCommunicate request_size=4 [11:15:09]MH_SAM_APDU [11:15:09]CAPDU: 80 11 00 00 [11:15:09]Write to MH i2c: E2 08 00 A9 9F 80 11 00 00 00 00 00 00 C2 [11:15:09]Write i2c OK [11:15:09]MH_I2C_Read... [11:15:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:15:09]Read from MH i2c: E2 [11:15:09]MH_I2C_Read... [11:15:09]Read from MH i2c: E2 17 00 [11:15:09]MH_I2C_Read... [11:15:09]Read from MH i2c: E2 17 00 A9 9F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 15 [11:15:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [11:15:09]wFMCommunicate OK [11:15:09]requested_item fd.num is exist - process it [11:15:09]SAM_PROTO_GetFieldsCounters [11:15:09]wFMCommunicate request_size=4 [11:15:09]MH_SAM_APDU [11:15:09]CAPDU: 80 13 00 00 [11:15:09]Write to MH i2c: E2 08 00 AA 9F 80 13 00 00 00 00 00 00 C5 [11:15:09]Write i2c OK [11:15:09]MH_I2C_Read... [11:15:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:15:10]Read from MH i2c: E2 [11:15:10]MH_I2C_Read... [11:15:10]Read from MH i2c: E2 62 00 [11:15:10]MH_I2C_Read... [11:15:10]Read from MH i2c: E2 62 00 AA 9F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 D6 94 01 00 0E 04 04 00 61 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 85 [11:15: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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 D6 94 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 44 00 00 00 5E 04 04 00 44 00 00 00 57 04 04 00 45 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:15:10]wFMCommunicate OK [11:15:10]SAM_PROTO_GetFieldsCounters done [11:15:10]requested_item shift.num is exist - process it [11:15:10]requested_item shift.opened is exist - process it [11:15:10]req_shift_opened [11:15:10]FM_GetShiftState [11:15:10]SAM_PROTO_GetShiftState [11:15:10]wFMCommunicate request_size=4 [11:15:10]MH_SAM_APDU [11:15:10]CAPDU: 80 13 01 00 [11:15:10]Write to MH i2c: E2 08 00 AB 9F 80 13 01 00 00 00 00 00 C7 [11:15:10]Write i2c OK [11:15:10]MH_I2C_Read... [11:15:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:15:10]Read from MH i2c: E2 [11:15:10]MH_I2C_Read... [11:15:10]Read from MH i2c: E2 0E 00 [11:15:10]MH_I2C_Read... [11:15:10]Read from MH i2c: E2 0E 00 AB 9F 00 09 00 01 04 26 72 66 00 00 00 00 90 00 D5 [11:15:10]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [11:15:10]wFMCommunicate OK [11:15:10]SAM_PROTO_GetShiftState done [11:15:10]FM_GetShiftState done [11:15:10]req_shift_opened done [11:15:10]requested_item shift.open_date is exist - process it [11:15:10]req_shift_open_date [11:15:10]req_shift_open_date done [11:15:10]produce_requested_data done [11:15:10]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103638,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [11:15:10]process_action_free close_receipt [11:15:10]json_value_free [11:15:10]json_value_free done [11:15:10]process_json_proto returns [11:15:10]Send response to host [11:15:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103638,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [11:15:10]free response buf [11:15:10]execute_script done [11:15:10]execute_script returns [11:15:10]free content buf [11:15:10]Sock 7.Close socket [11:15:10]Sock 7.Thread stoped [11:15:13]OFD Sender: No OFD packet to send [11:15:18]OFD Sender: No OFD packet to send [11:15:23]OFD Sender: No OFD packet to send [11:15:28]OFD Sender: No OFD packet to send [11:15:33]OFD Sender: No OFD packet to send [11:15:38]OFD Sender: No OFD packet to send [11:15:43]OFD Sender: No OFD packet to send [11:15:48]OFD Sender: No OFD packet to send [11:15:53]OFD Sender: No OFD packet to send [11:15:58]OFD Sender: No OFD packet to send [11:16:03]OFD Sender: No OFD packet to send [11:16:08]OFD Sender: No OFD packet to send [11:16:14]OFD Sender: No OFD packet to send [11:16:19]OFD Sender: No OFD packet to send [11:16:24]OFD Sender: No OFD packet to send [11:16:29]OFD Sender: No OFD packet to send [11:16:34]OFD Sender: No OFD packet to send [11:16:39]OFD Sender: No OFD packet to send [11:16:44]OFD Sender: No OFD packet to send [11:16:49]OFD Sender: No OFD packet to send [11:16:54]OFD Sender: No OFD packet to send [11:16:59]OFD Sender: No OFD packet to send [11:17:04]OFD Sender: No OFD packet to send [11:17:09]OFD Sender: No OFD packet to send [11:17:14]OFD Sender: No OFD packet to send [11:17:19]OFD Sender: No OFD packet to send [11:17:24]OFD Sender: No OFD packet to send [11:17:29]OFD Sender: No OFD packet to send [11:17:34]OFD Sender: No OFD packet to send [11:17:39]OFD Sender: No OFD packet to send [11:17:44]OFD Sender: No OFD packet to send [11:17:49]OFD Sender: No OFD packet to send [11:17:54]OFD Sender: No OFD packet to send [11:17:59]OFD Sender: No OFD packet to send [11:18:04]OFD Sender: No OFD packet to send [11:18:09]OFD Sender: No OFD packet to send [11:18:14]OFD Sender: No OFD packet to send [11:18:19]OFD Sender: No OFD packet to send [11:18:24]OFD Sender: No OFD packet to send [11:18:29]OFD Sender: No OFD packet to send [11:18:34]OFD Sender: No OFD packet to send [11:18:39]OFD Sender: No OFD packet to send [11:18:44]OFD Sender: No OFD packet to send [11:18:49]OFD Sender: No OFD packet to send [11:18:54]OFD Sender: No OFD packet to send [11:18:59]OFD Sender: No OFD packet to send [11:19:04]OFD Sender: No OFD packet to send [11:19:09]OFD Sender: No OFD packet to send [11:19:14]OFD Sender: No OFD packet to send [11:19:19]OFD Sender: No OFD packet to send [11:19:24]OFD Sender: No OFD packet to send [11:19:29]OFD Sender: No OFD packet to send [11:19:34]OFD Sender: No OFD packet to send [11:19:39]OFD Sender: No OFD packet to send [11:19:44]OFD Sender: No OFD packet to send [11:19:49]OFD Sender: No OFD packet to send [11:19:54]OFD Sender: No OFD packet to send [11:19:59]OFD Sender: No OFD packet to send [11:20:04]OFD Sender: No OFD packet to send [11:20:09]OFD Sender: No OFD packet to send [11:20:14]OFD Sender: No OFD packet to send [11:20:19]OFD Sender: No OFD packet to send [11:20:24]OFD Sender: No OFD packet to send [11:20:29]OFD Sender: No OFD packet to send [11:20:34]OFD Sender: No OFD packet to send [11:20:39]OFD Sender: No OFD packet to send [11:20:44]OFD Sender: No OFD packet to send [11:20:49]OFD Sender: No OFD packet to send [11:20:54]OFD Sender: No OFD packet to send [11:20:59]OFD Sender: No OFD packet to send [11:21:04]OFD Sender: No OFD packet to send [11:21:09]OFD Sender: No OFD packet to send [11:21:14]OFD Sender: No OFD packet to send [11:21:19]OFD Sender: No OFD packet to send [11:21:24]OFD Sender: No OFD packet to send [11:21:29]OFD Sender: No OFD packet to send [11:21:34]OFD Sender: No OFD packet to send [11:21:39]OFD Sender: No OFD packet to send [11:21:44]OFD Sender: No OFD packet to send [11:21:49]OFD Sender: No OFD packet to send [11:21:54]OFD Sender: No OFD packet to send [11:21:59]OFD Sender: No OFD packet to send [11:22:04]OFD Sender: No OFD packet to send [11:22:09]OFD Sender: No OFD packet to send [11:22:14]OFD Sender: No OFD packet to send [11:22:19]OFD Sender: No OFD packet to send [11:22:24]OFD Sender: No OFD packet to send [11:22:29]OFD Sender: No OFD packet to send [11:22:34]OFD Sender: No OFD packet to send [11:22:39]OFD Sender: No OFD packet to send [11:22:44]OFD Sender: No OFD packet to send [11:22:49]OFD Sender: No OFD packet to send [11:22:54]OFD Sender: No OFD packet to send [11:22:59]OFD Sender: No OFD packet to send [11:23:04]OFD Sender: No OFD packet to send [11:23:09]OFD Sender: No OFD packet to send [11:23:14]OFD Sender: No OFD packet to send [11:23:19]OFD Sender: No OFD packet to send [11:23:24]OFD Sender: No OFD packet to send [11:23:29]OFD Sender: No OFD packet to send [11:23:34]OFD Sender: No OFD packet to send [11:23:39]OFD Sender: No OFD packet to send [11:23:44]OFD Sender: No OFD packet to send [11:23:49]OFD Sender: No OFD packet to send [11:23:54]OFD Sender: No OFD packet to send [11:23:59]OFD Sender: No OFD packet to send [11:24:04]OFD Sender: No OFD packet to send [11:24:09]OFD Sender: No OFD packet to send [11:24:14]OFD Sender: No OFD packet to send [11:24:19]OFD Sender: No OFD packet to send [11:24:24]OFD Sender: No OFD packet to send [11:24:29]OFD Sender: No OFD packet to send [11:24:34]OFD Sender: No OFD packet to send [11:24:39]OFD Sender: No OFD packet to send [11:24:44]OFD Sender: No OFD packet to send [11:24:49]accept exits with 9 [11:24:49]New connection [11:24:49]New thread 3067227492 created [11:24:49]Thread 3067084132 joined [11:24:49]Waiting for new connection... [11:24:49] Sock 9.Parse request [11:24:49]Sock 9.Check first char [11:24:49]Sock 9.First char is OK [11:24:49]request: POST /json_proto HTTP/1.0 [11:24:49]Method: POST [11:24:49]URL: /json_proto [11:24:49]Method is POST - this is cgi request [11:24:49]url: /json_proto [11:24:49]query_string will be loaded in cgi processing [11:24:49]execute_cgi json_proto POST (null) [11:24:49]execute_cgi path=json_proto method=POST [11:24:49]POST find Content-Length [11:24:49]Host: 172.17.38.133:8080 [11:24:49]Content-Length: 682 [11:24:49]Content-Type: application/json [11:24:49] [11:24:49]POST finish read [11:24:49]Found Content-Length = 682 [11:24:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672883", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 30.130, "sum" : 2000.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:24:49]execute_script... [11:24: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)672883", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 30.130, "sum" : 2000.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:24:49]POST & json_proto [11:24:49]process_json_proto [11:24:49]json parsed OK: [11:24:49]protocol is kg_v1.0 [11:24:49]action value=close_receipt [11:24:49]process_action close_receipt [11:24:49]cmd_close_receipt [11:24:49]MH_GetDate [11:24:49]Write to MH i2c: F0 00 00 AC 9F 3A [11:24:49]Write i2c OK [11:24:49]MH_I2C_Read... [11:24:49]Read from MH i2c: F0 [11:24:49]MH_I2C_Read... [11:24:49]Read from MH i2c: F0 09 00 [11:24:49]MH_I2C_Read... [11:24:49]Read from MH i2c: F0 09 00 AC 9F 00 0D C0 72 66 BD 8F 7C 64 14 [11:24:49]GetLastDocTimeStamp 1718795718 [11:24:49]current date 1718796301 [11:24:49]FM_GetShiftState [11:24:49]SAM_PROTO_GetShiftState [11:24:49]wFMCommunicate request_size=4 [11:24:49]MH_SAM_APDU [11:24:49]CAPDU: 80 13 01 00 [11:24:49]Write to MH i2c: E2 08 00 AD 9F 80 13 01 00 00 00 00 00 C9 [11:24:49]Write i2c OK [11:24:49]MH_I2C_Read... [11:24:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:24:49]Read from MH i2c: E2 [11:24:49]MH_I2C_Read... [11:24:49]Read from MH i2c: E2 0E 00 [11:24:49]MH_I2C_Read... [11:24:49]Read from MH i2c: E2 0E 00 AD 9F 00 09 00 01 04 26 72 66 00 00 00 00 90 00 D7 [11:24:49]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [11:24:49]wFMCommunicate OK [11:24:49]SAM_PROTO_GetShiftState done [11:24:49]FM_GetShiftState done [11:24:49]opened in 1718756868 [11:24:49]opened+sec_in_day 1718843268 [11:24:49]quantity*price = 200063 [11:24:49]sum+1 = 200064 [11:24:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.46 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 69 19.06.2024 11:25 Смена: 353 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103639 ФПД: 170076822689974 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T112501&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103639&fm=170076822689974&tin=02508201610067®Number=0000000000092785&sum=200000 [11:24:50]StoreToDocumentArchive [11:24:50]shift 353 fd 103639 [11:24:50]save to /storage/0353/doc_00103639 [11:24:50]save last doc name /storage/0353/doc_00103639 to /storage/kkm_last_doc_name [11:24:50]save OK [11:24:50]Clear old archive folders... [11:24:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:24:50]tlvbuf is 014E81F0 [11:24:50]SAM_PROTO_ClearQueue [11:24:50]wFMCommunicate request_size=4 [11:24:50]MH_SAM_APDU [11:24:50]CAPDU: 80 09 00 00 [11:24:50]Write to MH i2c: E2 08 00 BA 9F 80 09 00 00 00 00 00 00 CB [11:24:50]Write i2c OK [11:24:50]MH_I2C_Read... [11:24:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:24:50]Read from MH i2c: E2 [11:24:50]MH_I2C_Read... [11:24:50]Read from MH i2c: E2 03 00 [11:24:50]MH_I2C_Read... [11:24:50]Read from MH i2c: E2 03 00 BA 9F 00 90 00 CD [11:24:50]RAPDU: 90 00 [11:24:50]wFMCommunicate OK [11:24:50]SAM_PROTO_ClearQueue done [11:24:50]KKMCreateOFDPacket [11:24:50]OFDProtocolAddRootSTLVToBuf [11:24:50]FM_MakeSignedData [11:24:50]FM_MakeSignedData [11:24:50]SAM_PROTO_SignData [11:24:50]wFMCommunicate request_size=4 [11:24:50]MH_SAM_APDU [11:24:50]CAPDU: 80 0D 01 02 [11:24:50]Write to MH i2c: E2 08 00 BB 9F 80 0D 01 02 00 00 00 00 D3 [11:24:50]Write i2c OK [11:24:50]MH_I2C_Read... [11:24:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:24:50]Read from MH i2c: E2 [11:24:50]MH_I2C_Read... [11:24:50]Read from MH i2c: E2 03 00 [11:24:50]MH_I2C_Read... [11:24:50]Read from MH i2c: E2 03 00 BB 9F 00 90 00 CE [11:24:50]RAPDU: 90 00 [11:24:50]wFMCommunicate OK [11:24:50]wFMCommunicate request_size=255 [11:24:50]MH_SAM_APDU [11:24: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 B2 75 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FE 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 0D C0 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 D7 94 01 00 35 04 06 00 9A [11:24:50]Write to MH i2c: E2 02 01 BC 9F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B2 75 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FE 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 0D C0 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 D7 94 01 00 35 04 06 00 9A 00 00 D4 [11:24:50]Write i2c OK [11:24:50]MH_I2C_Read... [11:24:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:24:50]Read from MH i2c: E2 [11:24:50]MH_I2C_Read... [11:24:50]Read from MH i2c: E2 03 00 [11:24:50]MH_I2C_Read... [11:24:50]Read from MH i2c: E2 03 00 BC 9F 00 90 00 CF [11:24:50]RAPDU: 90 00 [11:24:50]wFMCommunicate OK [11:24:50]wFMCommunicate request_size=10 [11:24:50]MH_SAM_APDU [11:24:50]CAPDU: 80 0D 02 02 05 AF 18 99 D8 B6 [11:24:50]Write to MH i2c: E2 0D 00 BD 9F 80 0D 02 02 05 00 AF 18 99 D8 B6 00 00 CE [11:24:50]Write i2c OK [11:24:50]MH_I2C_Read... [11:24:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:24:50]Read from MH i2c: E2 [11:24:50]MH_I2C_Read... [11:24:50]Read from MH i2c: E2 03 00 [11:24:50]MH_I2C_Read... [11:24:50]Read from MH i2c: E2 03 00 BD 9F 00 90 00 D0 [11:24:50]RAPDU: 90 00 [11:24:50]wFMCommunicate OK [11:24:50]wFMCommunicate request_size=4 [11:24:50]MH_SAM_APDU [11:24:50]CAPDU: 80 0D 03 02 [11:24:50]Write to MH i2c: E2 08 00 BE 9F 80 0D 03 02 00 00 00 00 D8 [11:24:50]Write i2c OK [11:24:50]MH_I2C_Read... [11:24:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:24:50]Read from MH i2c: E2 [11:24:50]MH_I2C_Read... [11:24:50]Read from MH i2c: E2 0B 00 [11:24:50]MH_I2C_Read... [11:24:50]Read from MH i2c: E2 0B 00 BE 9F 00 99 56 9D 39 90 55 5C 00 90 00 DF [11:24:50]RAPDU: 99 56 9D 39 90 55 5C 00 90 00 [11:24:50]wFMCommunicate OK [11:24:50]SAM_PROTO_SignData done [11:24:50]FM_MakeSignedData done [11:24:50]CreateOFDProtocolMessage [11:24:50]wFMCommunicate request_size=4 [11:24:50]MH_SAM_APDU [11:24:50]CAPDU: 80 11 00 00 [11:24:50]Write to MH i2c: E2 08 00 BF 9F 80 11 00 00 00 00 00 00 D8 [11:24:50]Write i2c OK [11:24:50]MH_I2C_Read... [11:24:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:24:50]Read from MH i2c: E2 [11:24:50]MH_I2C_Read... [11:24:50]Read from MH i2c: E2 17 00 [11:24:50]MH_I2C_Read... [11:24:50]Read from MH i2c: E2 17 00 BF 9F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 2B [11:24:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [11:24:50]wFMCommunicate OK [11:24:50]CreateOFDProtocolMessage done [11:24:50]OFDSenderStorePacket 103639 [11:24:50]StoreOFDPacket docnum=103639 [11:24:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 FB 51 07 01 2B 3C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B2 75 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FE 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 0D C0 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 D7 94 01 00 35 04 06 00 9A AF 18 99 D8 B6 99 56 9D 39 90 55 5C 00 [11:24:50]CheckFolder [11:24:50]dirname=/storage/ofd_packets [11:24:50]CheckFolder done [11:24:50]ProducePacketName [11:24:50]name=ofd_packets/00103639 [11:24:50]NVStorageSaveData ofd_packets/00103639 [11:24:50]File name is /storage/ofd_packets/00103639 [11:24:50]Write 301 bytes [11:24:50]NVStorageSaveData done [11:24:50]OFDSenderStorePacket done [11:24:50]KKMCreateOFDPacket done [11:24:50]NVStorageSaveData kkm_last_timestamp [11:24:50]File name is /storage/kkm_last_timestamp [11:24:50]Write 4 bytes [11:24:50]NVStorageSaveData done [11:24:50]ExternCall_PrintAddStr [11:24:50]wPrintStart [11:24:50]Write to MH i2c: 01 00 00 C0 9F 5F [11:24:50]Write i2c OK [11:24:50]MH_I2C_Read... [11:24:50]Read from MH i2c: 01 [11:24:50]MH_I2C_Read... [11:24:50]Read from MH i2c: 01 07 00 [11:24:50]MH_I2C_Read... [11:24:50]Read from MH i2c: 01 07 00 C0 9F 00 00 00 00 00 FF 0F 74 [11:24:50]RasterBufferAndPrint [11:24:50]line Счет N : (1)672883 [11:24:50]line ИНН: 02508201610067 [11:24:50]line Контрольно-Кассовый Чек [11:24:50]line ПРОДАЖА [11:24:50]line ТРК (МРК, ГНК) : 42 [11:24:50]line Товар: 2710124130 [11:24:50]line Аи-92-К-5 [11:24:50]line 30.130 * 66.40 [11:24:50]line = 2000.63 [11:24:50]line НДС 12% НСП 1% [11:24:50]line > о реализуемом товаре [11:24:50]line ОКРУГЛЕНИЕ: -0.63 [11:24:50]line ИТОГО: 2000.00 [11:24:50]line Внесено: 2000.00 [11:24:50]line СДАЧА: 0.00 [11:24:50]line НСП 1% : 17.70 [11:24:50]line НДС 12% : 212.46 [11:24:50]line Наличными: 2000.00 [11:24:50]line Безнал.: 0.00 [11:24:50]line Место: АЗС № 120 "Партнер Нефть" [11:24:50]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [11:24:50]line СНО: Общий режим [11:24:50]line Чек 69 19.06.2024 11:25 [11:24:50]line Смена: 353 ФФД: 1.0 [11:24:50]line ЗНМ: 0300000164 [11:24:50]line РНМ: 0000000000092785 [11:24:50]line Версия ККМ: 001 [11:24:50]line ФМ: 0000000000875093 [11:24:50]line ФД: 103639 [11:24:50]line ФПД: 170076822689974 [11:24:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T112501&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103639&fm=170076822689974&tin=02508201610067®Number=0000000000092785&sum=200000 [11:24:51]OFD Sender: Processing packet 103639 [packets to send 17, broken 16] [11:24:51]ProducePacketName [11:24:51]name=ofd_packets/00103639 [11:24:51]OFD Sender: To server: pG, [11:24:51]CommunicateWithHost lk.salyk.kg:30040 [11:24:51]ConnectInit lk.salyk.kg [11:24:51]written 0, free lines is 4095 [11:24:51]Connected sock=10 [11:24: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 39 33 0F 01 00 00 FB 51 07 01 2B 3C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B2 75 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FE 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 0D C0 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 D7 94 01 00 35 04 06 00 9A AF 18 99 D8 B6 99 56 9D 39 90 55 5C 00 [11:24: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 39 33 4F 00 00 00 54 23 47 00 4A 77 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 D7 94 01 00 F4 03 04 00 96 66 72 66 B6 04 01 00 00 49 9D 3C CD 81 18 37 F2 [11:24:51]CommunicateWithHost err = 0 [11:24:51]CheckOFDResponse [11:24:51]1017 (14) - 77093643461234 [11:24:51]1041 (16) - 0000000000875093 [11:24:51]1040 (4) - 103639 [11:24:51]1012 (4) - 19.06.2024 05:03 [11:24:51]1206 (1) - 0 [11:24:51]OFD Sender: Remove packet 103639 [11:24:51]ProducePacketName [11:24:51]name=ofd_packets/00103639 [11:24:51]NVStorageDeleteData [11:24:51]Write to MH i2c: 01 00 00 EB 9F 8A [11:24:51]Write i2c OK [11:24:51]MH_I2C_Read... [11:24:51]Read from MH i2c: 01 [11:24:51]MH_I2C_Read... [11:24:51]Read from MH i2c: 01 07 00 [11:24:51]MH_I2C_Read... [11:24:51]Read from MH i2c: 01 07 00 EB 9F 00 00 00 00 00 E8 0C 85 [11:24:51]RasterBufferAndPrint [11:24:51]line [11:24:51]line [11:24:51]line [11:24:51]line [11:24:51]line [11:24:51]written 0, free lines is 3310 [11:24:51]MH_Cut [11:24:51]Write to MH i2c: D1 01 00 F2 9F 01 63 [11:24:51]Write i2c OK [11:24:51]MH_I2C_Read... [11:24:51]Read from MH i2c: D1 [11:24:51]MH_I2C_Read... [11:24:51]Read from MH i2c: D1 01 00 [11:24:51]MH_I2C_Read... [11:24:51]Read from MH i2c: D1 01 00 F2 9F 00 62 [11:24:51]Write to MH i2c: 01 00 00 F3 9F 92 [11:24:51]Write i2c OK [11:24:51]MH_I2C_Read... [11:24:52]OFD Sender: No OFD packet to send [11:24:52]*** Cut start [11:24:52]*** Partial cut [11:24:52]*** CUTSNS_PIN = 1 [11:24:52]*** CUTSNS_PIN = 0 [11:24:52]*** Brake cut motor [11:24:52]Read from MH i2c: 01 [11:24:52]MH_I2C_Read... [11:24:52]*** Stop cut motor [11:24:52]*** Cut end [11:24:52]Read from MH i2c: 01 07 00 [11:24:52]MH_I2C_Read... [11:24:52]Read from MH i2c: 01 07 00 F3 9F 00 00 00 00 00 FF 0F A7 [11:24:52]process_action close_receipt done [11:24:52]requested_data is exist [11:24:52]produce_requested_data [11:24:52]requested_item fm.sn is exist - process it [11:24:52]wFMCommunicate request_size=4 [11:24:52]MH_SAM_APDU [11:24:52]CAPDU: 80 11 00 00 [11:24:52]Write to MH i2c: E2 08 00 F4 9F 80 11 00 00 00 00 00 00 0D [11:24:52]Write i2c OK [11:24:52]MH_I2C_Read... [11:24:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:24:53]Read from MH i2c: E2 [11:24:53]MH_I2C_Read... [11:24:53]Read from MH i2c: E2 17 00 [11:24:53]MH_I2C_Read... [11:24:53]Read from MH i2c: E2 17 00 F4 9F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 60 [11:24:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [11:24:53]wFMCommunicate OK [11:24:53]requested_item fd.num is exist - process it [11:24:53]SAM_PROTO_GetFieldsCounters [11:24:53]wFMCommunicate request_size=4 [11:24:53]MH_SAM_APDU [11:24:53]CAPDU: 80 13 00 00 [11:24:53]Write to MH i2c: E2 08 00 F5 9F 80 13 00 00 00 00 00 00 10 [11:24:53]Write i2c OK [11:24:53]MH_I2C_Read... [11:24:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:24:53]Read from MH i2c: E2 [11:24:53]MH_I2C_Read... [11:24:53]Read from MH i2c: E2 62 00 [11:24:53]MH_I2C_Read... [11:24:53]Read from MH i2c: E2 62 00 F5 9F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 D7 94 01 00 0E 04 04 00 61 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 D4 [11:24:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 D7 94 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 45 00 00 00 5E 04 04 00 45 00 00 00 57 04 04 00 46 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:24:53]wFMCommunicate OK [11:24:53]SAM_PROTO_GetFieldsCounters done [11:24:53]requested_item shift.num is exist - process it [11:24:53]requested_item shift.opened is exist - process it [11:24:53]req_shift_opened [11:24:53]FM_GetShiftState [11:24:53]SAM_PROTO_GetShiftState [11:24:53]wFMCommunicate request_size=4 [11:24:53]MH_SAM_APDU [11:24:53]CAPDU: 80 13 01 00 [11:24:53]Write to MH i2c: E2 08 00 F6 9F 80 13 01 00 00 00 00 00 12 [11:24:53]Write i2c OK [11:24:53]MH_I2C_Read... [11:24:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:24:53]Read from MH i2c: E2 [11:24:53]MH_I2C_Read... [11:24:53]Read from MH i2c: E2 0E 00 [11:24:53]MH_I2C_Read... [11:24:53]Read from MH i2c: E2 0E 00 F6 9F 00 09 00 01 04 26 72 66 00 00 00 00 90 00 20 [11:24:53]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [11:24:53]wFMCommunicate OK [11:24:53]SAM_PROTO_GetShiftState done [11:24:53]FM_GetShiftState done [11:24:53]req_shift_opened done [11:24:53]requested_item shift.open_date is exist - process it [11:24:53]req_shift_open_date [11:24:53]req_shift_open_date done [11:24:53]produce_requested_data done [11:24:53]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103639,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [11:24:53]process_action_free close_receipt [11:24:53]json_value_free [11:24:53]json_value_free done [11:24:53]process_json_proto returns [11:24:53]Send response to host [11:24:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103639,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [11:24:53]free response buf [11:24:53]execute_script done [11:24:53]execute_script returns [11:24:53]free content buf [11:24:53]Sock 9.Close socket [11:24:53]Sock 9.Thread stoped [11:24:57]OFD Sender: No OFD packet to send [11:25:02]OFD Sender: No OFD packet to send [11:25:07]OFD Sender: No OFD packet to send [11:25:12]OFD Sender: No OFD packet to send [11:25:17]OFD Sender: No OFD packet to send [11:25:22]OFD Sender: No OFD packet to send [11:25:27]OFD Sender: No OFD packet to send [11:25:32]OFD Sender: No OFD packet to send [11:25:37]OFD Sender: No OFD packet to send [11:25:42]OFD Sender: No OFD packet to send [11:25:47]OFD Sender: No OFD packet to send [11:25:52]OFD Sender: No OFD packet to send [11:25:57]OFD Sender: No OFD packet to send [11:26:02]OFD Sender: No OFD packet to send [11:26:07]OFD Sender: No OFD packet to send [11:26:12]OFD Sender: No OFD packet to send [11:26:17]OFD Sender: No OFD packet to send [11:26:22]OFD Sender: No OFD packet to send [11:26:27]OFD Sender: No OFD packet to send [11:26:32]OFD Sender: No OFD packet to send [11:26:37]OFD Sender: No OFD packet to send [11:26:42]OFD Sender: No OFD packet to send [11:26:47]OFD Sender: No OFD packet to send [11:26:52]OFD Sender: No OFD packet to send [11:26:57]OFD Sender: No OFD packet to send [11:27:02]OFD Sender: No OFD packet to send [11:27:07]OFD Sender: No OFD packet to send [11:27:12]OFD Sender: No OFD packet to send [11:27:17]OFD Sender: No OFD packet to send [11:27:20]accept exits with 7 [11:27:20]New connection [11:27:20]New thread 3067084132 created [11:27:20]Thread 3067227492 joined [11:27:20]Waiting for new connection... [11:27:20] Sock 7.Parse request [11:27:20]Sock 7.Check first char [11:27:20]Sock 7.First char is OK [11:27:20]request: POST /json_proto HTTP/1.0 [11:27:20]Method: POST [11:27:20]URL: /json_proto [11:27:20]Method is POST - this is cgi request [11:27:20]url: /json_proto [11:27:20]query_string will be loaded in cgi processing [11:27:20]execute_cgi json_proto POST (null) [11:27:20]execute_cgi path=json_proto method=POST [11:27:20]POST find Content-Length [11:27:20]Host: 172.17.38.133:8080 [11:27:20]Content-Length: 687 [11:27:20]Content-Type: application/json [11:27:20] [11:27:20]POST finish read [11:27:20]Found Content-Length = 687 [11:27:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672884", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 18.870, "sum" : 1375.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1375.00, "total" : 1375.00, "payments": [ { "type": 0, "sum" : 1375.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:27:20]execute_script... [11:27:20]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672884", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 18.870, "sum" : 1375.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1375.00, "total" : 1375.00, "payments": [ { "type": 0, "sum" : 1375.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:27:20]POST & json_proto [11:27:20]process_json_proto [11:27:20]json parsed OK: [11:27:20]protocol is kg_v1.0 [11:27:20]action value=close_receipt [11:27:20]process_action close_receipt [11:27:20]cmd_close_receipt [11:27:20]MH_GetDate [11:27:20]Write to MH i2c: F0 00 00 F7 9F 85 [11:27:20]Write i2c OK [11:27:20]MH_I2C_Read... [11:27:20]Read from MH i2c: F0 [11:27:20]MH_I2C_Read... [11:27:20]Read from MH i2c: F0 09 00 [11:27:20]MH_I2C_Read... [11:27:20]Read from MH i2c: F0 09 00 F7 9F 00 A4 C0 72 66 BD 8F 7C 64 F6 [11:27:20]GetLastDocTimeStamp 1718796301 [11:27:20]current date 1718796452 [11:27:20]FM_GetShiftState [11:27:20]SAM_PROTO_GetShiftState [11:27:20]wFMCommunicate request_size=4 [11:27:20]MH_SAM_APDU [11:27:20]CAPDU: 80 13 01 00 [11:27:20]Write to MH i2c: E2 08 00 F8 9F 80 13 01 00 00 00 00 00 14 [11:27:20]Write i2c OK [11:27:20]MH_I2C_Read... [11:27:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:27:20]Read from MH i2c: E2 [11:27:20]MH_I2C_Read... [11:27:20]Read from MH i2c: E2 0E 00 [11:27:20]MH_I2C_Read... [11:27:20]Read from MH i2c: E2 0E 00 F8 9F 00 09 00 01 04 26 72 66 00 00 00 00 90 00 22 [11:27:20]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [11:27:20]wFMCommunicate OK [11:27:20]SAM_PROTO_GetShiftState done [11:27:20]FM_GetShiftState done [11:27:20]opened in 1718756868 [11:27:20]opened+sec_in_day 1718843268 [11:27:20]quantity*price = 137562 [11:27:20]sum+1 = 137563 [11:27:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.62 ИТОГО: 1375.00 Внесено: 1375.00 СДАЧА: 0.00 НСП 1% : 12.17 НДС 12% : 146.08 Наличными: 1375.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 70 19.06.2024 11:27 Смена: 353 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103640 ФПД: 116718042917674 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T112732&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103640&fm=116718042917674&tin=02508201610067®Number=0000000000092785&sum=137500 [11:27:21]StoreToDocumentArchive [11:27:21]shift 353 fd 103640 [11:27:21]save to /storage/0353/doc_00103640 [11:27:21]save last doc name /storage/0353/doc_00103640 to /storage/kkm_last_doc_name [11:27:21]save OK [11:27:21]Clear old archive folders... [11:27:21]ProcessDocumentItem done err = 0, tmpTLVsize=252 [11:27:21]tlvbuf is 013EBB70 [11:27:21]SAM_PROTO_ClearQueue [11:27:21]wFMCommunicate request_size=4 [11:27:21]MH_SAM_APDU [11:27:21]CAPDU: 80 09 00 00 [11:27:21]Write to MH i2c: E2 08 00 05 A0 80 09 00 00 00 00 00 00 17 [11:27:21]Write i2c OK [11:27:21]MH_I2C_Read... [11:27:21]Read from MH i2c: E2 [11:27:21]MH_I2C_Read... [11:27:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:27:21]Read from MH i2c: E2 03 00 [11:27:21]MH_I2C_Read... [11:27:21]Read from MH i2c: E2 03 00 05 A0 00 90 00 19 [11:27:21]RAPDU: 90 00 [11:27:21]wFMCommunicate OK [11:27:21]SAM_PROTO_ClearQueue done [11:27:21]KKMCreateOFDPacket [11:27:21]OFDProtocolAddRootSTLVToBuf [11:27:21]FM_MakeSignedData [11:27:21]FM_MakeSignedData [11:27:21]SAM_PROTO_SignData [11:27:21]wFMCommunicate request_size=4 [11:27:21]MH_SAM_APDU [11:27:21]CAPDU: 80 0D 01 02 [11:27:21]Write to MH i2c: E2 08 00 06 A0 80 0D 01 02 00 00 00 00 1F [11:27:21]Write i2c OK [11:27:21]MH_I2C_Read... [11:27:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:27:21]Read from MH i2c: E2 [11:27:21]MH_I2C_Read... [11:27:21]Read from MH i2c: E2 03 00 [11:27:21]MH_I2C_Read... [11:27:21]Read from MH i2c: E2 03 00 06 A0 00 90 00 1A [11:27:21]RAPDU: 90 00 [11:27:21]wFMCommunicate OK [11:27:21]wFMCommunicate request_size=255 [11:27:21]MH_SAM_APDU [11:27:21]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 B6 49 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 5A 19 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 19 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C1 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 10 39 00 00 00 00 07 04 06 00 1C 19 02 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 A4 C0 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 D8 94 01 00 35 04 06 00 [11:27:21]Write to MH i2c: E2 02 01 07 A0 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 B6 49 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 5A 19 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 19 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C1 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 10 39 00 00 00 00 07 04 06 00 1C 19 02 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 A4 C0 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 D8 94 01 00 35 04 06 00 00 00 41 [11:27:21]Write i2c OK [11:27:21]MH_I2C_Read... [11:27:22]OFD Sender: No OFD packet to send [11:27:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:27:22]Read from MH i2c: E2 [11:27:22]MH_I2C_Read... [11:27:22]Read from MH i2c: E2 03 00 [11:27:22]MH_I2C_Read... [11:27:22]Read from MH i2c: E2 03 00 07 A0 00 90 00 1B [11:27:22]RAPDU: 90 00 [11:27:22]wFMCommunicate OK [11:27:22]wFMCommunicate request_size=11 [11:27:22]MH_SAM_APDU [11:27:22]CAPDU: 80 0D 02 02 06 6A 27 89 7C AB 2A [11:27:22]Write to MH i2c: E2 0E 00 08 A0 80 0D 02 02 06 00 6A 27 89 7C AB 2A 00 00 99 [11:27:22]Write i2c OK [11:27:22]MH_I2C_Read... [11:27:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:27:22]Read from MH i2c: E2 [11:27:22]MH_I2C_Read... [11:27:22]Read from MH i2c: E2 03 00 [11:27:22]MH_I2C_Read... [11:27:22]Read from MH i2c: E2 03 00 08 A0 00 90 00 1C [11:27:22]RAPDU: 90 00 [11:27:22]wFMCommunicate OK [11:27:22]wFMCommunicate request_size=4 [11:27:22]MH_SAM_APDU [11:27:22]CAPDU: 80 0D 03 02 [11:27:22]Write to MH i2c: E2 08 00 09 A0 80 0D 03 02 00 00 00 00 24 [11:27:22]Write i2c OK [11:27:22]MH_I2C_Read... [11:27:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:27:22]Read from MH i2c: E2 [11:27:22]MH_I2C_Read... [11:27:22]Read from MH i2c: E2 0B 00 [11:27:22]MH_I2C_Read... [11:27:22]Read from MH i2c: E2 0B 00 09 A0 00 77 22 D9 18 74 8A 17 FE 90 00 C2 [11:27:22]RAPDU: 77 22 D9 18 74 8A 17 FE 90 00 [11:27:22]wFMCommunicate OK [11:27:22]SAM_PROTO_SignData done [11:27:22]FM_MakeSignedData done [11:27:22]CreateOFDProtocolMessage [11:27:22]wFMCommunicate request_size=4 [11:27:22]MH_SAM_APDU [11:27:22]CAPDU: 80 11 00 00 [11:27:22]Write to MH i2c: E2 08 00 0A A0 80 11 00 00 00 00 00 00 24 [11:27:22]Write i2c OK [11:27:22]MH_I2C_Read... [11:27:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:27:22]Read from MH i2c: E2 [11:27:22]MH_I2C_Read... [11:27:22]Read from MH i2c: E2 17 00 [11:27:22]MH_I2C_Read... [11:27:22]Read from MH i2c: E2 17 00 0A A0 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 77 [11:27:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [11:27:22]wFMCommunicate OK [11:27:22]CreateOFDProtocolMessage done [11:27:22]OFDSenderStorePacket 103640 [11:27:22]StoreOFDPacket docnum=103640 [11:27:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 34 D4 08 01 CC 41 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 B6 49 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 5A 19 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 19 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C1 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 10 39 00 00 00 00 07 04 06 00 1C 19 02 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 A4 C0 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 D8 94 01 00 35 04 06 00 6A 27 89 7C AB 2A 77 22 D9 18 74 8A 17 FE [11:27:22]CheckFolder [11:27:22]dirname=/storage/ofd_packets [11:27:22]CheckFolder done [11:27:22]ProducePacketName [11:27:22]name=ofd_packets/00103640 [11:27:22]NVStorageSaveData ofd_packets/00103640 [11:27:22]File name is /storage/ofd_packets/00103640 [11:27:22]Write 302 bytes [11:27:22]NVStorageSaveData done [11:27:22]OFDSenderStorePacket done [11:27:22]KKMCreateOFDPacket done [11:27:22]NVStorageSaveData kkm_last_timestamp [11:27:22]File name is /storage/kkm_last_timestamp [11:27:22]Write 4 bytes [11:27:22]NVStorageSaveData done [11:27:22]ExternCall_PrintAddStr [11:27:22]wPrintStart [11:27:22]Write to MH i2c: 01 00 00 0B A0 AB [11:27:22]Write i2c OK [11:27:22]MH_I2C_Read... [11:27:22]Read from MH i2c: 01 [11:27:22]MH_I2C_Read... [11:27:22]Read from MH i2c: 01 07 00 [11:27:22]MH_I2C_Read... [11:27:22]Read from MH i2c: 01 07 00 0B A0 00 00 00 00 00 FF 0F C0 [11:27:22]RasterBufferAndPrint [11:27:22]line Счет N : (1)672884 [11:27:22]line ИНН: 02508201610067 [11:27:22]line Контрольно-Кассовый Чек [11:27:22]line ПРОДАЖА [11:27:22]line ТРК (МРК, ГНК) : 21 [11:27:22]line Товар: 2710194210 [11:27:22]line ДТ(л)-К-5 [11:27:22]line 18.870 * 72.90 [11:27:22]line = 1375.62 [11:27:22]line НДС 12% НСП 1% [11:27:22]line > о реализуемом товаре [11:27:22]line ОКРУГЛЕНИЕ: -0.62 [11:27:22]line ИТОГО: 1375.00 [11:27:22]line Внесено: 1375.00 [11:27:22]line СДАЧА: 0.00 [11:27:22]line НСП 1% : 12.17 [11:27:22]line НДС 12% : 146.08 [11:27:22]line Наличными: 1375.00 [11:27:22]line Безнал.: 0.00 [11:27:22]line Место: АЗС № 120 "Партнер Нефть" [11:27:22]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [11:27:22]line СНО: Общий режим [11:27:22]line Чек 70 19.06.2024 11:27 [11:27:22]line Смена: 353 ФФД: 1.0 [11:27:22]line ЗНМ: 0300000164 [11:27:22]line РНМ: 0000000000092785 [11:27:22]line Версия ККМ: 001 [11:27:22]line ФМ: 0000000000875093 [11:27:22]line ФД: 103640 [11:27:22]line ФПД: 116718042917674 [11:27:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T112732&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103640&fm=116718042917674&tin=02508201610067®Number=0000000000092785&sum=137500 [11:27:22]written 0, free lines is 4095 [11:27:22]OFD Sender: Processing packet 103640 [packets to send 17, broken 16] [11:27:22]ProducePacketName [11:27:22]name=ofd_packets/00103640 [11:27:22]OFD Sender: To server: pG, [11:27:22]CommunicateWithHost lk.salyk.kg:30040 [11:27:22]ConnectInit lk.salyk.kg [11:27:22]Connected sock=10 [11:27: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 39 33 10 01 00 00 34 D4 08 01 CC 41 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 B6 49 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 5A 19 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 19 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C1 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 10 39 00 00 00 00 07 04 06 00 1C 19 02 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 A4 C0 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 D8 94 01 00 35 04 06 00 6A 27 89 7C AB 2A 77 22 D9 18 74 8A 17 FE [11:27:22]Write to MH i2c: 01 00 00 36 A0 D6 [11:27:22]Write i2c OK [11:27:22]MH_I2C_Read... [11:27:22]Read from MH i2c: 01 [11:27:22]MH_I2C_Read... [11:27:22]Read from MH i2c: 01 07 00 [11:27:22]MH_I2C_Read... [11:27:22]Read from MH i2c: 01 07 00 36 A0 00 00 00 00 00 E7 0C D0 [11:27:22]RasterBufferAndPrint [11:27:22]line [11:27:22]line [11:27:22]line [11:27:22]line [11:27:22]line [11:27:22]written 0, free lines is 3309 [11:27:22]MH_Cut [11:27:22]Write to MH i2c: D1 01 00 3D A0 01 AF [11:27:22]Write i2c OK [11:27:22]MH_I2C_Read... [11:27:22]Read from MH i2c: D1 [11:27:22]MH_I2C_Read... [11:27:22]Read from MH i2c: D1 01 00 [11:27:22]MH_I2C_Read... [11:27:22]Read from MH i2c: D1 01 00 3D A0 00 AE [11:27:22]Write to MH i2c: 01 00 00 3E A0 DE [11:27:22]Write i2c OK [11:27:22]MH_I2C_Read... [11:27: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 39 33 4F 00 00 00 E6 3D 47 00 62 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 39 33 10 04 04 00 D8 94 01 00 F4 03 04 00 2D 67 72 66 B6 04 01 00 00 AD 3A B9 24 2B 61 73 89 [11:27:22]CommunicateWithHost err = 0 [11:27:22]CheckOFDResponse [11:27:22]1017 (14) - 77093643461234 [11:27:22]1041 (16) - 0000000000875093 [11:27:22]1040 (4) - 103640 [11:27:22]1012 (4) - 19.06.2024 05:05 [11:27:22]1206 (1) - 0 [11:27:22]OFD Sender: Remove packet 103640 [11:27:22]ProducePacketName [11:27:22]name=ofd_packets/00103640 [11:27:22]NVStorageDeleteData [11:27:23]OFD Sender: No OFD packet to send [11:27:23]*** Cut start [11:27:23]*** Partial cut [11:27:23]*** CUTSNS_PIN = 1 [11:27:23]*** CUTSNS_PIN = 0 [11:27:23]*** Brake cut motor [11:27:24]Read from MH i2c: 01 [11:27:24]MH_I2C_Read... [11:27:24]*** Stop cut motor [11:27:24]Read from MH i2c: 01 07 00 [11:27:24]MH_I2C_Read... [11:27:24]*** Cut end [11:27:24]Read from MH i2c: 01 07 00 3E A0 00 00 00 00 00 FF 0F F3 [11:27:24]process_action close_receipt done [11:27:24]requested_data is exist [11:27:24]produce_requested_data [11:27:24]requested_item fm.sn is exist - process it [11:27:24]wFMCommunicate request_size=4 [11:27:24]MH_SAM_APDU [11:27:24]CAPDU: 80 11 00 00 [11:27:24]Write to MH i2c: E2 08 00 3F A0 80 11 00 00 00 00 00 00 59 [11:27:24]Write i2c OK [11:27:24]MH_I2C_Read... [11:27:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:27:24]Read from MH i2c: E2 [11:27:24]MH_I2C_Read... [11:27:24]Read from MH i2c: E2 17 00 [11:27:24]MH_I2C_Read... [11:27:24]Read from MH i2c: E2 17 00 3F A0 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 AC [11:27:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [11:27:24]wFMCommunicate OK [11:27:24]requested_item fd.num is exist - process it [11:27:24]SAM_PROTO_GetFieldsCounters [11:27:24]wFMCommunicate request_size=4 [11:27:24]MH_SAM_APDU [11:27:24]CAPDU: 80 13 00 00 [11:27:24]Write to MH i2c: E2 08 00 40 A0 80 13 00 00 00 00 00 00 5C [11:27:24]Write i2c OK [11:27:24]MH_I2C_Read... [11:27:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:27:24]Read from MH i2c: E2 [11:27:24]MH_I2C_Read... [11:27:24]Read from MH i2c: E2 62 00 [11:27:24]MH_I2C_Read... [11:27:24]Read from MH i2c: E2 62 00 40 A0 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 D8 94 01 00 0E 04 04 00 61 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 24 [11:27:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 D8 94 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 46 00 00 00 5E 04 04 00 46 00 00 00 57 04 04 00 47 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:27:24]wFMCommunicate OK [11:27:24]SAM_PROTO_GetFieldsCounters done [11:27:24]requested_item shift.num is exist - process it [11:27:24]requested_item shift.opened is exist - process it [11:27:24]req_shift_opened [11:27:24]FM_GetShiftState [11:27:24]SAM_PROTO_GetShiftState [11:27:24]wFMCommunicate request_size=4 [11:27:24]MH_SAM_APDU [11:27:24]CAPDU: 80 13 01 00 [11:27:24]Write to MH i2c: E2 08 00 41 A0 80 13 01 00 00 00 00 00 5E [11:27:24]Write i2c OK [11:27:24]MH_I2C_Read... [11:27:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:27:24]Read from MH i2c: E2 [11:27:24]MH_I2C_Read... [11:27:24]Read from MH i2c: E2 0E 00 [11:27:24]MH_I2C_Read... [11:27:24]Read from MH i2c: E2 0E 00 41 A0 00 09 00 01 04 26 72 66 00 00 00 00 90 00 6C [11:27:24]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [11:27:24]wFMCommunicate OK [11:27:24]SAM_PROTO_GetShiftState done [11:27:24]FM_GetShiftState done [11:27:24]req_shift_opened done [11:27:24]requested_item shift.open_date is exist - process it [11:27:24]req_shift_open_date [11:27:24]req_shift_open_date done [11:27:24]produce_requested_data done [11:27:24]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103640,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [11:27:24]process_action_free close_receipt [11:27:24]json_value_free [11:27:24]json_value_free done [11:27:24]process_json_proto returns [11:27:24]Send response to host [11:27:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103640,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [11:27:24]free response buf [11:27:24]execute_script done [11:27:24]execute_script returns [11:27:24]free content buf [11:27:24]Sock 7.Close socket [11:27:24]Sock 7.Thread stoped [11:27:28]OFD Sender: No OFD packet to send [11:27:33]OFD Sender: No OFD packet to send [11:27:38]OFD Sender: No OFD packet to send [11:27:43]OFD Sender: No OFD packet to send [11:27:48]OFD Sender: No OFD packet to send [11:27:53]OFD Sender: No OFD packet to send [11:27:58]OFD Sender: No OFD packet to send [11:28:03]OFD Sender: No OFD packet to send [11:28:08]OFD Sender: No OFD packet to send [11:28:13]OFD Sender: No OFD packet to send [11:28:18]OFD Sender: No OFD packet to send [11:28:23]OFD Sender: No OFD packet to send [11:28:28]OFD Sender: No OFD packet to send [11:28:33]OFD Sender: No OFD packet to send [11:28:38]OFD Sender: No OFD packet to send [11:28:43]OFD Sender: No OFD packet to send [11:28:48]OFD Sender: No OFD packet to send [11:28:53]OFD Sender: No OFD packet to send [11:28:58]OFD Sender: No OFD packet to send [11:29:03]OFD Sender: No OFD packet to send [11:29:08]OFD Sender: No OFD packet to send [11:29:13]OFD Sender: No OFD packet to send [11:29:18]OFD Sender: No OFD packet to send [11:29:23]OFD Sender: No OFD packet to send [11:29:28]OFD Sender: No OFD packet to send [11:29:33]OFD Sender: No OFD packet to send [11:29:38]OFD Sender: No OFD packet to send [11:29:43]OFD Sender: No OFD packet to send [11:29:48]OFD Sender: No OFD packet to send [11:29:53]OFD Sender: No OFD packet to send [11:29:58]OFD Sender: No OFD packet to send [11:30:03]OFD Sender: No OFD packet to send [11:30:08]OFD Sender: No OFD packet to send [11:30:13]OFD Sender: No OFD packet to send [11:30:18]OFD Sender: No OFD packet to send [11:30:23]OFD Sender: No OFD packet to send [11:30:28]OFD Sender: No OFD packet to send [11:30:33]OFD Sender: No OFD packet to send [11:30:38]OFD Sender: No OFD packet to send [11:30:43]OFD Sender: No OFD packet to send [11:30:48]OFD Sender: No OFD packet to send [11:30:53]OFD Sender: No OFD packet to send [11:30:58]OFD Sender: No OFD packet to send [11:31:03]OFD Sender: No OFD packet to send [11:31:08]OFD Sender: No OFD packet to send [11:31:13]OFD Sender: No OFD packet to send [11:31:18]OFD Sender: No OFD packet to send [11:31:23]OFD Sender: No OFD packet to send [11:31:28]OFD Sender: No OFD packet to send [11:31:33]OFD Sender: No OFD packet to send [11:31:38]OFD Sender: No OFD packet to send [11:31:42]accept exits with 9 [11:31:42]New connection [11:31:42]New thread 3067227492 created [11:31:42]Thread 3067084132 joined [11:31:42]Waiting for new connection... [11:31:42] Sock 9.Parse request [11:31:42]Sock 9.Check first char [11:31:42]Sock 9.First char is OK [11:31:42]request: POST /json_proto HTTP/1.0 [11:31:42]Method: POST [11:31:42]URL: /json_proto [11:31:42]Method is POST - this is cgi request [11:31:42]url: /json_proto [11:31:42]query_string will be loaded in cgi processing [11:31:42]execute_cgi json_proto POST (null) [11:31:42]execute_cgi path=json_proto method=POST [11:31:42]POST find Content-Length [11:31:42]Host: 172.17.38.133:8080 [11:31:42]Content-Length: 819 [11:31:42]Content-Type: application/json [11:31:42] [11:31:42]POST finish read [11:31:42]Found Content-Length = 819 [11:31:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672885", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 34.640, "sum" : 2300.10, "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" : 2300.10 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:31:42]execute_script... [11:31: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)672885", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 34.640, "sum" : 2300.10, "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" : 2300.10 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:31:42]POST & json_proto [11:31:42]process_json_proto [11:31:42]json parsed OK: [11:31:42]protocol is kg_v1.0 [11:31:42]action value=close_receipt [11:31:42]process_action close_receipt [11:31:42]cmd_close_receipt [11:31:42]MH_GetDate [11:31:42]Write to MH i2c: F0 00 00 42 A0 D1 [11:31:42]Write i2c OK [11:31:42]MH_I2C_Read... [11:31:42]Read from MH i2c: F0 [11:31:42]MH_I2C_Read... [11:31:42]Read from MH i2c: F0 09 00 [11:31:42]MH_I2C_Read... [11:31:42]Read from MH i2c: F0 09 00 42 A0 00 AA C1 72 66 BD 8F 7C 64 49 [11:31:42]GetLastDocTimeStamp 1718796452 [11:31:42]current date 1718796714 [11:31:42]FM_GetShiftState [11:31:42]SAM_PROTO_GetShiftState [11:31:42]wFMCommunicate request_size=4 [11:31:42]MH_SAM_APDU [11:31:42]CAPDU: 80 13 01 00 [11:31:42]Write to MH i2c: E2 08 00 43 A0 80 13 01 00 00 00 00 00 60 [11:31:42]Write i2c OK [11:31:42]MH_I2C_Read... [11:31:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:31:42]Read from MH i2c: E2 [11:31:42]MH_I2C_Read... [11:31:42]Read from MH i2c: E2 0E 00 [11:31:42]MH_I2C_Read... [11:31:42]Read from MH i2c: E2 0E 00 43 A0 00 09 00 01 04 26 72 66 00 00 00 00 90 00 6E [11:31:42]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [11:31:42]wFMCommunicate OK [11:31:42]SAM_PROTO_GetShiftState done [11:31:42]FM_GetShiftState done [11:31:42]opened in 1718756868 [11:31:42]opened+sec_in_day 1718843268 [11:31:42]quantity*price = 230009 [11:31:42]sum+1 = 230011 [11:31:42]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2300.10 НСП 1% : 20.35 НДС 12% : 244.26 Наличными: 0.00 Безнал.: 2300.10 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 71 19.06.2024 11:31 Смена: 353 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000875093 ФД: 103641 ФПД: 108920454166936 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T113154&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103641&fm=108920454166936&tin=02508201610067®Number=0000000000092785&sum=230010 [11:31:43]StoreToDocumentArchive [11:31:43]shift 353 fd 103641 [11:31:43]save to /storage/0353/doc_00103641 [11:31:43]save last doc name /storage/0353/doc_00103641 to /storage/kkm_last_doc_name [11:31:43]save OK [11:31:43]Clear old archive folders... [11:31:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:31:43]tlvbuf is 0145E220 [11:31:43]SAM_PROTO_ClearQueue [11:31:43]wFMCommunicate request_size=4 [11:31:43]MH_SAM_APDU [11:31:43]CAPDU: 80 09 00 00 [11:31:43]Write to MH i2c: E2 08 00 50 A0 80 09 00 00 00 00 00 00 62 [11:31:43]Write i2c OK [11:31:43]MH_I2C_Read... [11:31:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:31:43]Read from MH i2c: E2 [11:31:43]MH_I2C_Read... [11:31:43]Read from MH i2c: E2 03 00 [11:31:43]MH_I2C_Read... [11:31:43]Read from MH i2c: E2 03 00 50 A0 00 90 00 64 [11:31:43]RAPDU: 90 00 [11:31:43]wFMCommunicate OK [11:31:43]SAM_PROTO_ClearQueue done [11:31:43]KKMCreateOFDPacket [11:31:43]OFDProtocolAddRootSTLVToBuf [11:31:43]FM_MakeSignedData [11:31:43]FM_MakeSignedData [11:31:43]SAM_PROTO_SignData [11:31:43]wFMCommunicate request_size=4 [11:31:43]MH_SAM_APDU [11:31:43]CAPDU: 80 0D 01 02 [11:31:43]Write to MH i2c: E2 08 00 51 A0 80 0D 01 02 00 00 00 00 6A [11:31:43]Write i2c OK [11:31:43]MH_I2C_Read... [11:31:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:31:43]Read from MH i2c: E2 [11:31:43]MH_I2C_Read... [11:31:43]Read from MH i2c: E2 03 00 [11:31:43]MH_I2C_Read... [11:31:43]Read from MH i2c: E2 03 00 51 A0 00 90 00 65 [11:31:43]RAPDU: 90 00 [11:31:43]wFMCommunicate OK [11:31:43]wFMCommunicate request_size=255 [11:31:43]MH_SAM_APDU [11:31:43]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 50 87 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7A 82 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7A 82 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F3 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6A 5F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7A 82 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 AA C1 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 D9 94 01 00 35 04 06 00 63 [11:31:43]Write to MH i2c: E2 02 01 52 A0 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 50 87 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7A 82 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7A 82 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F3 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6A 5F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7A 82 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 AA C1 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 D9 94 01 00 35 04 06 00 63 00 00 D7 [11:31:43]Write i2c OK [11:31:43]MH_I2C_Read... [11:31:43]OFD Sender: No OFD packet to send [11:31:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:31:43]Read from MH i2c: E2 [11:31:43]MH_I2C_Read... [11:31:43]Read from MH i2c: E2 03 00 [11:31:43]MH_I2C_Read... [11:31:43]Read from MH i2c: E2 03 00 52 A0 00 90 00 66 [11:31:43]RAPDU: 90 00 [11:31:43]wFMCommunicate OK [11:31:43]wFMCommunicate request_size=10 [11:31:43]MH_SAM_APDU [11:31:43]CAPDU: 80 0D 02 02 05 10 04 FA B9 98 [11:31:43]Write to MH i2c: E2 0D 00 53 A0 80 0D 02 02 05 00 10 04 FA B9 98 00 00 D6 [11:31:43]Write i2c OK [11:31:43]MH_I2C_Read... [11:31:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:31:43]Read from MH i2c: E2 [11:31:43]MH_I2C_Read... [11:31:43]Read from MH i2c: E2 03 00 [11:31:43]MH_I2C_Read... [11:31:43]Read from MH i2c: E2 03 00 53 A0 00 90 00 67 [11:31:43]RAPDU: 90 00 [11:31:43]wFMCommunicate OK [11:31:43]wFMCommunicate request_size=4 [11:31:43]MH_SAM_APDU [11:31:43]CAPDU: 80 0D 03 02 [11:31:43]Write to MH i2c: E2 08 00 54 A0 80 0D 03 02 00 00 00 00 6F [11:31:43]Write i2c OK [11:31:43]MH_I2C_Read... [11:31:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:31:43]Read from MH i2c: E2 [11:31:43]MH_I2C_Read... [11:31:43]Read from MH i2c: E2 0B 00 [11:31:43]MH_I2C_Read... [11:31:43]Read from MH i2c: E2 0B 00 54 A0 00 4E B0 E6 B1 66 C5 C6 04 90 00 FA [11:31:43]RAPDU: 4E B0 E6 B1 66 C5 C6 04 90 00 [11:31:43]wFMCommunicate OK [11:31:43]SAM_PROTO_SignData done [11:31:43]FM_MakeSignedData done [11:31:43]CreateOFDProtocolMessage [11:31:43]wFMCommunicate request_size=4 [11:31:43]MH_SAM_APDU [11:31:43]CAPDU: 80 11 00 00 [11:31:43]Write to MH i2c: E2 08 00 55 A0 80 11 00 00 00 00 00 00 6F [11:31:43]Write i2c OK [11:31:43]MH_I2C_Read... [11:31:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:31:43]Read from MH i2c: E2 [11:31:43]MH_I2C_Read... [11:31:43]Read from MH i2c: E2 17 00 [11:31:43]MH_I2C_Read... [11:31:43]Read from MH i2c: E2 17 00 55 A0 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 C2 [11:31:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [11:31:43]wFMCommunicate OK [11:31:43]CreateOFDProtocolMessage done [11:31:43]OFDSenderStorePacket 103641 [11:31:43]StoreOFDPacket docnum=103641 [11:31:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 66 05 07 01 4D 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 50 87 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7A 82 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7A 82 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F3 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6A 5F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7A 82 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 AA C1 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 D9 94 01 00 35 04 06 00 63 10 04 FA B9 98 4E B0 E6 B1 66 C5 C6 04 [11:31:43]CheckFolder [11:31:43]dirname=/storage/ofd_packets [11:31:43]CheckFolder done [11:31:43]ProducePacketName [11:31:43]name=ofd_packets/00103641 [11:31:43]NVStorageSaveData ofd_packets/00103641 [11:31:43]File name is /storage/ofd_packets/00103641 [11:31:43]Write 301 bytes [11:31:43]NVStorageSaveData done [11:31:43]OFDSenderStorePacket done [11:31:43]KKMCreateOFDPacket done [11:31:43]NVStorageSaveData kkm_last_timestamp [11:31:43]File name is /storage/kkm_last_timestamp [11:31:43]Write 4 bytes [11:31:43]NVStorageSaveData done [11:31:43]ExternCall_PrintAddStr [11:31:43]wPrintStart [11:31:43]Write to MH i2c: 01 00 00 56 A0 F6 [11:31:43]Write i2c OK [11:31:43]MH_I2C_Read... [11:31:43]Read from MH i2c: 01 [11:31:43]MH_I2C_Read... [11:31:43]Read from MH i2c: 01 07 00 [11:31:43]MH_I2C_Read... [11:31:43]Read from MH i2c: 01 07 00 56 A0 00 00 00 00 00 FF 0F 0B [11:31:43]RasterBufferAndPrint [11:31:43]line Счет N : (1)672885 [11:31:43]line ИНН: 02508201610067 [11:31:43]line Контрольно-Кассовый Чек [11:31:43]line ПРОДАЖА [11:31:43]line ТРК (МРК, ГНК) : 42 [11:31:43]line Товар: 2710124130 [11:31:43]line Аи-92-К-5 [11:31:43]line 34.640 * 66.40 [11:31:43]line = 2300.10 [11:31:43]line НДС 12% НСП 1% [11:31:43]line > о реализуемом товаре [11:31:43]line ИТОГО: 2300.10 [11:31:43]line НСП 1% : 20.35 [11:31:43]line НДС 12% : 244.26 [11:31:43]line Наличными: 0.00 [11:31:43]line Безнал.: 2300.10 [11:31:43]line Место: АЗС № 120 "Партнер Нефть" [11:31:43]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [11:31:43]line СНО: Общий режим [11:31:43]line Чек 71 19.06.2024 11:31 [11:31:43]line Смена: 353 ФФД: 1.0 [11:31:43]line ЗНМ: 0300000164 [11:31:43]line РНМ: 0000000000092785 [11:31:43]line Версия ККМ: 001 [11:31:43]line Платежная система: Бакай Банк [11:31:43]line ФМ: 0000000000875093 [11:31:43]line ФД: 103641 [11:31:43]line ФПД: 108920454166936 [11:31:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T113154&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103641&fm=108920454166936&tin=02508201610067®Number=0000000000092785&sum=230010 [11:31:43]written 0, free lines is 4095 [11:31:43]OFD Sender: Processing packet 103641 [packets to send 17, broken 16] [11:31:43]ProducePacketName [11:31:43]name=ofd_packets/00103641 [11:31:43]OFD Sender: To server: pG, [11:31:43]CommunicateWithHost lk.salyk.kg:30040 [11:31:43]ConnectInit lk.salyk.kg [11:31:44]Connected sock=11 [11:31: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 39 33 0F 01 00 00 66 05 07 01 4D 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 50 87 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7A 82 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7A 82 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F3 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6A 5F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7A 82 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 AA C1 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 D9 94 01 00 35 04 06 00 63 10 04 FA B9 98 4E B0 E6 B1 66 C5 C6 04 [11:31:44]Write to MH i2c: 01 00 00 80 A0 20 [11:31:44]Write i2c OK [11:31:44]MH_I2C_Read... [11:31:44]Read from MH i2c: 01 [11:31:44]MH_I2C_Read... [11:31:44]Read from MH i2c: 01 07 00 [11:31:44]MH_I2C_Read... [11:31:44]Read from MH i2c: 01 07 00 80 A0 00 00 00 00 00 F2 0C 25 [11:31:44]RasterBufferAndPrint [11:31:44]line [11:31:44]line [11:31:44]line [11:31:44]line [11:31:44]line [11:31:44]written 0, free lines is 3318 [11:31:44]MH_Cut [11:31:44]Write to MH i2c: D1 01 00 87 A0 01 F9 [11:31:44]Write i2c OK [11:31:44]MH_I2C_Read... [11:31:44]Read from MH i2c: D1 [11:31:44]MH_I2C_Read... [11:31:44]Read from MH i2c: D1 01 00 [11:31:44]MH_I2C_Read... [11:31:44]Read from MH i2c: D1 01 00 87 A0 00 F8 [11:31:44]Write to MH i2c: 01 00 00 88 A0 28 [11:31:44]Write i2c OK [11:31:44]MH_I2C_Read... [11:31: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 39 33 4F 00 00 00 89 9B 47 00 6A BC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 D9 94 01 00 F4 03 04 00 33 68 72 66 B6 04 01 00 00 2A B6 73 E2 F2 C3 12 6B [11:31:44]CommunicateWithHost err = 0 [11:31:44]CheckOFDResponse [11:31:44]1017 (14) - 77093643461234 [11:31:44]1041 (16) - 0000000000875093 [11:31:44]1040 (4) - 103641 [11:31:44]1012 (4) - 19.06.2024 05:10 [11:31:44]1206 (1) - 0 [11:31:44]OFD Sender: Remove packet 103641 [11:31:44]ProducePacketName [11:31:44]name=ofd_packets/00103641 [11:31:44]NVStorageDeleteData [11:31:44]OFD Sender: No OFD packet to send [11:31:45]*** Cut start [11:31:45]*** Partial cut [11:31:45]*** CUTSNS_PIN = 1 [11:31:45]*** CUTSNS_PIN = 0 [11:31:45]*** Brake cut motor [11:31:45]Read from MH i2c: 01 [11:31:45]MH_I2C_Read... [11:31:45]*** Stop cut motor [11:31:45]*** Cut end [11:31:45]Read from MH i2c: 01 07 00 [11:31:45]MH_I2C_Read... [11:31:45]Read from MH i2c: 01 07 00 88 A0 00 00 00 00 00 FF 0F 3D [11:31:45]process_action close_receipt done [11:31:45]requested_data is exist [11:31:45]produce_requested_data [11:31:45]requested_item fm.sn is exist - process it [11:31:45]wFMCommunicate request_size=4 [11:31:45]MH_SAM_APDU [11:31:45]CAPDU: 80 11 00 00 [11:31:45]Write to MH i2c: E2 08 00 89 A0 80 11 00 00 00 00 00 00 A3 [11:31:45]Write i2c OK [11:31:45]MH_I2C_Read... [11:31:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:31:45]Read from MH i2c: E2 [11:31:45]MH_I2C_Read... [11:31:45]Read from MH i2c: E2 17 00 [11:31:45]MH_I2C_Read... [11:31:45]Read from MH i2c: E2 17 00 89 A0 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 F6 [11:31:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [11:31:45]wFMCommunicate OK [11:31:45]requested_item fd.num is exist - process it [11:31:45]SAM_PROTO_GetFieldsCounters [11:31:45]wFMCommunicate request_size=4 [11:31:45]MH_SAM_APDU [11:31:45]CAPDU: 80 13 00 00 [11:31:45]Write to MH i2c: E2 08 00 8A A0 80 13 00 00 00 00 00 00 A6 [11:31:45]Write i2c OK [11:31:45]MH_I2C_Read... [11:31:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:31:45]Read from MH i2c: E2 [11:31:45]MH_I2C_Read... [11:31:45]Read from MH i2c: E2 62 00 [11:31:45]MH_I2C_Read... [11:31:45]Read from MH i2c: E2 62 00 8A A0 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 D9 94 01 00 0E 04 04 00 61 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 72 [11:31:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 D9 94 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 47 00 00 00 5E 04 04 00 47 00 00 00 57 04 04 00 48 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:31:45]wFMCommunicate OK [11:31:45]SAM_PROTO_GetFieldsCounters done [11:31:45]requested_item shift.num is exist - process it [11:31:45]requested_item shift.opened is exist - process it [11:31:45]req_shift_opened [11:31:45]FM_GetShiftState [11:31:45]SAM_PROTO_GetShiftState [11:31:45]wFMCommunicate request_size=4 [11:31:45]MH_SAM_APDU [11:31:45]CAPDU: 80 13 01 00 [11:31:45]Write to MH i2c: E2 08 00 8B A0 80 13 01 00 00 00 00 00 A8 [11:31:45]Write i2c OK [11:31:45]MH_I2C_Read... [11:31:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:31:45]Read from MH i2c: E2 [11:31:45]MH_I2C_Read... [11:31:45]Read from MH i2c: E2 0E 00 [11:31:45]MH_I2C_Read... [11:31:45]Read from MH i2c: E2 0E 00 8B A0 00 09 00 01 04 26 72 66 00 00 00 00 90 00 B6 [11:31:45]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [11:31:45]wFMCommunicate OK [11:31:45]SAM_PROTO_GetShiftState done [11:31:45]FM_GetShiftState done [11:31:45]req_shift_opened done [11:31:45]requested_item shift.open_date is exist - process it [11:31:45]req_shift_open_date [11:31:45]req_shift_open_date done [11:31:45]produce_requested_data done [11:31:45]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103641,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [11:31:45]process_action_free close_receipt [11:31:45]json_value_free [11:31:45]json_value_free done [11:31:45]process_json_proto returns [11:31:45]Send response to host [11:31:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103641,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [11:31:45]free response buf [11:31:45]execute_script done [11:31:45]execute_script returns [11:31:45]free content buf [11:31:45]Sock 9.Close socket [11:31:45]Sock 9.Thread stoped [11:31:49]OFD Sender: No OFD packet to send [11:31:54]OFD Sender: No OFD packet to send [11:31:59]OFD Sender: No OFD packet to send [11:32:04]OFD Sender: No OFD packet to send [11:32:09]OFD Sender: No OFD packet to send [11:32:14]OFD Sender: No OFD packet to send [11:32:19]OFD Sender: No OFD packet to send [11:32:24]OFD Sender: No OFD packet to send [11:32:29]OFD Sender: No OFD packet to send [11:32:34]OFD Sender: No OFD packet to send [11:32:39]OFD Sender: No OFD packet to send [11:32:44]OFD Sender: No OFD packet to send [11:32:49]OFD Sender: No OFD packet to send [11:32:54]OFD Sender: No OFD packet to send [11:32:59]OFD Sender: No OFD packet to send [11:33:04]OFD Sender: No OFD packet to send [11:33:09]OFD Sender: No OFD packet to send [11:33:14]OFD Sender: No OFD packet to send [11:33:19]OFD Sender: No OFD packet to send [11:33:24]OFD Sender: No OFD packet to send [11:33:29]OFD Sender: No OFD packet to send [11:33:34]OFD Sender: No OFD packet to send [11:33:40]OFD Sender: No OFD packet to send [11:33:45]OFD Sender: No OFD packet to send [11:33:50]OFD Sender: No OFD packet to send [11:33:55]OFD Sender: No OFD packet to send [11:34:00]OFD Sender: No OFD packet to send [11:34:05]OFD Sender: No OFD packet to send [11:34:10]OFD Sender: No OFD packet to send [11:34:15]OFD Sender: No OFD packet to send [11:34:20]OFD Sender: No OFD packet to send [11:34:25]OFD Sender: No OFD packet to send [11:34:30]OFD Sender: No OFD packet to send [11:34:35]OFD Sender: No OFD packet to send [11:34:40]OFD Sender: No OFD packet to send [11:34:45]OFD Sender: No OFD packet to send [11:34:50]OFD Sender: No OFD packet to send [11:34:55]OFD Sender: No OFD packet to send [11:35:00]OFD Sender: No OFD packet to send [11:35:05]OFD Sender: No OFD packet to send [11:35:10]OFD Sender: No OFD packet to send [11:35:15]OFD Sender: No OFD packet to send [11:35:18]accept exits with 7 [11:35:18]New connection [11:35:18]New thread 3067084132 created [11:35:18]Thread 3067227492 joined [11:35:18]Waiting for new connection... [11:35:18] Sock 7.Parse request [11:35:18]Sock 7.Check first char [11:35:18]Sock 7.First char is OK [11:35:18]request: POST /json_proto HTTP/1.0 [11:35:18]Method: POST [11:35:18]URL: /json_proto [11:35:18]Method is POST - this is cgi request [11:35:18]url: /json_proto [11:35:18]query_string will be loaded in cgi processing [11:35:18]execute_cgi json_proto POST (null) [11:35:18]execute_cgi path=json_proto method=POST [11:35:18]POST find Content-Length [11:35:18]Host: 172.17.38.133:8080 [11:35:18]Content-Length: 677 [11:35:18]Content-Type: application/json [11:35:18] [11:35:18]POST finish read [11:35:18]Found Content-Length = 677 [11:35:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672886", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 4.520, "sum" : 300.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:35:18]execute_script... [11:35: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)672886", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 4.520, "sum" : 300.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:35:18]POST & json_proto [11:35:18]process_json_proto [11:35:18]json parsed OK: [11:35:18]protocol is kg_v1.0 [11:35:18]action value=close_receipt [11:35:18]process_action close_receipt [11:35:18]cmd_close_receipt [11:35:18]MH_GetDate [11:35:18]Write to MH i2c: F0 00 00 8C A0 1B [11:35:18]Write i2c OK [11:35:18]MH_I2C_Read... [11:35:18]Read from MH i2c: F0 [11:35:18]MH_I2C_Read... [11:35:18]Read from MH i2c: F0 09 00 [11:35:18]MH_I2C_Read... [11:35:18]Read from MH i2c: F0 09 00 8C A0 00 82 C2 72 66 BD 8F 7C 64 6C [11:35:18]GetLastDocTimeStamp 1718796714 [11:35:18]current date 1718796930 [11:35:18]FM_GetShiftState [11:35:18]SAM_PROTO_GetShiftState [11:35:18]wFMCommunicate request_size=4 [11:35:18]MH_SAM_APDU [11:35:18]CAPDU: 80 13 01 00 [11:35:18]Write to MH i2c: E2 08 00 8D A0 80 13 01 00 00 00 00 00 AA [11:35:18]Write i2c OK [11:35:18]MH_I2C_Read... [11:35:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:35:18]Read from MH i2c: E2 [11:35:18]MH_I2C_Read... [11:35:18]Read from MH i2c: E2 0E 00 [11:35:18]MH_I2C_Read... [11:35:18]Read from MH i2c: E2 0E 00 8D A0 00 09 00 01 04 26 72 66 00 00 00 00 90 00 B8 [11:35:18]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [11:35:18]wFMCommunicate OK [11:35:18]SAM_PROTO_GetShiftState done [11:35:18]FM_GetShiftState done [11:35:18]opened in 1718756868 [11:35:18]opened+sec_in_day 1718843268 [11:35:18]quantity*price = 30012 [11:35:18]sum+1 = 30014 [11:35:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.13 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.87 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 72 19.06.2024 11:35 Смена: 353 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103642 ФПД: 37528296938625 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T113530&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103642&fm=37528296938625&tin=02508201610067®Number=0000000000092785&sum=30000 [11:35:19]StoreToDocumentArchive [11:35:19]shift 353 fd 103642 [11:35:19]save to /storage/0353/doc_00103642 [11:35:19]save last doc name /storage/0353/doc_00103642 to /storage/kkm_last_doc_name [11:35:19]save OK [11:35:19]Clear old archive folders... [11:35:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:35:19]tlvbuf is 013EBE70 [11:35:19]SAM_PROTO_ClearQueue [11:35:19]wFMCommunicate request_size=4 [11:35:19]MH_SAM_APDU [11:35:19]CAPDU: 80 09 00 00 [11:35:19]Write to MH i2c: E2 08 00 9A A0 80 09 00 00 00 00 00 00 AC [11:35:19]Write i2c OK [11:35:19]MH_I2C_Read... [11:35:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:35:19]Read from MH i2c: E2 [11:35:19]MH_I2C_Read... [11:35:19]Read from MH i2c: E2 03 00 [11:35:19]MH_I2C_Read... [11:35:19]Read from MH i2c: E2 03 00 9A A0 00 90 00 AE [11:35:19]RAPDU: 90 00 [11:35:19]wFMCommunicate OK [11:35:19]SAM_PROTO_ClearQueue done [11:35:19]KKMCreateOFDPacket [11:35:19]OFDProtocolAddRootSTLVToBuf [11:35:19]FM_MakeSignedData [11:35:19]FM_MakeSignedData [11:35:19]SAM_PROTO_SignData [11:35:19]wFMCommunicate request_size=4 [11:35:19]MH_SAM_APDU [11:35:19]CAPDU: 80 0D 01 02 [11:35:19]Write to MH i2c: E2 08 00 9B A0 80 0D 01 02 00 00 00 00 B4 [11:35:19]Write i2c OK [11:35:19]MH_I2C_Read... [11:35:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:35:19]Read from MH i2c: E2 [11:35:19]MH_I2C_Read... [11:35:19]Read from MH i2c: E2 03 00 [11:35:19]MH_I2C_Read... [11:35:19]Read from MH i2c: E2 03 00 9B A0 00 90 00 AF [11:35:19]RAPDU: 90 00 [11:35:19]wFMCommunicate OK [11:35:19]wFMCommunicate request_size=255 [11:35:19]MH_SAM_APDU [11:35: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 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 82 C2 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 DA 94 01 00 35 04 06 00 22 [11:35:19]Write to MH i2c: E2 02 01 9C A0 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 82 C2 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 DA 94 01 00 35 04 06 00 22 00 00 63 [11:35:19]Write i2c OK [11:35:19]MH_I2C_Read... [11:35:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:35:19]Read from MH i2c: E2 [11:35:19]MH_I2C_Read... [11:35:19]Read from MH i2c: E2 03 00 [11:35:19]MH_I2C_Read... [11:35:19]Read from MH i2c: E2 03 00 9C A0 00 90 00 B0 [11:35:19]RAPDU: 90 00 [11:35:19]wFMCommunicate OK [11:35:19]wFMCommunicate request_size=10 [11:35:19]MH_SAM_APDU [11:35:19]CAPDU: 80 0D 02 02 05 21 BC CE DC 81 [11:35:19]Write to MH i2c: E2 0D 00 9D A0 80 0D 02 02 05 00 21 BC CE DC 81 00 00 C9 [11:35:19]Write i2c OK [11:35:19]MH_I2C_Read... [11:35:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:35:19]Read from MH i2c: E2 [11:35:19]MH_I2C_Read... [11:35:19]Read from MH i2c: E2 03 00 [11:35:19]MH_I2C_Read... [11:35:19]Read from MH i2c: E2 03 00 9D A0 00 90 00 B1 [11:35:19]RAPDU: 90 00 [11:35:19]wFMCommunicate OK [11:35:19]wFMCommunicate request_size=4 [11:35:19]MH_SAM_APDU [11:35:19]CAPDU: 80 0D 03 02 [11:35:19]Write to MH i2c: E2 08 00 9E A0 80 0D 03 02 00 00 00 00 B9 [11:35:19]Write i2c OK [11:35:19]MH_I2C_Read... [11:35:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:35:20]Read from MH i2c: E2 [11:35:20]MH_I2C_Read... [11:35:20]Read from MH i2c: E2 0B 00 [11:35:20]MH_I2C_Read... [11:35:20]Read from MH i2c: E2 0B 00 9E A0 00 39 6B C4 AE E6 26 90 07 90 00 73 [11:35:20]RAPDU: 39 6B C4 AE E6 26 90 07 90 00 [11:35:20]wFMCommunicate OK [11:35:20]SAM_PROTO_SignData done [11:35:20]FM_MakeSignedData done [11:35:20]CreateOFDProtocolMessage [11:35:20]wFMCommunicate request_size=4 [11:35:20]MH_SAM_APDU [11:35:20]CAPDU: 80 11 00 00 [11:35:20]Write to MH i2c: E2 08 00 9F A0 80 11 00 00 00 00 00 00 B9 [11:35:20]Write i2c OK [11:35:20]MH_I2C_Read... [11:35:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:35:20]Read from MH i2c: E2 [11:35:20]MH_I2C_Read... [11:35:20]Read from MH i2c: E2 17 00 [11:35:20]MH_I2C_Read... [11:35:20]Read from MH i2c: E2 17 00 9F A0 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 0C [11:35:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [11:35:20]wFMCommunicate OK [11:35:20]CreateOFDProtocolMessage done [11:35:20]OFDSenderStorePacket 103642 [11:35:20]StoreOFDPacket docnum=103642 [11:35:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 A5 41 07 01 25 10 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 82 C2 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 DA 94 01 00 35 04 06 00 22 21 BC CE DC 81 39 6B C4 AE E6 26 90 07 [11:35:20]CheckFolder [11:35:20]dirname=/storage/ofd_packets [11:35:20]CheckFolder done [11:35:20]ProducePacketName [11:35:20]name=ofd_packets/00103642 [11:35:20]NVStorageSaveData ofd_packets/00103642 [11:35:20]File name is /storage/ofd_packets/00103642 [11:35:20]Write 301 bytes [11:35:20]NVStorageSaveData done [11:35:20]OFDSenderStorePacket done [11:35:20]KKMCreateOFDPacket done [11:35:20]NVStorageSaveData kkm_last_timestamp [11:35:20]File name is /storage/kkm_last_timestamp [11:35:20]Write 4 bytes [11:35:20]NVStorageSaveData done [11:35:20]ExternCall_PrintAddStr [11:35:20]wPrintStart [11:35:20]Write to MH i2c: 01 00 00 A0 A0 40 [11:35:20]Write i2c OK [11:35:20]MH_I2C_Read... [11:35:20]Read from MH i2c: 01 [11:35:20]MH_I2C_Read... [11:35:20]Read from MH i2c: 01 07 00 [11:35:20]MH_I2C_Read... [11:35:20]Read from MH i2c: 01 07 00 A0 A0 00 00 00 00 00 FF 0F 55 [11:35:20]RasterBufferAndPrint [11:35:20]line Счет N : (1)672886 [11:35:20]line ИНН: 02508201610067 [11:35:20]line Контрольно-Кассовый Чек [11:35:20]line ПРОДАЖА [11:35:20]line ТРК (МРК, ГНК) : 42 [11:35:20]line Товар: 2710124130 [11:35:20]line Аи-92-К-5 [11:35:20]line 4.520 * 66.40 [11:35:20]line = 300.13 [11:35:20]line НДС 12% НСП 1% [11:35:20]line > о реализуемом товаре [11:35:20]line ОКРУГЛЕНИЕ: -0.13 [11:35:20]line ИТОГО: 300.00 [11:35:20]line Внесено: 300.00 [11:35:20]line СДАЧА: 0.00 [11:35:20]line НСП 1% : 2.66 [11:35:20]line НДС 12% : 31.87 [11:35:20]line Наличными: 300.00 [11:35:20]line Безнал.: 0.00 [11:35:20]line Место: АЗС № 120 "Партнер Нефть" [11:35:20]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [11:35:20]line СНО: Общий режим [11:35:20]line Чек 72 19.06.2024 11:35 [11:35:20]line Смена: 353 ФФД: 1.0 [11:35:20]line ЗНМ: 0300000164 [11:35:20]line РНМ: 0000000000092785 [11:35:20]line Версия ККМ: 001 [11:35:20]line ФМ: 0000000000875093 [11:35:20]line ФД: 103642 [11:35:20]line ФПД: 37528296938625 [11:35:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T113530&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103642&fm=37528296938625&tin=02508201610067®Number=0000000000092785&sum=30000 [11:35:20]written 0, free lines is 4095 [11:35:20]OFD Sender: Processing packet 103642 [packets to send 17, broken 16] [11:35:20]ProducePacketName [11:35:20]name=ofd_packets/00103642 [11:35:20]OFD Sender: To server: pG, [11:35:20]CommunicateWithHost lk.salyk.kg:30040 [11:35:20]ConnectInit lk.salyk.kg [11:35:20]Connected sock=10 [11:35: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 39 33 0F 01 00 00 A5 41 07 01 25 10 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 82 C2 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 DA 94 01 00 35 04 06 00 22 21 BC CE DC 81 39 6B C4 AE E6 26 90 07 [11:35: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 39 33 4F 00 00 00 B7 E2 47 00 99 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 39 33 10 04 04 00 DA 94 01 00 F4 03 04 00 0B 69 72 66 B6 04 01 00 00 20 00 EF 5D A5 6E D9 A7 [11:35:20]CommunicateWithHost err = 0 [11:35:20]CheckOFDResponse [11:35:20]1017 (14) - 77093643461234 [11:35:20]1041 (16) - 0000000000875093 [11:35:20]1040 (4) - 103642 [11:35:20]1012 (4) - 19.06.2024 05:13 [11:35:20]1206 (1) - 0 [11:35:20]OFD Sender: Remove packet 103642 [11:35:20]ProducePacketName [11:35:20]name=ofd_packets/00103642 [11:35:20]NVStorageDeleteData [11:35:20]Write to MH i2c: 01 00 00 CB A0 6B [11:35:20]Write i2c OK [11:35:20]MH_I2C_Read... [11:35:20]Read from MH i2c: 01 [11:35:20]MH_I2C_Read... [11:35:20]Read from MH i2c: 01 07 00 [11:35:20]MH_I2C_Read... [11:35:20]Read from MH i2c: 01 07 00 CB A0 00 00 00 00 00 E9 0C 67 [11:35:20]RasterBufferAndPrint [11:35:20]line [11:35:20]line [11:35:20]line [11:35:20]line [11:35:20]line [11:35:20]written 0, free lines is 3314 [11:35:20]MH_Cut [11:35:20]Write to MH i2c: D1 01 00 D2 A0 01 44 [11:35:20]Write i2c OK [11:35:20]MH_I2C_Read... [11:35:20]Read from MH i2c: D1 [11:35:20]MH_I2C_Read... [11:35:20]Read from MH i2c: D1 01 00 [11:35:20]MH_I2C_Read... [11:35:20]Read from MH i2c: D1 01 00 D2 A0 00 43 [11:35:20]Write to MH i2c: 01 00 00 D3 A0 73 [11:35:20]Write i2c OK [11:35:20]MH_I2C_Read... [11:35:21]OFD Sender: No OFD packet to send [11:35:21]*** Cut start [11:35:21]*** Partial cut [11:35:21]*** CUTSNS_PIN = 1 [11:35:21]*** CUTSNS_PIN = 0 [11:35:21]*** Brake cut motor [11:35:22]Read from MH i2c: 01 [11:35:22]MH_I2C_Read... [11:35:22]*** Stop cut motor [11:35:22]*** Cut end [11:35:22]Read from MH i2c: 01 07 00 [11:35:22]MH_I2C_Read... [11:35:22]Read from MH i2c: 01 07 00 D3 A0 00 00 00 00 00 FF 0F 88 [11:35:22]process_action close_receipt done [11:35:22]requested_data is exist [11:35:22]produce_requested_data [11:35:22]requested_item fm.sn is exist - process it [11:35:22]wFMCommunicate request_size=4 [11:35:22]MH_SAM_APDU [11:35:22]CAPDU: 80 11 00 00 [11:35:22]Write to MH i2c: E2 08 00 D4 A0 80 11 00 00 00 00 00 00 EE [11:35:22]Write i2c OK [11:35:22]MH_I2C_Read... [11:35:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:35:22]Read from MH i2c: E2 [11:35:22]MH_I2C_Read... [11:35:22]Read from MH i2c: E2 17 00 [11:35:22]MH_I2C_Read... [11:35:22]Read from MH i2c: E2 17 00 D4 A0 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 41 [11:35:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [11:35:22]wFMCommunicate OK [11:35:22]requested_item fd.num is exist - process it [11:35:22]SAM_PROTO_GetFieldsCounters [11:35:22]wFMCommunicate request_size=4 [11:35:22]MH_SAM_APDU [11:35:22]CAPDU: 80 13 00 00 [11:35:22]Write to MH i2c: E2 08 00 D5 A0 80 13 00 00 00 00 00 00 F1 [11:35:22]Write i2c OK [11:35:22]MH_I2C_Read... [11:35:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:35:22]Read from MH i2c: E2 [11:35:22]MH_I2C_Read... [11:35:22]Read from MH i2c: E2 62 00 [11:35:22]MH_I2C_Read... [11:35:22]Read from MH i2c: E2 62 00 D5 A0 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 DA 94 01 00 0E 04 04 00 61 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 C1 [11:35: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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 DA 94 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 48 00 00 00 5E 04 04 00 48 00 00 00 57 04 04 00 49 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:35:22]wFMCommunicate OK [11:35:22]SAM_PROTO_GetFieldsCounters done [11:35:22]requested_item shift.num is exist - process it [11:35:22]requested_item shift.opened is exist - process it [11:35:22]req_shift_opened [11:35:22]FM_GetShiftState [11:35:22]SAM_PROTO_GetShiftState [11:35:22]wFMCommunicate request_size=4 [11:35:22]MH_SAM_APDU [11:35:22]CAPDU: 80 13 01 00 [11:35:22]Write to MH i2c: E2 08 00 D6 A0 80 13 01 00 00 00 00 00 F3 [11:35:22]Write i2c OK [11:35:22]MH_I2C_Read... [11:35:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:35:22]Read from MH i2c: E2 [11:35:22]MH_I2C_Read... [11:35:22]Read from MH i2c: E2 0E 00 [11:35:22]MH_I2C_Read... [11:35:22]Read from MH i2c: E2 0E 00 D6 A0 00 09 00 01 04 26 72 66 00 00 00 00 90 00 01 [11:35:22]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [11:35:22]wFMCommunicate OK [11:35:22]SAM_PROTO_GetShiftState done [11:35:22]FM_GetShiftState done [11:35:22]req_shift_opened done [11:35:22]requested_item shift.open_date is exist - process it [11:35:22]req_shift_open_date [11:35:22]req_shift_open_date done [11:35:22]produce_requested_data done [11:35:22]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103642,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [11:35:22]process_action_free close_receipt [11:35:22]json_value_free [11:35:22]json_value_free done [11:35:22]process_json_proto returns [11:35:22]Send response to host [11:35:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103642,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [11:35:22]free response buf [11:35:22]execute_script done [11:35:22]execute_script returns [11:35:22]free content buf [11:35:22]Sock 7.Close socket [11:35:22]Sock 7.Thread stoped [11:35:26]OFD Sender: No OFD packet to send [11:35:31]OFD Sender: No OFD packet to send [11:35:36]OFD Sender: No OFD packet to send [11:35:41]OFD Sender: No OFD packet to send [11:35:46]OFD Sender: No OFD packet to send [11:35:51]OFD Sender: No OFD packet to send [11:35:56]OFD Sender: No OFD packet to send [11:36:01]OFD Sender: No OFD packet to send [11:36:06]OFD Sender: No OFD packet to send [11:36:11]OFD Sender: No OFD packet to send [11:36:16]OFD Sender: No OFD packet to send [11:36:21]OFD Sender: No OFD packet to send [11:36:26]OFD Sender: No OFD packet to send [11:36:31]OFD Sender: No OFD packet to send [11:36:34]accept exits with 9 [11:36:34]New connection [11:36:34]New thread 3067227492 created [11:36:34]Thread 3067084132 joined [11:36:34]Waiting for new connection... [11:36:34] Sock 9.Parse request [11:36:34]Sock 9.Check first char [11:36:34]Sock 9.First char is OK [11:36:34]request: POST /json_proto HTTP/1.0 [11:36:34]Method: POST [11:36:34]URL: /json_proto [11:36:34]Method is POST - this is cgi request [11:36:34]url: /json_proto [11:36:34]query_string will be loaded in cgi processing [11:36:34]execute_cgi json_proto POST (null) [11:36:34]execute_cgi path=json_proto method=POST [11:36:34]POST find Content-Length [11:36:34]Host: 172.17.38.133:8080 [11:36:34]Content-Length: 682 [11:36:34]Content-Type: application/json [11:36:34] [11:36:34]POST finish read [11:36:34]Found Content-Length = 682 [11:36:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672887", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 30.130, "sum" : 2000.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:36:34]execute_script... [11:36:34]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672887", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 30.130, "sum" : 2000.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:36:34]POST & json_proto [11:36:34]process_json_proto [11:36:34]json parsed OK: [11:36:34]protocol is kg_v1.0 [11:36:34]action value=close_receipt [11:36:34]process_action close_receipt [11:36:34]cmd_close_receipt [11:36:34]MH_GetDate [11:36:34]Write to MH i2c: F0 00 00 D7 A0 66 [11:36:34]Write i2c OK [11:36:34]MH_I2C_Read... [11:36:34]Read from MH i2c: F0 [11:36:34]MH_I2C_Read... [11:36:34]Read from MH i2c: F0 09 00 [11:36:34]MH_I2C_Read... [11:36:34]Read from MH i2c: F0 09 00 D7 A0 00 CF C2 72 66 BD 8F 7C 64 04 [11:36:34]GetLastDocTimeStamp 1718796930 [11:36:34]current date 1718797007 [11:36:34]FM_GetShiftState [11:36:34]SAM_PROTO_GetShiftState [11:36:34]wFMCommunicate request_size=4 [11:36:34]MH_SAM_APDU [11:36:34]CAPDU: 80 13 01 00 [11:36:34]Write to MH i2c: E2 08 00 D8 A0 80 13 01 00 00 00 00 00 F5 [11:36:34]Write i2c OK [11:36:34]MH_I2C_Read... [11:36:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:36:34]Read from MH i2c: E2 [11:36:34]MH_I2C_Read... [11:36:34]Read from MH i2c: E2 0E 00 [11:36:34]MH_I2C_Read... [11:36:34]Read from MH i2c: E2 0E 00 D8 A0 00 09 00 01 04 26 72 66 00 00 00 00 90 00 03 [11:36:34]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [11:36:34]wFMCommunicate OK [11:36:34]SAM_PROTO_GetShiftState done [11:36:34]FM_GetShiftState done [11:36:34]opened in 1718756868 [11:36:34]opened+sec_in_day 1718843268 [11:36:34]quantity*price = 200063 [11:36:34]sum+1 = 200064 [11:36:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.46 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 73 19.06.2024 11:36 Смена: 353 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103643 ФПД: 203586590481812 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T113647&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103643&fm=203586590481812&tin=02508201610067®Number=0000000000092785&sum=200000 [11:36:36]StoreToDocumentArchive [11:36:36]shift 353 fd 103643 [11:36:36]save to /storage/0353/doc_00103643 [11:36:36]save last doc name /storage/0353/doc_00103643 to /storage/kkm_last_doc_name [11:36:36]save OK [11:36:36]Clear old archive folders... [11:36:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:36:36]tlvbuf is 0137F4E0 [11:36:36]SAM_PROTO_ClearQueue [11:36:36]wFMCommunicate request_size=4 [11:36:36]MH_SAM_APDU [11:36:36]CAPDU: 80 09 00 00 [11:36:36]Write to MH i2c: E2 08 00 E5 A0 80 09 00 00 00 00 00 00 F7 [11:36:36]Write i2c OK [11:36:36]MH_I2C_Read... [11:36:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:36:36]Read from MH i2c: E2 [11:36:36]MH_I2C_Read... [11:36:36]Read from MH i2c: E2 03 00 [11:36:36]MH_I2C_Read... [11:36:36]Read from MH i2c: E2 03 00 E5 A0 00 90 00 F9 [11:36:36]RAPDU: 90 00 [11:36:36]wFMCommunicate OK [11:36:36]SAM_PROTO_ClearQueue done [11:36:36]KKMCreateOFDPacket [11:36:36]OFDProtocolAddRootSTLVToBuf [11:36:36]FM_MakeSignedData [11:36:36]FM_MakeSignedData [11:36:36]SAM_PROTO_SignData [11:36:36]wFMCommunicate request_size=4 [11:36:36]MH_SAM_APDU [11:36:36]CAPDU: 80 0D 01 02 [11:36:36]Write to MH i2c: E2 08 00 E6 A0 80 0D 01 02 00 00 00 00 FF [11:36:36]Write i2c OK [11:36:36]MH_I2C_Read... [11:36:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:36:36]Read from MH i2c: E2 [11:36:36]MH_I2C_Read... [11:36:36]Read from MH i2c: E2 03 00 [11:36:36]MH_I2C_Read... [11:36:36]Read from MH i2c: E2 03 00 E6 A0 00 90 00 FA [11:36:36]RAPDU: 90 00 [11:36:36]wFMCommunicate OK [11:36:36]wFMCommunicate request_size=255 [11:36:36]MH_SAM_APDU [11:36:36]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B2 75 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FE 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 CF C2 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 DB 94 01 00 35 04 06 00 B9 [11:36:36]Write to MH i2c: E2 02 01 E7 A0 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B2 75 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FE 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 CF C2 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 DB 94 01 00 35 04 06 00 B9 00 00 EB [11:36:36]Write i2c OK [11:36:36]MH_I2C_Read... [11:36:36]OFD Sender: No OFD packet to send [11:36:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:36:36]Read from MH i2c: E2 [11:36:36]MH_I2C_Read... [11:36:36]Read from MH i2c: E2 03 00 [11:36:36]MH_I2C_Read... [11:36:36]Read from MH i2c: E2 03 00 E7 A0 00 90 00 FB [11:36:36]RAPDU: 90 00 [11:36:36]wFMCommunicate OK [11:36:36]wFMCommunicate request_size=10 [11:36:36]MH_SAM_APDU [11:36:36]CAPDU: 80 0D 02 02 05 29 32 68 1D 94 [11:36:36]Write to MH i2c: E2 0D 00 E8 A0 80 0D 02 02 05 00 29 32 68 1D 94 00 00 80 [11:36:36]Write i2c OK [11:36:36]MH_I2C_Read... [11:36:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:36:36]Read from MH i2c: E2 [11:36:36]MH_I2C_Read... [11:36:36]Read from MH i2c: E2 03 00 [11:36:36]MH_I2C_Read... [11:36:36]Read from MH i2c: E2 03 00 E8 A0 00 90 00 FC [11:36:36]RAPDU: 90 00 [11:36:36]wFMCommunicate OK [11:36:36]wFMCommunicate request_size=4 [11:36:36]MH_SAM_APDU [11:36:36]CAPDU: 80 0D 03 02 [11:36:36]Write to MH i2c: E2 08 00 E9 A0 80 0D 03 02 00 00 00 00 04 [11:36:36]Write i2c OK [11:36:36]MH_I2C_Read... [11:36:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:36:36]Read from MH i2c: E2 [11:36:36]MH_I2C_Read... [11:36:36]Read from MH i2c: E2 0B 00 [11:36:36]MH_I2C_Read... [11:36:36]Read from MH i2c: E2 0B 00 E9 A0 00 6F B5 CE CA 6E 75 32 0C 90 00 E2 [11:36:36]RAPDU: 6F B5 CE CA 6E 75 32 0C 90 00 [11:36:36]wFMCommunicate OK [11:36:36]SAM_PROTO_SignData done [11:36:36]FM_MakeSignedData done [11:36:36]CreateOFDProtocolMessage [11:36:36]wFMCommunicate request_size=4 [11:36:36]MH_SAM_APDU [11:36:36]CAPDU: 80 11 00 00 [11:36:36]Write to MH i2c: E2 08 00 EA A0 80 11 00 00 00 00 00 00 04 [11:36:36]Write i2c OK [11:36:36]MH_I2C_Read... [11:36:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:36:36]Read from MH i2c: E2 [11:36:36]MH_I2C_Read... [11:36:36]Read from MH i2c: E2 17 00 [11:36:36]MH_I2C_Read... [11:36:36]Read from MH i2c: E2 17 00 EA A0 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 57 [11:36:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [11:36:36]wFMCommunicate OK [11:36:36]CreateOFDProtocolMessage done [11:36:36]OFDSenderStorePacket 103643 [11:36:36]StoreOFDPacket docnum=103643 [11:36:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 09 66 07 01 B7 A5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B2 75 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FE 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 CF C2 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 DB 94 01 00 35 04 06 00 B9 29 32 68 1D 94 6F B5 CE CA 6E 75 32 0C [11:36:36]CheckFolder [11:36:36]dirname=/storage/ofd_packets [11:36:36]CheckFolder done [11:36:36]ProducePacketName [11:36:36]name=ofd_packets/00103643 [11:36:36]NVStorageSaveData ofd_packets/00103643 [11:36:36]File name is /storage/ofd_packets/00103643 [11:36:36]Write 301 bytes [11:36:36]NVStorageSaveData done [11:36:36]OFDSenderStorePacket done [11:36:36]KKMCreateOFDPacket done [11:36:36]NVStorageSaveData kkm_last_timestamp [11:36:36]File name is /storage/kkm_last_timestamp [11:36:36]Write 4 bytes [11:36:36]NVStorageSaveData done [11:36:36]ExternCall_PrintAddStr [11:36:36]wPrintStart [11:36:36]Write to MH i2c: 01 00 00 EB A0 8B [11:36:36]Write i2c OK [11:36:36]MH_I2C_Read... [11:36:36]Read from MH i2c: 01 [11:36:36]MH_I2C_Read... [11:36:36]Read from MH i2c: 01 07 00 [11:36:36]MH_I2C_Read... [11:36:36]Read from MH i2c: 01 07 00 EB A0 00 00 00 00 00 FF 0F A0 [11:36:36]RasterBufferAndPrint [11:36:36]line Счет N : (1)672887 [11:36:36]line ИНН: 02508201610067 [11:36:36]line Контрольно-Кассовый Чек [11:36:36]line ПРОДАЖА [11:36:36]line ТРК (МРК, ГНК) : 32 [11:36:36]line Товар: 2710124130 [11:36:36]line Аи-92-К-5 [11:36:36]line 30.130 * 66.40 [11:36:36]line = 2000.63 [11:36:36]line НДС 12% НСП 1% [11:36:36]line > о реализуемом товаре [11:36:36]line ОКРУГЛЕНИЕ: -0.63 [11:36:36]line ИТОГО: 2000.00 [11:36:36]line Внесено: 2000.00 [11:36:36]line СДАЧА: 0.00 [11:36:36]line НСП 1% : 17.70 [11:36:36]line НДС 12% : 212.46 [11:36:36]line Наличными: 2000.00 [11:36:36]line Безнал.: 0.00 [11:36:36]line Место: АЗС № 120 "Партнер Нефть" [11:36:36]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [11:36:36]line СНО: Общий режим [11:36:36]line Чек 73 19.06.2024 11:36 [11:36:36]line Смена: 353 ФФД: 1.0 [11:36:36]line ЗНМ: 0300000164 [11:36:36]line РНМ: 0000000000092785 [11:36:36]line Версия ККМ: 001 [11:36:36]line ФМ: 0000000000875093 [11:36:36]line ФД: 103643 [11:36:36]line ФПД: 203586590481812 [11:36:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T113647&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103643&fm=203586590481812&tin=02508201610067®Number=0000000000092785&sum=200000 [11:36:36]OFD Sender: Processing packet 103643 [packets to send 17, broken 16] [11:36:36]ProducePacketName [11:36:36]name=ofd_packets/00103643 [11:36:36]OFD Sender: To server: pG, [11:36:36]CommunicateWithHost lk.salyk.kg:30040 [11:36:36]ConnectInit lk.salyk.kg [11:36:36]written 0, free lines is 4095 [11:36:37]Connected sock=10 [11:36:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 09 66 07 01 B7 A5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B2 75 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FE 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 CF C2 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 DB 94 01 00 35 04 06 00 B9 29 32 68 1D 94 6F B5 CE CA 6E 75 32 0C [11:36:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 90 03 47 00 93 8C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 DB 94 01 00 F4 03 04 00 58 69 72 66 B6 04 01 00 00 F1 3C A1 5A 30 EA D2 3E [11:36:37]CommunicateWithHost err = 0 [11:36:37]CheckOFDResponse [11:36:37]1017 (14) - 77093643461234 [11:36:37]1041 (16) - 0000000000875093 [11:36:37]1040 (4) - 103643 [11:36:37]1012 (4) - 19.06.2024 05:15 [11:36:37]1206 (1) - 0 [11:36:37]OFD Sender: Remove packet 103643 [11:36:37]ProducePacketName [11:36:37]name=ofd_packets/00103643 [11:36:37]NVStorageDeleteData [11:36:37]Write to MH i2c: 01 00 00 16 A1 B7 [11:36:37]Write i2c OK [11:36:37]MH_I2C_Read... [11:36:37]Read from MH i2c: 01 [11:36:37]MH_I2C_Read... [11:36:37]Read from MH i2c: 01 07 00 [11:36:37]MH_I2C_Read... [11:36:37]Read from MH i2c: 01 07 00 16 A1 00 00 00 00 00 E9 0C B3 [11:36:37]RasterBufferAndPrint [11:36:37]line [11:36:37]line [11:36:37]line [11:36:37]line [11:36:37]line [11:36:37]written 0, free lines is 3311 [11:36:37]MH_Cut [11:36:37]Write to MH i2c: D1 01 00 1D A1 01 90 [11:36:37]Write i2c OK [11:36:37]MH_I2C_Read... [11:36:37]Read from MH i2c: D1 [11:36:37]MH_I2C_Read... [11:36:37]Read from MH i2c: D1 01 00 [11:36:37]MH_I2C_Read... [11:36:37]Read from MH i2c: D1 01 00 1D A1 00 8F [11:36:37]Write to MH i2c: 01 00 00 1E A1 BF [11:36:37]Write i2c OK [11:36:37]MH_I2C_Read... [11:36:37]OFD Sender: No OFD packet to send [11:36:38]*** Cut start [11:36:38]*** Partial cut [11:36:38]*** CUTSNS_PIN = 1 [11:36:38]*** CUTSNS_PIN = 0 [11:36:38]*** Brake cut motor [11:36:38]Read from MH i2c: 01 [11:36:38]MH_I2C_Read... [11:36:38]*** Stop cut motor [11:36:38]*** Cut end [11:36:38]Read from MH i2c: 01 07 00 [11:36:38]MH_I2C_Read... [11:36:38]Read from MH i2c: 01 07 00 1E A1 00 00 00 00 00 FF 0F D4 [11:36:38]process_action close_receipt done [11:36:38]requested_data is exist [11:36:38]produce_requested_data [11:36:38]requested_item fm.sn is exist - process it [11:36:38]wFMCommunicate request_size=4 [11:36:38]MH_SAM_APDU [11:36:38]CAPDU: 80 11 00 00 [11:36:38]Write to MH i2c: E2 08 00 1F A1 80 11 00 00 00 00 00 00 3A [11:36:38]Write i2c OK [11:36:38]MH_I2C_Read... [11:36:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:36:38]Read from MH i2c: E2 [11:36:38]MH_I2C_Read... [11:36:38]Read from MH i2c: E2 17 00 [11:36:38]MH_I2C_Read... [11:36:38]Read from MH i2c: E2 17 00 1F A1 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 8D [11:36:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [11:36:38]wFMCommunicate OK [11:36:38]requested_item fd.num is exist - process it [11:36:38]SAM_PROTO_GetFieldsCounters [11:36:38]wFMCommunicate request_size=4 [11:36:38]MH_SAM_APDU [11:36:38]CAPDU: 80 13 00 00 [11:36:38]Write to MH i2c: E2 08 00 20 A1 80 13 00 00 00 00 00 00 3D [11:36:38]Write i2c OK [11:36:38]MH_I2C_Read... [11:36:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:36:38]Read from MH i2c: E2 [11:36:38]MH_I2C_Read... [11:36:38]Read from MH i2c: E2 62 00 [11:36:38]MH_I2C_Read... [11:36:38]Read from MH i2c: E2 62 00 20 A1 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 DB 94 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 49 00 00 00 5E 04 04 00 49 00 00 00 57 04 04 00 4A 00 00 00 19 04 04 00 00 00 00 00 90 00 11 [11:36:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 DB 94 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 49 00 00 00 5E 04 04 00 49 00 00 00 57 04 04 00 4A 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:36:38]wFMCommunicate OK [11:36:38]SAM_PROTO_GetFieldsCounters done [11:36:38]requested_item shift.num is exist - process it [11:36:38]requested_item shift.opened is exist - process it [11:36:38]req_shift_opened [11:36:38]FM_GetShiftState [11:36:38]SAM_PROTO_GetShiftState [11:36:38]wFMCommunicate request_size=4 [11:36:38]MH_SAM_APDU [11:36:38]CAPDU: 80 13 01 00 [11:36:38]Write to MH i2c: E2 08 00 21 A1 80 13 01 00 00 00 00 00 3F [11:36:38]Write i2c OK [11:36:38]MH_I2C_Read... [11:36:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:36:39]Read from MH i2c: E2 [11:36:39]MH_I2C_Read... [11:36:39]Read from MH i2c: E2 0E 00 [11:36:39]MH_I2C_Read... [11:36:39]Read from MH i2c: E2 0E 00 21 A1 00 09 00 01 04 26 72 66 00 00 00 00 90 00 4D [11:36:39]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [11:36:39]wFMCommunicate OK [11:36:39]SAM_PROTO_GetShiftState done [11:36:39]FM_GetShiftState done [11:36:39]req_shift_opened done [11:36:39]requested_item shift.open_date is exist - process it [11:36:39]req_shift_open_date [11:36:39]req_shift_open_date done [11:36:39]produce_requested_data done [11:36:39]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103643,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [11:36:39]process_action_free close_receipt [11:36:39]json_value_free [11:36:39]json_value_free done [11:36:39]process_json_proto returns [11:36:39]Send response to host [11:36:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103643,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [11:36:39]free response buf [11:36:39]execute_script done [11:36:39]execute_script returns [11:36:39]free content buf [11:36:39]Sock 9.Close socket [11:36:39]Sock 9.Thread stoped [11:36:42]OFD Sender: No OFD packet to send [11:36:47]OFD Sender: No OFD packet to send [11:36:52]OFD Sender: No OFD packet to send [11:36:57]OFD Sender: No OFD packet to send [11:37:02]OFD Sender: No OFD packet to send [11:37:07]OFD Sender: No OFD packet to send [11:37:12]OFD Sender: No OFD packet to send [11:37:17]OFD Sender: No OFD packet to send [11:37:22]OFD Sender: No OFD packet to send [11:37:27]OFD Sender: No OFD packet to send [11:37:32]OFD Sender: No OFD packet to send [11:37:37]OFD Sender: No OFD packet to send [11:37:42]OFD Sender: No OFD packet to send [11:37:47]OFD Sender: No OFD packet to send [11:37:52]OFD Sender: No OFD packet to send [11:37:57]OFD Sender: No OFD packet to send [11:38:02]OFD Sender: No OFD packet to send [11:38:07]OFD Sender: No OFD packet to send [11:38:12]OFD Sender: No OFD packet to send [11:38:17]OFD Sender: No OFD packet to send [11:38:22]OFD Sender: No OFD packet to send [11:38:27]OFD Sender: No OFD packet to send [11:38:32]OFD Sender: No OFD packet to send [11:38:37]OFD Sender: No OFD packet to send [11:38:42]OFD Sender: No OFD packet to send [11:38:47]OFD Sender: No OFD packet to send [11:38:52]OFD Sender: No OFD packet to send [11:38:57]OFD Sender: No OFD packet to send [11:39:02]OFD Sender: No OFD packet to send [11:39:07]OFD Sender: No OFD packet to send [11:39:13]OFD Sender: No OFD packet to send [11:39:18]OFD Sender: No OFD packet to send [11:39:23]OFD Sender: No OFD packet to send [11:39:28]OFD Sender: No OFD packet to send [11:39:33]OFD Sender: No OFD packet to send [11:39:38]OFD Sender: No OFD packet to send [11:39:43]OFD Sender: No OFD packet to send [11:39:46]accept exits with 7 [11:39:46]New connection [11:39:46]New thread 3067084132 created [11:39:46]Thread 3067227492 joined [11:39:46]Waiting for new connection... [11:39:46] Sock 7.Parse request [11:39:46]Sock 7.Check first char [11:39:46]Sock 7.First char is OK [11:39:46]request: POST /json_proto HTTP/1.0 [11:39:46]Method: POST [11:39:46]URL: /json_proto [11:39:46]Method is POST - this is cgi request [11:39:46]url: /json_proto [11:39:46]query_string will be loaded in cgi processing [11:39:46]execute_cgi json_proto POST (null) [11:39:46]execute_cgi path=json_proto method=POST [11:39:46]POST find Content-Length [11:39:46]Host: 172.17.38.133:8080 [11:39:46]Content-Length: 682 [11:39:46]Content-Type: application/json [11:39:46] [11:39:46]POST finish read [11:39:46]Found Content-Length = 682 [11:39:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672888", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 22.600, "sum" : 1500.64, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:39:46]execute_script... [11:39: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)672888", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 22.600, "sum" : 1500.64, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:39:46]POST & json_proto [11:39:46]process_json_proto [11:39:46]json parsed OK: [11:39:46]protocol is kg_v1.0 [11:39:46]action value=close_receipt [11:39:46]process_action close_receipt [11:39:46]cmd_close_receipt [11:39:46]MH_GetDate [11:39:46]Write to MH i2c: F0 00 00 22 A1 B2 [11:39:46]Write i2c OK [11:39:46]MH_I2C_Read... [11:39:46]Read from MH i2c: F0 [11:39:46]MH_I2C_Read... [11:39:46]Read from MH i2c: F0 09 00 [11:39:46]MH_I2C_Read... [11:39:46]Read from MH i2c: F0 09 00 22 A1 00 8E C3 72 66 BD 8F 7C 64 10 [11:39:46]GetLastDocTimeStamp 1718797007 [11:39:46]current date 1718797198 [11:39:46]FM_GetShiftState [11:39:46]SAM_PROTO_GetShiftState [11:39:46]wFMCommunicate request_size=4 [11:39:46]MH_SAM_APDU [11:39:46]CAPDU: 80 13 01 00 [11:39:46]Write to MH i2c: E2 08 00 23 A1 80 13 01 00 00 00 00 00 41 [11:39:46]Write i2c OK [11:39:46]MH_I2C_Read... [11:39:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:39:46]Read from MH i2c: E2 [11:39:46]MH_I2C_Read... [11:39:46]Read from MH i2c: E2 0E 00 [11:39:46]MH_I2C_Read... [11:39:46]Read from MH i2c: E2 0E 00 23 A1 00 09 00 01 04 26 72 66 00 00 00 00 90 00 4F [11:39:46]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [11:39:46]wFMCommunicate OK [11:39:46]SAM_PROTO_GetShiftState done [11:39:46]FM_GetShiftState done [11:39:46]opened in 1718756868 [11:39:46]opened+sec_in_day 1718843268 [11:39:46]quantity*price = 150064 [11:39:46]sum+1 = 150065 [11:39:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.64 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.36 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 74 19.06.2024 11:39 Смена: 353 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103644 ФПД: 7451331994724 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T113958&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103644&fm=7451331994724&tin=02508201610067®Number=0000000000092785&sum=150000 [11:39:47]StoreToDocumentArchive [11:39:47]shift 353 fd 103644 [11:39:47]save to /storage/0353/doc_00103644 [11:39:47]save last doc name /storage/0353/doc_00103644 to /storage/kkm_last_doc_name [11:39:47]save OK [11:39:47]Clear old archive folders... [11:39:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:39:47]tlvbuf is 0139E240 [11:39:47]SAM_PROTO_ClearQueue [11:39:47]wFMCommunicate request_size=4 [11:39:47]MH_SAM_APDU [11:39:47]CAPDU: 80 09 00 00 [11:39:47]Write to MH i2c: E2 08 00 30 A1 80 09 00 00 00 00 00 00 43 [11:39:47]Write i2c OK [11:39:47]MH_I2C_Read... [11:39:47]Read from MH i2c: E2 [11:39:47]MH_I2C_Read... [11:39:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:39:47]Read from MH i2c: E2 03 00 [11:39:47]MH_I2C_Read... [11:39:47]Read from MH i2c: E2 03 00 30 A1 00 90 00 45 [11:39:47]RAPDU: 90 00 [11:39:47]wFMCommunicate OK [11:39:47]SAM_PROTO_ClearQueue done [11:39:47]KKMCreateOFDPacket [11:39:47]OFDProtocolAddRootSTLVToBuf [11:39:47]FM_MakeSignedData [11:39:47]FM_MakeSignedData [11:39:47]SAM_PROTO_SignData [11:39:47]wFMCommunicate request_size=4 [11:39:47]MH_SAM_APDU [11:39:47]CAPDU: 80 0D 01 02 [11:39:47]Write to MH i2c: E2 08 00 31 A1 80 0D 01 02 00 00 00 00 4B [11:39:47]Write i2c OK [11:39:47]MH_I2C_Read... [11:39:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:39:47]Read from MH i2c: E2 [11:39:47]MH_I2C_Read... [11:39:47]Read from MH i2c: E2 03 00 [11:39:47]MH_I2C_Read... [11:39:47]Read from MH i2c: E2 03 00 31 A1 00 90 00 46 [11:39:47]RAPDU: 90 00 [11:39:47]wFMCommunicate OK [11:39:47]wFMCommunicate request_size=255 [11:39:47]MH_SAM_APDU [11:39:47]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 48 58 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 30 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 40 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 8E C3 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 DC 94 01 00 35 04 06 00 06 [11:39:47]Write to MH i2c: E2 02 01 32 A1 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 48 58 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 30 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 40 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 8E C3 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 DC 94 01 00 35 04 06 00 06 00 00 F5 [11:39:47]Write i2c OK [11:39:47]MH_I2C_Read... [11:39:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:39:47]Read from MH i2c: E2 [11:39:47]MH_I2C_Read... [11:39:47]Read from MH i2c: E2 03 00 [11:39:47]MH_I2C_Read... [11:39:47]Read from MH i2c: E2 03 00 32 A1 00 90 00 47 [11:39:47]RAPDU: 90 00 [11:39:47]wFMCommunicate OK [11:39:47]wFMCommunicate request_size=10 [11:39:47]MH_SAM_APDU [11:39:47]CAPDU: 80 0D 02 02 05 C6 E5 FF 24 64 [11:39:47]Write to MH i2c: E2 0D 00 33 A1 80 0D 02 02 05 00 C6 E5 FF 24 64 00 00 8A [11:39:47]Write i2c OK [11:39:47]MH_I2C_Read... [11:39:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:39:47]Read from MH i2c: E2 [11:39:47]MH_I2C_Read... [11:39:47]Read from MH i2c: E2 03 00 [11:39:47]MH_I2C_Read... [11:39:47]Read from MH i2c: E2 03 00 33 A1 00 90 00 48 [11:39:47]RAPDU: 90 00 [11:39:47]wFMCommunicate OK [11:39:47]wFMCommunicate request_size=4 [11:39:47]MH_SAM_APDU [11:39:47]CAPDU: 80 0D 03 02 [11:39:47]Write to MH i2c: E2 08 00 34 A1 80 0D 03 02 00 00 00 00 50 [11:39:47]Write i2c OK [11:39:47]MH_I2C_Read... [11:39:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:39:47]Read from MH i2c: E2 [11:39:47]MH_I2C_Read... [11:39:47]Read from MH i2c: E2 0B 00 [11:39:47]MH_I2C_Read... [11:39:47]Read from MH i2c: E2 0B 00 34 A1 00 B9 04 CA 89 F4 FE 12 85 90 00 EA [11:39:47]RAPDU: B9 04 CA 89 F4 FE 12 85 90 00 [11:39:47]wFMCommunicate OK [11:39:47]SAM_PROTO_SignData done [11:39:47]FM_MakeSignedData done [11:39:47]CreateOFDProtocolMessage [11:39:47]wFMCommunicate request_size=4 [11:39:47]MH_SAM_APDU [11:39:47]CAPDU: 80 11 00 00 [11:39:47]Write to MH i2c: E2 08 00 35 A1 80 11 00 00 00 00 00 00 50 [11:39:47]Write i2c OK [11:39:47]MH_I2C_Read... [11:39:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:39:48]Read from MH i2c: E2 [11:39:48]MH_I2C_Read... [11:39:48]Read from MH i2c: E2 17 00 [11:39:48]MH_I2C_Read... [11:39:48]Read from MH i2c: E2 17 00 35 A1 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 A3 [11:39:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [11:39:48]wFMCommunicate OK [11:39:48]CreateOFDProtocolMessage done [11:39:48]OFDSenderStorePacket 103644 [11:39:48]StoreOFDPacket docnum=103644 [11:39:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 0D F7 07 01 01 E1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 48 58 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 30 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 40 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 8E C3 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 DC 94 01 00 35 04 06 00 06 C6 E5 FF 24 64 B9 04 CA 89 F4 FE 12 85 [11:39:48]CheckFolder [11:39:48]dirname=/storage/ofd_packets [11:39:48]CheckFolder done [11:39:48]ProducePacketName [11:39:48]name=ofd_packets/00103644 [11:39:48]NVStorageSaveData ofd_packets/00103644 [11:39:48]File name is /storage/ofd_packets/00103644 [11:39:48]Write 301 bytes [11:39:48]NVStorageSaveData done [11:39:48]OFDSenderStorePacket done [11:39:48]KKMCreateOFDPacket done [11:39:48]NVStorageSaveData kkm_last_timestamp [11:39:48]File name is /storage/kkm_last_timestamp [11:39:48]Write 4 bytes [11:39:48]NVStorageSaveData done [11:39:48]ExternCall_PrintAddStr [11:39:48]wPrintStart [11:39:48]Write to MH i2c: 01 00 00 36 A1 D7 [11:39:48]Write i2c OK [11:39:48]MH_I2C_Read... [11:39:48]Read from MH i2c: 01 [11:39:48]MH_I2C_Read... [11:39:48]Read from MH i2c: 01 07 00 [11:39:48]MH_I2C_Read... [11:39:48]Read from MH i2c: 01 07 00 36 A1 00 00 00 00 00 FF 0F EC [11:39:48]RasterBufferAndPrint [11:39:48]line Счет N : (1)672888 [11:39:48]line ИНН: 02508201610067 [11:39:48]line Контрольно-Кассовый Чек [11:39:48]line ПРОДАЖА [11:39:48]line ТРК (МРК, ГНК) : 42 [11:39:48]line Товар: 2710124130 [11:39:48]line Аи-92-К-5 [11:39:48]line 22.600 * 66.40 [11:39:48]line = 1500.64 [11:39:48]line НДС 12% НСП 1% [11:39:48]line > о реализуемом товаре [11:39:48]line ОКРУГЛЕНИЕ: -0.64 [11:39:48]line ИТОГО: 1500.00 [11:39:48]line Внесено: 1500.00 [11:39:48]line СДАЧА: 0.00 [11:39:48]line НСП 1% : 13.28 [11:39:48]line НДС 12% : 159.36 [11:39:48]line Наличными: 1500.00 [11:39:48]line Безнал.: 0.00 [11:39:48]line Место: АЗС № 120 "Партнер Нефть" [11:39:48]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [11:39:48]line СНО: Общий режим [11:39:48]line Чек 74 19.06.2024 11:39 [11:39:48]line Смена: 353 ФФД: 1.0 [11:39:48]line ЗНМ: 0300000164 [11:39:48]line РНМ: 0000000000092785 [11:39:48]line Версия ККМ: 001 [11:39:48]line ФМ: 0000000000875093 [11:39:48]line ФД: 103644 [11:39:48]line ФПД: 7451331994724 [11:39:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T113958&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103644&fm=7451331994724&tin=02508201610067®Number=0000000000092785&sum=150000 [11:39:48]OFD Sender: Processing packet 103644 [packets to send 17, broken 16] [11:39:48]ProducePacketName [11:39:48]name=ofd_packets/00103644 [11:39:48]OFD Sender: To server: pG, [11:39:48]CommunicateWithHost lk.salyk.kg:30040 [11:39:48]ConnectInit lk.salyk.kg [11:39:48]written 0, free lines is 4095 [11:39:48]Connected sock=10 [11:39: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 39 33 0F 01 00 00 0D F7 07 01 01 E1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 48 58 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 30 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 40 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 8E C3 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 DC 94 01 00 35 04 06 00 06 C6 E5 FF 24 64 B9 04 CA 89 F4 FE 12 85 [11:39:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 CA BE 47 00 EB 72 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 DC 94 01 00 F4 03 04 00 17 6A 72 66 B6 04 01 00 00 C8 15 E7 02 2D F6 8A 6D [11:39:48]CommunicateWithHost err = 0 [11:39:48]CheckOFDResponse [11:39:48]1017 (14) - 77093643461234 [11:39:48]1041 (16) - 0000000000875093 [11:39:48]1040 (4) - 103644 [11:39:48]1012 (4) - 19.06.2024 05:18 [11:39:48]1206 (1) - 0 [11:39:48]OFD Sender: Remove packet 103644 [11:39:48]ProducePacketName [11:39:48]name=ofd_packets/00103644 [11:39:48]NVStorageDeleteData [11:39:48]Write to MH i2c: 01 00 00 61 A1 02 [11:39:48]Write i2c OK [11:39:48]MH_I2C_Read... [11:39:48]Read from MH i2c: 01 [11:39:48]MH_I2C_Read... [11:39:48]Read from MH i2c: 01 07 00 [11:39:48]MH_I2C_Read... [11:39:48]Read from MH i2c: 01 07 00 61 A1 00 00 00 00 00 E9 0C FE [11:39:48]RasterBufferAndPrint [11:39:48]line [11:39:48]line [11:39:48]line [11:39:48]line [11:39:48]line [11:39:48]written 0, free lines is 3311 [11:39:48]MH_Cut [11:39:48]Write to MH i2c: D1 01 00 68 A1 01 DB [11:39:48]Write i2c OK [11:39:48]MH_I2C_Read... [11:39:48]Read from MH i2c: D1 [11:39:48]MH_I2C_Read... [11:39:48]Read from MH i2c: D1 01 00 [11:39:48]MH_I2C_Read... [11:39:48]Read from MH i2c: D1 01 00 68 A1 00 DA [11:39:48]Write to MH i2c: 01 00 00 69 A1 0A [11:39:48]Write i2c OK [11:39:48]MH_I2C_Read... [11:39:49]OFD Sender: No OFD packet to send [11:39:49]*** Cut start [11:39:49]*** Partial cut [11:39:49]*** CUTSNS_PIN = 1 [11:39:49]*** CUTSNS_PIN = 0 [11:39:49]*** Brake cut motor [11:39:50]Read from MH i2c: 01 [11:39:50]MH_I2C_Read... [11:39:50]*** Stop cut motor [11:39:50]*** Cut end [11:39:50]Read from MH i2c: 01 07 00 [11:39:50]MH_I2C_Read... [11:39:50]Read from MH i2c: 01 07 00 69 A1 00 00 00 00 00 FF 0F 1F [11:39:50]process_action close_receipt done [11:39:50]requested_data is exist [11:39:50]produce_requested_data [11:39:50]requested_item fm.sn is exist - process it [11:39:50]wFMCommunicate request_size=4 [11:39:50]MH_SAM_APDU [11:39:50]CAPDU: 80 11 00 00 [11:39:50]Write to MH i2c: E2 08 00 6A A1 80 11 00 00 00 00 00 00 85 [11:39:50]Write i2c OK [11:39:50]MH_I2C_Read... [11:39:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:39:50]Read from MH i2c: E2 [11:39:50]MH_I2C_Read... [11:39:50]Read from MH i2c: E2 17 00 [11:39:50]MH_I2C_Read... [11:39:50]Read from MH i2c: E2 17 00 6A A1 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 D8 [11:39:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [11:39:50]wFMCommunicate OK [11:39:50]requested_item fd.num is exist - process it [11:39:50]SAM_PROTO_GetFieldsCounters [11:39:50]wFMCommunicate request_size=4 [11:39:50]MH_SAM_APDU [11:39:50]CAPDU: 80 13 00 00 [11:39:50]Write to MH i2c: E2 08 00 6B A1 80 13 00 00 00 00 00 00 88 [11:39:50]Write i2c OK [11:39:50]MH_I2C_Read... [11:39:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:39:50]Read from MH i2c: E2 [11:39:50]MH_I2C_Read... [11:39:50]Read from MH i2c: E2 62 00 [11:39:50]MH_I2C_Read... [11:39:50]Read from MH i2c: E2 62 00 6B A1 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 DC 94 01 00 0E 04 04 00 61 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 60 [11:39: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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 DC 94 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 4A 00 00 00 5E 04 04 00 4A 00 00 00 57 04 04 00 4B 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:39:50]wFMCommunicate OK [11:39:50]SAM_PROTO_GetFieldsCounters done [11:39:50]requested_item shift.num is exist - process it [11:39:50]requested_item shift.opened is exist - process it [11:39:50]req_shift_opened [11:39:50]FM_GetShiftState [11:39:50]SAM_PROTO_GetShiftState [11:39:50]wFMCommunicate request_size=4 [11:39:50]MH_SAM_APDU [11:39:50]CAPDU: 80 13 01 00 [11:39:50]Write to MH i2c: E2 08 00 6C A1 80 13 01 00 00 00 00 00 8A [11:39:50]Write i2c OK [11:39:50]MH_I2C_Read... [11:39:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:39:50]Read from MH i2c: E2 [11:39:50]MH_I2C_Read... [11:39:50]Read from MH i2c: E2 0E 00 [11:39:50]MH_I2C_Read... [11:39:50]Read from MH i2c: E2 0E 00 6C A1 00 09 00 01 04 26 72 66 00 00 00 00 90 00 98 [11:39:50]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [11:39:50]wFMCommunicate OK [11:39:50]SAM_PROTO_GetShiftState done [11:39:50]FM_GetShiftState done [11:39:50]req_shift_opened done [11:39:50]requested_item shift.open_date is exist - process it [11:39:50]req_shift_open_date [11:39:50]req_shift_open_date done [11:39:50]produce_requested_data done [11:39:50]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103644,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [11:39:50]process_action_free close_receipt [11:39:50]json_value_free [11:39:50]json_value_free done [11:39:50]process_json_proto returns [11:39:50]Send response to host [11:39:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103644,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [11:39:50]free response buf [11:39:50]execute_script done [11:39:50]execute_script returns [11:39:50]free content buf [11:39:50]Sock 7.Close socket [11:39:50]Sock 7.Thread stoped [11:39:54]OFD Sender: No OFD packet to send [11:39:59]OFD Sender: No OFD packet to send [11:40:04]OFD Sender: No OFD packet to send [11:40:09]OFD Sender: No OFD packet to send [11:40:14]OFD Sender: No OFD packet to send [11:40:19]OFD Sender: No OFD packet to send [11:40:24]OFD Sender: No OFD packet to send [11:40:29]OFD Sender: No OFD packet to send [11:40:34]OFD Sender: No OFD packet to send [11:40:39]OFD Sender: No OFD packet to send [11:40:44]OFD Sender: No OFD packet to send [11:40:49]OFD Sender: No OFD packet to send [11:40:54]OFD Sender: No OFD packet to send [11:40:59]OFD Sender: No OFD packet to send [11:41:04]OFD Sender: No OFD packet to send [11:41:09]OFD Sender: No OFD packet to send [11:41:14]OFD Sender: No OFD packet to send [11:41:19]OFD Sender: No OFD packet to send [11:41:24]OFD Sender: No OFD packet to send [11:41:29]OFD Sender: No OFD packet to send [11:41:34]OFD Sender: No OFD packet to send [11:41:39]OFD Sender: No OFD packet to send [11:41:44]OFD Sender: No OFD packet to send [11:41:49]OFD Sender: No OFD packet to send [11:41:54]OFD Sender: No OFD packet to send [11:41:59]OFD Sender: No OFD packet to send [11:42:04]OFD Sender: No OFD packet to send [11:42:09]OFD Sender: No OFD packet to send [11:42:14]OFD Sender: No OFD packet to send [11:42:19]OFD Sender: No OFD packet to send [11:42:24]OFD Sender: No OFD packet to send [11:42:29]OFD Sender: No OFD packet to send [11:42:34]OFD Sender: No OFD packet to send [11:42:39]OFD Sender: No OFD packet to send [11:42:44]OFD Sender: No OFD packet to send [11:42:49]OFD Sender: No OFD packet to send [11:42:54]OFD Sender: No OFD packet to send [11:42:59]OFD Sender: No OFD packet to send [11:43:04]OFD Sender: No OFD packet to send [11:43:09]OFD Sender: No OFD packet to send [11:43:14]OFD Sender: No OFD packet to send [11:43:15]accept exits with 9 [11:43:15]New connection [11:43:15]New thread 3067227492 created [11:43:15]Thread 3067084132 joined [11:43:15]Waiting for new connection... [11:43:15] Sock 9.Parse request [11:43:15]Sock 9.Check first char [11:43:15]Sock 9.First char is OK [11:43:15]request: POST /json_proto HTTP/1.0 [11:43:15]Method: POST [11:43:15]URL: /json_proto [11:43:15]Method is POST - this is cgi request [11:43:15]url: /json_proto [11:43:15]query_string will be loaded in cgi processing [11:43:15]execute_cgi json_proto POST (null) [11:43:15]execute_cgi path=json_proto method=POST [11:43:15]POST find Content-Length [11:43:15]Host: 172.17.38.133:8080 [11:43:15]Content-Length: 663 [11:43:15]Content-Type: application/json [11:43:15] [11:43:15]POST finish read [11:43:15]Found Content-Length = 663 [11:43:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672889", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 20.000, "sum" : 1478.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "payments": [ { "type": 0, "sum" : 1478.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:43:15]execute_script... [11:43: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)672889", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 20.000, "sum" : 1478.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "payments": [ { "type": 0, "sum" : 1478.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:43:15]POST & json_proto [11:43:15]process_json_proto [11:43:15]json parsed OK: [11:43:15]protocol is kg_v1.0 [11:43:15]action value=close_receipt [11:43:15]process_action close_receipt [11:43:15]cmd_close_receipt [11:43:15]MH_GetDate [11:43:15]Write to MH i2c: F0 00 00 6D A1 FD [11:43:15]Write i2c OK [11:43:15]MH_I2C_Read... [11:43:15]Read from MH i2c: F0 [11:43:15]MH_I2C_Read... [11:43:15]Read from MH i2c: F0 09 00 [11:43:15]MH_I2C_Read... [11:43:15]Read from MH i2c: F0 09 00 6D A1 00 5F C4 72 66 BD 8F 7C 64 2D [11:43:15]GetLastDocTimeStamp 1718797198 [11:43:15]current date 1718797407 [11:43:15]FM_GetShiftState [11:43:15]SAM_PROTO_GetShiftState [11:43:15]wFMCommunicate request_size=4 [11:43:15]MH_SAM_APDU [11:43:15]CAPDU: 80 13 01 00 [11:43:15]Write to MH i2c: E2 08 00 6E A1 80 13 01 00 00 00 00 00 8C [11:43:15]Write i2c OK [11:43:15]MH_I2C_Read... [11:43:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:43:15]Read from MH i2c: E2 [11:43:15]MH_I2C_Read... [11:43:15]Read from MH i2c: E2 0E 00 [11:43:15]MH_I2C_Read... [11:43:15]Read from MH i2c: E2 0E 00 6E A1 00 09 00 01 04 26 72 66 00 00 00 00 90 00 9A [11:43:15]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [11:43:15]wFMCommunicate OK [11:43:15]SAM_PROTO_GetShiftState done [11:43:15]FM_GetShiftState done [11:43:15]opened in 1718756868 [11:43:15]opened+sec_in_day 1718843268 [11:43:15]quantity*price = 147800 [11:43:15]sum+1 = 147801 [11:43:15]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1478.00 Внесено: 1500.00 СДАЧА: 22.00 НСП 1% : 13.08 НДС 12% : 156.96 Наличными: 1478.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 75 19.06.2024 11:43 Смена: 353 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103645 ФПД: 252508874277888 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T114327&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103645&fm=252508874277888&tin=02508201610067®Number=0000000000092785&sum=147800 [11:43:16]StoreToDocumentArchive [11:43:16]shift 353 fd 103645 [11:43:16]save to /storage/0353/doc_00103645 [11:43:16]save last doc name /storage/0353/doc_00103645 to /storage/kkm_last_doc_name [11:43:16]save OK [11:43:16]Clear old archive folders... [11:43:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:43:16]tlvbuf is 0137F620 [11:43:16]SAM_PROTO_ClearQueue [11:43:16]wFMCommunicate request_size=4 [11:43:16]MH_SAM_APDU [11:43:16]CAPDU: 80 09 00 00 [11:43:16]Write to MH i2c: E2 08 00 7B A1 80 09 00 00 00 00 00 00 8E [11:43:16]Write i2c OK [11:43:16]MH_I2C_Read... [11:43:16]Read from MH i2c: E2 [11:43:16]MH_I2C_Read... [11:43:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:43:16]Read from MH i2c: E2 03 00 [11:43:16]MH_I2C_Read... [11:43:16]Read from MH i2c: E2 03 00 7B A1 00 90 00 90 [11:43:16]RAPDU: 90 00 [11:43:16]wFMCommunicate OK [11:43:16]SAM_PROTO_ClearQueue done [11:43:16]KKMCreateOFDPacket [11:43:16]OFDProtocolAddRootSTLVToBuf [11:43:16]FM_MakeSignedData [11:43:16]FM_MakeSignedData [11:43:16]SAM_PROTO_SignData [11:43:16]wFMCommunicate request_size=4 [11:43:16]MH_SAM_APDU [11:43:16]CAPDU: 80 0D 01 02 [11:43:16]Write to MH i2c: E2 08 00 7C A1 80 0D 01 02 00 00 00 00 96 [11:43:16]Write i2c OK [11:43:16]MH_I2C_Read... [11:43:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:43:16]Read from MH i2c: E2 [11:43:16]MH_I2C_Read... [11:43:16]Read from MH i2c: E2 03 00 [11:43:16]MH_I2C_Read... [11:43:16]Read from MH i2c: E2 03 00 7C A1 00 90 00 91 [11:43:16]RAPDU: 90 00 [11:43:16]wFMCommunicate OK [11:43:16]wFMCommunicate request_size=255 [11:43:16]MH_SAM_APDU [11:43:16]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 58 41 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 41 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 50 3D 00 00 00 00 07 04 06 00 58 41 02 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 5F C4 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 DD 94 01 00 35 04 06 00 E5 [11:43:16]Write to MH i2c: E2 02 01 7D A1 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 58 41 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 41 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 50 3D 00 00 00 00 07 04 06 00 58 41 02 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 5F C4 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 DD 94 01 00 35 04 06 00 E5 00 00 90 [11:43:16]Write i2c OK [11:43:16]MH_I2C_Read... [11:43:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:43:16]Read from MH i2c: E2 [11:43:16]MH_I2C_Read... [11:43:16]Read from MH i2c: E2 03 00 [11:43:16]MH_I2C_Read... [11:43:16]Read from MH i2c: E2 03 00 7D A1 00 90 00 92 [11:43:16]RAPDU: 90 00 [11:43:16]wFMCommunicate OK [11:43:16]wFMCommunicate request_size=10 [11:43:16]MH_SAM_APDU [11:43:16]CAPDU: 80 0D 02 02 05 A7 CD C1 04 00 [11:43:16]Write to MH i2c: E2 0D 00 7E A1 80 0D 02 02 05 00 A7 CD C1 04 00 00 00 DC [11:43:16]Write i2c OK [11:43:16]MH_I2C_Read... [11:43:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:43:17]Read from MH i2c: E2 [11:43:17]MH_I2C_Read... [11:43:17]Read from MH i2c: E2 03 00 [11:43:17]MH_I2C_Read... [11:43:17]Read from MH i2c: E2 03 00 7E A1 00 90 00 93 [11:43:17]RAPDU: 90 00 [11:43:17]wFMCommunicate OK [11:43:17]wFMCommunicate request_size=4 [11:43:17]MH_SAM_APDU [11:43:17]CAPDU: 80 0D 03 02 [11:43:17]Write to MH i2c: E2 08 00 7F A1 80 0D 03 02 00 00 00 00 9B [11:43:17]Write i2c OK [11:43:17]MH_I2C_Read... [11:43:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:43:17]Read from MH i2c: E2 [11:43:17]MH_I2C_Read... [11:43:17]Read from MH i2c: E2 0B 00 [11:43:17]MH_I2C_Read... [11:43:17]Read from MH i2c: E2 0B 00 7F A1 00 48 CC DF 0D 01 23 EB 9E 90 00 49 [11:43:17]RAPDU: 48 CC DF 0D 01 23 EB 9E 90 00 [11:43:17]wFMCommunicate OK [11:43:17]SAM_PROTO_SignData done [11:43:17]FM_MakeSignedData done [11:43:17]CreateOFDProtocolMessage [11:43:17]wFMCommunicate request_size=4 [11:43:17]MH_SAM_APDU [11:43:17]CAPDU: 80 11 00 00 [11:43:17]Write to MH i2c: E2 08 00 80 A1 80 11 00 00 00 00 00 00 9B [11:43:17]Write i2c OK [11:43:17]MH_I2C_Read... [11:43:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:43:17]Read from MH i2c: E2 [11:43:17]MH_I2C_Read... [11:43:17]Read from MH i2c: E2 17 00 [11:43:17]MH_I2C_Read... [11:43:17]Read from MH i2c: E2 17 00 80 A1 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 EE [11:43:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [11:43:17]wFMCommunicate OK [11:43:17]CreateOFDProtocolMessage done [11:43:17]OFDSenderStorePacket 103645 [11:43:17]StoreOFDPacket docnum=103645 [11:43:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 A5 65 07 01 AB 16 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 58 41 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 41 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 50 3D 00 00 00 00 07 04 06 00 58 41 02 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 5F C4 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 DD 94 01 00 35 04 06 00 E5 A7 CD C1 04 00 48 CC DF 0D 01 23 EB 9E [11:43:17]CheckFolder [11:43:17]dirname=/storage/ofd_packets [11:43:17]CheckFolder done [11:43:17]ProducePacketName [11:43:17]name=ofd_packets/00103645 [11:43:17]NVStorageSaveData ofd_packets/00103645 [11:43:17]File name is /storage/ofd_packets/00103645 [11:43:17]Write 301 bytes [11:43:17]NVStorageSaveData done [11:43:17]OFDSenderStorePacket done [11:43:17]KKMCreateOFDPacket done [11:43:17]NVStorageSaveData kkm_last_timestamp [11:43:17]File name is /storage/kkm_last_timestamp [11:43:17]Write 4 bytes [11:43:17]NVStorageSaveData done [11:43:17]ExternCall_PrintAddStr [11:43:17]wPrintStart [11:43:17]Write to MH i2c: 01 00 00 81 A1 22 [11:43:17]Write i2c OK [11:43:17]MH_I2C_Read... [11:43:17]Read from MH i2c: 01 [11:43:17]MH_I2C_Read... [11:43:17]Read from MH i2c: 01 07 00 [11:43:17]MH_I2C_Read... [11:43:17]Read from MH i2c: 01 07 00 81 A1 00 00 00 00 00 FF 0F 37 [11:43:17]RasterBufferAndPrint [11:43:17]line Счет N : (1)672889 [11:43:17]line ИНН: 02508201610067 [11:43:17]line Контрольно-Кассовый Чек [11:43:17]line ПРОДАЖА [11:43:17]line ТРК (МРК, ГНК) : 41 [11:43:17]line Товар: 2710124500 [11:43:17]line Аи-95-К-5 [11:43:17]line 20.000 * 73.90 [11:43:17]line = 1478.00 [11:43:17]line НДС 12% НСП 1% [11:43:17]line > о реализуемом товаре [11:43:17]line ИТОГО: 1478.00 [11:43:17]line Внесено: 1500.00 [11:43:17]line СДАЧА: 22.00 [11:43:17]line НСП 1% : 13.08 [11:43:17]line НДС 12% : 156.96 [11:43:17]line Наличными: 1478.00 [11:43:17]line Безнал.: 0.00 [11:43:17]line Место: АЗС № 120 "Партнер Нефть" [11:43:17]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [11:43:17]line СНО: Общий режим [11:43:17]line Чек 75 19.06.2024 11:43 [11:43:17]line Смена: 353 ФФД: 1.0 [11:43:17]line ЗНМ: 0300000164 [11:43:17]line РНМ: 0000000000092785 [11:43:17]line Версия ККМ: 001 [11:43:17]line ФМ: 0000000000875093 [11:43:17]line ФД: 103645 [11:43:17]line ФПД: 252508874277888 [11:43:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T114327&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103645&fm=252508874277888&tin=02508201610067®Number=0000000000092785&sum=147800 [11:43:17]OFD Sender: Processing packet 103645 [packets to send 17, broken 16] [11:43:17]ProducePacketName [11:43:17]name=ofd_packets/00103645 [11:43:17]OFD Sender: To server: pG, [11:43:17]CommunicateWithHost lk.salyk.kg:30040 [11:43:17]ConnectInit lk.salyk.kg [11:43:17]written 0, free lines is 4095 [11:43:17]Connected sock=10 [11:43: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 39 33 0F 01 00 00 A5 65 07 01 AB 16 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 58 41 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 41 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 50 3D 00 00 00 00 07 04 06 00 58 41 02 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 5F C4 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 DD 94 01 00 35 04 06 00 E5 A7 CD C1 04 00 48 CC DF 0D 01 23 EB 9E [11:43: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 39 33 4F 00 00 00 F2 9D 47 00 17 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 39 33 10 04 04 00 DD 94 01 00 F4 03 04 00 E8 6A 72 66 B6 04 01 00 00 DC 4D 72 B6 C8 F6 EA 2B [11:43:17]CommunicateWithHost err = 0 [11:43:17]CheckOFDResponse [11:43:17]1017 (14) - 77093643461234 [11:43:17]1041 (16) - 0000000000875093 [11:43:17]1040 (4) - 103645 [11:43:17]1012 (4) - 19.06.2024 05:21 [11:43:17]1206 (1) - 0 [11:43:17]OFD Sender: Remove packet 103645 [11:43:17]ProducePacketName [11:43:17]name=ofd_packets/00103645 [11:43:17]NVStorageDeleteData [11:43:17]Write to MH i2c: 01 00 00 AB A1 4C [11:43:17]Write i2c OK [11:43:17]MH_I2C_Read... [11:43:17]Read from MH i2c: 01 [11:43:17]MH_I2C_Read... [11:43:17]Read from MH i2c: 01 07 00 [11:43:17]MH_I2C_Read... [11:43:17]Read from MH i2c: 01 07 00 AB A1 00 00 00 00 00 F9 0C 58 [11:43:17]RasterBufferAndPrint [11:43:17]line [11:43:17]line [11:43:17]line [11:43:17]line [11:43:17]line [11:43:17]written 0, free lines is 3330 [11:43:17]MH_Cut [11:43:17]Write to MH i2c: D1 01 00 B2 A1 01 25 [11:43:17]Write i2c OK [11:43:17]MH_I2C_Read... [11:43:17]Read from MH i2c: D1 [11:43:17]MH_I2C_Read... [11:43:17]Read from MH i2c: D1 01 00 [11:43:17]MH_I2C_Read... [11:43:17]Read from MH i2c: D1 01 00 B2 A1 00 24 [11:43:17]Write to MH i2c: 01 00 00 B3 A1 54 [11:43:17]Write i2c OK [11:43:17]MH_I2C_Read... [11:43:18]OFD Sender: No OFD packet to send [11:43:18]*** Cut start [11:43:18]*** Partial cut [11:43:18]*** CUTSNS_PIN = 1 [11:43:18]*** CUTSNS_PIN = 0 [11:43:18]*** Brake cut motor [11:43:19]Read from MH i2c: 01 [11:43:19]MH_I2C_Read... [11:43:19]*** Stop cut motor [11:43:19]*** Cut end [11:43:19]Read from MH i2c: 01 07 00 [11:43:19]MH_I2C_Read... [11:43:19]Read from MH i2c: 01 07 00 B3 A1 00 00 00 00 00 FF 0F 69 [11:43:19]process_action close_receipt done [11:43:19]requested_data is exist [11:43:19]produce_requested_data [11:43:19]requested_item fm.sn is exist - process it [11:43:19]wFMCommunicate request_size=4 [11:43:19]MH_SAM_APDU [11:43:19]CAPDU: 80 11 00 00 [11:43:19]Write to MH i2c: E2 08 00 B4 A1 80 11 00 00 00 00 00 00 CF [11:43:19]Write i2c OK [11:43:19]MH_I2C_Read... [11:43:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:43:19]Read from MH i2c: E2 [11:43:19]MH_I2C_Read... [11:43:19]Read from MH i2c: E2 17 00 [11:43:19]MH_I2C_Read... [11:43:19]Read from MH i2c: E2 17 00 B4 A1 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 22 [11:43:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [11:43:19]wFMCommunicate OK [11:43:19]requested_item fd.num is exist - process it [11:43:19]SAM_PROTO_GetFieldsCounters [11:43:19]wFMCommunicate request_size=4 [11:43:19]MH_SAM_APDU [11:43:19]CAPDU: 80 13 00 00 [11:43:19]Write to MH i2c: E2 08 00 B5 A1 80 13 00 00 00 00 00 00 D2 [11:43:19]Write i2c OK [11:43:19]MH_I2C_Read... [11:43:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:43:19]Read from MH i2c: E2 [11:43:19]MH_I2C_Read... [11:43:19]Read from MH i2c: E2 62 00 [11:43:19]MH_I2C_Read... [11:43:19]Read from MH i2c: E2 62 00 B5 A1 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 DD 94 01 00 0E 04 04 00 61 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 AE [11:43: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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 DD 94 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 4B 00 00 00 5E 04 04 00 4B 00 00 00 57 04 04 00 4C 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:43:19]wFMCommunicate OK [11:43:19]SAM_PROTO_GetFieldsCounters done [11:43:19]requested_item shift.num is exist - process it [11:43:19]requested_item shift.opened is exist - process it [11:43:19]req_shift_opened [11:43:19]FM_GetShiftState [11:43:19]SAM_PROTO_GetShiftState [11:43:19]wFMCommunicate request_size=4 [11:43:19]MH_SAM_APDU [11:43:19]CAPDU: 80 13 01 00 [11:43:19]Write to MH i2c: E2 08 00 B6 A1 80 13 01 00 00 00 00 00 D4 [11:43:19]Write i2c OK [11:43:19]MH_I2C_Read... [11:43:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:43:19]Read from MH i2c: E2 [11:43:19]MH_I2C_Read... [11:43:19]Read from MH i2c: E2 0E 00 [11:43:19]MH_I2C_Read... [11:43:19]Read from MH i2c: E2 0E 00 B6 A1 00 09 00 01 04 26 72 66 00 00 00 00 90 00 E2 [11:43:19]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [11:43:19]wFMCommunicate OK [11:43:19]SAM_PROTO_GetShiftState done [11:43:19]FM_GetShiftState done [11:43:19]req_shift_opened done [11:43:19]requested_item shift.open_date is exist - process it [11:43:19]req_shift_open_date [11:43:19]req_shift_open_date done [11:43:19]produce_requested_data done [11:43:19]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103645,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [11:43:19]process_action_free close_receipt [11:43:19]json_value_free [11:43:19]json_value_free done [11:43:19]process_json_proto returns [11:43:19]Send response to host [11:43:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103645,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [11:43:19]free response buf [11:43:19]execute_script done [11:43:19]execute_script returns [11:43:19]free content buf [11:43:19]Sock 9.Close socket [11:43:19]Sock 9.Thread stoped [11:43:23]OFD Sender: No OFD packet to send [11:43:28]OFD Sender: No OFD packet to send [11:43:33]OFD Sender: No OFD packet to send [11:43:38]OFD Sender: No OFD packet to send [11:43:43]OFD Sender: No OFD packet to send [11:43:48]OFD Sender: No OFD packet to send [11:43:53]OFD Sender: No OFD packet to send [11:43:58]OFD Sender: No OFD packet to send [11:44:03]OFD Sender: No OFD packet to send [11:44:08]OFD Sender: No OFD packet to send [11:44:13]OFD Sender: No OFD packet to send [11:44:18]OFD Sender: No OFD packet to send [11:44:23]OFD Sender: No OFD packet to send [11:44:28]OFD Sender: No OFD packet to send [11:44:33]OFD Sender: No OFD packet to send [11:44:38]OFD Sender: No OFD packet to send [11:44:43]OFD Sender: No OFD packet to send [11:44:48]OFD Sender: No OFD packet to send [11:44:53]OFD Sender: No OFD packet to send [11:44:58]OFD Sender: No OFD packet to send [11:45:03]OFD Sender: No OFD packet to send [11:45:08]OFD Sender: No OFD packet to send [11:45:13]OFD Sender: No OFD packet to send [11:45:18]OFD Sender: No OFD packet to send [11:45:23]OFD Sender: No OFD packet to send [11:45:28]OFD Sender: No OFD packet to send [11:45:33]OFD Sender: No OFD packet to send [11:45:38]OFD Sender: No OFD packet to send [11:45:43]OFD Sender: No OFD packet to send [11:45:48]OFD Sender: No OFD packet to send [11:45:53]OFD Sender: No OFD packet to send [11:45:58]OFD Sender: No OFD packet to send [11:46:03]OFD Sender: No OFD packet to send [11:46:08]OFD Sender: No OFD packet to send [11:46:13]OFD Sender: No OFD packet to send [11:46:18]OFD Sender: No OFD packet to send [11:46:23]OFD Sender: No OFD packet to send [11:46:28]OFD Sender: No OFD packet to send [11:46:33]OFD Sender: No OFD packet to send [11:46:38]OFD Sender: No OFD packet to send [11:46:43]OFD Sender: No OFD packet to send [11:46:48]OFD Sender: No OFD packet to send [11:46:53]OFD Sender: No OFD packet to send [11:46:58]OFD Sender: No OFD packet to send [11:47:03]OFD Sender: No OFD packet to send [11:47:08]OFD Sender: No OFD packet to send [11:47:13]OFD Sender: No OFD packet to send [11:47:18]OFD Sender: No OFD packet to send [11:47:23]OFD Sender: No OFD packet to send [11:47:28]OFD Sender: No OFD packet to send [11:47:33]OFD Sender: No OFD packet to send [11:47:38]OFD Sender: No OFD packet to send [11:47:43]OFD Sender: No OFD packet to send [11:47:48]OFD Sender: No OFD packet to send [11:47:53]OFD Sender: No OFD packet to send [11:47:58]OFD Sender: No OFD packet to send [11:48:03]OFD Sender: No OFD packet to send [11:48:08]OFD Sender: No OFD packet to send [11:48:13]OFD Sender: No OFD packet to send [11:48:18]OFD Sender: No OFD packet to send [11:48:23]OFD Sender: No OFD packet to send [11:48:28]OFD Sender: No OFD packet to send [11:48:33]OFD Sender: No OFD packet to send [11:48:38]OFD Sender: No OFD packet to send [11:48:43]OFD Sender: No OFD packet to send [11:48:48]OFD Sender: No OFD packet to send [11:48:53]OFD Sender: No OFD packet to send [11:48:58]OFD Sender: No OFD packet to send [11:49:03]OFD Sender: No OFD packet to send [11:49:08]OFD Sender: No OFD packet to send [11:49:13]OFD Sender: No OFD packet to send [11:49:18]OFD Sender: No OFD packet to send [11:49:23]OFD Sender: No OFD packet to send [11:49:28]OFD Sender: No OFD packet to send [11:49:32]accept exits with 7 [11:49:32]New connection [11:49:32]New thread 3067084132 created [11:49:32]Thread 3067227492 joined [11:49:32]Waiting for new connection... [11:49:32] Sock 7.Parse request [11:49:32]Sock 7.Check first char [11:49:32]Sock 7.First char is OK [11:49:32]request: POST /json_proto HTTP/1.0 [11:49:32]Method: POST [11:49:32]URL: /json_proto [11:49:32]Method is POST - this is cgi request [11:49:32]url: /json_proto [11:49:32]query_string will be loaded in cgi processing [11:49:32]execute_cgi json_proto POST (null) [11:49:32]execute_cgi path=json_proto method=POST [11:49:32]POST find Content-Length [11:49:32]Host: 172.17.38.133:8080 [11:49:32]Content-Length: 682 [11:49:32]Content-Type: application/json [11:49:32] [11:49:32]POST finish read [11:49:32]Found Content-Length = 682 [11:49:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672890", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 22.600, "sum" : 1500.64, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:49:32]execute_script... [11:49: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)672890", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 22.600, "sum" : 1500.64, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:49:32]POST & json_proto [11:49:32]process_json_proto [11:49:32]json parsed OK: [11:49:32]protocol is kg_v1.0 [11:49:32]action value=close_receipt [11:49:32]process_action close_receipt [11:49:32]cmd_close_receipt [11:49:32]MH_GetDate [11:49:32]Write to MH i2c: F0 00 00 B7 A1 47 [11:49:32]Write i2c OK [11:49:32]MH_I2C_Read... [11:49:32]Read from MH i2c: F0 [11:49:32]MH_I2C_Read... [11:49:32]Read from MH i2c: F0 09 00 [11:49:32]MH_I2C_Read... [11:49:32]Read from MH i2c: F0 09 00 B7 A1 00 D8 C5 72 66 BD 8F 7C 64 F1 [11:49:32]GetLastDocTimeStamp 1718797407 [11:49:32]current date 1718797784 [11:49:32]FM_GetShiftState [11:49:32]SAM_PROTO_GetShiftState [11:49:32]wFMCommunicate request_size=4 [11:49:32]MH_SAM_APDU [11:49:32]CAPDU: 80 13 01 00 [11:49:32]Write to MH i2c: E2 08 00 B8 A1 80 13 01 00 00 00 00 00 D6 [11:49:32]Write i2c OK [11:49:32]MH_I2C_Read... [11:49:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:49:32]Read from MH i2c: E2 [11:49:32]MH_I2C_Read... [11:49:32]Read from MH i2c: E2 0E 00 [11:49:32]MH_I2C_Read... [11:49:32]Read from MH i2c: E2 0E 00 B8 A1 00 09 00 01 04 26 72 66 00 00 00 00 90 00 E4 [11:49:32]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [11:49:32]wFMCommunicate OK [11:49:32]SAM_PROTO_GetShiftState done [11:49:32]FM_GetShiftState done [11:49:32]opened in 1718756868 [11:49:32]opened+sec_in_day 1718843268 [11:49:32]quantity*price = 150064 [11:49:32]sum+1 = 150065 [11:49:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.64 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.36 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 76 19.06.2024 11:49 Смена: 353 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103646 ФПД: 166908923706600 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T114944&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103646&fm=166908923706600&tin=02508201610067®Number=0000000000092785&sum=150000 [11:49:33]StoreToDocumentArchive [11:49:33]shift 353 fd 103646 [11:49:33]save to /storage/0353/doc_00103646 [11:49:33]save last doc name /storage/0353/doc_00103646 to /storage/kkm_last_doc_name [11:49:33]save OK [11:49:33]Clear old archive folders... [11:49:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:49:33]tlvbuf is 01445E50 [11:49:33]SAM_PROTO_ClearQueue [11:49:33]wFMCommunicate request_size=4 [11:49:33]MH_SAM_APDU [11:49:33]CAPDU: 80 09 00 00 [11:49:33]Write to MH i2c: E2 08 00 C5 A1 80 09 00 00 00 00 00 00 D8 [11:49:33]Write i2c OK [11:49:33]MH_I2C_Read... [11:49:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:49:33]Read from MH i2c: E2 [11:49:33]MH_I2C_Read... [11:49:33]Read from MH i2c: E2 03 00 [11:49:33]MH_I2C_Read... [11:49:33]Read from MH i2c: E2 03 00 C5 A1 00 90 00 DA [11:49:33]RAPDU: 90 00 [11:49:33]wFMCommunicate OK [11:49:33]SAM_PROTO_ClearQueue done [11:49:33]KKMCreateOFDPacket [11:49:33]OFDProtocolAddRootSTLVToBuf [11:49:33]FM_MakeSignedData [11:49:33]FM_MakeSignedData [11:49:33]SAM_PROTO_SignData [11:49:33]wFMCommunicate request_size=4 [11:49:33]MH_SAM_APDU [11:49:33]CAPDU: 80 0D 01 02 [11:49:33]Write to MH i2c: E2 08 00 C6 A1 80 0D 01 02 00 00 00 00 E0 [11:49:33]Write i2c OK [11:49:33]MH_I2C_Read... [11:49:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:49:33]Read from MH i2c: E2 [11:49:33]MH_I2C_Read... [11:49:33]Read from MH i2c: E2 03 00 [11:49:33]MH_I2C_Read... [11:49:33]Read from MH i2c: E2 03 00 C6 A1 00 90 00 DB [11:49:33]RAPDU: 90 00 [11:49:33]wFMCommunicate OK [11:49:33]wFMCommunicate request_size=255 [11:49:33]MH_SAM_APDU [11:49: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 48 58 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 30 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 40 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 D8 C5 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 DE 94 01 00 35 04 06 00 97 [11:49:33]Write to MH i2c: E2 02 01 C7 A1 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 48 58 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 30 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 40 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 D8 C5 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 DE 94 01 00 35 04 06 00 97 00 00 6B [11:49:33]Write i2c OK [11:49:33]MH_I2C_Read... [11:49:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:49:33]Read from MH i2c: E2 [11:49:33]MH_I2C_Read... [11:49:33]Read from MH i2c: E2 03 00 [11:49:33]MH_I2C_Read... [11:49:33]Read from MH i2c: E2 03 00 C7 A1 00 90 00 DC [11:49:33]RAPDU: 90 00 [11:49:33]wFMCommunicate OK [11:49:33]wFMCommunicate request_size=10 [11:49:33]MH_SAM_APDU [11:49:33]CAPDU: 80 0D 02 02 05 CD 83 1B 7C E8 [11:49:33]Write to MH i2c: E2 0D 00 C8 A1 80 0D 02 02 05 00 CD 83 1B 7C E8 00 00 BC [11:49:33]Write i2c OK [11:49:33]MH_I2C_Read... [11:49:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:49:33]OFD Sender: No OFD packet to send [11:49:33]Read from MH i2c: E2 [11:49:33]MH_I2C_Read... [11:49:33]Read from MH i2c: E2 03 00 [11:49:33]MH_I2C_Read... [11:49:33]Read from MH i2c: E2 03 00 C8 A1 00 90 00 DD [11:49:33]RAPDU: 90 00 [11:49:33]wFMCommunicate OK [11:49:33]wFMCommunicate request_size=4 [11:49:33]MH_SAM_APDU [11:49:33]CAPDU: 80 0D 03 02 [11:49:33]Write to MH i2c: E2 08 00 C9 A1 80 0D 03 02 00 00 00 00 E5 [11:49:33]Write i2c OK [11:49:33]MH_I2C_Read... [11:49:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:49:33]Read from MH i2c: E2 [11:49:33]MH_I2C_Read... [11:49:33]Read from MH i2c: E2 0B 00 [11:49:33]MH_I2C_Read... [11:49:33]Read from MH i2c: E2 0B 00 C9 A1 00 1B D1 6E F6 53 BE 63 F6 90 00 A0 [11:49:33]RAPDU: 1B D1 6E F6 53 BE 63 F6 90 00 [11:49:33]wFMCommunicate OK [11:49:33]SAM_PROTO_SignData done [11:49:33]FM_MakeSignedData done [11:49:33]CreateOFDProtocolMessage [11:49:33]wFMCommunicate request_size=4 [11:49:33]MH_SAM_APDU [11:49:33]CAPDU: 80 11 00 00 [11:49:33]Write to MH i2c: E2 08 00 CA A1 80 11 00 00 00 00 00 00 E5 [11:49:33]Write i2c OK [11:49:33]MH_I2C_Read... [11:49:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:49:33]Read from MH i2c: E2 [11:49:33]MH_I2C_Read... [11:49:33]Read from MH i2c: E2 17 00 [11:49:33]MH_I2C_Read... [11:49:33]Read from MH i2c: E2 17 00 CA A1 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 38 [11:49:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [11:49:33]wFMCommunicate OK [11:49:33]CreateOFDProtocolMessage done [11:49:33]OFDSenderStorePacket 103646 [11:49:33]StoreOFDPacket docnum=103646 [11:49:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 AB 49 07 01 6C 08 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 48 58 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 30 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 40 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 D8 C5 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 DE 94 01 00 35 04 06 00 97 CD 83 1B 7C E8 1B D1 6E F6 53 BE 63 F6 [11:49:33]CheckFolder [11:49:33]dirname=/storage/ofd_packets [11:49:33]CheckFolder done [11:49:33]ProducePacketName [11:49:33]name=ofd_packets/00103646 [11:49:33]NVStorageSaveData ofd_packets/00103646 [11:49:33]File name is /storage/ofd_packets/00103646 [11:49:33]Write 301 bytes [11:49:33]NVStorageSaveData done [11:49:33]OFDSenderStorePacket done [11:49:33]KKMCreateOFDPacket done [11:49:33]NVStorageSaveData kkm_last_timestamp [11:49:33]File name is /storage/kkm_last_timestamp [11:49:33]Write 4 bytes [11:49:33]NVStorageSaveData done [11:49:33]ExternCall_PrintAddStr [11:49:33]wPrintStart [11:49:33]Write to MH i2c: 01 00 00 CB A1 6C [11:49:33]Write i2c OK [11:49:33]MH_I2C_Read... [11:49:33]Read from MH i2c: 01 [11:49:33]MH_I2C_Read... [11:49:33]Read from MH i2c: 01 07 00 [11:49:33]MH_I2C_Read... [11:49:33]Read from MH i2c: 01 07 00 CB A1 00 00 00 00 00 FF 0F 81 [11:49:33]RasterBufferAndPrint [11:49:33]line Счет N : (1)672890 [11:49:33]line ИНН: 02508201610067 [11:49:33]line Контрольно-Кассовый Чек [11:49:33]line ПРОДАЖА [11:49:33]line ТРК (МРК, ГНК) : 42 [11:49:33]line Товар: 2710124130 [11:49:33]line Аи-92-К-5 [11:49:33]line 22.600 * 66.40 [11:49:33]line = 1500.64 [11:49:33]line НДС 12% НСП 1% [11:49:33]line > о реализуемом товаре [11:49:33]line ОКРУГЛЕНИЕ: -0.64 [11:49:33]line ИТОГО: 1500.00 [11:49:33]line Внесено: 1500.00 [11:49:33]line СДАЧА: 0.00 [11:49:33]line НСП 1% : 13.28 [11:49:33]line НДС 12% : 159.36 [11:49:33]line Наличными: 1500.00 [11:49:33]line Безнал.: 0.00 [11:49:33]line Место: АЗС № 120 "Партнер Нефть" [11:49:33]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [11:49:33]line СНО: Общий режим [11:49:33]line Чек 76 19.06.2024 11:49 [11:49:33]line Смена: 353 ФФД: 1.0 [11:49:33]line ЗНМ: 0300000164 [11:49:33]line РНМ: 0000000000092785 [11:49:33]line Версия ККМ: 001 [11:49:34]line ФМ: 0000000000875093 [11:49:34]line ФД: 103646 [11:49:34]line ФПД: 166908923706600 [11:49:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T114944&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103646&fm=166908923706600&tin=02508201610067®Number=0000000000092785&sum=150000 [11:49:34]OFD Sender: Processing packet 103646 [packets to send 17, broken 16] [11:49:34]ProducePacketName [11:49:34]name=ofd_packets/00103646 [11:49:34]OFD Sender: To server: pG, [11:49:34]CommunicateWithHost lk.salyk.kg:30040 [11:49:34]ConnectInit lk.salyk.kg [11:49:34]written 0, free lines is 4095 [11:49:34]Write to MH i2c: 01 00 00 F6 A1 97 [11:49:34]Write i2c OK [11:49:34]MH_I2C_Read... [11:49:34]Read from MH i2c: 01 [11:49:34]MH_I2C_Read... [11:49:34]Read from MH i2c: 01 07 00 [11:49:34]MH_I2C_Read... [11:49:34]Read from MH i2c: 01 07 00 F6 A1 00 00 00 00 00 E1 0C 8B [11:49:34]RasterBufferAndPrint [11:49:34]line [11:49:34]line [11:49:34]line [11:49:34]line [11:49:34]line [11:49:34]written 0, free lines is 3303 [11:49:34]MH_Cut [11:49:34]Write to MH i2c: D1 01 00 FD A1 01 70 [11:49:34]Write i2c OK [11:49:34]MH_I2C_Read... [11:49:34]Read from MH i2c: D1 [11:49:34]MH_I2C_Read... [11:49:34]Read from MH i2c: D1 01 00 [11:49:34]MH_I2C_Read... [11:49:34]Read from MH i2c: D1 01 00 FD A1 00 6F [11:49:34]Write to MH i2c: 01 00 00 FE A1 9F [11:49:34]Write i2c OK [11:49:34]MH_I2C_Read... [11:49:35]Connected sock=10 [11:49: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 39 33 0F 01 00 00 AB 49 07 01 6C 08 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 48 58 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 30 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 40 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 D8 C5 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 DE 94 01 00 35 04 06 00 97 CD 83 1B 7C E8 1B D1 6E F6 53 BE 63 F6 [11:49: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 39 33 4F 00 00 00 FB C1 47 00 83 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 39 33 10 04 04 00 DE 94 01 00 F4 03 04 00 62 6C 72 66 B6 04 01 00 00 A9 D0 5E 72 C1 99 E0 4B [11:49:35]CommunicateWithHost err = 0 [11:49:35]CheckOFDResponse [11:49:35]1017 (14) - 77093643461234 [11:49:35]1041 (16) - 0000000000875093 [11:49:35]1040 (4) - 103646 [11:49:35]1012 (4) - 19.06.2024 05:28 [11:49:35]1206 (1) - 0 [11:49:35]OFD Sender: Remove packet 103646 [11:49:35]ProducePacketName [11:49:35]name=ofd_packets/00103646 [11:49:35]NVStorageDeleteData [11:49:35]*** Cut start [11:49:35]*** Partial cut [11:49:35]*** CUTSNS_PIN = 1 [11:49:35]*** CUTSNS_PIN = 0 [11:49:35]*** Brake cut motor [11:49:35]OFD Sender: No OFD packet to send [11:49:35]Read from MH i2c: 01 [11:49:35]MH_I2C_Read... [11:49:35]*** Stop cut motor [11:49:35]*** Cut end [11:49:35]Read from MH i2c: 01 07 00 [11:49:35]MH_I2C_Read... [11:49:35]Read from MH i2c: 01 07 00 FE A1 00 00 00 00 00 FF 0F B4 [11:49:35]process_action close_receipt done [11:49:35]requested_data is exist [11:49:35]produce_requested_data [11:49:35]requested_item fm.sn is exist - process it [11:49:35]wFMCommunicate request_size=4 [11:49:35]MH_SAM_APDU [11:49:35]CAPDU: 80 11 00 00 [11:49:35]Write to MH i2c: E2 08 00 FF A1 80 11 00 00 00 00 00 00 1A [11:49:35]Write i2c OK [11:49:35]MH_I2C_Read... [11:49:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:49:36]Read from MH i2c: E2 [11:49:36]MH_I2C_Read... [11:49:36]Read from MH i2c: E2 17 00 [11:49:36]MH_I2C_Read... [11:49:36]Read from MH i2c: E2 17 00 FF A1 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 6D [11:49:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [11:49:36]wFMCommunicate OK [11:49:36]requested_item fd.num is exist - process it [11:49:36]SAM_PROTO_GetFieldsCounters [11:49:36]wFMCommunicate request_size=4 [11:49:36]MH_SAM_APDU [11:49:36]CAPDU: 80 13 00 00 [11:49:36]Write to MH i2c: E2 08 00 00 A2 80 13 00 00 00 00 00 00 1E [11:49:36]Write i2c OK [11:49:36]MH_I2C_Read... [11:49:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:49:36]Read from MH i2c: E2 [11:49:36]MH_I2C_Read... [11:49:36]Read from MH i2c: E2 62 00 [11:49:36]MH_I2C_Read... [11:49:36]Read from MH i2c: E2 62 00 00 A2 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 DE 94 01 00 0E 04 04 00 61 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 FE [11:49: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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 DE 94 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 4C 00 00 00 5E 04 04 00 4C 00 00 00 57 04 04 00 4D 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:49:36]wFMCommunicate OK [11:49:36]SAM_PROTO_GetFieldsCounters done [11:49:36]requested_item shift.num is exist - process it [11:49:36]requested_item shift.opened is exist - process it [11:49:36]req_shift_opened [11:49:36]FM_GetShiftState [11:49:36]SAM_PROTO_GetShiftState [11:49:36]wFMCommunicate request_size=4 [11:49:36]MH_SAM_APDU [11:49:36]CAPDU: 80 13 01 00 [11:49:36]Write to MH i2c: E2 08 00 01 A2 80 13 01 00 00 00 00 00 20 [11:49:36]Write i2c OK [11:49:36]MH_I2C_Read... [11:49:36]Read from MH i2c: E2 [11:49:36]MH_I2C_Read... [11:49:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:49:36]Read from MH i2c: E2 0E 00 [11:49:36]MH_I2C_Read... [11:49:36]Read from MH i2c: E2 0E 00 01 A2 00 09 00 01 04 26 72 66 00 00 00 00 90 00 2E [11:49:36]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [11:49:36]wFMCommunicate OK [11:49:36]SAM_PROTO_GetShiftState done [11:49:36]FM_GetShiftState done [11:49:36]req_shift_opened done [11:49:36]requested_item shift.open_date is exist - process it [11:49:36]req_shift_open_date [11:49:36]req_shift_open_date done [11:49:36]produce_requested_data done [11:49:36]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103646,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [11:49:36]process_action_free close_receipt [11:49:36]json_value_free [11:49:36]json_value_free done [11:49:36]process_json_proto returns [11:49:36]Send response to host [11:49:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103646,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [11:49:36]free response buf [11:49:36]execute_script done [11:49:36]execute_script returns [11:49:36]free content buf [11:49:36]Sock 7.Close socket [11:49:36]Sock 7.Thread stoped [11:49:40]OFD Sender: No OFD packet to send [11:49:45]OFD Sender: No OFD packet to send [11:49:50]OFD Sender: No OFD packet to send [11:49:55]OFD Sender: No OFD packet to send [11:50:00]OFD Sender: No OFD packet to send [11:50:05]OFD Sender: No OFD packet to send [11:50:10]OFD Sender: No OFD packet to send [11:50:15]OFD Sender: No OFD packet to send [11:50:16]accept exits with 9 [11:50:16]New connection [11:50:16]New thread 3067227492 created [11:50:16]Thread 3067084132 joined [11:50:16]Waiting for new connection... [11:50:16] Sock 9.Parse request [11:50:16]Sock 9.Check first char [11:50:16]Sock 9.First char is OK [11:50:16]request: POST /json_proto HTTP/1.0 [11:50:16]Method: POST [11:50:16]URL: /json_proto [11:50:16]Method is POST - this is cgi request [11:50:16]url: /json_proto [11:50:16]query_string will be loaded in cgi processing [11:50:16]execute_cgi json_proto POST (null) [11:50:16]execute_cgi path=json_proto method=POST [11:50:16]POST find Content-Length [11:50:16]Host: 172.17.38.133:8080 [11:50:16]Content-Length: 682 [11:50:16]Content-Type: application/json [11:50:16] [11:50:16]POST finish read [11:50:16]Found Content-Length = 682 [11:50:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672891", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 22.600, "sum" : 1500.64, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:50:16]execute_script... [11:50: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)672891", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 22.600, "sum" : 1500.64, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:50:16]POST & json_proto [11:50:16]process_json_proto [11:50:16]json parsed OK: [11:50:16]protocol is kg_v1.0 [11:50:16]action value=close_receipt [11:50:16]process_action close_receipt [11:50:16]cmd_close_receipt [11:50:16]MH_GetDate [11:50:16]Write to MH i2c: F0 00 00 02 A2 93 [11:50:16]Write i2c OK [11:50:16]MH_I2C_Read... [11:50:16]Read from MH i2c: F0 [11:50:16]MH_I2C_Read... [11:50:16]Read from MH i2c: F0 09 00 [11:50:16]MH_I2C_Read... [11:50:16]Read from MH i2c: F0 09 00 02 A2 00 04 C6 72 66 BD 8F 7C 64 6A [11:50:16]GetLastDocTimeStamp 1718797784 [11:50:16]current date 1718797828 [11:50:16]FM_GetShiftState [11:50:16]SAM_PROTO_GetShiftState [11:50:16]wFMCommunicate request_size=4 [11:50:16]MH_SAM_APDU [11:50:16]CAPDU: 80 13 01 00 [11:50:16]Write to MH i2c: E2 08 00 03 A2 80 13 01 00 00 00 00 00 22 [11:50:16]Write i2c OK [11:50:16]MH_I2C_Read... [11:50:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:50:16]Read from MH i2c: E2 [11:50:16]MH_I2C_Read... [11:50:16]Read from MH i2c: E2 0E 00 [11:50:16]MH_I2C_Read... [11:50:16]Read from MH i2c: E2 0E 00 03 A2 00 09 00 01 04 26 72 66 00 00 00 00 90 00 30 [11:50:16]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [11:50:16]wFMCommunicate OK [11:50:16]SAM_PROTO_GetShiftState done [11:50:16]FM_GetShiftState done [11:50:16]opened in 1718756868 [11:50:16]opened+sec_in_day 1718843268 [11:50:16]quantity*price = 150064 [11:50:16]sum+1 = 150065 [11:50:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.64 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.36 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 77 19.06.2024 11:50 Смена: 353 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103647 ФПД: 121262162366797 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T115028&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103647&fm=121262162366797&tin=02508201610067®Number=0000000000092785&sum=150000 [11:50:17]StoreToDocumentArchive [11:50:17]shift 353 fd 103647 [11:50:17]save to /storage/0353/doc_00103647 [11:50:17]save last doc name /storage/0353/doc_00103647 to /storage/kkm_last_doc_name [11:50:17]save OK [11:50:17]Clear old archive folders... [11:50:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:50:17]tlvbuf is 013F60B0 [11:50:17]SAM_PROTO_ClearQueue [11:50:17]wFMCommunicate request_size=4 [11:50:17]MH_SAM_APDU [11:50:17]CAPDU: 80 09 00 00 [11:50:17]Write to MH i2c: E2 08 00 10 A2 80 09 00 00 00 00 00 00 24 [11:50:17]Write i2c OK [11:50:17]MH_I2C_Read... [11:50:17]Read from MH i2c: E2 [11:50:17]MH_I2C_Read... [11:50:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:50:17]Read from MH i2c: E2 03 00 [11:50:17]MH_I2C_Read... [11:50:17]Read from MH i2c: E2 03 00 10 A2 00 90 00 26 [11:50:17]RAPDU: 90 00 [11:50:17]wFMCommunicate OK [11:50:17]SAM_PROTO_ClearQueue done [11:50:17]KKMCreateOFDPacket [11:50:17]OFDProtocolAddRootSTLVToBuf [11:50:17]FM_MakeSignedData [11:50:17]FM_MakeSignedData [11:50:17]SAM_PROTO_SignData [11:50:17]wFMCommunicate request_size=4 [11:50:17]MH_SAM_APDU [11:50:17]CAPDU: 80 0D 01 02 [11:50:17]Write to MH i2c: E2 08 00 11 A2 80 0D 01 02 00 00 00 00 2C [11:50:17]Write i2c OK [11:50:17]MH_I2C_Read... [11:50:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:50:17]Read from MH i2c: E2 [11:50:17]MH_I2C_Read... [11:50:17]Read from MH i2c: E2 03 00 [11:50:17]MH_I2C_Read... [11:50:17]Read from MH i2c: E2 03 00 11 A2 00 90 00 27 [11:50:17]RAPDU: 90 00 [11:50:17]wFMCommunicate OK [11:50:17]wFMCommunicate request_size=255 [11:50:17]MH_SAM_APDU [11:50: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 48 58 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 30 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 40 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 04 C6 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 DF 94 01 00 35 04 06 00 6E [11:50:17]Write to MH i2c: E2 02 01 12 A2 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 48 58 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 30 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 40 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 04 C6 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 DF 94 01 00 35 04 06 00 6E 00 00 BD [11:50:17]Write i2c OK [11:50:17]MH_I2C_Read... [11:50:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:50:18]Read from MH i2c: E2 [11:50:18]MH_I2C_Read... [11:50:18]Read from MH i2c: E2 03 00 [11:50:18]MH_I2C_Read... [11:50:18]Read from MH i2c: E2 03 00 12 A2 00 90 00 28 [11:50:18]RAPDU: 90 00 [11:50:18]wFMCommunicate OK [11:50:18]wFMCommunicate request_size=10 [11:50:18]MH_SAM_APDU [11:50:18]CAPDU: 80 0D 02 02 05 49 8C 1C D1 4D [11:50:18]Write to MH i2c: E2 0D 00 13 A2 80 0D 02 02 05 00 49 8C 1C D1 4D 00 00 48 [11:50:18]Write i2c OK [11:50:18]MH_I2C_Read... [11:50:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:50:18]Read from MH i2c: E2 [11:50:18]MH_I2C_Read... [11:50:18]Read from MH i2c: E2 03 00 [11:50:18]MH_I2C_Read... [11:50:18]Read from MH i2c: E2 03 00 13 A2 00 90 00 29 [11:50:18]RAPDU: 90 00 [11:50:18]wFMCommunicate OK [11:50:18]wFMCommunicate request_size=4 [11:50:18]MH_SAM_APDU [11:50:18]CAPDU: 80 0D 03 02 [11:50:18]Write to MH i2c: E2 08 00 14 A2 80 0D 03 02 00 00 00 00 31 [11:50:18]Write i2c OK [11:50:18]MH_I2C_Read... [11:50:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:50:18]Read from MH i2c: E2 [11:50:18]MH_I2C_Read... [11:50:18]Read from MH i2c: E2 0B 00 [11:50:18]MH_I2C_Read... [11:50:18]Read from MH i2c: E2 0B 00 14 A2 00 AA 70 7E 0C 4B 58 FE C1 90 00 38 [11:50:18]RAPDU: AA 70 7E 0C 4B 58 FE C1 90 00 [11:50:18]wFMCommunicate OK [11:50:18]SAM_PROTO_SignData done [11:50:18]FM_MakeSignedData done [11:50:18]CreateOFDProtocolMessage [11:50:18]wFMCommunicate request_size=4 [11:50:18]MH_SAM_APDU [11:50:18]CAPDU: 80 11 00 00 [11:50:18]Write to MH i2c: E2 08 00 15 A2 80 11 00 00 00 00 00 00 31 [11:50:18]Write i2c OK [11:50:18]MH_I2C_Read... [11:50:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:50:18]Read from MH i2c: E2 [11:50:18]MH_I2C_Read... [11:50:18]Read from MH i2c: E2 17 00 [11:50:18]MH_I2C_Read... [11:50:18]Read from MH i2c: E2 17 00 15 A2 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 84 [11:50:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [11:50:18]wFMCommunicate OK [11:50:18]CreateOFDProtocolMessage done [11:50:18]OFDSenderStorePacket 103647 [11:50:18]StoreOFDPacket docnum=103647 [11:50:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 D6 97 07 01 15 2D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 48 58 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 30 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 40 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 04 C6 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 DF 94 01 00 35 04 06 00 6E 49 8C 1C D1 4D AA 70 7E 0C 4B 58 FE C1 [11:50:18]CheckFolder [11:50:18]dirname=/storage/ofd_packets [11:50:18]CheckFolder done [11:50:18]ProducePacketName [11:50:18]name=ofd_packets/00103647 [11:50:18]NVStorageSaveData ofd_packets/00103647 [11:50:18]File name is /storage/ofd_packets/00103647 [11:50:18]Write 301 bytes [11:50:18]NVStorageSaveData done [11:50:18]OFDSenderStorePacket done [11:50:18]KKMCreateOFDPacket done [11:50:18]NVStorageSaveData kkm_last_timestamp [11:50:18]File name is /storage/kkm_last_timestamp [11:50:18]Write 4 bytes [11:50:18]NVStorageSaveData done [11:50:18]ExternCall_PrintAddStr [11:50:18]wPrintStart [11:50:18]Write to MH i2c: 01 00 00 16 A2 B8 [11:50:18]Write i2c OK [11:50:18]MH_I2C_Read... [11:50:18]Read from MH i2c: 01 [11:50:18]MH_I2C_Read... [11:50:18]Read from MH i2c: 01 07 00 [11:50:18]MH_I2C_Read... [11:50:18]Read from MH i2c: 01 07 00 16 A2 00 00 00 00 00 FF 0F CD [11:50:18]RasterBufferAndPrint [11:50:18]line Счет N : (1)672891 [11:50:18]line ИНН: 02508201610067 [11:50:18]line Контрольно-Кассовый Чек [11:50:18]line ПРОДАЖА [11:50:18]line ТРК (МРК, ГНК) : 32 [11:50:18]line Товар: 2710124130 [11:50:18]line Аи-92-К-5 [11:50:18]line 22.600 * 66.40 [11:50:18]line = 1500.64 [11:50:18]line НДС 12% НСП 1% [11:50:18]line > о реализуемом товаре [11:50:18]line ОКРУГЛЕНИЕ: -0.64 [11:50:18]line ИТОГО: 1500.00 [11:50:18]line Внесено: 1500.00 [11:50:18]line СДАЧА: 0.00 [11:50:18]line НСП 1% : 13.28 [11:50:18]line НДС 12% : 159.36 [11:50:18]line Наличными: 1500.00 [11:50:18]line Безнал.: 0.00 [11:50:18]line Место: АЗС № 120 "Партнер Нефть" [11:50:18]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [11:50:18]line СНО: Общий режим [11:50:18]line Чек 77 19.06.2024 11:50 [11:50:18]line Смена: 353 ФФД: 1.0 [11:50:18]line ЗНМ: 0300000164 [11:50:18]line РНМ: 0000000000092785 [11:50:18]line Версия ККМ: 001 [11:50:18]line ФМ: 0000000000875093 [11:50:18]line ФД: 103647 [11:50:18]line ФПД: 121262162366797 [11:50:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T115028&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103647&fm=121262162366797&tin=02508201610067®Number=0000000000092785&sum=150000 [11:50:18]OFD Sender: Processing packet 103647 [packets to send 17, broken 16] [11:50:18]ProducePacketName [11:50:18]name=ofd_packets/00103647 [11:50:18]OFD Sender: To server: pG, [11:50:18]CommunicateWithHost lk.salyk.kg:30040 [11:50:18]ConnectInit lk.salyk.kg [11:50:18]written 0, free lines is 4095 [11:50:18]Connected sock=10 [11:50: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 39 33 0F 01 00 00 D6 97 07 01 15 2D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 48 58 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 30 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 40 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 04 C6 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 DF 94 01 00 35 04 06 00 6E 49 8C 1C D1 4D AA 70 7E 0C 4B 58 FE C1 [11:50:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 0C 69 47 00 B1 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 39 33 10 04 04 00 DF 94 01 00 F4 03 04 00 8D 6C 72 66 B6 04 01 00 00 52 B0 A7 A3 7E 2E 9A 4A [11:50:18]CommunicateWithHost err = 0 [11:50:18]CheckOFDResponse [11:50:18]1017 (14) - 77093643461234 [11:50:18]1041 (16) - 0000000000875093 [11:50:18]1040 (4) - 103647 [11:50:18]1012 (4) - 19.06.2024 05:28 [11:50:18]1206 (1) - 0 [11:50:18]OFD Sender: Remove packet 103647 [11:50:18]ProducePacketName [11:50:18]name=ofd_packets/00103647 [11:50:18]NVStorageDeleteData [11:50:18]Write to MH i2c: 01 00 00 41 A2 E3 [11:50:18]Write i2c OK [11:50:18]MH_I2C_Read... [11:50:18]Read from MH i2c: 01 [11:50:18]MH_I2C_Read... [11:50:18]Read from MH i2c: 01 07 00 [11:50:18]MH_I2C_Read... [11:50:18]Read from MH i2c: 01 07 00 41 A2 00 00 00 00 00 EF 0C E5 [11:50:18]RasterBufferAndPrint [11:50:18]line [11:50:18]line [11:50:18]line [11:50:18]line [11:50:18]line [11:50:18]written 0, free lines is 3317 [11:50:18]MH_Cut [11:50:18]Write to MH i2c: D1 01 00 48 A2 01 BC [11:50:18]Write i2c OK [11:50:18]MH_I2C_Read... [11:50:18]Read from MH i2c: D1 [11:50:18]MH_I2C_Read... [11:50:18]Read from MH i2c: D1 01 00 [11:50:18]MH_I2C_Read... [11:50:18]Read from MH i2c: D1 01 00 48 A2 00 BB [11:50:18]Write to MH i2c: 01 00 00 49 A2 EB [11:50:18]Write i2c OK [11:50:18]MH_I2C_Read... [11:50:19]OFD Sender: No OFD packet to send [11:50:19]*** Cut start [11:50:19]*** Partial cut [11:50:19]*** CUTSNS_PIN = 1 [11:50:19]*** CUTSNS_PIN = 0 [11:50:19]*** Brake cut motor [11:50:20]Read from MH i2c: 01 [11:50:20]MH_I2C_Read... [11:50:20]*** Stop cut motor [11:50:20]*** Cut end [11:50:20]Read from MH i2c: 01 07 00 [11:50:20]MH_I2C_Read... [11:50:20]Read from MH i2c: 01 07 00 49 A2 00 00 00 00 00 FF 0F 00 [11:50:20]process_action close_receipt done [11:50:20]requested_data is exist [11:50:20]produce_requested_data [11:50:20]requested_item fm.sn is exist - process it [11:50:20]wFMCommunicate request_size=4 [11:50:20]MH_SAM_APDU [11:50:20]CAPDU: 80 11 00 00 [11:50:20]Write to MH i2c: E2 08 00 4A A2 80 11 00 00 00 00 00 00 66 [11:50:20]Write i2c OK [11:50:20]MH_I2C_Read... [11:50:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:50:20]Read from MH i2c: E2 [11:50:20]MH_I2C_Read... [11:50:20]Read from MH i2c: E2 17 00 [11:50:20]MH_I2C_Read... [11:50:20]Read from MH i2c: E2 17 00 4A A2 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 B9 [11:50:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [11:50:20]wFMCommunicate OK [11:50:20]requested_item fd.num is exist - process it [11:50:20]SAM_PROTO_GetFieldsCounters [11:50:20]wFMCommunicate request_size=4 [11:50:20]MH_SAM_APDU [11:50:20]CAPDU: 80 13 00 00 [11:50:20]Write to MH i2c: E2 08 00 4B A2 80 13 00 00 00 00 00 00 69 [11:50:20]Write i2c OK [11:50:20]MH_I2C_Read... [11:50:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:50:20]Read from MH i2c: E2 [11:50:20]MH_I2C_Read... [11:50:20]Read from MH i2c: E2 62 00 [11:50:20]MH_I2C_Read... [11:50:20]Read from MH i2c: E2 62 00 4B A2 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 DF 94 01 00 0E 04 04 00 61 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 4D [11:50: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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 DF 94 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 4D 00 00 00 5E 04 04 00 4D 00 00 00 57 04 04 00 4E 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:50:20]wFMCommunicate OK [11:50:20]SAM_PROTO_GetFieldsCounters done [11:50:20]requested_item shift.num is exist - process it [11:50:20]requested_item shift.opened is exist - process it [11:50:20]req_shift_opened [11:50:20]FM_GetShiftState [11:50:20]SAM_PROTO_GetShiftState [11:50:20]wFMCommunicate request_size=4 [11:50:20]MH_SAM_APDU [11:50:20]CAPDU: 80 13 01 00 [11:50:20]Write to MH i2c: E2 08 00 4C A2 80 13 01 00 00 00 00 00 6B [11:50:20]Write i2c OK [11:50:20]MH_I2C_Read... [11:50:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:50:20]Read from MH i2c: E2 [11:50:20]MH_I2C_Read... [11:50:20]Read from MH i2c: E2 0E 00 [11:50:20]MH_I2C_Read... [11:50:20]Read from MH i2c: E2 0E 00 4C A2 00 09 00 01 04 26 72 66 00 00 00 00 90 00 79 [11:50:20]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [11:50:20]wFMCommunicate OK [11:50:20]SAM_PROTO_GetShiftState done [11:50:20]FM_GetShiftState done [11:50:20]req_shift_opened done [11:50:20]requested_item shift.open_date is exist - process it [11:50:20]req_shift_open_date [11:50:20]req_shift_open_date done [11:50:20]produce_requested_data done [11:50:20]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103647,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [11:50:20]process_action_free close_receipt [11:50:20]json_value_free [11:50:20]json_value_free done [11:50:20]process_json_proto returns [11:50:20]Send response to host [11:50:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103647,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [11:50:20]free response buf [11:50:20]execute_script done [11:50:20]execute_script returns [11:50:20]free content buf [11:50:20]Sock 9.Close socket [11:50:20]Sock 9.Thread stoped [11:50:24]OFD Sender: No OFD packet to send [11:50:29]OFD Sender: No OFD packet to send [11:50:34]OFD Sender: No OFD packet to send [11:50:39]OFD Sender: No OFD packet to send [11:50:44]OFD Sender: No OFD packet to send [11:50:49]OFD Sender: No OFD packet to send [11:50:54]OFD Sender: No OFD packet to send [11:50:59]OFD Sender: No OFD packet to send [11:51:04]OFD Sender: No OFD packet to send [11:51:09]OFD Sender: No OFD packet to send [11:51:14]OFD Sender: No OFD packet to send [11:51:19]OFD Sender: No OFD packet to send [11:51:24]OFD Sender: No OFD packet to send [11:51:29]OFD Sender: No OFD packet to send [11:51:34]OFD Sender: No OFD packet to send [11:51:39]OFD Sender: No OFD packet to send [11:51:44]OFD Sender: No OFD packet to send [11:51:49]OFD Sender: No OFD packet to send [11:51:54]OFD Sender: No OFD packet to send [11:51:59]OFD Sender: No OFD packet to send [11:52:04]OFD Sender: No OFD packet to send [11:52:09]OFD Sender: No OFD packet to send [11:52:14]OFD Sender: No OFD packet to send [11:52:19]OFD Sender: No OFD packet to send [11:52:24]OFD Sender: No OFD packet to send [11:52:29]OFD Sender: No OFD packet to send [11:52:34]OFD Sender: No OFD packet to send [11:52:39]OFD Sender: No OFD packet to send [11:52:44]OFD Sender: No OFD packet to send [11:52:49]OFD Sender: No OFD packet to send [11:52:54]OFD Sender: No OFD packet to send [11:52:59]OFD Sender: No OFD packet to send [11:53:04]OFD Sender: No OFD packet to send [11:53:09]OFD Sender: No OFD packet to send [11:53:14]OFD Sender: No OFD packet to send [11:53:19]OFD Sender: No OFD packet to send [11:53:24]OFD Sender: No OFD packet to send [11:53:29]OFD Sender: No OFD packet to send [11:53:34]OFD Sender: No OFD packet to send [11:53:39]OFD Sender: No OFD packet to send [11:53:44]OFD Sender: No OFD packet to send [11:53:49]OFD Sender: No OFD packet to send [11:53:53]accept exits with 7 [11:53:53]New connection [11:53:53]New thread 3067084132 created [11:53:53]Thread 3067227492 joined [11:53:53]Waiting for new connection... [11:53:53] Sock 7.Parse request [11:53:53]Sock 7.Check first char [11:53:53]Sock 7.First char is OK [11:53:53]request: POST /json_proto HTTP/1.0 [11:53:53]Method: POST [11:53:53]URL: /json_proto [11:53:53]Method is POST - this is cgi request [11:53:53]url: /json_proto [11:53:53]query_string will be loaded in cgi processing [11:53:53]execute_cgi json_proto POST (null) [11:53:53]execute_cgi path=json_proto method=POST [11:53:53]POST find Content-Length [11:53:53]Host: 172.17.38.133:8080 [11:53:53]Content-Length: 1169 [11:53:53]Content-Type: application/json [11:53:53] [11:53:53]POST finish read [11:53:53]Found Content-Length = 1169 [11:53:53]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 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. \u000A\u0421\u0447\u0435\u0442 N : (1)672892\u000A19.06.2024 11:31\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 42\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 66.40\u000A\u0418\u0422\u041E\u0413: 1328.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30101697\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:53:53]execute_script... [11:53:53]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 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. \u000A\u0421\u0447\u0435\u0442 N : (1)672892\u000A19.06.2024 11:31\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 42\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 66.40\u000A\u0418\u0422\u041E\u0413: 1328.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30101697\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:53:53]POST & json_proto [11:53:53]process_json_proto [11:53:53]json parsed OK: [11:53:53]protocol is kg_v1.0 [11:53:53]action value=print_text [11:53:53]process_action print_text [11:53:53]cmd_print_text [11:53:53]ExternCall_PrintAddStr [11:53:53]wPrintStart [11:53:53]Write to MH i2c: 01 00 00 4D A2 EF [11:53:53]Write i2c OK [11:53:53]MH_I2C_Read... [11:53:53]Read from MH i2c: 01 [11:53:53]MH_I2C_Read... [11:53:53]Read from MH i2c: 01 07 00 [11:53:53]MH_I2C_Read... [11:53:53]Read from MH i2c: 01 07 00 4D A2 00 00 00 00 00 FF 0F 04 [11:53:53]RasterBufferAndPrint [11:53:53]line *****ТОВАРНЫЙ ЧЕК***** [11:53:53]line АЗС 120 [11:53:53]line Партнер нефть [11:53:53]line 02508201610067 [11:53:53]line Кассир : Байбугуева Г. [11:53:53]line Счет N : (1)672892 [11:53:53]line 19.06.2024 11:31 [11:53:53]line ПРОДАЖА [11:53:53]line ТРК (МРК, ГНК): 42 [11:53:53]line Вид ГСМ : 2710124130 [11:53:53]line Аи-92-К-5 [11:53:53]line 20.000 x 66.40 [11:53:53]line ИТОГ: 1328.00 [11:53:53]line Тип оплаты: Талоны: ТК ГПНА Online [11:53:53]line 30101697 [11:53:53]line ______________________ [11:53:53]line (подпись) [11:53:53]written 0, free lines is 4095 [11:53:53]Write to MH i2c: 01 00 00 61 A2 03 [11:53:53]Write i2c OK [11:53:53]MH_I2C_Read... [11:53:53]Read from MH i2c: 01 [11:53:53]MH_I2C_Read... [11:53:53]Read from MH i2c: 01 07 00 [11:53:53]MH_I2C_Read... [11:53:53]Read from MH i2c: 01 07 00 61 A2 00 00 00 00 00 12 0E 2A [11:53:53]RasterBufferAndPrint [11:53:53]line [11:53:53]line [11:53:53]line [11:53:53]line [11:53:53]line [11:53:53]written 0, free lines is 3604 [11:53:53]MH_Cut [11:53:53]Write to MH i2c: D1 01 00 68 A2 01 DC [11:53:53]Write i2c OK [11:53:53]MH_I2C_Read... [11:53:53]Read from MH i2c: D1 [11:53:53]MH_I2C_Read... [11:53:53]Read from MH i2c: D1 01 00 [11:53:53]MH_I2C_Read... [11:53:53]Read from MH i2c: D1 01 00 68 A2 00 DB [11:53:53]Write to MH i2c: 01 00 00 69 A2 0B [11:53:53]Write i2c OK [11:53:53]MH_I2C_Read... [11:53:54]*** Cut start [11:53:54]*** Partial cut [11:53:54]*** CUTSNS_PIN = 1 [11:53:54]OFD Sender: No OFD packet to send [11:53:54]*** CUTSNS_PIN = 0 [11:53:54]*** Brake cut motor [11:53:55]Read from MH i2c: 01 [11:53:55]MH_I2C_Read... [11:53:55]*** Stop cut motor [11:53:55]*** Cut end [11:53:55]Read from MH i2c: 01 07 00 [11:53:55]MH_I2C_Read... [11:53:55]Read from MH i2c: 01 07 00 69 A2 00 00 00 00 00 FF 0F 20 [11:53:55]process_action print_text done [11:53:55]requested_data is exist [11:53:55]produce_requested_data [11:53:55]requested_item fm.sn is exist - process it [11:53:55]wFMCommunicate request_size=4 [11:53:55]MH_SAM_APDU [11:53:55]CAPDU: 80 11 00 00 [11:53:55]Write to MH i2c: E2 08 00 6A A2 80 11 00 00 00 00 00 00 86 [11:53:55]Write i2c OK [11:53:55]MH_I2C_Read... [11:53:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:53:55]Read from MH i2c: E2 [11:53:55]MH_I2C_Read... [11:53:55]Read from MH i2c: E2 17 00 [11:53:55]MH_I2C_Read... [11:53:55]Read from MH i2c: E2 17 00 6A A2 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 D9 [11:53:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [11:53:55]wFMCommunicate OK [11:53:55]requested_item fd.num is exist - process it [11:53:55]SAM_PROTO_GetFieldsCounters [11:53:55]wFMCommunicate request_size=4 [11:53:55]MH_SAM_APDU [11:53:55]CAPDU: 80 13 00 00 [11:53:55]Write to MH i2c: E2 08 00 6B A2 80 13 00 00 00 00 00 00 89 [11:53:55]Write i2c OK [11:53:55]MH_I2C_Read... [11:53:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:53:55]Read from MH i2c: E2 [11:53:55]MH_I2C_Read... [11:53:55]Read from MH i2c: E2 62 00 [11:53:55]MH_I2C_Read... [11:53:55]Read from MH i2c: E2 62 00 6B A2 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 DF 94 01 00 0E 04 04 00 61 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 6D [11:53: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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 DF 94 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 4D 00 00 00 5E 04 04 00 4D 00 00 00 57 04 04 00 4E 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:53:55]wFMCommunicate OK [11:53:55]SAM_PROTO_GetFieldsCounters done [11:53:55]requested_item shift.num is exist - process it [11:53:55]requested_item shift.opened is exist - process it [11:53:55]req_shift_opened [11:53:55]FM_GetShiftState [11:53:55]SAM_PROTO_GetShiftState [11:53:55]wFMCommunicate request_size=4 [11:53:55]MH_SAM_APDU [11:53:55]CAPDU: 80 13 01 00 [11:53:55]Write to MH i2c: E2 08 00 6C A2 80 13 01 00 00 00 00 00 8B [11:53:55]Write i2c OK [11:53:55]MH_I2C_Read... [11:53:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:53:55]Read from MH i2c: E2 [11:53:55]MH_I2C_Read... [11:53:55]Read from MH i2c: E2 0E 00 [11:53:55]MH_I2C_Read... [11:53:55]Read from MH i2c: E2 0E 00 6C A2 00 09 00 01 04 26 72 66 00 00 00 00 90 00 99 [11:53:55]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [11:53:55]wFMCommunicate OK [11:53:55]SAM_PROTO_GetShiftState done [11:53:55]FM_GetShiftState done [11:53:55]req_shift_opened done [11:53:55]requested_item shift.open_date is exist - process it [11:53:55]req_shift_open_date [11:53:55]req_shift_open_date done [11:53:55]produce_requested_data done [11:53:55]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103647,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [11:53:55]process_action_free print_text [11:53:55]json_value_free [11:53:55]json_value_free done [11:53:55]process_json_proto returns [11:53:55]Send response to host [11:53:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103647,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [11:53:55]free response buf [11:53:55]execute_script done [11:53:55]execute_script returns [11:53:55]free content buf [11:53:55]Sock 7.Close socket [11:53:55]Sock 7.Thread stoped [11:53:59]OFD Sender: No OFD packet to send [11:54:04]OFD Sender: No OFD packet to send [11:54:09]OFD Sender: No OFD packet to send [11:54:14]OFD Sender: No OFD packet to send [11:54:19]OFD Sender: No OFD packet to send [11:54:24]OFD Sender: No OFD packet to send [11:54:29]OFD Sender: No OFD packet to send [11:54:34]OFD Sender: No OFD packet to send [11:54:39]OFD Sender: No OFD packet to send [11:54:44]OFD Sender: No OFD packet to send [11:54:49]OFD Sender: No OFD packet to send [11:54:54]OFD Sender: No OFD packet to send [11:54:55]accept exits with 9 [11:54:55]New connection [11:54:55]New thread 3067227492 created [11:54:55]Thread 3067084132 joined [11:54:55]Waiting for new connection... [11:54:55] Sock 9.Parse request [11:54:55]Sock 9.Check first char [11:54:55]Sock 9.First char is OK [11:54:55]request: POST /json_proto HTTP/1.0 [11:54:55]Method: POST [11:54:55]URL: /json_proto [11:54:55]Method is POST - this is cgi request [11:54:55]url: /json_proto [11:54:55]query_string will be loaded in cgi processing [11:54:55]execute_cgi json_proto POST (null) [11:54:55]execute_cgi path=json_proto method=POST [11:54:55]POST find Content-Length [11:54:55]Host: 172.17.38.133:8080 [11:54:55]Content-Length: 1205 [11:54:55]Content-Type: application/json [11:54:55] [11:54:55]POST finish read [11:54:55]Found Content-Length = 1205 [11:54:55]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 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. \u000A\u0421\u0447\u0435\u0442 N : (1)672894\u000A19.06.2024 11:32\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 32\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 66.40\u000A\u0418\u0422\u041E\u0413: 1328.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\u000A3888529;3888549\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:54:55]execute_script... [11:54:55]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 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. \u000A\u0421\u0447\u0435\u0442 N : (1)672894\u000A19.06.2024 11:32\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 32\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 66.40\u000A\u0418\u0422\u041E\u0413: 1328.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\u000A3888529;3888549\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:54:55]POST & json_proto [11:54:55]process_json_proto [11:54:55]json parsed OK: [11:54:55]protocol is kg_v1.0 [11:54:55]action value=print_text [11:54:55]process_action print_text [11:54:55]cmd_print_text [11:54:55]ExternCall_PrintAddStr [11:54:55]wPrintStart [11:54:55]Write to MH i2c: 01 00 00 6D A2 0F [11:54:55]Write i2c OK [11:54:55]MH_I2C_Read... [11:54:55]Read from MH i2c: 01 [11:54:55]MH_I2C_Read... [11:54:55]Read from MH i2c: 01 07 00 [11:54:55]MH_I2C_Read... [11:54:55]Read from MH i2c: 01 07 00 6D A2 00 00 00 00 00 FF 0F 24 [11:54:55]RasterBufferAndPrint [11:54:55]line *****ТОВАРНЫЙ ЧЕК***** [11:54:55]line АЗС 120 [11:54:55]line Партнер нефть [11:54:55]line 02508201610067 [11:54:55]line Кассир : Байбугуева Г. [11:54:55]line Счет N : (1)672894 [11:54:55]line 19.06.2024 11:32 [11:54:55]line ПРОДАЖА [11:54:55]line ТРК (МРК, ГНК): 32 [11:54:55]line Вид ГСМ : 2710124130 [11:54:55]line Аи-92-К-5 [11:54:55]line 20.000 x 66.40 [11:54:55]line ИТОГ: 1328.00 [11:54:55]line Тип оплаты: Талоны: Партнер нефть [11:54:55]line 3888529;3888549 [11:54:55]line ______________________ [11:54:55]line (подпись) [11:54:55]written 0, free lines is 4095 [11:54:55]Write to MH i2c: 01 00 00 81 A2 23 [11:54:55]Write i2c OK [11:54:55]MH_I2C_Read... [11:54:55]Read from MH i2c: 01 [11:54:55]MH_I2C_Read... [11:54:55]Read from MH i2c: 01 07 00 [11:54:55]MH_I2C_Read... [11:54:55]Read from MH i2c: 01 07 00 81 A2 00 00 00 00 00 1B 0E 53 [11:54:55]RasterBufferAndPrint [11:54:55]line [11:54:55]line [11:54:55]line [11:54:55]line [11:54:55]line [11:54:55]written 0, free lines is 3612 [11:54:55]MH_Cut [11:54:55]Write to MH i2c: D1 01 00 88 A2 01 FC [11:54:55]Write i2c OK [11:54:55]MH_I2C_Read... [11:54:55]Read from MH i2c: D1 [11:54:55]MH_I2C_Read... [11:54:55]Read from MH i2c: D1 01 00 [11:54:55]MH_I2C_Read... [11:54:55]Read from MH i2c: D1 01 00 88 A2 00 FB [11:54:55]Write to MH i2c: 01 00 00 89 A2 2B [11:54:55]Write i2c OK [11:54:55]MH_I2C_Read... [11:54:55]*** Cut start [11:54:55]*** Partial cut [11:54:55]*** CUTSNS_PIN = 1 [11:54:55]*** CUTSNS_PIN = 0 [11:54:56]*** Brake cut motor [11:54:56]Read from MH i2c: 01 [11:54:56]MH_I2C_Read... [11:54:56]Read from MH i2c: 01 07 00 [11:54:56]MH_I2C_Read... [11:54:56]*** Stop cut motor [11:54:56]*** Cut end [11:54:56]Read from MH i2c: 01 07 00 89 A2 00 00 00 00 00 FF 0F 40 [11:54:56]process_action print_text done [11:54:56]requested_data is exist [11:54:56]produce_requested_data [11:54:56]requested_item fm.sn is exist - process it [11:54:56]wFMCommunicate request_size=4 [11:54:56]MH_SAM_APDU [11:54:56]CAPDU: 80 11 00 00 [11:54:56]Write to MH i2c: E2 08 00 8A A2 80 11 00 00 00 00 00 00 A6 [11:54:56]Write i2c OK [11:54:56]MH_I2C_Read... [11:54:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:54:56]Read from MH i2c: E2 [11:54:56]MH_I2C_Read... [11:54:56]Read from MH i2c: E2 17 00 [11:54:56]MH_I2C_Read... [11:54:56]Read from MH i2c: E2 17 00 8A A2 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 F9 [11:54:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [11:54:56]wFMCommunicate OK [11:54:56]requested_item fd.num is exist - process it [11:54:56]SAM_PROTO_GetFieldsCounters [11:54:56]wFMCommunicate request_size=4 [11:54:56]MH_SAM_APDU [11:54:56]CAPDU: 80 13 00 00 [11:54:56]Write to MH i2c: E2 08 00 8B A2 80 13 00 00 00 00 00 00 A9 [11:54:56]Write i2c OK [11:54:56]MH_I2C_Read... [11:54:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:54:56]Read from MH i2c: E2 [11:54:56]MH_I2C_Read... [11:54:56]Read from MH i2c: E2 62 00 [11:54:56]MH_I2C_Read... [11:54:56]Read from MH i2c: E2 62 00 8B A2 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 DF 94 01 00 0E 04 04 00 61 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 8D [11:54: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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 DF 94 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 4D 00 00 00 5E 04 04 00 4D 00 00 00 57 04 04 00 4E 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:54:56]wFMCommunicate OK [11:54:56]SAM_PROTO_GetFieldsCounters done [11:54:56]requested_item shift.num is exist - process it [11:54:56]requested_item shift.opened is exist - process it [11:54:56]req_shift_opened [11:54:56]FM_GetShiftState [11:54:56]SAM_PROTO_GetShiftState [11:54:56]wFMCommunicate request_size=4 [11:54:56]MH_SAM_APDU [11:54:56]CAPDU: 80 13 01 00 [11:54:56]Write to MH i2c: E2 08 00 8C A2 80 13 01 00 00 00 00 00 AB [11:54:56]Write i2c OK [11:54:56]MH_I2C_Read... [11:54:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:54:56]Read from MH i2c: E2 [11:54:56]MH_I2C_Read... [11:54:56]Read from MH i2c: E2 0E 00 [11:54:56]MH_I2C_Read... [11:54:56]Read from MH i2c: E2 0E 00 8C A2 00 09 00 01 04 26 72 66 00 00 00 00 90 00 B9 [11:54:56]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [11:54:56]wFMCommunicate OK [11:54:56]SAM_PROTO_GetShiftState done [11:54:56]FM_GetShiftState done [11:54:56]req_shift_opened done [11:54:56]requested_item shift.open_date is exist - process it [11:54:56]req_shift_open_date [11:54:56]req_shift_open_date done [11:54:56]produce_requested_data done [11:54:56]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103647,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [11:54:56]process_action_free print_text [11:54:56]json_value_free [11:54:56]json_value_free done [11:54:56]process_json_proto returns [11:54:56]Send response to host [11:54:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103647,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [11:54:56]free response buf [11:54:56]execute_script done [11:54:56]execute_script returns [11:54:56]free content buf [11:54:56]Sock 9.Close socket [11:54:56]Sock 9.Thread stoped [11:54:59]OFD Sender: No OFD packet to send [11:55:04]OFD Sender: No OFD packet to send [11:55:09]OFD Sender: No OFD packet to send [11:55:13]accept exits with 7 [11:55:13]New connection [11:55:13]New thread 3067084132 created [11:55:13]Thread 3067227492 joined [11:55:13]Waiting for new connection... [11:55:13] Sock 7.Parse request [11:55:13]Sock 7.Check first char [11:55:13]Sock 7.First char is OK [11:55:13]request: POST /json_proto HTTP/1.0 [11:55:13]Method: POST [11:55:13]URL: /json_proto [11:55:13]Method is POST - this is cgi request [11:55:13]url: /json_proto [11:55:13]query_string will be loaded in cgi processing [11:55:13]execute_cgi json_proto POST (null) [11:55:13]execute_cgi path=json_proto method=POST [11:55:13]POST find Content-Length [11:55:13]Host: 172.17.38.133:8080 [11:55:13]Content-Length: 682 [11:55:13]Content-Type: application/json [11:55:13] [11:55:13]POST finish read [11:55:13]Found Content-Length = 682 [11:55:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672895", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 22.600, "sum" : 1500.64, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:55:13]execute_script... [11:55:13]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672895", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 22.600, "sum" : 1500.64, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:55:13]POST & json_proto [11:55:13]process_json_proto [11:55:13]json parsed OK: [11:55:13]protocol is kg_v1.0 [11:55:13]action value=close_receipt [11:55:13]process_action close_receipt [11:55:13]cmd_close_receipt [11:55:13]MH_GetDate [11:55:13]Write to MH i2c: F0 00 00 8D A2 1E [11:55:13]Write i2c OK [11:55:13]MH_I2C_Read... [11:55:13]Read from MH i2c: F0 [11:55:13]MH_I2C_Read... [11:55:13]Read from MH i2c: F0 09 00 [11:55:13]MH_I2C_Read... [11:55:13]Read from MH i2c: F0 09 00 8D A2 00 2D C7 72 66 BD 8F 7C 64 1F [11:55:13]GetLastDocTimeStamp 1718797828 [11:55:13]current date 1718798125 [11:55:13]FM_GetShiftState [11:55:13]SAM_PROTO_GetShiftState [11:55:13]wFMCommunicate request_size=4 [11:55:13]MH_SAM_APDU [11:55:13]CAPDU: 80 13 01 00 [11:55:13]Write to MH i2c: E2 08 00 8E A2 80 13 01 00 00 00 00 00 AD [11:55:13]Write i2c OK [11:55:13]MH_I2C_Read... [11:55:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:55:13]Read from MH i2c: E2 [11:55:13]MH_I2C_Read... [11:55:13]Read from MH i2c: E2 0E 00 [11:55:13]MH_I2C_Read... [11:55:13]Read from MH i2c: E2 0E 00 8E A2 00 09 00 01 04 26 72 66 00 00 00 00 90 00 BB [11:55:13]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [11:55:13]wFMCommunicate OK [11:55:13]SAM_PROTO_GetShiftState done [11:55:13]FM_GetShiftState done [11:55:13]opened in 1718756868 [11:55:13]opened+sec_in_day 1718843268 [11:55:13]quantity*price = 150064 [11:55:13]sum+1 = 150065 [11:55:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.64 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.36 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 78 19.06.2024 11:55 Смена: 353 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103648 ФПД: 207999708367825 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T115525&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103648&fm=207999708367825&tin=02508201610067®Number=0000000000092785&sum=150000 [11:55:14]StoreToDocumentArchive [11:55:14]shift 353 fd 103648 [11:55:14]save to /storage/0353/doc_00103648 [11:55:14]save last doc name /storage/0353/doc_00103648 to /storage/kkm_last_doc_name [11:55:14]save OK [11:55:14]Clear old archive folders... [11:55:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:55:14]tlvbuf is 01391020 [11:55:14]SAM_PROTO_ClearQueue [11:55:14]wFMCommunicate request_size=4 [11:55:14]MH_SAM_APDU [11:55:14]CAPDU: 80 09 00 00 [11:55:14]Write to MH i2c: E2 08 00 9B A2 80 09 00 00 00 00 00 00 AF [11:55:14]Write i2c OK [11:55:14]MH_I2C_Read... [11:55:14]Read from MH i2c: E2 [11:55:14]MH_I2C_Read... [11:55:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:55:14]Read from MH i2c: E2 03 00 [11:55:14]MH_I2C_Read... [11:55:14]Read from MH i2c: E2 03 00 9B A2 00 90 00 B1 [11:55:14]RAPDU: 90 00 [11:55:14]wFMCommunicate OK [11:55:14]SAM_PROTO_ClearQueue done [11:55:14]KKMCreateOFDPacket [11:55:14]OFDProtocolAddRootSTLVToBuf [11:55:14]FM_MakeSignedData [11:55:14]FM_MakeSignedData [11:55:14]SAM_PROTO_SignData [11:55:14]wFMCommunicate request_size=4 [11:55:14]MH_SAM_APDU [11:55:14]CAPDU: 80 0D 01 02 [11:55:14]Write to MH i2c: E2 08 00 9C A2 80 0D 01 02 00 00 00 00 B7 [11:55:14]Write i2c OK [11:55:14]MH_I2C_Read... [11:55:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:55:14]Read from MH i2c: E2 [11:55:14]MH_I2C_Read... [11:55:14]Read from MH i2c: E2 03 00 [11:55:14]MH_I2C_Read... [11:55:14]Read from MH i2c: E2 03 00 9C A2 00 90 00 B2 [11:55:14]RAPDU: 90 00 [11:55:14]wFMCommunicate OK [11:55:14]wFMCommunicate request_size=255 [11:55:14]MH_SAM_APDU [11:55:14]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 48 58 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 30 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 40 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 2D C7 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 E0 94 01 00 35 04 06 00 BD [11:55:14]Write to MH i2c: E2 02 01 9D A2 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 48 58 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 30 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 40 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 2D C7 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 E0 94 01 00 35 04 06 00 BD 00 00 C3 [11:55:14]Write i2c OK [11:55:14]MH_I2C_Read... [11:55:14]OFD Sender: No OFD packet to send [11:55:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:55:14]Read from MH i2c: E2 [11:55:14]MH_I2C_Read... [11:55:14]Read from MH i2c: E2 03 00 [11:55:14]MH_I2C_Read... [11:55:14]Read from MH i2c: E2 03 00 9D A2 00 90 00 B3 [11:55:14]RAPDU: 90 00 [11:55:14]wFMCommunicate OK [11:55:14]wFMCommunicate request_size=10 [11:55:14]MH_SAM_APDU [11:55:14]CAPDU: 80 0D 02 02 05 2C B4 BB 0B D1 [11:55:14]Write to MH i2c: E2 0D 00 9E A2 80 0D 02 02 05 00 2C B4 BB 0B D1 00 00 3B [11:55:14]Write i2c OK [11:55:14]MH_I2C_Read... [11:55:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:55:14]Read from MH i2c: E2 [11:55:14]MH_I2C_Read... [11:55:14]Read from MH i2c: E2 03 00 [11:55:14]MH_I2C_Read... [11:55:14]Read from MH i2c: E2 03 00 9E A2 00 90 00 B4 [11:55:14]RAPDU: 90 00 [11:55:14]wFMCommunicate OK [11:55:14]wFMCommunicate request_size=4 [11:55:14]MH_SAM_APDU [11:55:14]CAPDU: 80 0D 03 02 [11:55:14]Write to MH i2c: E2 08 00 9F A2 80 0D 03 02 00 00 00 00 BC [11:55:14]Write i2c OK [11:55:14]MH_I2C_Read... [11:55:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:55:14]Read from MH i2c: E2 [11:55:14]MH_I2C_Read... [11:55:14]Read from MH i2c: E2 0B 00 [11:55:14]MH_I2C_Read... [11:55:14]Read from MH i2c: E2 0B 00 9F A2 00 82 E2 BA 4C 08 CD 0E 9B 90 00 A5 [11:55:14]RAPDU: 82 E2 BA 4C 08 CD 0E 9B 90 00 [11:55:14]wFMCommunicate OK [11:55:14]SAM_PROTO_SignData done [11:55:14]FM_MakeSignedData done [11:55:14]CreateOFDProtocolMessage [11:55:14]wFMCommunicate request_size=4 [11:55:14]MH_SAM_APDU [11:55:14]CAPDU: 80 11 00 00 [11:55:14]Write to MH i2c: E2 08 00 A0 A2 80 11 00 00 00 00 00 00 BC [11:55:14]Write i2c OK [11:55:14]MH_I2C_Read... [11:55:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:55:14]Read from MH i2c: E2 [11:55:14]MH_I2C_Read... [11:55:14]Read from MH i2c: E2 17 00 [11:55:14]MH_I2C_Read... [11:55:14]Read from MH i2c: E2 17 00 A0 A2 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 0F [11:55:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [11:55:14]wFMCommunicate OK [11:55:14]CreateOFDProtocolMessage done [11:55:14]OFDSenderStorePacket 103648 [11:55:14]StoreOFDPacket docnum=103648 [11:55:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 AC 0C 07 01 6F 5D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 48 58 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 30 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 40 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 2D C7 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 E0 94 01 00 35 04 06 00 BD 2C B4 BB 0B D1 82 E2 BA 4C 08 CD 0E 9B [11:55:14]CheckFolder [11:55:14]dirname=/storage/ofd_packets [11:55:14]CheckFolder done [11:55:14]ProducePacketName [11:55:14]name=ofd_packets/00103648 [11:55:14]NVStorageSaveData ofd_packets/00103648 [11:55:14]File name is /storage/ofd_packets/00103648 [11:55:14]Write 301 bytes [11:55:14]NVStorageSaveData done [11:55:14]OFDSenderStorePacket done [11:55:14]KKMCreateOFDPacket done [11:55:14]NVStorageSaveData kkm_last_timestamp [11:55:14]File name is /storage/kkm_last_timestamp [11:55:14]Write 4 bytes [11:55:14]NVStorageSaveData done [11:55:14]ExternCall_PrintAddStr [11:55:14]wPrintStart [11:55:14]Write to MH i2c: 01 00 00 A1 A2 43 [11:55:14]Write i2c OK [11:55:14]MH_I2C_Read... [11:55:14]Read from MH i2c: 01 [11:55:14]MH_I2C_Read... [11:55:14]Read from MH i2c: 01 07 00 [11:55:14]MH_I2C_Read... [11:55:14]Read from MH i2c: 01 07 00 A1 A2 00 00 00 00 00 FF 0F 58 [11:55:14]RasterBufferAndPrint [11:55:14]line Счет N : (1)672895 [11:55:14]line ИНН: 02508201610067 [11:55:14]line Контрольно-Кассовый Чек [11:55:14]line ПРОДАЖА [11:55:14]line ТРК (МРК, ГНК) : 42 [11:55:14]line Товар: 2710124130 [11:55:14]line Аи-92-К-5 [11:55:14]line 22.600 * 66.40 [11:55:14]line = 1500.64 [11:55:14]line НДС 12% НСП 1% [11:55:14]line > о реализуемом товаре [11:55:14]line ОКРУГЛЕНИЕ: -0.64 [11:55:14]line ИТОГО: 1500.00 [11:55:14]line Внесено: 1500.00 [11:55:14]line СДАЧА: 0.00 [11:55:14]line НСП 1% : 13.28 [11:55:14]line НДС 12% : 159.36 [11:55:14]line Наличными: 1500.00 [11:55:14]line Безнал.: 0.00 [11:55:14]line Место: АЗС № 120 "Партнер Нефть" [11:55:14]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [11:55:14]line СНО: Общий режим [11:55:14]line Чек 78 19.06.2024 11:55 [11:55:14]line Смена: 353 ФФД: 1.0 [11:55:14]line ЗНМ: 0300000164 [11:55:14]line РНМ: 0000000000092785 [11:55:14]line Версия ККМ: 001 [11:55:14]line ФМ: 0000000000875093 [11:55:14]line ФД: 103648 [11:55:14]line ФПД: 207999708367825 [11:55:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T115525&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103648&fm=207999708367825&tin=02508201610067®Number=0000000000092785&sum=150000 [11:55:14]written 0, free lines is 4095 [11:55:14]OFD Sender: Processing packet 103648 [packets to send 17, broken 16] [11:55:14]ProducePacketName [11:55:14]name=ofd_packets/00103648 [11:55:14]OFD Sender: To server: pG, [11:55:14]CommunicateWithHost lk.salyk.kg:30040 [11:55:14]ConnectInit lk.salyk.kg [11:55:15]Connected sock=11 [11:55:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 AC 0C 07 01 6F 5D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 48 58 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 30 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 40 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 2D C7 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 E0 94 01 00 35 04 06 00 BD 2C B4 BB 0B D1 82 E2 BA 4C 08 CD 0E 9B [11:55: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 39 33 4F 00 00 00 68 9D 47 00 33 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 39 33 10 04 04 00 E0 94 01 00 F4 03 04 00 B6 6D 72 66 B6 04 01 00 00 20 C6 1D FE 7B 01 45 94 [11:55:15]CommunicateWithHost err = 0 [11:55:15]CheckOFDResponse [11:55:15]1017 (14) - 77093643461234 [11:55:15]1041 (16) - 0000000000875093 [11:55:15]1040 (4) - 103648 [11:55:15]1012 (4) - 19.06.2024 05:33 [11:55:15]1206 (1) - 0 [11:55:15]OFD Sender: Remove packet 103648 [11:55:15]ProducePacketName [11:55:15]name=ofd_packets/00103648 [11:55:15]NVStorageDeleteData [11:55:15]Write to MH i2c: 01 00 00 CC A2 6E [11:55:15]Write i2c OK [11:55:15]MH_I2C_Read... [11:55:15]Read from MH i2c: 01 [11:55:15]MH_I2C_Read... [11:55:15]Read from MH i2c: 01 07 00 [11:55:15]MH_I2C_Read... [11:55:15]Read from MH i2c: 01 07 00 CC A2 00 00 00 00 00 F7 0C 78 [11:55:15]RasterBufferAndPrint [11:55:15]line [11:55:15]line [11:55:15]line [11:55:15]line [11:55:15]line [11:55:15]written 0, free lines is 3327 [11:55:15]MH_Cut [11:55:15]Write to MH i2c: D1 01 00 D3 A2 01 47 [11:55:15]Write i2c OK [11:55:15]MH_I2C_Read... [11:55:15]Read from MH i2c: D1 [11:55:15]MH_I2C_Read... [11:55:15]Read from MH i2c: D1 01 00 [11:55:15]MH_I2C_Read... [11:55:15]Read from MH i2c: D1 01 00 D3 A2 00 46 [11:55:15]Write to MH i2c: 01 00 00 D4 A2 76 [11:55:15]Write i2c OK [11:55:15]MH_I2C_Read... [11:55:15]OFD Sender: No OFD packet to send [11:55:16]*** Cut start [11:55:16]*** Partial cut [11:55:16]*** CUTSNS_PIN = 1 [11:55:16]*** CUTSNS_PIN = 0 [11:55:16]*** Brake cut motor [11:55:16]Read from MH i2c: 01 [11:55:16]MH_I2C_Read... [11:55:16]*** Stop cut motor [11:55:16]*** Cut end [11:55:16]Read from MH i2c: 01 07 00 [11:55:16]MH_I2C_Read... [11:55:16]Read from MH i2c: 01 07 00 D4 A2 00 00 00 00 00 FF 0F 8B [11:55:16]process_action close_receipt done [11:55:16]requested_data is exist [11:55:16]produce_requested_data [11:55:16]requested_item fm.sn is exist - process it [11:55:16]wFMCommunicate request_size=4 [11:55:16]MH_SAM_APDU [11:55:16]CAPDU: 80 11 00 00 [11:55:16]Write to MH i2c: E2 08 00 D5 A2 80 11 00 00 00 00 00 00 F1 [11:55:16]Write i2c OK [11:55:16]MH_I2C_Read... [11:55:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:55:16]Read from MH i2c: E2 [11:55:16]MH_I2C_Read... [11:55:16]Read from MH i2c: E2 17 00 [11:55:16]MH_I2C_Read... [11:55:16]Read from MH i2c: E2 17 00 D5 A2 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 44 [11:55:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [11:55:16]wFMCommunicate OK [11:55:16]requested_item fd.num is exist - process it [11:55:16]SAM_PROTO_GetFieldsCounters [11:55:16]wFMCommunicate request_size=4 [11:55:16]MH_SAM_APDU [11:55:16]CAPDU: 80 13 00 00 [11:55:16]Write to MH i2c: E2 08 00 D6 A2 80 13 00 00 00 00 00 00 F4 [11:55:16]Write i2c OK [11:55:16]MH_I2C_Read... [11:55:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:55:16]Read from MH i2c: E2 [11:55:16]MH_I2C_Read... [11:55:16]Read from MH i2c: E2 62 00 [11:55:16]MH_I2C_Read... [11:55:16]Read from MH i2c: E2 62 00 D6 A2 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 E0 94 01 00 0E 04 04 00 61 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 DC [11:55: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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 E0 94 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 4E 00 00 00 5E 04 04 00 4E 00 00 00 57 04 04 00 4F 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:55:16]wFMCommunicate OK [11:55:16]SAM_PROTO_GetFieldsCounters done [11:55:16]requested_item shift.num is exist - process it [11:55:16]requested_item shift.opened is exist - process it [11:55:16]req_shift_opened [11:55:16]FM_GetShiftState [11:55:16]SAM_PROTO_GetShiftState [11:55:16]wFMCommunicate request_size=4 [11:55:16]MH_SAM_APDU [11:55:16]CAPDU: 80 13 01 00 [11:55:16]Write to MH i2c: E2 08 00 D7 A2 80 13 01 00 00 00 00 00 F6 [11:55:16]Write i2c OK [11:55:16]MH_I2C_Read... [11:55:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:55:16]Read from MH i2c: E2 [11:55:16]MH_I2C_Read... [11:55:16]Read from MH i2c: E2 0E 00 [11:55:16]MH_I2C_Read... [11:55:16]Read from MH i2c: E2 0E 00 D7 A2 00 09 00 01 04 26 72 66 00 00 00 00 90 00 04 [11:55:16]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [11:55:16]wFMCommunicate OK [11:55:16]SAM_PROTO_GetShiftState done [11:55:16]FM_GetShiftState done [11:55:16]req_shift_opened done [11:55:16]requested_item shift.open_date is exist - process it [11:55:16]req_shift_open_date [11:55:16]req_shift_open_date done [11:55:16]produce_requested_data done [11:55:16]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103648,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [11:55:16]process_action_free close_receipt [11:55:16]json_value_free [11:55:16]json_value_free done [11:55:16]process_json_proto returns [11:55:16]Send response to host [11:55:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103648,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [11:55:16]free response buf [11:55:16]execute_script done [11:55:16]execute_script returns [11:55:16]free content buf [11:55:16]Sock 7.Close socket [11:55:16]Sock 7.Thread stoped [11:55:20]OFD Sender: No OFD packet to send [11:55:25]OFD Sender: No OFD packet to send [11:55:30]OFD Sender: No OFD packet to send [11:55:35]OFD Sender: No OFD packet to send [11:55:40]OFD Sender: No OFD packet to send [11:55:45]OFD Sender: No OFD packet to send [11:55:50]OFD Sender: No OFD packet to send [11:55:55]OFD Sender: No OFD packet to send [11:56:00]OFD Sender: No OFD packet to send [11:56:05]OFD Sender: No OFD packet to send [11:56:10]OFD Sender: No OFD packet to send [11:56:15]OFD Sender: No OFD packet to send [11:56:20]OFD Sender: No OFD packet to send [11:56:25]OFD Sender: No OFD packet to send [11:56:30]OFD Sender: No OFD packet to send [11:56:35]OFD Sender: No OFD packet to send [11:56:40]OFD Sender: No OFD packet to send [11:56:45]OFD Sender: No OFD packet to send [11:56:50]OFD Sender: No OFD packet to send [11:56:52]accept exits with 9 [11:56:52]New connection [11:56:52]New thread 3067227492 created [11:56:52]Thread 3067084132 joined [11:56:52]Waiting for new connection... [11:56:52] Sock 9.Parse request [11:56:52]Sock 9.Check first char [11:56:52]Sock 9.First char is OK [11:56:52]request: POST /json_proto HTTP/1.0 [11:56:52]Method: POST [11:56:52]URL: /json_proto [11:56:52]Method is POST - this is cgi request [11:56:52]url: /json_proto [11:56:52]query_string will be loaded in cgi processing [11:56:52]execute_cgi json_proto POST (null) [11:56:52]execute_cgi path=json_proto method=POST [11:56:52]POST find Content-Length [11:56:52]Host: 172.17.38.133:8080 [11:56:52]Content-Length: 819 [11:56:52]Content-Type: application/json [11:56:52] [11:56:52]POST finish read [11:56:52]Found Content-Length = 819 [11:56:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672897", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.65 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:56:52]execute_script... [11:56:52]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672897", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.65 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:56:52]POST & json_proto [11:56:52]process_json_proto [11:56:52]json parsed OK: [11:56:52]protocol is kg_v1.0 [11:56:52]action value=close_receipt [11:56:52]process_action close_receipt [11:56:52]cmd_close_receipt [11:56:52]MH_GetDate [11:56:52]Write to MH i2c: F0 00 00 D8 A2 69 [11:56:52]Write i2c OK [11:56:52]MH_I2C_Read... [11:56:52]Read from MH i2c: F0 [11:56:52]MH_I2C_Read... [11:56:52]Read from MH i2c: F0 09 00 [11:56:52]MH_I2C_Read... [11:56:52]Read from MH i2c: F0 09 00 D8 A2 00 90 C7 72 66 BD 8F 7C 64 CD [11:56:52]GetLastDocTimeStamp 1718798125 [11:56:52]current date 1718798224 [11:56:52]FM_GetShiftState [11:56:52]SAM_PROTO_GetShiftState [11:56:52]wFMCommunicate request_size=4 [11:56:52]MH_SAM_APDU [11:56:52]CAPDU: 80 13 01 00 [11:56:52]Write to MH i2c: E2 08 00 D9 A2 80 13 01 00 00 00 00 00 F8 [11:56:52]Write i2c OK [11:56:52]MH_I2C_Read... [11:56:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:56:52]Read from MH i2c: E2 [11:56:52]MH_I2C_Read... [11:56:52]Read from MH i2c: E2 0E 00 [11:56:52]MH_I2C_Read... [11:56:52]Read from MH i2c: E2 0E 00 D9 A2 00 09 00 01 04 26 72 66 00 00 00 00 90 00 06 [11:56:52]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [11:56:52]wFMCommunicate OK [11:56:52]SAM_PROTO_GetShiftState done [11:56:52]FM_GetShiftState done [11:56:52]opened in 1718756868 [11:56:52]opened+sec_in_day 1718843268 [11:56:52]quantity*price = 100064 [11:56:52]sum+1 = 100066 [11:56:52]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.65 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 0.00 Безнал.: 1000.65 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 79 19.06.2024 11:57 Смена: 353 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000875093 ФД: 103649 ФПД: 227892527148670 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T115704&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103649&fm=227892527148670&tin=02508201610067®Number=0000000000092785&sum=100065 [11:56:53]StoreToDocumentArchive [11:56:53]shift 353 fd 103649 [11:56:53]save to /storage/0353/doc_00103649 [11:56:53]save last doc name /storage/0353/doc_00103649 to /storage/kkm_last_doc_name [11:56:53]save OK [11:56:53]Clear old archive folders... [11:56:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:56:53]tlvbuf is 01678EE0 [11:56:53]SAM_PROTO_ClearQueue [11:56:53]wFMCommunicate request_size=4 [11:56:53]MH_SAM_APDU [11:56:53]CAPDU: 80 09 00 00 [11:56:53]Write to MH i2c: E2 08 00 E6 A2 80 09 00 00 00 00 00 00 FA [11:56:53]Write i2c OK [11:56:53]MH_I2C_Read... [11:56:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:56:53]Read from MH i2c: E2 [11:56:53]MH_I2C_Read... [11:56:53]Read from MH i2c: E2 03 00 [11:56:53]MH_I2C_Read... [11:56:53]Read from MH i2c: E2 03 00 E6 A2 00 90 00 FC [11:56:53]RAPDU: 90 00 [11:56:53]wFMCommunicate OK [11:56:53]SAM_PROTO_ClearQueue done [11:56:53]KKMCreateOFDPacket [11:56:53]OFDProtocolAddRootSTLVToBuf [11:56:53]FM_MakeSignedData [11:56:53]FM_MakeSignedData [11:56:53]SAM_PROTO_SignData [11:56:53]wFMCommunicate request_size=4 [11:56:53]MH_SAM_APDU [11:56:53]CAPDU: 80 0D 01 02 [11:56:53]Write to MH i2c: E2 08 00 E7 A2 80 0D 01 02 00 00 00 00 02 [11:56:53]Write i2c OK [11:56:53]MH_I2C_Read... [11:56:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:56:53]Read from MH i2c: E2 [11:56:53]MH_I2C_Read... [11:56:53]Read from MH i2c: E2 03 00 [11:56:53]MH_I2C_Read... [11:56:53]Read from MH i2c: E2 03 00 E7 A2 00 90 00 FD [11:56:53]RAPDU: 90 00 [11:56:53]wFMCommunicate OK [11:56:53]wFMCommunicate request_size=255 [11:56:53]MH_SAM_APDU [11:56:53]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E1 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E1 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 90 C7 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 E1 94 01 00 35 04 06 00 CF [11:56:53]Write to MH i2c: E2 02 01 E8 A2 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E1 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E1 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 90 C7 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 E1 94 01 00 35 04 06 00 CF 00 00 B3 [11:56:53]Write i2c OK [11:56:53]MH_I2C_Read... [11:56:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:56:53]Read from MH i2c: E2 [11:56:53]MH_I2C_Read... [11:56:53]Read from MH i2c: E2 03 00 [11:56:53]MH_I2C_Read... [11:56:53]Read from MH i2c: E2 03 00 E8 A2 00 90 00 FE [11:56:53]RAPDU: 90 00 [11:56:53]wFMCommunicate OK [11:56:53]wFMCommunicate request_size=10 [11:56:53]MH_SAM_APDU [11:56:53]CAPDU: 80 0D 02 02 05 44 5D 20 AE 7E [11:56:53]Write to MH i2c: E2 0D 00 E9 A2 80 0D 02 02 05 00 44 5D 20 AE 7E 00 00 FC [11:56:53]Write i2c OK [11:56:53]MH_I2C_Read... [11:56:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:56:53]Read from MH i2c: E2 [11:56:53]MH_I2C_Read... [11:56:53]Read from MH i2c: E2 03 00 [11:56:53]MH_I2C_Read... [11:56:53]Read from MH i2c: E2 03 00 E9 A2 00 90 00 FF [11:56:53]RAPDU: 90 00 [11:56:53]wFMCommunicate OK [11:56:53]wFMCommunicate request_size=4 [11:56:53]MH_SAM_APDU [11:56:53]CAPDU: 80 0D 03 02 [11:56:53]Write to MH i2c: E2 08 00 EA A2 80 0D 03 02 00 00 00 00 07 [11:56:53]Write i2c OK [11:56:53]MH_I2C_Read... [11:56:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:56:53]Read from MH i2c: E2 [11:56:53]MH_I2C_Read... [11:56:53]Read from MH i2c: E2 0B 00 [11:56:53]MH_I2C_Read... [11:56:53]Read from MH i2c: E2 0B 00 EA A2 00 88 60 04 D7 5B 73 57 85 90 00 75 [11:56:53]RAPDU: 88 60 04 D7 5B 73 57 85 90 00 [11:56:53]wFMCommunicate OK [11:56:53]SAM_PROTO_SignData done [11:56:53]FM_MakeSignedData done [11:56:53]CreateOFDProtocolMessage [11:56:53]wFMCommunicate request_size=4 [11:56:53]MH_SAM_APDU [11:56:53]CAPDU: 80 11 00 00 [11:56:53]Write to MH i2c: E2 08 00 EB A2 80 11 00 00 00 00 00 00 07 [11:56:53]Write i2c OK [11:56:53]MH_I2C_Read... [11:56:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:56:53]Read from MH i2c: E2 [11:56:53]MH_I2C_Read... [11:56:53]Read from MH i2c: E2 17 00 [11:56:53]MH_I2C_Read... [11:56:53]Read from MH i2c: E2 17 00 EB A2 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 5A [11:56:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [11:56:53]wFMCommunicate OK [11:56:53]CreateOFDProtocolMessage done [11:56:53]OFDSenderStorePacket 103649 [11:56:53]StoreOFDPacket docnum=103649 [11:56:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 63 6C 07 01 77 4D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E1 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E1 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 90 C7 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 E1 94 01 00 35 04 06 00 CF 44 5D 20 AE 7E 88 60 04 D7 5B 73 57 85 [11:56:53]CheckFolder [11:56:53]dirname=/storage/ofd_packets [11:56:53]CheckFolder done [11:56:53]ProducePacketName [11:56:53]name=ofd_packets/00103649 [11:56:53]NVStorageSaveData ofd_packets/00103649 [11:56:53]File name is /storage/ofd_packets/00103649 [11:56:53]Write 301 bytes [11:56:53]NVStorageSaveData done [11:56:53]OFDSenderStorePacket done [11:56:53]KKMCreateOFDPacket done [11:56:53]NVStorageSaveData kkm_last_timestamp [11:56:53]File name is /storage/kkm_last_timestamp [11:56:53]Write 4 bytes [11:56:53]NVStorageSaveData done [11:56:53]ExternCall_PrintAddStr [11:56:53]wPrintStart [11:56:53]Write to MH i2c: 01 00 00 EC A2 8E [11:56:53]Write i2c OK [11:56:53]MH_I2C_Read... [11:56:53]Read from MH i2c: 01 [11:56:53]MH_I2C_Read... [11:56:53]Read from MH i2c: 01 07 00 [11:56:53]MH_I2C_Read... [11:56:53]Read from MH i2c: 01 07 00 EC A2 00 00 00 00 00 FF 0F A3 [11:56:53]RasterBufferAndPrint [11:56:53]line Счет N : (1)672897 [11:56:53]line ИНН: 02508201610067 [11:56:53]line Контрольно-Кассовый Чек [11:56:53]line ПРОДАЖА [11:56:53]line ТРК (МРК, ГНК) : 42 [11:56:53]line Товар: 2710124130 [11:56:53]line Аи-92-К-5 [11:56:53]line 15.070 * 66.40 [11:56:53]line = 1000.65 [11:56:53]line НДС 12% НСП 1% [11:56:53]line > о реализуемом товаре [11:56:53]line ИТОГО: 1000.65 [11:56:53]line НСП 1% : 8.85 [11:56:53]line НДС 12% : 106.26 [11:56:53]line Наличными: 0.00 [11:56:53]line Безнал.: 1000.65 [11:56:53]line Место: АЗС № 120 "Партнер Нефть" [11:56:53]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [11:56:53]line СНО: Общий режим [11:56:53]line Чек 79 19.06.2024 11:57 [11:56:53]line Смена: 353 ФФД: 1.0 [11:56:53]line ЗНМ: 0300000164 [11:56:53]line РНМ: 0000000000092785 [11:56:53]line Версия ККМ: 001 [11:56:53]line Платежная система: Бакай Банк [11:56:53]line ФМ: 0000000000875093 [11:56:53]line ФД: 103649 [11:56:53]line ФПД: 227892527148670 [11:56:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T115704&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103649&fm=227892527148670&tin=02508201610067®Number=0000000000092785&sum=100065 [11:56:54]OFD Sender: Processing packet 103649 [packets to send 17, broken 16] [11:56:54]ProducePacketName [11:56:54]name=ofd_packets/00103649 [11:56:54]OFD Sender: To server: pG, [11:56:54]CommunicateWithHost lk.salyk.kg:30040 [11:56:54]ConnectInit lk.salyk.kg [11:56:54]written 0, free lines is 4095 [11:56:54]Connected sock=10 [11:56:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 63 6C 07 01 77 4D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E1 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E1 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 90 C7 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 E1 94 01 00 35 04 06 00 CF 44 5D 20 AE 7E 88 60 04 D7 5B 73 57 85 [11:56:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 CA C6 47 00 26 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 39 33 10 04 04 00 E1 94 01 00 F4 03 04 00 19 6E 72 66 B6 04 01 00 00 0B F6 F4 36 03 24 DD EC [11:56:54]CommunicateWithHost err = 0 [11:56:54]CheckOFDResponse [11:56:54]1017 (14) - 77093643461234 [11:56:54]1041 (16) - 0000000000875093 [11:56:54]1040 (4) - 103649 [11:56:54]1012 (4) - 19.06.2024 05:35 [11:56:54]1206 (1) - 0 [11:56:54]OFD Sender: Remove packet 103649 [11:56:54]ProducePacketName [11:56:54]name=ofd_packets/00103649 [11:56:54]NVStorageDeleteData [11:56:54]Write to MH i2c: 01 00 00 16 A3 B9 [11:56:54]Write i2c OK [11:56:54]MH_I2C_Read... [11:56:54]Read from MH i2c: 01 [11:56:54]MH_I2C_Read... [11:56:54]Read from MH i2c: 01 07 00 [11:56:54]MH_I2C_Read... [11:56:54]Read from MH i2c: 01 07 00 16 A3 00 00 00 00 00 01 0D CE [11:56:54]RasterBufferAndPrint [11:56:54]line [11:56:54]line [11:56:54]line [11:56:54]line [11:56:54]line [11:56:54]written 0, free lines is 3335 [11:56:54]MH_Cut [11:56:54]Write to MH i2c: D1 01 00 1D A3 01 92 [11:56:54]Write i2c OK [11:56:54]MH_I2C_Read... [11:56:54]Read from MH i2c: D1 [11:56:54]MH_I2C_Read... [11:56:54]Read from MH i2c: D1 01 00 [11:56:54]MH_I2C_Read... [11:56:54]Read from MH i2c: D1 01 00 1D A3 00 91 [11:56:54]Write to MH i2c: 01 00 00 1E A3 C1 [11:56:54]Write i2c OK [11:56:54]MH_I2C_Read... [11:56:55]OFD Sender: No OFD packet to send [11:56:55]*** Cut start [11:56:55]*** Partial cut [11:56:55]*** CUTSNS_PIN = 1 [11:56:55]*** CUTSNS_PIN = 0 [11:56:55]*** Brake cut motor [11:56:56]Read from MH i2c: 01 [11:56:56]MH_I2C_Read... [11:56:56]*** Stop cut motor [11:56:56]*** Cut end [11:56:56]Read from MH i2c: 01 07 00 [11:56:56]MH_I2C_Read... [11:56:56]Read from MH i2c: 01 07 00 1E A3 00 00 00 00 00 FF 0F D6 [11:56:56]process_action close_receipt done [11:56:56]requested_data is exist [11:56:56]produce_requested_data [11:56:56]requested_item fm.sn is exist - process it [11:56:56]wFMCommunicate request_size=4 [11:56:56]MH_SAM_APDU [11:56:56]CAPDU: 80 11 00 00 [11:56:56]Write to MH i2c: E2 08 00 1F A3 80 11 00 00 00 00 00 00 3C [11:56:56]Write i2c OK [11:56:56]MH_I2C_Read... [11:56:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:56:56]Read from MH i2c: E2 [11:56:56]MH_I2C_Read... [11:56:56]Read from MH i2c: E2 17 00 [11:56:56]MH_I2C_Read... [11:56:56]Read from MH i2c: E2 17 00 1F A3 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 8F [11:56:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [11:56:56]wFMCommunicate OK [11:56:56]requested_item fd.num is exist - process it [11:56:56]SAM_PROTO_GetFieldsCounters [11:56:56]wFMCommunicate request_size=4 [11:56:56]MH_SAM_APDU [11:56:56]CAPDU: 80 13 00 00 [11:56:56]Write to MH i2c: E2 08 00 20 A3 80 13 00 00 00 00 00 00 3F [11:56:56]Write i2c OK [11:56:56]MH_I2C_Read... [11:56:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:56:56]Read from MH i2c: E2 [11:56:56]MH_I2C_Read... [11:56:56]Read from MH i2c: E2 62 00 [11:56:56]MH_I2C_Read... [11:56:56]Read from MH i2c: E2 62 00 20 A3 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 E1 94 01 00 0E 04 04 00 61 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 2B [11:56:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 E1 94 01 00 0E 04 04 00 61 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 [11:56:56]wFMCommunicate OK [11:56:56]SAM_PROTO_GetFieldsCounters done [11:56:56]requested_item shift.num is exist - process it [11:56:56]requested_item shift.opened is exist - process it [11:56:56]req_shift_opened [11:56:56]FM_GetShiftState [11:56:56]SAM_PROTO_GetShiftState [11:56:56]wFMCommunicate request_size=4 [11:56:56]MH_SAM_APDU [11:56:56]CAPDU: 80 13 01 00 [11:56:56]Write to MH i2c: E2 08 00 21 A3 80 13 01 00 00 00 00 00 41 [11:56:56]Write i2c OK [11:56:56]MH_I2C_Read... [11:56:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:56:56]Read from MH i2c: E2 [11:56:56]MH_I2C_Read... [11:56:56]Read from MH i2c: E2 0E 00 [11:56:56]MH_I2C_Read... [11:56:56]Read from MH i2c: E2 0E 00 21 A3 00 09 00 01 04 26 72 66 00 00 00 00 90 00 4F [11:56:56]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [11:56:56]wFMCommunicate OK [11:56:56]SAM_PROTO_GetShiftState done [11:56:56]FM_GetShiftState done [11:56:56]req_shift_opened done [11:56:56]requested_item shift.open_date is exist - process it [11:56:56]req_shift_open_date [11:56:56]req_shift_open_date done [11:56:56]produce_requested_data done [11:56:56]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103649,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [11:56:56]process_action_free close_receipt [11:56:56]json_value_free [11:56:56]json_value_free done [11:56:56]process_json_proto returns [11:56:56]Send response to host [11:56:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103649,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [11:56:56]free response buf [11:56:56]execute_script done [11:56:56]execute_script returns [11:56:56]free content buf [11:56:56]Sock 9.Close socket [11:56:56]Sock 9.Thread stoped [11:57:00]OFD Sender: No OFD packet to send [11:57:05]OFD Sender: No OFD packet to send [11:57:10]OFD Sender: No OFD packet to send [11:57:15]OFD Sender: No OFD packet to send [11:57:20]OFD Sender: No OFD packet to send [11:57:25]OFD Sender: No OFD packet to send [11:57:30]OFD Sender: No OFD packet to send [11:57:35]OFD Sender: No OFD packet to send [11:57:40]OFD Sender: No OFD packet to send [11:57:45]OFD Sender: No OFD packet to send [11:57:50]OFD Sender: No OFD packet to send [11:57:55]OFD Sender: No OFD packet to send [11:58:00]OFD Sender: No OFD packet to send [11:58:05]OFD Sender: No OFD packet to send [11:58:10]OFD Sender: No OFD packet to send [11:58:15]OFD Sender: No OFD packet to send [11:58:20]OFD Sender: No OFD packet to send [11:58:22]accept exits with 7 [11:58:22]New connection [11:58:22]New thread 3067084132 created [11:58:22]Thread 3067227492 joined [11:58:22]Waiting for new connection... [11:58:22] Sock 7.Parse request [11:58:22]Sock 7.Check first char [11:58:22]Sock 7.First char is OK [11:58:22]request: POST /json_proto HTTP/1.0 [11:58:22]Method: POST [11:58:22]URL: /json_proto [11:58:22]Method is POST - this is cgi request [11:58:22]url: /json_proto [11:58:22]query_string will be loaded in cgi processing [11:58:22]execute_cgi json_proto POST (null) [11:58:22]execute_cgi path=json_proto method=POST [11:58:22]POST find Content-Length [11:58:22]Host: 172.17.38.133:8080 [11:58:22]Content-Length: 661 [11:58:22]Content-Type: application/json [11:58:22] [11:58:22]POST finish read [11:58:22]Found Content-Length = 661 [11:58:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672899", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 10.000, "sum" : 664.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "payments": [ { "type": 0, "sum" : 664.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:58:22]execute_script... [11: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)672899", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 10.000, "sum" : 664.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "payments": [ { "type": 0, "sum" : 664.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:58:22]POST & json_proto [11:58:22]process_json_proto [11:58:22]json parsed OK: [11:58:22]protocol is kg_v1.0 [11:58:22]action value=close_receipt [11:58:22]process_action close_receipt [11:58:22]cmd_close_receipt [11:58:22]MH_GetDate [11:58:22]Write to MH i2c: F0 00 00 22 A3 B4 [11:58:22]Write i2c OK [11:58:22]MH_I2C_Read... [11:58:22]Read from MH i2c: F0 [11:58:22]MH_I2C_Read... [11:58:22]Read from MH i2c: F0 09 00 [11:58:22]MH_I2C_Read... [11:58:22]Read from MH i2c: F0 09 00 22 A3 00 EA C7 72 66 BD 8F 7C 64 72 [11:58:22]GetLastDocTimeStamp 1718798224 [11:58:22]current date 1718798314 [11:58:22]FM_GetShiftState [11:58:22]SAM_PROTO_GetShiftState [11:58:22]wFMCommunicate request_size=4 [11:58:22]MH_SAM_APDU [11:58:22]CAPDU: 80 13 01 00 [11:58:22]Write to MH i2c: E2 08 00 23 A3 80 13 01 00 00 00 00 00 43 [11:58:22]Write i2c OK [11:58:22]MH_I2C_Read... [11:58:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:58:22]Read from MH i2c: E2 [11:58:22]MH_I2C_Read... [11:58:22]Read from MH i2c: E2 0E 00 [11:58:22]MH_I2C_Read... [11:58:22]Read from MH i2c: E2 0E 00 23 A3 00 09 00 01 04 26 72 66 00 00 00 00 90 00 51 [11:58:22]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [11:58:22]wFMCommunicate OK [11:58:22]SAM_PROTO_GetShiftState done [11:58:22]FM_GetShiftState done [11:58:22]opened in 1718756868 [11:58:22]opened+sec_in_day 1718843268 [11:58:22]quantity*price = 66400 [11:58:22]sum+1 = 66401 [11:58:22]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 664.00 Внесено: 1000.00 СДАЧА: 336.00 НСП 1% : 5.88 НДС 12% : 70.51 Наличными: 664.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 80 19.06.2024 11:58 Смена: 353 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103650 ФПД: 93703095792925 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T115834&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103650&fm=93703095792925&tin=02508201610067®Number=0000000000092785&sum=66400 [11:58:23]StoreToDocumentArchive [11:58:23]shift 353 fd 103650 [11:58:23]save to /storage/0353/doc_00103650 [11:58:23]save last doc name /storage/0353/doc_00103650 to /storage/kkm_last_doc_name [11:58:23]save OK [11:58:23]Clear old archive folders... [11:58:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:58:23]tlvbuf is 014AE600 [11:58:23]SAM_PROTO_ClearQueue [11:58:23]wFMCommunicate request_size=4 [11:58:23]MH_SAM_APDU [11:58:23]CAPDU: 80 09 00 00 [11:58:23]Write to MH i2c: E2 08 00 30 A3 80 09 00 00 00 00 00 00 45 [11:58:23]Write i2c OK [11:58:23]MH_I2C_Read... [11:58:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:58:23]Read from MH i2c: E2 [11:58:23]MH_I2C_Read... [11:58:23]Read from MH i2c: E2 03 00 [11:58:23]MH_I2C_Read... [11:58:23]Read from MH i2c: E2 03 00 30 A3 00 90 00 47 [11:58:23]RAPDU: 90 00 [11:58:23]wFMCommunicate OK [11:58:23]SAM_PROTO_ClearQueue done [11:58:23]KKMCreateOFDPacket [11:58:23]OFDProtocolAddRootSTLVToBuf [11:58:23]FM_MakeSignedData [11:58:23]FM_MakeSignedData [11:58:23]SAM_PROTO_SignData [11:58:23]wFMCommunicate request_size=4 [11:58:23]MH_SAM_APDU [11:58:23]CAPDU: 80 0D 01 02 [11:58:23]Write to MH i2c: E2 08 00 31 A3 80 0D 01 02 00 00 00 00 4D [11:58:23]Write i2c OK [11:58:23]MH_I2C_Read... [11:58:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:58:23]Read from MH i2c: E2 [11:58:23]MH_I2C_Read... [11:58:23]Read from MH i2c: E2 03 00 [11:58:23]MH_I2C_Read... [11:58:23]Read from MH i2c: E2 03 00 31 A3 00 90 00 48 [11:58:23]RAPDU: 90 00 [11:58:23]wFMCommunicate OK [11:58:23]wFMCommunicate request_size=255 [11:58:23]MH_SAM_APDU [11: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 10 27 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 60 03 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 03 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 1B 00 00 00 00 07 04 06 00 60 03 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 EA C7 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 E2 94 01 00 35 04 06 00 55 [11:58:23]Write to MH i2c: E2 02 01 32 A3 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 60 03 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 03 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 1B 00 00 00 00 07 04 06 00 60 03 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 EA C7 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 E2 94 01 00 35 04 06 00 55 00 00 C4 [11:58:23]Write i2c OK [11:58:23]MH_I2C_Read... [11:58:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:58:24]Read from MH i2c: E2 [11:58:24]MH_I2C_Read... [11:58:24]Read from MH i2c: E2 03 00 [11:58:24]MH_I2C_Read... [11:58:24]Read from MH i2c: E2 03 00 32 A3 00 90 00 49 [11:58:24]RAPDU: 90 00 [11:58:24]wFMCommunicate OK [11:58:24]wFMCommunicate request_size=10 [11:58:24]MH_SAM_APDU [11:58:24]CAPDU: 80 0D 02 02 05 38 F3 BD 35 1D [11:58:24]Write to MH i2c: E2 0D 00 33 A3 80 0D 02 02 05 00 38 F3 BD 35 1D 00 00 94 [11:58:24]Write i2c OK [11:58:24]MH_I2C_Read... [11:58:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:58:24]Read from MH i2c: E2 [11:58:24]MH_I2C_Read... [11:58:24]Read from MH i2c: E2 03 00 [11:58:24]MH_I2C_Read... [11:58:24]Read from MH i2c: E2 03 00 33 A3 00 90 00 4A [11:58:24]RAPDU: 90 00 [11:58:24]wFMCommunicate OK [11:58:24]wFMCommunicate request_size=4 [11:58:24]MH_SAM_APDU [11:58:24]CAPDU: 80 0D 03 02 [11:58:24]Write to MH i2c: E2 08 00 34 A3 80 0D 03 02 00 00 00 00 52 [11:58:24]Write i2c OK [11:58:24]MH_I2C_Read... [11:58:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:58:24]Read from MH i2c: E2 [11:58:24]MH_I2C_Read... [11:58:24]Read from MH i2c: E2 0B 00 [11:58:24]MH_I2C_Read... [11:58:24]Read from MH i2c: E2 0B 00 34 A3 00 DD 1A 6D 88 91 12 A2 E1 90 00 65 [11:58:24]RAPDU: DD 1A 6D 88 91 12 A2 E1 90 00 [11:58:24]wFMCommunicate OK [11:58:24]SAM_PROTO_SignData done [11:58:24]FM_MakeSignedData done [11:58:24]CreateOFDProtocolMessage [11:58:24]wFMCommunicate request_size=4 [11:58:24]MH_SAM_APDU [11:58:24]CAPDU: 80 11 00 00 [11:58:24]Write to MH i2c: E2 08 00 35 A3 80 11 00 00 00 00 00 00 52 [11:58:24]Write i2c OK [11:58:24]MH_I2C_Read... [11:58:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:58:24]Read from MH i2c: E2 [11:58:24]MH_I2C_Read... [11:58:24]Read from MH i2c: E2 17 00 [11:58:24]MH_I2C_Read... [11:58:24]Read from MH i2c: E2 17 00 35 A3 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 A5 [11:58:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [11:58:24]wFMCommunicate OK [11:58:24]CreateOFDProtocolMessage done [11:58:24]OFDSenderStorePacket 103650 [11:58:24]StoreOFDPacket docnum=103650 [11:58:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 2C 9E 07 01 F1 EB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 60 03 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 03 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 1B 00 00 00 00 07 04 06 00 60 03 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 EA C7 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 E2 94 01 00 35 04 06 00 55 38 F3 BD 35 1D DD 1A 6D 88 91 12 A2 E1 [11:58:24]CheckFolder [11:58:24]dirname=/storage/ofd_packets [11:58:24]CheckFolder done [11:58:24]ProducePacketName [11:58:24]name=ofd_packets/00103650 [11:58:24]NVStorageSaveData ofd_packets/00103650 [11:58:24]File name is /storage/ofd_packets/00103650 [11:58:24]Write 301 bytes [11:58:24]NVStorageSaveData done [11:58:24]OFDSenderStorePacket done [11:58:24]KKMCreateOFDPacket done [11:58:24]NVStorageSaveData kkm_last_timestamp [11:58:24]File name is /storage/kkm_last_timestamp [11:58:24]Write 4 bytes [11:58:24]NVStorageSaveData done [11:58:24]ExternCall_PrintAddStr [11:58:24]wPrintStart [11:58:24]Write to MH i2c: 01 00 00 36 A3 D9 [11:58:24]Write i2c OK [11:58:24]MH_I2C_Read... [11:58:24]Read from MH i2c: 01 [11:58:24]MH_I2C_Read... [11:58:24]Read from MH i2c: 01 07 00 [11:58:24]MH_I2C_Read... [11:58:24]Read from MH i2c: 01 07 00 36 A3 00 00 00 00 00 FF 0F EE [11:58:24]RasterBufferAndPrint [11:58:24]line Счет N : (1)672899 [11:58:24]line ИНН: 02508201610067 [11:58:24]line Контрольно-Кассовый Чек [11:58:24]line ПРОДАЖА [11:58:24]line ТРК (МРК, ГНК) : 42 [11:58:24]line Товар: 2710124130 [11:58:24]line Аи-92-К-5 [11:58:24]line 10.000 * 66.40 [11:58:24]line = 664.00 [11:58:24]line НДС 12% НСП 1% [11:58:24]line > о реализуемом товаре [11:58:24]line ИТОГО: 664.00 [11:58:24]line Внесено: 1000.00 [11:58:24]line СДАЧА: 336.00 [11:58:24]line НСП 1% : 5.88 [11:58:24]line НДС 12% : 70.51 [11:58:24]line Наличными: 664.00 [11:58:24]line Безнал.: 0.00 [11:58:24]line Место: АЗС № 120 "Партнер Нефть" [11:58:24]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [11:58:24]line СНО: Общий режим [11:58:24]line Чек 80 19.06.2024 11:58 [11:58:24]line Смена: 353 ФФД: 1.0 [11:58:24]line ЗНМ: 0300000164 [11:58:24]line РНМ: 0000000000092785 [11:58:24]line Версия ККМ: 001 [11:58:24]line ФМ: 0000000000875093 [11:58:24]line ФД: 103650 [11:58:24]line ФПД: 93703095792925 [11:58:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T115834&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103650&fm=93703095792925&tin=02508201610067®Number=0000000000092785&sum=66400 [11:58:24]OFD Sender: Processing packet 103650 [packets to send 17, broken 16] [11:58:24]ProducePacketName [11:58:24]name=ofd_packets/00103650 [11:58:24]OFD Sender: To server: pG, [11:58:24]CommunicateWithHost lk.salyk.kg:30040 [11:58:24]ConnectInit lk.salyk.kg [11:58:24]written 0, free lines is 4095 [11:58:24]Connected sock=10 [11: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 39 33 0F 01 00 00 2C 9E 07 01 F1 EB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 60 03 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 03 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 1B 00 00 00 00 07 04 06 00 60 03 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 EA C7 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 E2 94 01 00 35 04 06 00 55 38 F3 BD 35 1D DD 1A 6D 88 91 12 A2 E1 [11:58: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 39 33 4F 00 00 00 AA 84 47 00 EA 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 39 33 10 04 04 00 E2 94 01 00 F4 03 04 00 73 6E 72 66 B6 04 01 00 00 14 18 D7 2B C0 9E 50 DA [11:58:25]CommunicateWithHost err = 0 [11:58:25]CheckOFDResponse [11:58:25]1017 (14) - 77093643461234 [11:58:25]1041 (16) - 0000000000875093 [11:58:25]1040 (4) - 103650 [11:58:25]1012 (4) - 19.06.2024 05:36 [11:58:25]1206 (1) - 0 [11:58:25]OFD Sender: Remove packet 103650 [11:58:25]ProducePacketName [11:58:25]name=ofd_packets/00103650 [11:58:25]NVStorageDeleteData [11:58:25]Write to MH i2c: 01 00 00 60 A3 03 [11:58:25]Write i2c OK [11:58:25]MH_I2C_Read... [11:58:25]Read from MH i2c: 01 [11:58:25]MH_I2C_Read... [11:58:25]Read from MH i2c: 01 07 00 [11:58:25]MH_I2C_Read... [11:58:25]Read from MH i2c: 01 07 00 60 A3 00 00 00 00 00 FB 0C 11 [11:58:25]RasterBufferAndPrint [11:58:25]line [11:58:25]line [11:58:25]line [11:58:25]line [11:58:25]line [11:58:25]written 0, free lines is 3329 [11:58:25]MH_Cut [11:58:25]Write to MH i2c: D1 01 00 67 A3 01 DC [11:58:25]Write i2c OK [11:58:25]MH_I2C_Read... [11:58:25]Read from MH i2c: D1 [11:58:25]MH_I2C_Read... [11:58:25]Read from MH i2c: D1 01 00 [11:58:25]MH_I2C_Read... [11:58:25]Read from MH i2c: D1 01 00 67 A3 00 DB [11:58:25]Write to MH i2c: 01 00 00 68 A3 0B [11:58:25]Write i2c OK [11:58:25]MH_I2C_Read... [11:58:25]OFD Sender: No OFD packet to send [11:58:25]*** Cut start [11:58:25]*** Partial cut [11:58:25]*** CUTSNS_PIN = 1 [11:58:25]*** CUTSNS_PIN = 0 [11:58:26]*** Brake cut motor [11:58:26]Read from MH i2c: 01 [11:58:26]MH_I2C_Read... [11:58:26]*** Stop cut motor [11:58:26]*** Cut end [11:58:26]Read from MH i2c: 01 07 00 [11:58:26]MH_I2C_Read... [11:58:26]Read from MH i2c: 01 07 00 68 A3 00 00 00 00 00 FF 0F 20 [11:58:26]process_action close_receipt done [11:58:26]requested_data is exist [11:58:26]produce_requested_data [11:58:26]requested_item fm.sn is exist - process it [11:58:26]wFMCommunicate request_size=4 [11:58:26]MH_SAM_APDU [11:58:26]CAPDU: 80 11 00 00 [11:58:26]Write to MH i2c: E2 08 00 69 A3 80 11 00 00 00 00 00 00 86 [11:58:26]Write i2c OK [11:58:26]MH_I2C_Read... [11:58:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:58:26]Read from MH i2c: E2 [11:58:26]MH_I2C_Read... [11:58:26]Read from MH i2c: E2 17 00 [11:58:26]MH_I2C_Read... [11:58:26]Read from MH i2c: E2 17 00 69 A3 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 D9 [11:58:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [11:58:26]wFMCommunicate OK [11:58:26]requested_item fd.num is exist - process it [11:58:26]SAM_PROTO_GetFieldsCounters [11:58:26]wFMCommunicate request_size=4 [11:58:26]MH_SAM_APDU [11:58:26]CAPDU: 80 13 00 00 [11:58:26]Write to MH i2c: E2 08 00 6A A3 80 13 00 00 00 00 00 00 89 [11:58:26]Write i2c OK [11:58:26]MH_I2C_Read... [11:58:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:58:26]Read from MH i2c: E2 [11:58:26]MH_I2C_Read... [11:58:26]Read from MH i2c: E2 62 00 [11:58:26]MH_I2C_Read... [11:58:26]Read from MH i2c: E2 62 00 6A A3 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 E2 94 01 00 0E 04 04 00 61 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 79 [11:58: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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 E2 94 01 00 0E 04 04 00 61 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 [11:58:26]wFMCommunicate OK [11:58:26]SAM_PROTO_GetFieldsCounters done [11:58:26]requested_item shift.num is exist - process it [11:58:26]requested_item shift.opened is exist - process it [11:58:26]req_shift_opened [11:58:26]FM_GetShiftState [11:58:26]SAM_PROTO_GetShiftState [11:58:26]wFMCommunicate request_size=4 [11:58:26]MH_SAM_APDU [11:58:26]CAPDU: 80 13 01 00 [11:58:26]Write to MH i2c: E2 08 00 6B A3 80 13 01 00 00 00 00 00 8B [11:58:26]Write i2c OK [11:58:26]MH_I2C_Read... [11:58:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:58:26]Read from MH i2c: E2 [11:58:26]MH_I2C_Read... [11:58:26]Read from MH i2c: E2 0E 00 [11:58:26]MH_I2C_Read... [11:58:26]Read from MH i2c: E2 0E 00 6B A3 00 09 00 01 04 26 72 66 00 00 00 00 90 00 99 [11:58:26]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [11:58:26]wFMCommunicate OK [11:58:26]SAM_PROTO_GetShiftState done [11:58:26]FM_GetShiftState done [11:58:26]req_shift_opened done [11:58:26]requested_item shift.open_date is exist - process it [11:58:26]req_shift_open_date [11:58:26]req_shift_open_date done [11:58:26]produce_requested_data done [11:58:26]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103650,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [11:58:26]process_action_free close_receipt [11:58:26]json_value_free [11:58:26]json_value_free done [11:58:26]process_json_proto returns [11:58:26]Send response to host [11:58:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103650,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [11:58:26]free response buf [11:58:26]execute_script done [11:58:26]execute_script returns [11:58:26]free content buf [11:58:26]Sock 7.Close socket [11:58:26]Sock 7.Thread stoped [11:58:30]OFD Sender: No OFD packet to send [11:58:35]OFD Sender: No OFD packet to send [11:58:40]OFD Sender: No OFD packet to send [11:58:45]OFD Sender: No OFD packet to send [11:58:50]OFD Sender: No OFD packet to send [11:58:55]OFD Sender: No OFD packet to send [11:59:00]OFD Sender: No OFD packet to send [11:59:05]OFD Sender: No OFD packet to send [11:59:10]OFD Sender: No OFD packet to send [11:59:15]OFD Sender: No OFD packet to send [11:59:20]OFD Sender: No OFD packet to send [11:59:25]OFD Sender: No OFD packet to send [11:59:29]accept exits with 9 [11:59:29]New connection [11:59:29]New thread 3067227492 created [11:59:29]Thread 3067084132 joined [11:59:29]Waiting for new connection... [11:59:29] Sock 9.Parse request [11:59:29]Sock 9.Check first char [11:59:29]Sock 9.First char is OK [11:59:29]request: POST /json_proto HTTP/1.0 [11:59:29]Method: POST [11:59:29]URL: /json_proto [11:59:29]Method is POST - this is cgi request [11:59:29]url: /json_proto [11:59:29]query_string will be loaded in cgi processing [11:59:29]execute_cgi json_proto POST (null) [11:59:29]execute_cgi path=json_proto method=POST [11:59:29]POST find Content-Length [11:59:29]Host: 172.17.38.133:8080 [11:59:29]Content-Length: 682 [11:59:29]Content-Type: application/json [11:59:29] [11:59:29]POST finish read [11:59:29]Found Content-Length = 682 [11:59:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672898", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 26.930, "sum" : 1990.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 4000.00, "total" : 1990.00, "payments": [ { "type": 0, "sum" : 1990.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:59:29]execute_script... [11:59: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)672898", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 26.930, "sum" : 1990.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 4000.00, "total" : 1990.00, "payments": [ { "type": 0, "sum" : 1990.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:59:29]POST & json_proto [11:59:29]process_json_proto [11:59:29]json parsed OK: [11:59:29]protocol is kg_v1.0 [11:59:29]action value=close_receipt [11:59:29]process_action close_receipt [11:59:29]cmd_close_receipt [11:59:29]MH_GetDate [11:59:29]Write to MH i2c: F0 00 00 6C A3 FE [11:59:29]Write i2c OK [11:59:29]MH_I2C_Read... [11:59:29]Read from MH i2c: F0 [11:59:29]MH_I2C_Read... [11:59:29]Read from MH i2c: F0 09 00 [11:59:29]MH_I2C_Read... [11:59:29]Read from MH i2c: F0 09 00 6C A3 00 2D C8 72 66 BD 8F 7C 64 00 [11:59:29]GetLastDocTimeStamp 1718798314 [11:59:29]current date 1718798381 [11:59:29]FM_GetShiftState [11:59:29]SAM_PROTO_GetShiftState [11:59:29]wFMCommunicate request_size=4 [11:59:29]MH_SAM_APDU [11:59:29]CAPDU: 80 13 01 00 [11:59:29]Write to MH i2c: E2 08 00 6D A3 80 13 01 00 00 00 00 00 8D [11:59:29]Write i2c OK [11:59:29]MH_I2C_Read... [11:59:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:59:29]Read from MH i2c: E2 [11:59:29]MH_I2C_Read... [11:59:29]Read from MH i2c: E2 0E 00 [11:59:29]MH_I2C_Read... [11:59:29]Read from MH i2c: E2 0E 00 6D A3 00 09 00 01 04 26 72 66 00 00 00 00 90 00 9B [11:59:29]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [11:59:29]wFMCommunicate OK [11:59:29]SAM_PROTO_GetShiftState done [11:59:29]FM_GetShiftState done [11:59:29]opened in 1718756868 [11:59:29]opened+sec_in_day 1718843268 [11:59:29]quantity*price = 199012 [11:59:29]sum+1 = 199014 [11:59:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.13 ИТОГО: 1990.00 Внесено: 4000.00 СДАЧА: 2010.00 НСП 1% : 17.61 НДС 12% : 211.34 Наличными: 1990.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 81 19.06.2024 11:59 Смена: 353 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103651 ФПД: 235847702891792 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T115941&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103651&fm=235847702891792&tin=02508201610067®Number=0000000000092785&sum=199000 [11:59:30]StoreToDocumentArchive [11:59:30]shift 353 fd 103651 [11:59:30]save to /storage/0353/doc_00103651 [11:59:30]save last doc name /storage/0353/doc_00103651 to /storage/kkm_last_doc_name [11:59:30]save OK [11:59:30]Clear old archive folders... [11:59:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:59:30]tlvbuf is 016700B0 [11:59:30]SAM_PROTO_ClearQueue [11:59:30]wFMCommunicate request_size=4 [11:59:30]MH_SAM_APDU [11:59:30]CAPDU: 80 09 00 00 [11:59:30]Write to MH i2c: E2 08 00 7A A3 80 09 00 00 00 00 00 00 8F [11:59:30]Write i2c OK [11:59:30]MH_I2C_Read... [11:59:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:59:30]Read from MH i2c: E2 [11:59:30]MH_I2C_Read... [11:59:30]Read from MH i2c: E2 03 00 [11:59:30]MH_I2C_Read... [11:59:30]Read from MH i2c: E2 03 00 7A A3 00 90 00 91 [11:59:30]RAPDU: 90 00 [11:59:30]wFMCommunicate OK [11:59:30]SAM_PROTO_ClearQueue done [11:59:30]KKMCreateOFDPacket [11:59:30]OFDProtocolAddRootSTLVToBuf [11:59:30]FM_MakeSignedData [11:59:30]FM_MakeSignedData [11:59:30]SAM_PROTO_SignData [11:59:30]wFMCommunicate request_size=4 [11:59:30]MH_SAM_APDU [11:59:30]CAPDU: 80 0D 01 02 [11:59:30]Write to MH i2c: E2 08 00 7B A3 80 0D 01 02 00 00 00 00 97 [11:59:30]Write i2c OK [11:59:30]MH_I2C_Read... [11:59:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:59:30]Read from MH i2c: E2 [11:59:30]MH_I2C_Read... [11:59:30]Read from MH i2c: E2 03 00 [11:59:30]MH_I2C_Read... [11:59:30]Read from MH i2c: E2 03 00 7B A3 00 90 00 92 [11:59:30]RAPDU: 90 00 [11:59:30]wFMCommunicate OK [11:59:30]wFMCommunicate request_size=255 [11:59:30]MH_SAM_APDU [11:59:30]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 32 69 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 65 09 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 09 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E1 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8E 52 00 00 00 00 07 04 06 00 58 09 03 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 2D C8 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 E3 94 01 00 35 04 06 00 D6 [11:59:30]Write to MH i2c: E2 02 01 7C A3 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 32 69 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 65 09 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 09 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E1 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8E 52 00 00 00 00 07 04 06 00 58 09 03 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 2D C8 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 E3 94 01 00 35 04 06 00 D6 00 00 0E [11:59:30]Write i2c OK [11:59:30]MH_I2C_Read... [11:59:30]OFD Sender: No OFD packet to send [11:59:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:59:30]Read from MH i2c: E2 [11:59:30]MH_I2C_Read... [11:59:30]Read from MH i2c: E2 03 00 [11:59:30]MH_I2C_Read... [11:59:30]Read from MH i2c: E2 03 00 7C A3 00 90 00 93 [11:59:30]RAPDU: 90 00 [11:59:30]wFMCommunicate OK [11:59:30]wFMCommunicate request_size=10 [11:59:30]MH_SAM_APDU [11:59:30]CAPDU: 80 0D 02 02 05 80 92 8D 4D 10 [11:59:30]Write to MH i2c: E2 0D 00 7D A3 80 0D 02 02 05 00 80 92 8D 4D 10 00 00 A0 [11:59:30]Write i2c OK [11:59:30]MH_I2C_Read... [11:59:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:59:30]Read from MH i2c: E2 [11:59:30]MH_I2C_Read... [11:59:30]Read from MH i2c: E2 03 00 [11:59:30]MH_I2C_Read... [11:59:30]Read from MH i2c: E2 03 00 7D A3 00 90 00 94 [11:59:30]RAPDU: 90 00 [11:59:30]wFMCommunicate OK [11:59:30]wFMCommunicate request_size=4 [11:59:30]MH_SAM_APDU [11:59:30]CAPDU: 80 0D 03 02 [11:59:30]Write to MH i2c: E2 08 00 7E A3 80 0D 03 02 00 00 00 00 9C [11:59:30]Write i2c OK [11:59:30]MH_I2C_Read... [11:59:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:59:30]Read from MH i2c: E2 [11:59:30]MH_I2C_Read... [11:59:30]Read from MH i2c: E2 0B 00 [11:59:30]MH_I2C_Read... [11:59:30]Read from MH i2c: E2 0B 00 7E A3 00 E4 36 C9 A7 37 7E 28 5D 90 00 61 [11:59:30]RAPDU: E4 36 C9 A7 37 7E 28 5D 90 00 [11:59:30]wFMCommunicate OK [11:59:30]SAM_PROTO_SignData done [11:59:30]FM_MakeSignedData done [11:59:30]CreateOFDProtocolMessage [11:59:30]wFMCommunicate request_size=4 [11:59:30]MH_SAM_APDU [11:59:30]CAPDU: 80 11 00 00 [11:59:30]Write to MH i2c: E2 08 00 7F A3 80 11 00 00 00 00 00 00 9C [11:59:30]Write i2c OK [11:59:30]MH_I2C_Read... [11:59:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:59:30]Read from MH i2c: E2 [11:59:30]MH_I2C_Read... [11:59:30]Read from MH i2c: E2 17 00 [11:59:30]MH_I2C_Read... [11:59:30]Read from MH i2c: E2 17 00 7F A3 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 EF [11:59:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [11:59:30]wFMCommunicate OK [11:59:30]CreateOFDProtocolMessage done [11:59:30]OFDSenderStorePacket 103651 [11:59:30]StoreOFDPacket docnum=103651 [11:59:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 57 A8 07 01 18 0C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 32 69 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 65 09 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 09 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E1 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8E 52 00 00 00 00 07 04 06 00 58 09 03 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 2D C8 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 E3 94 01 00 35 04 06 00 D6 80 92 8D 4D 10 E4 36 C9 A7 37 7E 28 5D [11:59:30]CheckFolder [11:59:30]dirname=/storage/ofd_packets [11:59:30]CheckFolder done [11:59:30]ProducePacketName [11:59:30]name=ofd_packets/00103651 [11:59:30]NVStorageSaveData ofd_packets/00103651 [11:59:30]File name is /storage/ofd_packets/00103651 [11:59:30]Write 301 bytes [11:59:30]NVStorageSaveData done [11:59:30]OFDSenderStorePacket done [11:59:30]KKMCreateOFDPacket done [11:59:30]NVStorageSaveData kkm_last_timestamp [11:59:30]File name is /storage/kkm_last_timestamp [11:59:30]Write 4 bytes [11:59:30]NVStorageSaveData done [11:59:30]ExternCall_PrintAddStr [11:59:30]wPrintStart [11:59:30]Write to MH i2c: 01 00 00 80 A3 23 [11:59:30]Write i2c OK [11:59:30]MH_I2C_Read... [11:59:30]Read from MH i2c: 01 [11:59:30]MH_I2C_Read... [11:59:30]Read from MH i2c: 01 07 00 [11:59:30]MH_I2C_Read... [11:59:30]Read from MH i2c: 01 07 00 80 A3 00 00 00 00 00 FF 0F 38 [11:59:30]RasterBufferAndPrint [11:59:30]line Счет N : (1)672898 [11:59:30]line ИНН: 02508201610067 [11:59:30]line Контрольно-Кассовый Чек [11:59:30]line ПРОДАЖА [11:59:30]line ТРК (МРК, ГНК) : 31 [11:59:30]line Товар: 2710124500 [11:59:30]line Аи-95-К-5 [11:59:30]line 26.930 * 73.90 [11:59:30]line = 1990.13 [11:59:30]line НДС 12% НСП 1% [11:59:30]line > о реализуемом товаре [11:59:30]line ОКРУГЛЕНИЕ: -0.13 [11:59:30]line ИТОГО: 1990.00 [11:59:30]line Внесено: 4000.00 [11:59:30]line СДАЧА: 2010.00 [11:59:30]line НСП 1% : 17.61 [11:59:30]line НДС 12% : 211.34 [11:59:30]line Наличными: 1990.00 [11:59:30]line Безнал.: 0.00 [11:59:30]line Место: АЗС № 120 "Партнер Нефть" [11:59:30]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [11:59:30]line СНО: Общий режим [11:59:30]line Чек 81 19.06.2024 11:59 [11:59:30]line Смена: 353 ФФД: 1.0 [11:59:30]line ЗНМ: 0300000164 [11:59:30]line РНМ: 0000000000092785 [11:59:30]line Версия ККМ: 001 [11:59:30]line ФМ: 0000000000875093 [11:59:30]line ФД: 103651 [11:59:30]line ФПД: 235847702891792 [11:59:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T115941&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103651&fm=235847702891792&tin=02508201610067®Number=0000000000092785&sum=199000 [11:59:31]OFD Sender: Processing packet 103651 [packets to send 17, broken 16] [11:59:31]ProducePacketName [11:59:31]name=ofd_packets/00103651 [11:59:31]OFD Sender: To server: pG, [11:59:31]CommunicateWithHost lk.salyk.kg:30040 [11:59:31]ConnectInit lk.salyk.kg [11:59:31]written 0, free lines is 4095 [11:59:31]Connected sock=10 [11:59: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 39 33 0F 01 00 00 57 A8 07 01 18 0C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 32 69 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 65 09 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 09 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E1 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8E 52 00 00 00 00 07 04 06 00 58 09 03 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 2D C8 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 E3 94 01 00 35 04 06 00 D6 80 92 8D 4D 10 E4 36 C9 A7 37 7E 28 5D [11:59: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 39 33 4F 00 00 00 D4 B8 47 00 C7 B7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 E3 94 01 00 F4 03 04 00 B6 6E 72 66 B6 04 01 00 00 F4 02 9A 8A C6 E2 52 33 [11:59:31]CommunicateWithHost err = 0 [11:59:31]CheckOFDResponse [11:59:31]1017 (14) - 77093643461234 [11:59:31]1041 (16) - 0000000000875093 [11:59:31]1040 (4) - 103651 [11:59:31]1012 (4) - 19.06.2024 05:37 [11:59:31]1206 (1) - 0 [11:59:31]OFD Sender: Remove packet 103651 [11:59:31]ProducePacketName [11:59:31]name=ofd_packets/00103651 [11:59:31]NVStorageDeleteData [11:59:31]Write to MH i2c: 01 00 00 AB A3 4E [11:59:31]Write i2c OK [11:59:31]MH_I2C_Read... [11:59:31]Read from MH i2c: 01 [11:59:31]MH_I2C_Read... [11:59:31]Read from MH i2c: 01 07 00 [11:59:31]MH_I2C_Read... [11:59:31]Read from MH i2c: 01 07 00 AB A3 00 00 00 00 00 EE 0C 4F [11:59:31]RasterBufferAndPrint [11:59:31]line [11:59:31]line [11:59:31]line [11:59:31]line [11:59:31]line [11:59:31]written 0, free lines is 3319 [11:59:31]MH_Cut [11:59:31]Write to MH i2c: D1 01 00 B2 A3 01 27 [11:59:31]Write i2c OK [11:59:31]MH_I2C_Read... [11:59:31]Read from MH i2c: D1 [11:59:31]MH_I2C_Read... [11:59:31]Read from MH i2c: D1 01 00 [11:59:31]MH_I2C_Read... [11:59:31]Read from MH i2c: D1 01 00 B2 A3 00 26 [11:59:31]Write to MH i2c: 01 00 00 B3 A3 56 [11:59:31]Write i2c OK [11:59:31]MH_I2C_Read... [11:59:32]OFD Sender: No OFD packet to send [11:59:32]*** Cut start [11:59:32]*** Partial cut [11:59:32]*** CUTSNS_PIN = 1 [11:59:32]*** CUTSNS_PIN = 0 [11:59:32]*** Brake cut motor [11:59:32]Read from MH i2c: 01 [11:59:32]MH_I2C_Read... [11:59:32]*** Stop cut motor [11:59:32]*** Cut end [11:59:32]Read from MH i2c: 01 07 00 [11:59:32]MH_I2C_Read... [11:59:32]Read from MH i2c: 01 07 00 B3 A3 00 00 00 00 00 FF 0F 6B [11:59:32]process_action close_receipt done [11:59:32]requested_data is exist [11:59:32]produce_requested_data [11:59:32]requested_item fm.sn is exist - process it [11:59:32]wFMCommunicate request_size=4 [11:59:32]MH_SAM_APDU [11:59:32]CAPDU: 80 11 00 00 [11:59:32]Write to MH i2c: E2 08 00 B4 A3 80 11 00 00 00 00 00 00 D1 [11:59:32]Write i2c OK [11:59:32]MH_I2C_Read... [11:59:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:59:33]Read from MH i2c: E2 [11:59:33]MH_I2C_Read... [11:59:33]Read from MH i2c: E2 17 00 [11:59:33]MH_I2C_Read... [11:59:33]Read from MH i2c: E2 17 00 B4 A3 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 24 [11:59:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [11:59:33]wFMCommunicate OK [11:59:33]requested_item fd.num is exist - process it [11:59:33]SAM_PROTO_GetFieldsCounters [11:59:33]wFMCommunicate request_size=4 [11:59:33]MH_SAM_APDU [11:59:33]CAPDU: 80 13 00 00 [11:59:33]Write to MH i2c: E2 08 00 B5 A3 80 13 00 00 00 00 00 00 D4 [11:59:33]Write i2c OK [11:59:33]MH_I2C_Read... [11:59:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:59:33]Read from MH i2c: E2 [11:59:33]MH_I2C_Read... [11:59:33]Read from MH i2c: E2 62 00 [11:59:33]MH_I2C_Read... [11:59:33]Read from MH i2c: E2 62 00 B5 A3 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 E3 94 01 00 0E 04 04 00 61 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 C8 [11:59: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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 E3 94 01 00 0E 04 04 00 61 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 [11:59:33]wFMCommunicate OK [11:59:33]SAM_PROTO_GetFieldsCounters done [11:59:33]requested_item shift.num is exist - process it [11:59:33]requested_item shift.opened is exist - process it [11:59:33]req_shift_opened [11:59:33]FM_GetShiftState [11:59:33]SAM_PROTO_GetShiftState [11:59:33]wFMCommunicate request_size=4 [11:59:33]MH_SAM_APDU [11:59:33]CAPDU: 80 13 01 00 [11:59:33]Write to MH i2c: E2 08 00 B6 A3 80 13 01 00 00 00 00 00 D6 [11:59:33]Write i2c OK [11:59:33]MH_I2C_Read... [11:59:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:59:33]Read from MH i2c: E2 [11:59:33]MH_I2C_Read... [11:59:33]Read from MH i2c: E2 0E 00 [11:59:33]MH_I2C_Read... [11:59:33]Read from MH i2c: E2 0E 00 B6 A3 00 09 00 01 04 26 72 66 00 00 00 00 90 00 E4 [11:59:33]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [11:59:33]wFMCommunicate OK [11:59:33]SAM_PROTO_GetShiftState done [11:59:33]FM_GetShiftState done [11:59:33]req_shift_opened done [11:59:33]requested_item shift.open_date is exist - process it [11:59:33]req_shift_open_date [11:59:33]req_shift_open_date done [11:59:33]produce_requested_data done [11:59:33]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103651,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [11:59:33]process_action_free close_receipt [11:59:33]json_value_free [11:59:33]json_value_free done [11:59:33]process_json_proto returns [11:59:33]Send response to host [11:59:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103651,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [11:59:33]free response buf [11:59:33]execute_script done [11:59:33]execute_script returns [11:59:33]free content buf [11:59:33]Sock 9.Close socket [11:59:33]Sock 9.Thread stoped [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:52]OFD Sender: No OFD packet to send [12:01:57]OFD Sender: No OFD packet to send [12:02:02]OFD Sender: No OFD packet to send [12:02:07]OFD Sender: No OFD packet to send [12:02:12]OFD Sender: No OFD packet to send [12:02:17]OFD Sender: No OFD packet to send [12:02:22]OFD Sender: No OFD packet to send [12:02:25]accept exits with 7 [12:02:25]New connection [12:02:25]New thread 3067084132 created [12:02:25]Thread 3067227492 joined [12:02:25]Waiting for new connection... [12:02:25] Sock 7.Parse request [12:02:25]Sock 7.Check first char [12:02:25]Sock 7.First char is OK [12:02:25]request: POST /json_proto HTTP/1.0 [12:02:25]Method: POST [12:02:25]URL: /json_proto [12:02:25]Method is POST - this is cgi request [12:02:25]url: /json_proto [12:02:25]query_string will be loaded in cgi processing [12:02:25]execute_cgi json_proto POST (null) [12:02:25]execute_cgi path=json_proto method=POST [12:02:25]POST find Content-Length [12:02:25]Host: 172.17.38.133:8080 [12:02:25]Content-Length: 682 [12:02:25]Content-Type: application/json [12:02:25] [12:02:25]POST finish read [12:02:25]Found Content-Length = 682 [12:02:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672900", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:02:25]execute_script... [12:02:25]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672900", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:02:25]POST & json_proto [12:02:25]process_json_proto [12:02:25]json parsed OK: [12:02:25]protocol is kg_v1.0 [12:02:25]action value=close_receipt [12:02:25]process_action close_receipt [12:02:25]cmd_close_receipt [12:02:25]MH_GetDate [12:02:25]Write to MH i2c: F0 00 00 B7 A3 49 [12:02:25]Write i2c OK [12:02:25]MH_I2C_Read... [12:02:25]Read from MH i2c: F0 [12:02:25]MH_I2C_Read... [12:02:25]Read from MH i2c: F0 09 00 [12:02:25]MH_I2C_Read... [12:02:25]Read from MH i2c: F0 09 00 B7 A3 00 DD C8 72 66 BD 8F 7C 64 FB [12:02:25]GetLastDocTimeStamp 1718798381 [12:02:25]current date 1718798557 [12:02:25]FM_GetShiftState [12:02:25]SAM_PROTO_GetShiftState [12:02:25]wFMCommunicate request_size=4 [12:02:25]MH_SAM_APDU [12:02:25]CAPDU: 80 13 01 00 [12:02:25]Write to MH i2c: E2 08 00 B8 A3 80 13 01 00 00 00 00 00 D8 [12:02:25]Write i2c OK [12:02:25]MH_I2C_Read... [12:02:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:02:25]Read from MH i2c: E2 [12:02:25]MH_I2C_Read... [12:02:25]Read from MH i2c: E2 0E 00 [12:02:25]MH_I2C_Read... [12:02:25]Read from MH i2c: E2 0E 00 B8 A3 00 09 00 01 04 26 72 66 00 00 00 00 90 00 E6 [12:02:25]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [12:02:25]wFMCommunicate OK [12:02:25]SAM_PROTO_GetShiftState done [12:02:25]FM_GetShiftState done [12:02:25]opened in 1718756868 [12:02:25]opened+sec_in_day 1718843268 [12:02:25]quantity*price = 100064 [12:02:25]sum+1 = 100066 [12:02:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.65 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 82 19.06.2024 12:02 Смена: 353 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103652 ФПД: 126214660885606 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T120237&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103652&fm=126214660885606&tin=02508201610067®Number=0000000000092785&sum=100000 [12:02:26]StoreToDocumentArchive [12:02:26]shift 353 fd 103652 [12:02:26]save to /storage/0353/doc_00103652 [12:02:26]save last doc name /storage/0353/doc_00103652 to /storage/kkm_last_doc_name [12:02:26]save OK [12:02:26]Clear old archive folders... [12:02:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:02:26]tlvbuf is 01416470 [12:02:26]SAM_PROTO_ClearQueue [12:02:26]wFMCommunicate request_size=4 [12:02:26]MH_SAM_APDU [12:02:26]CAPDU: 80 09 00 00 [12:02:26]Write to MH i2c: E2 08 00 C5 A3 80 09 00 00 00 00 00 00 DA [12:02:26]Write i2c OK [12:02:26]MH_I2C_Read... [12:02:26]Read from MH i2c: E2 [12:02:26]MH_I2C_Read... [12:02:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:02:26]Read from MH i2c: E2 03 00 [12:02:26]MH_I2C_Read... [12:02:26]Read from MH i2c: E2 03 00 C5 A3 00 90 00 DC [12:02:26]RAPDU: 90 00 [12:02:26]wFMCommunicate OK [12:02:26]SAM_PROTO_ClearQueue done [12:02:26]KKMCreateOFDPacket [12:02:26]OFDProtocolAddRootSTLVToBuf [12:02:26]FM_MakeSignedData [12:02:26]FM_MakeSignedData [12:02:26]SAM_PROTO_SignData [12:02:26]wFMCommunicate request_size=4 [12:02:26]MH_SAM_APDU [12:02:26]CAPDU: 80 0D 01 02 [12:02:26]Write to MH i2c: E2 08 00 C6 A3 80 0D 01 02 00 00 00 00 E2 [12:02:26]Write i2c OK [12:02:26]MH_I2C_Read... [12:02:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:02:26]Read from MH i2c: E2 [12:02:26]MH_I2C_Read... [12:02:26]Read from MH i2c: E2 03 00 [12:02:26]MH_I2C_Read... [12:02:26]Read from MH i2c: E2 03 00 C6 A3 00 90 00 DD [12:02:26]RAPDU: 90 00 [12:02:26]wFMCommunicate OK [12:02:26]wFMCommunicate request_size=255 [12:02:26]MH_SAM_APDU [12:02:26]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 DD C8 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 E4 94 01 00 35 04 06 00 72 [12:02:26]Write to MH i2c: E2 02 01 C7 A3 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 DD C8 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 E4 94 01 00 35 04 06 00 72 00 00 08 [12:02:26]Write i2c OK [12:02:26]MH_I2C_Read... [12:02:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:02:26]Read from MH i2c: E2 [12:02:26]MH_I2C_Read... [12:02:26]Read from MH i2c: E2 03 00 [12:02:26]MH_I2C_Read... [12:02:26]Read from MH i2c: E2 03 00 C7 A3 00 90 00 DE [12:02:26]RAPDU: 90 00 [12:02:26]wFMCommunicate OK [12:02:26]wFMCommunicate request_size=10 [12:02:26]MH_SAM_APDU [12:02:26]CAPDU: 80 0D 02 02 05 CA A4 07 0C 66 [12:02:26]Write to MH i2c: E2 0D 00 C8 A3 80 0D 02 02 05 00 CA A4 07 0C 66 00 00 D6 [12:02:26]Write i2c OK [12:02:26]MH_I2C_Read... [12:02:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:02:26]Read from MH i2c: E2 [12:02:26]MH_I2C_Read... [12:02:26]Read from MH i2c: E2 03 00 [12:02:26]MH_I2C_Read... [12:02:26]Read from MH i2c: E2 03 00 C8 A3 00 90 00 DF [12:02:26]RAPDU: 90 00 [12:02:26]wFMCommunicate OK [12:02:26]wFMCommunicate request_size=4 [12:02:26]MH_SAM_APDU [12:02:26]CAPDU: 80 0D 03 02 [12:02:26]Write to MH i2c: E2 08 00 C9 A3 80 0D 03 02 00 00 00 00 E7 [12:02:26]Write i2c OK [12:02:26]MH_I2C_Read... [12:02:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:02:26]Read from MH i2c: E2 [12:02:26]MH_I2C_Read... [12:02:26]Read from MH i2c: E2 0B 00 [12:02:26]MH_I2C_Read... [12:02:26]Read from MH i2c: E2 0B 00 C9 A3 00 D9 F6 75 83 D1 DD 21 73 90 00 F1 [12:02:26]RAPDU: D9 F6 75 83 D1 DD 21 73 90 00 [12:02:26]wFMCommunicate OK [12:02:26]SAM_PROTO_SignData done [12:02:26]FM_MakeSignedData done [12:02:26]CreateOFDProtocolMessage [12:02:26]wFMCommunicate request_size=4 [12:02:26]MH_SAM_APDU [12:02:26]CAPDU: 80 11 00 00 [12:02:26]Write to MH i2c: E2 08 00 CA A3 80 11 00 00 00 00 00 00 E7 [12:02:26]Write i2c OK [12:02:26]MH_I2C_Read... [12:02:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:02:26]Read from MH i2c: E2 [12:02:26]MH_I2C_Read... [12:02:26]Read from MH i2c: E2 17 00 [12:02:26]MH_I2C_Read... [12:02:26]Read from MH i2c: E2 17 00 CA A3 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 3A [12:02:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [12:02:26]wFMCommunicate OK [12:02:26]CreateOFDProtocolMessage done [12:02:26]OFDSenderStorePacket 103652 [12:02:26]StoreOFDPacket docnum=103652 [12:02:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 10 91 07 01 04 31 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 DD C8 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 E4 94 01 00 35 04 06 00 72 CA A4 07 0C 66 D9 F6 75 83 D1 DD 21 73 [12:02:26]CheckFolder [12:02:26]dirname=/storage/ofd_packets [12:02:26]CheckFolder done [12:02:26]ProducePacketName [12:02:26]name=ofd_packets/00103652 [12:02:26]NVStorageSaveData ofd_packets/00103652 [12:02:26]File name is /storage/ofd_packets/00103652 [12:02:26]Write 301 bytes [12:02:26]NVStorageSaveData done [12:02:26]OFDSenderStorePacket done [12:02:26]KKMCreateOFDPacket done [12:02:26]NVStorageSaveData kkm_last_timestamp [12:02:26]File name is /storage/kkm_last_timestamp [12:02:26]Write 4 bytes [12:02:26]NVStorageSaveData done [12:02:26]ExternCall_PrintAddStr [12:02:26]wPrintStart [12:02:26]Write to MH i2c: 01 00 00 CB A3 6E [12:02:26]Write i2c OK [12:02:26]MH_I2C_Read... [12:02:26]Read from MH i2c: 01 [12:02:26]MH_I2C_Read... [12:02:26]Read from MH i2c: 01 07 00 [12:02:26]MH_I2C_Read... [12:02:26]Read from MH i2c: 01 07 00 CB A3 00 00 00 00 00 FF 0F 83 [12:02:26]RasterBufferAndPrint [12:02:26]line Счет N : (1)672900 [12:02:26]line ИНН: 02508201610067 [12:02:26]line Контрольно-Кассовый Чек [12:02:26]line ПРОДАЖА [12:02:26]line ТРК (МРК, ГНК) : 32 [12:02:26]line Товар: 2710124130 [12:02:26]line Аи-92-К-5 [12:02:26]line 15.070 * 66.40 [12:02:26]line = 1000.65 [12:02:26]line НДС 12% НСП 1% [12:02:26]line > о реализуемом товаре [12:02:26]line ОКРУГЛЕНИЕ: -0.65 [12:02:26]line ИТОГО: 1000.00 [12:02:26]line Внесено: 1000.00 [12:02:26]line СДАЧА: 0.00 [12:02:26]line НСП 1% : 8.85 [12:02:26]line НДС 12% : 106.26 [12:02:26]line Наличными: 1000.00 [12:02:26]line Безнал.: 0.00 [12:02:26]line Место: АЗС № 120 "Партнер Нефть" [12:02:26]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [12:02:26]line СНО: Общий режим [12:02:26]line Чек 82 19.06.2024 12:02 [12:02:26]line Смена: 353 ФФД: 1.0 [12:02:26]line ЗНМ: 0300000164 [12:02:26]line РНМ: 0000000000092785 [12:02:26]line Версия ККМ: 001 [12:02:26]line ФМ: 0000000000875093 [12:02:26]line ФД: 103652 [12:02:26]line ФПД: 126214660885606 [12:02:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T120237&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103652&fm=126214660885606&tin=02508201610067®Number=0000000000092785&sum=100000 [12:02:27]OFD Sender: Processing packet 103652 [packets to send 17, broken 16] [12:02:27]ProducePacketName [12:02:27]name=ofd_packets/00103652 [12:02:27]OFD Sender: To server: pG, [12:02:27]CommunicateWithHost lk.salyk.kg:30040 [12:02:27]ConnectInit lk.salyk.kg [12:02:27]written 0, free lines is 4095 [12:02:27]Connected sock=10 [12:02:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 10 91 07 01 04 31 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 DD C8 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 E4 94 01 00 35 04 06 00 72 CA A4 07 0C 66 D9 F6 75 83 D1 DD 21 73 [12:02:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 19 46 47 00 0D 93 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 E4 94 01 00 F4 03 04 00 66 6F 72 66 B6 04 01 00 00 1C FD CC 0C F5 23 9A 21 [12:02:27]CommunicateWithHost err = 0 [12:02:27]CheckOFDResponse [12:02:27]1017 (14) - 77093643461234 [12:02:27]1041 (16) - 0000000000875093 [12:02:27]1040 (4) - 103652 [12:02:27]1012 (4) - 19.06.2024 05:40 [12:02:27]1206 (1) - 0 [12:02:27]OFD Sender: Remove packet 103652 [12:02:27]ProducePacketName [12:02:27]name=ofd_packets/00103652 [12:02:27]NVStorageDeleteData [12:02:27]Write to MH i2c: 01 00 00 F6 A3 99 [12:02:27]Write i2c OK [12:02:27]MH_I2C_Read... [12:02:27]Read from MH i2c: 01 [12:02:27]MH_I2C_Read... [12:02:27]Read from MH i2c: 01 07 00 [12:02:27]MH_I2C_Read... [12:02:27]Read from MH i2c: 01 07 00 F6 A3 00 00 00 00 00 E7 0C 93 [12:02:27]RasterBufferAndPrint [12:02:27]line [12:02:27]line [12:02:27]line [12:02:27]line [12:02:27]line [12:02:27]written 0, free lines is 3309 [12:02:27]MH_Cut [12:02:27]Write to MH i2c: D1 01 00 FD A3 01 72 [12:02:27]Write i2c OK [12:02:27]MH_I2C_Read... [12:02:27]Read from MH i2c: D1 [12:02:27]MH_I2C_Read... [12:02:27]Read from MH i2c: D1 01 00 [12:02:27]MH_I2C_Read... [12:02:27]Read from MH i2c: D1 01 00 FD A3 00 71 [12:02:27]Write to MH i2c: 01 00 00 FE A3 A1 [12:02:27]Write i2c OK [12:02:27]MH_I2C_Read... [12:02:28]OFD Sender: No OFD packet to send [12:02:28]*** Cut start [12:02:28]*** Partial cut [12:02:28]*** CUTSNS_PIN = 1 [12:02:28]*** CUTSNS_PIN = 0 [12:02:28]*** Brake cut motor [12:02:29]Read from MH i2c: 01 [12:02:29]MH_I2C_Read... [12:02:29]*** Stop cut motor [12:02:29]*** Cut end [12:02:29]Read from MH i2c: 01 07 00 [12:02:29]MH_I2C_Read... [12:02:29]Read from MH i2c: 01 07 00 FE A3 00 00 00 00 00 FF 0F B6 [12:02:29]process_action close_receipt done [12:02:29]requested_data is exist [12:02:29]produce_requested_data [12:02:29]requested_item fm.sn is exist - process it [12:02:29]wFMCommunicate request_size=4 [12:02:29]MH_SAM_APDU [12:02:29]CAPDU: 80 11 00 00 [12:02:29]Write to MH i2c: E2 08 00 FF A3 80 11 00 00 00 00 00 00 1C [12:02:29]Write i2c OK [12:02:29]MH_I2C_Read... [12:02:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:02:29]Read from MH i2c: E2 [12:02:29]MH_I2C_Read... [12:02:29]Read from MH i2c: E2 17 00 [12:02:29]MH_I2C_Read... [12:02:29]Read from MH i2c: E2 17 00 FF A3 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 6F [12:02:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [12:02:29]wFMCommunicate OK [12:02:29]requested_item fd.num is exist - process it [12:02:29]SAM_PROTO_GetFieldsCounters [12:02:29]wFMCommunicate request_size=4 [12:02:29]MH_SAM_APDU [12:02:29]CAPDU: 80 13 00 00 [12:02:29]Write to MH i2c: E2 08 00 00 A4 80 13 00 00 00 00 00 00 20 [12:02:29]Write i2c OK [12:02:29]MH_I2C_Read... [12:02:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:02:29]Read from MH i2c: E2 [12:02:29]MH_I2C_Read... [12:02:29]Read from MH i2c: E2 62 00 [12:02:29]MH_I2C_Read... [12:02:29]Read from MH i2c: E2 62 00 00 A4 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 E4 94 01 00 0E 04 04 00 61 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 18 [12:02:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 E4 94 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 52 00 00 00 5E 04 04 00 52 00 00 00 57 04 04 00 53 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:02:29]wFMCommunicate OK [12:02:29]SAM_PROTO_GetFieldsCounters done [12:02:29]requested_item shift.num is exist - process it [12:02:29]requested_item shift.opened is exist - process it [12:02:29]req_shift_opened [12:02:29]FM_GetShiftState [12:02:29]SAM_PROTO_GetShiftState [12:02:29]wFMCommunicate request_size=4 [12:02:29]MH_SAM_APDU [12:02:29]CAPDU: 80 13 01 00 [12:02:29]Write to MH i2c: E2 08 00 01 A4 80 13 01 00 00 00 00 00 22 [12:02:29]Write i2c OK [12:02:29]MH_I2C_Read... [12:02:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:02:29]Read from MH i2c: E2 [12:02:29]MH_I2C_Read... [12:02:29]Read from MH i2c: E2 0E 00 [12:02:29]MH_I2C_Read... [12:02:29]Read from MH i2c: E2 0E 00 01 A4 00 09 00 01 04 26 72 66 00 00 00 00 90 00 30 [12:02:29]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [12:02:29]wFMCommunicate OK [12:02:29]SAM_PROTO_GetShiftState done [12:02:29]FM_GetShiftState done [12:02:29]req_shift_opened done [12:02:29]requested_item shift.open_date is exist - process it [12:02:29]req_shift_open_date [12:02:29]req_shift_open_date done [12:02:29]produce_requested_data done [12:02:29]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103652,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [12:02:29]process_action_free close_receipt [12:02:29]json_value_free [12:02:29]json_value_free done [12:02:29]process_json_proto returns [12:02:29]Send response to host [12:02:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103652,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [12:02:29]free response buf [12:02:29]execute_script done [12:02:29]execute_script returns [12:02:29]free content buf [12:02:29]Sock 7.Close socket [12:02:29]Sock 7.Thread stoped [12:02:33]OFD Sender: No OFD packet to send [12:02:38]OFD Sender: No OFD packet to send [12:02: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:03]accept exits with 9 [12:04:03]New connection [12:04:03]New thread 3067227492 created [12:04:03]Thread 3067084132 joined [12:04:03]Waiting for new connection... [12:04:03] Sock 9.Parse request [12:04:03]Sock 9.Check first char [12:04:03]Sock 9.First char is OK [12:04:03]request: POST /json_proto HTTP/1.0 [12:04:03]Method: POST [12:04:03]URL: /json_proto [12:04:03]Method is POST - this is cgi request [12:04:03]url: /json_proto [12:04:03]query_string will be loaded in cgi processing [12:04:03]execute_cgi json_proto POST (null) [12:04:03]execute_cgi path=json_proto method=POST [12:04:03]POST find Content-Length [12:04:03]Host: 172.17.38.133:8080 [12:04:03]Content-Length: 678 [12:04:03]Content-Type: application/json [12:04:03] [12:04:03]POST finish read [12:04:03]Found Content-Length = 678 [12:04:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672901", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 10.040, "sum" : 666.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 666.00, "total" : 666.00, "payments": [ { "type": 0, "sum" : 666.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:04:03]execute_script... [12:04:03]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672901", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 10.040, "sum" : 666.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 666.00, "total" : 666.00, "payments": [ { "type": 0, "sum" : 666.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:04:03]POST & json_proto [12:04:03]process_json_proto [12:04:03]json parsed OK: [12:04:03]protocol is kg_v1.0 [12:04:03]action value=close_receipt [12:04:03]process_action close_receipt [12:04:03]cmd_close_receipt [12:04:03]MH_GetDate [12:04:03]Write to MH i2c: F0 00 00 02 A4 95 [12:04:03]Write i2c OK [12:04:03]MH_I2C_Read... [12:04:03]Read from MH i2c: F0 [12:04:03]MH_I2C_Read... [12:04:03]Read from MH i2c: F0 09 00 [12:04:03]MH_I2C_Read... [12:04:03]Read from MH i2c: F0 09 00 02 A4 00 3F C9 72 66 BD 8F 7C 64 AA [12:04:03]GetLastDocTimeStamp 1718798557 [12:04:03]current date 1718798655 [12:04:03]FM_GetShiftState [12:04:03]SAM_PROTO_GetShiftState [12:04:03]wFMCommunicate request_size=4 [12:04:03]MH_SAM_APDU [12:04:03]CAPDU: 80 13 01 00 [12:04:03]Write to MH i2c: E2 08 00 03 A4 80 13 01 00 00 00 00 00 24 [12:04:03]Write i2c OK [12:04:03]MH_I2C_Read... [12:04:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:04:03]Read from MH i2c: E2 [12:04:03]MH_I2C_Read... [12:04:03]Read from MH i2c: E2 0E 00 [12:04:03]MH_I2C_Read... [12:04:03]Read from MH i2c: E2 0E 00 03 A4 00 09 00 01 04 26 72 66 00 00 00 00 90 00 32 [12:04:03]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [12:04:03]wFMCommunicate OK [12:04:03]SAM_PROTO_GetShiftState done [12:04:03]FM_GetShiftState done [12:04:03]opened in 1718756868 [12:04:03]opened+sec_in_day 1718843268 [12:04:03]quantity*price = 66665 [12:04:03]sum+1 = 66667 [12:04:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 666.00 Внесено: 666.00 СДАЧА: 0.00 НСП 1% : 5.90 НДС 12% : 70.80 Наличными: 666.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 83 19.06.2024 12:04 Смена: 353 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103653 ФПД: 64381282091864 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T120415&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103653&fm=64381282091864&tin=02508201610067®Number=0000000000092785&sum=66600 [12:04:04]StoreToDocumentArchive [12:04:04]shift 353 fd 103653 [12:04:04]save to /storage/0353/doc_00103653 [12:04:04]save last doc name /storage/0353/doc_00103653 to /storage/kkm_last_doc_name [12:04:04]save OK [12:04:04]Clear old archive folders... [12:04:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:04:04]tlvbuf is 014E7F20 [12:04:04]SAM_PROTO_ClearQueue [12:04:04]wFMCommunicate request_size=4 [12:04:04]MH_SAM_APDU [12:04:04]CAPDU: 80 09 00 00 [12:04:04]Write to MH i2c: E2 08 00 10 A4 80 09 00 00 00 00 00 00 26 [12:04:04]Write i2c OK [12:04:04]MH_I2C_Read... [12:04:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:04:04]Read from MH i2c: E2 [12:04:04]MH_I2C_Read... [12:04:04]Read from MH i2c: E2 03 00 [12:04:04]MH_I2C_Read... [12:04:04]Read from MH i2c: E2 03 00 10 A4 00 90 00 28 [12:04:04]RAPDU: 90 00 [12:04:04]wFMCommunicate OK [12:04:04]SAM_PROTO_ClearQueue done [12:04:04]KKMCreateOFDPacket [12:04:04]OFDProtocolAddRootSTLVToBuf [12:04:04]FM_MakeSignedData [12:04:04]FM_MakeSignedData [12:04:04]SAM_PROTO_SignData [12:04:04]wFMCommunicate request_size=4 [12:04:04]MH_SAM_APDU [12:04:04]CAPDU: 80 0D 01 02 [12:04:04]Write to MH i2c: E2 08 00 11 A4 80 0D 01 02 00 00 00 00 2E [12:04:04]Write i2c OK [12:04:04]MH_I2C_Read... [12:04:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:04:04]Read from MH i2c: E2 [12:04:04]MH_I2C_Read... [12:04:04]Read from MH i2c: E2 03 00 [12:04:04]MH_I2C_Read... [12:04:04]Read from MH i2c: E2 03 00 11 A4 00 90 00 29 [12:04:04]RAPDU: 90 00 [12:04:04]wFMCommunicate OK [12:04:04]wFMCommunicate request_size=255 [12:04:04]MH_SAM_APDU [12:04:04]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 27 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 6A 04 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 04 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4E 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A8 1B 00 00 00 00 07 04 06 00 28 04 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 3F C9 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 E5 94 01 00 35 04 06 00 3A [12:04:04]Write to MH i2c: E2 02 01 12 A4 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 27 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 6A 04 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 04 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4E 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A8 1B 00 00 00 00 07 04 06 00 28 04 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 3F C9 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 E5 94 01 00 35 04 06 00 3A 00 00 CB [12:04:04]Write i2c OK [12:04:04]MH_I2C_Read... [12:04:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:04:05]Read from MH i2c: E2 [12:04:05]MH_I2C_Read... [12:04:05]Read from MH i2c: E2 03 00 [12:04:05]MH_I2C_Read... [12:04:05]Read from MH i2c: E2 03 00 12 A4 00 90 00 2A [12:04:05]RAPDU: 90 00 [12:04:05]wFMCommunicate OK [12:04:05]wFMCommunicate request_size=10 [12:04:05]MH_SAM_APDU [12:04:05]CAPDU: 80 0D 02 02 05 8D EF 73 03 58 [12:04:05]Write to MH i2c: E2 0D 00 13 A4 80 0D 02 02 05 00 8D EF 73 03 58 00 00 85 [12:04:05]Write i2c OK [12:04:05]MH_I2C_Read... [12:04:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:04:05]Read from MH i2c: E2 [12:04:05]MH_I2C_Read... [12:04:05]Read from MH i2c: E2 03 00 [12:04:05]MH_I2C_Read... [12:04:05]Read from MH i2c: E2 03 00 13 A4 00 90 00 2B [12:04:05]RAPDU: 90 00 [12:04:05]wFMCommunicate OK [12:04:05]wFMCommunicate request_size=4 [12:04:05]MH_SAM_APDU [12:04:05]CAPDU: 80 0D 03 02 [12:04:05]Write to MH i2c: E2 08 00 14 A4 80 0D 03 02 00 00 00 00 33 [12:04:05]Write i2c OK [12:04:05]MH_I2C_Read... [12:04:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:04:05]Read from MH i2c: E2 [12:04:05]MH_I2C_Read... [12:04:05]Read from MH i2c: E2 0B 00 [12:04:05]MH_I2C_Read... [12:04:05]Read from MH i2c: E2 0B 00 14 A4 00 C9 4B 07 65 CE 54 6D 48 90 00 8B [12:04:05]RAPDU: C9 4B 07 65 CE 54 6D 48 90 00 [12:04:05]wFMCommunicate OK [12:04:05]SAM_PROTO_SignData done [12:04:05]FM_MakeSignedData done [12:04:05]CreateOFDProtocolMessage [12:04:05]wFMCommunicate request_size=4 [12:04:05]MH_SAM_APDU [12:04:05]CAPDU: 80 11 00 00 [12:04:05]Write to MH i2c: E2 08 00 15 A4 80 11 00 00 00 00 00 00 33 [12:04:05]Write i2c OK [12:04:05]MH_I2C_Read... [12:04:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:04:05]Read from MH i2c: E2 [12:04:05]MH_I2C_Read... [12:04:05]Read from MH i2c: E2 17 00 [12:04:05]MH_I2C_Read... [12:04:05]Read from MH i2c: E2 17 00 15 A4 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 86 [12:04:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [12:04:05]wFMCommunicate OK [12:04:05]CreateOFDProtocolMessage done [12:04:05]OFDSenderStorePacket 103653 [12:04:05]StoreOFDPacket docnum=103653 [12:04:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 71 D8 07 01 05 64 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 27 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 6A 04 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 04 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4E 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A8 1B 00 00 00 00 07 04 06 00 28 04 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 3F C9 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 E5 94 01 00 35 04 06 00 3A 8D EF 73 03 58 C9 4B 07 65 CE 54 6D 48 [12:04:05]CheckFolder [12:04:05]dirname=/storage/ofd_packets [12:04:05]CheckFolder done [12:04:05]ProducePacketName [12:04:05]name=ofd_packets/00103653 [12:04:05]NVStorageSaveData ofd_packets/00103653 [12:04:05]File name is /storage/ofd_packets/00103653 [12:04:05]Write 301 bytes [12:04:05]NVStorageSaveData done [12:04:05]OFDSenderStorePacket done [12:04:05]KKMCreateOFDPacket done [12:04:05]NVStorageSaveData kkm_last_timestamp [12:04:05]File name is /storage/kkm_last_timestamp [12:04:05]Write 4 bytes [12:04:05]NVStorageSaveData done [12:04:05]ExternCall_PrintAddStr [12:04:05]wPrintStart [12:04:05]Write to MH i2c: 01 00 00 16 A4 BA [12:04:05]Write i2c OK [12:04:05]MH_I2C_Read... [12:04:05]Read from MH i2c: 01 [12:04:05]MH_I2C_Read... [12:04:05]Read from MH i2c: 01 07 00 [12:04:05]MH_I2C_Read... [12:04:05]Read from MH i2c: 01 07 00 16 A4 00 00 00 00 00 FF 0F CF [12:04:05]RasterBufferAndPrint [12:04:05]line Счет N : (1)672901 [12:04:05]line ИНН: 02508201610067 [12:04:05]line Контрольно-Кассовый Чек [12:04:05]line ПРОДАЖА [12:04:05]line ТРК (МРК, ГНК) : 42 [12:04:05]line Товар: 2710124130 [12:04:05]line Аи-92-К-5 [12:04:05]line 10.040 * 66.40 [12:04:05]line = 666.66 [12:04:05]line НДС 12% НСП 1% [12:04:05]line > о реализуемом товаре [12:04:05]line ОКРУГЛЕНИЕ: -0.66 [12:04:05]line ИТОГО: 666.00 [12:04:05]line Внесено: 666.00 [12:04:05]line СДАЧА: 0.00 [12:04:05]line НСП 1% : 5.90 [12:04:05]line НДС 12% : 70.80 [12:04:05]line Наличными: 666.00 [12:04:05]line Безнал.: 0.00 [12:04:05]line Место: АЗС № 120 "Партнер Нефть" [12:04:05]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [12:04:05]line СНО: Общий режим [12:04:05]line Чек 83 19.06.2024 12:04 [12:04:05]line Смена: 353 ФФД: 1.0 [12:04:05]line ЗНМ: 0300000164 [12:04:05]line РНМ: 0000000000092785 [12:04:05]line Версия ККМ: 001 [12:04:05]line ФМ: 0000000000875093 [12:04:05]line ФД: 103653 [12:04:05]line ФПД: 64381282091864 [12:04:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T120415&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103653&fm=64381282091864&tin=02508201610067®Number=0000000000092785&sum=66600 [12:04:05]written 0, free lines is 4095 [12:04:05]OFD Sender: Processing packet 103653 [packets to send 17, broken 16] [12:04:05]ProducePacketName [12:04:05]name=ofd_packets/00103653 [12:04:05]OFD Sender: To server: pG, [12:04:05]CommunicateWithHost lk.salyk.kg:30040 [12:04:05]ConnectInit lk.salyk.kg [12:04:06]Write to MH i2c: 01 00 00 41 A4 E5 [12:04:06]Write i2c OK [12:04:06]MH_I2C_Read... [12:04:06]Read from MH i2c: 01 [12:04:06]MH_I2C_Read... [12:04:06]Read from MH i2c: 01 07 00 [12:04:06]MH_I2C_Read... [12:04:06]Read from MH i2c: 01 07 00 41 A4 00 00 00 00 00 EA 0C E2 [12:04:06]RasterBufferAndPrint [12:04:06]line [12:04:06]line [12:04:06]line [12:04:06]line [12:04:06]line [12:04:06]written 0, free lines is 3312 [12:04:06]MH_Cut [12:04:06]Write to MH i2c: D1 01 00 48 A4 01 BE [12:04:06]Write i2c OK [12:04:06]MH_I2C_Read... [12:04:06]Read from MH i2c: D1 [12:04:06]MH_I2C_Read... [12:04:06]Read from MH i2c: D1 01 00 [12:04:06]MH_I2C_Read... [12:04:06]Read from MH i2c: D1 01 00 48 A4 00 BD [12:04:06]Write to MH i2c: 01 00 00 49 A4 ED [12:04:06]Write i2c OK [12:04:06]MH_I2C_Read... [12:04:06]*** Cut start [12:04:06]*** Partial cut [12:04:06]*** CUTSNS_PIN = 1 [12:04:06]*** CUTSNS_PIN = 0 [12:04:07]*** Brake cut motor [12:04:07]Read from MH i2c: 01 [12:04:07]MH_I2C_Read... [12:04:07]*** Stop cut motor [12:04:07]*** Cut end [12:04:07]Read from MH i2c: 01 07 00 [12:04:07]MH_I2C_Read... [12:04:07]Read from MH i2c: 01 07 00 49 A4 00 00 00 00 00 FF 0F 02 [12:04:07]process_action close_receipt done [12:04:07]requested_data is exist [12:04:07]produce_requested_data [12:04:07]requested_item fm.sn is exist - process it [12:04:07]wFMCommunicate request_size=4 [12:04:07]MH_SAM_APDU [12:04:07]CAPDU: 80 11 00 00 [12:04:07]Write to MH i2c: E2 08 00 4A A4 80 11 00 00 00 00 00 00 68 [12:04:07]Write i2c OK [12:04:07]MH_I2C_Read... [12:04:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:04:07]Read from MH i2c: E2 [12:04:07]MH_I2C_Read... [12:04:07]Read from MH i2c: E2 17 00 [12:04:07]MH_I2C_Read... [12:04:07]Read from MH i2c: E2 17 00 4A A4 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 BB [12:04:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [12:04:07]wFMCommunicate OK [12:04:07]requested_item fd.num is exist - process it [12:04:07]SAM_PROTO_GetFieldsCounters [12:04:07]wFMCommunicate request_size=4 [12:04:07]MH_SAM_APDU [12:04:07]CAPDU: 80 13 00 00 [12:04:07]Write to MH i2c: E2 08 00 4B A4 80 13 00 00 00 00 00 00 6B [12:04:07]Write i2c OK [12:04:07]MH_I2C_Read... [12:04:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:04:07]Read from MH i2c: E2 [12:04:07]MH_I2C_Read... [12:04:07]Read from MH i2c: E2 62 00 [12:04:07]MH_I2C_Read... [12:04:07]Read from MH i2c: E2 62 00 4B A4 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 E5 94 01 00 0E 04 04 00 61 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 67 [12:04: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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 E5 94 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 53 00 00 00 5E 04 04 00 53 00 00 00 57 04 04 00 54 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:04:07]wFMCommunicate OK [12:04:07]SAM_PROTO_GetFieldsCounters done [12:04:07]requested_item shift.num is exist - process it [12:04:07]requested_item shift.opened is exist - process it [12:04:07]req_shift_opened [12:04:07]FM_GetShiftState [12:04:07]SAM_PROTO_GetShiftState [12:04:07]wFMCommunicate request_size=4 [12:04:07]MH_SAM_APDU [12:04:07]CAPDU: 80 13 01 00 [12:04:07]Write to MH i2c: E2 08 00 4C A4 80 13 01 00 00 00 00 00 6D [12:04:07]Write i2c OK [12:04:07]MH_I2C_Read... [12:04:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:04:07]Read from MH i2c: E2 [12:04:07]MH_I2C_Read... [12:04:07]Read from MH i2c: E2 0E 00 [12:04:07]MH_I2C_Read... [12:04:07]Read from MH i2c: E2 0E 00 4C A4 00 09 00 01 04 26 72 66 00 00 00 00 90 00 7B [12:04:07]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [12:04:07]wFMCommunicate OK [12:04:07]SAM_PROTO_GetShiftState done [12:04:07]FM_GetShiftState done [12:04:07]req_shift_opened done [12:04:07]requested_item shift.open_date is exist - process it [12:04:07]req_shift_open_date [12:04:07]req_shift_open_date done [12:04:07]produce_requested_data done [12:04:07]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103653,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [12:04:07]process_action_free close_receipt [12:04:07]json_value_free [12:04:07]json_value_free done [12:04:07]process_json_proto returns [12:04:07]Send response to host [12:04:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103653,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [12:04:07]free response buf [12:04:07]execute_script done [12:04:07]execute_script returns [12:04:07]free content buf [12:04:07]Sock 9.Close socket [12:04:07]Sock 9.Thread stoped [12:06:16]ConnectInit Can't connect to host [12:06:16]CommunicateWithHost connect error [12:06:16]CommunicateWithHost err = -1 [12:06:16]OFD Sender: Server communicate error [12:06:21]OFD Sender: Processing packet 103653 [packets to send 17, broken 16] [12:06:21]ProducePacketName [12:06:21]name=ofd_packets/00103653 [12:06:21]OFD Sender: To server: pG, [12:06:21]CommunicateWithHost lk.salyk.kg:30040 [12:06:21]ConnectInit lk.salyk.kg [12:06:21]Connected sock=9 [12:06: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 39 33 0F 01 00 00 71 D8 07 01 05 64 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 27 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 6A 04 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 04 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4E 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A8 1B 00 00 00 00 07 04 06 00 28 04 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 3F C9 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 E5 94 01 00 35 04 06 00 3A 8D EF 73 03 58 C9 4B 07 65 CE 54 6D 48 [12:06: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 39 33 4F 00 00 00 85 68 47 00 B6 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 39 33 10 04 04 00 E5 94 01 00 F4 03 04 00 50 70 72 66 B6 04 01 00 00 9E B7 42 EC 5D E3 87 FB [12:06:21]CommunicateWithHost err = 0 [12:06:21]CheckOFDResponse [12:06:21]1017 (14) - 77093643461234 [12:06:21]1041 (16) - 0000000000875093 [12:06:21]1040 (4) - 103653 [12:06:21]1012 (4) - 19.06.2024 05:44 [12:06:21]1206 (1) - 0 [12:06:21]OFD Sender: Remove packet 103653 [12:06:21]ProducePacketName [12:06:21]name=ofd_packets/00103653 [12:06:21]NVStorageDeleteData [12:06:22]OFD Sender: No OFD packet to send [12:06:27]OFD Sender: No OFD packet to send [12:06:32]OFD Sender: No OFD packet to send [12:06:37]OFD Sender: No OFD packet to send [12:06:42]OFD Sender: No OFD packet to send [12:06:47]OFD Sender: No OFD packet to send [12:06:52]OFD Sender: No OFD packet to send [12:06:57]OFD Sender: No OFD packet to send [12:07:02]OFD Sender: No OFD packet to send [12:07:07]OFD Sender: No OFD packet to send [12:07:12]OFD Sender: No OFD packet to send [12:07:17]OFD Sender: No OFD packet to send [12:07:22]OFD Sender: No OFD packet to send [12:07:27]OFD Sender: No OFD packet to send [12:07:32]OFD Sender: No OFD packet to send [12:07:37]OFD Sender: No OFD packet to send [12:07:42]OFD Sender: No OFD packet to send [12:07:42]accept exits with 7 [12:07:42]New connection [12:07:42]New thread 3067084132 created [12:07:42]Thread 3067227492 joined [12:07:42]Waiting for new connection... [12:07:42] Sock 7.Parse request [12:07:42]Sock 7.Check first char [12:07:42]Sock 7.First char is OK [12:07:42]request: POST /json_proto HTTP/1.0 [12:07:42]Method: POST [12:07:42]URL: /json_proto [12:07:42]Method is POST - this is cgi request [12:07:42]url: /json_proto [12:07:42]query_string will be loaded in cgi processing [12:07:42]execute_cgi json_proto POST (null) [12:07:42]execute_cgi path=json_proto method=POST [12:07:42]POST find Content-Length [12:07:42]Host: 172.17.38.133:8080 [12:07:42]Content-Length: 811 [12:07:42]Content-Type: application/json [12:07:42] [12:07:42]POST finish read [12:07:42]Found Content-Length = 811 [12:07:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672896", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 221.590, "sum" : 16153.91, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 16153.91 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:07:42]execute_script... [12:07: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)672896", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 221.590, "sum" : 16153.91, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 16153.91 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:07:42]POST & json_proto [12:07:42]process_json_proto [12:07:42]json parsed OK: [12:07:42]protocol is kg_v1.0 [12:07:42]action value=close_receipt [12:07:42]process_action close_receipt [12:07:42]cmd_close_receipt [12:07:42]MH_GetDate [12:07:42]Write to MH i2c: F0 00 00 4D A4 E0 [12:07:42]Write i2c OK [12:07:42]MH_I2C_Read... [12:07:42]Read from MH i2c: F0 [12:07:42]MH_I2C_Read... [12:07:42]Read from MH i2c: F0 09 00 [12:07:42]MH_I2C_Read... [12:07:42]Read from MH i2c: F0 09 00 4D A4 00 1B CA 72 66 BD 8F 7C 64 D2 [12:07:42]GetLastDocTimeStamp 1718798655 [12:07:42]current date 1718798875 [12:07:42]FM_GetShiftState [12:07:42]SAM_PROTO_GetShiftState [12:07:42]wFMCommunicate request_size=4 [12:07:42]MH_SAM_APDU [12:07:42]CAPDU: 80 13 01 00 [12:07:42]Write to MH i2c: E2 08 00 4E A4 80 13 01 00 00 00 00 00 6F [12:07:42]Write i2c OK [12:07:42]MH_I2C_Read... [12:07:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:07:43]Read from MH i2c: E2 [12:07:43]MH_I2C_Read... [12:07:43]Read from MH i2c: E2 0E 00 [12:07:43]MH_I2C_Read... [12:07:43]Read from MH i2c: E2 0E 00 4E A4 00 09 00 01 04 26 72 66 00 00 00 00 90 00 7D [12:07:43]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [12:07:43]wFMCommunicate OK [12:07:43]SAM_PROTO_GetShiftState done [12:07:43]FM_GetShiftState done [12:07:43]opened in 1718756868 [12:07:43]opened+sec_in_day 1718843268 [12:07:43]quantity*price = 1615391 [12:07:43]sum+1 = 1615392 [12:07:43]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 16153.91 НСП 1% : 142.95 НДС 12% : 1715.46 Наличными: 0.00 Безнал.: 16153.91 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 84 19.06.2024 12:07 Смена: 353 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000875093 ФД: 103654 ФПД: 212504626363899 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T120755&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103654&fm=212504626363899&tin=02508201610067®Number=0000000000092785&sum=1615391 [12:07:44]StoreToDocumentArchive [12:07:44]shift 353 fd 103654 [12:07:44]save to /storage/0353/doc_00103654 [12:07:44]save last doc name /storage/0353/doc_00103654 to /storage/kkm_last_doc_name [12:07:44]save OK [12:07:44]Clear old archive folders... [12:07:44]ProcessDocumentItem done err = 0, tmpTLVsize=252 [12:07:44]tlvbuf is 013A1D30 [12:07:44]SAM_PROTO_ClearQueue [12:07:44]wFMCommunicate request_size=4 [12:07:44]MH_SAM_APDU [12:07:44]CAPDU: 80 09 00 00 [12:07:44]Write to MH i2c: E2 08 00 5B A4 80 09 00 00 00 00 00 00 71 [12:07:44]Write i2c OK [12:07:44]MH_I2C_Read... [12:07:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:07:44]Read from MH i2c: E2 [12:07:44]MH_I2C_Read... [12:07:44]Read from MH i2c: E2 03 00 [12:07:44]MH_I2C_Read... [12:07:44]Read from MH i2c: E2 03 00 5B A4 00 90 00 73 [12:07:44]RAPDU: 90 00 [12:07:44]wFMCommunicate OK [12:07:44]SAM_PROTO_ClearQueue done [12:07:44]KKMCreateOFDPacket [12:07:44]OFDProtocolAddRootSTLVToBuf [12:07:44]FM_MakeSignedData [12:07:44]FM_MakeSignedData [12:07:44]SAM_PROTO_SignData [12:07:44]wFMCommunicate request_size=4 [12:07:44]MH_SAM_APDU [12:07:44]CAPDU: 80 0D 01 02 [12:07:44]Write to MH i2c: E2 08 00 5C A4 80 0D 01 02 00 00 00 00 79 [12:07:44]Write i2c OK [12:07:44]MH_I2C_Read... [12:07:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:07:44]Read from MH i2c: E2 [12:07:44]MH_I2C_Read... [12:07:44]Read from MH i2c: E2 03 00 [12:07:44]MH_I2C_Read... [12:07:44]Read from MH i2c: E2 03 00 5C A4 00 90 00 74 [12:07:44]RAPDU: 90 00 [12:07:44]wFMCommunicate OK [12:07:44]wFMCommunicate request_size=255 [12:07:44]MH_SAM_APDU [12:07:44]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 96 61 03 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 1F A6 18 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1F A6 18 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 37 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1A 9E 02 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 1F A6 18 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 1B CA 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 E6 94 01 00 35 04 06 00 [12:07:44]Write to MH i2c: E2 02 01 5D A4 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 96 61 03 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 1F A6 18 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1F A6 18 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 37 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1A 9E 02 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 1F A6 18 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 1B CA 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 E6 94 01 00 35 04 06 00 00 00 A1 [12:07:44]Write i2c OK [12:07:44]MH_I2C_Read... [12:07:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:07:44]Read from MH i2c: E2 [12:07:44]MH_I2C_Read... [12:07:44]Read from MH i2c: E2 03 00 [12:07:44]MH_I2C_Read... [12:07:44]Read from MH i2c: E2 03 00 5D A4 00 90 00 75 [12:07:44]RAPDU: 90 00 [12:07:44]wFMCommunicate OK [12:07:44]wFMCommunicate request_size=11 [12:07:44]MH_SAM_APDU [12:07:44]CAPDU: 80 0D 02 02 06 C1 45 96 C4 7D FB [12:07:44]Write to MH i2c: E2 0E 00 5E A4 80 0D 02 02 06 00 C1 45 96 C4 7D FB 00 00 60 [12:07:44]Write i2c OK [12:07:44]MH_I2C_Read... [12:07:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:07:44]Read from MH i2c: E2 [12:07:44]MH_I2C_Read... [12:07:44]Read from MH i2c: E2 03 00 [12:07:44]MH_I2C_Read... [12:07:44]Read from MH i2c: E2 03 00 5E A4 00 90 00 76 [12:07:44]RAPDU: 90 00 [12:07:44]wFMCommunicate OK [12:07:44]wFMCommunicate request_size=4 [12:07:44]MH_SAM_APDU [12:07:44]CAPDU: 80 0D 03 02 [12:07:44]Write to MH i2c: E2 08 00 5F A4 80 0D 03 02 00 00 00 00 7E [12:07:44]Write i2c OK [12:07:44]MH_I2C_Read... [12:07:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:07:44]Read from MH i2c: E2 [12:07:44]MH_I2C_Read... [12:07:44]Read from MH i2c: E2 0B 00 [12:07:44]MH_I2C_Read... [12:07:44]Read from MH i2c: E2 0B 00 5F A4 00 C0 51 1A DC E7 74 71 FA 90 00 4C [12:07:44]RAPDU: C0 51 1A DC E7 74 71 FA 90 00 [12:07:44]wFMCommunicate OK [12:07:44]SAM_PROTO_SignData done [12:07:44]FM_MakeSignedData done [12:07:44]CreateOFDProtocolMessage [12:07:44]wFMCommunicate request_size=4 [12:07:44]MH_SAM_APDU [12:07:44]CAPDU: 80 11 00 00 [12:07:44]Write to MH i2c: E2 08 00 60 A4 80 11 00 00 00 00 00 00 7E [12:07:44]Write i2c OK [12:07:44]MH_I2C_Read... [12:07:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:07:44]Read from MH i2c: E2 [12:07:44]MH_I2C_Read... [12:07:44]Read from MH i2c: E2 17 00 [12:07:44]MH_I2C_Read... [12:07:44]Read from MH i2c: E2 17 00 60 A4 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 D1 [12:07:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [12:07:44]wFMCommunicate OK [12:07:44]CreateOFDProtocolMessage done [12:07:44]OFDSenderStorePacket 103654 [12:07:44]StoreOFDPacket docnum=103654 [12:07:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 6F 15 08 01 F0 C1 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 96 61 03 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 1F A6 18 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1F A6 18 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 37 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1A 9E 02 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 1F A6 18 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 1B CA 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 E6 94 01 00 35 04 06 00 C1 45 96 C4 7D FB C0 51 1A DC E7 74 71 FA [12:07:44]CheckFolder [12:07:44]dirname=/storage/ofd_packets [12:07:44]CheckFolder done [12:07:44]ProducePacketName [12:07:44]name=ofd_packets/00103654 [12:07:44]NVStorageSaveData ofd_packets/00103654 [12:07:44]File name is /storage/ofd_packets/00103654 [12:07:44]Write 302 bytes [12:07:44]NVStorageSaveData done [12:07:44]OFDSenderStorePacket done [12:07:44]KKMCreateOFDPacket done [12:07:44]NVStorageSaveData kkm_last_timestamp [12:07:44]File name is /storage/kkm_last_timestamp [12:07:44]Write 4 bytes [12:07:44]NVStorageSaveData done [12:07:44]ExternCall_PrintAddStr [12:07:44]wPrintStart [12:07:44]Write to MH i2c: 01 00 00 61 A4 05 [12:07:44]Write i2c OK [12:07:44]MH_I2C_Read... [12:07:44]Read from MH i2c: 01 [12:07:44]MH_I2C_Read... [12:07:44]Read from MH i2c: 01 07 00 [12:07:44]MH_I2C_Read... [12:07:44]Read from MH i2c: 01 07 00 61 A4 00 00 00 00 00 FF 0F 1A [12:07:44]RasterBufferAndPrint [12:07:44]line Счет N : (1)672896 [12:07:44]line ИНН: 02508201610067 [12:07:44]line Контрольно-Кассовый Чек [12:07:44]line ПРОДАЖА [12:07:44]line ТРК (МРК, ГНК) : 11 [12:07:44]line Товар: 2710194210 [12:07:44]line ДТ(л)-К-5 [12:07:44]line 221.590 * 72.90 [12:07:44]line = 16153.91 [12:07:44]line НДС 12% НСП 1% [12:07:44]line > о реализуемом товаре [12:07:44]line ИТОГО: 16153.91 [12:07:44]line НСП 1% : 142.95 [12:07:44]line НДС 12% : 1715.46 [12:07:44]line Наличными: 0.00 [12:07:44]line Безнал.: 16153.91 [12:07:44]OFD Sender: Processing packet 103654 [packets to send 17, broken 16] [12:07:44]ProducePacketName [12:07:44]name=ofd_packets/00103654 [12:07:44]OFD Sender: To server: pG, [12:07:44]CommunicateWithHost lk.salyk.kg:30040 [12:07:44]ConnectInit lk.salyk.kg [12:07:44]line Место: АЗС № 120 "Партнер Нефть" [12:07:44]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [12:07:44]line СНО: Общий режим [12:07:44]line Чек 84 19.06.2024 12:07 [12:07:44]line Смена: 353 ФФД: 1.0 [12:07:45]line ЗНМ: 0300000164 [12:07:45]line РНМ: 0000000000092785 [12:07:45]line Версия ККМ: 001 [12:07:45]line Платежная система: O! деньги [12:07:45]line ФМ: 0000000000875093 [12:07:45]line ФД: 103654 [12:07:45]line ФПД: 212504626363899 [12:07:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T120755&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103654&fm=212504626363899&tin=02508201610067®Number=0000000000092785&sum=1615391 [12:07:45]Connected sock=10 [12:07: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 39 33 10 01 00 00 6F 15 08 01 F0 C1 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 96 61 03 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 1F A6 18 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1F A6 18 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 37 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1A 9E 02 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 1F A6 18 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 1B CA 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 E6 94 01 00 35 04 06 00 C1 45 96 C4 7D FB C0 51 1A DC E7 74 71 FA [12:07:45]written 0, free lines is 4095 [12:07: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 39 33 4F 00 00 00 74 96 47 00 90 9E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 E6 94 01 00 F4 03 04 00 A4 70 72 66 B6 04 01 00 00 7F 7B 37 48 C4 C9 F9 B0 [12:07:45]CommunicateWithHost err = 0 [12:07:45]CheckOFDResponse [12:07:45]1017 (14) - 77093643461234 [12:07:45]1041 (16) - 0000000000875093 [12:07:45]1040 (4) - 103654 [12:07:45]1012 (4) - 19.06.2024 05:46 [12:07:45]1206 (1) - 0 [12:07:45]OFD Sender: Remove packet 103654 [12:07:45]ProducePacketName [12:07:45]name=ofd_packets/00103654 [12:07:45]NVStorageDeleteData [12:07:45]Write to MH i2c: 01 00 00 8B A4 2F [12:07:45]Write i2c OK [12:07:45]MH_I2C_Read... [12:07:45]Read from MH i2c: 01 [12:07:45]MH_I2C_Read... [12:07:45]Read from MH i2c: 01 07 00 [12:07:45]MH_I2C_Read... [12:07:45]Read from MH i2c: 01 07 00 8B A4 00 00 00 00 00 01 0D 44 [12:07:45]RasterBufferAndPrint [12:07:45]line [12:07:45]line [12:07:45]line [12:07:45]line [12:07:45]line [12:07:45]written 0, free lines is 3338 [12:07:45]MH_Cut [12:07:45]Write to MH i2c: D1 01 00 92 A4 01 08 [12:07:45]Write i2c OK [12:07:45]MH_I2C_Read... [12:07:45]Read from MH i2c: D1 [12:07:45]MH_I2C_Read... [12:07:45]Read from MH i2c: D1 01 00 [12:07:45]MH_I2C_Read... [12:07:45]Read from MH i2c: D1 01 00 92 A4 00 07 [12:07:45]Write to MH i2c: 01 00 00 93 A4 37 [12:07:45]Write i2c OK [12:07:45]MH_I2C_Read... [12:07:45]OFD Sender: No OFD packet to send [12:07:46]*** Cut start [12:07:46]*** Partial cut [12:07:46]*** CUTSNS_PIN = 1 [12:07:46]*** CUTSNS_PIN = 0 [12:07:46]*** Brake cut motor [12:07:46]Read from MH i2c: 01 [12:07:46]MH_I2C_Read... [12:07:46]*** Stop cut motor [12:07:46]*** Cut end [12:07:46]Read from MH i2c: 01 07 00 [12:07:46]MH_I2C_Read... [12:07:46]Read from MH i2c: 01 07 00 93 A4 00 00 00 00 00 FF 0F 4C [12:07:46]process_action close_receipt done [12:07:46]requested_data is exist [12:07:46]produce_requested_data [12:07:46]requested_item fm.sn is exist - process it [12:07:46]wFMCommunicate request_size=4 [12:07:46]MH_SAM_APDU [12:07:46]CAPDU: 80 11 00 00 [12:07:46]Write to MH i2c: E2 08 00 94 A4 80 11 00 00 00 00 00 00 B2 [12:07:46]Write i2c OK [12:07:46]MH_I2C_Read... [12:07:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:07:46]Read from MH i2c: E2 [12:07:46]MH_I2C_Read... [12:07:46]Read from MH i2c: E2 17 00 [12:07:46]MH_I2C_Read... [12:07:46]Read from MH i2c: E2 17 00 94 A4 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 05 [12:07:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [12:07:46]wFMCommunicate OK [12:07:46]requested_item fd.num is exist - process it [12:07:46]SAM_PROTO_GetFieldsCounters [12:07:46]wFMCommunicate request_size=4 [12:07:46]MH_SAM_APDU [12:07:46]CAPDU: 80 13 00 00 [12:07:46]Write to MH i2c: E2 08 00 95 A4 80 13 00 00 00 00 00 00 B5 [12:07:46]Write i2c OK [12:07:46]MH_I2C_Read... [12:07:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:07:47]Read from MH i2c: E2 [12:07:47]MH_I2C_Read... [12:07:47]Read from MH i2c: E2 62 00 [12:07:47]MH_I2C_Read... [12:07:47]Read from MH i2c: E2 62 00 95 A4 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 E6 94 01 00 0E 04 04 00 61 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 B5 [12:07: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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 E6 94 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 54 00 00 00 5E 04 04 00 54 00 00 00 57 04 04 00 55 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:07:47]wFMCommunicate OK [12:07:47]SAM_PROTO_GetFieldsCounters done [12:07:47]requested_item shift.num is exist - process it [12:07:47]requested_item shift.opened is exist - process it [12:07:47]req_shift_opened [12:07:47]FM_GetShiftState [12:07:47]SAM_PROTO_GetShiftState [12:07:47]wFMCommunicate request_size=4 [12:07:47]MH_SAM_APDU [12:07:47]CAPDU: 80 13 01 00 [12:07:47]Write to MH i2c: E2 08 00 96 A4 80 13 01 00 00 00 00 00 B7 [12:07:47]Write i2c OK [12:07:47]MH_I2C_Read... [12:07:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:07:47]Read from MH i2c: E2 [12:07:47]MH_I2C_Read... [12:07:47]Read from MH i2c: E2 0E 00 [12:07:47]MH_I2C_Read... [12:07:47]Read from MH i2c: E2 0E 00 96 A4 00 09 00 01 04 26 72 66 00 00 00 00 90 00 C5 [12:07:47]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [12:07:47]wFMCommunicate OK [12:07:47]SAM_PROTO_GetShiftState done [12:07:47]FM_GetShiftState done [12:07:47]req_shift_opened done [12:07:47]requested_item shift.open_date is exist - process it [12:07:47]req_shift_open_date [12:07:47]req_shift_open_date done [12:07:47]produce_requested_data done [12:07:47]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103654,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [12:07:47]process_action_free close_receipt [12:07:47]json_value_free [12:07:47]json_value_free done [12:07:47]process_json_proto returns [12:07:47]Send response to host [12:07:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103654,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [12:07:47]free response buf [12:07:47]execute_script done [12:07:47]execute_script returns [12:07:47]free content buf [12:07:47]Sock 7.Close socket [12:07:47]Sock 7.Thread stoped [12:07:50]OFD Sender: No OFD packet to send [12:07:55]OFD Sender: No OFD packet to send [12:08:00]OFD Sender: No OFD packet to send [12:08:05]OFD Sender: No OFD packet to send [12:08:10]OFD Sender: No OFD packet to send [12:08:15]OFD Sender: No OFD packet to send [12:08:20]OFD Sender: No OFD packet to send [12:08:25]OFD Sender: No OFD packet to send [12:08:30]OFD Sender: No OFD packet to send [12:08:35]OFD Sender: No OFD packet to send [12:08:40]OFD Sender: No OFD packet to send [12:08:45]OFD Sender: No OFD packet to send [12:08:49]accept exits with 9 [12:08:49]New connection [12:08:49]New thread 3067227492 created [12:08:49]Thread 3067084132 joined [12:08:49]Waiting for new connection... [12:08:49] Sock 9.Parse request [12:08:49]Sock 9.Check first char [12:08:49]Sock 9.First char is OK [12:08:49]request: POST /json_proto HTTP/1.0 [12:08:49]Method: POST [12:08:49]URL: /json_proto [12:08:49]Method is POST - this is cgi request [12:08:49]url: /json_proto [12:08:49]query_string will be loaded in cgi processing [12:08:49]execute_cgi json_proto POST (null) [12:08:49]execute_cgi path=json_proto method=POST [12:08:49]POST find Content-Length [12:08:49]Host: 172.17.38.133:8080 [12:08:49]Content-Length: 816 [12:08:49]Content-Type: application/json [12:08:49] [12:08:49]POST finish read [12:08:49]Found Content-Length = 816 [12:08:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672904", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.66 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:08:49]execute_script... [12:08: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)672904", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.66 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:08:49]POST & json_proto [12:08:49]process_json_proto [12:08:49]json parsed OK: [12:08:49]protocol is kg_v1.0 [12:08:49]action value=close_receipt [12:08:49]process_action close_receipt [12:08:49]cmd_close_receipt [12:08:49]MH_GetDate [12:08:49]Write to MH i2c: F0 00 00 97 A4 2A [12:08:49]Write i2c OK [12:08:49]MH_I2C_Read... [12:08:49]Read from MH i2c: F0 [12:08:49]MH_I2C_Read... [12:08:49]Read from MH i2c: F0 09 00 [12:08:49]MH_I2C_Read... [12:08:49]Read from MH i2c: F0 09 00 97 A4 00 5D CA 72 66 BD 8F 7C 64 5E [12:08:49]GetLastDocTimeStamp 1718798875 [12:08:49]current date 1718798941 [12:08:49]FM_GetShiftState [12:08:49]SAM_PROTO_GetShiftState [12:08:49]wFMCommunicate request_size=4 [12:08:49]MH_SAM_APDU [12:08:49]CAPDU: 80 13 01 00 [12:08:49]Write to MH i2c: E2 08 00 98 A4 80 13 01 00 00 00 00 00 B9 [12:08:49]Write i2c OK [12:08:49]MH_I2C_Read... [12:08:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:08:49]Read from MH i2c: E2 [12:08:49]MH_I2C_Read... [12:08:49]Read from MH i2c: E2 0E 00 [12:08:49]MH_I2C_Read... [12:08:49]Read from MH i2c: E2 0E 00 98 A4 00 09 00 01 04 26 72 66 00 00 00 00 90 00 C7 [12:08:49]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [12:08:49]wFMCommunicate OK [12:08:49]SAM_PROTO_GetShiftState done [12:08:49]FM_GetShiftState done [12:08:49]opened in 1718756868 [12:08:49]opened+sec_in_day 1718843268 [12:08:49]quantity*price = 50065 [12:08:49]sum+1 = 50067 [12:08:49]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.66 НСП 1% : 4.43 НДС 12% : 53.17 Наличными: 0.00 Безнал.: 500.66 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 85 19.06.2024 12:09 Смена: 353 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000875093 ФД: 103655 ФПД: 141003528075972 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T120902&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103655&fm=141003528075972&tin=02508201610067®Number=0000000000092785&sum=50066 [12:08:50]StoreToDocumentArchive [12:08:50]shift 353 fd 103655 [12:08:50]save to /storage/0353/doc_00103655 [12:08:50]save last doc name /storage/0353/doc_00103655 to /storage/kkm_last_doc_name [12:08:50]save OK [12:08:50]Clear old archive folders... [12:08:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:08:50]tlvbuf is 015835B0 [12:08:50]SAM_PROTO_ClearQueue [12:08:50]wFMCommunicate request_size=4 [12:08:50]MH_SAM_APDU [12:08:50]CAPDU: 80 09 00 00 [12:08:50]Write to MH i2c: E2 08 00 A5 A4 80 09 00 00 00 00 00 00 BB [12:08:50]Write i2c OK [12:08:50]MH_I2C_Read... [12:08:50]Read from MH i2c: E2 [12:08:50]MH_I2C_Read... [12:08:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:08:50]Read from MH i2c: E2 03 00 [12:08:50]MH_I2C_Read... [12:08:50]Read from MH i2c: E2 03 00 A5 A4 00 90 00 BD [12:08:50]RAPDU: 90 00 [12:08:50]wFMCommunicate OK [12:08:50]SAM_PROTO_ClearQueue done [12:08:50]KKMCreateOFDPacket [12:08:50]OFDProtocolAddRootSTLVToBuf [12:08:50]FM_MakeSignedData [12:08:50]FM_MakeSignedData [12:08:50]SAM_PROTO_SignData [12:08:50]wFMCommunicate request_size=4 [12:08:50]MH_SAM_APDU [12:08:50]CAPDU: 80 0D 01 02 [12:08:50]Write to MH i2c: E2 08 00 A6 A4 80 0D 01 02 00 00 00 00 C3 [12:08:50]Write i2c OK [12:08:50]MH_I2C_Read... [12:08:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:08:51]Read from MH i2c: E2 [12:08:51]MH_I2C_Read... [12:08:51]Read from MH i2c: E2 03 00 [12:08:51]MH_I2C_Read... [12:08:51]Read from MH i2c: E2 03 00 A6 A4 00 90 00 BE [12:08:51]RAPDU: 90 00 [12:08:51]wFMCommunicate OK [12:08:51]wFMCommunicate request_size=255 [12:08:51]MH_SAM_APDU [12:08: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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 92 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 92 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 5E CA 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 E7 94 01 00 35 04 06 00 80 [12:08:51]Write to MH i2c: E2 02 01 A7 A4 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 92 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 92 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 5E CA 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 E7 94 01 00 35 04 06 00 80 00 00 B4 [12:08:51]Write i2c OK [12:08:51]MH_I2C_Read... [12:08:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:08:51]Read from MH i2c: E2 [12:08:51]MH_I2C_Read... [12:08:51]Read from MH i2c: E2 03 00 [12:08:51]MH_I2C_Read... [12:08:51]Read from MH i2c: E2 03 00 A7 A4 00 90 00 BF [12:08:51]RAPDU: 90 00 [12:08:51]wFMCommunicate OK [12:08:51]wFMCommunicate request_size=10 [12:08:51]MH_SAM_APDU [12:08:51]CAPDU: 80 0D 02 02 05 3D F1 33 FA C4 [12:08:51]Write to MH i2c: E2 0D 00 A8 A4 80 0D 02 02 05 00 3D F1 33 FA C4 00 00 EF [12:08:51]Write i2c OK [12:08:51]MH_I2C_Read... [12:08:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:08:51]Read from MH i2c: E2 [12:08:51]MH_I2C_Read... [12:08:51]Read from MH i2c: E2 03 00 [12:08:51]MH_I2C_Read... [12:08:51]Read from MH i2c: E2 03 00 A8 A4 00 90 00 C0 [12:08:51]RAPDU: 90 00 [12:08:51]wFMCommunicate OK [12:08:51]wFMCommunicate request_size=4 [12:08:51]MH_SAM_APDU [12:08:51]CAPDU: 80 0D 03 02 [12:08:51]Write to MH i2c: E2 08 00 A9 A4 80 0D 03 02 00 00 00 00 C8 [12:08:51]Write i2c OK [12:08:51]MH_I2C_Read... [12:08:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:08:51]Read from MH i2c: E2 [12:08:51]MH_I2C_Read... [12:08:51]Read from MH i2c: E2 0B 00 [12:08:51]MH_I2C_Read... [12:08:51]Read from MH i2c: E2 0B 00 A9 A4 00 30 7B 10 8C 5B C8 08 71 90 00 AC [12:08:51]RAPDU: 30 7B 10 8C 5B C8 08 71 90 00 [12:08:51]wFMCommunicate OK [12:08:51]SAM_PROTO_SignData done [12:08:51]FM_MakeSignedData done [12:08:51]CreateOFDProtocolMessage [12:08:51]wFMCommunicate request_size=4 [12:08:51]MH_SAM_APDU [12:08:51]CAPDU: 80 11 00 00 [12:08:51]Write to MH i2c: E2 08 00 AA A4 80 11 00 00 00 00 00 00 C8 [12:08:51]Write i2c OK [12:08:51]MH_I2C_Read... [12:08:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:08:51]Read from MH i2c: E2 [12:08:51]MH_I2C_Read... [12:08:51]Read from MH i2c: E2 17 00 [12:08:51]MH_I2C_Read... [12:08:51]Read from MH i2c: E2 17 00 AA A4 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 1B [12:08:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [12:08:51]wFMCommunicate OK [12:08:51]CreateOFDProtocolMessage done [12:08:51]OFDSenderStorePacket 103655 [12:08:51]StoreOFDPacket docnum=103655 [12:08:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 33 59 07 01 C8 A8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 92 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 92 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 5E CA 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 E7 94 01 00 35 04 06 00 80 3D F1 33 FA C4 30 7B 10 8C 5B C8 08 71 [12:08:51]CheckFolder [12:08:51]dirname=/storage/ofd_packets [12:08:51]CheckFolder done [12:08:51]ProducePacketName [12:08:51]name=ofd_packets/00103655 [12:08:51]NVStorageSaveData ofd_packets/00103655 [12:08:51]File name is /storage/ofd_packets/00103655 [12:08:51]Write 301 bytes [12:08:51]NVStorageSaveData done [12:08:51]OFDSenderStorePacket done [12:08:51]KKMCreateOFDPacket done [12:08:51]NVStorageSaveData kkm_last_timestamp [12:08:51]File name is /storage/kkm_last_timestamp [12:08:51]Write 4 bytes [12:08:51]NVStorageSaveData done [12:08:51]ExternCall_PrintAddStr [12:08:51]wPrintStart [12:08:51]Write to MH i2c: 01 00 00 AB A4 4F [12:08:51]Write i2c OK [12:08:51]MH_I2C_Read... [12:08:51]Read from MH i2c: 01 [12:08:51]MH_I2C_Read... [12:08:51]Read from MH i2c: 01 07 00 [12:08:51]MH_I2C_Read... [12:08:51]Read from MH i2c: 01 07 00 AB A4 00 00 00 00 00 FF 0F 64 [12:08:51]RasterBufferAndPrint [12:08:51]line Счет N : (1)672904 [12:08:51]line ИНН: 02508201610067 [12:08:51]line Контрольно-Кассовый Чек [12:08:51]line ПРОДАЖА [12:08:51]line ТРК (МРК, ГНК) : 42 [12:08:51]line Товар: 2710124130 [12:08:51]line Аи-92-К-5 [12:08:51]line 7.540 * 66.40 [12:08:51]line = 500.66 [12:08:51]line НДС 12% НСП 1% [12:08:51]line > о реализуемом товаре [12:08:51]line ИТОГО: 500.66 [12:08:51]line НСП 1% : 4.43 [12:08:51]line НДС 12% : 53.17 [12:08:51]line Наличными: 0.00 [12:08:51]line Безнал.: 500.66 [12:08:51]line Место: АЗС № 120 "Партнер Нефть" [12:08:51]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [12:08:51]line СНО: Общий режим [12:08:51]line Чек 85 19.06.2024 12:09 [12:08:51]line Смена: 353 ФФД: 1.0 [12:08:51]line ЗНМ: 0300000164 [12:08:51]line РНМ: 0000000000092785 [12:08:51]line Версия ККМ: 001 [12:08:51]line Платежная система: Бакай Банк [12:08:51]line ФМ: 0000000000875093 [12:08:51]line ФД: 103655 [12:08:51]line ФПД: 141003528075972 [12:08:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T120902&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103655&fm=141003528075972&tin=02508201610067®Number=0000000000092785&sum=50066 [12:08:51]written 0, free lines is 4095 [12:08:51]OFD Sender: Processing packet 103655 [packets to send 17, broken 16] [12:08:51]ProducePacketName [12:08:51]name=ofd_packets/00103655 [12:08:51]OFD Sender: To server: pG, [12:08:51]CommunicateWithHost lk.salyk.kg:30040 [12:08:51]ConnectInit lk.salyk.kg [12:08:52]Connected sock=11 [12:08: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 39 33 0F 01 00 00 33 59 07 01 C8 A8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 92 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 92 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 5E CA 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 E7 94 01 00 35 04 06 00 80 3D F1 33 FA C4 30 7B 10 8C 5B C8 08 71 [12:08:52]Write to MH i2c: 01 00 00 D5 A4 79 [12:08:52]Write i2c OK [12:08:52]MH_I2C_Read... [12:08:52]Read from MH i2c: 01 [12:08:52]MH_I2C_Read... [12:08:52]Read from MH i2c: 01 07 00 [12:08:52]MH_I2C_Read... [12:08:52]Read from MH i2c: 01 07 00 D5 A4 00 00 00 00 00 01 0D 8E [12:08:52]RasterBufferAndPrint [12:08:52]line [12:08:52]line [12:08:52]line [12:08:52]line [12:08:52]line [12:08:52]written 0, free lines is 3335 [12:08:52]MH_Cut [12:08:52]Write to MH i2c: D1 01 00 DC A4 01 52 [12:08:52]Write i2c OK [12:08:52]MH_I2C_Read... [12:08:52]Read from MH i2c: D1 [12:08:52]MH_I2C_Read... [12:08:52]Read from MH i2c: D1 01 00 [12:08:52]MH_I2C_Read... [12:08:52]Read from MH i2c: D1 01 00 DC A4 00 51 [12:08:52]Write to MH i2c: 01 00 00 DD A4 81 [12:08:52]Write i2c OK [12:08:52]MH_I2C_Read... [12:08: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 39 33 4F 00 00 00 5D 89 47 00 8F 65 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 E7 94 01 00 F4 03 04 00 E7 70 72 66 B6 04 01 00 00 5B 95 E2 3C 56 B0 8E 81 [12:08:52]CommunicateWithHost err = 0 [12:08:52]CheckOFDResponse [12:08:52]1017 (14) - 77093643461234 [12:08:52]1041 (16) - 0000000000875093 [12:08:52]1040 (4) - 103655 [12:08:52]1012 (4) - 19.06.2024 05:47 [12:08:52]1206 (1) - 0 [12:08:52]OFD Sender: Remove packet 103655 [12:08:52]ProducePacketName [12:08:52]name=ofd_packets/00103655 [12:08:52]NVStorageDeleteData [12:08:52]OFD Sender: No OFD packet to send [12:08:52]*** Cut start [12:08:52]*** Partial cut [12:08:52]*** CUTSNS_PIN = 1 [12:08:53]*** CUTSNS_PIN = 0 [12:08:53]*** Brake cut motor [12:08:53]Read from MH i2c: 01 [12:08:53]MH_I2C_Read... [12:08:53]*** Stop cut motor [12:08:53]*** Cut end [12:08:53]Read from MH i2c: 01 07 00 [12:08:53]MH_I2C_Read... [12:08:53]Read from MH i2c: 01 07 00 DD A4 00 00 00 00 00 FF 0F 96 [12:08:53]process_action close_receipt done [12:08:53]requested_data is exist [12:08:53]produce_requested_data [12:08:53]requested_item fm.sn is exist - process it [12:08:53]wFMCommunicate request_size=4 [12:08:53]MH_SAM_APDU [12:08:53]CAPDU: 80 11 00 00 [12:08:53]Write to MH i2c: E2 08 00 DE A4 80 11 00 00 00 00 00 00 FC [12:08:53]Write i2c OK [12:08:53]MH_I2C_Read... [12:08:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:08:53]Read from MH i2c: E2 [12:08:53]MH_I2C_Read... [12:08:53]Read from MH i2c: E2 17 00 [12:08:53]MH_I2C_Read... [12:08:53]Read from MH i2c: E2 17 00 DE A4 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 4F [12:08:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [12:08:53]wFMCommunicate OK [12:08:53]requested_item fd.num is exist - process it [12:08:53]SAM_PROTO_GetFieldsCounters [12:08:53]wFMCommunicate request_size=4 [12:08:53]MH_SAM_APDU [12:08:53]CAPDU: 80 13 00 00 [12:08:53]Write to MH i2c: E2 08 00 DF A4 80 13 00 00 00 00 00 00 FF [12:08:53]Write i2c OK [12:08:53]MH_I2C_Read... [12:08:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:08:53]Read from MH i2c: E2 [12:08:53]MH_I2C_Read... [12:08:53]Read from MH i2c: E2 62 00 [12:08:53]MH_I2C_Read... [12:08:53]Read from MH i2c: E2 62 00 DF A4 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 E7 94 01 00 0E 04 04 00 61 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 03 [12:08: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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 E7 94 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 55 00 00 00 5E 04 04 00 55 00 00 00 57 04 04 00 56 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:08:53]wFMCommunicate OK [12:08:53]SAM_PROTO_GetFieldsCounters done [12:08:53]requested_item shift.num is exist - process it [12:08:53]requested_item shift.opened is exist - process it [12:08:53]req_shift_opened [12:08:53]FM_GetShiftState [12:08:53]SAM_PROTO_GetShiftState [12:08:53]wFMCommunicate request_size=4 [12:08:53]MH_SAM_APDU [12:08:53]CAPDU: 80 13 01 00 [12:08:53]Write to MH i2c: E2 08 00 E0 A4 80 13 01 00 00 00 00 00 01 [12:08:53]Write i2c OK [12:08:53]MH_I2C_Read... [12:08:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:08:53]Read from MH i2c: E2 [12:08:53]MH_I2C_Read... [12:08:53]Read from MH i2c: E2 0E 00 [12:08:53]MH_I2C_Read... [12:08:53]Read from MH i2c: E2 0E 00 E0 A4 00 09 00 01 04 26 72 66 00 00 00 00 90 00 0F [12:08:53]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [12:08:53]wFMCommunicate OK [12:08:53]SAM_PROTO_GetShiftState done [12:08:53]FM_GetShiftState done [12:08:53]req_shift_opened done [12:08:53]requested_item shift.open_date is exist - process it [12:08:53]req_shift_open_date [12:08:53]req_shift_open_date done [12:08:53]produce_requested_data done [12:08:53]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103655,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [12:08:53]process_action_free close_receipt [12:08:53]json_value_free [12:08:53]json_value_free done [12:08:53]process_json_proto returns [12:08:53]Send response to host [12:08:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103655,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [12:08:53]free response buf [12:08:53]execute_script done [12:08:53]execute_script returns [12:08:53]free content buf [12:08:53]Sock 9.Close socket [12:08:53]Sock 9.Thread stoped [12:08:57]OFD Sender: No OFD packet to send [12:09:02]OFD Sender: No OFD packet to send [12:09:07]OFD Sender: No OFD packet to send [12:09:11]accept exits with 7 [12:09:11]New connection [12:09:11]New thread 3067084132 created [12:09:11]Thread 3067227492 joined [12:09:11]Waiting for new connection... [12:09:11] Sock 7.Parse request [12:09:11]Sock 7.Check first char [12:09:11]Sock 7.First char is OK [12:09:11]request: POST /json_proto HTTP/1.0 [12:09:11]Method: POST [12:09:11]URL: /json_proto [12:09:11]Method is POST - this is cgi request [12:09:11]url: /json_proto [12:09:11]query_string will be loaded in cgi processing [12:09:11]execute_cgi json_proto POST (null) [12:09:11]execute_cgi path=json_proto method=POST [12:09:11]POST find Content-Length [12:09:11]Host: 172.17.38.133:8080 [12:09:11]Content-Length: 682 [12:09:11]Content-Type: application/json [12:09:11] [12:09:11]POST finish read [12:09:11]Found Content-Length = 682 [12:09:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672903", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 22.600, "sum" : 1500.64, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:09:11]execute_script... [12:09: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)672903", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 22.600, "sum" : 1500.64, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:09:11]POST & json_proto [12:09:11]process_json_proto [12:09:11]json parsed OK: [12:09:11]protocol is kg_v1.0 [12:09:11]action value=close_receipt [12:09:11]process_action close_receipt [12:09:11]cmd_close_receipt [12:09:11]MH_GetDate [12:09:11]Write to MH i2c: F0 00 00 E1 A4 74 [12:09:11]Write i2c OK [12:09:11]MH_I2C_Read... [12:09:11]Read from MH i2c: F0 [12:09:11]MH_I2C_Read... [12:09:11]Read from MH i2c: F0 09 00 [12:09:11]MH_I2C_Read... [12:09:11]Read from MH i2c: F0 09 00 E1 A4 00 74 CA 72 66 BD 8F 7C 64 BF [12:09:11]GetLastDocTimeStamp 1718798942 [12:09:11]current date 1718798964 [12:09:11]FM_GetShiftState [12:09:11]SAM_PROTO_GetShiftState [12:09:11]wFMCommunicate request_size=4 [12:09:11]MH_SAM_APDU [12:09:11]CAPDU: 80 13 01 00 [12:09:11]Write to MH i2c: E2 08 00 E2 A4 80 13 01 00 00 00 00 00 03 [12:09:11]Write i2c OK [12:09:11]MH_I2C_Read... [12:09:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:09:11]Read from MH i2c: E2 [12:09:11]MH_I2C_Read... [12:09:11]Read from MH i2c: E2 0E 00 [12:09:11]MH_I2C_Read... [12:09:11]Read from MH i2c: E2 0E 00 E2 A4 00 09 00 01 04 26 72 66 00 00 00 00 90 00 11 [12:09:11]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [12:09:11]wFMCommunicate OK [12:09:11]SAM_PROTO_GetShiftState done [12:09:11]FM_GetShiftState done [12:09:11]opened in 1718756868 [12:09:11]opened+sec_in_day 1718843268 [12:09:11]quantity*price = 150064 [12:09:11]sum+1 = 150065 [12:09:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.64 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.36 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 86 19.06.2024 12:09 Смена: 353 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103656 ФПД: 277494296039192 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T120924&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103656&fm=277494296039192&tin=02508201610067®Number=0000000000092785&sum=150000 [12:09:12]StoreToDocumentArchive [12:09:12]shift 353 fd 103656 [12:09:12]save to /storage/0353/doc_00103656 [12:09:12]save last doc name /storage/0353/doc_00103656 to /storage/kkm_last_doc_name [12:09:12]save OK [12:09:12]Clear old archive folders... [12:09:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:09:12]tlvbuf is 01410BD0 [12:09:12]SAM_PROTO_ClearQueue [12:09:12]wFMCommunicate request_size=4 [12:09:12]MH_SAM_APDU [12:09:12]CAPDU: 80 09 00 00 [12:09:12]Write to MH i2c: E2 08 00 EF A4 80 09 00 00 00 00 00 00 05 [12:09:12]Write i2c OK [12:09:12]MH_I2C_Read... [12:09:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:09:13]Read from MH i2c: E2 [12:09:13]MH_I2C_Read... [12:09:13]Read from MH i2c: E2 03 00 [12:09:13]MH_I2C_Read... [12:09:13]Read from MH i2c: E2 03 00 EF A4 00 90 00 07 [12:09:13]RAPDU: 90 00 [12:09:13]wFMCommunicate OK [12:09:13]SAM_PROTO_ClearQueue done [12:09:13]KKMCreateOFDPacket [12:09:13]OFDProtocolAddRootSTLVToBuf [12:09:13]FM_MakeSignedData [12:09:13]FM_MakeSignedData [12:09:13]SAM_PROTO_SignData [12:09:13]wFMCommunicate request_size=4 [12:09:13]MH_SAM_APDU [12:09:13]CAPDU: 80 0D 01 02 [12:09:13]Write to MH i2c: E2 08 00 F0 A4 80 0D 01 02 00 00 00 00 0D [12:09:13]Write i2c OK [12:09:13]MH_I2C_Read... [12:09:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:09:13]Read from MH i2c: E2 [12:09:13]MH_I2C_Read... [12:09:13]Read from MH i2c: E2 03 00 [12:09:13]MH_I2C_Read... [12:09:13]Read from MH i2c: E2 03 00 F0 A4 00 90 00 08 [12:09:13]RAPDU: 90 00 [12:09:13]wFMCommunicate OK [12:09:13]wFMCommunicate request_size=255 [12:09:13]MH_SAM_APDU [12:09: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 48 58 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 30 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 40 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 74 CA 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 E8 94 01 00 35 04 06 00 FC [12:09:13]Write to MH i2c: E2 02 01 F1 A4 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 48 58 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 30 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 40 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 74 CA 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 E8 94 01 00 35 04 06 00 FC 00 00 B2 [12:09:13]Write i2c OK [12:09:13]MH_I2C_Read... [12:09:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:09:13]Read from MH i2c: E2 [12:09:13]MH_I2C_Read... [12:09:13]Read from MH i2c: E2 03 00 [12:09:13]MH_I2C_Read... [12:09:13]Read from MH i2c: E2 03 00 F1 A4 00 90 00 09 [12:09:13]RAPDU: 90 00 [12:09:13]wFMCommunicate OK [12:09:13]wFMCommunicate request_size=10 [12:09:13]MH_SAM_APDU [12:09:13]CAPDU: 80 0D 02 02 05 61 2C F1 4F 18 [12:09:13]Write to MH i2c: E2 0D 00 F2 A4 80 0D 02 02 05 00 61 2C F1 4F 18 00 00 FF [12:09:13]Write i2c OK [12:09:13]MH_I2C_Read... [12:09:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:09:13]Read from MH i2c: E2 [12:09:13]MH_I2C_Read... [12:09:13]Read from MH i2c: E2 03 00 [12:09:13]MH_I2C_Read... [12:09:13]Read from MH i2c: E2 03 00 F2 A4 00 90 00 0A [12:09:13]RAPDU: 90 00 [12:09:13]wFMCommunicate OK [12:09:13]wFMCommunicate request_size=4 [12:09:13]MH_SAM_APDU [12:09:13]CAPDU: 80 0D 03 02 [12:09:13]Write to MH i2c: E2 08 00 F3 A4 80 0D 03 02 00 00 00 00 12 [12:09:13]Write i2c OK [12:09:13]MH_I2C_Read... [12:09:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:09:13]Read from MH i2c: E2 [12:09:13]MH_I2C_Read... [12:09:13]Read from MH i2c: E2 0B 00 [12:09:13]MH_I2C_Read... [12:09:13]Read from MH i2c: E2 0B 00 F3 A4 00 2F E0 DA 98 33 41 D9 CD 90 00 AE [12:09:13]RAPDU: 2F E0 DA 98 33 41 D9 CD 90 00 [12:09:13]wFMCommunicate OK [12:09:13]SAM_PROTO_SignData done [12:09:13]FM_MakeSignedData done [12:09:13]CreateOFDProtocolMessage [12:09:13]wFMCommunicate request_size=4 [12:09:13]MH_SAM_APDU [12:09:13]CAPDU: 80 11 00 00 [12:09:13]Write to MH i2c: E2 08 00 F4 A4 80 11 00 00 00 00 00 00 12 [12:09:13]Write i2c OK [12:09:13]MH_I2C_Read... [12:09:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:09:13]Read from MH i2c: E2 [12:09:13]MH_I2C_Read... [12:09:13]Read from MH i2c: E2 17 00 [12:09:13]MH_I2C_Read... [12:09:13]Read from MH i2c: E2 17 00 F4 A4 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 65 [12:09:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [12:09:13]wFMCommunicate OK [12:09:13]CreateOFDProtocolMessage done [12:09:13]OFDSenderStorePacket 103656 [12:09:13]StoreOFDPacket docnum=103656 [12:09:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 20 2A 07 01 0E 24 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 48 58 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 30 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 40 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 74 CA 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 E8 94 01 00 35 04 06 00 FC 61 2C F1 4F 18 2F E0 DA 98 33 41 D9 CD [12:09:13]CheckFolder [12:09:13]dirname=/storage/ofd_packets [12:09:13]CheckFolder done [12:09:13]ProducePacketName [12:09:13]name=ofd_packets/00103656 [12:09:13]NVStorageSaveData ofd_packets/00103656 [12:09:13]File name is /storage/ofd_packets/00103656 [12:09:13]Write 301 bytes [12:09:13]NVStorageSaveData done [12:09:13]OFDSenderStorePacket done [12:09:13]KKMCreateOFDPacket done [12:09:13]NVStorageSaveData kkm_last_timestamp [12:09:13]File name is /storage/kkm_last_timestamp [12:09:13]Write 4 bytes [12:09:13]NVStorageSaveData done [12:09:13]ExternCall_PrintAddStr [12:09:13]wPrintStart [12:09:13]Write to MH i2c: 01 00 00 F5 A4 99 [12:09:13]Write i2c OK [12:09:13]MH_I2C_Read... [12:09:13]Read from MH i2c: 01 [12:09:13]MH_I2C_Read... [12:09:13]Read from MH i2c: 01 07 00 [12:09:13]MH_I2C_Read... [12:09:13]Read from MH i2c: 01 07 00 F5 A4 00 00 00 00 00 FF 0F AE [12:09:13]RasterBufferAndPrint [12:09:13]line Счет N : (1)672903 [12:09:13]line ИНН: 02508201610067 [12:09:13]line Контрольно-Кассовый Чек [12:09:13]line ПРОДАЖА [12:09:13]line ТРК (МРК, ГНК) : 32 [12:09:13]line Товар: 2710124130 [12:09:13]line Аи-92-К-5 [12:09:13]line 22.600 * 66.40 [12:09:13]line = 1500.64 [12:09:13]line НДС 12% НСП 1% [12:09:13]line > о реализуемом товаре [12:09:13]line ОКРУГЛЕНИЕ: -0.64 [12:09:13]line ИТОГО: 1500.00 [12:09:13]line Внесено: 1500.00 [12:09:13]line СДАЧА: 0.00 [12:09:13]line НСП 1% : 13.28 [12:09:13]line НДС 12% : 159.36 [12:09:13]line Наличными: 1500.00 [12:09:13]line Безнал.: 0.00 [12:09:13]line Место: АЗС № 120 "Партнер Нефть" [12:09:13]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [12:09:13]line СНО: Общий режим [12:09:13]line Чек 86 19.06.2024 12:09 [12:09:13]line Смена: 353 ФФД: 1.0 [12:09:13]line ЗНМ: 0300000164 [12:09:13]line РНМ: 0000000000092785 [12:09:13]line Версия ККМ: 001 [12:09:13]line ФМ: 0000000000875093 [12:09:13]line ФД: 103656 [12:09:13]line ФПД: 277494296039192 [12:09:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T120924&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103656&fm=277494296039192&tin=02508201610067®Number=0000000000092785&sum=150000 [12:09:13]OFD Sender: Processing packet 103656 [packets to send 17, broken 16] [12:09:13]ProducePacketName [12:09:13]name=ofd_packets/00103656 [12:09:13]OFD Sender: To server: pG, [12:09:13]CommunicateWithHost lk.salyk.kg:30040 [12:09:13]ConnectInit lk.salyk.kg [12:09:13]written 0, free lines is 4095 [12:09:13]Connected sock=10 [12:09: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 39 33 0F 01 00 00 20 2A 07 01 0E 24 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 48 58 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 30 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 40 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 74 CA 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 E8 94 01 00 35 04 06 00 FC 61 2C F1 4F 18 2F E0 DA 98 33 41 D9 CD [12:09: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 39 33 4F 00 00 00 B1 6A 47 00 C0 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 39 33 10 04 04 00 E8 94 01 00 F4 03 04 00 FD 70 72 66 B6 04 01 00 00 92 7C 53 0E 16 07 7C F5 [12:09:14]CommunicateWithHost err = 0 [12:09:14]CheckOFDResponse [12:09:14]1017 (14) - 77093643461234 [12:09:14]1041 (16) - 0000000000875093 [12:09:14]1040 (4) - 103656 [12:09:14]1012 (4) - 19.06.2024 05:47 [12:09:14]1206 (1) - 0 [12:09:14]OFD Sender: Remove packet 103656 [12:09:14]ProducePacketName [12:09:14]name=ofd_packets/00103656 [12:09:14]NVStorageDeleteData [12:09:14]Write to MH i2c: 01 00 00 20 A5 C5 [12:09:14]Write i2c OK [12:09:14]MH_I2C_Read... [12:09:14]Read from MH i2c: 01 [12:09:14]MH_I2C_Read... [12:09:14]Read from MH i2c: 01 07 00 [12:09:14]MH_I2C_Read... [12:09:14]Read from MH i2c: 01 07 00 20 A5 00 00 00 00 00 FF 0C D7 [12:09:14]RasterBufferAndPrint [12:09:14]line [12:09:14]line [12:09:14]line [12:09:14]line [12:09:14]line [12:09:14]written 0, free lines is 3332 [12:09:14]MH_Cut [12:09:14]Write to MH i2c: D1 01 00 27 A5 01 9E [12:09:14]Write i2c OK [12:09:14]MH_I2C_Read... [12:09:14]Read from MH i2c: D1 [12:09:14]MH_I2C_Read... [12:09:14]Read from MH i2c: D1 01 00 [12:09:14]MH_I2C_Read... [12:09:14]Read from MH i2c: D1 01 00 27 A5 00 9D [12:09:14]Write to MH i2c: 01 00 00 28 A5 CD [12:09:14]Write i2c OK [12:09:14]MH_I2C_Read... [12:09:14]OFD Sender: No OFD packet to send [12:09:15]*** Cut start [12:09:15]*** Partial cut [12:09:15]*** CUTSNS_PIN = 1 [12:09:15]*** CUTSNS_PIN = 0 [12:09:15]*** Brake cut motor [12:09:15]Read from MH i2c: 01 [12:09:15]MH_I2C_Read... [12:09:15]*** Stop cut motor [12:09:15]*** Cut end [12:09:15]Read from MH i2c: 01 07 00 [12:09:15]MH_I2C_Read... [12:09:15]Read from MH i2c: 01 07 00 28 A5 00 00 00 00 00 FF 0F E2 [12:09:15]process_action close_receipt done [12:09:15]requested_data is exist [12:09:15]produce_requested_data [12:09:15]requested_item fm.sn is exist - process it [12:09:15]wFMCommunicate request_size=4 [12:09:15]MH_SAM_APDU [12:09:15]CAPDU: 80 11 00 00 [12:09:15]Write to MH i2c: E2 08 00 29 A5 80 11 00 00 00 00 00 00 48 [12:09:15]Write i2c OK [12:09:15]MH_I2C_Read... [12:09:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:09:15]Read from MH i2c: E2 [12:09:15]MH_I2C_Read... [12:09:15]Read from MH i2c: E2 17 00 [12:09:15]MH_I2C_Read... [12:09:15]Read from MH i2c: E2 17 00 29 A5 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 9B [12:09:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [12:09:15]wFMCommunicate OK [12:09:15]requested_item fd.num is exist - process it [12:09:15]SAM_PROTO_GetFieldsCounters [12:09:15]wFMCommunicate request_size=4 [12:09:15]MH_SAM_APDU [12:09:15]CAPDU: 80 13 00 00 [12:09:15]Write to MH i2c: E2 08 00 2A A5 80 13 00 00 00 00 00 00 4B [12:09:15]Write i2c OK [12:09:15]MH_I2C_Read... [12:09:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:09:15]Read from MH i2c: E2 [12:09:15]MH_I2C_Read... [12:09:15]Read from MH i2c: E2 62 00 [12:09:15]MH_I2C_Read... [12:09:15]Read from MH i2c: E2 62 00 2A A5 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 E8 94 01 00 0E 04 04 00 61 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 53 [12:09: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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 E8 94 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 56 00 00 00 5E 04 04 00 56 00 00 00 57 04 04 00 57 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:09:15]wFMCommunicate OK [12:09:15]SAM_PROTO_GetFieldsCounters done [12:09:15]requested_item shift.num is exist - process it [12:09:15]requested_item shift.opened is exist - process it [12:09:15]req_shift_opened [12:09:15]FM_GetShiftState [12:09:15]SAM_PROTO_GetShiftState [12:09:15]wFMCommunicate request_size=4 [12:09:15]MH_SAM_APDU [12:09:15]CAPDU: 80 13 01 00 [12:09:15]Write to MH i2c: E2 08 00 2B A5 80 13 01 00 00 00 00 00 4D [12:09:15]Write i2c OK [12:09:15]MH_I2C_Read... [12:09:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:09:15]Read from MH i2c: E2 [12:09:15]MH_I2C_Read... [12:09:15]Read from MH i2c: E2 0E 00 [12:09:15]MH_I2C_Read... [12:09:15]Read from MH i2c: E2 0E 00 2B A5 00 09 00 01 04 26 72 66 00 00 00 00 90 00 5B [12:09:15]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [12:09:15]wFMCommunicate OK [12:09:15]SAM_PROTO_GetShiftState done [12:09:15]FM_GetShiftState done [12:09:15]req_shift_opened done [12:09:15]requested_item shift.open_date is exist - process it [12:09:15]req_shift_open_date [12:09:15]req_shift_open_date done [12:09:15]produce_requested_data done [12:09:15]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103656,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [12:09:15]process_action_free close_receipt [12:09:15]json_value_free [12:09:15]json_value_free done [12:09:15]process_json_proto returns [12:09:15]Send response to host [12:09:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103656,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [12:09:15]free response buf [12:09:15]execute_script done [12:09:15]execute_script returns [12:09:15]free content buf [12:09:15]Sock 7.Close socket [12:09:15]Sock 7.Thread stoped [12:09:19]OFD Sender: No OFD packet to send [12:09:24]OFD Sender: No OFD packet to send [12:09:29]OFD Sender: No OFD packet to send [12:09:34]OFD Sender: No OFD packet to send [12:09:39]OFD Sender: No OFD packet to send [12:09:44]OFD Sender: No OFD packet to send [12:09:49]OFD Sender: No OFD packet to send [12:09:54]OFD Sender: No OFD packet to send [12:09:59]OFD Sender: No OFD packet to send [12:10:04]OFD Sender: No OFD packet to send [12:10:09]OFD Sender: No OFD packet to send [12:10:14]OFD Sender: No OFD packet to send [12:10:19]OFD Sender: No OFD packet to send [12:10:24]OFD Sender: No OFD packet to send [12:10:29]OFD Sender: No OFD packet to send [12:10:34]OFD Sender: No OFD packet to send [12:10:39]OFD Sender: No OFD packet to send [12:10:44]OFD Sender: No OFD packet to send [12:10:49]OFD Sender: No OFD packet to send [12:10:54]OFD Sender: No OFD packet to send [12:10:58]accept exits with 9 [12:10:58]New connection [12:10:58]New thread 3067227492 created [12:10:58]Thread 3067084132 joined [12:10:58]Waiting for new connection... [12:10:58] Sock 9.Parse request [12:10:58]Sock 9.Check first char [12:10:58]Sock 9.First char is OK [12:10:58]request: POST /json_proto HTTP/1.0 [12:10:58]Method: POST [12:10:58]URL: /json_proto [12:10:58]Method is POST - this is cgi request [12:10:58]url: /json_proto [12:10:58]query_string will be loaded in cgi processing [12:10:58]execute_cgi json_proto POST (null) [12:10:58]execute_cgi path=json_proto method=POST [12:10:58]POST find Content-Length [12:10:58]Host: 172.17.38.133:8080 [12:10:58]Content-Length: 677 [12:10:58]Content-Type: application/json [12:10:58] [12:10:58]POST finish read [12:10:58]Found Content-Length = 677 [12:10:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672906", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 6.030, "sum" : 400.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:10:58]execute_script... [12:10:58]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672906", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 6.030, "sum" : 400.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:10:58]POST & json_proto [12:10:58]process_json_proto [12:10:58]json parsed OK: [12:10:58]protocol is kg_v1.0 [12:10:58]action value=close_receipt [12:10:58]process_action close_receipt [12:10:58]cmd_close_receipt [12:10:58]MH_GetDate [12:10:58]Write to MH i2c: F0 00 00 2C A5 C0 [12:10:58]Write i2c OK [12:10:58]MH_I2C_Read... [12:10:58]Read from MH i2c: F0 [12:10:58]MH_I2C_Read... [12:10:58]Read from MH i2c: F0 09 00 [12:10:58]MH_I2C_Read... [12:10:58]Read from MH i2c: F0 09 00 2C A5 00 DF CA 72 66 BD 8F 7C 64 76 [12:10:58]GetLastDocTimeStamp 1718798964 [12:10:58]current date 1718799071 [12:10:58]FM_GetShiftState [12:10:58]SAM_PROTO_GetShiftState [12:10:58]wFMCommunicate request_size=4 [12:10:58]MH_SAM_APDU [12:10:58]CAPDU: 80 13 01 00 [12:10:58]Write to MH i2c: E2 08 00 2D A5 80 13 01 00 00 00 00 00 4F [12:10:58]Write i2c OK [12:10:58]MH_I2C_Read... [12:10:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:10:58]Read from MH i2c: E2 [12:10:58]MH_I2C_Read... [12:10:58]Read from MH i2c: E2 0E 00 [12:10:58]MH_I2C_Read... [12:10:58]Read from MH i2c: E2 0E 00 2D A5 00 09 00 01 04 26 72 66 00 00 00 00 90 00 5D [12:10:58]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [12:10:58]wFMCommunicate OK [12:10:58]SAM_PROTO_GetShiftState done [12:10:58]FM_GetShiftState done [12:10:58]opened in 1718756868 [12:10:58]opened+sec_in_day 1718843268 [12:10:58]quantity*price = 40039 [12:10:58]sum+1 = 40040 [12:10:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.39 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.52 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 87 19.06.2024 12:11 Смена: 353 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103657 ФПД: 80568045220774 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T121111&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103657&fm=80568045220774&tin=02508201610067®Number=0000000000092785&sum=40000 [12:11:00]StoreToDocumentArchive [12:11:00]shift 353 fd 103657 [12:11:00]save to /storage/0353/doc_00103657 [12:11:00]save last doc name /storage/0353/doc_00103657 to /storage/kkm_last_doc_name [12:11:00]save OK [12:11:00]Clear old archive folders... [12:11:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:11:00]tlvbuf is 0145E200 [12:11:00]SAM_PROTO_ClearQueue [12:11:00]wFMCommunicate request_size=4 [12:11:00]MH_SAM_APDU [12:11:00]CAPDU: 80 09 00 00 [12:11:00]Write to MH i2c: E2 08 00 3A A5 80 09 00 00 00 00 00 00 51 [12:11:00]Write i2c OK [12:11:00]MH_I2C_Read... [12:11:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:11:00]Read from MH i2c: E2 [12:11:00]MH_I2C_Read... [12:11:00]Read from MH i2c: E2 03 00 [12:11:00]MH_I2C_Read... [12:11:00]Read from MH i2c: E2 03 00 3A A5 00 90 00 53 [12:11:00]RAPDU: 90 00 [12:11:00]wFMCommunicate OK [12:11:00]SAM_PROTO_ClearQueue done [12:11:00]KKMCreateOFDPacket [12:11:00]OFDProtocolAddRootSTLVToBuf [12:11:00]FM_MakeSignedData [12:11:00]FM_MakeSignedData [12:11:00]SAM_PROTO_SignData [12:11:00]wFMCommunicate request_size=4 [12:11:00]MH_SAM_APDU [12:11:00]CAPDU: 80 0D 01 02 [12:11:00]Write to MH i2c: E2 08 00 3B A5 80 0D 01 02 00 00 00 00 59 [12:11:00]Write i2c OK [12:11:00]MH_I2C_Read... [12:11:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:11:00]Read from MH i2c: E2 [12:11:00]MH_I2C_Read... [12:11:00]Read from MH i2c: E2 03 00 [12:11:00]MH_I2C_Read... [12:11:00]Read from MH i2c: E2 03 00 3B A5 00 90 00 54 [12:11:00]RAPDU: 90 00 [12:11:00]wFMCommunicate OK [12:11:00]wFMCommunicate request_size=255 [12:11:00]MH_SAM_APDU [12:11:00]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 DF CA 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 E9 94 01 00 35 04 06 00 49 [12:11:00]Write to MH i2c: E2 02 01 3C A5 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 DF CA 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 E9 94 01 00 35 04 06 00 49 00 00 E2 [12:11:00]Write i2c OK [12:11:00]MH_I2C_Read... [12:11:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:11:00]Read from MH i2c: E2 [12:11:00]MH_I2C_Read... [12:11:00]Read from MH i2c: E2 03 00 [12:11:00]MH_I2C_Read... [12:11:00]Read from MH i2c: E2 03 00 3C A5 00 90 00 55 [12:11:00]RAPDU: 90 00 [12:11:00]wFMCommunicate OK [12:11:00]wFMCommunicate request_size=10 [12:11:00]MH_SAM_APDU [12:11:00]CAPDU: 80 0D 02 02 05 46 B5 B7 33 A6 [12:11:00]Write to MH i2c: E2 0D 00 3D A5 80 0D 02 02 05 00 46 B5 B7 33 A6 00 00 F1 [12:11:00]Write i2c OK [12:11:00]MH_I2C_Read... [12:11:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:11:00]Read from MH i2c: E2 [12:11:00]MH_I2C_Read... [12:11:00]Read from MH i2c: E2 03 00 [12:11:00]MH_I2C_Read... [12:11:00]Read from MH i2c: E2 03 00 3D A5 00 90 00 56 [12:11:00]RAPDU: 90 00 [12:11:00]wFMCommunicate OK [12:11:00]wFMCommunicate request_size=4 [12:11:00]MH_SAM_APDU [12:11:00]CAPDU: 80 0D 03 02 [12:11:00]Write to MH i2c: E2 08 00 3E A5 80 0D 03 02 00 00 00 00 5E [12:11:00]Write i2c OK [12:11:00]MH_I2C_Read... [12:11:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:11:00]Read from MH i2c: E2 [12:11:00]MH_I2C_Read... [12:11:00]Read from MH i2c: E2 0B 00 [12:11:00]MH_I2C_Read... [12:11:00]Read from MH i2c: E2 0B 00 3E A5 00 7F 2B 1E 51 83 94 97 97 90 00 BD [12:11:00]RAPDU: 7F 2B 1E 51 83 94 97 97 90 00 [12:11:00]wFMCommunicate OK [12:11:00]SAM_PROTO_SignData done [12:11:00]FM_MakeSignedData done [12:11:00]CreateOFDProtocolMessage [12:11:00]wFMCommunicate request_size=4 [12:11:00]MH_SAM_APDU [12:11:00]CAPDU: 80 11 00 00 [12:11:00]Write to MH i2c: E2 08 00 3F A5 80 11 00 00 00 00 00 00 5E [12:11:00]Write i2c OK [12:11:00]MH_I2C_Read... [12:11:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:11:00]Read from MH i2c: E2 [12:11:00]MH_I2C_Read... [12:11:00]Read from MH i2c: E2 17 00 [12:11:00]MH_I2C_Read... [12:11:00]Read from MH i2c: E2 17 00 3F A5 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 B1 [12:11:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [12:11:00]wFMCommunicate OK [12:11:00]CreateOFDProtocolMessage done [12:11:00]OFDSenderStorePacket 103657 [12:11:00]StoreOFDPacket docnum=103657 [12:11:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 88 A5 07 01 A9 C3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 DF CA 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 E9 94 01 00 35 04 06 00 49 46 B5 B7 33 A6 7F 2B 1E 51 83 94 97 97 [12:11:00]CheckFolder [12:11:00]dirname=/storage/ofd_packets [12:11:00]CheckFolder done [12:11:00]ProducePacketName [12:11:00]name=ofd_packets/00103657 [12:11:00]NVStorageSaveData ofd_packets/00103657 [12:11:00]File name is /storage/ofd_packets/00103657 [12:11:00]Write 301 bytes [12:11:00]NVStorageSaveData done [12:11:00]OFDSenderStorePacket done [12:11:00]KKMCreateOFDPacket done [12:11:00]NVStorageSaveData kkm_last_timestamp [12:11:00]File name is /storage/kkm_last_timestamp [12:11:00]Write 4 bytes [12:11:00]NVStorageSaveData done [12:11:00]ExternCall_PrintAddStr [12:11:00]wPrintStart [12:11:00]Write to MH i2c: 01 00 00 40 A5 E5 [12:11:00]Write i2c OK [12:11:00]MH_I2C_Read... [12:11:00]Read from MH i2c: 01 [12:11:00]MH_I2C_Read... [12:11:00]Read from MH i2c: 01 07 00 [12:11:00]MH_I2C_Read... [12:11:00]Read from MH i2c: 01 07 00 40 A5 00 00 00 00 00 FF 0F FA [12:11:00]RasterBufferAndPrint [12:11:00]line Счет N : (1)672906 [12:11:00]line ИНН: 02508201610067 [12:11:00]line Контрольно-Кассовый Чек [12:11:00]line ПРОДАЖА [12:11:00]line ТРК (МРК, ГНК) : 32 [12:11:00]line Товар: 2710124130 [12:11:00]line Аи-92-К-5 [12:11:00]line 6.030 * 66.40 [12:11:00]line = 400.39 [12:11:00]line НДС 12% НСП 1% [12:11:00]line > о реализуемом товаре [12:11:00]line ОКРУГЛЕНИЕ: -0.39 [12:11:00]line ИТОГО: 400.00 [12:11:00]line Внесено: 400.00 [12:11:00]line СДАЧА: 0.00 [12:11:00]line НСП 1% : 3.54 [12:11:00]line НДС 12% : 42.52 [12:11:00]line Наличными: 400.00 [12:11:00]line Безнал.: 0.00 [12:11:00]line Место: АЗС № 120 "Партнер Нефть" [12:11:00]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [12:11:00]line СНО: Общий режим [12:11:00]line Чек 87 19.06.2024 12:11 [12:11:00]line Смена: 353 ФФД: 1.0 [12:11:00]line ЗНМ: 0300000164 [12:11:00]line РНМ: 0000000000092785 [12:11:00]line Версия ККМ: 001 [12:11:00]line ФМ: 0000000000875093 [12:11:00]line ФД: 103657 [12:11:00]line ФПД: 80568045220774 [12:11:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T121111&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103657&fm=80568045220774&tin=02508201610067®Number=0000000000092785&sum=40000 [12:11:00]written 0, free lines is 4095 [12:11:00]OFD Sender: Processing packet 103657 [packets to send 17, broken 16] [12:11:00]ProducePacketName [12:11:00]name=ofd_packets/00103657 [12:11:00]OFD Sender: To server: pG, [12:11:00]CommunicateWithHost lk.salyk.kg:30040 [12:11:00]ConnectInit lk.salyk.kg [12:11:01]Connected sock=10 [12:11:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 88 A5 07 01 A9 C3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 DF CA 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 E9 94 01 00 35 04 06 00 49 46 B5 B7 33 A6 7F 2B 1E 51 83 94 97 97 [12:11:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 9F B4 47 00 51 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 39 33 10 04 04 00 E9 94 01 00 F4 03 04 00 68 71 72 66 B6 04 01 00 00 67 C4 50 65 28 20 4E 8B [12:11:01]CommunicateWithHost err = 0 [12:11:01]CheckOFDResponse [12:11:01]1017 (14) - 77093643461234 [12:11:01]1041 (16) - 0000000000875093 [12:11:01]1040 (4) - 103657 [12:11:01]1012 (4) - 19.06.2024 05:49 [12:11:01]1206 (1) - 0 [12:11:01]OFD Sender: Remove packet 103657 [12:11:01]ProducePacketName [12:11:01]name=ofd_packets/00103657 [12:11:01]NVStorageDeleteData [12:11:01]Write to MH i2c: 01 00 00 6B A5 10 [12:11:01]Write i2c OK [12:11:01]MH_I2C_Read... [12:11:01]Read from MH i2c: 01 [12:11:01]MH_I2C_Read... [12:11:01]Read from MH i2c: 01 07 00 [12:11:01]MH_I2C_Read... [12:11:01]Read from MH i2c: 01 07 00 6B A5 00 00 00 00 00 EC 0C 0F [12:11:01]RasterBufferAndPrint [12:11:01]line [12:11:01]line [12:11:01]line [12:11:01]line [12:11:01]line [12:11:01]written 0, free lines is 3317 [12:11:01]MH_Cut [12:11:01]Write to MH i2c: D1 01 00 72 A5 01 E9 [12:11:01]Write i2c OK [12:11:01]MH_I2C_Read... [12:11:01]Read from MH i2c: D1 [12:11:01]MH_I2C_Read... [12:11:01]Read from MH i2c: D1 01 00 [12:11:01]MH_I2C_Read... [12:11:01]Read from MH i2c: D1 01 00 72 A5 00 E8 [12:11:01]Write to MH i2c: 01 00 00 73 A5 18 [12:11:01]Write i2c OK [12:11:01]MH_I2C_Read... [12:11:01]OFD Sender: No OFD packet to send [12:11:02]*** Cut start [12:11:02]*** Partial cut [12:11:02]*** CUTSNS_PIN = 1 [12:11:02]*** CUTSNS_PIN = 0 [12:11:02]*** Brake cut motor [12:11:02]Read from MH i2c: 01 [12:11:02]MH_I2C_Read... [12:11:02]*** Stop cut motor [12:11:02]*** Cut end [12:11:02]Read from MH i2c: 01 07 00 [12:11:02]MH_I2C_Read... [12:11:02]Read from MH i2c: 01 07 00 73 A5 00 00 00 00 00 FF 0F 2D [12:11:02]process_action close_receipt done [12:11:02]requested_data is exist [12:11:02]produce_requested_data [12:11:02]requested_item fm.sn is exist - process it [12:11:02]wFMCommunicate request_size=4 [12:11:02]MH_SAM_APDU [12:11:02]CAPDU: 80 11 00 00 [12:11:02]Write to MH i2c: E2 08 00 74 A5 80 11 00 00 00 00 00 00 93 [12:11:02]Write i2c OK [12:11:02]MH_I2C_Read... [12:11:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:11:02]Read from MH i2c: E2 [12:11:02]MH_I2C_Read... [12:11:02]Read from MH i2c: E2 17 00 [12:11:02]MH_I2C_Read... [12:11:02]Read from MH i2c: E2 17 00 74 A5 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 E6 [12:11:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [12:11:02]wFMCommunicate OK [12:11:02]requested_item fd.num is exist - process it [12:11:02]SAM_PROTO_GetFieldsCounters [12:11:02]wFMCommunicate request_size=4 [12:11:02]MH_SAM_APDU [12:11:02]CAPDU: 80 13 00 00 [12:11:02]Write to MH i2c: E2 08 00 75 A5 80 13 00 00 00 00 00 00 96 [12:11:02]Write i2c OK [12:11:02]MH_I2C_Read... [12:11:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:11:02]Read from MH i2c: E2 [12:11:02]MH_I2C_Read... [12:11:02]Read from MH i2c: E2 62 00 [12:11:02]MH_I2C_Read... [12:11:02]Read from MH i2c: E2 62 00 75 A5 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 E9 94 01 00 0E 04 04 00 61 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 A2 [12:11:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 E9 94 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 57 00 00 00 5E 04 04 00 57 00 00 00 57 04 04 00 58 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:11:02]wFMCommunicate OK [12:11:02]SAM_PROTO_GetFieldsCounters done [12:11:02]requested_item shift.num is exist - process it [12:11:02]requested_item shift.opened is exist - process it [12:11:02]req_shift_opened [12:11:02]FM_GetShiftState [12:11:02]SAM_PROTO_GetShiftState [12:11:02]wFMCommunicate request_size=4 [12:11:02]MH_SAM_APDU [12:11:02]CAPDU: 80 13 01 00 [12:11:02]Write to MH i2c: E2 08 00 76 A5 80 13 01 00 00 00 00 00 98 [12:11:02]Write i2c OK [12:11:02]MH_I2C_Read... [12:11:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:11:02]Read from MH i2c: E2 [12:11:02]MH_I2C_Read... [12:11:02]Read from MH i2c: E2 0E 00 [12:11:02]MH_I2C_Read... [12:11:02]Read from MH i2c: E2 0E 00 76 A5 00 09 00 01 04 26 72 66 00 00 00 00 90 00 A6 [12:11:02]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [12:11:02]wFMCommunicate OK [12:11:02]SAM_PROTO_GetShiftState done [12:11:02]FM_GetShiftState done [12:11:02]req_shift_opened done [12:11:02]requested_item shift.open_date is exist - process it [12:11:02]req_shift_open_date [12:11:02]req_shift_open_date done [12:11:02]produce_requested_data done [12:11:02]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103657,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [12:11:02]process_action_free close_receipt [12:11:02]json_value_free [12:11:02]json_value_free done [12:11:02]process_json_proto returns [12:11:02]Send response to host [12:11:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103657,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [12:11:02]free response buf [12:11:02]execute_script done [12:11:02]execute_script returns [12:11:02]free content buf [12:11:02]Sock 9.Close socket [12:11:02]Sock 9.Thread stoped [12:11:06]OFD Sender: No OFD packet to send [12:11:11]OFD Sender: No OFD packet to send [12:11:16]OFD Sender: No OFD packet to send [12:11:21]OFD Sender: No OFD packet to send [12:11:26]OFD Sender: No OFD packet to send [12:11:31]OFD Sender: No OFD packet to send [12:11:36]OFD Sender: No OFD packet to send [12:11:41]OFD Sender: No OFD packet to send [12:11:46]OFD Sender: No OFD packet to send [12:11:51]OFD Sender: No OFD packet to send [12:11:56]OFD Sender: No OFD packet to send [12:12:01]OFD Sender: No OFD packet to send [12:12:06]OFD Sender: No OFD packet to send [12:12:11]OFD Sender: No OFD packet to send [12:12:13]accept exits with 7 [12:12:13]New connection [12:12:13]New thread 3067084132 created [12:12:13]Thread 3067227492 joined [12:12:13]Waiting for new connection... [12:12:13] Sock 7.Parse request [12:12:13]Sock 7.Check first char [12:12:13]Sock 7.First char is OK [12:12:13]request: POST /json_proto HTTP/1.0 [12:12:13]Method: POST [12:12:13]URL: /json_proto [12:12:13]Method is POST - this is cgi request [12:12:13]url: /json_proto [12:12:13]query_string will be loaded in cgi processing [12:12:13]execute_cgi json_proto POST (null) [12:12:13]execute_cgi path=json_proto method=POST [12:12:13]POST find Content-Length [12:12:13]Host: 172.17.38.133:8080 [12:12:13]Content-Length: 1206 [12:12:13]Content-Type: application/json [12:12:13] [12:12:13]POST finish read [12:12:13]Found Content-Length = 1206 [12:12:13]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 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. \u000A\u0421\u0447\u0435\u0442 N : (1)672907\u000A19.06.2024 11:49\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 42\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 15.000 x 66.40\u000A\u0418\u0422\u041E\u0413: 996.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\u000A81760\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:12:13]execute_script... [12:12:13]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 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. \u000A\u0421\u0447\u0435\u0442 N : (1)672907\u000A19.06.2024 11:49\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 42\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 15.000 x 66.40\u000A\u0418\u0422\u041E\u0413: 996.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\u000A81760\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:12:13]POST & json_proto [12:12:13]process_json_proto [12:12:13]json parsed OK: [12:12:13]protocol is kg_v1.0 [12:12:13]action value=print_text [12:12:13]process_action print_text [12:12:13]cmd_print_text [12:12:13]ExternCall_PrintAddStr [12:12:13]wPrintStart [12:12:13]Write to MH i2c: 01 00 00 77 A5 1C [12:12:13]Write i2c OK [12:12:13]MH_I2C_Read... [12:12:13]Read from MH i2c: 01 [12:12:13]MH_I2C_Read... [12:12:13]Read from MH i2c: 01 07 00 [12:12:13]MH_I2C_Read... [12:12:13]Read from MH i2c: 01 07 00 77 A5 00 00 00 00 00 FF 0F 31 [12:12:13]RasterBufferAndPrint [12:12:13]line *****ТОВАРНЫЙ ЧЕК***** [12:12:13]line АЗС 120 [12:12:13]line Партнер нефть [12:12:13]line 02508201610067 [12:12:13]line Кассир : Байбугуева Г. [12:12:13]line Счет N : (1)672907 [12:12:13]line 19.06.2024 11:49 [12:12:13]line ПРОДАЖА [12:12:13]line ТРК (МРК, ГНК): 42 [12:12:13]line Вид ГСМ : 2710124130 [12:12:13]line Аи-92-К-5 [12:12:13]line 15.000 x 66.40 [12:12:13]line ИТОГ: 996.00 [12:12:13]line Тип оплаты: Талоны: Топливная Карта [12:12:13]line 81760 [12:12:13]line ______________________ [12:12:13]line (подпись) [12:12:13]written 0, free lines is 4095 [12:12:13]Write to MH i2c: 01 00 00 8B A5 30 [12:12:13]Write i2c OK [12:12:13]MH_I2C_Read... [12:12:13]Read from MH i2c: 01 [12:12:13]MH_I2C_Read... [12:12:13]Read from MH i2c: 01 07 00 [12:12:13]MH_I2C_Read... [12:12:13]Read from MH i2c: 01 07 00 8B A5 00 00 00 00 00 12 0E 57 [12:12:13]RasterBufferAndPrint [12:12:13]line [12:12:13]line [12:12:13]line [12:12:13]line [12:12:13]line [12:12:13]written 0, free lines is 3604 [12:12:13]MH_Cut [12:12:13]Write to MH i2c: D1 01 00 92 A5 01 09 [12:12:13]Write i2c OK [12:12:13]MH_I2C_Read... [12:12:13]Read from MH i2c: D1 [12:12:13]MH_I2C_Read... [12:12:13]Read from MH i2c: D1 01 00 [12:12:13]MH_I2C_Read... [12:12:13]Read from MH i2c: D1 01 00 92 A5 00 08 [12:12:13]Write to MH i2c: 01 00 00 93 A5 38 [12:12:13]Write i2c OK [12:12:13]MH_I2C_Read... [12:12:14]*** Cut start [12:12:14]*** Partial cut [12:12:14]*** CUTSNS_PIN = 1 [12:12:14]*** CUTSNS_PIN = 0 [12:12:14]*** Brake cut motor [12:12:14]Read from MH i2c: 01 [12:12:14]MH_I2C_Read... [12:12:14]Read from MH i2c: 01 07 00 [12:12:14]MH_I2C_Read... [12:12:14]*** Stop cut motor [12:12:14]*** Cut end [12:12:14]Read from MH i2c: 01 07 00 93 A5 00 00 00 00 00 FF 0F 4D [12:12:14]process_action print_text done [12:12:14]requested_data is exist [12:12:14]produce_requested_data [12:12:14]requested_item fm.sn is exist - process it [12:12:14]wFMCommunicate request_size=4 [12:12:14]MH_SAM_APDU [12:12:14]CAPDU: 80 11 00 00 [12:12:14]Write to MH i2c: E2 08 00 94 A5 80 11 00 00 00 00 00 00 B3 [12:12:14]Write i2c OK [12:12:14]MH_I2C_Read... [12:12:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:12:15]Read from MH i2c: E2 [12:12:15]MH_I2C_Read... [12:12:15]Read from MH i2c: E2 17 00 [12:12:15]MH_I2C_Read... [12:12:15]Read from MH i2c: E2 17 00 94 A5 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 06 [12:12:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [12:12:15]wFMCommunicate OK [12:12:15]requested_item fd.num is exist - process it [12:12:15]SAM_PROTO_GetFieldsCounters [12:12:15]wFMCommunicate request_size=4 [12:12:15]MH_SAM_APDU [12:12:15]CAPDU: 80 13 00 00 [12:12:15]Write to MH i2c: E2 08 00 95 A5 80 13 00 00 00 00 00 00 B6 [12:12:15]Write i2c OK [12:12:15]MH_I2C_Read... [12:12:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:12:15]Read from MH i2c: E2 [12:12:15]MH_I2C_Read... [12:12:15]Read from MH i2c: E2 62 00 [12:12:15]MH_I2C_Read... [12:12:15]Read from MH i2c: E2 62 00 95 A5 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 E9 94 01 00 0E 04 04 00 61 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 C2 [12:12:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 E9 94 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 57 00 00 00 5E 04 04 00 57 00 00 00 57 04 04 00 58 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:12:15]wFMCommunicate OK [12:12:15]SAM_PROTO_GetFieldsCounters done [12:12:15]requested_item shift.num is exist - process it [12:12:15]requested_item shift.opened is exist - process it [12:12:15]req_shift_opened [12:12:15]FM_GetShiftState [12:12:15]SAM_PROTO_GetShiftState [12:12:15]wFMCommunicate request_size=4 [12:12:15]MH_SAM_APDU [12:12:15]CAPDU: 80 13 01 00 [12:12:15]Write to MH i2c: E2 08 00 96 A5 80 13 01 00 00 00 00 00 B8 [12:12:15]Write i2c OK [12:12:15]MH_I2C_Read... [12:12:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:12:15]Read from MH i2c: E2 [12:12:15]MH_I2C_Read... [12:12:15]Read from MH i2c: E2 0E 00 [12:12:15]MH_I2C_Read... [12:12:15]Read from MH i2c: E2 0E 00 96 A5 00 09 00 01 04 26 72 66 00 00 00 00 90 00 C6 [12:12:15]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [12:12:15]wFMCommunicate OK [12:12:15]SAM_PROTO_GetShiftState done [12:12:15]FM_GetShiftState done [12:12:15]req_shift_opened done [12:12:15]requested_item shift.open_date is exist - process it [12:12:15]req_shift_open_date [12:12:15]req_shift_open_date done [12:12:15]produce_requested_data done [12:12:15]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103657,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [12:12:15]process_action_free print_text [12:12:15]json_value_free [12:12:15]json_value_free done [12:12:15]process_json_proto returns [12:12:15]Send response to host [12:12:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103657,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [12:12:15]free response buf [12:12:15]execute_script done [12:12:15]execute_script returns [12:12:15]free content buf [12:12:15]Sock 7.Close socket [12:12:15]Sock 7.Thread stoped [12:12:16]OFD Sender: No OFD packet to send [12:12:21]OFD Sender: No OFD packet to send [12:12:26]OFD Sender: No OFD packet to send [12:12:31]OFD Sender: No OFD packet to send [12:12:36]OFD Sender: No OFD packet to send [12:12:41]OFD Sender: No OFD packet to send [12:12:46]OFD Sender: No OFD packet to send [12:12:51]OFD Sender: No OFD packet to send [12:12:56]OFD Sender: No OFD packet to send [12:13:01]OFD Sender: No OFD packet to send [12:13:06]OFD Sender: No OFD packet to send [12:13:11]OFD Sender: No OFD packet to send [12:13:16]OFD Sender: No OFD packet to send [12:13:21]OFD Sender: No OFD packet to send [12:13:26]OFD Sender: No OFD packet to send [12:13:31]accept exits with 9 [12:13:31]New connection [12:13:31]New thread 3067227492 created [12:13:31]Thread 3067084132 joined [12:13:31]Waiting for new connection... [12:13:31] Sock 9.Parse request [12:13:31]Sock 9.Check first char [12:13:31]Sock 9.First char is OK [12:13:31]request: POST /json_proto HTTP/1.0 [12:13:31]Method: POST [12:13:31]URL: /json_proto [12:13:31]Method is POST - this is cgi request [12:13:31]url: /json_proto [12:13:31]query_string will be loaded in cgi processing [12:13:31]execute_cgi json_proto POST (null) [12:13:31]execute_cgi path=json_proto method=POST [12:13:31]POST find Content-Length [12:13:31]Host: 172.17.38.133:8080 [12:13:31]Content-Length: 683 [12:13:31]Content-Type: application/json [12:13:31] [12:13:31]POST finish read [12:13:31]Found Content-Length = 683 [12:13:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672909", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 10.020, "sum" : 730.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 730.00, "total" : 730.00, "payments": [ { "type": 0, "sum" : 730.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:13:31]execute_script... [12:13: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)672909", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 10.020, "sum" : 730.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 730.00, "total" : 730.00, "payments": [ { "type": 0, "sum" : 730.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:13:31]POST & json_proto [12:13:31]process_json_proto [12:13:31]json parsed OK: [12:13:31]protocol is kg_v1.0 [12:13:31]action value=close_receipt [12:13:31]process_action close_receipt [12:13:31]cmd_close_receipt [12:13:31]MH_GetDate [12:13:31]Write to MH i2c: F0 00 00 97 A5 2B [12:13:31]Write i2c OK [12:13:31]MH_I2C_Read... [12:13:31]Read from MH i2c: F0 [12:13:31]MH_I2C_Read... [12:13:31]Read from MH i2c: F0 09 00 [12:13:31]MH_I2C_Read... [12:13:31]Read from MH i2c: F0 09 00 97 A5 00 78 CB 72 66 BD 8F 7C 64 7B [12:13:31]GetLastDocTimeStamp 1718799071 [12:13:31]current date 1718799224 [12:13:31]FM_GetShiftState [12:13:31]SAM_PROTO_GetShiftState [12:13:31]wFMCommunicate request_size=4 [12:13:31]MH_SAM_APDU [12:13:31]CAPDU: 80 13 01 00 [12:13:31]Write to MH i2c: E2 08 00 98 A5 80 13 01 00 00 00 00 00 BA [12:13:31]Write i2c OK [12:13:31]MH_I2C_Read... [12:13:31]OFD Sender: No OFD packet to send [12:13:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:13:32]Read from MH i2c: E2 [12:13:32]MH_I2C_Read... [12:13:32]Read from MH i2c: E2 0E 00 [12:13:32]MH_I2C_Read... [12:13:32]Read from MH i2c: E2 0E 00 98 A5 00 09 00 01 04 26 72 66 00 00 00 00 90 00 C8 [12:13:32]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [12:13:32]wFMCommunicate OK [12:13:32]SAM_PROTO_GetShiftState done [12:13:32]FM_GetShiftState done [12:13:32]opened in 1718756868 [12:13:32]opened+sec_in_day 1718843268 [12:13:32]quantity*price = 73045 [12:13:32]sum+1 = 73047 [12:13:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.46 ИТОГО: 730.00 Внесено: 730.00 СДАЧА: 0.00 НСП 1% : 6.46 НДС 12% : 77.57 Наличными: 730.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 88 19.06.2024 12:13 Смена: 353 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103658 ФПД: 196766741258224 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T121344&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103658&fm=196766741258224&tin=02508201610067®Number=0000000000092785&sum=73000 [12:13:33]StoreToDocumentArchive [12:13:33]shift 353 fd 103658 [12:13:33]save to /storage/0353/doc_00103658 [12:13:33]save last doc name /storage/0353/doc_00103658 to /storage/kkm_last_doc_name [12:13:33]save OK [12:13:33]Clear old archive folders... [12:13:33]ProcessDocumentItem done err = 0, tmpTLVsize=252 [12:13:33]tlvbuf is 015CF800 [12:13:33]SAM_PROTO_ClearQueue [12:13:33]wFMCommunicate request_size=4 [12:13:33]MH_SAM_APDU [12:13:33]CAPDU: 80 09 00 00 [12:13:33]Write to MH i2c: E2 08 00 A5 A5 80 09 00 00 00 00 00 00 BC [12:13:33]Write i2c OK [12:13:33]MH_I2C_Read... [12:13:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:13:33]Read from MH i2c: E2 [12:13:33]MH_I2C_Read... [12:13:33]Read from MH i2c: E2 03 00 [12:13:33]MH_I2C_Read... [12:13:33]Read from MH i2c: E2 03 00 A5 A5 00 90 00 BE [12:13:33]RAPDU: 90 00 [12:13:33]wFMCommunicate OK [12:13:33]SAM_PROTO_ClearQueue done [12:13:33]KKMCreateOFDPacket [12:13:33]OFDProtocolAddRootSTLVToBuf [12:13:33]FM_MakeSignedData [12:13:33]FM_MakeSignedData [12:13:33]SAM_PROTO_SignData [12:13:33]wFMCommunicate request_size=4 [12:13:33]MH_SAM_APDU [12:13:33]CAPDU: 80 0D 01 02 [12:13:33]Write to MH i2c: E2 08 00 A6 A5 80 0D 01 02 00 00 00 00 C4 [12:13:33]Write i2c OK [12:13:33]MH_I2C_Read... [12:13:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:13:33]Read from MH i2c: E2 [12:13:33]MH_I2C_Read... [12:13:33]Read from MH i2c: E2 03 00 [12:13:33]MH_I2C_Read... [12:13:33]Read from MH i2c: E2 03 00 A6 A5 00 90 00 BF [12:13:33]RAPDU: 90 00 [12:13:33]wFMCommunicate OK [12:13:33]wFMCommunicate request_size=255 [12:13:33]MH_SAM_APDU [12:13:33]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 24 27 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 56 1D 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 1D 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4D 1E 00 00 00 00 07 04 06 00 28 1D 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 78 CB 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 EA 94 01 00 35 04 06 00 [12:13:33]Write to MH i2c: E2 02 01 A7 A5 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 24 27 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 56 1D 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 1D 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4D 1E 00 00 00 00 07 04 06 00 28 1D 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 78 CB 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 EA 94 01 00 35 04 06 00 00 00 37 [12:13:33]Write i2c OK [12:13:33]MH_I2C_Read... [12:13:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:13:33]Read from MH i2c: E2 [12:13:33]MH_I2C_Read... [12:13:33]Read from MH i2c: E2 03 00 [12:13:33]MH_I2C_Read... [12:13:33]Read from MH i2c: E2 03 00 A7 A5 00 90 00 C0 [12:13:33]RAPDU: 90 00 [12:13:33]wFMCommunicate OK [12:13:33]wFMCommunicate request_size=11 [12:13:33]MH_SAM_APDU [12:13:33]CAPDU: 80 0D 02 02 06 B2 F5 53 B7 5F F0 [12:13:33]Write to MH i2c: E2 0E 00 A8 A5 80 0D 02 02 06 00 B2 F5 53 B7 5F F0 00 00 D3 [12:13:33]Write i2c OK [12:13:33]MH_I2C_Read... [12:13:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:13:33]Read from MH i2c: E2 [12:13:33]MH_I2C_Read... [12:13:33]Read from MH i2c: E2 03 00 [12:13:33]MH_I2C_Read... [12:13:33]Read from MH i2c: E2 03 00 A8 A5 00 90 00 C1 [12:13:33]RAPDU: 90 00 [12:13:33]wFMCommunicate OK [12:13:33]wFMCommunicate request_size=4 [12:13:33]MH_SAM_APDU [12:13:33]CAPDU: 80 0D 03 02 [12:13:33]Write to MH i2c: E2 08 00 A9 A5 80 0D 03 02 00 00 00 00 C9 [12:13:33]Write i2c OK [12:13:33]MH_I2C_Read... [12:13:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:13:33]Read from MH i2c: E2 [12:13:33]MH_I2C_Read... [12:13:33]Read from MH i2c: E2 0B 00 [12:13:33]MH_I2C_Read... [12:13:33]Read from MH i2c: E2 0B 00 A9 A5 00 16 84 69 78 6C 7D C5 31 90 00 24 [12:13:33]RAPDU: 16 84 69 78 6C 7D C5 31 90 00 [12:13:33]wFMCommunicate OK [12:13:33]SAM_PROTO_SignData done [12:13:33]FM_MakeSignedData done [12:13:33]CreateOFDProtocolMessage [12:13:33]wFMCommunicate request_size=4 [12:13:33]MH_SAM_APDU [12:13:33]CAPDU: 80 11 00 00 [12:13:33]Write to MH i2c: E2 08 00 AA A5 80 11 00 00 00 00 00 00 C9 [12:13:33]Write i2c OK [12:13:33]MH_I2C_Read... [12:13:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:13:33]Read from MH i2c: E2 [12:13:33]MH_I2C_Read... [12:13:33]Read from MH i2c: E2 17 00 [12:13:33]MH_I2C_Read... [12:13:33]Read from MH i2c: E2 17 00 AA A5 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 1C [12:13:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [12:13:33]wFMCommunicate OK [12:13:33]CreateOFDProtocolMessage done [12:13:33]OFDSenderStorePacket 103658 [12:13:33]StoreOFDPacket docnum=103658 [12:13:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 FC 79 08 01 B5 26 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 24 27 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 56 1D 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 1D 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4D 1E 00 00 00 00 07 04 06 00 28 1D 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 78 CB 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 EA 94 01 00 35 04 06 00 B2 F5 53 B7 5F F0 16 84 69 78 6C 7D C5 31 [12:13:33]CheckFolder [12:13:33]dirname=/storage/ofd_packets [12:13:33]CheckFolder done [12:13:33]ProducePacketName [12:13:33]name=ofd_packets/00103658 [12:13:33]NVStorageSaveData ofd_packets/00103658 [12:13:33]File name is /storage/ofd_packets/00103658 [12:13:33]Write 302 bytes [12:13:33]NVStorageSaveData done [12:13:33]OFDSenderStorePacket done [12:13:33]KKMCreateOFDPacket done [12:13:33]NVStorageSaveData kkm_last_timestamp [12:13:33]File name is /storage/kkm_last_timestamp [12:13:33]Write 4 bytes [12:13:33]NVStorageSaveData done [12:13:33]ExternCall_PrintAddStr [12:13:33]wPrintStart [12:13:33]Write to MH i2c: 01 00 00 AB A5 50 [12:13:33]Write i2c OK [12:13:33]MH_I2C_Read... [12:13:33]Read from MH i2c: 01 [12:13:33]MH_I2C_Read... [12:13:33]Read from MH i2c: 01 07 00 [12:13:33]MH_I2C_Read... [12:13:33]Read from MH i2c: 01 07 00 AB A5 00 00 00 00 00 FF 0F 65 [12:13:33]RasterBufferAndPrint [12:13:33]line Счет N : (1)672909 [12:13:33]line ИНН: 02508201610067 [12:13:33]line Контрольно-Кассовый Чек [12:13:33]line ПРОДАЖА [12:13:33]line ТРК (МРК, ГНК) : 21 [12:13:33]line Товар: 2710194210 [12:13:33]line ДТ(л)-К-5 [12:13:33]line 10.020 * 72.90 [12:13:33]line = 730.46 [12:13:33]line НДС 12% НСП 1% [12:13:33]line > о реализуемом товаре [12:13:33]line ОКРУГЛЕНИЕ: -0.46 [12:13:33]line ИТОГО: 730.00 [12:13:33]line Внесено: 730.00 [12:13:33]line СДАЧА: 0.00 [12:13:33]line НСП 1% : 6.46 [12:13:33]line НДС 12% : 77.57 [12:13:33]line Наличными: 730.00 [12:13:33]line Безнал.: 0.00 [12:13:33]line Место: АЗС № 120 "Партнер Нефть" [12:13:33]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [12:13:33]line СНО: Общий режим [12:13:33]line Чек 88 19.06.2024 12:13 [12:13:33]line Смена: 353 ФФД: 1.0 [12:13:33]line ЗНМ: 0300000164 [12:13:33]line РНМ: 0000000000092785 [12:13:33]line Версия ККМ: 001 [12:13:33]line ФМ: 0000000000875093 [12:13:33]line ФД: 103658 [12:13:33]line ФПД: 196766741258224 [12:13:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T121344&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103658&fm=196766741258224&tin=02508201610067®Number=0000000000092785&sum=73000 [12:13:34]OFD Sender: Processing packet 103658 [packets to send 17, broken 16] [12:13:34]ProducePacketName [12:13:34]name=ofd_packets/00103658 [12:13:34]OFD Sender: To server: pG, [12:13:34]CommunicateWithHost lk.salyk.kg:30040 [12:13:34]ConnectInit lk.salyk.kg [12:13:34]written 0, free lines is 4095 [12:13:34]Connected sock=10 [12:13: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 39 33 10 01 00 00 FC 79 08 01 B5 26 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 24 27 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 56 1D 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 1D 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4D 1E 00 00 00 00 07 04 06 00 28 1D 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 78 CB 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 EA 94 01 00 35 04 06 00 B2 F5 53 B7 5F F0 16 84 69 78 6C 7D C5 31 [12:13: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 39 33 4F 00 00 00 CD DA 47 00 11 97 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 EA 94 01 00 F4 03 04 00 01 72 72 66 B6 04 01 00 00 04 D1 F9 8A 53 FA FC B3 [12:13:34]CommunicateWithHost err = 0 [12:13:34]CheckOFDResponse [12:13:34]1017 (14) - 77093643461234 [12:13:34]1041 (16) - 0000000000875093 [12:13:34]1040 (4) - 103658 [12:13:34]1012 (4) - 19.06.2024 05:52 [12:13:34]1206 (1) - 0 [12:13:34]OFD Sender: Remove packet 103658 [12:13:34]ProducePacketName [12:13:34]name=ofd_packets/00103658 [12:13:34]NVStorageDeleteData [12:13:34]Write to MH i2c: 01 00 00 D6 A5 7B [12:13:34]Write i2c OK [12:13:34]MH_I2C_Read... [12:13:34]Read from MH i2c: 01 [12:13:34]MH_I2C_Read... [12:13:34]Read from MH i2c: 01 07 00 [12:13:34]MH_I2C_Read... [12:13:34]Read from MH i2c: 01 07 00 D6 A5 00 00 00 00 00 E7 0C 75 [12:13:34]RasterBufferAndPrint [12:13:34]line [12:13:34]line [12:13:34]line [12:13:34]line [12:13:34]line [12:13:34]written 0, free lines is 3312 [12:13:34]MH_Cut [12:13:34]Write to MH i2c: D1 01 00 DD A5 01 54 [12:13:34]Write i2c OK [12:13:34]MH_I2C_Read... [12:13:34]Read from MH i2c: D1 [12:13:34]MH_I2C_Read... [12:13:34]Read from MH i2c: D1 01 00 [12:13:34]MH_I2C_Read... [12:13:34]Read from MH i2c: D1 01 00 DD A5 00 53 [12:13:34]Write to MH i2c: 01 00 00 DE A5 83 [12:13:34]Write i2c OK [12:13:34]MH_I2C_Read... [12:13:34]OFD Sender: No OFD packet to send [12:13:35]*** Cut start [12:13:35]*** Partial cut [12:13:35]*** CUTSNS_PIN = 1 [12:13:35]*** CUTSNS_PIN = 0 [12:13:35]*** Brake cut motor [12:13:35]Read from MH i2c: 01 [12:13:35]MH_I2C_Read... [12:13:35]*** Stop cut motor [12:13:35]*** Cut end [12:13:35]Read from MH i2c: 01 07 00 [12:13:35]MH_I2C_Read... [12:13:35]Read from MH i2c: 01 07 00 DE A5 00 00 00 00 00 FF 0F 98 [12:13:35]process_action close_receipt done [12:13:35]requested_data is exist [12:13:35]produce_requested_data [12:13:35]requested_item fm.sn is exist - process it [12:13:35]wFMCommunicate request_size=4 [12:13:35]MH_SAM_APDU [12:13:35]CAPDU: 80 11 00 00 [12:13:35]Write to MH i2c: E2 08 00 DF A5 80 11 00 00 00 00 00 00 FE [12:13:35]Write i2c OK [12:13:35]MH_I2C_Read... [12:13:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:13:35]Read from MH i2c: E2 [12:13:35]MH_I2C_Read... [12:13:35]Read from MH i2c: E2 17 00 [12:13:35]MH_I2C_Read... [12:13:35]Read from MH i2c: E2 17 00 DF A5 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 51 [12:13:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [12:13:35]wFMCommunicate OK [12:13:35]requested_item fd.num is exist - process it [12:13:35]SAM_PROTO_GetFieldsCounters [12:13:35]wFMCommunicate request_size=4 [12:13:35]MH_SAM_APDU [12:13:35]CAPDU: 80 13 00 00 [12:13:35]Write to MH i2c: E2 08 00 E0 A5 80 13 00 00 00 00 00 00 01 [12:13:35]Write i2c OK [12:13:35]MH_I2C_Read... [12:13:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:13:36]Read from MH i2c: E2 [12:13:36]MH_I2C_Read... [12:13:36]Read from MH i2c: E2 62 00 [12:13:36]MH_I2C_Read... [12:13:36]Read from MH i2c: E2 62 00 E0 A5 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 EA 94 01 00 0E 04 04 00 61 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 11 [12:13: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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 EA 94 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 58 00 00 00 5E 04 04 00 58 00 00 00 57 04 04 00 59 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:13:36]wFMCommunicate OK [12:13:36]SAM_PROTO_GetFieldsCounters done [12:13:36]requested_item shift.num is exist - process it [12:13:36]requested_item shift.opened is exist - process it [12:13:36]req_shift_opened [12:13:36]FM_GetShiftState [12:13:36]SAM_PROTO_GetShiftState [12:13:36]wFMCommunicate request_size=4 [12:13:36]MH_SAM_APDU [12:13:36]CAPDU: 80 13 01 00 [12:13:36]Write to MH i2c: E2 08 00 E1 A5 80 13 01 00 00 00 00 00 03 [12:13:36]Write i2c OK [12:13:36]MH_I2C_Read... [12:13:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:13:36]Read from MH i2c: E2 [12:13:36]MH_I2C_Read... [12:13:36]Read from MH i2c: E2 0E 00 [12:13:36]MH_I2C_Read... [12:13:36]Read from MH i2c: E2 0E 00 E1 A5 00 09 00 01 04 26 72 66 00 00 00 00 90 00 11 [12:13:36]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [12:13:36]wFMCommunicate OK [12:13:36]SAM_PROTO_GetShiftState done [12:13:36]FM_GetShiftState done [12:13:36]req_shift_opened done [12:13:36]requested_item shift.open_date is exist - process it [12:13:36]req_shift_open_date [12:13:36]req_shift_open_date done [12:13:36]produce_requested_data done [12:13:36]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103658,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [12:13:36]process_action_free close_receipt [12:13:36]json_value_free [12:13:36]json_value_free done [12:13:36]process_json_proto returns [12:13:36]Send response to host [12:13:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103658,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [12:13:36]free response buf [12:13:36]execute_script done [12:13:36]execute_script returns [12:13:36]free content buf [12:13:36]Sock 9.Close socket [12:13:36]Sock 9.Thread stoped [12:13:37]accept exits with 7 [12:13:37]New connection [12:13:37]New thread 3067084132 created [12:13:37]Thread 3067227492 joined [12:13:37]Waiting for new connection... [12:13:37] Sock 7.Parse request [12:13:37]Sock 7.Check first char [12:13:37]Sock 7.First char is OK [12:13:37]request: POST /json_proto HTTP/1.0 [12:13:37]Method: POST [12:13:37]URL: /json_proto [12:13:37]Method is POST - this is cgi request [12:13:37]url: /json_proto [12:13:37]query_string will be loaded in cgi processing [12:13:37]execute_cgi json_proto POST (null) [12:13:37]execute_cgi path=json_proto method=POST [12:13:37]POST find Content-Length [12:13:37]Host: 172.17.38.133:8080 [12:13:37]Content-Length: 655 [12:13:37]Content-Type: application/json [12:13:37] [12:13:37]POST finish read [12:13:37]Found Content-Length = 655 [12:13:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184100", "tax_sys" : 0, "items" : [ { "code": "4600682557456", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FLash up energy \u044D\u043D \u0436/\u0431 0,5/0,45\u043B", "price" : 72.00, "quantity" : 1.000, "sum" : 72.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 72.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:13:37]execute_script... [12:13: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)184100", "tax_sys" : 0, "items" : [ { "code": "4600682557456", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FLash up energy \u044D\u043D \u0436/\u0431 0,5/0,45\u043B", "price" : 72.00, "quantity" : 1.000, "sum" : 72.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 72.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:13:37]POST & json_proto [12:13:37]process_json_proto [12:13:37]json parsed OK: [12:13:37]protocol is kg_v1.0 [12:13:37]action value=close_receipt [12:13:37]process_action close_receipt [12:13:37]cmd_close_receipt [12:13:37]MH_GetDate [12:13:37]Write to MH i2c: F0 00 00 E2 A5 76 [12:13:37]Write i2c OK [12:13:37]MH_I2C_Read... [12:13:37]Read from MH i2c: F0 [12:13:37]MH_I2C_Read... [12:13:37]Read from MH i2c: F0 09 00 [12:13:37]MH_I2C_Read... [12:13:37]Read from MH i2c: F0 09 00 E2 A5 00 7D CB 72 66 BD 8F 7C 64 CB [12:13:37]GetLastDocTimeStamp 1718799224 [12:13:37]current date 1718799229 [12:13:37]FM_GetShiftState [12:13:37]SAM_PROTO_GetShiftState [12:13:37]wFMCommunicate request_size=4 [12:13:37]MH_SAM_APDU [12:13:37]CAPDU: 80 13 01 00 [12:13:37]Write to MH i2c: E2 08 00 E3 A5 80 13 01 00 00 00 00 00 05 [12:13:37]Write i2c OK [12:13:37]MH_I2C_Read... [12:13:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:13:37]Read from MH i2c: E2 [12:13:37]MH_I2C_Read... [12:13:37]Read from MH i2c: E2 0E 00 [12:13:37]MH_I2C_Read... [12:13:37]Read from MH i2c: E2 0E 00 E3 A5 00 09 00 01 04 26 72 66 00 00 00 00 90 00 13 [12:13:37]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [12:13:37]wFMCommunicate OK [12:13:37]SAM_PROTO_GetShiftState done [12:13:37]FM_GetShiftState done [12:13:37]opened in 1718756868 [12:13:37]opened+sec_in_day 1718843268 [12:13:37]quantity*price = 7200 [12:13:37]sum+1 = 7201 [12:13:37]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 72.00 НСП 1% : 0.64 НДС 12% : 7.65 Наличными: 72.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 89 19.06.2024 12:13 Смена: 353 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103659 ФПД: 125312733585350 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T121349&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103659&fm=125312733585350&tin=02508201610067®Number=0000000000092785&sum=7200 0 [12:13:39]StoreToDocumentArchive [12:13:39]shift 353 fd 103659 [12:13:39]save to /storage/0353/doc_00103659 [12:13:39]save last doc name /storage/0353/doc_00103659 to /storage/kkm_last_doc_name [12:13:39]save OK [12:13:39]Clear old archive folders... [12:13:39]ProcessDocumentItem done err = 0, tmpTLVsize=294 [12:13:39]tlvbuf is 0139E360 [12:13:39]SAM_PROTO_ClearQueue [12:13:39]wFMCommunicate request_size=4 [12:13:39]MH_SAM_APDU [12:13:39]CAPDU: 80 09 00 00 [12:13:39]Write to MH i2c: E2 08 00 F0 A5 80 09 00 00 00 00 00 00 07 [12:13:39]Write i2c OK [12:13:39]MH_I2C_Read... [12:13:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:13:39]Read from MH i2c: E2 [12:13:39]MH_I2C_Read... [12:13:39]Read from MH i2c: E2 03 00 [12:13:39]MH_I2C_Read... [12:13:39]Read from MH i2c: E2 03 00 F0 A5 00 90 00 09 [12:13:39]RAPDU: 90 00 [12:13:39]wFMCommunicate OK [12:13:39]SAM_PROTO_ClearQueue done [12:13:39]KKMCreateOFDPacket [12:13:39]OFDProtocolAddRootSTLVToBuf [12:13:39]FM_MakeSignedData [12:13:39]FM_MakeSignedData [12:13:39]SAM_PROTO_SignData [12:13:39]wFMCommunicate request_size=4 [12:13:39]MH_SAM_APDU [12:13:39]CAPDU: 80 0D 01 02 [12:13:39]Write to MH i2c: E2 08 00 F1 A5 80 0D 01 02 00 00 00 00 0F [12:13:39]Write i2c OK [12:13:39]MH_I2C_Read... [12:13:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:13:39]Read from MH i2c: E2 [12:13:39]MH_I2C_Read... [12:13:39]Read from MH i2c: E2 03 00 [12:13:39]MH_I2C_Read... [12:13:39]Read from MH i2c: E2 03 00 F1 A5 00 90 00 0A [12:13:39]RAPDU: 90 00 [12:13:39]wFMCommunicate OK [12:13:39]wFMCommunicate request_size=255 [12:13:39]MH_SAM_APDU [12:13:39]CAPDU: 80 0D 02 02 FA 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 20 1C 00 00 00 00 13 04 06 00 20 1C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 1C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FD 02 00 00 00 00 07 04 06 00 20 1C 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 7D CB 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 [12:13:39]Write to MH i2c: E2 02 01 F2 A5 80 0D 02 02 FA 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 20 1C 00 00 00 00 13 04 06 00 20 1C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 1C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FD 02 00 00 00 00 07 04 06 00 20 1C 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 7D CB 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 00 00 D4 [12:13:39]Write i2c OK [12:13:39]MH_I2C_Read... [12:13:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:13:39]Read from MH i2c: E2 [12:13:39]MH_I2C_Read... [12:13:39]Read from MH i2c: E2 03 00 [12:13:39]MH_I2C_Read... [12:13:39]Read from MH i2c: E2 03 00 F2 A5 00 90 00 0B [12:13:39]RAPDU: 90 00 [12:13:39]wFMCommunicate OK [12:13:39]wFMCommunicate request_size=53 [12:13:39]MH_SAM_APDU [12:13:39]CAPDU: 80 0D 02 02 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 EB 94 01 00 35 04 06 00 71 F8 A4 F8 9F C6 [12:13:39]Write to MH i2c: E2 38 00 F3 A5 80 0D 02 02 30 00 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 EB 94 01 00 35 04 06 00 71 F8 A4 F8 9F C6 00 00 F7 [12:13:39]Write i2c OK [12:13:39]MH_I2C_Read... [12:13:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:13:39]Read from MH i2c: E2 [12:13:39]MH_I2C_Read... [12:13:39]Read from MH i2c: E2 03 00 [12:13:39]MH_I2C_Read... [12:13:39]Read from MH i2c: E2 03 00 F3 A5 00 90 00 0C [12:13:39]RAPDU: 90 00 [12:13:39]wFMCommunicate OK [12:13:39]wFMCommunicate request_size=4 [12:13:39]MH_SAM_APDU [12:13:39]CAPDU: 80 0D 03 02 [12:13:39]Write to MH i2c: E2 08 00 F4 A5 80 0D 03 02 00 00 00 00 14 [12:13:39]Write i2c OK [12:13:39]MH_I2C_Read... [12:13:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:13:39]Read from MH i2c: E2 [12:13:39]MH_I2C_Read... [12:13:39]Read from MH i2c: E2 0B 00 [12:13:39]MH_I2C_Read... [12:13:39]Read from MH i2c: E2 0B 00 F4 A5 00 77 C9 0B 9D CB 3F FF FE 90 00 04 [12:13:39]RAPDU: 77 C9 0B 9D CB 3F FF FE 90 00 [12:13:39]wFMCommunicate OK [12:13:39]SAM_PROTO_SignData done [12:13:39]FM_MakeSignedData done [12:13:39]CreateOFDProtocolMessage [12:13:39]wFMCommunicate request_size=4 [12:13:39]MH_SAM_APDU [12:13:39]CAPDU: 80 11 00 00 [12:13:39]Write to MH i2c: E2 08 00 F5 A5 80 11 00 00 00 00 00 00 14 [12:13:39]Write i2c OK [12:13:39]MH_I2C_Read... [12:13:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:13:39]Read from MH i2c: E2 [12:13:39]MH_I2C_Read... [12:13:39]Read from MH i2c: E2 17 00 [12:13:39]MH_I2C_Read... [12:13:39]Read from MH i2c: E2 17 00 F5 A5 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 67 [12:13:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [12:13:39]wFMCommunicate OK [12:13:39]CreateOFDProtocolMessage done [12:13:39]OFDSenderStorePacket 103659 [12:13:39]StoreOFDPacket docnum=103659 [12:13:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 3A 01 00 00 04 46 32 01 A8 99 5A 03 01 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 20 1C 00 00 00 00 13 04 06 00 20 1C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 1C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FD 02 00 00 00 00 07 04 06 00 20 1C 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 7D CB 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 EB 94 01 00 35 04 06 00 71 F8 A4 F8 9F C6 77 C9 0B 9D CB 3F FF FE [12:13:39]CheckFolder [12:13:39]dirname=/storage/ofd_packets [12:13:39]CheckFolder done [12:13:39]ProducePacketName [12:13:39]name=ofd_packets/00103659 [12:13:39]NVStorageSaveData ofd_packets/00103659 [12:13:39]File name is /storage/ofd_packets/00103659 [12:13:39]Write 344 bytes [12:13:39]NVStorageSaveData done [12:13:39]OFDSenderStorePacket done [12:13:39]KKMCreateOFDPacket done [12:13:39]NVStorageSaveData kkm_last_timestamp [12:13:39]File name is /storage/kkm_last_timestamp [12:13:39]Write 4 bytes [12:13:39]NVStorageSaveData done [12:13:39]ExternCall_PrintAddStr [12:13:39]wPrintStart [12:13:39]Write to MH i2c: 01 00 00 F6 A5 9B [12:13:39]Write i2c OK [12:13:39]MH_I2C_Read... [12:13:39]Read from MH i2c: 01 [12:13:39]MH_I2C_Read... [12:13:39]Read from MH i2c: 01 07 00 [12:13:39]MH_I2C_Read... [12:13:39]Read from MH i2c: 01 07 00 F6 A5 00 00 00 00 00 FF 0F B0 [12:13:39]RasterBufferAndPrint [12:13:39]line Счет N : (3)184100 [12:13:39]line ИНН: 02508201610067 [12:13:39]line Контрольно-Кассовый Чек [12:13:39]line ПРОДАЖА [12:13:39]line Товар: 4600682557456 [12:13:39]line Напиток FLash up energy эн ж/б 0,5/0,45л [12:13:39]line 1.000 * 72.00 [12:13:39]line = 72.00 [12:13:39]line НДС 12% НСП 1% [12:13:39]line > о реализуемом товаре [12:13:39]line ИТОГО: 72.00 [12:13:39]line НСП 1% : 0.64 [12:13:39]line НДС 12% : 7.65 [12:13:39]line Наличными: 72.00 [12:13:39]line Безнал.: 0.00 [12:13:39]line Место: АЗС № 120 "Партнер Нефть" [12:13:39]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [12:13:39]line СНО: Общий режим [12:13:39]line Чек 89 19.06.2024 12:13 [12:13:39]line Смена: 353 ФФД: 1.0 [12:13:39]line ЗНМ: 0300000164 [12:13:39]line РНМ: 0000000000092785 [12:13:39]line Версия ККМ: 001 [12:13:39]line ФМ: 0000000000875093 [12:13:39]line ФД: 103659 [12:13:39]line ФПД: 125312733585350 [12:13:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T121349&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103659&fm=125312733585350&tin=02508201610067®Number=0000000000092785&sum=7200 [12:13:39]line 0 [12:13:39]written 0, free lines is 4095 [12:13:39]OFD Sender: Processing packet 103659 [packets to send 17, broken 16] [12:13:39]ProducePacketName [12:13:39]name=ofd_packets/00103659 [12:13:39]OFD Sender: To server: pG, [12:13:39]CommunicateWithHost lk.salyk.kg:30040 [12:13:39]ConnectInit lk.salyk.kg [12:13:39]Connected sock=10 [12:13: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 39 33 3A 01 00 00 04 46 32 01 A8 99 5A 03 01 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 20 1C 00 00 00 00 13 04 06 00 20 1C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 1C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FD 02 00 00 00 00 07 04 06 00 20 1C 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 7D CB 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 EB 94 01 00 35 04 06 00 71 F8 A4 F8 9F C6 77 C9 0B 9D CB 3F FF FE [12:13:40]Write to MH i2c: 01 00 00 1F A6 C5 [12:13: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 39 33 4F 00 00 00 04 4C 47 00 D8 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 39 33 10 04 04 00 EB 94 01 00 F4 03 04 00 07 72 72 66 B6 04 01 00 00 6C D3 AB D7 56 6E 57 2E [12:13:40]CommunicateWithHost err = 0 [12:13:40]CheckOFDResponse [12:13:40]1017 (14) - 77093643461234 [12:13:40]1041 (16) - 0000000000875093 [12:13:40]1040 (4) - 103659 [12:13:40]1012 (4) - 19.06.2024 05:52 [12:13:40]1206 (1) - 0 [12:13:40]OFD Sender: Remove packet 103659 [12:13:40]ProducePacketName [12:13:40]name=ofd_packets/00103659 [12:13:40]NVStorageDeleteData [12:13:40]Write i2c OK [12:13:40]MH_I2C_Read... [12:13:40]Read from MH i2c: 01 [12:13:40]MH_I2C_Read... [12:13:40]Read from MH i2c: 01 07 00 [12:13:40]MH_I2C_Read... [12:13:40]Read from MH i2c: 01 07 00 1F A6 00 00 00 00 00 00 0D D9 [12:13:40]RasterBufferAndPrint [12:13:40]line [12:13:40]line [12:13:40]line [12:13:40]line [12:13:40]line [12:13:40]written 0, free lines is 3417 [12:13:40]MH_Cut [12:13:40]Write to MH i2c: D1 01 00 26 A6 01 9E [12:13:40]Write i2c OK [12:13:40]MH_I2C_Read... [12:13:40]Read from MH i2c: D1 [12:13:40]MH_I2C_Read... [12:13:40]Read from MH i2c: D1 01 00 [12:13:40]MH_I2C_Read... [12:13:40]Read from MH i2c: D1 01 00 26 A6 00 9D [12:13:40]Write to MH i2c: 01 00 00 27 A6 CD [12:13:40]Write i2c OK [12:13:40]MH_I2C_Read... [12:13:40]OFD Sender: No OFD packet to send [12:13:40]*** Cut start [12:13:40]*** Partial cut [12:13:40]*** CUTSNS_PIN = 1 [12:13:41]*** CUTSNS_PIN = 0 [12:13:41]*** Brake cut motor [12:13:41]Read from MH i2c: 01 [12:13:41]MH_I2C_Read... [12:13:41]*** Stop cut motor [12:13:41]Read from MH i2c: 01 07 00 [12:13:41]MH_I2C_Read... [12:13:41]*** Cut end [12:13:41]Read from MH i2c: 01 07 00 27 A6 00 00 00 00 00 FF 0F E2 [12:13:41]process_action close_receipt done [12:13:41]requested_data is exist [12:13:41]produce_requested_data [12:13:41]requested_item fm.sn is exist - process it [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 28 A6 80 11 00 00 00 00 00 00 48 [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 28 A6 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 9B [12:13:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [12:13:41]wFMCommunicate OK [12:13:41]requested_item fd.num is exist - process it [12:13:41]SAM_PROTO_GetFieldsCounters [12:13:41]wFMCommunicate request_size=4 [12:13:41]MH_SAM_APDU [12:13:41]CAPDU: 80 13 00 00 [12:13:41]Write to MH i2c: E2 08 00 29 A6 80 13 00 00 00 00 00 00 4B [12:13:41]Write i2c OK [12:13:41]MH_I2C_Read... [12:13:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:13:41]Read from MH i2c: E2 [12:13:41]MH_I2C_Read... [12:13:41]Read from MH i2c: E2 62 00 [12:13:41]MH_I2C_Read... [12:13:41]Read from MH i2c: E2 62 00 29 A6 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 EB 94 01 00 0E 04 04 00 61 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 5F [12:13: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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 EB 94 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 59 00 00 00 5E 04 04 00 59 00 00 00 57 04 04 00 5A 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:13:41]wFMCommunicate OK [12:13:41]SAM_PROTO_GetFieldsCounters done [12:13:41]requested_item shift.num is exist - process it [12:13:41]requested_item shift.opened is exist - process it [12:13:41]req_shift_opened [12:13:41]FM_GetShiftState [12:13:41]SAM_PROTO_GetShiftState [12:13:41]wFMCommunicate request_size=4 [12:13:41]MH_SAM_APDU [12:13:41]CAPDU: 80 13 01 00 [12:13:41]Write to MH i2c: E2 08 00 2A A6 80 13 01 00 00 00 00 00 4D [12:13:41]Write i2c OK [12:13:41]MH_I2C_Read... [12:13:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:13:41]Read from MH i2c: E2 [12:13:41]MH_I2C_Read... [12:13:41]Read from MH i2c: E2 0E 00 [12:13:41]MH_I2C_Read... [12:13:41]Read from MH i2c: E2 0E 00 2A A6 00 09 00 01 04 26 72 66 00 00 00 00 90 00 5B [12:13:41]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [12:13:41]wFMCommunicate OK [12:13:41]SAM_PROTO_GetShiftState done [12:13:41]FM_GetShiftState done [12:13:41]req_shift_opened done [12:13:41]requested_item shift.open_date is exist - process it [12:13:41]req_shift_open_date [12:13:41]req_shift_open_date done [12:13:41]produce_requested_data done [12:13:41]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103659,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [12:13:41]process_action_free close_receipt [12:13:41]json_value_free [12:13:41]json_value_free done [12:13:41]process_json_proto returns [12:13:41]Send response to host [12:13:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103659,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [12:13:41]free response buf [12:13:41]execute_script done [12:13:41]execute_script returns [12:13:41]free content buf [12:13:41]Sock 7.Close socket [12:13:41]Sock 7.Thread stoped [12:13:45]OFD Sender: No OFD packet to send [12:13:50]OFD Sender: No OFD packet to send [12:13:55]OFD Sender: No OFD packet to send [12:14:00]OFD Sender: No OFD packet to send [12:14:01]accept exits with 9 [12:14:01]New connection [12:14:01]New thread 3067227492 created [12:14:01]Thread 3067084132 joined [12:14:01]Waiting for new connection... [12:14:01] Sock 9.Parse request [12:14:01]Sock 9.Check first char [12:14:01]Sock 9.First char is OK [12:14:01]request: POST /json_proto HTTP/1.0 [12:14:01]Method: POST [12:14:01]URL: /json_proto [12:14:01]Method is POST - this is cgi request [12:14:01]url: /json_proto [12:14:01]query_string will be loaded in cgi processing [12:14:01]execute_cgi json_proto POST (null) [12:14:01]execute_cgi path=json_proto method=POST [12:14:01]POST find Content-Length [12:14:01]Host: 172.17.38.133:8080 [12:14:01]Content-Length: 1207 [12:14:01]Content-Type: application/json [12:14:01] [12:14:01]POST finish read [12:14:01]Found Content-Length = 1207 [12:14: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 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. \u000A\u0421\u0447\u0435\u0442 N : (1)672908\u000A19.06.2024 11:51\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 32\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 50.000 x 66.40\u000A\u0418\u0422\u041E\u0413: 3320.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\u000A03346\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:14:01]execute_script... [12:14: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 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. \u000A\u0421\u0447\u0435\u0442 N : (1)672908\u000A19.06.2024 11:51\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 32\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 50.000 x 66.40\u000A\u0418\u0422\u041E\u0413: 3320.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\u000A03346\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:14:01]POST & json_proto [12:14:01]process_json_proto [12:14:01]json parsed OK: [12:14:01]protocol is kg_v1.0 [12:14:01]action value=print_text [12:14:01]process_action print_text [12:14:01]cmd_print_text [12:14:01]ExternCall_PrintAddStr [12:14:01]wPrintStart [12:14:01]Write to MH i2c: 01 00 00 2B A6 D1 [12:14:01]Write i2c OK [12:14:01]MH_I2C_Read... [12:14:01]Read from MH i2c: 01 [12:14:01]MH_I2C_Read... [12:14:01]Read from MH i2c: 01 07 00 [12:14:01]MH_I2C_Read... [12:14:01]Read from MH i2c: 01 07 00 2B A6 00 00 00 00 00 FF 0F E6 [12:14:01]RasterBufferAndPrint [12:14:01]line *****ТОВАРНЫЙ ЧЕК***** [12:14:01]line АЗС 120 [12:14:01]line Партнер нефть [12:14:01]line 02508201610067 [12:14:01]line Кассир : Байбугуева Г. [12:14:01]line Счет N : (1)672908 [12:14:01]line 19.06.2024 11:51 [12:14:01]line ПРОДАЖА [12:14:01]line ТРК (МРК, ГНК): 32 [12:14:01]line Вид ГСМ : 2710124130 [12:14:01]line Аи-92-К-5 [12:14:01]line 50.000 x 66.40 [12:14:01]line ИТОГ: 3320.00 [12:14:01]line Тип оплаты: Талоны: Топливная Карта [12:14:01]line 03346 [12:14:01]line ______________________ [12:14:01]line (подпись) [12:14:01]written 0, free lines is 4095 [12:14:01]Write to MH i2c: 01 00 00 3F A6 E5 [12:14:01]Write i2c OK [12:14:01]MH_I2C_Read... [12:14:01]Read from MH i2c: 01 [12:14:01]MH_I2C_Read... [12:14:01]Read from MH i2c: 01 07 00 [12:14:01]MH_I2C_Read... [12:14:01]Read from MH i2c: 01 07 00 3F A6 00 00 00 00 00 13 0E 0D [12:14:01]RasterBufferAndPrint [12:14:01]line [12:14:01]line [12:14:01]line [12:14:01]line [12:14:01]line [12:14:01]written 0, free lines is 3605 [12:14:01]MH_Cut [12:14:01]Write to MH i2c: D1 01 00 46 A6 01 BE [12:14:01]Write i2c OK [12:14:01]MH_I2C_Read... [12:14:01]Read from MH i2c: D1 [12:14:01]MH_I2C_Read... [12:14:01]Read from MH i2c: D1 01 00 [12:14:01]MH_I2C_Read... [12:14:01]Read from MH i2c: D1 01 00 46 A6 00 BD [12:14:01]Write to MH i2c: 01 00 00 47 A6 ED [12:14:01]Write i2c OK [12:14:01]MH_I2C_Read... [12:14:02]*** Cut start [12:14:02]*** Partial cut [12:14:02]*** CUTSNS_PIN = 1 [12:14:02]*** CUTSNS_PIN = 0 [12:14:02]*** Brake cut motor [12:14:02]Read from MH i2c: 01 [12:14:02]MH_I2C_Read... [12:14:02]*** Stop cut motor [12:14:02]*** Cut end [12:14:02]Read from MH i2c: 01 07 00 [12:14:02]MH_I2C_Read... [12:14:02]Read from MH i2c: 01 07 00 47 A6 00 00 00 00 00 FF 0F 02 [12:14:02]process_action print_text done [12:14:02]requested_data is exist [12:14:02]produce_requested_data [12:14:02]requested_item fm.sn is exist - process it [12:14:02]wFMCommunicate request_size=4 [12:14:02]MH_SAM_APDU [12:14:02]CAPDU: 80 11 00 00 [12:14:02]Write to MH i2c: E2 08 00 48 A6 80 11 00 00 00 00 00 00 68 [12:14:02]Write i2c OK [12:14:02]MH_I2C_Read... [12:14:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:14:02]Read from MH i2c: E2 [12:14:02]MH_I2C_Read... [12:14:02]Read from MH i2c: E2 17 00 [12:14:02]MH_I2C_Read... [12:14:02]Read from MH i2c: E2 17 00 48 A6 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 BB [12:14:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [12:14:02]wFMCommunicate OK [12:14:02]requested_item fd.num is exist - process it [12:14:02]SAM_PROTO_GetFieldsCounters [12:14:02]wFMCommunicate request_size=4 [12:14:02]MH_SAM_APDU [12:14:02]CAPDU: 80 13 00 00 [12:14:02]Write to MH i2c: E2 08 00 49 A6 80 13 00 00 00 00 00 00 6B [12:14:02]Write i2c OK [12:14:02]MH_I2C_Read... [12:14:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:14:02]Read from MH i2c: E2 [12:14:02]MH_I2C_Read... [12:14:02]Read from MH i2c: E2 62 00 [12:14:02]MH_I2C_Read... [12:14:02]Read from MH i2c: E2 62 00 49 A6 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 EB 94 01 00 0E 04 04 00 61 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 7F [12:14:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 EB 94 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 59 00 00 00 5E 04 04 00 59 00 00 00 57 04 04 00 5A 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:14:02]wFMCommunicate OK [12:14:02]SAM_PROTO_GetFieldsCounters done [12:14:02]requested_item shift.num is exist - process it [12:14:02]requested_item shift.opened is exist - process it [12:14:02]req_shift_opened [12:14:02]FM_GetShiftState [12:14:02]SAM_PROTO_GetShiftState [12:14:02]wFMCommunicate request_size=4 [12:14:02]MH_SAM_APDU [12:14:02]CAPDU: 80 13 01 00 [12:14:02]Write to MH i2c: E2 08 00 4A A6 80 13 01 00 00 00 00 00 6D [12:14:02]Write i2c OK [12:14:02]MH_I2C_Read... [12:14:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:14:02]Read from MH i2c: E2 [12:14:02]MH_I2C_Read... [12:14:02]Read from MH i2c: E2 0E 00 [12:14:02]MH_I2C_Read... [12:14:02]Read from MH i2c: E2 0E 00 4A A6 00 09 00 01 04 26 72 66 00 00 00 00 90 00 7B [12:14:02]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [12:14:02]wFMCommunicate OK [12:14:02]SAM_PROTO_GetShiftState done [12:14:02]FM_GetShiftState done [12:14:02]req_shift_opened done [12:14:02]requested_item shift.open_date is exist - process it [12:14:02]req_shift_open_date [12:14:02]req_shift_open_date done [12:14:02]produce_requested_data done [12:14:02]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103659,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [12:14:02]process_action_free print_text [12:14:02]json_value_free [12:14:02]json_value_free done [12:14:02]process_json_proto returns [12:14:02]Send response to host [12:14:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103659,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [12:14:02]free response buf [12:14:02]execute_script done [12:14:02]execute_script returns [12:14:02]free content buf [12:14:02]Sock 9.Close socket [12:14:02]Sock 9.Thread stoped [12:14:05]OFD Sender: No OFD packet to send [12:14:10]OFD Sender: No OFD packet to send [12:14:15]OFD Sender: No OFD packet to send [12:14:20]OFD Sender: No OFD packet to send [12:14:25]OFD Sender: No OFD packet to send [12:14:30]OFD Sender: No OFD packet to send [12:14:35]OFD Sender: No OFD packet to send [12:14:40]OFD Sender: No OFD packet to send [12:14:45]OFD Sender: No OFD packet to send [12:14:50]OFD Sender: No OFD packet to send [12:14:55]OFD Sender: No OFD packet to send [12:15:00]OFD Sender: No OFD packet to send [12:15:05]OFD Sender: No OFD packet to send [12:15:10]OFD Sender: No OFD packet to send [12:15:15]OFD Sender: No OFD packet to send [12:15:20]OFD Sender: No OFD packet to send [12:15:25]OFD Sender: No OFD packet to send [12:15:30]OFD Sender: No OFD packet to send [12:15:35]OFD Sender: No OFD packet to send [12:15:40]OFD Sender: No OFD packet to send [12:15:45]OFD Sender: No OFD packet to send [12:15:50]OFD Sender: No OFD packet to send [12:15:55]OFD Sender: No OFD packet to send [12:16:00]OFD Sender: No OFD packet to send [12:16:05]OFD Sender: No OFD packet to send [12:16:10]OFD Sender: No OFD packet to send [12:16:15]OFD Sender: No OFD packet to send [12:16:20]OFD Sender: No OFD packet to send [12:16:25]OFD Sender: No OFD packet to send [12:16:30]OFD Sender: No OFD packet to send [12:16:32]accept exits with 7 [12:16:32]New connection [12:16:32]New thread 3067084132 created [12:16:32]Thread 3067227492 joined [12:16:32]Waiting for new connection... [12:16:32] Sock 7.Parse request [12:16:32]Sock 7.Check first char [12:16:32]Sock 7.First char is OK [12:16:32]request: POST /json_proto HTTP/1.0 [12:16:32]Method: POST [12:16:32]URL: /json_proto [12:16:32]Method is POST - this is cgi request [12:16:32]url: /json_proto [12:16:32]query_string will be loaded in cgi processing [12:16:32]execute_cgi json_proto POST (null) [12:16:32]execute_cgi path=json_proto method=POST [12:16:32]POST find Content-Length [12:16:32]Host: 172.17.38.133:8080 [12:16:32]Content-Length: 1196 [12:16:32]Content-Type: application/json [12:16:32] [12:16:32]POST finish read [12:16:32]Found Content-Length = 1196 [12:16:32]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 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. \u000A\u0421\u0447\u0435\u0442 N : (1)672911\u000A19.06.2024 11:54\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 32\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 10.000 x 66.40\u000A\u0418\u0422\u041E\u0413: 664.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A4104031\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:16:32]execute_script... [12:16:32]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 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. \u000A\u0421\u0447\u0435\u0442 N : (1)672911\u000A19.06.2024 11:54\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 32\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 10.000 x 66.40\u000A\u0418\u0422\u041E\u0413: 664.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A4104031\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:16:32]POST & json_proto [12:16:32]process_json_proto [12:16:32]json parsed OK: [12:16:32]protocol is kg_v1.0 [12:16:32]action value=print_text [12:16:32]process_action print_text [12:16:32]cmd_print_text [12:16:32]ExternCall_PrintAddStr [12:16:32]wPrintStart [12:16:32]Write to MH i2c: 01 00 00 4B A6 F1 [12:16:32]Write i2c OK [12:16:32]MH_I2C_Read... [12:16:32]Read from MH i2c: 01 [12:16:32]MH_I2C_Read... [12:16:32]Read from MH i2c: 01 07 00 [12:16:32]MH_I2C_Read... [12:16:32]Read from MH i2c: 01 07 00 4B A6 00 00 00 00 00 FF 0F 06 [12:16:32]RasterBufferAndPrint [12:16:32]line *****ТОВАРНЫЙ ЧЕК***** [12:16:32]line АЗС 120 [12:16:32]line Партнер нефть [12:16:32]line 02508201610067 [12:16:32]line Кассир : Байбугуева Г. [12:16:32]line Счет N : (1)672911 [12:16:32]line 19.06.2024 11:54 [12:16:32]line ПРОДАЖА [12:16:32]line ТРК (МРК, ГНК): 32 [12:16:32]line Вид ГСМ : 2710124130 [12:16:32]line Аи-92-К-5 [12:16:32]line 10.000 x 66.40 [12:16:32]line ИТОГ: 664.00 [12:16:32]line Тип оплаты: Талоны: Партнер нефть [12:16:32]line 4104031 [12:16:32]line ______________________ [12:16:32]line (подпись) [12:16:32]written 0, free lines is 4095 [12:16:32]Write to MH i2c: 01 00 00 5F A6 05 [12:16:32]Write i2c OK [12:16:32]MH_I2C_Read... [12:16:32]Read from MH i2c: 01 [12:16:32]MH_I2C_Read... [12:16:32]Read from MH i2c: 01 07 00 [12:16:32]MH_I2C_Read... [12:16:32]Read from MH i2c: 01 07 00 5F A6 00 00 00 00 00 12 0E 2C [12:16:32]RasterBufferAndPrint [12:16:32]line [12:16:32]line [12:16:32]line [12:16:32]line [12:16:32]line [12:16:32]written 0, free lines is 3604 [12:16:32]MH_Cut [12:16:32]Write to MH i2c: D1 01 00 66 A6 01 DE [12:16:32]Write i2c OK [12:16:32]MH_I2C_Read... [12:16:32]Read from MH i2c: D1 [12:16:32]MH_I2C_Read... [12:16:32]Read from MH i2c: D1 01 00 [12:16:32]MH_I2C_Read... [12:16:32]Read from MH i2c: D1 01 00 66 A6 00 DD [12:16:32]Write to MH i2c: 01 00 00 67 A6 0D [12:16:32]Write i2c OK [12:16:32]MH_I2C_Read... [12:16:33]*** Cut start [12:16:33]*** Partial cut [12:16:33]*** CUTSNS_PIN = 1 [12:16:33]*** CUTSNS_PIN = 0 [12:16:33]*** Brake cut motor [12:16:33]Read from MH i2c: 01 [12:16:33]MH_I2C_Read... [12:16:33]*** Stop cut motor [12:16:33]*** Cut end [12:16:33]Read from MH i2c: 01 07 00 [12:16:33]MH_I2C_Read... [12:16:33]Read from MH i2c: 01 07 00 67 A6 00 00 00 00 00 FF 0F 22 [12:16:33]process_action print_text done [12:16:33]requested_data is exist [12:16:33]produce_requested_data [12:16:33]requested_item fm.sn is exist - process it [12:16:33]wFMCommunicate request_size=4 [12:16:33]MH_SAM_APDU [12:16:33]CAPDU: 80 11 00 00 [12:16:33]Write to MH i2c: E2 08 00 68 A6 80 11 00 00 00 00 00 00 88 [12:16:33]Write i2c OK [12:16:33]MH_I2C_Read... [12:16:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:16:33]Read from MH i2c: E2 [12:16:33]MH_I2C_Read... [12:16:33]Read from MH i2c: E2 17 00 [12:16:33]MH_I2C_Read... [12:16:33]Read from MH i2c: E2 17 00 68 A6 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 DB [12:16:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [12:16:33]wFMCommunicate OK [12:16:33]requested_item fd.num is exist - process it [12:16:33]SAM_PROTO_GetFieldsCounters [12:16:33]wFMCommunicate request_size=4 [12:16:33]MH_SAM_APDU [12:16:33]CAPDU: 80 13 00 00 [12:16:33]Write to MH i2c: E2 08 00 69 A6 80 13 00 00 00 00 00 00 8B [12:16:33]Write i2c OK [12:16:33]MH_I2C_Read... [12:16:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:16:34]Read from MH i2c: E2 [12:16:34]MH_I2C_Read... [12:16:34]Read from MH i2c: E2 62 00 [12:16:34]MH_I2C_Read... [12:16:34]Read from MH i2c: E2 62 00 69 A6 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 EB 94 01 00 0E 04 04 00 61 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 9F [12:16:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 EB 94 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 59 00 00 00 5E 04 04 00 59 00 00 00 57 04 04 00 5A 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:16:34]wFMCommunicate OK [12:16:34]SAM_PROTO_GetFieldsCounters done [12:16:34]requested_item shift.num is exist - process it [12:16:34]requested_item shift.opened is exist - process it [12:16:34]req_shift_opened [12:16:34]FM_GetShiftState [12:16:34]SAM_PROTO_GetShiftState [12:16:34]wFMCommunicate request_size=4 [12:16:34]MH_SAM_APDU [12:16:34]CAPDU: 80 13 01 00 [12:16:34]Write to MH i2c: E2 08 00 6A A6 80 13 01 00 00 00 00 00 8D [12:16:34]Write i2c OK [12:16:34]MH_I2C_Read... [12:16:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:16:34]Read from MH i2c: E2 [12:16:34]MH_I2C_Read... [12:16:34]Read from MH i2c: E2 0E 00 [12:16:34]MH_I2C_Read... [12:16:34]Read from MH i2c: E2 0E 00 6A A6 00 09 00 01 04 26 72 66 00 00 00 00 90 00 9B [12:16:34]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [12:16:34]wFMCommunicate OK [12:16:34]SAM_PROTO_GetShiftState done [12:16:34]FM_GetShiftState done [12:16:34]req_shift_opened done [12:16:34]requested_item shift.open_date is exist - process it [12:16:34]req_shift_open_date [12:16:34]req_shift_open_date done [12:16:34]produce_requested_data done [12:16:34]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103659,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [12:16:34]process_action_free print_text [12:16:34]json_value_free [12:16:34]json_value_free done [12:16:34]process_json_proto returns [12:16:34]Send response to host [12:16:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103659,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [12:16:34]free response buf [12:16:34]execute_script done [12:16:34]execute_script returns [12:16:34]free content buf [12:16:34]Sock 7.Close socket [12:16:34]Sock 7.Thread stoped [12:16:36]OFD Sender: No OFD packet to send [12:16:41]OFD Sender: No OFD packet to send [12:16:46]OFD Sender: No OFD packet to send [12:16:51]OFD Sender: No OFD packet to send [12:16:56]OFD Sender: No OFD packet to send [12:17:01]OFD Sender: No OFD packet to send [12:17:06]OFD Sender: No OFD packet to send [12:17:11]OFD Sender: No OFD packet to send [12:17:16]OFD Sender: No OFD packet to send [12:17:21]OFD Sender: No OFD packet to send [12:17:26]OFD Sender: No OFD packet to send [12:17:31]OFD Sender: No OFD packet to send [12:17:36]OFD Sender: No OFD packet to send [12:17:41]OFD Sender: No OFD packet to send [12:17:46]OFD Sender: No OFD packet to send [12:17:51]OFD Sender: No OFD packet to send [12:17:56]OFD Sender: No OFD packet to send [12:18:01]OFD Sender: No OFD packet to send [12:18:06]OFD Sender: No OFD packet to send [12:18:11]OFD Sender: No OFD packet to send [12:18:16]OFD Sender: No OFD packet to send [12:18:21]OFD Sender: No OFD packet to send [12:18:23]accept exits with 9 [12:18:23]New connection [12:18:23]New thread 3067227492 created [12:18:23]Thread 3067084132 joined [12:18:23]Waiting for new connection... [12:18:23] Sock 9.Parse request [12:18:23]Sock 9.Check first char [12:18:23]Sock 9.First char is OK [12:18:23]request: POST /json_proto HTTP/1.0 [12:18:23]Method: POST [12:18:23]URL: /json_proto [12:18:23]Method is POST - this is cgi request [12:18:23]url: /json_proto [12:18:23]query_string will be loaded in cgi processing [12:18:23]execute_cgi json_proto POST (null) [12:18:23]execute_cgi path=json_proto method=POST [12:18:23]POST find Content-Length [12:18:23]Host: 172.17.38.133:8080 [12:18:23]Content-Length: 811 [12:18:23]Content-Type: application/json [12:18:23] [12:18:23]POST finish read [12:18:23]Found Content-Length = 811 [12:18:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672902", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 194.400, "sum" : 14171.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 14171.76 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:18:23]execute_script... [12:18:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672902", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 194.400, "sum" : 14171.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 14171.76 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:18:23]POST & json_proto [12:18:23]process_json_proto [12:18:23]json parsed OK: [12:18:23]protocol is kg_v1.0 [12:18:23]action value=close_receipt [12:18:23]process_action close_receipt [12:18:23]cmd_close_receipt [12:18:23]MH_GetDate [12:18:23]Write to MH i2c: F0 00 00 6B A6 00 [12:18:23]Write i2c OK [12:18:23]MH_I2C_Read... [12:18:23]Read from MH i2c: F0 [12:18:23]MH_I2C_Read... [12:18:23]Read from MH i2c: F0 09 00 [12:18:23]MH_I2C_Read... [12:18:23]Read from MH i2c: F0 09 00 6B A6 00 9B CC 72 66 BD 8F 7C 64 74 [12:18:23]GetLastDocTimeStamp 1718799229 [12:18:23]current date 1718799515 [12:18:23]FM_GetShiftState [12:18:23]SAM_PROTO_GetShiftState [12:18:23]wFMCommunicate request_size=4 [12:18:23]MH_SAM_APDU [12:18:23]CAPDU: 80 13 01 00 [12:18:23]Write to MH i2c: E2 08 00 6C A6 80 13 01 00 00 00 00 00 8F [12:18:23]Write i2c OK [12:18:23]MH_I2C_Read... [12:18:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:18:23]Read from MH i2c: E2 [12:18:23]MH_I2C_Read... [12:18:23]Read from MH i2c: E2 0E 00 [12:18:23]MH_I2C_Read... [12:18:23]Read from MH i2c: E2 0E 00 6C A6 00 09 00 01 04 26 72 66 00 00 00 00 90 00 9D [12:18:23]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [12:18:23]wFMCommunicate OK [12:18:23]SAM_PROTO_GetShiftState done [12:18:23]FM_GetShiftState done [12:18:23]opened in 1718756868 [12:18:23]opened+sec_in_day 1718843268 [12:18:23]quantity*price = 1417176 [12:18:23]sum+1 = 1417177 [12:18:23]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 14171.76 НСП 1% : 125.41 НДС 12% : 1504.97 Наличными: 0.00 Безнал.: 14171.76 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 90 19.06.2024 12:18 Смена: 353 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000875093 ФД: 103660 ФПД: 168002239486722 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T121835&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103660&fm=168002239486722&tin=02508201610067®Number=0000000000092785&sum=1417176 [12:18:24]StoreToDocumentArchive [12:18:24]shift 353 fd 103660 [12:18:24]save to /storage/0353/doc_00103660 [12:18:24]save last doc name /storage/0353/doc_00103660 to /storage/kkm_last_doc_name [12:18:24]save OK [12:18:24]Clear old archive folders... [12:18:24]ProcessDocumentItem done err = 0, tmpTLVsize=252 [12:18:24]tlvbuf is 01576070 [12:18:24]SAM_PROTO_ClearQueue [12:18:24]wFMCommunicate request_size=4 [12:18:24]MH_SAM_APDU [12:18:24]CAPDU: 80 09 00 00 [12:18:24]Write to MH i2c: E2 08 00 79 A6 80 09 00 00 00 00 00 00 91 [12:18:24]Write i2c OK [12:18:24]MH_I2C_Read... [12:18:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:18:24]Read from MH i2c: E2 [12:18:24]MH_I2C_Read... [12:18:24]Read from MH i2c: E2 03 00 [12:18:24]MH_I2C_Read... [12:18:24]Read from MH i2c: E2 03 00 79 A6 00 90 00 93 [12:18:24]RAPDU: 90 00 [12:18:24]wFMCommunicate OK [12:18:24]SAM_PROTO_ClearQueue done [12:18:24]KKMCreateOFDPacket [12:18:24]OFDProtocolAddRootSTLVToBuf [12:18:24]FM_MakeSignedData [12:18:24]FM_MakeSignedData [12:18:24]SAM_PROTO_SignData [12:18:24]wFMCommunicate request_size=4 [12:18:24]MH_SAM_APDU [12:18:24]CAPDU: 80 0D 01 02 [12:18:24]Write to MH i2c: E2 08 00 7A A6 80 0D 01 02 00 00 00 00 99 [12:18:24]Write i2c OK [12:18:24]MH_I2C_Read... [12:18:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:18:24]Read from MH i2c: E2 [12:18:24]MH_I2C_Read... [12:18:24]Read from MH i2c: E2 03 00 [12:18:24]MH_I2C_Read... [12:18:24]Read from MH i2c: E2 03 00 7A A6 00 90 00 94 [12:18:24]RAPDU: 90 00 [12:18:24]wFMCommunicate OK [12:18:24]wFMCommunicate request_size=255 [12:18:24]MH_SAM_APDU [12:18:24]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 60 F7 02 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 D8 9F 15 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 9F 15 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FD 30 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E1 4B 02 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D8 9F 15 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 9B CC 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 EC 94 01 00 35 04 06 00 [12:18:24]Write to MH i2c: E2 02 01 7B A6 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 60 F7 02 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 D8 9F 15 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 9F 15 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FD 30 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E1 4B 02 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D8 9F 15 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 9B CC 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 EC 94 01 00 35 04 06 00 00 00 4E [12:18:24]Write i2c OK [12:18:24]MH_I2C_Read... [12:18:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:18:24]Read from MH i2c: E2 [12:18:24]MH_I2C_Read... [12:18:24]Read from MH i2c: E2 03 00 [12:18:24]MH_I2C_Read... [12:18:24]Read from MH i2c: E2 03 00 7B A6 00 90 00 95 [12:18:24]RAPDU: 90 00 [12:18:24]wFMCommunicate OK [12:18:24]wFMCommunicate request_size=11 [12:18:24]MH_SAM_APDU [12:18:24]CAPDU: 80 0D 02 02 06 98 CC 11 CE 5B 02 [12:18:24]Write to MH i2c: E2 0E 00 7C A6 80 0D 02 02 06 00 98 CC 11 CE 5B 02 00 00 48 [12:18:24]Write i2c OK [12:18:24]MH_I2C_Read... [12:18:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:18:25]Read from MH i2c: E2 [12:18:25]MH_I2C_Read... [12:18:25]Read from MH i2c: E2 03 00 [12:18:25]MH_I2C_Read... [12:18:25]Read from MH i2c: E2 03 00 7C A6 00 90 00 96 [12:18:25]RAPDU: 90 00 [12:18:25]wFMCommunicate OK [12:18:25]wFMCommunicate request_size=4 [12:18:25]MH_SAM_APDU [12:18:25]CAPDU: 80 0D 03 02 [12:18:25]Write to MH i2c: E2 08 00 7D A6 80 0D 03 02 00 00 00 00 9E [12:18:25]Write i2c OK [12:18:25]MH_I2C_Read... [12:18:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:18:25]Read from MH i2c: E2 [12:18:25]MH_I2C_Read... [12:18:25]Read from MH i2c: E2 0B 00 [12:18:25]MH_I2C_Read... [12:18:25]Read from MH i2c: E2 0B 00 7D A6 00 36 57 21 8B B0 88 6B A2 90 00 1D [12:18:25]RAPDU: 36 57 21 8B B0 88 6B A2 90 00 [12:18:25]wFMCommunicate OK [12:18:25]SAM_PROTO_SignData done [12:18:25]FM_MakeSignedData done [12:18:25]CreateOFDProtocolMessage [12:18:25]wFMCommunicate request_size=4 [12:18:25]MH_SAM_APDU [12:18:25]CAPDU: 80 11 00 00 [12:18:25]Write to MH i2c: E2 08 00 7E A6 80 11 00 00 00 00 00 00 9E [12:18:25]Write i2c OK [12:18:25]MH_I2C_Read... [12:18:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:18:25]Read from MH i2c: E2 [12:18:25]MH_I2C_Read... [12:18:25]Read from MH i2c: E2 17 00 [12:18:25]MH_I2C_Read... [12:18:25]Read from MH i2c: E2 17 00 7E A6 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 F1 [12:18:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [12:18:25]wFMCommunicate OK [12:18:25]CreateOFDProtocolMessage done [12:18:25]OFDSenderStorePacket 103660 [12:18:25]StoreOFDPacket docnum=103660 [12:18:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 1A EE 08 01 9E 41 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 60 F7 02 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 D8 9F 15 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 9F 15 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FD 30 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E1 4B 02 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D8 9F 15 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 9B CC 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 EC 94 01 00 35 04 06 00 98 CC 11 CE 5B 02 36 57 21 8B B0 88 6B A2 [12:18:25]CheckFolder [12:18:25]dirname=/storage/ofd_packets [12:18:25]CheckFolder done [12:18:25]ProducePacketName [12:18:25]name=ofd_packets/00103660 [12:18:25]NVStorageSaveData ofd_packets/00103660 [12:18:25]File name is /storage/ofd_packets/00103660 [12:18:25]Write 302 bytes [12:18:25]NVStorageSaveData done [12:18:25]OFDSenderStorePacket done [12:18:25]KKMCreateOFDPacket done [12:18:25]NVStorageSaveData kkm_last_timestamp [12:18:25]File name is /storage/kkm_last_timestamp [12:18:25]Write 4 bytes [12:18:25]NVStorageSaveData done [12:18:25]ExternCall_PrintAddStr [12:18:25]wPrintStart [12:18:25]Write to MH i2c: 01 00 00 7F A6 25 [12:18:25]Write i2c OK [12:18:25]MH_I2C_Read... [12:18:25]Read from MH i2c: 01 [12:18:25]MH_I2C_Read... [12:18:25]Read from MH i2c: 01 07 00 [12:18:25]MH_I2C_Read... [12:18:25]Read from MH i2c: 01 07 00 7F A6 00 00 00 00 00 FF 0F 3A [12:18:25]RasterBufferAndPrint [12:18:25]line Счет N : (1)672902 [12:18:25]line ИНН: 02508201610067 [12:18:25]line Контрольно-Кассовый Чек [12:18:25]line ПРОДАЖА [12:18:25]line ТРК (МРК, ГНК) : 11 [12:18:25]line Товар: 2710194210 [12:18:25]line ДТ(л)-К-5 [12:18:25]line 194.400 * 72.90 [12:18:25]line = 14171.76 [12:18:25]line НДС 12% НСП 1% [12:18:25]line > о реализуемом товаре [12:18:25]line ИТОГО: 14171.76 [12:18:25]line НСП 1% : 125.41 [12:18:25]line НДС 12% : 1504.97 [12:18:25]line Наличными: 0.00 [12:18:25]line Безнал.: 14171.76 [12:18:25]line Место: АЗС № 120 "Партнер Нефть" [12:18:25]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [12:18:25]line СНО: Общий режим [12:18:25]line Чек 90 19.06.2024 12:18 [12:18:25]line Смена: 353 ФФД: 1.0 [12:18:25]line ЗНМ: 0300000164 [12:18:25]line РНМ: 0000000000092785 [12:18:25]line Версия ККМ: 001 [12:18:25]line Платежная система: O! деньги [12:18:25]line ФМ: 0000000000875093 [12:18:25]line ФД: 103660 [12:18:25]line ФПД: 168002239486722 [12:18:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T121835&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103660&fm=168002239486722&tin=02508201610067®Number=0000000000092785&sum=1417176 [12:18:25]written 0, free lines is 4095 [12:18:25]OFD Sender: Processing packet 103660 [packets to send 17, broken 16] [12:18:25]ProducePacketName [12:18:25]name=ofd_packets/00103660 [12:18:25]OFD Sender: To server: pG, [12:18:25]CommunicateWithHost lk.salyk.kg:30040 [12:18:25]ConnectInit lk.salyk.kg [12:18:25]Connected sock=11 [12:18:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 1A EE 08 01 9E 41 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 60 F7 02 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 D8 9F 15 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 9F 15 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FD 30 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E1 4B 02 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D8 9F 15 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 9B CC 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 EC 94 01 00 35 04 06 00 98 CC 11 CE 5B 02 36 57 21 8B B0 88 6B A2 [12:18:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 31 91 47 00 B6 EC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 EC 94 01 00 F4 03 04 00 24 73 72 66 B6 04 01 00 00 64 49 9E 37 6B 7E 96 32 [12:18:25]CommunicateWithHost err = 0 [12:18:25]CheckOFDResponse [12:18:25]1017 (14) - 77093643461234 [12:18:25]1041 (16) - 0000000000875093 [12:18:25]1040 (4) - 103660 [12:18:25]1012 (4) - 19.06.2024 05:56 [12:18:25]1206 (1) - 0 [12:18:25]OFD Sender: Remove packet 103660 [12:18:25]ProducePacketName [12:18:25]name=ofd_packets/00103660 [12:18:25]NVStorageDeleteData [12:18:25]Write to MH i2c: 01 00 00 A9 A6 4F [12:18:25]Write i2c OK [12:18:25]MH_I2C_Read... [12:18:25]Read from MH i2c: 01 [12:18:25]MH_I2C_Read... [12:18:25]Read from MH i2c: 01 07 00 [12:18:25]MH_I2C_Read... [12:18:25]Read from MH i2c: 01 07 00 A9 A6 00 00 00 00 00 FE 0C 60 [12:18:25]RasterBufferAndPrint [12:18:25]line [12:18:25]line [12:18:25]line [12:18:25]line [12:18:25]line [12:18:25]written 0, free lines is 3332 [12:18:25]MH_Cut [12:18:25]Write to MH i2c: D1 01 00 B0 A6 01 28 [12:18:25]Write i2c OK [12:18:25]MH_I2C_Read... [12:18:25]Read from MH i2c: D1 [12:18:25]MH_I2C_Read... [12:18:25]Read from MH i2c: D1 01 00 [12:18:25]MH_I2C_Read... [12:18:25]Read from MH i2c: D1 01 00 B0 A6 00 27 [12:18:25]Write to MH i2c: 01 00 00 B1 A6 57 [12:18:25]Write i2c OK [12:18:25]MH_I2C_Read... [12:18:26]OFD Sender: No OFD packet to send [12:18:26]*** Cut start [12:18:26]*** Partial cut [12:18:26]*** CUTSNS_PIN = 1 [12:18:26]*** CUTSNS_PIN = 0 [12:18:26]*** Brake cut motor [12:18:27]Read from MH i2c: 01 [12:18:27]MH_I2C_Read... [12:18:27]*** Stop cut motor [12:18:27]*** Cut end [12:18:27]Read from MH i2c: 01 07 00 [12:18:27]MH_I2C_Read... [12:18:27]Read from MH i2c: 01 07 00 B1 A6 00 00 00 00 00 FF 0F 6C [12:18:27]process_action close_receipt done [12:18:27]requested_data is exist [12:18:27]produce_requested_data [12:18:27]requested_item fm.sn is exist - process it [12:18:27]wFMCommunicate request_size=4 [12:18:27]MH_SAM_APDU [12:18:27]CAPDU: 80 11 00 00 [12:18:27]Write to MH i2c: E2 08 00 B2 A6 80 11 00 00 00 00 00 00 D2 [12:18:27]Write i2c OK [12:18:27]MH_I2C_Read... [12:18:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:18:27]Read from MH i2c: E2 [12:18:27]MH_I2C_Read... [12:18:27]Read from MH i2c: E2 17 00 [12:18:27]MH_I2C_Read... [12:18:27]Read from MH i2c: E2 17 00 B2 A6 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 25 [12:18:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [12:18:27]wFMCommunicate OK [12:18:27]requested_item fd.num is exist - process it [12:18:27]SAM_PROTO_GetFieldsCounters [12:18:27]wFMCommunicate request_size=4 [12:18:27]MH_SAM_APDU [12:18:27]CAPDU: 80 13 00 00 [12:18:27]Write to MH i2c: E2 08 00 B3 A6 80 13 00 00 00 00 00 00 D5 [12:18:27]Write i2c OK [12:18:27]MH_I2C_Read... [12:18:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:18:27]Read from MH i2c: E2 [12:18:27]MH_I2C_Read... [12:18:27]Read from MH i2c: E2 62 00 [12:18:27]MH_I2C_Read... [12:18:27]Read from MH i2c: E2 62 00 B3 A6 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 EC 94 01 00 0E 04 04 00 61 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 ED [12:18:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 EC 94 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 5A 00 00 00 5E 04 04 00 5A 00 00 00 57 04 04 00 5B 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:18:27]wFMCommunicate OK [12:18:27]SAM_PROTO_GetFieldsCounters done [12:18:27]requested_item shift.num is exist - process it [12:18:27]requested_item shift.opened is exist - process it [12:18:27]req_shift_opened [12:18:27]FM_GetShiftState [12:18:27]SAM_PROTO_GetShiftState [12:18:27]wFMCommunicate request_size=4 [12:18:27]MH_SAM_APDU [12:18:27]CAPDU: 80 13 01 00 [12:18:27]Write to MH i2c: E2 08 00 B4 A6 80 13 01 00 00 00 00 00 D7 [12:18:27]Write i2c OK [12:18:27]MH_I2C_Read... [12:18:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:18:27]Read from MH i2c: E2 [12:18:27]MH_I2C_Read... [12:18:27]Read from MH i2c: E2 0E 00 [12:18:27]MH_I2C_Read... [12:18:27]Read from MH i2c: E2 0E 00 B4 A6 00 09 00 01 04 26 72 66 00 00 00 00 90 00 E5 [12:18:27]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [12:18:27]wFMCommunicate OK [12:18:27]SAM_PROTO_GetShiftState done [12:18:27]FM_GetShiftState done [12:18:27]req_shift_opened done [12:18:27]requested_item shift.open_date is exist - process it [12:18:27]req_shift_open_date [12:18:27]req_shift_open_date done [12:18:27]produce_requested_data done [12:18:27]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103660,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [12:18:27]process_action_free close_receipt [12:18:27]json_value_free [12:18:27]json_value_free done [12:18:27]process_json_proto returns [12:18:27]Send response to host [12:18:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103660,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [12:18:27]free response buf [12:18:27]execute_script done [12:18:27]execute_script returns [12:18:27]free content buf [12:18:27]Sock 9.Close socket [12:18:27]Sock 9.Thread stoped [12:18:31]OFD Sender: No OFD packet to send [12:18:36]OFD Sender: No OFD packet to send [12:18:41]OFD Sender: No OFD packet to send [12:18:46]OFD Sender: No OFD packet to send [12:18:51]OFD Sender: No OFD packet to send [12:18:56]OFD Sender: No OFD packet to send [12:19:01]OFD Sender: No OFD packet to send [12:19:06]OFD Sender: No OFD packet to send [12:19:11]OFD Sender: No OFD packet to send [12:19:16]OFD Sender: No OFD packet to send [12:19:21]OFD Sender: No OFD packet to send [12:19:26]OFD Sender: No OFD packet to send [12:19:31]OFD Sender: No OFD packet to send [12:19:36]OFD Sender: No OFD packet to send [12:19:41]OFD Sender: No OFD packet to send [12:19:46]OFD Sender: No OFD packet to send [12:19:51]OFD Sender: No OFD packet to send [12:19:56]OFD Sender: No OFD packet to send [12:20:01]OFD Sender: No OFD packet to send [12:20:06]OFD Sender: No OFD packet to send [12:20:11]OFD Sender: No OFD packet to send [12:20:16]OFD Sender: No OFD packet to send [12:20:21]OFD Sender: No OFD packet to send [12:20:26]OFD Sender: No OFD packet to send [12:20:31]OFD Sender: No OFD packet to send [12:20:32]accept exits with 7 [12:20:32]New connection [12:20:32]New thread 3067084132 created [12:20:32]Thread 3067227492 joined [12:20:32]Waiting for new connection... [12:20:32] Sock 7.Parse request [12:20:32]Sock 7.Check first char [12:20:32]Sock 7.First char is OK [12:20:32]request: POST /json_proto HTTP/1.0 [12:20:32]Method: POST [12:20:32]URL: /json_proto [12:20:32]Method is POST - this is cgi request [12:20:32]url: /json_proto [12:20:32]query_string will be loaded in cgi processing [12:20:32]execute_cgi json_proto POST (null) [12:20:32]execute_cgi path=json_proto method=POST [12:20:32]POST find Content-Length [12:20:32]Host: 172.17.38.133:8080 [12:20:32]Content-Length: 682 [12:20:32]Content-Type: application/json [12:20:32] [12:20:32]POST finish read [12:20:32]Found Content-Length = 682 [12:20:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672914", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 27.070, "sum" : 2000.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:20:32]execute_script... [12:20:32]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672914", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 27.070, "sum" : 2000.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:20:32]POST & json_proto [12:20:32]process_json_proto [12:20:32]json parsed OK: [12:20:32]protocol is kg_v1.0 [12:20:32]action value=close_receipt [12:20:32]process_action close_receipt [12:20:32]cmd_close_receipt [12:20:32]MH_GetDate [12:20:32]Write to MH i2c: F0 00 00 B5 A6 4A [12:20:32]Write i2c OK [12:20:32]MH_I2C_Read... [12:20:32]Read from MH i2c: F0 [12:20:32]MH_I2C_Read... [12:20:32]Read from MH i2c: F0 09 00 [12:20:32]MH_I2C_Read... [12:20:32]Read from MH i2c: F0 09 00 B5 A6 00 1C CD 72 66 BD 8F 7C 64 40 [12:20:32]GetLastDocTimeStamp 1718799515 [12:20:32]current date 1718799644 [12:20:32]FM_GetShiftState [12:20:32]SAM_PROTO_GetShiftState [12:20:32]wFMCommunicate request_size=4 [12:20:32]MH_SAM_APDU [12:20:32]CAPDU: 80 13 01 00 [12:20:32]Write to MH i2c: E2 08 00 B6 A6 80 13 01 00 00 00 00 00 D9 [12:20:32]Write i2c OK [12:20:32]MH_I2C_Read... [12:20:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:20:32]Read from MH i2c: E2 [12:20:32]MH_I2C_Read... [12:20:32]Read from MH i2c: E2 0E 00 [12:20:32]MH_I2C_Read... [12:20:32]Read from MH i2c: E2 0E 00 B6 A6 00 09 00 01 04 26 72 66 00 00 00 00 90 00 E7 [12:20:32]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [12:20:32]wFMCommunicate OK [12:20:32]SAM_PROTO_GetShiftState done [12:20:32]FM_GetShiftState done [12:20:32]opened in 1718756868 [12:20:32]opened+sec_in_day 1718843268 [12:20:32]quantity*price = 200047 [12:20:32]sum+1 = 200048 [12:20:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.47 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.44 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 91 19.06.2024 12:20 Смена: 353 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103661 ФПД: 103115033796791 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T122044&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103661&fm=103115033796791&tin=02508201610067®Number=0000000000092785&sum=200000 [12:20:33]StoreToDocumentArchive [12:20:33]shift 353 fd 103661 [12:20:33]save to /storage/0353/doc_00103661 [12:20:33]save last doc name /storage/0353/doc_00103661 to /storage/kkm_last_doc_name [12:20:33]save OK [12:20:33]Clear old archive folders... [12:20:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:20:33]tlvbuf is 013EBC80 [12:20:33]SAM_PROTO_ClearQueue [12:20:33]wFMCommunicate request_size=4 [12:20:33]MH_SAM_APDU [12:20:33]CAPDU: 80 09 00 00 [12:20:33]Write to MH i2c: E2 08 00 C3 A6 80 09 00 00 00 00 00 00 DB [12:20:33]Write i2c OK [12:20:33]MH_I2C_Read... [12:20:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:20:33]Read from MH i2c: E2 [12:20:33]MH_I2C_Read... [12:20:33]Read from MH i2c: E2 03 00 [12:20:33]MH_I2C_Read... [12:20:33]Read from MH i2c: E2 03 00 C3 A6 00 90 00 DD [12:20:33]RAPDU: 90 00 [12:20:33]wFMCommunicate OK [12:20:33]SAM_PROTO_ClearQueue done [12:20:33]KKMCreateOFDPacket [12:20:33]OFDProtocolAddRootSTLVToBuf [12:20:33]FM_MakeSignedData [12:20:33]FM_MakeSignedData [12:20:33]SAM_PROTO_SignData [12:20:33]wFMCommunicate request_size=4 [12:20:33]MH_SAM_APDU [12:20:33]CAPDU: 80 0D 01 02 [12:20:33]Write to MH i2c: E2 08 00 C4 A6 80 0D 01 02 00 00 00 00 E3 [12:20:33]Write i2c OK [12:20:33]MH_I2C_Read... [12:20:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:20:33]Read from MH i2c: E2 [12:20:33]MH_I2C_Read... [12:20:33]Read from MH i2c: E2 03 00 [12:20:33]MH_I2C_Read... [12:20:33]Read from MH i2c: E2 03 00 C4 A6 00 90 00 DE [12:20:33]RAPDU: 90 00 [12:20:33]wFMCommunicate OK [12:20:33]wFMCommunicate request_size=255 [12:20:33]MH_SAM_APDU [12:20:33]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 BE 69 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 6F 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 FC 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 5B 00 00 00 F4 03 04 00 1C CD 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 ED 94 01 00 35 04 06 00 5D [12:20:33]Write to MH i2c: E2 02 01 C5 A6 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 BE 69 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 6F 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 FC 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 5B 00 00 00 F4 03 04 00 1C CD 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 ED 94 01 00 35 04 06 00 5D 00 00 D2 [12:20:33]Write i2c OK [12:20:33]MH_I2C_Read... [12:20:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:20:34]Read from MH i2c: E2 [12:20:34]MH_I2C_Read... [12:20:34]Read from MH i2c: E2 03 00 [12:20:34]MH_I2C_Read... [12:20:34]Read from MH i2c: E2 03 00 C5 A6 00 90 00 DF [12:20:34]RAPDU: 90 00 [12:20:34]wFMCommunicate OK [12:20:34]wFMCommunicate request_size=10 [12:20:34]MH_SAM_APDU [12:20:34]CAPDU: 80 0D 02 02 05 C8 56 F5 E0 B7 [12:20:34]Write to MH i2c: E2 0D 00 C6 A6 80 0D 02 02 05 00 C8 56 F5 E0 B7 00 00 9A [12:20:34]Write i2c OK [12:20:34]MH_I2C_Read... [12:20:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:20:34]Read from MH i2c: E2 [12:20:34]MH_I2C_Read... [12:20:34]Read from MH i2c: E2 03 00 [12:20:34]MH_I2C_Read... [12:20:34]Read from MH i2c: E2 03 00 C6 A6 00 90 00 E0 [12:20:34]RAPDU: 90 00 [12:20:34]wFMCommunicate OK [12:20:34]wFMCommunicate request_size=4 [12:20:34]MH_SAM_APDU [12:20:34]CAPDU: 80 0D 03 02 [12:20:34]Write to MH i2c: E2 08 00 C7 A6 80 0D 03 02 00 00 00 00 E8 [12:20:34]Write i2c OK [12:20:34]MH_I2C_Read... [12:20:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:20:34]Read from MH i2c: E2 [12:20:34]MH_I2C_Read... [12:20:34]Read from MH i2c: E2 0B 00 [12:20:34]MH_I2C_Read... [12:20:34]Read from MH i2c: E2 0B 00 C7 A6 00 08 A1 39 CA 62 08 EA E4 90 00 CD [12:20:34]RAPDU: 08 A1 39 CA 62 08 EA E4 90 00 [12:20:34]wFMCommunicate OK [12:20:34]SAM_PROTO_SignData done [12:20:34]FM_MakeSignedData done [12:20:34]CreateOFDProtocolMessage [12:20:34]wFMCommunicate request_size=4 [12:20:34]MH_SAM_APDU [12:20:34]CAPDU: 80 11 00 00 [12:20:34]Write to MH i2c: E2 08 00 C8 A6 80 11 00 00 00 00 00 00 E8 [12:20:34]Write i2c OK [12:20:34]MH_I2C_Read... [12:20:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:20:34]Read from MH i2c: E2 [12:20:34]MH_I2C_Read... [12:20:34]Read from MH i2c: E2 17 00 [12:20:34]MH_I2C_Read... [12:20:34]Read from MH i2c: E2 17 00 C8 A6 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 3B [12:20:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [12:20:34]wFMCommunicate OK [12:20:34]CreateOFDProtocolMessage done [12:20:34]OFDSenderStorePacket 103661 [12:20:34]StoreOFDPacket docnum=103661 [12:20:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 61 E6 07 01 8F CB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 BE 69 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 6F 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 FC 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 5B 00 00 00 F4 03 04 00 1C CD 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 ED 94 01 00 35 04 06 00 5D C8 56 F5 E0 B7 08 A1 39 CA 62 08 EA E4 [12:20:34]CheckFolder [12:20:34]dirname=/storage/ofd_packets [12:20:34]CheckFolder done [12:20:34]ProducePacketName [12:20:34]name=ofd_packets/00103661 [12:20:34]NVStorageSaveData ofd_packets/00103661 [12:20:34]File name is /storage/ofd_packets/00103661 [12:20:34]Write 301 bytes [12:20:34]NVStorageSaveData done [12:20:34]OFDSenderStorePacket done [12:20:34]KKMCreateOFDPacket done [12:20:34]NVStorageSaveData kkm_last_timestamp [12:20:34]File name is /storage/kkm_last_timestamp [12:20:34]Write 4 bytes [12:20:34]NVStorageSaveData done [12:20:34]ExternCall_PrintAddStr [12:20:34]wPrintStart [12:20:34]Write to MH i2c: 01 00 00 C9 A6 6F [12:20:34]Write i2c OK [12:20:34]MH_I2C_Read... [12:20:34]Read from MH i2c: 01 [12:20:34]MH_I2C_Read... [12:20:34]Read from MH i2c: 01 07 00 [12:20:34]MH_I2C_Read... [12:20:34]Read from MH i2c: 01 07 00 C9 A6 00 00 00 00 00 FF 0F 84 [12:20:34]RasterBufferAndPrint [12:20:34]line Счет N : (1)672914 [12:20:34]line ИНН: 02508201610067 [12:20:34]line Контрольно-Кассовый Чек [12:20:34]line ПРОДАЖА [12:20:34]line ТРК (МРК, ГНК) : 31 [12:20:34]line Товар: 2710124500 [12:20:34]line Аи-95-К-5 [12:20:34]line 27.070 * 73.90 [12:20:34]line = 2000.47 [12:20:34]line НДС 12% НСП 1% [12:20:34]line > о реализуемом товаре [12:20:34]line ОКРУГЛЕНИЕ: -0.47 [12:20:34]line ИТОГО: 2000.00 [12:20:34]line Внесено: 2000.00 [12:20:34]line СДАЧА: 0.00 [12:20:34]line НСП 1% : 17.70 [12:20:34]line НДС 12% : 212.44 [12:20:34]line Наличными: 2000.00 [12:20:34]line Безнал.: 0.00 [12:20:34]line Место: АЗС № 120 "Партнер Нефть" [12:20:34]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [12:20:34]line СНО: Общий режим [12:20:34]line Чек 91 19.06.2024 12:20 [12:20:34]line Смена: 353 ФФД: 1.0 [12:20:34]line ЗНМ: 0300000164 [12:20:34]line РНМ: 0000000000092785 [12:20:34]line Версия ККМ: 001 [12:20:34]line ФМ: 0000000000875093 [12:20:34]line ФД: 103661 [12:20:34]line ФПД: 103115033796791 [12:20:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T122044&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103661&fm=103115033796791&tin=02508201610067®Number=0000000000092785&sum=200000 [12:20:34]OFD Sender: Processing packet 103661 [packets to send 17, broken 16] [12:20:34]ProducePacketName [12:20:34]name=ofd_packets/00103661 [12:20:34]OFD Sender: To server: pG, [12:20:34]CommunicateWithHost lk.salyk.kg:30040 [12:20:34]ConnectInit lk.salyk.kg [12:20:34]written 0, free lines is 4095 [12:20:34]Connected sock=10 [12:20:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 61 E6 07 01 8F CB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 BE 69 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 6F 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 FC 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 5B 00 00 00 F4 03 04 00 1C CD 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 ED 94 01 00 35 04 06 00 5D C8 56 F5 E0 B7 08 A1 39 CA 62 08 EA E4 [12:20: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 39 33 4F 00 00 00 9C 71 47 00 1F 0E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 ED 94 01 00 F4 03 04 00 A5 73 72 66 B6 04 01 00 00 49 AA 77 3D 8B 03 AB 27 [12:20:34]CommunicateWithHost err = 0 [12:20:34]CheckOFDResponse [12:20:34]1017 (14) - 77093643461234 [12:20:34]1041 (16) - 0000000000875093 [12:20:34]1040 (4) - 103661 [12:20:34]1012 (4) - 19.06.2024 05:59 [12:20:34]1206 (1) - 0 [12:20:34]OFD Sender: Remove packet 103661 [12:20:34]ProducePacketName [12:20:34]name=ofd_packets/00103661 [12:20:34]NVStorageDeleteData [12:20:35]Write to MH i2c: 01 00 00 F4 A6 9A [12:20:35]Write i2c OK [12:20:35]MH_I2C_Read... [12:20:35]Read from MH i2c: 01 [12:20:35]MH_I2C_Read... [12:20:35]Read from MH i2c: 01 07 00 [12:20:35]MH_I2C_Read... [12:20:35]Read from MH i2c: 01 07 00 F4 A6 00 00 00 00 00 EC 0C 99 [12:20:35]RasterBufferAndPrint [12:20:35]line [12:20:35]line [12:20:35]line [12:20:35]line [12:20:35]line [12:20:35]written 0, free lines is 3314 [12:20:35]MH_Cut [12:20:35]Write to MH i2c: D1 01 00 FB A6 01 73 [12:20:35]Write i2c OK [12:20:35]MH_I2C_Read... [12:20:35]Read from MH i2c: D1 [12:20:35]MH_I2C_Read... [12:20:35]Read from MH i2c: D1 01 00 [12:20:35]MH_I2C_Read... [12:20:35]Read from MH i2c: D1 01 00 FB A6 00 72 [12:20:35]Write to MH i2c: 01 00 00 FC A6 A2 [12:20:35]Write i2c OK [12:20:35]MH_I2C_Read... [12:20:35]OFD Sender: No OFD packet to send [12:20:35]*** Cut start [12:20:35]*** Partial cut [12:20:35]*** CUTSNS_PIN = 1 [12:20:35]*** CUTSNS_PIN = 0 [12:20:35]*** Brake cut motor [12:20:36]Read from MH i2c: 01 [12:20:36]MH_I2C_Read... [12:20:36]*** Stop cut motor [12:20:36]*** Cut end [12:20:36]Read from MH i2c: 01 07 00 [12:20:36]MH_I2C_Read... [12:20:36]Read from MH i2c: 01 07 00 FC A6 00 00 00 00 00 FF 0F B7 [12:20:36]process_action close_receipt done [12:20:36]requested_data is exist [12:20:36]produce_requested_data [12:20:36]requested_item fm.sn is exist - process it [12:20:36]wFMCommunicate request_size=4 [12:20:36]MH_SAM_APDU [12:20:36]CAPDU: 80 11 00 00 [12:20:36]Write to MH i2c: E2 08 00 FD A6 80 11 00 00 00 00 00 00 1D [12:20:36]Write i2c OK [12:20:36]MH_I2C_Read... [12:20:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:20:36]Read from MH i2c: E2 [12:20:36]MH_I2C_Read... [12:20:36]Read from MH i2c: E2 17 00 [12:20:36]MH_I2C_Read... [12:20:36]Read from MH i2c: E2 17 00 FD A6 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 70 [12:20:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [12:20:36]wFMCommunicate OK [12:20:36]requested_item fd.num is exist - process it [12:20:36]SAM_PROTO_GetFieldsCounters [12:20:36]wFMCommunicate request_size=4 [12:20:36]MH_SAM_APDU [12:20:36]CAPDU: 80 13 00 00 [12:20:36]Write to MH i2c: E2 08 00 FE A6 80 13 00 00 00 00 00 00 20 [12:20:36]Write i2c OK [12:20:36]MH_I2C_Read... [12:20:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:20:36]Read from MH i2c: E2 [12:20:36]MH_I2C_Read... [12:20:36]Read from MH i2c: E2 62 00 [12:20:36]MH_I2C_Read... [12:20:36]Read from MH i2c: E2 62 00 FE A6 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 ED 94 01 00 0E 04 04 00 61 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 3C [12:20:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 ED 94 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 5B 00 00 00 5E 04 04 00 5B 00 00 00 57 04 04 00 5C 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:20:36]wFMCommunicate OK [12:20:36]SAM_PROTO_GetFieldsCounters done [12:20:36]requested_item shift.num is exist - process it [12:20:36]requested_item shift.opened is exist - process it [12:20:36]req_shift_opened [12:20:36]FM_GetShiftState [12:20:36]SAM_PROTO_GetShiftState [12:20:36]wFMCommunicate request_size=4 [12:20:36]MH_SAM_APDU [12:20:36]CAPDU: 80 13 01 00 [12:20:36]Write to MH i2c: E2 08 00 FF A6 80 13 01 00 00 00 00 00 22 [12:20:36]Write i2c OK [12:20:36]MH_I2C_Read... [12:20:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:20:36]Read from MH i2c: E2 [12:20:36]MH_I2C_Read... [12:20:36]Read from MH i2c: E2 0E 00 [12:20:36]MH_I2C_Read... [12:20:36]Read from MH i2c: E2 0E 00 FF A6 00 09 00 01 04 26 72 66 00 00 00 00 90 00 30 [12:20:36]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [12:20:36]wFMCommunicate OK [12:20:36]SAM_PROTO_GetShiftState done [12:20:36]FM_GetShiftState done [12:20:36]req_shift_opened done [12:20:36]requested_item shift.open_date is exist - process it [12:20:36]req_shift_open_date [12:20:36]req_shift_open_date done [12:20:36]produce_requested_data done [12:20:36]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103661,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [12:20:36]process_action_free close_receipt [12:20:36]json_value_free [12:20:36]json_value_free done [12:20:36]process_json_proto returns [12:20:36]Send response to host [12:20:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103661,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [12:20:36]free response buf [12:20:36]execute_script done [12:20:36]execute_script returns [12:20:36]free content buf [12:20:36]Sock 7.Close socket [12:20:36]Sock 7.Thread stoped [12:20:36]accept exits with 9 [12:20:36]New connection [12:20:36]New thread 3067227492 created [12:20:36]Thread 3067084132 joined [12:20:36]Waiting for new connection... [12:20:36] Sock 9.Parse request [12:20:36]Sock 9.Check first char [12:20:36]Sock 9.First char is OK [12:20:36]request: POST /json_proto HTTP/1.0 [12:20:36]Method: POST [12:20:36]URL: /json_proto [12:20:36]Method is POST - this is cgi request [12:20:36]url: /json_proto [12:20:36]query_string will be loaded in cgi processing [12:20:36]execute_cgi json_proto POST (null) [12:20:36]execute_cgi path=json_proto method=POST [12:20:36]POST find Content-Length [12:20:36]Host: 172.17.38.133:8080 [12:20:36]Content-Length: 682 [12:20:36]Content-Type: application/json [12:20:36] [12:20:36]POST finish read [12:20:36]Found Content-Length = 682 [12:20:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672913", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 18.080, "sum" : 1200.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:20:36]execute_script... [12:20: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)672913", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 18.080, "sum" : 1200.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:20:36]POST & json_proto [12:20:36]process_json_proto [12:20:36]json parsed OK: [12:20:36]protocol is kg_v1.0 [12:20:36]action value=close_receipt [12:20:36]process_action close_receipt [12:20:36]cmd_close_receipt [12:20:36]MH_GetDate [12:20:36]Write to MH i2c: F0 00 00 00 A7 96 [12:20:36]Write i2c OK [12:20:36]MH_I2C_Read... [12:20:36]Read from MH i2c: F0 [12:20:36]MH_I2C_Read... [12:20:36]Read from MH i2c: F0 09 00 [12:20:36]MH_I2C_Read... [12:20:36]Read from MH i2c: F0 09 00 00 A7 00 21 CD 72 66 BD 8F 7C 64 91 [12:20:36]GetLastDocTimeStamp 1718799644 [12:20:36]current date 1718799649 [12:20:36]FM_GetShiftState [12:20:36]SAM_PROTO_GetShiftState [12:20:36]wFMCommunicate request_size=4 [12:20:36]MH_SAM_APDU [12:20:36]CAPDU: 80 13 01 00 [12:20:36]Write to MH i2c: E2 08 00 01 A7 80 13 01 00 00 00 00 00 25 [12:20:36]Write i2c OK [12:20:36]MH_I2C_Read... [12:20:37]Read from MH i2c: E2 [12:20:37]MH_I2C_Read... [12:20:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:20:37]Read from MH i2c: E2 0E 00 [12:20:37]MH_I2C_Read... [12:20:37]Read from MH i2c: E2 0E 00 01 A7 00 09 00 01 04 26 72 66 00 00 00 00 90 00 33 [12:20:37]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [12:20:37]wFMCommunicate OK [12:20:37]SAM_PROTO_GetShiftState done [12:20:37]FM_GetShiftState done [12:20:37]opened in 1718756868 [12:20:37]opened+sec_in_day 1718843268 [12:20:37]quantity*price = 120051 [12:20:37]sum+1 = 120052 [12:20:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1200.00 Внесено: 1200.00 СДАЧА: 0.00 НСП 1% : 10.62 НДС 12% : 127.49 Наличными: 1200.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 92 19.06.2024 12:20 Смена: 353 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103662 ФПД: 1419758634803 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T122049&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103662&fm=1419758634803&tin=02508201610067®Number=0000000000092785&sum=120000 [12:20:38]StoreToDocumentArchive [12:20:38]shift 353 fd 103662 [12:20:38]save to /storage/0353/doc_00103662 [12:20:38]save last doc name /storage/0353/doc_00103662 to /storage/kkm_last_doc_name [12:20:38]save OK [12:20:38]Clear old archive folders... [12:20:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:20:38]tlvbuf is 01489600 [12:20:38]SAM_PROTO_ClearQueue [12:20:38]wFMCommunicate request_size=4 [12:20:38]MH_SAM_APDU [12:20:38]CAPDU: 80 09 00 00 [12:20:38]Write to MH i2c: E2 08 00 0E A7 80 09 00 00 00 00 00 00 27 [12:20:38]Write i2c OK [12:20:38]MH_I2C_Read... [12:20:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:20:38]Read from MH i2c: E2 [12:20:38]MH_I2C_Read... [12:20:38]Read from MH i2c: E2 03 00 [12:20:38]MH_I2C_Read... [12:20:38]Read from MH i2c: E2 03 00 0E A7 00 90 00 29 [12:20:38]RAPDU: 90 00 [12:20:38]wFMCommunicate OK [12:20:38]SAM_PROTO_ClearQueue done [12:20:38]KKMCreateOFDPacket [12:20:38]OFDProtocolAddRootSTLVToBuf [12:20:38]FM_MakeSignedData [12:20:38]FM_MakeSignedData [12:20:38]SAM_PROTO_SignData [12:20:38]wFMCommunicate request_size=4 [12:20:38]MH_SAM_APDU [12:20:38]CAPDU: 80 0D 01 02 [12:20:38]Write to MH i2c: E2 08 00 0F A7 80 0D 01 02 00 00 00 00 2F [12:20:38]Write i2c OK [12:20:38]MH_I2C_Read... [12:20:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:20:38]Read from MH i2c: E2 [12:20:38]MH_I2C_Read... [12:20:38]Read from MH i2c: E2 03 00 [12:20:38]MH_I2C_Read... [12:20:38]Read from MH i2c: E2 03 00 0F A7 00 90 00 2A [12:20:38]RAPDU: 90 00 [12:20:38]wFMCommunicate OK [12:20:38]wFMCommunicate request_size=255 [12:20:38]MH_SAM_APDU [12:20: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 A0 46 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 F3 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 21 CD 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 EE 94 01 00 35 04 06 00 01 [12:20:38]Write to MH i2c: E2 02 01 10 A7 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A0 46 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 F3 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 21 CD 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 EE 94 01 00 35 04 06 00 01 00 00 50 [12:20:38]Write i2c OK [12:20:38]MH_I2C_Read... [12:20:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:20:38]Read from MH i2c: E2 [12:20:38]MH_I2C_Read... [12:20:38]Read from MH i2c: E2 03 00 [12:20:38]MH_I2C_Read... [12:20:38]Read from MH i2c: E2 03 00 10 A7 00 90 00 2B [12:20:38]RAPDU: 90 00 [12:20:38]wFMCommunicate OK [12:20:38]wFMCommunicate request_size=10 [12:20:38]MH_SAM_APDU [12:20:38]CAPDU: 80 0D 02 02 05 4A 90 35 87 33 [12:20:38]Write to MH i2c: E2 0D 00 11 A7 80 0D 02 02 05 00 4A 90 35 87 33 00 00 05 [12:20:38]Write i2c OK [12:20:38]MH_I2C_Read... [12:20:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:20:38]Read from MH i2c: E2 [12:20:38]MH_I2C_Read... [12:20:38]Read from MH i2c: E2 03 00 [12:20:38]MH_I2C_Read... [12:20:38]Read from MH i2c: E2 03 00 11 A7 00 90 00 2C [12:20:38]RAPDU: 90 00 [12:20:38]wFMCommunicate OK [12:20:38]wFMCommunicate request_size=4 [12:20:38]MH_SAM_APDU [12:20:38]CAPDU: 80 0D 03 02 [12:20:38]Write to MH i2c: E2 08 00 12 A7 80 0D 03 02 00 00 00 00 34 [12:20:38]Write i2c OK [12:20:38]MH_I2C_Read... [12:20:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:20:38]Read from MH i2c: E2 [12:20:38]MH_I2C_Read... [12:20:38]Read from MH i2c: E2 0B 00 [12:20:38]MH_I2C_Read... [12:20:38]Read from MH i2c: E2 0B 00 12 A7 00 FA 0E 58 49 50 EF 2B A1 90 00 E9 [12:20:38]RAPDU: FA 0E 58 49 50 EF 2B A1 90 00 [12:20:38]wFMCommunicate OK [12:20:38]SAM_PROTO_SignData done [12:20:38]FM_MakeSignedData done [12:20:38]CreateOFDProtocolMessage [12:20:38]wFMCommunicate request_size=4 [12:20:38]MH_SAM_APDU [12:20:38]CAPDU: 80 11 00 00 [12:20:38]Write to MH i2c: E2 08 00 13 A7 80 11 00 00 00 00 00 00 34 [12:20:38]Write i2c OK [12:20:38]MH_I2C_Read... [12:20:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:20:39]Read from MH i2c: E2 [12:20:39]MH_I2C_Read... [12:20:39]Read from MH i2c: E2 17 00 [12:20:39]MH_I2C_Read... [12:20:39]Read from MH i2c: E2 17 00 13 A7 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 87 [12:20:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [12:20:39]wFMCommunicate OK [12:20:39]CreateOFDProtocolMessage done [12:20:39]OFDSenderStorePacket 103662 [12:20:39]StoreOFDPacket docnum=103662 [12:20:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 E7 36 07 01 93 2E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A0 46 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 F3 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 21 CD 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 EE 94 01 00 35 04 06 00 01 4A 90 35 87 33 FA 0E 58 49 50 EF 2B A1 [12:20:39]CheckFolder [12:20:39]dirname=/storage/ofd_packets [12:20:39]CheckFolder done [12:20:39]ProducePacketName [12:20:39]name=ofd_packets/00103662 [12:20:39]NVStorageSaveData ofd_packets/00103662 [12:20:39]File name is /storage/ofd_packets/00103662 [12:20:39]Write 301 bytes [12:20:39]NVStorageSaveData done [12:20:39]OFDSenderStorePacket done [12:20:39]KKMCreateOFDPacket done [12:20:39]NVStorageSaveData kkm_last_timestamp [12:20:39]File name is /storage/kkm_last_timestamp [12:20:39]Write 4 bytes [12:20:39]NVStorageSaveData done [12:20:39]ExternCall_PrintAddStr [12:20:39]wPrintStart [12:20:39]Write to MH i2c: 01 00 00 14 A7 BB [12:20:39]Write i2c OK [12:20:39]MH_I2C_Read... [12:20:39]Read from MH i2c: 01 [12:20:39]MH_I2C_Read... [12:20:39]Read from MH i2c: 01 07 00 [12:20:39]MH_I2C_Read... [12:20:39]Read from MH i2c: 01 07 00 14 A7 00 00 00 00 00 FF 0F D0 [12:20:39]RasterBufferAndPrint [12:20:39]line Счет N : (1)672913 [12:20:39]line ИНН: 02508201610067 [12:20:39]line Контрольно-Кассовый Чек [12:20:39]line ПРОДАЖА [12:20:39]line ТРК (МРК, ГНК) : 42 [12:20:39]line Товар: 2710124130 [12:20:39]line Аи-92-К-5 [12:20:39]line 18.080 * 66.40 [12:20:39]line = 1200.51 [12:20:39]line НДС 12% НСП 1% [12:20:39]line > о реализуемом товаре [12:20:39]line ОКРУГЛЕНИЕ: -0.51 [12:20:39]line ИТОГО: 1200.00 [12:20:39]line Внесено: 1200.00 [12:20:39]line СДАЧА: 0.00 [12:20:39]line НСП 1% : 10.62 [12:20:39]line НДС 12% : 127.49 [12:20:39]line Наличными: 1200.00 [12:20:39]line Безнал.: 0.00 [12:20:39]line Место: АЗС № 120 "Партнер Нефть" [12:20:39]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [12:20:39]line СНО: Общий режим [12:20:39]line Чек 92 19.06.2024 12:20 [12:20:39]line Смена: 353 ФФД: 1.0 [12:20:39]line ЗНМ: 0300000164 [12:20:39]line РНМ: 0000000000092785 [12:20:39]line Версия ККМ: 001 [12:20:39]line ФМ: 0000000000875093 [12:20:39]line ФД: 103662 [12:20:39]line ФПД: 1419758634803 [12:20:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T122049&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103662&fm=1419758634803&tin=02508201610067®Number=0000000000092785&sum=120000 [12:20:39]OFD Sender: Processing packet 103662 [packets to send 17, broken 16] [12:20:39]ProducePacketName [12:20:39]name=ofd_packets/00103662 [12:20:39]OFD Sender: To server: pG, [12:20:39]CommunicateWithHost lk.salyk.kg:30040 [12:20:39]ConnectInit lk.salyk.kg [12:20:39]written 0, free lines is 4095 [12:20:39]Connected sock=10 [12:20: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 39 33 0F 01 00 00 E7 36 07 01 93 2E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A0 46 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 F3 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 21 CD 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 EE 94 01 00 35 04 06 00 01 4A 90 35 87 33 FA 0E 58 49 50 EF 2B A1 [12:20: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 39 33 4F 00 00 00 E3 A1 47 00 91 0E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 EE 94 01 00 F4 03 04 00 AA 73 72 66 B6 04 01 00 00 82 05 16 45 CE FF 2E 41 [12:20:39]CommunicateWithHost err = 0 [12:20:39]CheckOFDResponse [12:20:39]1017 (14) - 77093643461234 [12:20:39]1041 (16) - 0000000000875093 [12:20:39]1040 (4) - 103662 [12:20:39]1012 (4) - 19.06.2024 05:59 [12:20:39]1206 (1) - 0 [12:20:39]OFD Sender: Remove packet 103662 [12:20:39]ProducePacketName [12:20:39]name=ofd_packets/00103662 [12:20:39]NVStorageDeleteData [12:20:39]Write to MH i2c: 01 00 00 3F A7 E6 [12:20:39]Write i2c OK [12:20:39]MH_I2C_Read... [12:20:39]Read from MH i2c: 01 [12:20:39]MH_I2C_Read... [12:20:39]Read from MH i2c: 01 07 00 [12:20:39]MH_I2C_Read... [12:20:39]Read from MH i2c: 01 07 00 3F A7 00 00 00 00 00 E8 0C E1 [12:20:39]RasterBufferAndPrint [12:20:39]line [12:20:39]line [12:20:39]line [12:20:39]line [12:20:39]line [12:20:39]written 0, free lines is 3316 [12:20:39]MH_Cut [12:20:39]Write to MH i2c: D1 01 00 46 A7 01 BF [12:20:39]Write i2c OK [12:20:39]MH_I2C_Read... [12:20:39]Read from MH i2c: D1 [12:20:39]MH_I2C_Read... [12:20:39]Read from MH i2c: D1 01 00 [12:20:39]MH_I2C_Read... [12:20:39]Read from MH i2c: D1 01 00 46 A7 00 BE [12:20:39]Write to MH i2c: 01 00 00 47 A7 EE [12:20:39]Write i2c OK [12:20:39]MH_I2C_Read... [12:20:40]OFD Sender: No OFD packet to send [12:20:40]*** Cut start [12:20:40]*** Partial cut [12:20:40]*** CUTSNS_PIN = 1 [12:20:40]*** CUTSNS_PIN = 0 [12:20:40]*** Brake cut motor [12:20:41]Read from MH i2c: 01 [12:20:41]MH_I2C_Read... [12:20:41]*** Stop cut motor [12:20:41]*** Cut end [12:20:41]Read from MH i2c: 01 07 00 [12:20:41]MH_I2C_Read... [12:20:41]Read from MH i2c: 01 07 00 47 A7 00 00 00 00 00 FF 0F 03 [12:20:41]process_action close_receipt done [12:20:41]requested_data is exist [12:20:41]produce_requested_data [12:20:41]requested_item fm.sn is exist - process it [12:20:41]wFMCommunicate request_size=4 [12:20:41]MH_SAM_APDU [12:20:41]CAPDU: 80 11 00 00 [12:20:41]Write to MH i2c: E2 08 00 48 A7 80 11 00 00 00 00 00 00 69 [12:20:41]Write i2c OK [12:20:41]MH_I2C_Read... [12:20:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:20:41]Read from MH i2c: E2 [12:20:41]MH_I2C_Read... [12:20:41]Read from MH i2c: E2 17 00 [12:20:41]MH_I2C_Read... [12:20:41]Read from MH i2c: E2 17 00 48 A7 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 BC [12:20:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [12:20:41]wFMCommunicate OK [12:20:41]requested_item fd.num is exist - process it [12:20:41]SAM_PROTO_GetFieldsCounters [12:20:41]wFMCommunicate request_size=4 [12:20:41]MH_SAM_APDU [12:20:41]CAPDU: 80 13 00 00 [12:20:41]Write to MH i2c: E2 08 00 49 A7 80 13 00 00 00 00 00 00 6C [12:20:41]Write i2c OK [12:20:41]MH_I2C_Read... [12:20:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:20:41]Read from MH i2c: E2 [12:20:41]MH_I2C_Read... [12:20:41]Read from MH i2c: E2 62 00 [12:20:41]MH_I2C_Read... [12:20:41]Read from MH i2c: E2 62 00 49 A7 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 EE 94 01 00 0E 04 04 00 61 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 8C [12:20: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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 EE 94 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 5C 00 00 00 5E 04 04 00 5C 00 00 00 57 04 04 00 5D 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:20:41]wFMCommunicate OK [12:20:41]SAM_PROTO_GetFieldsCounters done [12:20:41]requested_item shift.num is exist - process it [12:20:41]requested_item shift.opened is exist - process it [12:20:41]req_shift_opened [12:20:41]FM_GetShiftState [12:20:41]SAM_PROTO_GetShiftState [12:20:41]wFMCommunicate request_size=4 [12:20:41]MH_SAM_APDU [12:20:41]CAPDU: 80 13 01 00 [12:20:41]Write to MH i2c: E2 08 00 4A A7 80 13 01 00 00 00 00 00 6E [12:20:41]Write i2c OK [12:20:41]MH_I2C_Read... [12:20:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:20:41]Read from MH i2c: E2 [12:20:41]MH_I2C_Read... [12:20:41]Read from MH i2c: E2 0E 00 [12:20:41]MH_I2C_Read... [12:20:41]Read from MH i2c: E2 0E 00 4A A7 00 09 00 01 04 26 72 66 00 00 00 00 90 00 7C [12:20:41]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [12:20:41]wFMCommunicate OK [12:20:41]SAM_PROTO_GetShiftState done [12:20:41]FM_GetShiftState done [12:20:41]req_shift_opened done [12:20:41]requested_item shift.open_date is exist - process it [12:20:41]req_shift_open_date [12:20:41]req_shift_open_date done [12:20:41]produce_requested_data done [12:20:41]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103662,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [12:20:41]process_action_free close_receipt [12:20:41]json_value_free [12:20:41]json_value_free done [12:20:41]process_json_proto returns [12:20:41]Send response to host [12:20:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103662,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [12:20:41]free response buf [12:20:41]execute_script done [12:20:41]execute_script returns [12:20:41]free content buf [12:20:41]Sock 9.Close socket [12:20:41]Sock 9.Thread stoped [12:20:45]OFD Sender: No OFD packet to send [12:20:50]OFD Sender: No OFD packet to send [12:20:55]OFD Sender: No OFD packet to send [12:21:00]OFD Sender: No OFD packet to send [12:21:05]OFD Sender: No OFD packet to send [12:21:10]OFD Sender: No OFD packet to send [12:21:15]OFD Sender: No OFD packet to send [12:21:20]OFD Sender: No OFD packet to send [12:21:25]OFD Sender: No OFD packet to send [12:21:30]OFD Sender: No OFD packet to send [12:21:35]OFD Sender: No OFD packet to send [12:21:40]OFD Sender: No OFD packet to send [12:21:45]OFD Sender: No OFD packet to send [12:21:50]OFD Sender: No OFD packet to send [12:21:55]OFD Sender: No OFD packet to send [12:22:00]OFD Sender: No OFD packet to send [12:22:05]OFD Sender: No OFD packet to send [12:22:10]OFD Sender: No OFD packet to send [12:22:15]OFD Sender: No OFD packet to send [12:22:20]OFD Sender: No OFD packet to send [12:22:25]OFD Sender: No OFD packet to send [12:22:30]OFD Sender: No OFD packet to send [12:22:35]OFD Sender: No OFD packet to send [12:22:40]OFD Sender: No OFD packet to send [12:22:45]OFD Sender: No OFD packet to send [12:22:50]OFD Sender: No OFD packet to send [12:22:55]OFD Sender: No OFD packet to send [12:23:00]OFD Sender: No OFD packet to send [12:23:05]OFD Sender: No OFD packet to send [12:23:10]OFD Sender: No OFD packet to send [12:23:15]OFD Sender: No OFD packet to send [12:23:20]OFD Sender: No OFD packet to send [12:23:25]OFD Sender: No OFD packet to send [12:23:30]OFD Sender: No OFD packet to send [12:23:35]OFD Sender: No OFD packet to send [12:23:40]OFD Sender: No OFD packet to send [12:23:45]OFD Sender: No OFD packet to send [12:23:50]OFD Sender: No OFD packet to send [12:23:55]OFD Sender: No OFD packet to send [12:24:00]OFD Sender: No OFD packet to send [12:24:05]OFD Sender: No OFD packet to send [12:24:10]OFD Sender: No OFD packet to send [12:24:15]OFD Sender: No OFD packet to send [12:24:20]OFD Sender: No OFD packet to send [12:24:25]OFD Sender: No OFD packet to send [12:24:30]OFD Sender: No OFD packet to send [12:24:35]OFD Sender: No OFD packet to send [12:24:40]OFD Sender: No OFD packet to send [12:24:45]OFD Sender: No OFD packet to send [12:24:50]OFD Sender: No OFD packet to send [12:24:53]accept exits with 7 [12:24:53]New connection [12:24:53]New thread 3067084132 created [12:24:53]Thread 3067227492 joined [12:24:53]Waiting for new connection... [12:24:53] Sock 7.Parse request [12:24:53]Sock 7.Check first char [12:24:53]Sock 7.First char is OK [12:24:53]request: POST /json_proto HTTP/1.0 [12:24:53]Method: POST [12:24:53]URL: /json_proto [12:24:53]Method is POST - this is cgi request [12:24:53]url: /json_proto [12:24:53]query_string will be loaded in cgi processing [12:24:53]execute_cgi json_proto POST (null) [12:24:53]execute_cgi path=json_proto method=POST [12:24:53]POST find Content-Length [12:24:53]Host: 172.17.38.133:8080 [12:24:53]Content-Length: 682 [12:24:53]Content-Type: application/json [12:24:53] [12:24:53]POST finish read [12:24:53]Found Content-Length = 682 [12:24:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672915", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 22.600, "sum" : 1500.64, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:24:53]execute_script... [12:24: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)672915", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 22.600, "sum" : 1500.64, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:24:53]POST & json_proto [12:24:53]process_json_proto [12:24:53]json parsed OK: [12:24:53]protocol is kg_v1.0 [12:24:53]action value=close_receipt [12:24:53]process_action close_receipt [12:24:53]cmd_close_receipt [12:24:53]MH_GetDate [12:24:53]Write to MH i2c: F0 00 00 4B A7 E1 [12:24:53]Write i2c OK [12:24:53]MH_I2C_Read... [12:24:53]Read from MH i2c: F0 [12:24:53]MH_I2C_Read... [12:24:53]Read from MH i2c: F0 09 00 [12:24:53]MH_I2C_Read... [12:24:53]Read from MH i2c: F0 09 00 4B A7 00 22 CE 72 66 BD 8F 7C 64 DE [12:24:53]GetLastDocTimeStamp 1718799649 [12:24:53]current date 1718799906 [12:24:53]FM_GetShiftState [12:24:53]SAM_PROTO_GetShiftState [12:24:53]wFMCommunicate request_size=4 [12:24:53]MH_SAM_APDU [12:24:53]CAPDU: 80 13 01 00 [12:24:53]Write to MH i2c: E2 08 00 4C A7 80 13 01 00 00 00 00 00 70 [12:24:53]Write i2c OK [12:24:53]MH_I2C_Read... [12:24:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:24:54]Read from MH i2c: E2 [12:24:54]MH_I2C_Read... [12:24:54]Read from MH i2c: E2 0E 00 [12:24:54]MH_I2C_Read... [12:24:54]Read from MH i2c: E2 0E 00 4C A7 00 09 00 01 04 26 72 66 00 00 00 00 90 00 7E [12:24:54]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [12:24:54]wFMCommunicate OK [12:24:54]SAM_PROTO_GetShiftState done [12:24:54]FM_GetShiftState done [12:24:54]opened in 1718756868 [12:24:54]opened+sec_in_day 1718843268 [12:24:54]quantity*price = 150064 [12:24:54]sum+1 = 150065 [12:24:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.64 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.36 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 93 19.06.2024 12:25 Смена: 353 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103663 ФПД: 26284147530558 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T122506&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103663&fm=26284147530558&tin=02508201610067®Number=0000000000092785&sum=150000 [12:24:55]StoreToDocumentArchive [12:24:55]shift 353 fd 103663 [12:24:55]save to /storage/0353/doc_00103663 [12:24:55]save last doc name /storage/0353/doc_00103663 to /storage/kkm_last_doc_name [12:24:55]save OK [12:24:55]Clear old archive folders... [12:24:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:24:55]tlvbuf is 01390C20 [12:24:55]SAM_PROTO_ClearQueue [12:24:55]wFMCommunicate request_size=4 [12:24:55]MH_SAM_APDU [12:24:55]CAPDU: 80 09 00 00 [12:24:55]Write to MH i2c: E2 08 00 59 A7 80 09 00 00 00 00 00 00 72 [12:24:55]Write i2c OK [12:24:55]MH_I2C_Read... [12:24:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:24:55]Read from MH i2c: E2 [12:24:55]MH_I2C_Read... [12:24:55]Read from MH i2c: E2 03 00 [12:24:55]MH_I2C_Read... [12:24:55]Read from MH i2c: E2 03 00 59 A7 00 90 00 74 [12:24:55]RAPDU: 90 00 [12:24:55]wFMCommunicate OK [12:24:55]SAM_PROTO_ClearQueue done [12:24:55]KKMCreateOFDPacket [12:24:55]OFDProtocolAddRootSTLVToBuf [12:24:55]FM_MakeSignedData [12:24:55]FM_MakeSignedData [12:24:55]SAM_PROTO_SignData [12:24:55]wFMCommunicate request_size=4 [12:24:55]MH_SAM_APDU [12:24:55]CAPDU: 80 0D 01 02 [12:24:55]Write to MH i2c: E2 08 00 5A A7 80 0D 01 02 00 00 00 00 7A [12:24:55]Write i2c OK [12:24:55]MH_I2C_Read... [12:24:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:24:55]Read from MH i2c: E2 [12:24:55]MH_I2C_Read... [12:24:55]Read from MH i2c: E2 03 00 [12:24:55]MH_I2C_Read... [12:24:55]Read from MH i2c: E2 03 00 5A A7 00 90 00 75 [12:24:55]RAPDU: 90 00 [12:24:55]wFMCommunicate OK [12:24:55]wFMCommunicate request_size=255 [12:24:55]MH_SAM_APDU [12:24: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 48 58 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 30 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 40 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 22 CE 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 EF 94 01 00 35 04 06 00 17 [12:24:55]Write to MH i2c: E2 02 01 5B A7 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 48 58 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 30 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 40 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 22 CE 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 EF 94 01 00 35 04 06 00 17 00 00 FA [12:24:55]Write i2c OK [12:24:55]MH_I2C_Read... [12:24:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:24:55]Read from MH i2c: E2 [12:24:55]MH_I2C_Read... [12:24:55]Read from MH i2c: E2 03 00 [12:24:55]MH_I2C_Read... [12:24:55]Read from MH i2c: E2 03 00 5B A7 00 90 00 76 [12:24:55]RAPDU: 90 00 [12:24:55]wFMCommunicate OK [12:24:55]wFMCommunicate request_size=10 [12:24:55]MH_SAM_APDU [12:24:55]CAPDU: 80 0D 02 02 05 E7 C1 46 DB 3E [12:24:55]Write to MH i2c: E2 0D 00 5C A7 80 0D 02 02 05 00 E7 C1 46 DB 3E 00 00 8E [12:24:55]Write i2c OK [12:24:55]MH_I2C_Read... [12:24:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:24:55]OFD Sender: No OFD packet to send [12:24:55]Read from MH i2c: E2 [12:24:55]MH_I2C_Read... [12:24:55]Read from MH i2c: E2 03 00 [12:24:55]MH_I2C_Read... [12:24:55]Read from MH i2c: E2 03 00 5C A7 00 90 00 77 [12:24:55]RAPDU: 90 00 [12:24:55]wFMCommunicate OK [12:24:55]wFMCommunicate request_size=4 [12:24:55]MH_SAM_APDU [12:24:55]CAPDU: 80 0D 03 02 [12:24:55]Write to MH i2c: E2 08 00 5D A7 80 0D 03 02 00 00 00 00 7F [12:24:55]Write i2c OK [12:24:55]MH_I2C_Read... [12:24:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:24:55]Read from MH i2c: E2 [12:24:55]MH_I2C_Read... [12:24:55]Read from MH i2c: E2 0B 00 [12:24:55]MH_I2C_Read... [12:24:55]Read from MH i2c: E2 0B 00 5D A7 00 53 FE DF E7 F6 BC 21 D2 90 00 3C [12:24:55]RAPDU: 53 FE DF E7 F6 BC 21 D2 90 00 [12:24:55]wFMCommunicate OK [12:24:55]SAM_PROTO_SignData done [12:24:55]FM_MakeSignedData done [12:24:55]CreateOFDProtocolMessage [12:24:55]wFMCommunicate request_size=4 [12:24:55]MH_SAM_APDU [12:24:55]CAPDU: 80 11 00 00 [12:24:55]Write to MH i2c: E2 08 00 5E A7 80 11 00 00 00 00 00 00 7F [12:24:55]Write i2c OK [12:24:55]MH_I2C_Read... [12:24:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:24:55]Read from MH i2c: E2 [12:24:55]MH_I2C_Read... [12:24:55]Read from MH i2c: E2 17 00 [12:24:55]MH_I2C_Read... [12:24:55]Read from MH i2c: E2 17 00 5E A7 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 D2 [12:24:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [12:24:55]wFMCommunicate OK [12:24:55]CreateOFDProtocolMessage done [12:24:55]OFDSenderStorePacket 103663 [12:24:55]StoreOFDPacket docnum=103663 [12:24:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 90 35 07 01 53 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 48 58 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 30 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 40 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 22 CE 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 EF 94 01 00 35 04 06 00 17 E7 C1 46 DB 3E 53 FE DF E7 F6 BC 21 D2 [12:24:55]CheckFolder [12:24:55]dirname=/storage/ofd_packets [12:24:55]CheckFolder done [12:24:55]ProducePacketName [12:24:55]name=ofd_packets/00103663 [12:24:55]NVStorageSaveData ofd_packets/00103663 [12:24:55]File name is /storage/ofd_packets/00103663 [12:24:55]Write 301 bytes [12:24:55]NVStorageSaveData done [12:24:55]OFDSenderStorePacket done [12:24:55]KKMCreateOFDPacket done [12:24:55]NVStorageSaveData kkm_last_timestamp [12:24:55]File name is /storage/kkm_last_timestamp [12:24:55]Write 4 bytes [12:24:55]NVStorageSaveData done [12:24:55]ExternCall_PrintAddStr [12:24:55]wPrintStart [12:24:55]Write to MH i2c: 01 00 00 5F A7 06 [12:24:55]Write i2c OK [12:24:55]MH_I2C_Read... [12:24:55]Read from MH i2c: 01 [12:24:55]MH_I2C_Read... [12:24:55]Read from MH i2c: 01 07 00 [12:24:55]MH_I2C_Read... [12:24:55]Read from MH i2c: 01 07 00 5F A7 00 00 00 00 00 FF 0F 1B [12:24:55]RasterBufferAndPrint [12:24:55]line Счет N : (1)672915 [12:24:55]line ИНН: 02508201610067 [12:24:55]line Контрольно-Кассовый Чек [12:24:55]line ПРОДАЖА [12:24:55]line ТРК (МРК, ГНК) : 32 [12:24:55]line Товар: 2710124130 [12:24:55]line Аи-92-К-5 [12:24:55]line 22.600 * 66.40 [12:24:55]line = 1500.64 [12:24:55]line НДС 12% НСП 1% [12:24:55]line > о реализуемом товаре [12:24:55]line ОКРУГЛЕНИЕ: -0.64 [12:24:55]line ИТОГО: 1500.00 [12:24:55]line Внесено: 1500.00 [12:24:55]line СДАЧА: 0.00 [12:24:55]line НСП 1% : 13.28 [12:24:55]line НДС 12% : 159.36 [12:24:55]line Наличными: 1500.00 [12:24:55]line Безнал.: 0.00 [12:24:55]line Место: АЗС № 120 "Партнер Нефть" [12:24:55]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [12:24:55]line СНО: Общий режим [12:24:55]line Чек 93 19.06.2024 12:25 [12:24:55]line Смена: 353 ФФД: 1.0 [12:24:55]line ЗНМ: 0300000164 [12:24:55]line РНМ: 0000000000092785 [12:24:55]line Версия ККМ: 001 [12:24:55]line ФМ: 0000000000875093 [12:24:55]line ФД: 103663 [12:24:55]line ФПД: 26284147530558 [12:24:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T122506&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103663&fm=26284147530558&tin=02508201610067®Number=0000000000092785&sum=150000 [12:24:56]OFD Sender: Processing packet 103663 [packets to send 17, broken 16] [12:24:56]ProducePacketName [12:24:56]name=ofd_packets/00103663 [12:24:56]OFD Sender: To server: pG, [12:24:56]CommunicateWithHost lk.salyk.kg:30040 [12:24:56]ConnectInit lk.salyk.kg [12:24:56]written 0, free lines is 4095 [12:24:56]Connected sock=10 [12:24: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 39 33 0F 01 00 00 90 35 07 01 53 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 48 58 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 30 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 40 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 22 CE 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 EF 94 01 00 35 04 06 00 17 E7 C1 46 DB 3E 53 FE DF E7 F6 BC 21 D2 [12:24: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 39 33 4F 00 00 00 24 DD 47 00 43 9E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 EF 94 01 00 F4 03 04 00 AB 74 72 66 B6 04 01 00 00 D1 15 96 81 10 ED E0 6D [12:24:56]CommunicateWithHost err = 0 [12:24:56]CheckOFDResponse [12:24:56]1017 (14) - 77093643461234 [12:24:56]1041 (16) - 0000000000875093 [12:24:56]1040 (4) - 103663 [12:24:56]1012 (4) - 19.06.2024 06:03 [12:24:56]1206 (1) - 0 [12:24:56]OFD Sender: Remove packet 103663 [12:24:56]ProducePacketName [12:24:56]name=ofd_packets/00103663 [12:24:56]NVStorageDeleteData [12:24:56]Write to MH i2c: 01 00 00 8A A7 31 [12:24:56]Write i2c OK [12:24:56]MH_I2C_Read... [12:24:56]Read from MH i2c: 01 [12:24:56]MH_I2C_Read... [12:24:56]Read from MH i2c: 01 07 00 [12:24:56]MH_I2C_Read... [12:24:56]Read from MH i2c: 01 07 00 8A A7 00 00 00 00 00 E9 0C 2D [12:24:56]RasterBufferAndPrint [12:24:56]line [12:24:56]line [12:24:56]line [12:24:56]line [12:24:56]line [12:24:56]written 0, free lines is 3311 [12:24:56]MH_Cut [12:24:56]Write to MH i2c: D1 01 00 91 A7 01 0A [12:24:56]Write i2c OK [12:24:56]MH_I2C_Read... [12:24:56]Read from MH i2c: D1 [12:24:56]MH_I2C_Read... [12:24:56]Read from MH i2c: D1 01 00 [12:24:56]MH_I2C_Read... [12:24:56]Read from MH i2c: D1 01 00 91 A7 00 09 [12:24:56]Write to MH i2c: 01 00 00 92 A7 39 [12:24:56]Write i2c OK [12:24:56]MH_I2C_Read... [12:24:56]OFD Sender: No OFD packet to send [12:24:57]*** Cut start [12:24:57]*** Partial cut [12:24:57]*** CUTSNS_PIN = 1 [12:24:57]*** CUTSNS_PIN = 0 [12:24:57]*** Brake cut motor [12:24:57]Read from MH i2c: 01 [12:24:57]MH_I2C_Read... [12:24:57]*** Stop cut motor [12:24:57]*** Cut end [12:24:57]Read from MH i2c: 01 07 00 [12:24:57]MH_I2C_Read... [12:24:57]Read from MH i2c: 01 07 00 92 A7 00 00 00 00 00 FF 0F 4E [12:24:57]process_action close_receipt done [12:24:57]requested_data is exist [12:24:57]produce_requested_data [12:24:57]requested_item fm.sn is exist - process it [12:24:57]wFMCommunicate request_size=4 [12:24:57]MH_SAM_APDU [12:24:57]CAPDU: 80 11 00 00 [12:24:57]Write to MH i2c: E2 08 00 93 A7 80 11 00 00 00 00 00 00 B4 [12:24:57]Write i2c OK [12:24:57]MH_I2C_Read... [12:24:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:24:57]Read from MH i2c: E2 [12:24:57]MH_I2C_Read... [12:24:57]Read from MH i2c: E2 17 00 [12:24:57]MH_I2C_Read... [12:24:57]Read from MH i2c: E2 17 00 93 A7 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 07 [12:24:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [12:24:57]wFMCommunicate OK [12:24:57]requested_item fd.num is exist - process it [12:24:57]SAM_PROTO_GetFieldsCounters [12:24:57]wFMCommunicate request_size=4 [12:24:57]MH_SAM_APDU [12:24:57]CAPDU: 80 13 00 00 [12:24:57]Write to MH i2c: E2 08 00 94 A7 80 13 00 00 00 00 00 00 B7 [12:24:57]Write i2c OK [12:24:57]MH_I2C_Read... [12:24:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:24:58]Read from MH i2c: E2 [12:24:58]MH_I2C_Read... [12:24:58]Read from MH i2c: E2 62 00 [12:24:58]MH_I2C_Read... [12:24:58]Read from MH i2c: E2 62 00 94 A7 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 EF 94 01 00 0E 04 04 00 61 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 DB [12:24: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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 EF 94 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 5D 00 00 00 5E 04 04 00 5D 00 00 00 57 04 04 00 5E 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:24:58]wFMCommunicate OK [12:24:58]SAM_PROTO_GetFieldsCounters done [12:24:58]requested_item shift.num is exist - process it [12:24:58]requested_item shift.opened is exist - process it [12:24:58]req_shift_opened [12:24:58]FM_GetShiftState [12:24:58]SAM_PROTO_GetShiftState [12:24:58]wFMCommunicate request_size=4 [12:24:58]MH_SAM_APDU [12:24:58]CAPDU: 80 13 01 00 [12:24:58]Write to MH i2c: E2 08 00 95 A7 80 13 01 00 00 00 00 00 B9 [12:24:58]Write i2c OK [12:24:58]MH_I2C_Read... [12:24:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:24:58]Read from MH i2c: E2 [12:24:58]MH_I2C_Read... [12:24:58]Read from MH i2c: E2 0E 00 [12:24:58]MH_I2C_Read... [12:24:58]Read from MH i2c: E2 0E 00 95 A7 00 09 00 01 04 26 72 66 00 00 00 00 90 00 C7 [12:24:58]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [12:24:58]wFMCommunicate OK [12:24:58]SAM_PROTO_GetShiftState done [12:24:58]FM_GetShiftState done [12:24:58]req_shift_opened done [12:24:58]requested_item shift.open_date is exist - process it [12:24:58]req_shift_open_date [12:24:58]req_shift_open_date done [12:24:58]produce_requested_data done [12:24:58]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103663,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [12:24:58]process_action_free close_receipt [12:24:58]json_value_free [12:24:58]json_value_free done [12:24:58]process_json_proto returns [12:24:58]Send response to host [12:24:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103663,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [12:24:58]free response buf [12:24:58]execute_script done [12:24:58]execute_script returns [12:24:58]free content buf [12:24:58]Sock 7.Close socket [12:24:58]Sock 7.Thread stoped [12:25:01]OFD Sender: No OFD packet to send [12:25:06]OFD Sender: No OFD packet to send [12:25:11]OFD Sender: No OFD packet to send [12:25:16]OFD Sender: No OFD packet to send [12:25:21]OFD Sender: No OFD packet to send [12:25:26]OFD Sender: No OFD packet to send [12:25:31]OFD Sender: No OFD packet to send [12:25:36]OFD Sender: No OFD packet to send [12:25:41]OFD Sender: No OFD packet to send [12:25:46]OFD Sender: No OFD packet to send [12:25:51]OFD Sender: No OFD packet to send [12:25:57]OFD Sender: No OFD packet to send [12:26:02]OFD Sender: No OFD packet to send [12:26:07]OFD Sender: No OFD packet to send [12:26:07]accept exits with 9 [12:26:07]New connection [12:26:07]New thread 3067227492 created [12:26:07]Thread 3067084132 joined [12:26:07]Waiting for new connection... [12:26:07] Sock 9.Parse request [12:26:07]Sock 9.Check first char [12:26:07]Sock 9.First char is OK [12:26:07]request: POST /json_proto HTTP/1.0 [12:26:07]Method: POST [12:26:07]URL: /json_proto [12:26:07]Method is POST - this is cgi request [12:26:07]url: /json_proto [12:26:07]query_string will be loaded in cgi processing [12:26:07]execute_cgi json_proto POST (null) [12:26:07]execute_cgi path=json_proto method=POST [12:26:07]POST find Content-Length [12:26:07]Host: 172.17.38.133:8080 [12:26:07]Content-Length: 800 [12:26:07]Content-Type: application/json [12:26:07] [12:26:07]POST finish read [12:26:07]Found Content-Length = 800 [12:26:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672917", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 3.140, "sum" : 208.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 208.50 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:26:07]execute_script... [12:26:07]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672917", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 3.140, "sum" : 208.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 208.50 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:26:07]POST & json_proto [12:26:07]process_json_proto [12:26:07]json parsed OK: [12:26:07]protocol is kg_v1.0 [12:26:07]action value=close_receipt [12:26:07]process_action close_receipt [12:26:07]cmd_close_receipt [12:26:07]MH_GetDate [12:26:07]Write to MH i2c: F0 00 00 96 A7 2C [12:26:07]Write i2c OK [12:26:07]MH_I2C_Read... [12:26:07]Read from MH i2c: F0 [12:26:07]MH_I2C_Read... [12:26:07]Read from MH i2c: F0 09 00 [12:26:07]MH_I2C_Read... [12:26:07]Read from MH i2c: F0 09 00 96 A7 00 6B CE 72 66 BD 8F 7C 64 72 [12:26:07]GetLastDocTimeStamp 1718799906 [12:26:07]current date 1718799979 [12:26:07]FM_GetShiftState [12:26:07]SAM_PROTO_GetShiftState [12:26:07]wFMCommunicate request_size=4 [12:26:07]MH_SAM_APDU [12:26:07]CAPDU: 80 13 01 00 [12:26:07]Write to MH i2c: E2 08 00 97 A7 80 13 01 00 00 00 00 00 BB [12:26:07]Write i2c OK [12:26:07]MH_I2C_Read... [12:26:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:26:07]Read from MH i2c: E2 [12:26:07]MH_I2C_Read... [12:26:07]Read from MH i2c: E2 0E 00 [12:26:07]MH_I2C_Read... [12:26:07]Read from MH i2c: E2 0E 00 97 A7 00 09 00 01 04 26 72 66 00 00 00 00 90 00 C9 [12:26:07]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [12:26:07]wFMCommunicate OK [12:26:07]SAM_PROTO_GetShiftState done [12:26:07]FM_GetShiftState done [12:26:07]opened in 1718756868 [12:26:07]opened+sec_in_day 1718843268 [12:26:07]quantity*price = 20849 [12:26:07]sum+1 = 20851 [12:26:07]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 208.50 НСП 1% : 1.84 НДС 12% : 22.14 Наличными: 0.00 Безнал.: 208.50 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 94 19.06.2024 12:26 Смена: 353 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000875093 ФД: 103664 ФПД: 152463725856874 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T122620&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103664&fm=152463725856874&tin=02508201610067®Number=0000000000092785&sum=20850 [12:26:08]StoreToDocumentArchive [12:26:08]shift 353 fd 103664 [12:26:08]save to /storage/0353/doc_00103664 [12:26:08]save last doc name /storage/0353/doc_00103664 to /storage/kkm_last_doc_name [12:26:08]save OK [12:26:08]Clear old archive folders... [12:26:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:26:08]tlvbuf is 01394DA0 [12:26:08]SAM_PROTO_ClearQueue [12:26:08]wFMCommunicate request_size=4 [12:26:08]MH_SAM_APDU [12:26:08]CAPDU: 80 09 00 00 [12:26:08]Write to MH i2c: E2 08 00 A4 A7 80 09 00 00 00 00 00 00 BD [12:26:08]Write i2c OK [12:26:08]MH_I2C_Read... [12:26:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:26:08]Read from MH i2c: E2 [12:26:08]MH_I2C_Read... [12:26:08]Read from MH i2c: E2 03 00 [12:26:08]MH_I2C_Read... [12:26:08]Read from MH i2c: E2 03 00 A4 A7 00 90 00 BF [12:26:08]RAPDU: 90 00 [12:26:08]wFMCommunicate OK [12:26:08]SAM_PROTO_ClearQueue done [12:26:08]KKMCreateOFDPacket [12:26:08]OFDProtocolAddRootSTLVToBuf [12:26:08]FM_MakeSignedData [12:26:08]FM_MakeSignedData [12:26:08]SAM_PROTO_SignData [12:26:08]wFMCommunicate request_size=4 [12:26:08]MH_SAM_APDU [12:26:08]CAPDU: 80 0D 01 02 [12:26:08]Write to MH i2c: E2 08 00 A5 A7 80 0D 01 02 00 00 00 00 C5 [12:26:08]Write i2c OK [12:26:08]MH_I2C_Read... [12:26:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:26:08]Read from MH i2c: E2 [12:26:08]MH_I2C_Read... [12:26:08]Read from MH i2c: E2 03 00 [12:26:08]MH_I2C_Read... [12:26:08]Read from MH i2c: E2 03 00 A5 A7 00 90 00 C0 [12:26:08]RAPDU: 90 00 [12:26:08]wFMCommunicate OK [12:26:08]wFMCommunicate request_size=255 [12:26:08]MH_SAM_APDU [12:26:08]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 44 0C 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 72 51 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 72 51 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A6 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 72 51 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 6C CE 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 F0 94 01 00 35 04 06 00 8A [12:26:08]Write to MH i2c: E2 02 01 A6 A7 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 44 0C 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 72 51 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 72 51 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A6 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 72 51 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 6C CE 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 F0 94 01 00 35 04 06 00 8A 00 00 BE [12:26:08]Write i2c OK [12:26:08]MH_I2C_Read... [12:26:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:26:09]Read from MH i2c: E2 [12:26:09]MH_I2C_Read... [12:26:09]Read from MH i2c: E2 03 00 [12:26:09]MH_I2C_Read... [12:26:09]Read from MH i2c: E2 03 00 A6 A7 00 90 00 C1 [12:26:09]RAPDU: 90 00 [12:26:09]wFMCommunicate OK [12:26:09]wFMCommunicate request_size=10 [12:26:09]MH_SAM_APDU [12:26:09]CAPDU: 80 0D 02 02 05 AA 3A 38 88 6A [12:26:09]Write to MH i2c: E2 0D 00 A7 A7 80 0D 02 02 05 00 AA 3A 38 88 6A 00 00 E0 [12:26:09]Write i2c OK [12:26:09]MH_I2C_Read... [12:26:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:26:09]Read from MH i2c: E2 [12:26:09]MH_I2C_Read... [12:26:09]Read from MH i2c: E2 03 00 [12:26:09]MH_I2C_Read... [12:26:09]Read from MH i2c: E2 03 00 A7 A7 00 90 00 C2 [12:26:09]RAPDU: 90 00 [12:26:09]wFMCommunicate OK [12:26:09]wFMCommunicate request_size=4 [12:26:09]MH_SAM_APDU [12:26:09]CAPDU: 80 0D 03 02 [12:26:09]Write to MH i2c: E2 08 00 A8 A7 80 0D 03 02 00 00 00 00 CA [12:26:09]Write i2c OK [12:26:09]MH_I2C_Read... [12:26:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:26:09]Read from MH i2c: E2 [12:26:09]MH_I2C_Read... [12:26:09]Read from MH i2c: E2 0B 00 [12:26:09]MH_I2C_Read... [12:26:09]Read from MH i2c: E2 0B 00 A8 A7 00 1A 7E 14 1E 5F 98 75 BC 90 00 BD [12:26:09]RAPDU: 1A 7E 14 1E 5F 98 75 BC 90 00 [12:26:09]wFMCommunicate OK [12:26:09]SAM_PROTO_SignData done [12:26:09]FM_MakeSignedData done [12:26:09]CreateOFDProtocolMessage [12:26:09]wFMCommunicate request_size=4 [12:26:09]MH_SAM_APDU [12:26:09]CAPDU: 80 11 00 00 [12:26:09]Write to MH i2c: E2 08 00 A9 A7 80 11 00 00 00 00 00 00 CA [12:26:09]Write i2c OK [12:26:09]MH_I2C_Read... [12:26:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:26:09]Read from MH i2c: E2 [12:26:09]MH_I2C_Read... [12:26:09]Read from MH i2c: E2 17 00 [12:26:09]MH_I2C_Read... [12:26:09]Read from MH i2c: E2 17 00 A9 A7 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 1D [12:26:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [12:26:09]wFMCommunicate OK [12:26:09]CreateOFDProtocolMessage done [12:26:09]OFDSenderStorePacket 103664 [12:26:09]StoreOFDPacket docnum=103664 [12:26:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 A7 A8 07 01 8C 73 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 44 0C 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 72 51 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 72 51 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A6 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 72 51 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 6C CE 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 F0 94 01 00 35 04 06 00 8A AA 3A 38 88 6A 1A 7E 14 1E 5F 98 75 BC [12:26:09]CheckFolder [12:26:09]dirname=/storage/ofd_packets [12:26:09]CheckFolder done [12:26:09]ProducePacketName [12:26:09]name=ofd_packets/00103664 [12:26:09]NVStorageSaveData ofd_packets/00103664 [12:26:09]File name is /storage/ofd_packets/00103664 [12:26:09]Write 301 bytes [12:26:09]NVStorageSaveData done [12:26:09]OFDSenderStorePacket done [12:26:09]KKMCreateOFDPacket done [12:26:09]NVStorageSaveData kkm_last_timestamp [12:26:09]File name is /storage/kkm_last_timestamp [12:26:09]Write 4 bytes [12:26:09]NVStorageSaveData done [12:26:09]ExternCall_PrintAddStr [12:26:09]wPrintStart [12:26:09]Write to MH i2c: 01 00 00 AA A7 51 [12:26:09]Write i2c OK [12:26:09]MH_I2C_Read... [12:26:09]Read from MH i2c: 01 [12:26:09]MH_I2C_Read... [12:26:09]Read from MH i2c: 01 07 00 [12:26:09]MH_I2C_Read... [12:26:09]Read from MH i2c: 01 07 00 AA A7 00 00 00 00 00 FF 0F 66 [12:26:09]RasterBufferAndPrint [12:26:09]line Счет N : (1)672917 [12:26:09]line ИНН: 02508201610067 [12:26:09]line Контрольно-Кассовый Чек [12:26:09]line ПРОДАЖА [12:26:09]line ТРК (МРК, ГНК) : 42 [12:26:09]line Товар: 2710124130 [12:26:09]line Аи-92-К-5 [12:26:09]line 3.140 * 66.40 [12:26:09]line = 208.50 [12:26:09]line НДС 12% НСП 1% [12:26:09]line > о реализуемом товаре [12:26:09]line ИТОГО: 208.50 [12:26:09]line НСП 1% : 1.84 [12:26:09]line НДС 12% : 22.14 [12:26:09]line Наличными: 0.00 [12:26:09]line Безнал.: 208.50 [12:26:09]line Место: АЗС № 120 "Партнер Нефть" [12:26:09]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [12:26:09]line СНО: Общий режим [12:26:09]line Чек 94 19.06.2024 12:26 [12:26:09]line Смена: 353 ФФД: 1.0 [12:26:09]line ЗНМ: 0300000164 [12:26:09]line РНМ: 0000000000092785 [12:26:09]line Версия ККМ: 001 [12:26:09]line Платежная система: O! деньги [12:26:09]line ФМ: 0000000000875093 [12:26:09]line ФД: 103664 [12:26:09]line ФПД: 152463725856874 [12:26:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T122620&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103664&fm=152463725856874&tin=02508201610067®Number=0000000000092785&sum=20850 [12:26:09]OFD Sender: Processing packet 103664 [packets to send 17, broken 16] [12:26:09]ProducePacketName [12:26:09]name=ofd_packets/00103664 [12:26:09]OFD Sender: To server: pG, [12:26:09]CommunicateWithHost lk.salyk.kg:30040 [12:26:09]ConnectInit lk.salyk.kg [12:26:09]written 0, free lines is 4095 [12:26:09]Connected sock=10 [12:26:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 A7 A8 07 01 8C 73 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 44 0C 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 72 51 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 72 51 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A6 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 72 51 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 6C CE 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 F0 94 01 00 35 04 06 00 8A AA 3A 38 88 6A 1A 7E 14 1E 5F 98 75 BC [12:26: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 39 33 4F 00 00 00 4E A3 47 00 21 DC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 F0 94 01 00 F4 03 04 00 F4 74 72 66 B6 04 01 00 00 68 75 23 90 BA AC 4D 30 [12:26:10]CommunicateWithHost err = 0 [12:26:10]CheckOFDResponse [12:26:10]1017 (14) - 77093643461234 [12:26:10]1041 (16) - 0000000000875093 [12:26:10]1040 (4) - 103664 [12:26:10]1012 (4) - 19.06.2024 06:04 [12:26:10]1206 (1) - 0 [12:26:10]OFD Sender: Remove packet 103664 [12:26:10]ProducePacketName [12:26:10]name=ofd_packets/00103664 [12:26:10]NVStorageDeleteData [12:26:10]Write to MH i2c: 01 00 00 D4 A7 7B [12:26:10]Write i2c OK [12:26:10]MH_I2C_Read... [12:26:10]Read from MH i2c: 01 [12:26:10]MH_I2C_Read... [12:26:10]Read from MH i2c: 01 07 00 [12:26:10]MH_I2C_Read... [12:26:10]Read from MH i2c: 01 07 00 D4 A7 00 00 00 00 00 FF 0C 8D [12:26:10]RasterBufferAndPrint [12:26:10]line [12:26:10]line [12:26:10]line [12:26:10]line [12:26:10]line [12:26:10]written 0, free lines is 3336 [12:26:10]MH_Cut [12:26:10]Write to MH i2c: D1 01 00 DB A7 01 54 [12:26:10]Write i2c OK [12:26:10]MH_I2C_Read... [12:26:10]Read from MH i2c: D1 [12:26:10]MH_I2C_Read... [12:26:10]Read from MH i2c: D1 01 00 [12:26:10]MH_I2C_Read... [12:26:10]Read from MH i2c: D1 01 00 DB A7 00 53 [12:26:10]Write to MH i2c: 01 00 00 DC A7 83 [12:26:10]Write i2c OK [12:26:10]MH_I2C_Read... [12:26:10]OFD Sender: No OFD packet to send [12:26:10]*** Cut start [12:26:10]*** Partial cut [12:26:10]*** CUTSNS_PIN = 1 [12:26:10]*** CUTSNS_PIN = 0 [12:26:11]*** Brake cut motor [12:26:11]Read from MH i2c: 01 [12:26:11]MH_I2C_Read... [12:26:11]*** Stop cut motor [12:26:11]*** Cut end [12:26:11]Read from MH i2c: 01 07 00 [12:26:11]MH_I2C_Read... [12:26:11]Read from MH i2c: 01 07 00 DC A7 00 00 00 00 00 FF 0F 98 [12:26:11]process_action close_receipt done [12:26:11]requested_data is exist [12:26:11]produce_requested_data [12:26:11]requested_item fm.sn is exist - process it [12:26:11]wFMCommunicate request_size=4 [12:26:11]MH_SAM_APDU [12:26:11]CAPDU: 80 11 00 00 [12:26:11]Write to MH i2c: E2 08 00 DD A7 80 11 00 00 00 00 00 00 FE [12:26:11]Write i2c OK [12:26:11]MH_I2C_Read... [12:26:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:26:11]Read from MH i2c: E2 [12:26:11]MH_I2C_Read... [12:26:11]Read from MH i2c: E2 17 00 [12:26:11]MH_I2C_Read... [12:26:11]Read from MH i2c: E2 17 00 DD A7 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 51 [12:26:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [12:26:11]wFMCommunicate OK [12:26:11]requested_item fd.num is exist - process it [12:26:11]SAM_PROTO_GetFieldsCounters [12:26:11]wFMCommunicate request_size=4 [12:26:11]MH_SAM_APDU [12:26:11]CAPDU: 80 13 00 00 [12:26:11]Write to MH i2c: E2 08 00 DE A7 80 13 00 00 00 00 00 00 01 [12:26:11]Write i2c OK [12:26:11]MH_I2C_Read... [12:26:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:26:11]Read from MH i2c: E2 [12:26:11]MH_I2C_Read... [12:26:11]Read from MH i2c: E2 62 00 [12:26:11]MH_I2C_Read... [12:26:11]Read from MH i2c: E2 62 00 DE A7 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 F0 94 01 00 0E 04 04 00 61 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 29 [12:26:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 F0 94 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 5E 00 00 00 5E 04 04 00 5E 00 00 00 57 04 04 00 5F 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:26:11]wFMCommunicate OK [12:26:11]SAM_PROTO_GetFieldsCounters done [12:26:11]requested_item shift.num is exist - process it [12:26:11]requested_item shift.opened is exist - process it [12:26:11]req_shift_opened [12:26:11]FM_GetShiftState [12:26:11]SAM_PROTO_GetShiftState [12:26:11]wFMCommunicate request_size=4 [12:26:11]MH_SAM_APDU [12:26:11]CAPDU: 80 13 01 00 [12:26:11]Write to MH i2c: E2 08 00 DF A7 80 13 01 00 00 00 00 00 03 [12:26:11]Write i2c OK [12:26:11]MH_I2C_Read... [12:26:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:26:11]Read from MH i2c: E2 [12:26:11]MH_I2C_Read... [12:26:11]Read from MH i2c: E2 0E 00 [12:26:11]MH_I2C_Read... [12:26:11]Read from MH i2c: E2 0E 00 DF A7 00 09 00 01 04 26 72 66 00 00 00 00 90 00 11 [12:26:11]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [12:26:11]wFMCommunicate OK [12:26:11]SAM_PROTO_GetShiftState done [12:26:11]FM_GetShiftState done [12:26:11]req_shift_opened done [12:26:11]requested_item shift.open_date is exist - process it [12:26:11]req_shift_open_date [12:26:11]req_shift_open_date done [12:26:11]produce_requested_data done [12:26:11]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103664,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [12:26:11]process_action_free close_receipt [12:26:11]json_value_free [12:26:11]json_value_free done [12:26:11]process_json_proto returns [12:26:11]Send response to host [12:26:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103664,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [12:26:11]free response buf [12:26:11]execute_script done [12:26:11]execute_script returns [12:26:11]free content buf [12:26:11]Sock 9.Close socket [12:26:11]Sock 9.Thread stoped [12:26:15]OFD Sender: No OFD packet to send [12:26:20]OFD Sender: No OFD packet to send [12:26:25]OFD Sender: No OFD packet to send [12:26:30]accept exits with 7 [12:26:30]New connection [12:26:30]New thread 3067084132 created [12:26:30]Thread 3067227492 joined [12:26:30]Waiting for new connection... [12:26:30] Sock 7.Parse request [12:26:30]Sock 7.Check first char [12:26:30]Sock 7.First char is OK [12:26:30]request: POST /json_proto HTTP/1.0 [12:26:30]Method: POST [12:26:30]URL: /json_proto [12:26:30]Method is POST - this is cgi request [12:26:30]url: /json_proto [12:26:30]query_string will be loaded in cgi processing [12:26:30]execute_cgi json_proto POST (null) [12:26:30]execute_cgi path=json_proto method=POST [12:26:30]POST find Content-Length [12:26:30]Host: 172.17.38.133:8080 [12:26:30]Content-Length: 687 [12:26:30]Content-Type: application/json [12:26:30] [12:26:30]POST finish read [12:26:30]Found Content-Length = 687 [12:26:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672916", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 14.610, "sum" : 1065.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1065.00, "total" : 1065.00, "payments": [ { "type": 0, "sum" : 1065.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:26:30]execute_script... [12:26: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)672916", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 14.610, "sum" : 1065.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1065.00, "total" : 1065.00, "payments": [ { "type": 0, "sum" : 1065.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:26:30]POST & json_proto [12:26:30]process_json_proto [12:26:30]json parsed OK: [12:26:30]protocol is kg_v1.0 [12:26:30]action value=close_receipt [12:26:30]process_action close_receipt [12:26:30]cmd_close_receipt [12:26:30]MH_GetDate [12:26:30]Write to MH i2c: F0 00 00 E0 A7 76 [12:26:30]Write i2c OK [12:26:30]MH_I2C_Read... [12:26:30]Read from MH i2c: F0 [12:26:30]MH_I2C_Read... [12:26:30]Read from MH i2c: F0 09 00 [12:26:30]MH_I2C_Read... [12:26:30]Read from MH i2c: F0 09 00 E0 A7 00 82 CE 72 66 BD 8F 7C 64 D3 [12:26:30]GetLastDocTimeStamp 1718799980 [12:26:30]current date 1718800002 [12:26:30]FM_GetShiftState [12:26:30]SAM_PROTO_GetShiftState [12:26:30]wFMCommunicate request_size=4 [12:26:30]MH_SAM_APDU [12:26:30]CAPDU: 80 13 01 00 [12:26:30]Write to MH i2c: E2 08 00 E1 A7 80 13 01 00 00 00 00 00 05 [12:26:30]Write i2c OK [12:26:30]MH_I2C_Read... [12:26:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:26:30]Read from MH i2c: E2 [12:26:30]MH_I2C_Read... [12:26:30]Read from MH i2c: E2 0E 00 [12:26:30]MH_I2C_Read... [12:26:30]Read from MH i2c: E2 0E 00 E1 A7 00 09 00 01 04 26 72 66 00 00 00 00 90 00 13 [12:26:30]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [12:26:30]wFMCommunicate OK [12:26:30]SAM_PROTO_GetShiftState done [12:26:30]FM_GetShiftState done [12:26:30]opened in 1718756868 [12:26:30]opened+sec_in_day 1718843268 [12:26:30]quantity*price = 106506 [12:26:30]sum+1 = 106508 [12:26:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.07 ИТОГО: 1065.00 Внесено: 1065.00 СДАЧА: 0.00 НСП 1% : 9.42 НДС 12% : 113.10 Наличными: 1065.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 95 19.06.2024 12:26 Смена: 353 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103665 ФПД: 125020723572885 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T122642&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103665&fm=125020723572885&tin=02508201610067®Number=0000000000092785&sum=106500 [12:26:31]StoreToDocumentArchive [12:26:31]shift 353 fd 103665 [12:26:31]save to /storage/0353/doc_00103665 [12:26:31]save last doc name /storage/0353/doc_00103665 to /storage/kkm_last_doc_name [12:26:31]save OK [12:26:31]Clear old archive folders... [12:26:31]ProcessDocumentItem done err = 0, tmpTLVsize=252 [12:26:31]tlvbuf is 0152BF20 [12:26:31]SAM_PROTO_ClearQueue [12:26:31]wFMCommunicate request_size=4 [12:26:31]MH_SAM_APDU [12:26:31]CAPDU: 80 09 00 00 [12:26:31]Write to MH i2c: E2 08 00 EE A7 80 09 00 00 00 00 00 00 07 [12:26:31]Write i2c OK [12:26:31]MH_I2C_Read... [12:26:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:26:31]Read from MH i2c: E2 [12:26:31]MH_I2C_Read... [12:26:31]Read from MH i2c: E2 03 00 [12:26:31]MH_I2C_Read... [12:26:31]Read from MH i2c: E2 03 00 EE A7 00 90 00 09 [12:26:31]RAPDU: 90 00 [12:26:31]wFMCommunicate OK [12:26:31]SAM_PROTO_ClearQueue done [12:26:31]KKMCreateOFDPacket [12:26:31]OFDProtocolAddRootSTLVToBuf [12:26:31]FM_MakeSignedData [12:26:31]FM_MakeSignedData [12:26:31]SAM_PROTO_SignData [12:26:31]wFMCommunicate request_size=4 [12:26:31]MH_SAM_APDU [12:26:31]CAPDU: 80 0D 01 02 [12:26:31]Write to MH i2c: E2 08 00 EF A7 80 0D 01 02 00 00 00 00 0F [12:26:31]Write i2c OK [12:26:31]MH_I2C_Read... [12:26:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:26:31]Read from MH i2c: E2 [12:26:31]MH_I2C_Read... [12:26:31]Read from MH i2c: E2 03 00 [12:26:31]MH_I2C_Read... [12:26:31]Read from MH i2c: E2 03 00 EF A7 00 90 00 0A [12:26:31]RAPDU: 90 00 [12:26:31]wFMCommunicate OK [12:26:31]wFMCommunicate request_size=255 [12:26:31]MH_SAM_APDU [12:26:31]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 12 39 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 0B A0 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 A0 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AE 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2E 2C 00 00 00 00 07 04 06 00 04 A0 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 82 CE 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 F1 94 01 00 35 04 06 00 [12:26:31]Write to MH i2c: E2 02 01 F0 A7 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 12 39 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 0B A0 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 A0 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AE 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2E 2C 00 00 00 00 07 04 06 00 04 A0 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 82 CE 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 F1 94 01 00 35 04 06 00 00 00 AB [12:26:31]Write i2c OK [12:26:31]MH_I2C_Read... [12:26:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:26:31]Read from MH i2c: E2 [12:26:31]MH_I2C_Read... [12:26:31]Read from MH i2c: E2 03 00 [12:26:31]MH_I2C_Read... [12:26:31]Read from MH i2c: E2 03 00 F0 A7 00 90 00 0B [12:26:31]RAPDU: 90 00 [12:26:31]wFMCommunicate OK [12:26:31]wFMCommunicate request_size=11 [12:26:31]MH_SAM_APDU [12:26:31]CAPDU: 80 0D 02 02 06 71 B4 A7 D1 70 95 [12:26:31]Write to MH i2c: E2 0E 00 F1 A7 80 0D 02 02 06 00 71 B4 A7 D1 70 95 00 00 C0 [12:26:31]Write i2c OK [12:26:31]MH_I2C_Read... [12:26:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:26:31]Read from MH i2c: E2 [12:26:31]MH_I2C_Read... [12:26:31]Read from MH i2c: E2 03 00 [12:26:31]MH_I2C_Read... [12:26:31]Read from MH i2c: E2 03 00 F1 A7 00 90 00 0C [12:26:31]RAPDU: 90 00 [12:26:31]wFMCommunicate OK [12:26:31]wFMCommunicate request_size=4 [12:26:31]MH_SAM_APDU [12:26:31]CAPDU: 80 0D 03 02 [12:26:31]Write to MH i2c: E2 08 00 F2 A7 80 0D 03 02 00 00 00 00 14 [12:26:31]Write i2c OK [12:26:31]MH_I2C_Read... [12:26:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:26:32]Read from MH i2c: E2 [12:26:32]MH_I2C_Read... [12:26:32]Read from MH i2c: E2 0B 00 [12:26:32]MH_I2C_Read... [12:26:32]Read from MH i2c: E2 0B 00 F2 A7 00 35 A2 83 01 70 80 00 E0 90 00 40 [12:26:32]RAPDU: 35 A2 83 01 70 80 00 E0 90 00 [12:26:32]wFMCommunicate OK [12:26:32]SAM_PROTO_SignData done [12:26:32]FM_MakeSignedData done [12:26:32]CreateOFDProtocolMessage [12:26:32]wFMCommunicate request_size=4 [12:26:32]MH_SAM_APDU [12:26:32]CAPDU: 80 11 00 00 [12:26:32]Write to MH i2c: E2 08 00 F3 A7 80 11 00 00 00 00 00 00 14 [12:26:32]Write i2c OK [12:26:32]MH_I2C_Read... [12:26:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:26:32]Read from MH i2c: E2 [12:26:32]MH_I2C_Read... [12:26:32]Read from MH i2c: E2 17 00 [12:26:32]MH_I2C_Read... [12:26:32]Read from MH i2c: E2 17 00 F3 A7 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 67 [12:26:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [12:26:32]wFMCommunicate OK [12:26:32]CreateOFDProtocolMessage done [12:26:32]OFDSenderStorePacket 103665 [12:26:32]StoreOFDPacket docnum=103665 [12:26:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 C4 66 08 01 43 3B 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 12 39 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 0B A0 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 A0 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AE 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2E 2C 00 00 00 00 07 04 06 00 04 A0 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 82 CE 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 F1 94 01 00 35 04 06 00 71 B4 A7 D1 70 95 35 A2 83 01 70 80 00 E0 [12:26:32]CheckFolder [12:26:32]dirname=/storage/ofd_packets [12:26:32]CheckFolder done [12:26:32]ProducePacketName [12:26:32]name=ofd_packets/00103665 [12:26:32]NVStorageSaveData ofd_packets/00103665 [12:26:32]File name is /storage/ofd_packets/00103665 [12:26:32]Write 302 bytes [12:26:32]NVStorageSaveData done [12:26:32]OFDSenderStorePacket done [12:26:32]KKMCreateOFDPacket done [12:26:32]NVStorageSaveData kkm_last_timestamp [12:26:32]File name is /storage/kkm_last_timestamp [12:26:32]Write 4 bytes [12:26:32]NVStorageSaveData done [12:26:32]ExternCall_PrintAddStr [12:26:32]wPrintStart [12:26:32]Write to MH i2c: 01 00 00 F4 A7 9B [12:26:32]Write i2c OK [12:26:32]MH_I2C_Read... [12:26:32]Read from MH i2c: 01 [12:26:32]MH_I2C_Read... [12:26:32]Read from MH i2c: 01 07 00 [12:26:32]MH_I2C_Read... [12:26:32]Read from MH i2c: 01 07 00 F4 A7 00 00 00 00 00 FF 0F B0 [12:26:32]RasterBufferAndPrint [12:26:32]line Счет N : (1)672916 [12:26:32]line ИНН: 02508201610067 [12:26:32]line Контрольно-Кассовый Чек [12:26:32]line ПРОДАЖА [12:26:32]line ТРК (МРК, ГНК) : 21 [12:26:32]line Товар: 2710194210 [12:26:32]line ДТ(л)-К-5 [12:26:32]line 14.610 * 72.90 [12:26:32]line = 1065.07 [12:26:32]line НДС 12% НСП 1% [12:26:32]line > о реализуемом товаре [12:26:32]line ОКРУГЛЕНИЕ: -0.07 [12:26:32]line ИТОГО: 1065.00 [12:26:32]line Внесено: 1065.00 [12:26:32]line СДАЧА: 0.00 [12:26:32]line НСП 1% : 9.42 [12:26:32]line НДС 12% : 113.10 [12:26:32]line Наличными: 1065.00 [12:26:32]line Безнал.: 0.00 [12:26:32]line Место: АЗС № 120 "Партнер Нефть" [12:26:32]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [12:26:32]line СНО: Общий режим [12:26:32]line Чек 95 19.06.2024 12:26 [12:26:32]line Смена: 353 ФФД: 1.0 [12:26:32]line ЗНМ: 0300000164 [12:26:32]line РНМ: 0000000000092785 [12:26:32]line Версия ККМ: 001 [12:26:32]line ФМ: 0000000000875093 [12:26:32]line ФД: 103665 [12:26:32]line ФПД: 125020723572885 [12:26:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T122642&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103665&fm=125020723572885&tin=02508201610067®Number=0000000000092785&sum=106500 [12:26:32]OFD Sender: Processing packet 103665 [packets to send 17, broken 16] [12:26:32]ProducePacketName [12:26:32]name=ofd_packets/00103665 [12:26:32]OFD Sender: To server: pG, [12:26:32]CommunicateWithHost lk.salyk.kg:30040 [12:26:32]ConnectInit lk.salyk.kg [12:26:32]written 0, free lines is 4095 [12:26:32]Connected sock=11 [12:26: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 39 33 10 01 00 00 C4 66 08 01 43 3B 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 12 39 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 0B A0 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 A0 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AE 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2E 2C 00 00 00 00 07 04 06 00 04 A0 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 82 CE 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 F1 94 01 00 35 04 06 00 71 B4 A7 D1 70 95 35 A2 83 01 70 80 00 E0 [12:26:32]Write to MH i2c: 01 00 00 1F A8 C7 [12:26:32]Write i2c OK [12:26:32]MH_I2C_Read... [12:26:32]Read from MH i2c: 01 [12:26:32]MH_I2C_Read... [12:26:32]Read from MH i2c: 01 07 00 [12:26:32]MH_I2C_Read... [12:26:32]Read from MH i2c: 01 07 00 1F A8 00 00 00 00 00 EE 0C C8 [12:26:32]RasterBufferAndPrint [12:26:32]line [12:26:32]line [12:26:32]line [12:26:32]line [12:26:32]line [12:26:32]written 0, free lines is 3316 [12:26:32]MH_Cut [12:26:32]Write to MH i2c: D1 01 00 26 A8 01 A0 [12:26:32]Write i2c OK [12:26:32]MH_I2C_Read... [12:26:32]Read from MH i2c: D1 [12:26:32]MH_I2C_Read... [12:26:32]Read from MH i2c: D1 01 00 [12:26:32]MH_I2C_Read... [12:26:32]Read from MH i2c: D1 01 00 26 A8 00 9F [12:26:32]Write to MH i2c: 01 00 00 27 A8 CF [12:26:32]Write i2c OK [12:26:32]MH_I2C_Read... [12:26: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 39 33 4F 00 00 00 C1 02 47 00 40 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 39 33 10 04 04 00 F1 94 01 00 F4 03 04 00 0B 75 72 66 B6 04 01 00 00 61 A0 0D 77 D1 AA 68 1F [12:26:32]CommunicateWithHost err = 0 [12:26:32]CheckOFDResponse [12:26:32]1017 (14) - 77093643461234 [12:26:32]1041 (16) - 0000000000875093 [12:26:32]1040 (4) - 103665 [12:26:32]1012 (4) - 19.06.2024 06:04 [12:26:32]1206 (1) - 0 [12:26:32]OFD Sender: Remove packet 103665 [12:26:32]ProducePacketName [12:26:32]name=ofd_packets/00103665 [12:26:32]NVStorageDeleteData [12:26:33]OFD Sender: No OFD packet to send [12:26:33]*** Cut start [12:26:33]*** Partial cut [12:26:33]*** CUTSNS_PIN = 1 [12:26:33]*** CUTSNS_PIN = 0 [12:26:33]*** Brake cut motor [12:26:34]Read from MH i2c: 01 [12:26:34]MH_I2C_Read... [12:26:34]*** Stop cut motor [12:26:34]*** Cut end [12:26:34]Read from MH i2c: 01 07 00 [12:26:34]MH_I2C_Read... [12:26:34]Read from MH i2c: 01 07 00 27 A8 00 00 00 00 00 FF 0F E4 [12:26:34]process_action close_receipt done [12:26:34]requested_data is exist [12:26:34]produce_requested_data [12:26:34]requested_item fm.sn is exist - process it [12:26:34]wFMCommunicate request_size=4 [12:26:34]MH_SAM_APDU [12:26:34]CAPDU: 80 11 00 00 [12:26:34]Write to MH i2c: E2 08 00 28 A8 80 11 00 00 00 00 00 00 4A [12:26:34]Write i2c OK [12:26:34]MH_I2C_Read... [12:26:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:26:34]Read from MH i2c: E2 [12:26:34]MH_I2C_Read... [12:26:34]Read from MH i2c: E2 17 00 [12:26:34]MH_I2C_Read... [12:26:34]Read from MH i2c: E2 17 00 28 A8 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 9D [12:26:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [12:26:34]wFMCommunicate OK [12:26:34]requested_item fd.num is exist - process it [12:26:34]SAM_PROTO_GetFieldsCounters [12:26:34]wFMCommunicate request_size=4 [12:26:34]MH_SAM_APDU [12:26:34]CAPDU: 80 13 00 00 [12:26:34]Write to MH i2c: E2 08 00 29 A8 80 13 00 00 00 00 00 00 4D [12:26:34]Write i2c OK [12:26:34]MH_I2C_Read... [12:26:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:26:34]Read from MH i2c: E2 [12:26:34]MH_I2C_Read... [12:26:34]Read from MH i2c: E2 62 00 [12:26:34]MH_I2C_Read... [12:26:34]Read from MH i2c: E2 62 00 29 A8 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 F1 94 01 00 0E 04 04 00 61 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 79 [12:26: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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 F1 94 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 5F 00 00 00 5E 04 04 00 5F 00 00 00 57 04 04 00 60 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:26:34]wFMCommunicate OK [12:26:34]SAM_PROTO_GetFieldsCounters done [12:26:34]requested_item shift.num is exist - process it [12:26:34]requested_item shift.opened is exist - process it [12:26:34]req_shift_opened [12:26:34]FM_GetShiftState [12:26:34]SAM_PROTO_GetShiftState [12:26:34]wFMCommunicate request_size=4 [12:26:34]MH_SAM_APDU [12:26:34]CAPDU: 80 13 01 00 [12:26:34]Write to MH i2c: E2 08 00 2A A8 80 13 01 00 00 00 00 00 4F [12:26:34]Write i2c OK [12:26:34]MH_I2C_Read... [12:26:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:26:34]Read from MH i2c: E2 [12:26:34]MH_I2C_Read... [12:26:34]Read from MH i2c: E2 0E 00 [12:26:34]MH_I2C_Read... [12:26:34]Read from MH i2c: E2 0E 00 2A A8 00 09 00 01 04 26 72 66 00 00 00 00 90 00 5D [12:26:34]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [12:26:34]wFMCommunicate OK [12:26:34]SAM_PROTO_GetShiftState done [12:26:34]FM_GetShiftState done [12:26:34]req_shift_opened done [12:26:34]requested_item shift.open_date is exist - process it [12:26:34]req_shift_open_date [12:26:34]req_shift_open_date done [12:26:34]produce_requested_data done [12:26:34]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103665,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [12:26:34]process_action_free close_receipt [12:26:34]json_value_free [12:26:34]json_value_free done [12:26:34]process_json_proto returns [12:26:34]Send response to host [12:26:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103665,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [12:26:34]free response buf [12:26:34]execute_script done [12:26:34]execute_script returns [12:26:34]free content buf [12:26:34]Sock 7.Close socket [12:26:34]Sock 7.Thread stoped [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:51]accept exits with 9 [12:27:51]New connection [12:27:51]New thread 3067227492 created [12:27:51]Thread 3067084132 joined [12:27:51]Waiting for new connection... [12:27:51] Sock 9.Parse request [12:27:51]Sock 9.Check first char [12:27:51]Sock 9.First char is OK [12:27:51]request: POST /json_proto HTTP/1.0 [12:27:51]Method: POST [12:27:51]URL: /json_proto [12:27:51]Method is POST - this is cgi request [12:27:51]url: /json_proto [12:27:51]query_string will be loaded in cgi processing [12:27:51]execute_cgi json_proto POST (null) [12:27:51]execute_cgi path=json_proto method=POST [12:27:51]POST find Content-Length [12:27:51]Host: 172.17.38.133:8080 [12:27:51]Content-Length: 803 [12:27:51]Content-Type: application/json [12:27:51] [12:27:51]POST finish read [12:27:51]Found Content-Length = 803 [12:27:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672918", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 30.130, "sum" : 2000.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2000.63 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:27:51]execute_script... [12:27: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)672918", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 30.130, "sum" : 2000.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2000.63 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:27:51]POST & json_proto [12:27:51]process_json_proto [12:27:51]json parsed OK: [12:27:51]protocol is kg_v1.0 [12:27:51]action value=close_receipt [12:27:51]process_action close_receipt [12:27:51]cmd_close_receipt [12:27:51]MH_GetDate [12:27:51]Write to MH i2c: F0 00 00 2B A8 C2 [12:27:51]Write i2c OK [12:27:51]MH_I2C_Read... [12:27:51]Read from MH i2c: F0 [12:27:51]MH_I2C_Read... [12:27:51]Read from MH i2c: F0 09 00 [12:27:51]MH_I2C_Read... [12:27:51]Read from MH i2c: F0 09 00 2B A8 00 D4 CE 72 66 BD 8F 7C 64 71 [12:27:51]GetLastDocTimeStamp 1718800002 [12:27:51]current date 1718800084 [12:27:51]FM_GetShiftState [12:27:51]SAM_PROTO_GetShiftState [12:27:51]wFMCommunicate request_size=4 [12:27:51]MH_SAM_APDU [12:27:51]CAPDU: 80 13 01 00 [12:27:51]Write to MH i2c: E2 08 00 2C A8 80 13 01 00 00 00 00 00 51 [12:27:51]Write i2c OK [12:27:51]MH_I2C_Read... [12:27:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:27:51]Read from MH i2c: E2 [12:27:51]MH_I2C_Read... [12:27:51]Read from MH i2c: E2 0E 00 [12:27:51]MH_I2C_Read... [12:27:51]Read from MH i2c: E2 0E 00 2C A8 00 09 00 01 04 26 72 66 00 00 00 00 90 00 5F [12:27:51]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [12:27:51]wFMCommunicate OK [12:27:51]SAM_PROTO_GetShiftState done [12:27:51]FM_GetShiftState done [12:27:51]opened in 1718756868 [12:27:51]opened+sec_in_day 1718843268 [12:27:51]quantity*price = 200063 [12:27:51]sum+1 = 200064 [12:27:51]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.63 НСП 1% : 17.70 НДС 12% : 212.46 Наличными: 0.00 Безнал.: 2000.63 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 96 19.06.2024 12:28 Смена: 353 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000875093 ФД: 103666 ФПД: 204184801850991 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T122804&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103666&fm=204184801850991&tin=02508201610067®Number=0000000000092785&sum=200063 [12:27:53]StoreToDocumentArchive [12:27:53]shift 353 fd 103666 [12:27:53]save to /storage/0353/doc_00103666 [12:27:53]save last doc name /storage/0353/doc_00103666 to /storage/kkm_last_doc_name [12:27:53]save OK [12:27:53]Clear old archive folders... [12:27:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:27:53]tlvbuf is 0135E4E0 [12:27:53]SAM_PROTO_ClearQueue [12:27:53]wFMCommunicate request_size=4 [12:27:53]MH_SAM_APDU [12:27:53]CAPDU: 80 09 00 00 [12:27:53]Write to MH i2c: E2 08 00 39 A8 80 09 00 00 00 00 00 00 53 [12:27:53]Write i2c OK [12:27:53]MH_I2C_Read... [12:27:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:27:53]Read from MH i2c: E2 [12:27:53]MH_I2C_Read... [12:27:53]Read from MH i2c: E2 03 00 [12:27:53]MH_I2C_Read... [12:27:53]Read from MH i2c: E2 03 00 39 A8 00 90 00 55 [12:27:53]RAPDU: 90 00 [12:27:53]wFMCommunicate OK [12:27:53]SAM_PROTO_ClearQueue done [12:27:53]KKMCreateOFDPacket [12:27:53]OFDProtocolAddRootSTLVToBuf [12:27:53]FM_MakeSignedData [12:27:53]FM_MakeSignedData [12:27:53]SAM_PROTO_SignData [12:27:53]wFMCommunicate request_size=4 [12:27:53]MH_SAM_APDU [12:27:53]CAPDU: 80 0D 01 02 [12:27:53]Write to MH i2c: E2 08 00 3A A8 80 0D 01 02 00 00 00 00 5B [12:27:53]Write i2c OK [12:27:53]MH_I2C_Read... [12:27:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:27:53]Read from MH i2c: E2 [12:27:53]MH_I2C_Read... [12:27:53]Read from MH i2c: E2 03 00 [12:27:53]MH_I2C_Read... [12:27:53]Read from MH i2c: E2 03 00 3A A8 00 90 00 56 [12:27:53]RAPDU: 90 00 [12:27:53]wFMCommunicate OK [12:27:53]wFMCommunicate request_size=255 [12:27:53]MH_SAM_APDU [12: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 B2 75 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7F 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FE 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7F 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 D4 CE 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 F2 94 01 00 35 04 06 00 B9 [12:27:53]Write to MH i2c: E2 02 01 3B A8 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B2 75 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7F 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FE 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7F 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 D4 CE 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 F2 94 01 00 35 04 06 00 B9 00 00 04 [12:27:53]Write i2c OK [12:27:53]MH_I2C_Read... [12:27:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:27:53]Read from MH i2c: E2 [12:27:53]MH_I2C_Read... [12:27:53]Read from MH i2c: E2 03 00 [12:27:53]MH_I2C_Read... [12:27:53]Read from MH i2c: E2 03 00 3B A8 00 90 00 57 [12:27:53]RAPDU: 90 00 [12:27:53]wFMCommunicate OK [12:27:53]wFMCommunicate request_size=10 [12:27:53]MH_SAM_APDU [12:27:53]CAPDU: 80 0D 02 02 05 B4 7A 95 36 6F [12:27:53]Write to MH i2c: E2 0D 00 3C A8 80 0D 02 02 05 00 B4 7A 95 36 6F 00 00 D0 [12:27:53]Write i2c OK [12:27:53]MH_I2C_Read... [12:27:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:27:53]Read from MH i2c: E2 [12:27:53]MH_I2C_Read... [12:27:53]Read from MH i2c: E2 03 00 [12:27:53]MH_I2C_Read... [12:27:53]Read from MH i2c: E2 03 00 3C A8 00 90 00 58 [12:27:53]RAPDU: 90 00 [12:27:53]wFMCommunicate OK [12:27:53]wFMCommunicate request_size=4 [12:27:53]MH_SAM_APDU [12:27:53]CAPDU: 80 0D 03 02 [12:27:53]Write to MH i2c: E2 08 00 3D A8 80 0D 03 02 00 00 00 00 60 [12:27:53]Write i2c OK [12:27:53]MH_I2C_Read... [12:27:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:27:53]Read from MH i2c: E2 [12:27:53]MH_I2C_Read... [12:27:53]Read from MH i2c: E2 0B 00 [12:27:53]MH_I2C_Read... [12:27:53]Read from MH i2c: E2 0B 00 3D A8 00 95 82 9F 42 18 BB B2 8D 90 00 6B [12:27:53]RAPDU: 95 82 9F 42 18 BB B2 8D 90 00 [12:27:53]wFMCommunicate OK [12:27:53]SAM_PROTO_SignData done [12:27:53]FM_MakeSignedData done [12:27:53]CreateOFDProtocolMessage [12:27:53]wFMCommunicate request_size=4 [12:27:53]MH_SAM_APDU [12:27:53]CAPDU: 80 11 00 00 [12:27:53]Write to MH i2c: E2 08 00 3E A8 80 11 00 00 00 00 00 00 60 [12:27:53]Write i2c OK [12:27:53]MH_I2C_Read... [12:27:53]OFD Sender: No OFD packet to send [12:27:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:27:53]Read from MH i2c: E2 [12:27:53]MH_I2C_Read... [12:27:53]Read from MH i2c: E2 17 00 [12:27:53]MH_I2C_Read... [12:27:53]Read from MH i2c: E2 17 00 3E A8 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 B3 [12:27:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [12:27:53]wFMCommunicate OK [12:27:53]CreateOFDProtocolMessage done [12:27:53]OFDSenderStorePacket 103666 [12:27:53]StoreOFDPacket docnum=103666 [12:27:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 11 53 07 01 92 32 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B2 75 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7F 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FE 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7F 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 D4 CE 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 F2 94 01 00 35 04 06 00 B9 B4 7A 95 36 6F 95 82 9F 42 18 BB B2 8D [12:27:53]CheckFolder [12:27:53]dirname=/storage/ofd_packets [12:27:53]CheckFolder done [12:27:53]ProducePacketName [12:27:53]name=ofd_packets/00103666 [12:27:53]NVStorageSaveData ofd_packets/00103666 [12:27:53]File name is /storage/ofd_packets/00103666 [12:27:53]Write 301 bytes [12:27:53]NVStorageSaveData done [12:27:53]OFDSenderStorePacket done [12:27:53]KKMCreateOFDPacket done [12:27:53]NVStorageSaveData kkm_last_timestamp [12:27:53]File name is /storage/kkm_last_timestamp [12:27:53]Write 4 bytes [12:27:53]NVStorageSaveData done [12:27:53]ExternCall_PrintAddStr [12:27:53]wPrintStart [12:27:53]Write to MH i2c: 01 00 00 3F A8 E7 [12:27:53]Write i2c OK [12:27:53]MH_I2C_Read... [12:27:53]Read from MH i2c: 01 [12:27:53]MH_I2C_Read... [12:27:53]Read from MH i2c: 01 07 00 [12:27:53]MH_I2C_Read... [12:27:53]Read from MH i2c: 01 07 00 3F A8 00 00 00 00 00 FF 0F FC [12:27:53]RasterBufferAndPrint [12:27:53]line Счет N : (1)672918 [12:27:53]line ИНН: 02508201610067 [12:27:53]line Контрольно-Кассовый Чек [12:27:53]line ПРОДАЖА [12:27:53]line ТРК (МРК, ГНК) : 32 [12:27:53]line Товар: 2710124130 [12:27:53]line Аи-92-К-5 [12:27:53]line 30.130 * 66.40 [12:27:53]line = 2000.63 [12:27:53]line НДС 12% НСП 1% [12:27:53]line > о реализуемом товаре [12:27:53]line ИТОГО: 2000.63 [12:27:53]line НСП 1% : 17.70 [12:27:53]line НДС 12% : 212.46 [12:27:53]line Наличными: 0.00 [12:27:53]line Безнал.: 2000.63 [12:27:53]line Место: АЗС № 120 "Партнер Нефть" [12:27:53]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [12:27:53]line СНО: Общий режим [12:27:53]line Чек 96 19.06.2024 12:28 [12:27:53]line Смена: 353 ФФД: 1.0 [12:27:53]line ЗНМ: 0300000164 [12:27:53]line РНМ: 0000000000092785 [12:27:53]line Версия ККМ: 001 [12:27:53]line Платежная система: O! деньги [12:27:53]line ФМ: 0000000000875093 [12:27:53]line ФД: 103666 [12:27:53]line ФПД: 204184801850991 [12:27:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T122804&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103666&fm=204184801850991&tin=02508201610067®Number=0000000000092785&sum=200063 [12:27:53]OFD Sender: Processing packet 103666 [packets to send 17, broken 16] [12:27:53]ProducePacketName [12:27:53]name=ofd_packets/00103666 [12:27:53]OFD Sender: To server: pG, [12:27:53]CommunicateWithHost lk.salyk.kg:30040 [12:27:53]ConnectInit lk.salyk.kg [12:27:53]written 0, free lines is 4095 [12:27:54]Connected sock=10 [12: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 39 33 0F 01 00 00 11 53 07 01 92 32 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B2 75 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7F 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FE 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7F 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 D4 CE 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 F2 94 01 00 35 04 06 00 B9 B4 7A 95 36 6F 95 82 9F 42 18 BB B2 8D [12: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 39 33 4F 00 00 00 83 15 47 00 69 18 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 F2 94 01 00 F4 03 04 00 5D 75 72 66 B6 04 01 00 00 DA 92 99 B4 80 AD 4A 4E [12:27:54]CommunicateWithHost err = 0 [12:27:54]CheckOFDResponse [12:27:54]1017 (14) - 77093643461234 [12:27:54]1041 (16) - 0000000000875093 [12:27:54]1040 (4) - 103666 [12:27:54]1012 (4) - 19.06.2024 06:06 [12:27:54]1206 (1) - 0 [12:27:54]OFD Sender: Remove packet 103666 [12:27:54]ProducePacketName [12:27:54]name=ofd_packets/00103666 [12:27:54]NVStorageDeleteData [12:27:54]Write to MH i2c: 01 00 00 69 A8 11 [12:27:54]Write i2c OK [12:27:54]MH_I2C_Read... [12:27:54]Read from MH i2c: 01 [12:27:54]MH_I2C_Read... [12:27:54]Read from MH i2c: 01 07 00 [12:27:54]MH_I2C_Read... [12:27:54]Read from MH i2c: 01 07 00 69 A8 00 00 00 00 00 10 0D 35 [12:27:54]RasterBufferAndPrint [12:27:54]line [12:27:54]line [12:27:54]line [12:27:54]line [12:27:54]line [12:27:54]written 0, free lines is 3352 [12:27:54]MH_Cut [12:27:54]Write to MH i2c: D1 01 00 70 A8 01 EA [12:27:54]Write i2c OK [12:27:54]MH_I2C_Read... [12:27:54]Read from MH i2c: D1 [12:27:54]MH_I2C_Read... [12:27:54]Read from MH i2c: D1 01 00 [12:27:54]MH_I2C_Read... [12:27:54]Read from MH i2c: D1 01 00 70 A8 00 E9 [12:27:54]Write to MH i2c: 01 00 00 71 A8 19 [12:27:54]Write i2c OK [12:27:54]MH_I2C_Read... [12:27:54]OFD Sender: No OFD packet to send [12:27:55]*** Cut start [12:27:55]*** Partial cut [12:27:55]*** CUTSNS_PIN = 1 [12:27:55]*** CUTSNS_PIN = 0 [12:27:55]*** Brake cut motor [12:27:55]Read from MH i2c: 01 [12:27:55]MH_I2C_Read... [12:27:55]*** Stop cut motor [12:27:55]*** Cut end [12:27:55]Read from MH i2c: 01 07 00 [12:27:55]MH_I2C_Read... [12:27:55]Read from MH i2c: 01 07 00 71 A8 00 00 00 00 00 FF 0F 2E [12:27:55]process_action close_receipt done [12:27:55]requested_data is exist [12:27:55]produce_requested_data [12:27:55]requested_item fm.sn is exist - process it [12:27:55]wFMCommunicate request_size=4 [12:27:55]MH_SAM_APDU [12:27:55]CAPDU: 80 11 00 00 [12:27:55]Write to MH i2c: E2 08 00 72 A8 80 11 00 00 00 00 00 00 94 [12:27:55]Write i2c OK [12:27:55]MH_I2C_Read... [12:27:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:27:55]Read from MH i2c: E2 [12:27:55]MH_I2C_Read... [12:27:55]Read from MH i2c: E2 17 00 [12:27:55]MH_I2C_Read... [12:27:55]Read from MH i2c: E2 17 00 72 A8 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 E7 [12:27:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [12:27:55]wFMCommunicate OK [12:27:55]requested_item fd.num is exist - process it [12:27:55]SAM_PROTO_GetFieldsCounters [12:27:55]wFMCommunicate request_size=4 [12:27:55]MH_SAM_APDU [12:27:55]CAPDU: 80 13 00 00 [12:27:55]Write to MH i2c: E2 08 00 73 A8 80 13 00 00 00 00 00 00 97 [12:27:55]Write i2c OK [12:27:55]MH_I2C_Read... [12:27:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:27:55]Read from MH i2c: E2 [12:27:55]MH_I2C_Read... [12:27:55]Read from MH i2c: E2 62 00 [12:27:55]MH_I2C_Read... [12:27:55]Read from MH i2c: E2 62 00 73 A8 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 F2 94 01 00 0E 04 04 00 61 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 C7 [12: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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 F2 94 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 60 00 00 00 5E 04 04 00 60 00 00 00 57 04 04 00 61 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:27:55]wFMCommunicate OK [12:27:55]SAM_PROTO_GetFieldsCounters done [12:27:55]requested_item shift.num is exist - process it [12:27:55]requested_item shift.opened is exist - process it [12:27:55]req_shift_opened [12:27:55]FM_GetShiftState [12:27:55]SAM_PROTO_GetShiftState [12:27:55]wFMCommunicate request_size=4 [12:27:55]MH_SAM_APDU [12:27:55]CAPDU: 80 13 01 00 [12:27:55]Write to MH i2c: E2 08 00 74 A8 80 13 01 00 00 00 00 00 99 [12:27:55]Write i2c OK [12:27:55]MH_I2C_Read... [12:27:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:27:55]Read from MH i2c: E2 [12:27:55]MH_I2C_Read... [12:27:55]Read from MH i2c: E2 0E 00 [12:27:55]MH_I2C_Read... [12:27:55]Read from MH i2c: E2 0E 00 74 A8 00 09 00 01 04 26 72 66 00 00 00 00 90 00 A7 [12:27:55]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [12:27:55]wFMCommunicate OK [12:27:55]SAM_PROTO_GetShiftState done [12:27:55]FM_GetShiftState done [12:27:55]req_shift_opened done [12:27:55]requested_item shift.open_date is exist - process it [12:27:55]req_shift_open_date [12:27:55]req_shift_open_date done [12:27:55]produce_requested_data done [12:27:55]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103666,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [12:27:55]process_action_free close_receipt [12:27:55]json_value_free [12:27:55]json_value_free done [12:27:55]process_json_proto returns [12:27:55]Send response to host [12:27:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103666,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [12:27:55]free response buf [12:27:55]execute_script done [12:27:55]execute_script returns [12:27:55]free content buf [12:27:55]Sock 9.Close socket [12:27:55]Sock 9.Thread stoped [12:27:59]OFD Sender: No OFD packet to send [12:28:04]OFD Sender: No OFD packet to send [12:28:09]OFD Sender: No OFD packet to send [12:28:14]OFD Sender: No OFD packet to send [12:28:19]OFD Sender: No OFD packet to send [12:28:24]OFD Sender: No OFD packet to send [12:28:29]OFD Sender: No OFD packet to send [12:28:34]OFD Sender: No OFD packet to send [12:28:39]OFD Sender: No OFD packet to send [12:28:44]OFD Sender: No OFD packet to send [12:28:49]OFD Sender: No OFD packet to send [12:28:54]OFD Sender: No OFD packet to send [12:28:59]OFD Sender: No OFD packet to send [12:29:04]OFD Sender: No OFD packet to send [12:29:09]OFD Sender: No OFD packet to send [12:29:14]OFD Sender: No OFD packet to send [12:29:19]OFD Sender: No OFD packet to send [12:29:24]accept exits with 7 [12:29:24]New connection [12:29:24]New thread 3067084132 created [12:29:24]Thread 3067227492 joined [12:29:24]Waiting for new connection... [12:29:24] Sock 7.Parse request [12:29:24]Sock 7.Check first char [12:29:24]Sock 7.First char is OK [12:29:24]request: POST /json_proto HTTP/1.0 [12:29:24]Method: POST [12:29:24]URL: /json_proto [12:29:24]Method is POST - this is cgi request [12:29:24]url: /json_proto [12:29:24]query_string will be loaded in cgi processing [12:29:24]execute_cgi json_proto POST (null) [12:29:24]execute_cgi path=json_proto method=POST [12:29:24]POST find Content-Length [12:29:24]Host: 172.17.38.133:8080 [12:29:24]Content-Length: 811 [12:29:24]Content-Type: application/json [12:29:24] [12:29:24]POST finish read [12:29:24]Found Content-Length = 811 [12:29:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672912", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 192.060, "sum" : 14001.17, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 14001.17 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:29:24]execute_script... [12:29: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)672912", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 192.060, "sum" : 14001.17, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 14001.17 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:29:24]POST & json_proto [12:29:24]process_json_proto [12:29:24]json parsed OK: [12:29:24]protocol is kg_v1.0 [12:29:24]action value=close_receipt [12:29:24]process_action close_receipt [12:29:24]cmd_close_receipt [12:29:24]MH_GetDate [12:29:24]Write to MH i2c: F0 00 00 75 A8 0C [12:29:24]Write i2c OK [12:29:24]MH_I2C_Read... [12:29:24]Read from MH i2c: F0 [12:29:24]MH_I2C_Read... [12:29:24]Read from MH i2c: F0 09 00 [12:29:24]MH_I2C_Read... [12:29:24]Read from MH i2c: F0 09 00 75 A8 00 30 CF 72 66 BD 8F 7C 64 18 [12:29:24]GetLastDocTimeStamp 1718800084 [12:29:24]current date 1718800176 [12:29:24]FM_GetShiftState [12:29:24]SAM_PROTO_GetShiftState [12:29:24]wFMCommunicate request_size=4 [12:29:24]MH_SAM_APDU [12:29:24]CAPDU: 80 13 01 00 [12:29:24]Write to MH i2c: E2 08 00 76 A8 80 13 01 00 00 00 00 00 9B [12:29:24]Write i2c OK [12:29:24]MH_I2C_Read... [12:29:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:29:24]Read from MH i2c: E2 [12:29:24]MH_I2C_Read... [12:29:24]Read from MH i2c: E2 0E 00 [12:29:24]MH_I2C_Read... [12:29:24]Read from MH i2c: E2 0E 00 76 A8 00 09 00 01 04 26 72 66 00 00 00 00 90 00 A9 [12:29:24]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [12:29:24]wFMCommunicate OK [12:29:24]SAM_PROTO_GetShiftState done [12:29:24]FM_GetShiftState done [12:29:24]opened in 1718756868 [12:29:24]opened+sec_in_day 1718843268 [12:29:24]quantity*price = 1400117 [12:29:24]sum+1 = 1400118 [12:29:24]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 14001.17 НСП 1% : 123.90 НДС 12% : 1486.85 Наличными: 0.00 Безнал.: 14001.17 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 97 19.06.2024 12:29 Смена: 353 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000875093 ФД: 103667 ФПД: 201445129002884 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T122937&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103667&fm=201445129002884&tin=02508201610067®Number=0000000000092785&sum=1400117 [12:29:25]StoreToDocumentArchive [12:29:25]shift 353 fd 103667 [12:29:25]save to /storage/0353/doc_00103667 [12:29:25]save last doc name /storage/0353/doc_00103667 to /storage/kkm_last_doc_name [12:29:25]save OK [12:29:25]Clear old archive folders... [12:29:25]ProcessDocumentItem done err = 0, tmpTLVsize=252 [12:29:25]tlvbuf is 014CBBC0 [12:29:25]SAM_PROTO_ClearQueue [12:29:25]wFMCommunicate request_size=4 [12:29:25]MH_SAM_APDU [12:29:25]CAPDU: 80 09 00 00 [12:29:25]Write to MH i2c: E2 08 00 83 A8 80 09 00 00 00 00 00 00 9D [12:29:25]Write i2c OK [12:29:25]MH_I2C_Read... [12:29:25]Read from MH i2c: E2 [12:29:25]MH_I2C_Read... [12:29:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:29:25]Read from MH i2c: E2 03 00 [12:29:25]MH_I2C_Read... [12:29:25]Read from MH i2c: E2 03 00 83 A8 00 90 00 9F [12:29:25]RAPDU: 90 00 [12:29:25]wFMCommunicate OK [12:29:25]SAM_PROTO_ClearQueue done [12:29:25]KKMCreateOFDPacket [12:29:25]OFDProtocolAddRootSTLVToBuf [12:29:25]FM_MakeSignedData [12:29:25]FM_MakeSignedData [12:29:25]SAM_PROTO_SignData [12:29:25]wFMCommunicate request_size=4 [12:29:25]MH_SAM_APDU [12:29:25]CAPDU: 80 0D 01 02 [12:29:25]Write to MH i2c: E2 08 00 84 A8 80 0D 01 02 00 00 00 00 A5 [12:29:25]Write i2c OK [12:29:25]MH_I2C_Read... [12:29:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:29:25]Read from MH i2c: E2 [12:29:25]MH_I2C_Read... [12:29:25]Read from MH i2c: E2 03 00 [12:29:25]MH_I2C_Read... [12:29:25]Read from MH i2c: E2 03 00 84 A8 00 90 00 A0 [12:29:25]RAPDU: 90 00 [12:29:25]wFMCommunicate OK [12:29:25]wFMCommunicate request_size=255 [12:29:25]MH_SAM_APDU [12:29:25]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 3C EE 02 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 35 5D 15 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 35 5D 15 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 30 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD 44 02 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 35 5D 15 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 31 CF 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 F3 94 01 00 35 04 06 00 [12:29:25]Write to MH i2c: E2 02 01 85 A8 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 3C EE 02 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 35 5D 15 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 35 5D 15 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 30 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD 44 02 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 35 5D 15 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 31 CF 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 F3 94 01 00 35 04 06 00 00 00 73 [12:29:25]Write i2c OK [12:29:25]MH_I2C_Read... [12:29:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:29:26]Read from MH i2c: E2 [12:29:26]MH_I2C_Read... [12:29:26]Read from MH i2c: E2 03 00 [12:29:26]MH_I2C_Read... [12:29:26]Read from MH i2c: E2 03 00 85 A8 00 90 00 A1 [12:29:26]RAPDU: 90 00 [12:29:26]wFMCommunicate OK [12:29:26]wFMCommunicate request_size=11 [12:29:26]MH_SAM_APDU [12:29:26]CAPDU: 80 0D 02 02 06 B7 36 99 5B 1F 84 [12:29:26]Write to MH i2c: E2 0E 00 86 A8 80 0D 02 02 06 00 B7 36 99 5B 1F 84 00 00 38 [12:29:26]Write i2c OK [12:29:26]MH_I2C_Read... [12:29:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:29:26]Read from MH i2c: E2 [12:29:26]MH_I2C_Read... [12:29:26]Read from MH i2c: E2 03 00 [12:29:26]MH_I2C_Read... [12:29:26]Read from MH i2c: E2 03 00 86 A8 00 90 00 A2 [12:29:26]RAPDU: 90 00 [12:29:26]wFMCommunicate OK [12:29:26]wFMCommunicate request_size=4 [12:29:26]MH_SAM_APDU [12:29:26]CAPDU: 80 0D 03 02 [12:29:26]Write to MH i2c: E2 08 00 87 A8 80 0D 03 02 00 00 00 00 AA [12:29:26]Write i2c OK [12:29:26]MH_I2C_Read... [12:29:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:29:26]Read from MH i2c: E2 [12:29:26]MH_I2C_Read... [12:29:26]Read from MH i2c: E2 0B 00 [12:29:26]MH_I2C_Read... [12:29:26]Read from MH i2c: E2 0B 00 87 A8 00 B0 A3 06 CC 70 B1 F9 67 90 00 51 [12:29:26]RAPDU: B0 A3 06 CC 70 B1 F9 67 90 00 [12:29:26]wFMCommunicate OK [12:29:26]SAM_PROTO_SignData done [12:29:26]FM_MakeSignedData done [12:29:26]CreateOFDProtocolMessage [12:29:26]wFMCommunicate request_size=4 [12:29:26]MH_SAM_APDU [12:29:26]CAPDU: 80 11 00 00 [12:29:26]Write to MH i2c: E2 08 00 88 A8 80 11 00 00 00 00 00 00 AA [12:29:26]Write i2c OK [12:29:26]MH_I2C_Read... [12:29:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:29:26]Read from MH i2c: E2 [12:29:26]MH_I2C_Read... [12:29:26]Read from MH i2c: E2 17 00 [12:29:26]MH_I2C_Read... [12:29:26]Read from MH i2c: E2 17 00 88 A8 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 FD [12:29:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [12:29:26]wFMCommunicate OK [12:29:26]CreateOFDProtocolMessage done [12:29:26]OFDSenderStorePacket 103667 [12:29:26]StoreOFDPacket docnum=103667 [12:29:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 27 40 08 01 7D 71 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 3C EE 02 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 35 5D 15 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 35 5D 15 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 30 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD 44 02 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 35 5D 15 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 31 CF 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 F3 94 01 00 35 04 06 00 B7 36 99 5B 1F 84 B0 A3 06 CC 70 B1 F9 67 [12:29:26]CheckFolder [12:29:26]dirname=/storage/ofd_packets [12:29:26]CheckFolder done [12:29:26]ProducePacketName [12:29:26]name=ofd_packets/00103667 [12:29:26]NVStorageSaveData ofd_packets/00103667 [12:29:26]File name is /storage/ofd_packets/00103667 [12:29:26]Write 302 bytes [12:29:26]NVStorageSaveData done [12:29:26]OFDSenderStorePacket done [12:29:26]KKMCreateOFDPacket done [12:29:26]NVStorageSaveData kkm_last_timestamp [12:29:26]File name is /storage/kkm_last_timestamp [12:29:26]Write 4 bytes [12:29:26]NVStorageSaveData done [12:29:26]ExternCall_PrintAddStr [12:29:26]wPrintStart [12:29:26]Write to MH i2c: 01 00 00 89 A8 31 [12:29:26]Write i2c OK [12:29:26]MH_I2C_Read... [12:29:26]Read from MH i2c: 01 [12:29:26]MH_I2C_Read... [12:29:26]Read from MH i2c: 01 07 00 [12:29:26]MH_I2C_Read... [12:29:26]Read from MH i2c: 01 07 00 89 A8 00 00 00 00 00 FF 0F 46 [12:29:26]RasterBufferAndPrint [12:29:26]line Счет N : (1)672912 [12:29:26]line ИНН: 02508201610067 [12:29:26]line Контрольно-Кассовый Чек [12:29:26]line ПРОДАЖА [12:29:26]line ТРК (МРК, ГНК) : 11 [12:29:26]line Товар: 2710194210 [12:29:26]line ДТ(л)-К-5 [12:29:26]line 192.060 * 72.90 [12:29:26]line = 14001.17 [12:29:26]line НДС 12% НСП 1% [12:29:26]line > о реализуемом товаре [12:29:26]line ИТОГО: 14001.17 [12:29:26]line НСП 1% : 123.90 [12:29:26]line НДС 12% : 1486.85 [12:29:26]line Наличными: 0.00 [12:29:26]line Безнал.: 14001.17 [12:29:26]line Место: АЗС № 120 "Партнер Нефть" [12:29:26]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [12:29:26]line СНО: Общий режим [12:29:26]line Чек 97 19.06.2024 12:29 [12:29:26]line Смена: 353 ФФД: 1.0 [12:29:26]line ЗНМ: 0300000164 [12:29:26]line РНМ: 0000000000092785 [12:29:26]line Версия ККМ: 001 [12:29:26]line Платежная система: O! деньги [12:29:26]line ФМ: 0000000000875093 [12:29:26]line ФД: 103667 [12:29:26]line ФПД: 201445129002884 [12:29:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T122937&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103667&fm=201445129002884&tin=02508201610067®Number=0000000000092785&sum=1400117 [12:29:26]written 0, free lines is 4095 [12:29:26]OFD Sender: Processing packet 103667 [packets to send 17, broken 16] [12:29:26]ProducePacketName [12:29:26]name=ofd_packets/00103667 [12:29:26]OFD Sender: To server: pG, [12:29:26]CommunicateWithHost lk.salyk.kg:30040 [12:29:26]ConnectInit lk.salyk.kg [12:29:26]Connected sock=10 [12:29: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 39 33 10 01 00 00 27 40 08 01 7D 71 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 3C EE 02 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 35 5D 15 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 35 5D 15 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 30 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD 44 02 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 35 5D 15 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 31 CF 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 F3 94 01 00 35 04 06 00 B7 36 99 5B 1F 84 B0 A3 06 CC 70 B1 F9 67 [12:29: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 39 33 4F 00 00 00 4A 29 47 00 18 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 39 33 10 04 04 00 F3 94 01 00 F4 03 04 00 B9 75 72 66 B6 04 01 00 00 D7 25 D0 7F AA 3D BA 14 [12:29:27]CommunicateWithHost err = 0 [12:29:27]CheckOFDResponse [12:29:27]1017 (14) - 77093643461234 [12:29:27]1041 (16) - 0000000000875093 [12:29:27]1040 (4) - 103667 [12:29:27]1012 (4) - 19.06.2024 06:07 [12:29:27]1206 (1) - 0 [12:29:27]OFD Sender: Remove packet 103667 [12:29:27]ProducePacketName [12:29:27]name=ofd_packets/00103667 [12:29:27]NVStorageDeleteData [12:29:27]Write to MH i2c: 01 00 00 B3 A8 5B [12:29:27]Write i2c OK [12:29:27]MH_I2C_Read... [12:29:27]Read from MH i2c: 01 [12:29:27]MH_I2C_Read... [12:29:27]Read from MH i2c: 01 07 00 [12:29:27]MH_I2C_Read... [12:29:27]Read from MH i2c: 01 07 00 B3 A8 00 00 00 00 00 EB 0C 59 [12:29:27]RasterBufferAndPrint [12:29:27]line [12:29:27]line [12:29:27]line [12:29:27]line [12:29:27]line [12:29:27]written 0, free lines is 3314 [12:29:27]MH_Cut [12:29:27]Write to MH i2c: D1 01 00 BA A8 01 34 [12:29:27]Write i2c OK [12:29:27]MH_I2C_Read... [12:29:27]Read from MH i2c: D1 [12:29:27]MH_I2C_Read... [12:29:27]Read from MH i2c: D1 01 00 [12:29:27]MH_I2C_Read... [12:29:27]Read from MH i2c: D1 01 00 BA A8 00 33 [12:29:27]Write to MH i2c: 01 00 00 BB A8 63 [12:29:27]Write i2c OK [12:29:27]MH_I2C_Read... [12:29:27]OFD Sender: No OFD packet to send [12:29:27]*** Cut start [12:29:27]*** Partial cut [12:29:27]*** CUTSNS_PIN = 1 [12:29:27]*** CUTSNS_PIN = 0 [12:29:28]*** Brake cut motor [12:29:28]Read from MH i2c: 01 [12:29:28]MH_I2C_Read... [12:29:28]*** Stop cut motor [12:29:28]*** Cut end [12:29:28]Read from MH i2c: 01 07 00 [12:29:28]MH_I2C_Read... [12:29:28]Read from MH i2c: 01 07 00 BB A8 00 00 00 00 00 FF 0F 78 [12:29:28]process_action close_receipt done [12:29:28]requested_data is exist [12:29:28]produce_requested_data [12:29:28]requested_item fm.sn is exist - process it [12:29:28]wFMCommunicate request_size=4 [12:29:28]MH_SAM_APDU [12:29:28]CAPDU: 80 11 00 00 [12:29:28]Write to MH i2c: E2 08 00 BC A8 80 11 00 00 00 00 00 00 DE [12:29:28]Write i2c OK [12:29:28]MH_I2C_Read... [12:29:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:29:28]Read from MH i2c: E2 [12:29:28]MH_I2C_Read... [12:29:28]Read from MH i2c: E2 17 00 [12:29:28]MH_I2C_Read... [12:29:28]Read from MH i2c: E2 17 00 BC A8 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 31 [12:29:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [12:29:28]wFMCommunicate OK [12:29:28]requested_item fd.num is exist - process it [12:29:28]SAM_PROTO_GetFieldsCounters [12:29:28]wFMCommunicate request_size=4 [12:29:28]MH_SAM_APDU [12:29:28]CAPDU: 80 13 00 00 [12:29:28]Write to MH i2c: E2 08 00 BD A8 80 13 00 00 00 00 00 00 E1 [12:29:28]Write i2c OK [12:29:28]MH_I2C_Read... [12:29:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:29:28]Read from MH i2c: E2 [12:29:28]MH_I2C_Read... [12:29:28]Read from MH i2c: E2 62 00 [12:29:28]MH_I2C_Read... [12:29:28]Read from MH i2c: E2 62 00 BD A8 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 F3 94 01 00 0E 04 04 00 61 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 15 [12:29: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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 F3 94 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 61 00 00 00 5E 04 04 00 61 00 00 00 57 04 04 00 62 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:29:28]wFMCommunicate OK [12:29:28]SAM_PROTO_GetFieldsCounters done [12:29:28]requested_item shift.num is exist - process it [12:29:28]requested_item shift.opened is exist - process it [12:29:28]req_shift_opened [12:29:28]FM_GetShiftState [12:29:28]SAM_PROTO_GetShiftState [12:29:28]wFMCommunicate request_size=4 [12:29:28]MH_SAM_APDU [12:29:28]CAPDU: 80 13 01 00 [12:29:28]Write to MH i2c: E2 08 00 BE A8 80 13 01 00 00 00 00 00 E3 [12:29:28]Write i2c OK [12:29:28]MH_I2C_Read... [12:29:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:29:28]Read from MH i2c: E2 [12:29:28]MH_I2C_Read... [12:29:28]Read from MH i2c: E2 0E 00 [12:29:28]MH_I2C_Read... [12:29:28]Read from MH i2c: E2 0E 00 BE A8 00 09 00 01 04 26 72 66 00 00 00 00 90 00 F1 [12:29:28]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [12:29:28]wFMCommunicate OK [12:29:28]SAM_PROTO_GetShiftState done [12:29:28]FM_GetShiftState done [12:29:28]req_shift_opened done [12:29:28]requested_item shift.open_date is exist - process it [12:29:28]req_shift_open_date [12:29:28]req_shift_open_date done [12:29:28]produce_requested_data done [12:29:28]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103667,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [12:29:28]process_action_free close_receipt [12:29:28]json_value_free [12:29:28]json_value_free done [12:29:28]process_json_proto returns [12:29:28]Send response to host [12:29:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103667,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [12:29:28]free response buf [12:29:28]execute_script done [12:29:28]execute_script returns [12:29:28]free content buf [12:29:28]Sock 7.Close socket [12:29:28]Sock 7.Thread stoped [12:29:32]OFD Sender: No OFD packet to send [12:29:37]OFD Sender: No OFD packet to send [12:29:42]OFD Sender: No OFD packet to send [12:29:47]OFD Sender: No OFD packet to send [12:29:52]OFD Sender: No OFD packet to send [12:29:57]OFD Sender: No OFD packet to send [12:30:02]OFD Sender: No OFD packet to send [12:30:07]OFD Sender: No OFD packet to send [12:30:12]OFD Sender: No OFD packet to send [12:30:17]OFD Sender: No OFD packet to send [12:30:22]OFD Sender: No OFD packet to send [12:30:27]OFD Sender: No OFD packet to send [12:30:32]OFD Sender: No OFD packet to send [12:30:37]OFD Sender: No OFD packet to send [12:30:42]OFD Sender: No OFD packet to send [12:30:47]OFD Sender: No OFD packet to send [12:30:52]OFD Sender: No OFD packet to send [12:30:57]OFD Sender: No OFD packet to send [12:31:02]OFD Sender: No OFD packet to send [12:31:07]OFD Sender: No OFD packet to send [12:31:12]OFD Sender: No OFD packet to send [12:31:17]OFD Sender: No OFD packet to send [12:31:22]OFD Sender: No OFD packet to send [12:31:27]OFD Sender: No OFD packet to send [12:31:32]OFD Sender: No OFD packet to send [12:31:37]OFD Sender: No OFD packet to send [12:31:42]OFD Sender: No OFD packet to send [12:31:47]OFD Sender: No OFD packet to send [12:31:52]OFD Sender: No OFD packet to send [12:31:57]OFD Sender: No OFD packet to send [12:32:02]OFD Sender: No OFD packet to send [12:32:07]OFD Sender: No OFD packet to send [12:32:12]OFD Sender: No OFD packet to send [12:32:17]OFD Sender: No OFD packet to send [12:32:22]OFD Sender: No OFD packet to send [12:32:27]OFD Sender: No OFD packet to send [12:32:32]OFD Sender: No OFD packet to send [12:32:37]OFD Sender: No OFD packet to send [12:32:42]OFD Sender: No OFD packet to send [12:32:47]OFD Sender: No OFD packet to send [12:32:52]OFD Sender: No OFD packet to send [12:32:57]OFD Sender: No OFD packet to send [12:33:02]OFD Sender: No OFD packet to send [12:33:07]OFD Sender: No OFD packet to send [12:33:12]OFD Sender: No OFD packet to send [12:33:17]OFD Sender: No OFD packet to send [12:33:22]OFD Sender: No OFD packet to send [12:33:27]OFD Sender: No OFD packet to send [12:33:32]OFD Sender: No OFD packet to send [12:33:37]OFD Sender: No OFD packet to send [12:33:42]OFD Sender: No OFD packet to send [12:33:47]OFD Sender: No OFD packet to send [12:33:52]OFD Sender: No OFD packet to send [12:33:57]accept exits with 9 [12:33:57]New connection [12:33:57]New thread 3067227492 created [12:33:57]Thread 3067084132 joined [12:33:57]Waiting for new connection... [12:33:57] Sock 9.Parse request [12:33:57]Sock 9.Check first char [12:33:57]Sock 9.First char is OK [12:33:57]request: POST /json_proto HTTP/1.0 [12:33:57]Method: POST [12:33:57]URL: /json_proto [12:33:57]Method is POST - this is cgi request [12:33:57]url: /json_proto [12:33:57]query_string will be loaded in cgi processing [12:33:57]execute_cgi json_proto POST (null) [12:33:57]execute_cgi path=json_proto method=POST [12:33:57]POST find Content-Length [12:33:57]Host: 172.17.38.133:8080 [12:33:57]Content-Length: 677 [12:33:57]Content-Type: application/json [12:33:57] [12:33:57]POST finish read [12:33:57]Found Content-Length = 677 [12:33:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672919", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 4.820, "sum" : 320.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 320.00, "total" : 320.00, "payments": [ { "type": 0, "sum" : 320.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:33:57]execute_script... [12:33: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)672919", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 4.820, "sum" : 320.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 320.00, "total" : 320.00, "payments": [ { "type": 0, "sum" : 320.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:33:57]POST & json_proto [12:33:57]process_json_proto [12:33:57]json parsed OK: [12:33:57]protocol is kg_v1.0 [12:33:57]action value=close_receipt [12:33:57]process_action close_receipt [12:33:57]cmd_close_receipt [12:33:57]MH_GetDate [12:33:57]Write to MH i2c: F0 00 00 BF A8 56 [12:33:57]Write i2c OK [12:33:57]MH_I2C_Read... [12:33:57]Read from MH i2c: F0 [12:33:57]MH_I2C_Read... [12:33:57]Read from MH i2c: F0 09 00 [12:33:57]MH_I2C_Read... [12:33:57]Read from MH i2c: F0 09 00 BF A8 00 41 D0 72 66 BD 8F 7C 64 74 [12:33:57]GetLastDocTimeStamp 1718800177 [12:33:57]current date 1718800449 [12:33:57]FM_GetShiftState [12:33:57]SAM_PROTO_GetShiftState [12:33:57]wFMCommunicate request_size=4 [12:33:57]MH_SAM_APDU [12:33:57]CAPDU: 80 13 01 00 [12:33:57]Write to MH i2c: E2 08 00 C0 A8 80 13 01 00 00 00 00 00 E5 [12:33:57]Write i2c OK [12:33:57]MH_I2C_Read... [12:33:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:33:57]Read from MH i2c: E2 [12:33:57]MH_I2C_Read... [12:33:57]Read from MH i2c: E2 0E 00 [12:33:57]MH_I2C_Read... [12:33:57]Read from MH i2c: E2 0E 00 C0 A8 00 09 00 01 04 26 72 66 00 00 00 00 90 00 F3 [12:33:57]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [12:33:57]wFMCommunicate OK [12:33:57]SAM_PROTO_GetShiftState done [12:33:57]FM_GetShiftState done [12:33:57]opened in 1718756868 [12:33:57]opened+sec_in_day 1718843268 [12:33:57]quantity*price = 32004 [12:33:57]sum+1 = 32006 [12:33:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 320.00 Внесено: 320.00 СДАЧА: 0.00 НСП 1% : 2.83 НДС 12% : 33.99 Наличными: 320.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 98 19.06.2024 12:34 Смена: 353 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103668 ФПД: 139120960011722 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T123409&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103668&fm=139120960011722&tin=02508201610067®Number=0000000000092785&sum=32000 [12:33:58]StoreToDocumentArchive [12:33:58]shift 353 fd 103668 [12:33:58]save to /storage/0353/doc_00103668 [12:33:58]save last doc name /storage/0353/doc_00103668 to /storage/kkm_last_doc_name [12:33:58]save OK [12:33:58]Clear old archive folders... [12:33:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:33:58]tlvbuf is 013A2110 [12:33:58]SAM_PROTO_ClearQueue [12:33:58]wFMCommunicate request_size=4 [12:33:58]MH_SAM_APDU [12:33:58]CAPDU: 80 09 00 00 [12:33:58]Write to MH i2c: E2 08 00 CD A8 80 09 00 00 00 00 00 00 E7 [12:33:58]Write i2c OK [12:33:58]MH_I2C_Read... [12:33:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:33:58]Read from MH i2c: E2 [12:33:58]MH_I2C_Read... [12:33:58]Read from MH i2c: E2 03 00 [12:33:58]MH_I2C_Read... [12:33:58]Read from MH i2c: E2 03 00 CD A8 00 90 00 E9 [12:33:58]RAPDU: 90 00 [12:33:58]wFMCommunicate OK [12:33:58]SAM_PROTO_ClearQueue done [12:33:58]KKMCreateOFDPacket [12:33:58]OFDProtocolAddRootSTLVToBuf [12:33:58]FM_MakeSignedData [12:33:58]FM_MakeSignedData [12:33:58]SAM_PROTO_SignData [12:33:58]wFMCommunicate request_size=4 [12:33:58]MH_SAM_APDU [12:33:58]CAPDU: 80 0D 01 02 [12:33:58]Write to MH i2c: E2 08 00 CE A8 80 0D 01 02 00 00 00 00 EF [12:33:58]Write i2c OK [12:33:58]MH_I2C_Read... [12:33:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:33:58]Read from MH i2c: E2 [12:33:58]MH_I2C_Read... [12:33:58]Read from MH i2c: E2 03 00 [12:33:58]MH_I2C_Read... [12:33:58]Read from MH i2c: E2 03 00 CE A8 00 90 00 EA [12:33:58]RAPDU: 90 00 [12:33:58]wFMCommunicate OK [12:33:58]wFMCommunicate request_size=255 [12:33:58]MH_SAM_APDU [12:33:58]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 12 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 05 7D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 7D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 47 0D 00 00 00 00 07 04 06 00 00 7D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 41 D0 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 F4 94 01 00 35 04 06 00 7E [12:33:58]Write to MH i2c: E2 02 01 CF A8 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 12 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 05 7D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 7D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 47 0D 00 00 00 00 07 04 06 00 00 7D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 41 D0 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 F4 94 01 00 35 04 06 00 7E 00 00 8E [12:33:58]Write i2c OK [12:33:58]MH_I2C_Read... [12:33:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:33:58]Read from MH i2c: E2 [12:33:58]MH_I2C_Read... [12:33:58]Read from MH i2c: E2 03 00 [12:33:58]MH_I2C_Read... [12:33:58]Read from MH i2c: E2 03 00 CF A8 00 90 00 EB [12:33:58]RAPDU: 90 00 [12:33:58]wFMCommunicate OK [12:33:58]wFMCommunicate request_size=10 [12:33:58]MH_SAM_APDU [12:33:58]CAPDU: 80 0D 02 02 05 87 9F 66 FD CA [12:33:58]Write to MH i2c: E2 0D 00 D0 A8 80 0D 02 02 05 00 87 9F 66 FD CA 00 00 4F [12:33:58]Write i2c OK [12:33:58]MH_I2C_Read... [12:33:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:33:58]Read from MH i2c: E2 [12:33:58]MH_I2C_Read... [12:33:58]Read from MH i2c: E2 03 00 [12:33:58]MH_I2C_Read... [12:33:58]Read from MH i2c: E2 03 00 D0 A8 00 90 00 EC [12:33:58]RAPDU: 90 00 [12:33:58]wFMCommunicate OK [12:33:58]wFMCommunicate request_size=4 [12:33:58]MH_SAM_APDU [12:33:58]CAPDU: 80 0D 03 02 [12:33:58]Write to MH i2c: E2 08 00 D1 A8 80 0D 03 02 00 00 00 00 F4 [12:33:58]Write i2c OK [12:33:58]MH_I2C_Read... [12:33:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:33:58]Read from MH i2c: E2 [12:33:58]MH_I2C_Read... [12:33:58]Read from MH i2c: E2 0B 00 [12:33:58]MH_I2C_Read... [12:33:58]Read from MH i2c: E2 0B 00 D1 A8 00 6A 90 C2 2A C0 D3 12 BA 90 00 3A [12:33:58]RAPDU: 6A 90 C2 2A C0 D3 12 BA 90 00 [12:33:58]wFMCommunicate OK [12:33:58]SAM_PROTO_SignData done [12:33:58]FM_MakeSignedData done [12:33:58]CreateOFDProtocolMessage [12:33:58]wFMCommunicate request_size=4 [12:33:58]MH_SAM_APDU [12:33:58]CAPDU: 80 11 00 00 [12:33:58]Write to MH i2c: E2 08 00 D2 A8 80 11 00 00 00 00 00 00 F4 [12:33:58]Write i2c OK [12:33:58]MH_I2C_Read... [12:33:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:33:58]Read from MH i2c: E2 [12:33:58]MH_I2C_Read... [12:33:58]Read from MH i2c: E2 17 00 [12:33:58]MH_I2C_Read... [12:33:58]Read from MH i2c: E2 17 00 D2 A8 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 47 [12:33:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [12:33:58]wFMCommunicate OK [12:33:58]CreateOFDProtocolMessage done [12:33:58]OFDSenderStorePacket 103668 [12:33:58]StoreOFDPacket docnum=103668 [12:33:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 06 36 07 01 08 BA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 12 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 05 7D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 7D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 47 0D 00 00 00 00 07 04 06 00 00 7D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 41 D0 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 F4 94 01 00 35 04 06 00 7E 87 9F 66 FD CA 6A 90 C2 2A C0 D3 12 BA [12:33:58]CheckFolder [12:33:58]dirname=/storage/ofd_packets [12:33:58]CheckFolder done [12:33:58]ProducePacketName [12:33:58]name=ofd_packets/00103668 [12:33:58]NVStorageSaveData ofd_packets/00103668 [12:33:58]File name is /storage/ofd_packets/00103668 [12:33:58]Write 301 bytes [12:33:58]NVStorageSaveData done [12:33:58]OFDSenderStorePacket done [12:33:58]KKMCreateOFDPacket done [12:33:58]NVStorageSaveData kkm_last_timestamp [12:33:58]File name is /storage/kkm_last_timestamp [12:33:58]Write 4 bytes [12:33:58]NVStorageSaveData done [12:33:58]ExternCall_PrintAddStr [12:33:58]wPrintStart [12:33:58]Write to MH i2c: 01 00 00 D3 A8 7B [12:33:58]Write i2c OK [12:33:58]MH_I2C_Read... [12:33:58]Read from MH i2c: 01 [12:33:58]MH_I2C_Read... [12:33:58]Read from MH i2c: 01 07 00 [12:33:58]MH_I2C_Read... [12:33:58]Read from MH i2c: 01 07 00 D3 A8 00 00 00 00 00 FF 0F 90 [12:33:58]RasterBufferAndPrint [12:33:58]line Счет N : (1)672919 [12:33:58]line ИНН: 02508201610067 [12:33:58]line Контрольно-Кассовый Чек [12:33:58]line ПРОДАЖА [12:33:58]line ТРК (МРК, ГНК) : 42 [12:33:58]line Товар: 2710124130 [12:33:58]line Аи-92-К-5 [12:33:58]line 4.820 * 66.40 [12:33:58]line = 320.05 [12:33:58]line НДС 12% НСП 1% [12:33:58]line > о реализуемом товаре [12:33:58]line ОКРУГЛЕНИЕ: -0.05 [12:33:58]line ИТОГО: 320.00 [12:33:58]line Внесено: 320.00 [12:33:58]line СДАЧА: 0.00 [12:33:58]line НСП 1% : 2.83 [12:33:58]line НДС 12% : 33.99 [12:33:58]line Наличными: 320.00 [12:33:58]line Безнал.: 0.00 [12:33:58]line Место: АЗС № 120 "Партнер Нефть" [12:33:58]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [12:33:58]line СНО: Общий режим [12:33:58]line Чек 98 19.06.2024 12:34 [12:33:58]line Смена: 353 ФФД: 1.0 [12:33:58]line ЗНМ: 0300000164 [12:33:58]line РНМ: 0000000000092785 [12:33:58]line Версия ККМ: 001 [12:33:58]line ФМ: 0000000000875093 [12:33:58]line ФД: 103668 [12:33:58]line ФПД: 139120960011722 [12:33:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T123409&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103668&fm=139120960011722&tin=02508201610067®Number=0000000000092785&sum=32000 [12:33:59]written 0, free lines is 4095 [12:33:59]OFD Sender: Processing packet 103668 [packets to send 17, broken 16] [12:33:59]ProducePacketName [12:33:59]name=ofd_packets/00103668 [12:33:59]OFD Sender: To server: pG, [12:33:59]CommunicateWithHost lk.salyk.kg:30040 [12:33:59]ConnectInit lk.salyk.kg [12:33:59]Connected sock=10 [12:33:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 06 36 07 01 08 BA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 12 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 05 7D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 7D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 47 0D 00 00 00 00 07 04 06 00 00 7D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 41 D0 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 F4 94 01 00 35 04 06 00 7E 87 9F 66 FD CA 6A 90 C2 2A C0 D3 12 BA [12:33:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 2E 60 47 00 D8 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 39 33 10 04 04 00 F4 94 01 00 F4 03 04 00 CA 76 72 66 B6 04 01 00 00 7B 7B 73 C3 41 FB BE 0E [12:33:59]CommunicateWithHost err = 0 [12:33:59]CheckOFDResponse [12:33:59]1017 (14) - 77093643461234 [12:33:59]1041 (16) - 0000000000875093 [12:33:59]1040 (4) - 103668 [12:33:59]1012 (4) - 19.06.2024 06:12 [12:33:59]1206 (1) - 0 [12:33:59]OFD Sender: Remove packet 103668 [12:33:59]ProducePacketName [12:33:59]name=ofd_packets/00103668 [12:33:59]NVStorageDeleteData [12:33:59]Write to MH i2c: 01 00 00 FE A8 A6 [12:33:59]Write i2c OK [12:33:59]MH_I2C_Read... [12:33:59]Read from MH i2c: 01 [12:33:59]MH_I2C_Read... [12:33:59]Read from MH i2c: 01 07 00 [12:33:59]MH_I2C_Read... [12:33:59]Read from MH i2c: 01 07 00 FE A8 00 00 00 00 00 E7 0C A0 [12:33:59]RasterBufferAndPrint [12:33:59]line [12:33:59]line [12:33:59]line [12:33:59]line [12:33:59]line [12:33:59]written 0, free lines is 3312 [12:33:59]MH_Cut [12:33:59]Write to MH i2c: D1 01 00 05 A9 01 80 [12:33:59]Write i2c OK [12:33:59]MH_I2C_Read... [12:33:59]Read from MH i2c: D1 [12:33:59]MH_I2C_Read... [12:33:59]Read from MH i2c: D1 01 00 [12:33:59]MH_I2C_Read... [12:33:59]Read from MH i2c: D1 01 00 05 A9 00 7F [12:33:59]Write to MH i2c: 01 00 00 06 A9 AF [12:33:59]Write i2c OK [12:33:59]MH_I2C_Read... [12:34:00]OFD Sender: No OFD packet to send [12:34:00]*** Cut start [12:34:00]*** Partial cut [12:34:00]*** CUTSNS_PIN = 1 [12:34:00]*** CUTSNS_PIN = 0 [12:34:00]*** Brake cut motor [12:34:01]Read from MH i2c: 01 [12:34:01]MH_I2C_Read... [12:34:01]*** Stop cut motor [12:34:01]*** Cut end [12:34:01]Read from MH i2c: 01 07 00 [12:34:01]MH_I2C_Read... [12:34:01]Read from MH i2c: 01 07 00 06 A9 00 00 00 00 00 FF 0F C4 [12:34:01]process_action close_receipt done [12:34:01]requested_data is exist [12:34:01]produce_requested_data [12:34:01]requested_item fm.sn is exist - process it [12:34:01]wFMCommunicate request_size=4 [12:34:01]MH_SAM_APDU [12:34:01]CAPDU: 80 11 00 00 [12:34:01]Write to MH i2c: E2 08 00 07 A9 80 11 00 00 00 00 00 00 2A [12:34:01]Write i2c OK [12:34:01]MH_I2C_Read... [12:34:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:34:01]Read from MH i2c: E2 [12:34:01]MH_I2C_Read... [12:34:01]Read from MH i2c: E2 17 00 [12:34:01]MH_I2C_Read... [12:34:01]Read from MH i2c: E2 17 00 07 A9 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 7D [12:34:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [12:34:01]wFMCommunicate OK [12:34:01]requested_item fd.num is exist - process it [12:34:01]SAM_PROTO_GetFieldsCounters [12:34:01]wFMCommunicate request_size=4 [12:34:01]MH_SAM_APDU [12:34:01]CAPDU: 80 13 00 00 [12:34:01]Write to MH i2c: E2 08 00 08 A9 80 13 00 00 00 00 00 00 2D [12:34:01]Write i2c OK [12:34:01]MH_I2C_Read... [12:34:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:34:01]Read from MH i2c: E2 [12:34:01]MH_I2C_Read... [12:34:01]Read from MH i2c: E2 62 00 [12:34:01]MH_I2C_Read... [12:34:01]Read from MH i2c: E2 62 00 08 A9 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 F4 94 01 00 0E 04 04 00 61 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 65 [12:34: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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 F4 94 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 62 00 00 00 5E 04 04 00 62 00 00 00 57 04 04 00 63 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:34:01]wFMCommunicate OK [12:34:01]SAM_PROTO_GetFieldsCounters done [12:34:01]requested_item shift.num is exist - process it [12:34:01]requested_item shift.opened is exist - process it [12:34:01]req_shift_opened [12:34:01]FM_GetShiftState [12:34:01]SAM_PROTO_GetShiftState [12:34:01]wFMCommunicate request_size=4 [12:34:01]MH_SAM_APDU [12:34:01]CAPDU: 80 13 01 00 [12:34:01]Write to MH i2c: E2 08 00 09 A9 80 13 01 00 00 00 00 00 2F [12:34:01]Write i2c OK [12:34:01]MH_I2C_Read... [12:34:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:34:01]Read from MH i2c: E2 [12:34:01]MH_I2C_Read... [12:34:01]Read from MH i2c: E2 0E 00 [12:34:01]MH_I2C_Read... [12:34:01]Read from MH i2c: E2 0E 00 09 A9 00 09 00 01 04 26 72 66 00 00 00 00 90 00 3D [12:34:01]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [12:34:01]wFMCommunicate OK [12:34:01]SAM_PROTO_GetShiftState done [12:34:01]FM_GetShiftState done [12:34:01]req_shift_opened done [12:34:01]requested_item shift.open_date is exist - process it [12:34:01]req_shift_open_date [12:34:01]req_shift_open_date done [12:34:01]produce_requested_data done [12:34:01]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103668,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [12:34:01]process_action_free close_receipt [12:34:01]json_value_free [12:34:01]json_value_free done [12:34:01]process_json_proto returns [12:34:01]Send response to host [12:34:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103668,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [12:34:01]free response buf [12:34:01]execute_script done [12:34:01]execute_script returns [12:34:01]free content buf [12:34:01]Sock 9.Close socket [12:34:01]Sock 9.Thread stoped [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:30]OFD Sender: No OFD packet to send [12:35:35]OFD Sender: No OFD packet to send [12:35:40]OFD Sender: No OFD packet to send [12:35:45]OFD Sender: No OFD packet to send [12:35:50]OFD Sender: No OFD packet to send [12:35:55]OFD Sender: No OFD packet to send [12:36:00]OFD Sender: No OFD packet to send [12:36:05]OFD Sender: No OFD packet to send [12:36:05]accept exits with 7 [12:36:05]New connection [12:36:05]New thread 3067084132 created [12:36:05]Thread 3067227492 joined [12:36:05]Waiting for new connection... [12:36:05] Sock 7.Parse request [12:36:05]Sock 7.Check first char [12:36:05]Sock 7.First char is OK [12:36:05]request: POST /json_proto HTTP/1.0 [12:36:05]Method: POST [12:36:05]URL: /json_proto [12:36:05]Method is POST - this is cgi request [12:36:05]url: /json_proto [12:36:05]query_string will be loaded in cgi processing [12:36:05]execute_cgi json_proto POST (null) [12:36:05]execute_cgi path=json_proto method=POST [12:36:05]POST find Content-Length [12:36:05]Host: 172.17.38.133:8080 [12:36:05]Content-Length: 1207 [12:36:05]Content-Type: application/json [12:36:05] [12:36:05]POST finish read [12:36:05]Found Content-Length = 1207 [12:36:05]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 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. \u000A\u0421\u0447\u0435\u0442 N : (1)672920\u000A19.06.2024 12:13\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 31\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124500\u000A\u0410\u0438-95-\u041A-5\u000A 30.000 x 73.90\u000A\u0418\u0422\u041E\u0413: 2217.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\u000A32174\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:36:05]execute_script... [12:36:05]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 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. \u000A\u0421\u0447\u0435\u0442 N : (1)672920\u000A19.06.2024 12:13\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 31\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124500\u000A\u0410\u0438-95-\u041A-5\u000A 30.000 x 73.90\u000A\u0418\u0422\u041E\u0413: 2217.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\u000A32174\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:36:05]POST & json_proto [12:36:05]process_json_proto [12:36:05]json parsed OK: [12:36:05]protocol is kg_v1.0 [12:36:05]action value=print_text [12:36:05]process_action print_text [12:36:05]cmd_print_text [12:36:05]ExternCall_PrintAddStr [12:36:05]wPrintStart [12:36:05]Write to MH i2c: 01 00 00 0A A9 B3 [12:36:05]Write i2c OK [12:36:05]MH_I2C_Read... [12:36:05]Read from MH i2c: 01 [12:36:05]MH_I2C_Read... [12:36:05]Read from MH i2c: 01 07 00 [12:36:05]MH_I2C_Read... [12:36:05]Read from MH i2c: 01 07 00 0A A9 00 00 00 00 00 FF 0F C8 [12:36:05]RasterBufferAndPrint [12:36:05]line *****ТОВАРНЫЙ ЧЕК***** [12:36:05]line АЗС 120 [12:36:05]line Партнер нефть [12:36:05]line 02508201610067 [12:36:05]line Кассир : Байбугуева Г. [12:36:05]line Счет N : (1)672920 [12:36:05]line 19.06.2024 12:13 [12:36:05]line ПРОДАЖА [12:36:05]line ТРК (МРК, ГНК): 31 [12:36:05]line Вид ГСМ : 2710124500 [12:36:05]line Аи-95-К-5 [12:36:05]line 30.000 x 73.90 [12:36:05]line ИТОГ: 2217.00 [12:36:05]line Тип оплаты: Талоны: Топливная Карта [12:36:05]line 32174 [12:36:05]line ______________________ [12:36:05]line (подпись) [12:36:05]written 0, free lines is 4095 [12:36:05]Write to MH i2c: 01 00 00 1E A9 C7 [12:36:05]Write i2c OK [12:36:05]MH_I2C_Read... [12:36:05]Read from MH i2c: 01 [12:36:05]MH_I2C_Read... [12:36:05]Read from MH i2c: 01 07 00 [12:36:05]MH_I2C_Read... [12:36:05]Read from MH i2c: 01 07 00 1E A9 00 00 00 00 00 12 0E EE [12:36:05]RasterBufferAndPrint [12:36:05]line [12:36:05]line [12:36:05]line [12:36:05]line [12:36:05]line [12:36:05]written 0, free lines is 3604 [12:36:05]MH_Cut [12:36:05]Write to MH i2c: D1 01 00 25 A9 01 A0 [12:36:05]Write i2c OK [12:36:05]MH_I2C_Read... [12:36:05]Read from MH i2c: D1 [12:36:05]MH_I2C_Read... [12:36:05]Read from MH i2c: D1 01 00 [12:36:05]MH_I2C_Read... [12:36:05]Read from MH i2c: D1 01 00 25 A9 00 9F [12:36:05]Write to MH i2c: 01 00 00 26 A9 CF [12:36:05]Write i2c OK [12:36:05]MH_I2C_Read... [12:36:06]*** Cut start [12:36:06]*** Partial cut [12:36:06]*** CUTSNS_PIN = 1 [12:36:06]*** CUTSNS_PIN = 0 [12:36:06]*** Brake cut motor [12:36:07]Read from MH i2c: 01 [12:36:07]MH_I2C_Read... [12:36:07]*** Stop cut motor [12:36:07]*** Cut end [12:36:07]Read from MH i2c: 01 07 00 [12:36:07]MH_I2C_Read... [12:36:07]Read from MH i2c: 01 07 00 26 A9 00 00 00 00 00 FF 0F E4 [12:36:07]process_action print_text done [12:36:07]requested_data is exist [12:36:07]produce_requested_data [12:36:07]requested_item fm.sn is exist - process it [12:36:07]wFMCommunicate request_size=4 [12:36:07]MH_SAM_APDU [12:36:07]CAPDU: 80 11 00 00 [12:36:07]Write to MH i2c: E2 08 00 27 A9 80 11 00 00 00 00 00 00 4A [12:36:07]Write i2c OK [12:36:07]MH_I2C_Read... [12:36:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:36:07]Read from MH i2c: E2 [12:36:07]MH_I2C_Read... [12:36:07]Read from MH i2c: E2 17 00 [12:36:07]MH_I2C_Read... [12:36:07]Read from MH i2c: E2 17 00 27 A9 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 9D [12:36:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [12:36:07]wFMCommunicate OK [12:36:07]requested_item fd.num is exist - process it [12:36:07]SAM_PROTO_GetFieldsCounters [12:36:07]wFMCommunicate request_size=4 [12:36:07]MH_SAM_APDU [12:36:07]CAPDU: 80 13 00 00 [12:36:07]Write to MH i2c: E2 08 00 28 A9 80 13 00 00 00 00 00 00 4D [12:36:07]Write i2c OK [12:36:07]MH_I2C_Read... [12:36:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:36:07]Read from MH i2c: E2 [12:36:07]MH_I2C_Read... [12:36:07]Read from MH i2c: E2 62 00 [12:36:07]MH_I2C_Read... [12:36:07]Read from MH i2c: E2 62 00 28 A9 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 F4 94 01 00 0E 04 04 00 61 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 85 [12:36: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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 F4 94 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 62 00 00 00 5E 04 04 00 62 00 00 00 57 04 04 00 63 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:36:07]wFMCommunicate OK [12:36:07]SAM_PROTO_GetFieldsCounters done [12:36:07]requested_item shift.num is exist - process it [12:36:07]requested_item shift.opened is exist - process it [12:36:07]req_shift_opened [12:36:07]FM_GetShiftState [12:36:07]SAM_PROTO_GetShiftState [12:36:07]wFMCommunicate request_size=4 [12:36:07]MH_SAM_APDU [12:36:07]CAPDU: 80 13 01 00 [12:36:07]Write to MH i2c: E2 08 00 29 A9 80 13 01 00 00 00 00 00 4F [12:36:07]Write i2c OK [12:36:07]MH_I2C_Read... [12:36:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:36:07]Read from MH i2c: E2 [12:36:07]MH_I2C_Read... [12:36:07]Read from MH i2c: E2 0E 00 [12:36:07]MH_I2C_Read... [12:36:07]Read from MH i2c: E2 0E 00 29 A9 00 09 00 01 04 26 72 66 00 00 00 00 90 00 5D [12:36:07]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [12:36:07]wFMCommunicate OK [12:36:07]SAM_PROTO_GetShiftState done [12:36:07]FM_GetShiftState done [12:36:07]req_shift_opened done [12:36:07]requested_item shift.open_date is exist - process it [12:36:07]req_shift_open_date [12:36:07]req_shift_open_date done [12:36:07]produce_requested_data done [12:36:07]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103668,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [12:36:07]process_action_free print_text [12:36:07]json_value_free [12:36:07]json_value_free done [12:36:07]process_json_proto returns [12:36:07]Send response to host [12:36:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103668,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [12:36:07]free response buf [12:36:07]execute_script done [12:36:07]execute_script returns [12:36:07]free content buf [12:36:07]Sock 7.Close socket [12:36:07]Sock 7.Thread stoped [12:36:10]OFD Sender: No OFD packet to send [12:36:15]OFD Sender: No OFD packet to send [12:36:20]OFD Sender: No OFD packet to send [12:36:25]OFD Sender: No OFD packet to send [12:36:30]OFD Sender: No OFD packet to send [12:36:35]OFD Sender: No OFD packet to send [12:36:40]OFD Sender: No OFD packet to send [12:36:45]OFD Sender: No OFD packet to send [12:36:50]OFD Sender: No OFD packet to send [12:36:55]OFD Sender: No OFD packet to send [12:37:00]OFD Sender: No OFD packet to send [12:37:05]OFD Sender: No OFD packet to send [12:37:10]OFD Sender: No OFD packet to send [12:37:15]OFD Sender: No OFD packet to send [12:37:20]OFD Sender: No OFD packet to send [12:37:25]OFD Sender: No OFD packet to send [12:37:30]OFD Sender: No OFD packet to send [12:37:35]OFD Sender: No OFD packet to send [12:37:40]OFD Sender: No OFD packet to send [12:37:45]OFD Sender: No OFD packet to send [12:37:50]OFD Sender: No OFD packet to send [12:37:55]OFD Sender: No OFD packet to send [12:38:00]OFD Sender: No OFD packet to send [12:38:05]OFD Sender: No OFD packet to send [12:38:10]OFD Sender: No OFD packet to send [12:38:15]OFD Sender: No OFD packet to send [12:38:20]OFD Sender: No OFD packet to send [12:38:25]OFD Sender: No OFD packet to send [12:38:30]OFD Sender: No OFD packet to send [12:38:35]OFD Sender: No OFD packet to send [12:38:40]OFD Sender: No OFD packet to send [12:38:45]OFD Sender: No OFD packet to send [12:38:50]OFD Sender: No OFD packet to send [12:38:55]OFD Sender: No OFD packet to send [12:39:00]OFD Sender: No OFD packet to send [12:39:05]OFD Sender: No OFD packet to send [12:39:10]OFD Sender: No OFD packet to send [12:39:15]OFD Sender: No OFD packet to send [12:39:20]OFD Sender: No OFD packet to send [12:39:25]OFD Sender: No OFD packet to send [12:39:30]OFD Sender: No OFD packet to send [12:39:35]OFD Sender: No OFD packet to send [12:39:40]OFD Sender: No OFD packet to send [12:39:45]OFD Sender: No OFD packet to send [12:39:50]OFD Sender: No OFD packet to send [12:39:55]OFD Sender: No OFD packet to send [12:40:00]OFD Sender: No OFD packet to send [12:40:05]OFD Sender: No OFD packet to send [12:40:10]OFD Sender: No OFD packet to send [12:40:15]OFD Sender: No OFD packet to send [12:40:20]OFD Sender: No OFD packet to send [12:40:25]OFD Sender: No OFD packet to send [12:40:30]OFD Sender: No OFD packet to send [12:40:35]OFD Sender: No OFD packet to send [12:40:40]OFD Sender: No OFD packet to send [12:40:45]OFD Sender: No OFD packet to send [12:40:50]OFD Sender: No OFD packet to send [12:40:55]OFD Sender: No OFD packet to send [12:41:00]OFD Sender: No OFD packet to send [12:41:05]OFD Sender: No OFD packet to send [12:41:10]OFD Sender: No OFD packet to send [12:41:12]accept exits with 9 [12:41:12]New connection [12:41:12]New thread 3067227492 created [12:41:12]Thread 3067084132 joined [12:41:12]Waiting for new connection... [12:41:12] Sock 9.Parse request [12:41:12]Sock 9.Check first char [12:41:12]Sock 9.First char is OK [12:41:12]request: POST /json_proto HTTP/1.0 [12:41:12]Method: POST [12:41:12]URL: /json_proto [12:41:12]Method is POST - this is cgi request [12:41:12]url: /json_proto [12:41:12]query_string will be loaded in cgi processing [12:41:12]execute_cgi json_proto POST (null) [12:41:12]execute_cgi path=json_proto method=POST [12:41:12]POST find Content-Length [12:41:12]Host: 172.17.38.133:8080 [12:41:12]Content-Length: 663 [12:41:12]Content-Type: application/json [12:41:12] [12:41:12]POST finish read [12:41:12]Found Content-Length = 663 [12:41:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672922", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 30.000, "sum" : 2217.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "payments": [ { "type": 0, "sum" : 2217.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:41:12]execute_script... [12: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)672922", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 30.000, "sum" : 2217.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "payments": [ { "type": 0, "sum" : 2217.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:41:12]POST & json_proto [12:41:12]process_json_proto [12:41:12]json parsed OK: [12:41:12]protocol is kg_v1.0 [12:41:12]action value=close_receipt [12:41:12]process_action close_receipt [12:41:12]cmd_close_receipt [12:41:12]MH_GetDate [12:41:12]Write to MH i2c: F0 00 00 2A A9 C2 [12:41:12]Write i2c OK [12:41:12]MH_I2C_Read... [12:41:12]Read from MH i2c: F0 [12:41:12]MH_I2C_Read... [12:41:12]Read from MH i2c: F0 09 00 [12:41:12]MH_I2C_Read... [12:41:12]Read from MH i2c: F0 09 00 2A A9 00 F4 D1 72 66 BD 8F 7C 64 94 [12:41:12]GetLastDocTimeStamp 1718800449 [12:41:12]current date 1718800884 [12:41:12]FM_GetShiftState [12:41:12]SAM_PROTO_GetShiftState [12:41:12]wFMCommunicate request_size=4 [12:41:12]MH_SAM_APDU [12:41:12]CAPDU: 80 13 01 00 [12:41:12]Write to MH i2c: E2 08 00 2B A9 80 13 01 00 00 00 00 00 51 [12:41:12]Write i2c OK [12:41:12]MH_I2C_Read... [12:41:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:41:12]Read from MH i2c: E2 [12:41:12]MH_I2C_Read... [12:41:12]Read from MH i2c: E2 0E 00 [12:41:12]MH_I2C_Read... [12:41:12]Read from MH i2c: E2 0E 00 2B A9 00 09 00 01 04 26 72 66 00 00 00 00 90 00 5F [12:41:12]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [12:41:12]wFMCommunicate OK [12:41:12]SAM_PROTO_GetShiftState done [12:41:12]FM_GetShiftState done [12:41:12]opened in 1718756868 [12:41:12]opened+sec_in_day 1718843268 [12:41:12]quantity*price = 221700 [12:41:12]sum+1 = 221701 [12:41:12]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2217.00 Внесено: 3000.00 СДАЧА: 783.00 НСП 1% : 19.62 НДС 12% : 235.43 Наличными: 2217.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 99 19.06.2024 12:41 Смена: 353 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103669 ФПД: 200345564334873 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T124124&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103669&fm=200345564334873&tin=02508201610067®Number=0000000000092785&sum=221700 [12:41:13]StoreToDocumentArchive [12:41:13]shift 353 fd 103669 [12:41:13]save to /storage/0353/doc_00103669 [12:41:13]save last doc name /storage/0353/doc_00103669 to /storage/kkm_last_doc_name [12:41:13]save OK [12:41:13]Clear old archive folders... [12:41:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:41:13]tlvbuf is 016B6620 [12:41:13]SAM_PROTO_ClearQueue [12:41:13]wFMCommunicate request_size=4 [12:41:13]MH_SAM_APDU [12:41:13]CAPDU: 80 09 00 00 [12:41:13]Write to MH i2c: E2 08 00 38 A9 80 09 00 00 00 00 00 00 53 [12:41:13]Write i2c OK [12:41:13]MH_I2C_Read... [12:41:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:41:13]Read from MH i2c: E2 [12:41:13]MH_I2C_Read... [12:41:13]Read from MH i2c: E2 03 00 [12:41:13]MH_I2C_Read... [12:41:13]Read from MH i2c: E2 03 00 38 A9 00 90 00 55 [12:41:13]RAPDU: 90 00 [12:41:13]wFMCommunicate OK [12:41:13]SAM_PROTO_ClearQueue done [12:41:13]KKMCreateOFDPacket [12:41:13]OFDProtocolAddRootSTLVToBuf [12:41:13]FM_MakeSignedData [12:41:13]FM_MakeSignedData [12:41:13]SAM_PROTO_SignData [12:41:13]wFMCommunicate request_size=4 [12:41:13]MH_SAM_APDU [12:41:13]CAPDU: 80 0D 01 02 [12:41:13]Write to MH i2c: E2 08 00 39 A9 80 0D 01 02 00 00 00 00 5B [12:41:13]Write i2c OK [12:41:13]MH_I2C_Read... [12:41:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:41:13]Read from MH i2c: E2 [12:41:13]MH_I2C_Read... [12:41:13]Read from MH i2c: E2 03 00 [12:41:13]MH_I2C_Read... [12:41:13]Read from MH i2c: E2 03 00 39 A9 00 90 00 56 [12:41:13]RAPDU: 90 00 [12:41:13]wFMCommunicate OK [12:41:13]wFMCommunicate request_size=255 [12:41:13]MH_SAM_APDU [12: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 04 62 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 62 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AA 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F7 5B 00 00 00 00 07 04 06 00 04 62 03 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 F4 D1 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 F5 94 01 00 35 04 06 00 B6 [12:41:13]Write to MH i2c: E2 02 01 3A A9 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 04 62 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 62 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AA 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F7 5B 00 00 00 00 07 04 06 00 04 62 03 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 F4 D1 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 F5 94 01 00 35 04 06 00 B6 00 00 EE [12:41:13]Write i2c OK [12:41:13]MH_I2C_Read... [12:41:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:41:13]Read from MH i2c: E2 [12:41:13]MH_I2C_Read... [12:41:13]Read from MH i2c: E2 03 00 [12:41:13]MH_I2C_Read... [12:41:13]Read from MH i2c: E2 03 00 3A A9 00 90 00 57 [12:41:13]RAPDU: 90 00 [12:41:13]wFMCommunicate OK [12:41:13]wFMCommunicate request_size=10 [12:41:13]MH_SAM_APDU [12:41:13]CAPDU: 80 0D 02 02 05 36 96 31 CB 19 [12:41:13]Write to MH i2c: E2 0D 00 3B A9 80 0D 02 02 05 00 36 96 31 CB 19 00 00 49 [12:41:13]Write i2c OK [12:41:13]MH_I2C_Read... [12:41:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:41:13]Read from MH i2c: E2 [12:41:13]MH_I2C_Read... [12:41:13]Read from MH i2c: E2 03 00 [12:41:13]MH_I2C_Read... [12:41:13]Read from MH i2c: E2 03 00 3B A9 00 90 00 58 [12:41:13]RAPDU: 90 00 [12:41:13]wFMCommunicate OK [12:41:13]wFMCommunicate request_size=4 [12:41:13]MH_SAM_APDU [12:41:13]CAPDU: 80 0D 03 02 [12:41:13]Write to MH i2c: E2 08 00 3C A9 80 0D 03 02 00 00 00 00 60 [12:41:13]Write i2c OK [12:41:13]MH_I2C_Read... [12:41:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:41:13]Read from MH i2c: E2 [12:41:13]MH_I2C_Read... [12:41:13]Read from MH i2c: E2 0B 00 [12:41:13]MH_I2C_Read... [12:41:13]Read from MH i2c: E2 0B 00 3C A9 00 FA 7E D8 24 E9 2B B1 FB 90 00 95 [12:41:13]RAPDU: FA 7E D8 24 E9 2B B1 FB 90 00 [12:41:13]wFMCommunicate OK [12:41:13]SAM_PROTO_SignData done [12:41:13]FM_MakeSignedData done [12:41:13]CreateOFDProtocolMessage [12:41:13]wFMCommunicate request_size=4 [12:41:13]MH_SAM_APDU [12:41:13]CAPDU: 80 11 00 00 [12:41:13]Write to MH i2c: E2 08 00 3D A9 80 11 00 00 00 00 00 00 60 [12:41:13]Write i2c OK [12:41:13]MH_I2C_Read... [12:41:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:41:13]Read from MH i2c: E2 [12:41:13]MH_I2C_Read... [12:41:13]Read from MH i2c: E2 17 00 [12:41:13]MH_I2C_Read... [12:41:13]Read from MH i2c: E2 17 00 3D A9 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 B3 [12:41:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [12:41:13]wFMCommunicate OK [12:41:13]CreateOFDProtocolMessage done [12:41:13]OFDSenderStorePacket 103669 [12:41:13]StoreOFDPacket docnum=103669 [12:41:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 29 BF 07 01 D9 28 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 04 62 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 62 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AA 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F7 5B 00 00 00 00 07 04 06 00 04 62 03 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 F4 D1 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 F5 94 01 00 35 04 06 00 B6 36 96 31 CB 19 FA 7E D8 24 E9 2B B1 FB [12:41:13]CheckFolder [12:41:13]dirname=/storage/ofd_packets [12:41:13]CheckFolder done [12:41:13]ProducePacketName [12:41:13]name=ofd_packets/00103669 [12:41:13]NVStorageSaveData ofd_packets/00103669 [12:41:13]File name is /storage/ofd_packets/00103669 [12:41:13]Write 301 bytes [12:41:13]NVStorageSaveData done [12:41:13]OFDSenderStorePacket done [12:41:13]KKMCreateOFDPacket done [12:41:13]NVStorageSaveData kkm_last_timestamp [12:41:13]File name is /storage/kkm_last_timestamp [12:41:13]Write 4 bytes [12:41:13]NVStorageSaveData done [12:41:13]ExternCall_PrintAddStr [12:41:13]wPrintStart [12:41:13]Write to MH i2c: 01 00 00 3E A9 E7 [12:41:13]Write i2c OK [12:41:13]MH_I2C_Read... [12:41:13]Read from MH i2c: 01 [12:41:13]MH_I2C_Read... [12:41:13]Read from MH i2c: 01 07 00 [12:41:13]MH_I2C_Read... [12:41:13]Read from MH i2c: 01 07 00 3E A9 00 00 00 00 00 FF 0F FC [12:41:13]RasterBufferAndPrint [12:41:13]line Счет N : (1)672922 [12:41:13]line ИНН: 02508201610067 [12:41:13]line Контрольно-Кассовый Чек [12:41:13]line ПРОДАЖА [12:41:13]line ТРК (МРК, ГНК) : 31 [12:41:13]line Товар: 2710124500 [12:41:13]line Аи-95-К-5 [12:41:13]line 30.000 * 73.90 [12:41:13]line = 2217.00 [12:41:13]line НДС 12% НСП 1% [12:41:13]line > о реализуемом товаре [12:41:13]line ИТОГО: 2217.00 [12:41:13]line Внесено: 3000.00 [12:41:13]line СДАЧА: 783.00 [12:41:13]line НСП 1% : 19.62 [12:41:13]line НДС 12% : 235.43 [12:41:13]line Наличными: 2217.00 [12:41:13]line Безнал.: 0.00 [12:41:13]line Место: АЗС № 120 "Партнер Нефть" [12:41:13]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [12:41:13]line СНО: Общий режим [12:41:13]line Чек 99 19.06.2024 12:41 [12:41:13]line Смена: 353 ФФД: 1.0 [12:41:13]line ЗНМ: 0300000164 [12:41:13]line РНМ: 0000000000092785 [12:41:13]line Версия ККМ: 001 [12:41:13]line ФМ: 0000000000875093 [12:41:13]line ФД: 103669 [12:41:14]line ФПД: 200345564334873 [12:41:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T124124&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103669&fm=200345564334873&tin=02508201610067®Number=0000000000092785&sum=221700 [12:41:14]OFD Sender: Processing packet 103669 [packets to send 17, broken 16] [12:41:14]ProducePacketName [12:41:14]name=ofd_packets/00103669 [12:41:14]OFD Sender: To server: pG, [12:41:14]CommunicateWithHost lk.salyk.kg:30040 [12:41:14]ConnectInit lk.salyk.kg [12:41:14]written 0, free lines is 4095 [12:41:14]Connected sock=10 [12: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 39 33 0F 01 00 00 29 BF 07 01 D9 28 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 04 62 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 62 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AA 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F7 5B 00 00 00 00 07 04 06 00 04 62 03 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 F4 D1 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 F5 94 01 00 35 04 06 00 B6 36 96 31 CB 19 FA 7E D8 24 E9 2B B1 FB [12: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 39 33 4F 00 00 00 2F 8F 47 00 8F 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 39 33 10 04 04 00 F5 94 01 00 F4 03 04 00 7D 78 72 66 B6 04 01 00 00 88 93 29 5A 07 52 1E DB [12:41:14]CommunicateWithHost err = 0 [12:41:14]CheckOFDResponse [12:41:14]1017 (14) - 77093643461234 [12:41:14]1041 (16) - 0000000000875093 [12:41:14]1040 (4) - 103669 [12:41:14]1012 (4) - 19.06.2024 06:19 [12:41:14]1206 (1) - 0 [12:41:14]OFD Sender: Remove packet 103669 [12:41:14]ProducePacketName [12:41:14]name=ofd_packets/00103669 [12:41:14]NVStorageDeleteData [12:41:14]Write to MH i2c: 01 00 00 68 A9 11 [12:41:14]Write i2c OK [12:41:14]MH_I2C_Read... [12:41:14]Read from MH i2c: 01 [12:41:14]MH_I2C_Read... [12:41:14]Read from MH i2c: 01 07 00 [12:41:14]MH_I2C_Read... [12:41:14]Read from MH i2c: 01 07 00 68 A9 00 00 00 00 00 FD 0C 21 [12:41:14]RasterBufferAndPrint [12:41:14]line [12:41:14]line [12:41:14]line [12:41:14]line [12:41:14]line [12:41:14]written 0, free lines is 3331 [12:41:14]MH_Cut [12:41:14]Write to MH i2c: D1 01 00 6F A9 01 EA [12:41:14]Write i2c OK [12:41:14]MH_I2C_Read... [12:41:14]Read from MH i2c: D1 [12:41:14]MH_I2C_Read... [12:41:14]Read from MH i2c: D1 01 00 [12:41:14]MH_I2C_Read... [12:41:14]Read from MH i2c: D1 01 00 6F A9 00 E9 [12:41:14]Write to MH i2c: 01 00 00 70 A9 19 [12:41:14]Write i2c OK [12:41:14]MH_I2C_Read... [12:41:15]OFD Sender: No OFD packet to send [12:41:15]*** Cut start [12:41:15]*** Partial cut [12:41:15]*** CUTSNS_PIN = 1 [12:41:15]*** CUTSNS_PIN = 0 [12:41:15]*** Brake cut motor [12:41:16]Read from MH i2c: 01 [12:41:16]MH_I2C_Read... [12:41:16]*** Stop cut motor [12:41:16]*** Cut end [12:41:16]Read from MH i2c: 01 07 00 [12:41:16]MH_I2C_Read... [12:41:16]Read from MH i2c: 01 07 00 70 A9 00 00 00 00 00 FF 0F 2E [12:41:16]process_action close_receipt done [12:41:16]requested_data is exist [12:41:16]produce_requested_data [12:41:16]requested_item fm.sn is exist - process it [12:41:16]wFMCommunicate request_size=4 [12:41:16]MH_SAM_APDU [12:41:16]CAPDU: 80 11 00 00 [12:41:16]Write to MH i2c: E2 08 00 71 A9 80 11 00 00 00 00 00 00 94 [12:41:16]Write i2c OK [12:41:16]MH_I2C_Read... [12:41:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:41:16]Read from MH i2c: E2 [12:41:16]MH_I2C_Read... [12:41:16]Read from MH i2c: E2 17 00 [12:41:16]MH_I2C_Read... [12:41:16]Read from MH i2c: E2 17 00 71 A9 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 E7 [12:41:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [12:41:16]wFMCommunicate OK [12:41:16]requested_item fd.num is exist - process it [12:41:16]SAM_PROTO_GetFieldsCounters [12:41:16]wFMCommunicate request_size=4 [12:41:16]MH_SAM_APDU [12:41:16]CAPDU: 80 13 00 00 [12:41:16]Write to MH i2c: E2 08 00 72 A9 80 13 00 00 00 00 00 00 97 [12:41:16]Write i2c OK [12:41:16]MH_I2C_Read... [12:41:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:41:16]Read from MH i2c: E2 [12:41:16]MH_I2C_Read... [12:41:16]Read from MH i2c: E2 62 00 [12:41:16]MH_I2C_Read... [12:41:16]Read from MH i2c: E2 62 00 72 A9 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 F5 94 01 00 0E 04 04 00 61 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 D3 [12:41: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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 F5 94 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 63 00 00 00 5E 04 04 00 63 00 00 00 57 04 04 00 64 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:41:16]wFMCommunicate OK [12:41:16]SAM_PROTO_GetFieldsCounters done [12:41:16]requested_item shift.num is exist - process it [12:41:16]requested_item shift.opened is exist - process it [12:41:16]req_shift_opened [12:41:16]FM_GetShiftState [12:41:16]SAM_PROTO_GetShiftState [12:41:16]wFMCommunicate request_size=4 [12:41:16]MH_SAM_APDU [12:41:16]CAPDU: 80 13 01 00 [12:41:16]Write to MH i2c: E2 08 00 73 A9 80 13 01 00 00 00 00 00 99 [12:41:16]Write i2c OK [12:41:16]MH_I2C_Read... [12:41:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:41:16]Read from MH i2c: E2 [12:41:16]MH_I2C_Read... [12:41:16]Read from MH i2c: E2 0E 00 [12:41:16]MH_I2C_Read... [12:41:16]Read from MH i2c: E2 0E 00 73 A9 00 09 00 01 04 26 72 66 00 00 00 00 90 00 A7 [12:41:16]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [12:41:16]wFMCommunicate OK [12:41:16]SAM_PROTO_GetShiftState done [12:41:16]FM_GetShiftState done [12:41:16]req_shift_opened done [12:41:16]requested_item shift.open_date is exist - process it [12:41:16]req_shift_open_date [12:41:16]req_shift_open_date done [12:41:16]produce_requested_data done [12:41:16]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103669,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [12:41:16]process_action_free close_receipt [12:41:16]json_value_free [12:41:16]json_value_free done [12:41:16]process_json_proto returns [12:41:16]Send response to host [12:41:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103669,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [12:41:16]free response buf [12:41:16]execute_script done [12:41:16]execute_script returns [12:41:16]free content buf [12:41:16]Sock 9.Close socket [12:41:16]Sock 9.Thread stoped [12:41:16]accept exits with 7 [12:41:16]New connection [12:41:16]New thread 3067084132 created [12:41:16]Thread 3067227492 joined [12:41:16]Waiting for new connection... [12:41:16] Sock 7.Parse request [12:41:16]Sock 7.Check first char [12:41:16]Sock 7.First char is OK [12:41:16]request: POST /json_proto HTTP/1.0 [12:41:16]Method: POST [12:41:16]URL: /json_proto [12:41:16]Method is POST - this is cgi request [12:41:16]url: /json_proto [12:41:16]query_string will be loaded in cgi processing [12:41:16]execute_cgi json_proto POST (null) [12:41:16]execute_cgi path=json_proto method=POST [12:41:16]POST find Content-Length [12:41:16]Host: 172.17.38.133:8080 [12:41:16]Content-Length: 687 [12:41:16]Content-Type: application/json [12:41:16] [12:41:16]POST finish read [12:41:16]Found Content-Length = 687 [12:41:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672921", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 20.580, "sum" : 1500.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:41:16]execute_script... [12:41:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672921", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 20.580, "sum" : 1500.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:41:16]POST & json_proto [12:41:16]process_json_proto [12:41:16]json parsed OK: [12:41:16]protocol is kg_v1.0 [12:41:16]action value=close_receipt [12:41:16]process_action close_receipt [12:41:16]cmd_close_receipt [12:41:16]MH_GetDate [12:41:16]Write to MH i2c: F0 00 00 74 A9 0C [12:41:16]Write i2c OK [12:41:16]MH_I2C_Read... [12:41:16]Read from MH i2c: F0 [12:41:16]MH_I2C_Read... [12:41:16]Read from MH i2c: F0 09 00 [12:41:16]MH_I2C_Read... [12:41:16]Read from MH i2c: F0 09 00 74 A9 00 F9 D1 72 66 BD 8F 7C 64 E3 [12:41:16]GetLastDocTimeStamp 1718800884 [12:41:16]current date 1718800889 [12:41:16]FM_GetShiftState [12:41:16]SAM_PROTO_GetShiftState [12:41:16]wFMCommunicate request_size=4 [12:41:16]MH_SAM_APDU [12:41:16]CAPDU: 80 13 01 00 [12:41:16]Write to MH i2c: E2 08 00 75 A9 80 13 01 00 00 00 00 00 9B [12:41:16]Write i2c OK [12:41:16]MH_I2C_Read... [12:41:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:41:16]Read from MH i2c: E2 [12:41:16]MH_I2C_Read... [12:41:16]Read from MH i2c: E2 0E 00 [12:41:16]MH_I2C_Read... [12:41:16]Read from MH i2c: E2 0E 00 75 A9 00 09 00 01 04 26 72 66 00 00 00 00 90 00 A9 [12:41:16]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [12:41:16]wFMCommunicate OK [12:41:16]SAM_PROTO_GetShiftState done [12:41:16]FM_GetShiftState done [12:41:16]opened in 1718756868 [12:41:16]opened+sec_in_day 1718843268 [12:41:16]quantity*price = 150028 [12:41:16]sum+1 = 150029 [12:41:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.32 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 100 19.06.2024 12:41 Смена: 353 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103670 ФПД: 5732689443363 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T124129&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103670&fm=5732689443363&tin=02508201610067®Number=0000000000092785&sum=150000 [12:41:17]StoreToDocumentArchive [12:41:17]shift 353 fd 103670 [12:41:17]save to /storage/0353/doc_00103670 [12:41:17]save last doc name /storage/0353/doc_00103670 to /storage/kkm_last_doc_name [12:41:17]save OK [12:41:17]Clear old archive folders... [12:41:17]ProcessDocumentItem done err = 0, tmpTLVsize=252 [12:41:17]tlvbuf is 01410630 [12:41:17]SAM_PROTO_ClearQueue [12:41:17]wFMCommunicate request_size=4 [12:41:17]MH_SAM_APDU [12:41:17]CAPDU: 80 09 00 00 [12:41:17]Write to MH i2c: E2 08 00 82 A9 80 09 00 00 00 00 00 00 9D [12:41:17]Write i2c OK [12:41:17]MH_I2C_Read... [12:41:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:41:17]Read from MH i2c: E2 [12:41:17]MH_I2C_Read... [12:41:17]Read from MH i2c: E2 03 00 [12:41:17]MH_I2C_Read... [12:41:17]Read from MH i2c: E2 03 00 82 A9 00 90 00 9F [12:41:17]RAPDU: 90 00 [12:41:17]wFMCommunicate OK [12:41:17]SAM_PROTO_ClearQueue done [12:41:17]KKMCreateOFDPacket [12:41:17]OFDProtocolAddRootSTLVToBuf [12:41:17]FM_MakeSignedData [12:41:17]FM_MakeSignedData [12:41:17]SAM_PROTO_SignData [12:41:17]wFMCommunicate request_size=4 [12:41:17]MH_SAM_APDU [12:41:17]CAPDU: 80 0D 01 02 [12:41:17]Write to MH i2c: E2 08 00 83 A9 80 0D 01 02 00 00 00 00 A5 [12:41:17]Write i2c OK [12:41:17]MH_I2C_Read... [12:41:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:41:18]Read from MH i2c: E2 [12:41:18]MH_I2C_Read... [12:41:18]Read from MH i2c: E2 03 00 [12:41:18]MH_I2C_Read... [12:41:18]Read from MH i2c: E2 03 00 83 A9 00 90 00 A0 [12:41:18]RAPDU: 90 00 [12:41:18]wFMCommunicate OK [12:41:18]wFMCommunicate request_size=255 [12:41:18]MH_SAM_APDU [12:41:18]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 64 50 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 0C 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3C 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 F9 D1 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 F6 94 01 00 35 04 06 00 [12:41:18]Write to MH i2c: E2 02 01 84 A9 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 64 50 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 0C 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3C 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 F9 D1 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 F6 94 01 00 35 04 06 00 00 00 AA [12:41:18]Write i2c OK [12:41:18]MH_I2C_Read... [12:41:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:41:18]Read from MH i2c: E2 [12:41:18]MH_I2C_Read... [12:41:18]Read from MH i2c: E2 03 00 [12:41:18]MH_I2C_Read... [12:41:18]Read from MH i2c: E2 03 00 84 A9 00 90 00 A1 [12:41:18]RAPDU: 90 00 [12:41:18]wFMCommunicate OK [12:41:18]wFMCommunicate request_size=11 [12:41:18]MH_SAM_APDU [12:41:18]CAPDU: 80 0D 02 02 06 05 36 BE EA FA 23 [12:41:18]Write to MH i2c: E2 0E 00 85 A9 80 0D 02 02 06 00 05 36 BE EA FA 23 00 00 B4 [12:41:18]Write i2c OK [12:41:18]MH_I2C_Read... [12:41:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:41:18]Read from MH i2c: E2 [12:41:18]MH_I2C_Read... [12:41:18]Read from MH i2c: E2 03 00 [12:41:18]MH_I2C_Read... [12:41:18]Read from MH i2c: E2 03 00 85 A9 00 90 00 A2 [12:41:18]RAPDU: 90 00 [12:41:18]wFMCommunicate OK [12:41:18]wFMCommunicate request_size=4 [12:41:18]MH_SAM_APDU [12:41:18]CAPDU: 80 0D 03 02 [12:41:18]Write to MH i2c: E2 08 00 86 A9 80 0D 03 02 00 00 00 00 AA [12:41:18]Write i2c OK [12:41:18]MH_I2C_Read... [12:41:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:41:18]Read from MH i2c: E2 [12:41:18]MH_I2C_Read... [12:41:18]Read from MH i2c: E2 0B 00 [12:41:18]MH_I2C_Read... [12:41:18]Read from MH i2c: E2 0B 00 86 A9 00 C0 35 B9 45 05 A3 E6 CF 90 00 FB [12:41:18]RAPDU: C0 35 B9 45 05 A3 E6 CF 90 00 [12:41:18]wFMCommunicate OK [12:41:18]SAM_PROTO_SignData done [12:41:18]FM_MakeSignedData done [12:41:18]CreateOFDProtocolMessage [12:41:18]wFMCommunicate request_size=4 [12:41:18]MH_SAM_APDU [12:41:18]CAPDU: 80 11 00 00 [12:41:18]Write to MH i2c: E2 08 00 87 A9 80 11 00 00 00 00 00 00 AA [12:41:18]Write i2c OK [12:41:18]MH_I2C_Read... [12:41:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:41:18]Read from MH i2c: E2 [12:41:18]MH_I2C_Read... [12:41:18]Read from MH i2c: E2 17 00 [12:41:18]MH_I2C_Read... [12:41:18]Read from MH i2c: E2 17 00 87 A9 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 FD [12:41:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [12:41:18]wFMCommunicate OK [12:41:18]CreateOFDProtocolMessage done [12:41:18]OFDSenderStorePacket 103670 [12:41:18]StoreOFDPacket docnum=103670 [12:41:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 93 58 08 01 BE 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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 64 50 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 0C 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3C 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 F9 D1 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 F6 94 01 00 35 04 06 00 05 36 BE EA FA 23 C0 35 B9 45 05 A3 E6 CF [12:41:18]CheckFolder [12:41:18]dirname=/storage/ofd_packets [12:41:18]CheckFolder done [12:41:18]ProducePacketName [12:41:18]name=ofd_packets/00103670 [12:41:18]NVStorageSaveData ofd_packets/00103670 [12:41:18]File name is /storage/ofd_packets/00103670 [12:41:18]Write 302 bytes [12:41:18]NVStorageSaveData done [12:41:18]OFDSenderStorePacket done [12:41:18]KKMCreateOFDPacket done [12:41:18]NVStorageSaveData kkm_last_timestamp [12:41:18]File name is /storage/kkm_last_timestamp [12:41:18]Write 4 bytes [12:41:18]NVStorageSaveData done [12:41:18]ExternCall_PrintAddStr [12:41:18]wPrintStart [12:41:18]Write to MH i2c: 01 00 00 88 A9 31 [12:41:18]Write i2c OK [12:41:18]MH_I2C_Read... [12:41:18]Read from MH i2c: 01 [12:41:18]MH_I2C_Read... [12:41:18]Read from MH i2c: 01 07 00 [12:41:18]MH_I2C_Read... [12:41:18]Read from MH i2c: 01 07 00 88 A9 00 00 00 00 00 FF 0F 46 [12:41:18]RasterBufferAndPrint [12:41:18]line Счет N : (1)672921 [12:41:18]line ИНН: 02508201610067 [12:41:18]line Контрольно-Кассовый Чек [12:41:18]line ПРОДАЖА [12:41:18]line ТРК (МРК, ГНК) : 21 [12:41:18]line Товар: 2710194210 [12:41:18]line ДТ(л)-К-5 [12:41:18]line 20.580 * 72.90 [12:41:18]line = 1500.28 [12:41:18]line НДС 12% НСП 1% [12:41:18]line > о реализуемом товаре [12:41:18]line ОКРУГЛЕНИЕ: -0.28 [12:41:18]line ИТОГО: 1500.00 [12:41:18]line Внесено: 1500.00 [12:41:18]line СДАЧА: 0.00 [12:41:18]line НСП 1% : 13.28 [12:41:18]line НДС 12% : 159.32 [12:41:18]line Наличными: 1500.00 [12:41:18]line Безнал.: 0.00 [12:41:18]line Место: АЗС № 120 "Партнер Нефть" [12:41:18]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [12:41:18]line СНО: Общий режим [12:41:18]line Чек 100 19.06.2024 12:41 [12:41:18]line Смена: 353 ФФД: 1.0 [12:41:18]line ЗНМ: 0300000164 [12:41:18]line РНМ: 0000000000092785 [12:41:18]line Версия ККМ: 001 [12:41:18]line ФМ: 0000000000875093 [12:41:18]line ФД: 103670 [12:41:18]line ФПД: 5732689443363 [12:41:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T124129&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103670&fm=5732689443363&tin=02508201610067®Number=0000000000092785&sum=150000 [12:41:19]OFD Sender: Processing packet 103670 [packets to send 17, broken 16] [12:41:19]ProducePacketName [12:41:19]name=ofd_packets/00103670 [12:41:19]OFD Sender: To server: pG, [12:41:19]CommunicateWithHost lk.salyk.kg:30040 [12:41:19]ConnectInit lk.salyk.kg [12:41:19]written 0, free lines is 4095 [12:41:19]Connected sock=10 [12:41:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 93 58 08 01 BE 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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 64 50 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 0C 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3C 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 F9 D1 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 F6 94 01 00 35 04 06 00 05 36 BE EA FA 23 C0 35 B9 45 05 A3 E6 CF [12:41:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 BA D5 47 00 9F 3C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 F6 94 01 00 F4 03 04 00 82 78 72 66 B6 04 01 00 00 E2 EA D9 00 1E FE EE 0E [12:41:19]CommunicateWithHost err = 0 [12:41:19]CheckOFDResponse [12:41:19]1017 (14) - 77093643461234 [12:41:19]1041 (16) - 0000000000875093 [12:41:19]1040 (4) - 103670 [12:41:19]1012 (4) - 19.06.2024 06:19 [12:41:19]1206 (1) - 0 [12:41:19]OFD Sender: Remove packet 103670 [12:41:19]ProducePacketName [12:41:19]name=ofd_packets/00103670 [12:41:19]NVStorageDeleteData [12:41:19]Write to MH i2c: 01 00 00 B3 A9 5C [12:41:19]Write i2c OK [12:41:19]MH_I2C_Read... [12:41:19]Read from MH i2c: 01 [12:41:19]MH_I2C_Read... [12:41:19]Read from MH i2c: 01 07 00 [12:41:19]MH_I2C_Read... [12:41:19]Read from MH i2c: 01 07 00 B3 A9 00 00 00 00 00 F2 0C 61 [12:41:19]RasterBufferAndPrint [12:41:19]line [12:41:19]line [12:41:19]line [12:41:19]line [12:41:19]line [12:41:19]written 0, free lines is 3326 [12:41:19]MH_Cut [12:41:19]Write to MH i2c: D1 01 00 BA A9 01 35 [12:41:19]Write i2c OK [12:41:19]MH_I2C_Read... [12:41:19]Read from MH i2c: D1 [12:41:19]MH_I2C_Read... [12:41:19]Read from MH i2c: D1 01 00 [12:41:19]MH_I2C_Read... [12:41:19]Read from MH i2c: D1 01 00 BA A9 00 34 [12:41:19]Write to MH i2c: 01 00 00 BB A9 64 [12:41:19]Write i2c OK [12:41:19]MH_I2C_Read... [12:41:20]OFD Sender: No OFD packet to send [12:41:20]*** Cut start [12:41:20]*** Partial cut [12:41:20]*** CUTSNS_PIN = 1 [12:41:20]*** CUTSNS_PIN = 0 [12:41:20]*** Brake cut motor [12:41:20]Read from MH i2c: 01 [12:41:20]MH_I2C_Read... [12:41:20]*** Stop cut motor [12:41:20]*** Cut end [12:41:20]Read from MH i2c: 01 07 00 [12:41:20]MH_I2C_Read... [12:41:20]Read from MH i2c: 01 07 00 BB A9 00 00 00 00 00 FF 0F 79 [12:41:20]process_action close_receipt done [12:41:20]requested_data is exist [12:41:20]produce_requested_data [12:41:20]requested_item fm.sn is exist - process it [12:41:20]wFMCommunicate request_size=4 [12:41:20]MH_SAM_APDU [12:41:20]CAPDU: 80 11 00 00 [12:41:20]Write to MH i2c: E2 08 00 BC A9 80 11 00 00 00 00 00 00 DF [12:41:21]Write i2c OK [12:41:21]MH_I2C_Read... [12:41:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:41:21]Read from MH i2c: E2 [12:41:21]MH_I2C_Read... [12:41:21]Read from MH i2c: E2 17 00 [12:41:21]MH_I2C_Read... [12:41:21]Read from MH i2c: E2 17 00 BC A9 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 32 [12:41:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [12:41:21]wFMCommunicate OK [12:41:21]requested_item fd.num is exist - process it [12:41:21]SAM_PROTO_GetFieldsCounters [12:41:21]wFMCommunicate request_size=4 [12:41:21]MH_SAM_APDU [12:41:21]CAPDU: 80 13 00 00 [12:41:21]Write to MH i2c: E2 08 00 BD A9 80 13 00 00 00 00 00 00 E2 [12:41:21]Write i2c OK [12:41:21]MH_I2C_Read... [12:41:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:41:21]Read from MH i2c: E2 [12:41:21]MH_I2C_Read... [12:41:21]Read from MH i2c: E2 62 00 [12:41:21]MH_I2C_Read... [12:41:21]Read from MH i2c: E2 62 00 BD A9 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 F6 94 01 00 0E 04 04 00 61 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 22 [12:41: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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 F6 94 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 64 00 00 00 5E 04 04 00 64 00 00 00 57 04 04 00 65 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:41:21]wFMCommunicate OK [12:41:21]SAM_PROTO_GetFieldsCounters done [12:41:21]requested_item shift.num is exist - process it [12:41:21]requested_item shift.opened is exist - process it [12:41:21]req_shift_opened [12:41:21]FM_GetShiftState [12:41:21]SAM_PROTO_GetShiftState [12:41:21]wFMCommunicate request_size=4 [12:41:21]MH_SAM_APDU [12:41:21]CAPDU: 80 13 01 00 [12:41:21]Write to MH i2c: E2 08 00 BE A9 80 13 01 00 00 00 00 00 E4 [12:41:21]Write i2c OK [12:41:21]MH_I2C_Read... [12:41:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:41:21]Read from MH i2c: E2 [12:41:21]MH_I2C_Read... [12:41:21]Read from MH i2c: E2 0E 00 [12:41:21]MH_I2C_Read... [12:41:21]Read from MH i2c: E2 0E 00 BE A9 00 09 00 01 04 26 72 66 00 00 00 00 90 00 F2 [12:41:21]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [12:41:21]wFMCommunicate OK [12:41:21]SAM_PROTO_GetShiftState done [12:41:21]FM_GetShiftState done [12:41:21]req_shift_opened done [12:41:21]requested_item shift.open_date is exist - process it [12:41:21]req_shift_open_date [12:41:21]req_shift_open_date done [12:41:21]produce_requested_data done [12:41:21]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103670,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [12:41:21]process_action_free close_receipt [12:41:21]json_value_free [12:41:21]json_value_free done [12:41:21]process_json_proto returns [12:41:21]Send response to host [12:41:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103670,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [12:41:21]free response buf [12:41:21]execute_script done [12:41:21]execute_script returns [12:41:21]free content buf [12:41:21]Sock 7.Close socket [12:41:21]Sock 7.Thread stoped [12:41:25]OFD Sender: No OFD packet to send [12:41:30]OFD Sender: No OFD packet to send [12:41:35]OFD Sender: No OFD packet to send [12:41:40]OFD Sender: No OFD packet to send [12:41:45]OFD Sender: No OFD packet to send [12:41:50]OFD Sender: No OFD packet to send [12:41:55]OFD Sender: No OFD packet to send [12:42:00]OFD Sender: No OFD packet to send [12:42:05]OFD Sender: No OFD packet to send [12:42:10]OFD Sender: No OFD packet to send [12:42:15]OFD Sender: No OFD packet to send [12:42:20]OFD Sender: No OFD packet to send [12:42:25]OFD Sender: No OFD packet to send [12:42:30]OFD Sender: No OFD packet to send [12:42:35]OFD Sender: No OFD packet to send [12:42:40]OFD Sender: No OFD packet to send [12:42:45]OFD Sender: No OFD packet to send [12:42:50]OFD Sender: No OFD packet to send [12:42:55]OFD Sender: No OFD packet to send [12:43:00]OFD Sender: No OFD packet to send [12:43:05]OFD Sender: No OFD packet to send [12:43:10]OFD Sender: No OFD packet to send [12:43:15]OFD Sender: No OFD packet to send [12:43:20]OFD Sender: No OFD packet to send [12:43:25]OFD Sender: No OFD packet to send [12:43:30]OFD Sender: No OFD packet to send [12:43:35]OFD Sender: No OFD packet to send [12:43:40]OFD Sender: No OFD packet to send [12:43:45]OFD Sender: No OFD packet to send [12:43:50]OFD Sender: No OFD packet to send [12:43:55]OFD Sender: No OFD packet to send [12:44:00]OFD Sender: No OFD packet to send [12:44:05]OFD Sender: No OFD packet to send [12:44:10]OFD Sender: No OFD packet to send [12:44:15]OFD Sender: No OFD packet to send [12:44:20]OFD Sender: No OFD packet to send [12:44:25]OFD Sender: No OFD packet to send [12:44:30]OFD Sender: No OFD packet to send [12:44:35]OFD Sender: No OFD packet to send [12:44:40]OFD Sender: No OFD packet to send [12:44:45]OFD Sender: No OFD packet to send [12:44:50]OFD Sender: No OFD packet to send [12:44:55]OFD Sender: No OFD packet to send [12:45:00]OFD Sender: No OFD packet to send [12:45:05]OFD Sender: No OFD packet to send [12:45:10]accept exits with 9 [12:45:10]New connection [12:45:10]New thread 3067227492 created [12:45:10]Thread 3067084132 joined [12:45:10]Waiting for new connection... [12:45:10] Sock 9.Parse request [12:45:10]Sock 9.Check first char [12:45:10]Sock 9.First char is OK [12:45:10]request: POST /json_proto HTTP/1.0 [12:45:10]Method: POST [12:45:10]URL: /json_proto [12:45:10]Method is POST - this is cgi request [12:45:10]url: /json_proto [12:45:10]query_string will be loaded in cgi processing [12:45:10]execute_cgi json_proto POST (null) [12:45:10]execute_cgi path=json_proto method=POST [12:45:10]POST find Content-Length [12:45:10]Host: 172.17.38.133:8080 [12:45:10]Content-Length: 1197 [12:45:10]Content-Type: application/json [12:45:10] [12:45:10]POST finish read [12:45:10]Found Content-Length = 1197 [12:45:10]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 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. \u000A\u0421\u0447\u0435\u0442 N : (1)672923\u000A19.06.2024 12:22\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 42\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 66.40\u000A\u0418\u0422\u041E\u0413: 1328.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\u000A3592866\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:45:10]execute_script... [12:45:10]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 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. \u000A\u0421\u0447\u0435\u0442 N : (1)672923\u000A19.06.2024 12:22\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 42\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 66.40\u000A\u0418\u0422\u041E\u0413: 1328.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\u000A3592866\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:45:10]POST & json_proto [12:45:10]process_json_proto [12:45:10]json parsed OK: [12:45:10]protocol is kg_v1.0 [12:45:10]action value=print_text [12:45:10]process_action print_text [12:45:10]cmd_print_text [12:45:10]ExternCall_PrintAddStr [12:45:10]wPrintStart [12:45:10]Write to MH i2c: 01 00 00 BF A9 68 [12:45:10]Write i2c OK [12:45:10]MH_I2C_Read... [12:45:10]Read from MH i2c: 01 [12:45:10]MH_I2C_Read... [12:45:10]Read from MH i2c: 01 07 00 [12:45:10]MH_I2C_Read... [12:45:10]Read from MH i2c: 01 07 00 BF A9 00 00 00 00 00 FF 0F 7D [12:45:10]RasterBufferAndPrint [12:45:10]line *****ТОВАРНЫЙ ЧЕК***** [12:45:10]line АЗС 120 [12:45:10]line Партнер нефть [12:45:10]line 02508201610067 [12:45:10]line Кассир : Байбугуева Г. [12:45:10]line Счет N : (1)672923 [12:45:10]line 19.06.2024 12:22 [12:45:10]line ПРОДАЖА [12:45:10]line ТРК (МРК, ГНК): 42 [12:45:10]line Вид ГСМ : 2710124130 [12:45:10]line Аи-92-К-5 [12:45:10]line 20.000 x 66.40 [12:45:10]line ИТОГ: 1328.00 [12:45:10]line Тип оплаты: Талоны: Партнер нефть [12:45:10]line 3592866 [12:45:10]line ______________________ [12:45:10]line (подпись) [12:45:10]written 0, free lines is 4095 [12:45:10]Write to MH i2c: 01 00 00 D3 A9 7C [12:45:10]Write i2c OK [12:45:10]MH_I2C_Read... [12:45:10]Read from MH i2c: 01 [12:45:10]MH_I2C_Read... [12:45:10]Read from MH i2c: 01 07 00 [12:45:10]MH_I2C_Read... [12:45:10]Read from MH i2c: 01 07 00 D3 A9 00 00 00 00 00 15 0E A6 [12:45:10]RasterBufferAndPrint [12:45:10]line [12:45:10]line [12:45:10]line [12:45:10]line [12:45:10]line [12:45:10]written 0, free lines is 3607 [12:45:10]MH_Cut [12:45:10]Write to MH i2c: D1 01 00 DA A9 01 55 [12:45:10]Write i2c OK [12:45:10]MH_I2C_Read... [12:45:10]Read from MH i2c: D1 [12:45:10]MH_I2C_Read... [12:45:10]Read from MH i2c: D1 01 00 [12:45:10]MH_I2C_Read... [12:45:10]Read from MH i2c: D1 01 00 DA A9 00 54 [12:45:10]Write to MH i2c: 01 00 00 DB A9 84 [12:45:10]Write i2c OK [12:45:10]MH_I2C_Read... [12:45:10]OFD Sender: No OFD packet to send [12:45:10]*** Cut start [12:45:10]*** Partial cut [12:45:10]*** CUTSNS_PIN = 1 [12:45:10]*** CUTSNS_PIN = 0 [12:45:11]*** Brake cut motor [12:45:11]Read from MH i2c: 01 [12:45:11]MH_I2C_Read... [12:45:11]*** Stop cut motor [12:45:11]*** Cut end [12:45:11]Read from MH i2c: 01 07 00 [12:45:11]MH_I2C_Read... [12:45:11]Read from MH i2c: 01 07 00 DB A9 00 00 00 00 00 FF 0F 99 [12:45:11]process_action print_text done [12:45:11]requested_data is exist [12:45:11]produce_requested_data [12:45:11]requested_item fm.sn is exist - process it [12:45:11]wFMCommunicate request_size=4 [12:45:11]MH_SAM_APDU [12:45:11]CAPDU: 80 11 00 00 [12:45:11]Write to MH i2c: E2 08 00 DC A9 80 11 00 00 00 00 00 00 FF [12:45:11]Write i2c OK [12:45:11]MH_I2C_Read... [12:45:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:45:11]Read from MH i2c: E2 [12:45:11]MH_I2C_Read... [12:45:11]Read from MH i2c: E2 17 00 [12:45:11]MH_I2C_Read... [12:45:11]Read from MH i2c: E2 17 00 DC A9 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 52 [12:45:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [12:45:11]wFMCommunicate OK [12:45:11]requested_item fd.num is exist - process it [12:45:11]SAM_PROTO_GetFieldsCounters [12:45:11]wFMCommunicate request_size=4 [12:45:11]MH_SAM_APDU [12:45:11]CAPDU: 80 13 00 00 [12:45:11]Write to MH i2c: E2 08 00 DD A9 80 13 00 00 00 00 00 00 02 [12:45:11]Write i2c OK [12:45:11]MH_I2C_Read... [12:45:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:45:11]Read from MH i2c: E2 [12:45:11]MH_I2C_Read... [12:45:11]Read from MH i2c: E2 62 00 [12:45:11]MH_I2C_Read... [12:45:11]Read from MH i2c: E2 62 00 DD A9 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 F6 94 01 00 0E 04 04 00 61 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 42 [12:45: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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 F6 94 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 64 00 00 00 5E 04 04 00 64 00 00 00 57 04 04 00 65 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:45:11]wFMCommunicate OK [12:45:11]SAM_PROTO_GetFieldsCounters done [12:45:11]requested_item shift.num is exist - process it [12:45:11]requested_item shift.opened is exist - process it [12:45:11]req_shift_opened [12:45:11]FM_GetShiftState [12:45:11]SAM_PROTO_GetShiftState [12:45:11]wFMCommunicate request_size=4 [12:45:11]MH_SAM_APDU [12:45:11]CAPDU: 80 13 01 00 [12:45:11]Write to MH i2c: E2 08 00 DE A9 80 13 01 00 00 00 00 00 04 [12:45:11]Write i2c OK [12:45:11]MH_I2C_Read... [12:45:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:45:11]Read from MH i2c: E2 [12:45:11]MH_I2C_Read... [12:45:11]Read from MH i2c: E2 0E 00 [12:45:11]MH_I2C_Read... [12:45:11]Read from MH i2c: E2 0E 00 DE A9 00 09 00 01 04 26 72 66 00 00 00 00 90 00 12 [12:45:11]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [12:45:11]wFMCommunicate OK [12:45:11]SAM_PROTO_GetShiftState done [12:45:11]FM_GetShiftState done [12:45:11]req_shift_opened done [12:45:11]requested_item shift.open_date is exist - process it [12:45:11]req_shift_open_date [12:45:11]req_shift_open_date done [12:45:11]produce_requested_data done [12:45:11]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103670,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [12:45:11]process_action_free print_text [12:45:11]json_value_free [12:45:11]json_value_free done [12:45:11]process_json_proto returns [12:45:11]Send response to host [12:45:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103670,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [12:45:11]free response buf [12:45:11]execute_script done [12:45:11]execute_script returns [12:45:11]free content buf [12:45:11]Sock 9.Close socket [12:45:11]Sock 9.Thread stoped [12:45:15]OFD Sender: No OFD packet to send [12:45:20]OFD Sender: No OFD packet to send [12:45:25]OFD Sender: No OFD packet to send [12:45:30]OFD Sender: No OFD packet to send [12:45:35]OFD Sender: No OFD packet to send [12:45:40]OFD Sender: No OFD packet to send [12:45:45]OFD Sender: No OFD packet to send [12:45:45]accept exits with 7 [12:45:45]New connection [12:45:45]New thread 3067084132 created [12:45:45]Thread 3067227492 joined [12:45:45]Waiting for new connection... [12:45:45] Sock 7.Parse request [12:45:45]Sock 7.Check first char [12:45:45]Sock 7.First char is OK [12:45:45]request: POST /json_proto HTTP/1.0 [12:45:45]Method: POST [12:45:45]URL: /json_proto [12:45:45]Method is POST - this is cgi request [12:45:45]url: /json_proto [12:45:45]query_string will be loaded in cgi processing [12:45:45]execute_cgi json_proto POST (null) [12:45:45]execute_cgi path=json_proto method=POST [12:45:45]POST find Content-Length [12:45:45]Host: 172.17.38.133:8080 [12:45:45]Content-Length: 687 [12:45:45]Content-Type: application/json [12:45:45] [12:45:45]POST finish read [12:45:45]Found Content-Length = 687 [12:45:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672924", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 27.440, "sum" : 2000.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:45:45]execute_script... [12:45:45]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672924", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 27.440, "sum" : 2000.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:45:45]POST & json_proto [12:45:45]process_json_proto [12:45:45]json parsed OK: [12:45:45]protocol is kg_v1.0 [12:45:45]action value=close_receipt [12:45:45]process_action close_receipt [12:45:45]cmd_close_receipt [12:45:45]MH_GetDate [12:45:45]Write to MH i2c: F0 00 00 DF A9 77 [12:45:45]Write i2c OK [12:45:45]MH_I2C_Read... [12:45:45]Read from MH i2c: F0 [12:45:45]MH_I2C_Read... [12:45:45]Read from MH i2c: F0 09 00 [12:45:45]MH_I2C_Read... [12:45:45]Read from MH i2c: F0 09 00 DF A9 00 06 D3 72 66 BD 8F 7C 64 5D [12:45:45]GetLastDocTimeStamp 1718800889 [12:45:45]current date 1718801158 [12:45:45]FM_GetShiftState [12:45:45]SAM_PROTO_GetShiftState [12:45:45]wFMCommunicate request_size=4 [12:45:45]MH_SAM_APDU [12:45:45]CAPDU: 80 13 01 00 [12:45:45]Write to MH i2c: E2 08 00 E0 A9 80 13 01 00 00 00 00 00 06 [12:45:45]Write i2c OK [12:45:45]MH_I2C_Read... [12:45:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:45:45]Read from MH i2c: E2 [12:45:45]MH_I2C_Read... [12:45:45]Read from MH i2c: E2 0E 00 [12:45:45]MH_I2C_Read... [12:45:45]Read from MH i2c: E2 0E 00 E0 A9 00 09 00 01 04 26 72 66 00 00 00 00 90 00 14 [12:45:45]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [12:45:45]wFMCommunicate OK [12:45:45]SAM_PROTO_GetShiftState done [12:45:45]FM_GetShiftState done [12:45:45]opened in 1718756868 [12:45:45]opened+sec_in_day 1718843268 [12:45:45]quantity*price = 200037 [12:45:45]sum+1 = 200039 [12:45:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.43 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 101 19.06.2024 12:45 Смена: 353 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103671 ФПД: 235021668294843 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T124558&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103671&fm=235021668294843&tin=02508201610067®Number=0000000000092785&sum=200000 [12:45:46]StoreToDocumentArchive [12:45:46]shift 353 fd 103671 [12:45:46]save to /storage/0353/doc_00103671 [12:45:46]save last doc name /storage/0353/doc_00103671 to /storage/kkm_last_doc_name [12:45:46]save OK [12:45:46]Clear old archive folders... [12:45:46]ProcessDocumentItem done err = 0, tmpTLVsize=252 [12:45:46]tlvbuf is 013E1200 [12:45:46]SAM_PROTO_ClearQueue [12:45:46]wFMCommunicate request_size=4 [12:45:46]MH_SAM_APDU [12:45:46]CAPDU: 80 09 00 00 [12:45:46]Write to MH i2c: E2 08 00 ED A9 80 09 00 00 00 00 00 00 08 [12:45:46]Write i2c OK [12:45:46]MH_I2C_Read... [12:45:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:45:46]Read from MH i2c: E2 [12:45:46]MH_I2C_Read... [12:45:46]Read from MH i2c: E2 03 00 [12:45:46]MH_I2C_Read... [12:45:46]Read from MH i2c: E2 03 00 ED A9 00 90 00 0A [12:45:46]RAPDU: 90 00 [12:45:46]wFMCommunicate OK [12:45:46]SAM_PROTO_ClearQueue done [12:45:46]KKMCreateOFDPacket [12:45:46]OFDProtocolAddRootSTLVToBuf [12:45:46]FM_MakeSignedData [12:45:46]FM_MakeSignedData [12:45:46]SAM_PROTO_SignData [12:45:46]wFMCommunicate request_size=4 [12:45:46]MH_SAM_APDU [12:45:46]CAPDU: 80 0D 01 02 [12:45:46]Write to MH i2c: E2 08 00 EE A9 80 0D 01 02 00 00 00 00 10 [12:45:46]Write i2c OK [12:45:46]MH_I2C_Read... [12:45:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:45:46]Read from MH i2c: E2 [12:45:46]MH_I2C_Read... [12:45:46]Read from MH i2c: E2 03 00 [12:45:46]MH_I2C_Read... [12:45:46]Read from MH i2c: E2 03 00 EE A9 00 90 00 0B [12:45:46]RAPDU: 90 00 [12:45:46]wFMCommunicate OK [12:45:46]wFMCommunicate request_size=255 [12:45:46]MH_SAM_APDU [12:45:46]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 30 6B 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 66 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 06 D3 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 F7 94 01 00 35 04 06 00 [12:45:46]Write to MH i2c: E2 02 01 EF A9 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 30 6B 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 66 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 06 D3 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 F7 94 01 00 35 04 06 00 00 00 E3 [12:45:47]Write i2c OK [12:45:47]MH_I2C_Read... [12:45:47]Read from MH i2c: E2 [12:45:47]MH_I2C_Read... [12:45:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:45:47]Read from MH i2c: E2 03 00 [12:45:47]MH_I2C_Read... [12:45:47]Read from MH i2c: E2 03 00 EF A9 00 90 00 0C [12:45:47]RAPDU: 90 00 [12:45:47]wFMCommunicate OK [12:45:47]wFMCommunicate request_size=11 [12:45:47]MH_SAM_APDU [12:45:47]CAPDU: 80 0D 02 02 06 D5 C0 3F 0D A0 BB [12:45:47]Write to MH i2c: E2 0E 00 F0 A9 80 0D 02 02 06 00 D5 C0 3F 0D A0 BB 00 00 5B [12:45:47]Write i2c OK [12:45:47]MH_I2C_Read... [12:45:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:45:47]Read from MH i2c: E2 [12:45:47]MH_I2C_Read... [12:45:47]Read from MH i2c: E2 03 00 [12:45:47]MH_I2C_Read... [12:45:47]Read from MH i2c: E2 03 00 F0 A9 00 90 00 0D [12:45:47]RAPDU: 90 00 [12:45:47]wFMCommunicate OK [12:45:47]wFMCommunicate request_size=4 [12:45:47]MH_SAM_APDU [12:45:47]CAPDU: 80 0D 03 02 [12:45:47]Write to MH i2c: E2 08 00 F1 A9 80 0D 03 02 00 00 00 00 15 [12:45:47]Write i2c OK [12:45:47]MH_I2C_Read... [12:45:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:45:47]Read from MH i2c: E2 [12:45:47]MH_I2C_Read... [12:45:47]Read from MH i2c: E2 0B 00 [12:45:47]MH_I2C_Read... [12:45:47]Read from MH i2c: E2 0B 00 F1 A9 00 78 B0 C5 99 94 CA 04 E9 90 00 E7 [12:45:47]RAPDU: 78 B0 C5 99 94 CA 04 E9 90 00 [12:45:47]wFMCommunicate OK [12:45:47]SAM_PROTO_SignData done [12:45:47]FM_MakeSignedData done [12:45:47]CreateOFDProtocolMessage [12:45:47]wFMCommunicate request_size=4 [12:45:47]MH_SAM_APDU [12:45:47]CAPDU: 80 11 00 00 [12:45:47]Write to MH i2c: E2 08 00 F2 A9 80 11 00 00 00 00 00 00 15 [12:45:47]Write i2c OK [12:45:47]MH_I2C_Read... [12:45:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:45:47]Read from MH i2c: E2 [12:45:47]MH_I2C_Read... [12:45:47]Read from MH i2c: E2 17 00 [12:45:47]MH_I2C_Read... [12:45:47]Read from MH i2c: E2 17 00 F2 A9 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 68 [12:45:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [12:45:47]wFMCommunicate OK [12:45:47]CreateOFDProtocolMessage done [12:45:47]OFDSenderStorePacket 103671 [12:45:47]StoreOFDPacket docnum=103671 [12:45:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 C7 24 08 01 58 90 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 30 6B 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 66 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 06 D3 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 F7 94 01 00 35 04 06 00 D5 C0 3F 0D A0 BB 78 B0 C5 99 94 CA 04 E9 [12:45:47]CheckFolder [12:45:47]dirname=/storage/ofd_packets [12:45:47]CheckFolder done [12:45:47]ProducePacketName [12:45:47]name=ofd_packets/00103671 [12:45:47]NVStorageSaveData ofd_packets/00103671 [12:45:47]File name is /storage/ofd_packets/00103671 [12:45:47]Write 302 bytes [12:45:47]NVStorageSaveData done [12:45:47]OFDSenderStorePacket done [12:45:47]KKMCreateOFDPacket done [12:45:47]NVStorageSaveData kkm_last_timestamp [12:45:47]File name is /storage/kkm_last_timestamp [12:45:47]Write 4 bytes [12:45:47]NVStorageSaveData done [12:45:47]ExternCall_PrintAddStr [12:45:47]wPrintStart [12:45:47]Write to MH i2c: 01 00 00 F3 A9 9C [12:45:47]Write i2c OK [12:45:47]MH_I2C_Read... [12:45:47]Read from MH i2c: 01 [12:45:47]MH_I2C_Read... [12:45:47]Read from MH i2c: 01 07 00 [12:45:47]MH_I2C_Read... [12:45:47]Read from MH i2c: 01 07 00 F3 A9 00 00 00 00 00 FF 0F B1 [12:45:47]RasterBufferAndPrint [12:45:47]line Счет N : (1)672924 [12:45:47]line ИНН: 02508201610067 [12:45:47]line Контрольно-Кассовый Чек [12:45:47]line ПРОДАЖА [12:45:47]line ТРК (МРК, ГНК) : 21 [12:45:47]line Товар: 2710194210 [12:45:47]line ДТ(л)-К-5 [12:45:47]line 27.440 * 72.90 [12:45:47]line = 2000.38 [12:45:47]line НДС 12% НСП 1% [12:45:47]line > о реализуемом товаре [12:45:47]line ОКРУГЛЕНИЕ: -0.38 [12:45:47]line ИТОГО: 2000.00 [12:45:47]line Внесено: 2000.00 [12:45:47]line СДАЧА: 0.00 [12:45:47]line НСП 1% : 17.70 [12:45:47]line НДС 12% : 212.43 [12:45:47]line Наличными: 2000.00 [12:45:47]line Безнал.: 0.00 [12:45:47]line Место: АЗС № 120 "Партнер Нефть" [12:45:47]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [12:45:47]line СНО: Общий режим [12:45:47]line Чек 101 19.06.2024 12:45 [12:45:47]line Смена: 353 ФФД: 1.0 [12:45:47]line ЗНМ: 0300000164 [12:45:47]line РНМ: 0000000000092785 [12:45:47]line Версия ККМ: 001 [12:45:47]line ФМ: 0000000000875093 [12:45:47]line ФД: 103671 [12:45:47]line ФПД: 235021668294843 [12:45:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T124558&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103671&fm=235021668294843&tin=02508201610067®Number=0000000000092785&sum=200000 [12:45:47]OFD Sender: Processing packet 103671 [packets to send 17, broken 16] [12:45:47]ProducePacketName [12:45:47]name=ofd_packets/00103671 [12:45:47]OFD Sender: To server: pG, [12:45:47]CommunicateWithHost lk.salyk.kg:30040 [12:45:47]ConnectInit lk.salyk.kg [12:45:47]written 0, free lines is 4095 [12:45:47]Connected sock=10 [12:45:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 C7 24 08 01 58 90 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 30 6B 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 66 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 06 D3 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 F7 94 01 00 35 04 06 00 D5 C0 3F 0D A0 BB 78 B0 C5 99 94 CA 04 E9 [12:45:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 09 81 47 00 B7 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 39 33 10 04 04 00 F7 94 01 00 F4 03 04 00 8E 79 72 66 B6 04 01 00 00 9E 4E E5 E6 8C E3 7E D9 [12:45:48]CommunicateWithHost err = 0 [12:45:48]CheckOFDResponse [12:45:48]1017 (14) - 77093643461234 [12:45:48]1041 (16) - 0000000000875093 [12:45:48]1040 (4) - 103671 [12:45:48]1012 (4) - 19.06.2024 06:24 [12:45:48]1206 (1) - 0 [12:45:48]OFD Sender: Remove packet 103671 [12:45:48]ProducePacketName [12:45:48]name=ofd_packets/00103671 [12:45:48]NVStorageDeleteData [12:45:48]Write to MH i2c: 01 00 00 1E AA C8 [12:45:48]Write i2c OK [12:45:48]MH_I2C_Read... [12:45:48]Read from MH i2c: 01 [12:45:48]MH_I2C_Read... [12:45:48]Read from MH i2c: 01 07 00 [12:45:48]MH_I2C_Read... [12:45:48]Read from MH i2c: 01 07 00 1E AA 00 00 00 00 00 ED 0C C8 [12:45:48]RasterBufferAndPrint [12:45:48]line [12:45:48]line [12:45:48]line [12:45:48]line [12:45:48]line [12:45:48]written 0, free lines is 3315 [12:45:48]MH_Cut [12:45:48]Write to MH i2c: D1 01 00 25 AA 01 A1 [12:45:48]Write i2c OK [12:45:48]MH_I2C_Read... [12:45:48]Read from MH i2c: D1 [12:45:48]MH_I2C_Read... [12:45:48]Read from MH i2c: D1 01 00 [12:45:48]MH_I2C_Read... [12:45:48]Read from MH i2c: D1 01 00 25 AA 00 A0 [12:45:48]Write to MH i2c: 01 00 00 26 AA D0 [12:45:48]Write i2c OK [12:45:48]MH_I2C_Read... [12:45:48]OFD Sender: No OFD packet to send [12:45:48]*** Cut start [12:45:48]*** Partial cut [12:45:48]*** CUTSNS_PIN = 1 [12:45:48]*** CUTSNS_PIN = 0 [12:45:49]*** Brake cut motor [12:45:49]Read from MH i2c: 01 [12:45:49]MH_I2C_Read... [12:45:49]*** Stop cut motor [12:45:49]*** Cut end [12:45:49]Read from MH i2c: 01 07 00 [12:45:49]MH_I2C_Read... [12:45:49]Read from MH i2c: 01 07 00 26 AA 00 00 00 00 00 FF 0F E5 [12:45:49]process_action close_receipt done [12:45:49]requested_data is exist [12:45:49]produce_requested_data [12:45:49]requested_item fm.sn is exist - process it [12:45:49]wFMCommunicate request_size=4 [12:45:49]MH_SAM_APDU [12:45:49]CAPDU: 80 11 00 00 [12:45:49]Write to MH i2c: E2 08 00 27 AA 80 11 00 00 00 00 00 00 4B [12:45:49]Write i2c OK [12:45:49]MH_I2C_Read... [12:45:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:45:49]Read from MH i2c: E2 [12:45:49]MH_I2C_Read... [12:45:49]Read from MH i2c: E2 17 00 [12:45:49]MH_I2C_Read... [12:45:49]Read from MH i2c: E2 17 00 27 AA 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 9E [12:45:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [12:45:49]wFMCommunicate OK [12:45:49]requested_item fd.num is exist - process it [12:45:49]SAM_PROTO_GetFieldsCounters [12:45:49]wFMCommunicate request_size=4 [12:45:49]MH_SAM_APDU [12:45:49]CAPDU: 80 13 00 00 [12:45:49]Write to MH i2c: E2 08 00 28 AA 80 13 00 00 00 00 00 00 4E [12:45:49]Write i2c OK [12:45:49]MH_I2C_Read... [12:45:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:45:49]Read from MH i2c: E2 [12:45:49]MH_I2C_Read... [12:45:49]Read from MH i2c: E2 62 00 [12:45:49]MH_I2C_Read... [12:45:49]Read from MH i2c: E2 62 00 28 AA 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 F7 94 01 00 0E 04 04 00 61 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 92 [12:45: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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 F7 94 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 65 00 00 00 5E 04 04 00 65 00 00 00 57 04 04 00 66 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:45:49]wFMCommunicate OK [12:45:49]SAM_PROTO_GetFieldsCounters done [12:45:49]requested_item shift.num is exist - process it [12:45:49]requested_item shift.opened is exist - process it [12:45:49]req_shift_opened [12:45:49]FM_GetShiftState [12:45:49]SAM_PROTO_GetShiftState [12:45:49]wFMCommunicate request_size=4 [12:45:49]MH_SAM_APDU [12:45:49]CAPDU: 80 13 01 00 [12:45:49]Write to MH i2c: E2 08 00 29 AA 80 13 01 00 00 00 00 00 50 [12:45:49]Write i2c OK [12:45:49]MH_I2C_Read... [12:45:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:45:49]Read from MH i2c: E2 [12:45:49]MH_I2C_Read... [12:45:49]Read from MH i2c: E2 0E 00 [12:45:49]MH_I2C_Read... [12:45:49]Read from MH i2c: E2 0E 00 29 AA 00 09 00 01 04 26 72 66 00 00 00 00 90 00 5E [12:45:49]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [12:45:49]wFMCommunicate OK [12:45:49]SAM_PROTO_GetShiftState done [12:45:49]FM_GetShiftState done [12:45:49]req_shift_opened done [12:45:49]requested_item shift.open_date is exist - process it [12:45:49]req_shift_open_date [12:45:49]req_shift_open_date done [12:45:49]produce_requested_data done [12:45:49]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103671,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [12:45:49]process_action_free close_receipt [12:45:49]json_value_free [12:45:49]json_value_free done [12:45:49]process_json_proto returns [12:45:49]Send response to host [12:45:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103671,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [12:45:49]free response buf [12:45:49]execute_script done [12:45:49]execute_script returns [12:45:49]free content buf [12:45:49]Sock 7.Close socket [12:45:49]Sock 7.Thread stoped [12:45:53]OFD Sender: No OFD packet to send [12:45:58]OFD Sender: No OFD packet to send [12:46:03]OFD Sender: No OFD packet to send [12:46:08]OFD Sender: No OFD packet to send [12:46:13]OFD Sender: No OFD packet to send [12:46:18]OFD Sender: No OFD packet to send [12:46:23]OFD Sender: No OFD packet to send [12:46:28]OFD Sender: No OFD packet to send [12:46:33]OFD Sender: No OFD packet to send [12:46:38]OFD Sender: No OFD packet to send [12:46:43]OFD Sender: No OFD packet to send [12:46:48]OFD Sender: No OFD packet to send [12:46:53]OFD Sender: No OFD packet to send [12:46:58]OFD Sender: No OFD packet to send [12:47:03]OFD Sender: No OFD packet to send [12:47:08]OFD Sender: No OFD packet to send [12:47:13]OFD Sender: No OFD packet to send [12:47:18]OFD Sender: No OFD packet to send [12:47:23]OFD Sender: No OFD packet to send [12:47:28]accept exits with 9 [12:47:28]New connection [12:47:28]New thread 3067227492 created [12:47:28]Thread 3067084132 joined [12:47:28]Waiting for new connection... [12:47:28] Sock 9.Parse request [12:47:28]Sock 9.Check first char [12:47:28]Sock 9.First char is OK [12:47:28]request: POST /json_proto HTTP/1.0 [12:47:28]Method: POST [12:47:28]URL: /json_proto [12:47:28]Method is POST - this is cgi request [12:47:28]url: /json_proto [12:47:28]query_string will be loaded in cgi processing [12:47:28]execute_cgi json_proto POST (null) [12:47:28]execute_cgi path=json_proto method=POST [12:47:28]POST find Content-Length [12:47:28]Host: 172.17.38.133:8080 [12:47:28]Content-Length: 678 [12:47:28]Content-Type: application/json [12:47:28] [12:47:28]POST finish read [12:47:28]Found Content-Length = 678 [12:47:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672925", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 10.550, "sum" : 700.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:47:28]execute_script... [12:47:28]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672925", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 10.550, "sum" : 700.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:47:28]POST & json_proto [12:47:28]process_json_proto [12:47:28]json parsed OK: [12:47:28]protocol is kg_v1.0 [12:47:28]action value=close_receipt [12:47:28]process_action close_receipt [12:47:28]cmd_close_receipt [12:47:28]MH_GetDate [12:47:28]Write to MH i2c: F0 00 00 2A AA C3 [12:47:28]Write i2c OK [12:47:28]MH_I2C_Read... [12:47:28]Read from MH i2c: F0 [12:47:28]MH_I2C_Read... [12:47:28]Read from MH i2c: F0 09 00 [12:47:28]MH_I2C_Read... [12:47:28]Read from MH i2c: F0 09 00 2A AA 00 6C D3 72 66 BD 8F 7C 64 0F [12:47:28]GetLastDocTimeStamp 1718801158 [12:47:28]current date 1718801260 [12:47:28]FM_GetShiftState [12:47:28]SAM_PROTO_GetShiftState [12:47:28]wFMCommunicate request_size=4 [12:47:28]MH_SAM_APDU [12:47:28]CAPDU: 80 13 01 00 [12:47:28]Write to MH i2c: E2 08 00 2B AA 80 13 01 00 00 00 00 00 52 [12:47:28]Write i2c OK [12:47:28]MH_I2C_Read... [12:47:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:47:28]Read from MH i2c: E2 [12:47:28]MH_I2C_Read... [12:47:28]Read from MH i2c: E2 0E 00 [12:47:28]MH_I2C_Read... [12:47:28]Read from MH i2c: E2 0E 00 2B AA 00 09 00 01 04 26 72 66 00 00 00 00 90 00 60 [12:47:28]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [12:47:28]wFMCommunicate OK [12:47:28]SAM_PROTO_GetShiftState done [12:47:28]FM_GetShiftState done [12:47:28]opened in 1718756868 [12:47:28]opened+sec_in_day 1718843268 [12:47:28]quantity*price = 70052 [12:47:28]sum+1 = 70053 [12:47:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.52 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.39 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 102 19.06.2024 12:47 Смена: 353 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103672 ФПД: 204125342160923 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T124741&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103672&fm=204125342160923&tin=02508201610067®Number=0000000000092785&sum=70000 [12:47:29]StoreToDocumentArchive [12:47:29]shift 353 fd 103672 [12:47:29]save to /storage/0353/doc_00103672 [12:47:29]save last doc name /storage/0353/doc_00103672 to /storage/kkm_last_doc_name [12:47:29]save OK [12:47:29]Clear old archive folders... [12:47:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:47:29]tlvbuf is 01454730 [12:47:29]SAM_PROTO_ClearQueue [12:47:29]wFMCommunicate request_size=4 [12:47:29]MH_SAM_APDU [12:47:29]CAPDU: 80 09 00 00 [12:47:29]Write to MH i2c: E2 08 00 38 AA 80 09 00 00 00 00 00 00 54 [12:47:29]Write i2c OK [12:47:29]MH_I2C_Read... [12:47:29]Read from MH i2c: E2 [12:47:29]MH_I2C_Read... [12:47:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:47:29]Read from MH i2c: E2 03 00 [12:47:29]MH_I2C_Read... [12:47:29]Read from MH i2c: E2 03 00 38 AA 00 90 00 56 [12:47:29]RAPDU: 90 00 [12:47:29]wFMCommunicate OK [12:47:29]SAM_PROTO_ClearQueue done [12:47:29]KKMCreateOFDPacket [12:47:29]OFDProtocolAddRootSTLVToBuf [12:47:29]FM_MakeSignedData [12:47:29]FM_MakeSignedData [12:47:29]SAM_PROTO_SignData [12:47:29]wFMCommunicate request_size=4 [12:47:29]MH_SAM_APDU [12:47:29]CAPDU: 80 0D 01 02 [12:47:29]Write to MH i2c: E2 08 00 39 AA 80 0D 01 02 00 00 00 00 5C [12:47:29]Write i2c OK [12:47:29]MH_I2C_Read... [12:47:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:47:29]Read from MH i2c: E2 [12:47:29]MH_I2C_Read... [12:47:29]Read from MH i2c: E2 03 00 [12:47:29]MH_I2C_Read... [12:47:29]Read from MH i2c: E2 03 00 39 AA 00 90 00 57 [12:47:29]RAPDU: 90 00 [12:47:29]wFMCommunicate OK [12:47:29]wFMCommunicate request_size=255 [12:47:29]MH_SAM_APDU [12:47:29]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 6D D3 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 F8 94 01 00 35 04 06 00 B9 [12:47:29]Write to MH i2c: E2 02 01 3A AA 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 6D D3 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 F8 94 01 00 35 04 06 00 B9 00 00 4E [12:47:29]Write i2c OK [12:47:29]MH_I2C_Read... [12:47:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:47:30]Read from MH i2c: E2 [12:47:30]MH_I2C_Read... [12:47:30]Read from MH i2c: E2 03 00 [12:47:30]MH_I2C_Read... [12:47:30]Read from MH i2c: E2 03 00 3A AA 00 90 00 58 [12:47:30]RAPDU: 90 00 [12:47:30]wFMCommunicate OK [12:47:30]wFMCommunicate request_size=10 [12:47:30]MH_SAM_APDU [12:47:30]CAPDU: 80 0D 02 02 05 A6 A2 82 58 1B [12:47:30]Write to MH i2c: E2 0D 00 3B AA 80 0D 02 02 05 00 A6 A2 82 58 1B 00 00 A6 [12:47:30]Write i2c OK [12:47:30]MH_I2C_Read... [12:47:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:47:30]Read from MH i2c: E2 [12:47:30]MH_I2C_Read... [12:47:30]Read from MH i2c: E2 03 00 [12:47:30]MH_I2C_Read... [12:47:30]Read from MH i2c: E2 03 00 3B AA 00 90 00 59 [12:47:30]RAPDU: 90 00 [12:47:30]wFMCommunicate OK [12:47:30]wFMCommunicate request_size=4 [12:47:30]MH_SAM_APDU [12:47:30]CAPDU: 80 0D 03 02 [12:47:30]Write to MH i2c: E2 08 00 3C AA 80 0D 03 02 00 00 00 00 61 [12:47:30]Write i2c OK [12:47:30]MH_I2C_Read... [12:47:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:47:30]Read from MH i2c: E2 [12:47:30]MH_I2C_Read... [12:47:30]Read from MH i2c: E2 0B 00 [12:47:30]MH_I2C_Read... [12:47:30]Read from MH i2c: E2 0B 00 3C AA 00 82 E6 8C B2 E4 90 F4 34 90 00 A4 [12:47:30]RAPDU: 82 E6 8C B2 E4 90 F4 34 90 00 [12:47:30]wFMCommunicate OK [12:47:30]SAM_PROTO_SignData done [12:47:30]FM_MakeSignedData done [12:47:30]CreateOFDProtocolMessage [12:47:30]wFMCommunicate request_size=4 [12:47:30]MH_SAM_APDU [12:47:30]CAPDU: 80 11 00 00 [12:47:30]Write to MH i2c: E2 08 00 3D AA 80 11 00 00 00 00 00 00 61 [12:47:30]Write i2c OK [12:47:30]MH_I2C_Read... [12:47:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:47:30]Read from MH i2c: E2 [12:47:30]MH_I2C_Read... [12:47:30]Read from MH i2c: E2 17 00 [12:47:30]MH_I2C_Read... [12:47:30]Read from MH i2c: E2 17 00 3D AA 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 B4 [12:47:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [12:47:30]wFMCommunicate OK [12:47:30]CreateOFDProtocolMessage done [12:47:30]OFDSenderStorePacket 103672 [12:47:30]StoreOFDPacket docnum=103672 [12:47:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 C6 21 07 01 3F 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 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 6D D3 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 F8 94 01 00 35 04 06 00 B9 A6 A2 82 58 1B 82 E6 8C B2 E4 90 F4 34 [12:47:30]CheckFolder [12:47:30]dirname=/storage/ofd_packets [12:47:30]CheckFolder done [12:47:30]ProducePacketName [12:47:30]name=ofd_packets/00103672 [12:47:30]NVStorageSaveData ofd_packets/00103672 [12:47:30]File name is /storage/ofd_packets/00103672 [12:47:30]Write 301 bytes [12:47:30]NVStorageSaveData done [12:47:30]OFDSenderStorePacket done [12:47:30]KKMCreateOFDPacket done [12:47:30]NVStorageSaveData kkm_last_timestamp [12:47:30]File name is /storage/kkm_last_timestamp [12:47:30]Write 4 bytes [12:47:30]NVStorageSaveData done [12:47:30]ExternCall_PrintAddStr [12:47:30]wPrintStart [12:47:30]Write to MH i2c: 01 00 00 3E AA E8 [12:47:30]Write i2c OK [12:47:30]MH_I2C_Read... [12:47:30]Read from MH i2c: 01 [12:47:30]MH_I2C_Read... [12:47:30]Read from MH i2c: 01 07 00 [12:47:30]MH_I2C_Read... [12:47:30]Read from MH i2c: 01 07 00 3E AA 00 00 00 00 00 FF 0F FD [12:47:30]RasterBufferAndPrint [12:47:30]line Счет N : (1)672925 [12:47:30]line ИНН: 02508201610067 [12:47:30]line Контрольно-Кассовый Чек [12:47:30]line ПРОДАЖА [12:47:30]line ТРК (МРК, ГНК) : 32 [12:47:30]line Товар: 2710124130 [12:47:30]line Аи-92-К-5 [12:47:30]line 10.550 * 66.40 [12:47:30]line = 700.52 [12:47:30]line НДС 12% НСП 1% [12:47:30]line > о реализуемом товаре [12:47:30]line ОКРУГЛЕНИЕ: -0.52 [12:47:30]line ИТОГО: 700.00 [12:47:30]line Внесено: 700.00 [12:47:30]line СДАЧА: 0.00 [12:47:30]line НСП 1% : 6.20 [12:47:30]line НДС 12% : 74.39 [12:47:30]line Наличными: 700.00 [12:47:30]line Безнал.: 0.00 [12:47:30]line Место: АЗС № 120 "Партнер Нефть" [12:47:30]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [12:47:30]line СНО: Общий режим [12:47:30]line Чек 102 19.06.2024 12:47 [12:47:30]line Смена: 353 ФФД: 1.0 [12:47:30]line ЗНМ: 0300000164 [12:47:30]line РНМ: 0000000000092785 [12:47:30]line Версия ККМ: 001 [12:47:30]line ФМ: 0000000000875093 [12:47:30]line ФД: 103672 [12:47:30]line ФПД: 204125342160923 [12:47:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T124741&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103672&fm=204125342160923&tin=02508201610067®Number=0000000000092785&sum=70000 [12:47:30]OFD Sender: Processing packet 103672 [packets to send 17, broken 16] [12:47:30]ProducePacketName [12:47:30]name=ofd_packets/00103672 [12:47:30]OFD Sender: To server: pG, [12:47:30]CommunicateWithHost lk.salyk.kg:30040 [12:47:30]ConnectInit lk.salyk.kg [12:47:30]written 0, free lines is 4095 [12:47:30]Connected sock=10 [12:47:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 C6 21 07 01 3F 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 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 6D D3 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 F8 94 01 00 35 04 06 00 B9 A6 A2 82 58 1B 82 E6 8C B2 E4 90 F4 34 [12:47: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 39 33 4F 00 00 00 48 BE 47 00 60 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 39 33 10 04 04 00 F8 94 01 00 F4 03 04 00 F5 79 72 66 B6 04 01 00 00 FB 3F EB 47 1E AF C2 71 [12:47:31]CommunicateWithHost err = 0 [12:47:31]CheckOFDResponse [12:47:31]1017 (14) - 77093643461234 [12:47:31]1041 (16) - 0000000000875093 [12:47:31]1040 (4) - 103672 [12:47:31]1012 (4) - 19.06.2024 06:25 [12:47:31]1206 (1) - 0 [12:47:31]OFD Sender: Remove packet 103672 [12:47:31]ProducePacketName [12:47:31]name=ofd_packets/00103672 [12:47:31]NVStorageDeleteData [12:47:31]Write to MH i2c: 01 00 00 69 AA 13 [12:47:31]Write i2c OK [12:47:31]MH_I2C_Read... [12:47:31]Read from MH i2c: 01 [12:47:31]MH_I2C_Read... [12:47:31]Read from MH i2c: 01 07 00 [12:47:31]MH_I2C_Read... [12:47:31]Read from MH i2c: 01 07 00 69 AA 00 00 00 00 00 E9 0C 0F [12:47:31]RasterBufferAndPrint [12:47:31]line [12:47:31]line [12:47:31]line [12:47:31]line [12:47:31]line [12:47:31]written 0, free lines is 3314 [12:47:31]MH_Cut [12:47:31]Write to MH i2c: D1 01 00 70 AA 01 EC [12:47:31]Write i2c OK [12:47:31]MH_I2C_Read... [12:47:31]Read from MH i2c: D1 [12:47:31]MH_I2C_Read... [12:47:31]Read from MH i2c: D1 01 00 [12:47:31]MH_I2C_Read... [12:47:31]Read from MH i2c: D1 01 00 70 AA 00 EB [12:47:31]Write to MH i2c: 01 00 00 71 AA 1B [12:47:31]Write i2c OK [12:47:31]MH_I2C_Read... [12:47:31]OFD Sender: No OFD packet to send [12:47:31]*** Cut start [12:47:31]*** Partial cut [12:47:31]*** CUTSNS_PIN = 1 [12:47:31]*** CUTSNS_PIN = 0 [12:47:32]*** Brake cut motor [12:47:32]Read from MH i2c: 01 [12:47:32]MH_I2C_Read... [12:47:32]*** Stop cut motor [12:47:32]*** Cut end [12:47:32]Read from MH i2c: 01 07 00 [12:47:32]MH_I2C_Read... [12:47:32]Read from MH i2c: 01 07 00 71 AA 00 00 00 00 00 FF 0F 30 [12:47:32]process_action close_receipt done [12:47:32]requested_data is exist [12:47:32]produce_requested_data [12:47:32]requested_item fm.sn is exist - process it [12:47:32]wFMCommunicate request_size=4 [12:47:32]MH_SAM_APDU [12:47:32]CAPDU: 80 11 00 00 [12:47:32]Write to MH i2c: E2 08 00 72 AA 80 11 00 00 00 00 00 00 96 [12:47:32]Write i2c OK [12:47:32]MH_I2C_Read... [12:47:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:47:32]Read from MH i2c: E2 [12:47:32]MH_I2C_Read... [12:47:32]Read from MH i2c: E2 17 00 [12:47:32]MH_I2C_Read... [12:47:32]Read from MH i2c: E2 17 00 72 AA 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 E9 [12:47:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [12:47:32]wFMCommunicate OK [12:47:32]requested_item fd.num is exist - process it [12:47:32]SAM_PROTO_GetFieldsCounters [12:47:32]wFMCommunicate request_size=4 [12:47:32]MH_SAM_APDU [12:47:32]CAPDU: 80 13 00 00 [12:47:32]Write to MH i2c: E2 08 00 73 AA 80 13 00 00 00 00 00 00 99 [12:47:32]Write i2c OK [12:47:32]MH_I2C_Read... [12:47:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:47:32]Read from MH i2c: E2 [12:47:32]MH_I2C_Read... [12:47:32]Read from MH i2c: E2 62 00 [12:47:32]MH_I2C_Read... [12:47:32]Read from MH i2c: E2 62 00 73 AA 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 F8 94 01 00 0E 04 04 00 61 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 E1 [12:47:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 F8 94 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 66 00 00 00 5E 04 04 00 66 00 00 00 57 04 04 00 67 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:47:32]wFMCommunicate OK [12:47:32]SAM_PROTO_GetFieldsCounters done [12:47:32]requested_item shift.num is exist - process it [12:47:32]requested_item shift.opened is exist - process it [12:47:32]req_shift_opened [12:47:32]FM_GetShiftState [12:47:32]SAM_PROTO_GetShiftState [12:47:32]wFMCommunicate request_size=4 [12:47:32]MH_SAM_APDU [12:47:32]CAPDU: 80 13 01 00 [12:47:32]Write to MH i2c: E2 08 00 74 AA 80 13 01 00 00 00 00 00 9B [12:47:32]Write i2c OK [12:47:32]MH_I2C_Read... [12:47:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:47:32]Read from MH i2c: E2 [12:47:32]MH_I2C_Read... [12:47:32]Read from MH i2c: E2 0E 00 [12:47:32]MH_I2C_Read... [12:47:32]Read from MH i2c: E2 0E 00 74 AA 00 09 00 01 04 26 72 66 00 00 00 00 90 00 A9 [12:47:32]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [12:47:32]wFMCommunicate OK [12:47:32]SAM_PROTO_GetShiftState done [12:47:32]FM_GetShiftState done [12:47:32]req_shift_opened done [12:47:32]requested_item shift.open_date is exist - process it [12:47:32]req_shift_open_date [12:47:32]req_shift_open_date done [12:47:32]produce_requested_data done [12:47:32]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103672,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [12:47:32]process_action_free close_receipt [12:47:32]json_value_free [12:47:32]json_value_free done [12:47:32]process_json_proto returns [12:47:32]Send response to host [12:47:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103672,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [12:47:32]free response buf [12:47:32]execute_script done [12:47:32]execute_script returns [12:47:32]free content buf [12:47:32]Sock 9.Close socket [12:47:32]Sock 9.Thread stoped [12:47:36]OFD Sender: No OFD packet to send [12:47:41]OFD Sender: No OFD packet to send [12:47:46]OFD Sender: No OFD packet to send [12:47:51]OFD Sender: No OFD packet to send [12:47:56]OFD Sender: No OFD packet to send [12:48:01]OFD Sender: No OFD packet to send [12:48:06]OFD Sender: No OFD packet to send [12:48:11]OFD Sender: No OFD packet to send [12:48:16]OFD Sender: No OFD packet to send [12:48:21]OFD Sender: No OFD packet to send [12:48:22]accept exits with 7 [12:48:22]New connection [12:48:22]New thread 3067084132 created [12:48:22]Thread 3067227492 joined [12:48:22]Waiting for new connection... [12:48:22] Sock 7.Parse request [12:48:22]Sock 7.Check first char [12:48:22]Sock 7.First char is OK [12:48:22]request: POST /json_proto HTTP/1.0 [12:48:22]Method: POST [12:48:22]URL: /json_proto [12:48:22]Method is POST - this is cgi request [12:48:22]url: /json_proto [12:48:22]query_string will be loaded in cgi processing [12:48:22]execute_cgi json_proto POST (null) [12:48:22]execute_cgi path=json_proto method=POST [12:48:22]POST find Content-Length [12:48:22]Host: 172.17.38.133:8080 [12:48:22]Content-Length: 677 [12:48:22]Content-Type: application/json [12:48:22] [12:48:22]POST finish read [12:48:22]Found Content-Length = 677 [12:48:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672926", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:48:22]execute_script... [12:48:22]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672926", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:48:22]POST & json_proto [12:48:22]process_json_proto [12:48:22]json parsed OK: [12:48:22]protocol is kg_v1.0 [12:48:22]action value=close_receipt [12:48:22]process_action close_receipt [12:48:22]cmd_close_receipt [12:48:22]MH_GetDate [12:48:22]Write to MH i2c: F0 00 00 75 AA 0E [12:48:22]Write i2c OK [12:48:22]MH_I2C_Read... [12:48:22]Read from MH i2c: F0 [12:48:22]MH_I2C_Read... [12:48:22]Read from MH i2c: F0 09 00 [12:48:22]MH_I2C_Read... [12:48:22]Read from MH i2c: F0 09 00 75 AA 00 A3 D3 72 66 BD 8F 7C 64 91 [12:48:22]GetLastDocTimeStamp 1718801261 [12:48:22]current date 1718801315 [12:48:22]FM_GetShiftState [12:48:22]SAM_PROTO_GetShiftState [12:48:22]wFMCommunicate request_size=4 [12:48:22]MH_SAM_APDU [12:48:22]CAPDU: 80 13 01 00 [12:48:22]Write to MH i2c: E2 08 00 76 AA 80 13 01 00 00 00 00 00 9D [12:48:22]Write i2c OK [12:48:22]MH_I2C_Read... [12:48:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:48:22]Read from MH i2c: E2 [12:48:22]MH_I2C_Read... [12:48:22]Read from MH i2c: E2 0E 00 [12:48:22]MH_I2C_Read... [12:48:22]Read from MH i2c: E2 0E 00 76 AA 00 09 00 01 04 26 72 66 00 00 00 00 90 00 AB [12:48:22]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [12:48:22]wFMCommunicate OK [12:48:22]SAM_PROTO_GetShiftState done [12:48:22]FM_GetShiftState done [12:48:22]opened in 1718756868 [12:48:22]opened+sec_in_day 1718843268 [12:48:22]quantity*price = 50065 [12:48:22]sum+1 = 50067 [12:48:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.17 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 103 19.06.2024 12:48 Смена: 353 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103673 ФПД: 18164155516954 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T124835&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103673&fm=18164155516954&tin=02508201610067®Number=0000000000092785&sum=50000 [12:48:23]StoreToDocumentArchive [12:48:23]shift 353 fd 103673 [12:48:23]save to /storage/0353/doc_00103673 [12:48:23]save last doc name /storage/0353/doc_00103673 to /storage/kkm_last_doc_name [12:48:23]save OK [12:48:23]Clear old archive folders... [12:48:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:48:23]tlvbuf is 0135E180 [12:48:23]SAM_PROTO_ClearQueue [12:48:23]wFMCommunicate request_size=4 [12:48:23]MH_SAM_APDU [12:48:23]CAPDU: 80 09 00 00 [12:48:23]Write to MH i2c: E2 08 00 83 AA 80 09 00 00 00 00 00 00 9F [12:48:23]Write i2c OK [12:48:23]MH_I2C_Read... [12:48:23]Read from MH i2c: E2 [12:48:23]MH_I2C_Read... [12:48:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:48:24]Read from MH i2c: E2 03 00 [12:48:24]MH_I2C_Read... [12:48:24]Read from MH i2c: E2 03 00 83 AA 00 90 00 A1 [12:48:24]RAPDU: 90 00 [12:48:24]wFMCommunicate OK [12:48:24]SAM_PROTO_ClearQueue done [12:48:24]KKMCreateOFDPacket [12:48:24]OFDProtocolAddRootSTLVToBuf [12:48:24]FM_MakeSignedData [12:48:24]FM_MakeSignedData [12:48:24]SAM_PROTO_SignData [12:48:24]wFMCommunicate request_size=4 [12:48:24]MH_SAM_APDU [12:48:24]CAPDU: 80 0D 01 02 [12:48:24]Write to MH i2c: E2 08 00 84 AA 80 0D 01 02 00 00 00 00 A7 [12:48:24]Write i2c OK [12:48:24]MH_I2C_Read... [12:48:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:48:24]Read from MH i2c: E2 [12:48:24]MH_I2C_Read... [12:48:24]Read from MH i2c: E2 03 00 [12:48:24]MH_I2C_Read... [12:48:24]Read from MH i2c: E2 03 00 84 AA 00 90 00 A2 [12:48:24]RAPDU: 90 00 [12:48:24]wFMCommunicate OK [12:48:24]wFMCommunicate request_size=255 [12:48:24]MH_SAM_APDU [12:48:24]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 A3 D3 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 F9 94 01 00 35 04 06 00 10 [12:48:24]Write to MH i2c: E2 02 01 85 AA 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 A3 D3 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 F9 94 01 00 35 04 06 00 10 00 00 16 [12:48:24]Write i2c OK [12:48:24]MH_I2C_Read... [12:48:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:48:24]Read from MH i2c: E2 [12:48:24]MH_I2C_Read... [12:48:24]Read from MH i2c: E2 03 00 [12:48:24]MH_I2C_Read... [12:48:24]Read from MH i2c: E2 03 00 85 AA 00 90 00 A3 [12:48:24]RAPDU: 90 00 [12:48:24]wFMCommunicate OK [12:48:24]wFMCommunicate request_size=10 [12:48:24]MH_SAM_APDU [12:48:24]CAPDU: 80 0D 02 02 05 85 2C 09 88 1A [12:48:24]Write to MH i2c: E2 0D 00 86 AA 80 0D 02 02 05 00 85 2C 09 88 1A 00 00 10 [12:48:24]Write i2c OK [12:48:24]MH_I2C_Read... [12:48:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:48:24]Read from MH i2c: E2 [12:48:24]MH_I2C_Read... [12:48:24]Read from MH i2c: E2 03 00 [12:48:24]MH_I2C_Read... [12:48:24]Read from MH i2c: E2 03 00 86 AA 00 90 00 A4 [12:48:24]RAPDU: 90 00 [12:48:24]wFMCommunicate OK [12:48:24]wFMCommunicate request_size=4 [12:48:24]MH_SAM_APDU [12:48:24]CAPDU: 80 0D 03 02 [12:48:24]Write to MH i2c: E2 08 00 87 AA 80 0D 03 02 00 00 00 00 AC [12:48:24]Write i2c OK [12:48:24]MH_I2C_Read... [12:48:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:48:24]Read from MH i2c: E2 [12:48:24]MH_I2C_Read... [12:48:24]Read from MH i2c: E2 0B 00 [12:48:24]MH_I2C_Read... [12:48:24]Read from MH i2c: E2 0B 00 87 AA 00 D9 D8 81 62 AA B5 6F 8B 90 00 9A [12:48:24]RAPDU: D9 D8 81 62 AA B5 6F 8B 90 00 [12:48:24]wFMCommunicate OK [12:48:24]SAM_PROTO_SignData done [12:48:24]FM_MakeSignedData done [12:48:24]CreateOFDProtocolMessage [12:48:24]wFMCommunicate request_size=4 [12:48:24]MH_SAM_APDU [12:48:24]CAPDU: 80 11 00 00 [12:48:24]Write to MH i2c: E2 08 00 88 AA 80 11 00 00 00 00 00 00 AC [12:48:24]Write i2c OK [12:48:24]MH_I2C_Read... [12:48:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:48:24]Read from MH i2c: E2 [12:48:24]MH_I2C_Read... [12:48:24]Read from MH i2c: E2 17 00 [12:48:24]MH_I2C_Read... [12:48:24]Read from MH i2c: E2 17 00 88 AA 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 FF [12:48:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [12:48:24]wFMCommunicate OK [12:48:24]CreateOFDProtocolMessage done [12:48:24]OFDSenderStorePacket 103673 [12:48:24]StoreOFDPacket docnum=103673 [12:48:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 99 41 07 01 9A D9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 A3 D3 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 F9 94 01 00 35 04 06 00 10 85 2C 09 88 1A D9 D8 81 62 AA B5 6F 8B [12:48:24]CheckFolder [12:48:24]dirname=/storage/ofd_packets [12:48:24]CheckFolder done [12:48:24]ProducePacketName [12:48:24]name=ofd_packets/00103673 [12:48:24]NVStorageSaveData ofd_packets/00103673 [12:48:24]File name is /storage/ofd_packets/00103673 [12:48:24]Write 301 bytes [12:48:24]NVStorageSaveData done [12:48:24]OFDSenderStorePacket done [12:48:24]KKMCreateOFDPacket done [12:48:24]NVStorageSaveData kkm_last_timestamp [12:48:24]File name is /storage/kkm_last_timestamp [12:48:24]Write 4 bytes [12:48:24]NVStorageSaveData done [12:48:24]ExternCall_PrintAddStr [12:48:24]wPrintStart [12:48:24]Write to MH i2c: 01 00 00 89 AA 33 [12:48:24]Write i2c OK [12:48:24]MH_I2C_Read... [12:48:24]Read from MH i2c: 01 [12:48:24]MH_I2C_Read... [12:48:24]Read from MH i2c: 01 07 00 [12:48:24]MH_I2C_Read... [12:48:24]Read from MH i2c: 01 07 00 89 AA 00 00 00 00 00 FF 0F 48 [12:48:24]RasterBufferAndPrint [12:48:24]line Счет N : (1)672926 [12:48:24]line ИНН: 02508201610067 [12:48:24]line Контрольно-Кассовый Чек [12:48:24]line ПРОДАЖА [12:48:24]line ТРК (МРК, ГНК) : 42 [12:48:24]line Товар: 2710124130 [12:48:24]line Аи-92-К-5 [12:48:24]line 7.540 * 66.40 [12:48:24]line = 500.66 [12:48:24]line НДС 12% НСП 1% [12:48:24]line > о реализуемом товаре [12:48:24]line ОКРУГЛЕНИЕ: -0.66 [12:48:24]line ИТОГО: 500.00 [12:48:24]line Внесено: 500.00 [12:48:24]line СДАЧА: 0.00 [12:48:24]line НСП 1% : 4.43 [12:48:24]line НДС 12% : 53.17 [12:48:24]line Наличными: 500.00 [12:48:24]line Безнал.: 0.00 [12:48:24]line Место: АЗС № 120 "Партнер Нефть" [12:48:24]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [12:48:24]line СНО: Общий режим [12:48:24]line Чек 103 19.06.2024 12:48 [12:48:24]line Смена: 353 ФФД: 1.0 [12:48:24]line ЗНМ: 0300000164 [12:48:24]line РНМ: 0000000000092785 [12:48:24]line Версия ККМ: 001 [12:48:24]line ФМ: 0000000000875093 [12:48:24]line ФД: 103673 [12:48:24]line ФПД: 18164155516954 [12:48:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T124835&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103673&fm=18164155516954&tin=02508201610067®Number=0000000000092785&sum=50000 [12:48:24]written 0, free lines is 4095 [12:48:24]OFD Sender: Processing packet 103673 [packets to send 17, broken 16] [12:48:24]ProducePacketName [12:48:24]name=ofd_packets/00103673 [12:48:24]OFD Sender: To server: pG, [12:48:24]CommunicateWithHost lk.salyk.kg:30040 [12:48:24]ConnectInit lk.salyk.kg [12:48:24]Connected sock=10 [12:48:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 99 41 07 01 9A D9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 A3 D3 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 F9 94 01 00 35 04 06 00 10 85 2C 09 88 1A D9 D8 81 62 AA B5 6F 8B [12:48: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 39 33 4F 00 00 00 40 C8 47 00 0F CC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 F9 94 01 00 F4 03 04 00 2C 7A 72 66 B6 04 01 00 00 68 10 F4 3E 6F 79 9A D3 [12:48:25]CommunicateWithHost err = 0 [12:48:25]CheckOFDResponse [12:48:25]1017 (14) - 77093643461234 [12:48:25]1041 (16) - 0000000000875093 [12:48:25]1040 (4) - 103673 [12:48:25]1012 (4) - 19.06.2024 06:26 [12:48:25]1206 (1) - 0 [12:48:25]OFD Sender: Remove packet 103673 [12:48:25]ProducePacketName [12:48:25]name=ofd_packets/00103673 [12:48:25]NVStorageDeleteData [12:48:25]Write to MH i2c: 01 00 00 B4 AA 5E [12:48:25]Write i2c OK [12:48:25]MH_I2C_Read... [12:48:25]Read from MH i2c: 01 [12:48:25]MH_I2C_Read... [12:48:25]Read from MH i2c: 01 07 00 [12:48:25]MH_I2C_Read... [12:48:25]Read from MH i2c: 01 07 00 B4 AA 00 00 00 00 00 DA 0C 4B [12:48:25]RasterBufferAndPrint [12:48:25]line [12:48:25]line [12:48:25]line [12:48:25]line [12:48:25]line [12:48:25]written 0, free lines is 3297 [12:48:25]MH_Cut [12:48:25]Write to MH i2c: D1 01 00 BB AA 01 37 [12:48:25]Write i2c OK [12:48:25]MH_I2C_Read... [12:48:25]Read from MH i2c: D1 [12:48:25]MH_I2C_Read... [12:48:25]Read from MH i2c: D1 01 00 [12:48:25]MH_I2C_Read... [12:48:25]Read from MH i2c: D1 01 00 BB AA 00 36 [12:48:25]Write to MH i2c: 01 00 00 BC AA 66 [12:48:25]Write i2c OK [12:48:25]MH_I2C_Read... [12:48:25]OFD Sender: No OFD packet to send [12:48:25]*** Cut start [12:48:25]*** Partial cut [12:48:26]*** CUTSNS_PIN = 1 [12:48:26]*** CUTSNS_PIN = 0 [12:48:26]*** Brake cut motor [12:48:26]Read from MH i2c: 01 [12:48:26]MH_I2C_Read... [12:48:26]*** Stop cut motor [12:48:26]*** Cut end [12:48:26]Read from MH i2c: 01 07 00 [12:48:26]MH_I2C_Read... [12:48:26]Read from MH i2c: 01 07 00 BC AA 00 00 00 00 00 FF 0F 7B [12:48:26]process_action close_receipt done [12:48:26]requested_data is exist [12:48:26]produce_requested_data [12:48:26]requested_item fm.sn is exist - process it [12:48:26]wFMCommunicate request_size=4 [12:48:26]MH_SAM_APDU [12:48:26]CAPDU: 80 11 00 00 [12:48:26]Write to MH i2c: E2 08 00 BD AA 80 11 00 00 00 00 00 00 E1 [12:48:26]Write i2c OK [12:48:26]MH_I2C_Read... [12:48:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:48:26]Read from MH i2c: E2 [12:48:26]MH_I2C_Read... [12:48:26]Read from MH i2c: E2 17 00 [12:48:26]MH_I2C_Read... [12:48:26]Read from MH i2c: E2 17 00 BD AA 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 34 [12:48:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [12:48:26]wFMCommunicate OK [12:48:26]requested_item fd.num is exist - process it [12:48:26]SAM_PROTO_GetFieldsCounters [12:48:26]wFMCommunicate request_size=4 [12:48:26]MH_SAM_APDU [12:48:26]CAPDU: 80 13 00 00 [12:48:26]Write to MH i2c: E2 08 00 BE AA 80 13 00 00 00 00 00 00 E4 [12:48:26]Write i2c OK [12:48:26]MH_I2C_Read... [12:48:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:48:26]Read from MH i2c: E2 [12:48:26]MH_I2C_Read... [12:48:26]Read from MH i2c: E2 62 00 [12:48:26]MH_I2C_Read... [12:48:26]Read from MH i2c: E2 62 00 BE AA 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 F9 94 01 00 0E 04 04 00 61 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 30 [12:48:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 F9 94 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 67 00 00 00 5E 04 04 00 67 00 00 00 57 04 04 00 68 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:48:26]wFMCommunicate OK [12:48:26]SAM_PROTO_GetFieldsCounters done [12:48:26]requested_item shift.num is exist - process it [12:48:26]requested_item shift.opened is exist - process it [12:48:26]req_shift_opened [12:48:26]FM_GetShiftState [12:48:26]SAM_PROTO_GetShiftState [12:48:26]wFMCommunicate request_size=4 [12:48:26]MH_SAM_APDU [12:48:26]CAPDU: 80 13 01 00 [12:48:26]Write to MH i2c: E2 08 00 BF AA 80 13 01 00 00 00 00 00 E6 [12:48:26]Write i2c OK [12:48:26]MH_I2C_Read... [12:48:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:48:26]Read from MH i2c: E2 [12:48:26]MH_I2C_Read... [12:48:26]Read from MH i2c: E2 0E 00 [12:48:26]MH_I2C_Read... [12:48:26]Read from MH i2c: E2 0E 00 BF AA 00 09 00 01 04 26 72 66 00 00 00 00 90 00 F4 [12:48:26]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [12:48:26]wFMCommunicate OK [12:48:26]SAM_PROTO_GetShiftState done [12:48:26]FM_GetShiftState done [12:48:26]req_shift_opened done [12:48:26]requested_item shift.open_date is exist - process it [12:48:26]req_shift_open_date [12:48:26]req_shift_open_date done [12:48:26]produce_requested_data done [12:48:26]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103673,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [12:48:26]process_action_free close_receipt [12:48:26]json_value_free [12:48:26]json_value_free done [12:48:26]process_json_proto returns [12:48:26]Send response to host [12:48:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103673,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [12:48:26]free response buf [12:48:26]execute_script done [12:48:26]execute_script returns [12:48:26]free content buf [12:48:26]Sock 7.Close socket [12:48:26]Sock 7.Thread stoped [12:48:30]OFD Sender: No OFD packet to send [12:48:35]OFD Sender: No OFD packet to send [12:48:40]OFD Sender: No OFD packet to send [12:48:45]OFD Sender: No OFD packet to send [12:48:50]OFD Sender: No OFD packet to send [12:48:55]OFD Sender: No OFD packet to send [12:49:00]OFD Sender: No OFD packet to send [12:49:05]OFD Sender: No OFD packet to send [12:49:10]OFD Sender: No OFD packet to send [12:49:15]OFD Sender: No OFD packet to send [12:49:20]OFD Sender: No OFD packet to send [12:49:25]OFD Sender: No OFD packet to send [12:49:30]OFD Sender: No OFD packet to send [12:49:35]OFD Sender: No OFD packet to send [12:49:40]OFD Sender: No OFD packet to send [12:49:45]OFD Sender: No OFD packet to send [12:49:50]OFD Sender: No OFD packet to send [12:49:55]OFD Sender: No OFD packet to send [12:50:00]OFD Sender: No OFD packet to send [12:50:05]OFD Sender: No OFD packet to send [12:50:10]OFD Sender: No OFD packet to send [12:50:15]OFD Sender: No OFD packet to send [12:50:20]OFD Sender: No OFD packet to send [12:50:25]OFD Sender: No OFD packet to send [12:50:30]OFD Sender: No OFD packet to send [12:50:35]OFD Sender: No OFD packet to send [12:50:40]OFD Sender: No OFD packet to send [12:50:45]OFD Sender: No OFD packet to send [12:50:50]OFD Sender: No OFD packet to send [12:50:55]OFD Sender: No OFD packet to send [12:51:00]OFD Sender: No OFD packet to send [12:51:05]OFD Sender: No OFD packet to send [12:51:10]OFD Sender: No OFD packet to send [12:51:15]OFD Sender: No OFD packet to send [12:51:20]OFD Sender: No OFD packet to send [12:51:25]OFD Sender: No OFD packet to send [12:51:30]OFD Sender: No OFD packet to send [12:51:31]accept exits with 9 [12:51:31]New connection [12:51:31]New thread 3067227492 created [12:51:31]Thread 3067084132 joined [12:51:31]Waiting for new connection... [12:51:31] Sock 9.Parse request [12:51:31]Sock 9.Check first char [12:51:31]Sock 9.First char is OK [12:51:31]request: POST /json_proto HTTP/1.0 [12:51:31]Method: POST [12:51:31]URL: /json_proto [12:51:31]Method is POST - this is cgi request [12:51:31]url: /json_proto [12:51:31]query_string will be loaded in cgi processing [12:51:31]execute_cgi json_proto POST (null) [12:51:31]execute_cgi path=json_proto method=POST [12:51:31]POST find Content-Length [12:51:31]Host: 172.17.38.133:8080 [12:51:31]Content-Length: 687 [12:51:31]Content-Type: application/json [12:51:31] [12:51:31]POST finish read [12:51:31]Found Content-Length = 687 [12:51:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672927", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 13.720, "sum" : 1000.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:51:31]execute_script... [12:51: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)672927", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 13.720, "sum" : 1000.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:51:31]POST & json_proto [12:51:31]process_json_proto [12:51:31]json parsed OK: [12:51:31]protocol is kg_v1.0 [12:51:31]action value=close_receipt [12:51:31]process_action close_receipt [12:51:31]cmd_close_receipt [12:51:31]MH_GetDate [12:51:31]Write to MH i2c: F0 00 00 C0 AA 59 [12:51:31]Write i2c OK [12:51:31]MH_I2C_Read... [12:51:31]Read from MH i2c: F0 [12:51:31]MH_I2C_Read... [12:51:31]Read from MH i2c: F0 09 00 [12:51:31]MH_I2C_Read... [12:51:31]Read from MH i2c: F0 09 00 C0 AA 00 5F D4 72 66 BD 8F 7C 64 99 [12:51:31]GetLastDocTimeStamp 1718801315 [12:51:31]current date 1718801503 [12:51:31]FM_GetShiftState [12:51:31]SAM_PROTO_GetShiftState [12:51:31]wFMCommunicate request_size=4 [12:51:31]MH_SAM_APDU [12:51:31]CAPDU: 80 13 01 00 [12:51:31]Write to MH i2c: E2 08 00 C1 AA 80 13 01 00 00 00 00 00 E8 [12:51:31]Write i2c OK [12:51:31]MH_I2C_Read... [12:51:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:51:31]Read from MH i2c: E2 [12:51:31]MH_I2C_Read... [12:51:31]Read from MH i2c: E2 0E 00 [12:51:31]MH_I2C_Read... [12:51:31]Read from MH i2c: E2 0E 00 C1 AA 00 09 00 01 04 26 72 66 00 00 00 00 90 00 F6 [12:51:31]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [12:51:31]wFMCommunicate OK [12:51:31]SAM_PROTO_GetShiftState done [12:51:31]FM_GetShiftState done [12:51:31]opened in 1718756868 [12:51:31]opened+sec_in_day 1718843268 [12:51:31]quantity*price = 100018 [12:51:31]sum+1 = 100020 [12:51:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.19 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 104 19.06.2024 12:51 Смена: 353 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103674 ФПД: 52623558254305 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T125143&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103674&fm=52623558254305&tin=02508201610067®Number=0000000000092785&sum=100000 [12:51:32]StoreToDocumentArchive [12:51:32]shift 353 fd 103674 [12:51:32]save to /storage/0353/doc_00103674 [12:51:32]save last doc name /storage/0353/doc_00103674 to /storage/kkm_last_doc_name [12:51:32]save OK [12:51:32]Clear old archive folders... [12:51:32]ProcessDocumentItem done err = 0, tmpTLVsize=252 [12:51:32]tlvbuf is 01576280 [12:51:32]SAM_PROTO_ClearQueue [12:51:32]wFMCommunicate request_size=4 [12:51:32]MH_SAM_APDU [12:51:32]CAPDU: 80 09 00 00 [12:51:32]Write to MH i2c: E2 08 00 CE AA 80 09 00 00 00 00 00 00 EA [12:51:32]Write i2c OK [12:51:32]MH_I2C_Read... [12:51:32]Read from MH i2c: E2 [12:51:32]MH_I2C_Read... [12:51:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:51:32]Read from MH i2c: E2 03 00 [12:51:32]MH_I2C_Read... [12:51:32]Read from MH i2c: E2 03 00 CE AA 00 90 00 EC [12:51:32]RAPDU: 90 00 [12:51:32]wFMCommunicate OK [12:51:32]SAM_PROTO_ClearQueue done [12:51:32]KKMCreateOFDPacket [12:51:32]OFDProtocolAddRootSTLVToBuf [12:51:32]FM_MakeSignedData [12:51:32]FM_MakeSignedData [12:51:32]SAM_PROTO_SignData [12:51:32]wFMCommunicate request_size=4 [12:51:32]MH_SAM_APDU [12:51:32]CAPDU: 80 0D 01 02 [12:51:32]Write to MH i2c: E2 08 00 CF AA 80 0D 01 02 00 00 00 00 F2 [12:51:32]Write i2c OK [12:51:32]MH_I2C_Read... [12:51:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:51:32]Read from MH i2c: E2 [12:51:32]MH_I2C_Read... [12:51:32]Read from MH i2c: E2 03 00 [12:51:32]MH_I2C_Read... [12:51:32]Read from MH i2c: E2 03 00 CF AA 00 90 00 ED [12:51:32]RAPDU: 90 00 [12:51:32]wFMCommunicate OK [12:51:32]wFMCommunicate request_size=255 [12:51:32]MH_SAM_APDU [12:51:32]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 5F D4 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 FA 94 01 00 35 04 06 00 [12:51:32]Write to MH i2c: E2 02 01 D0 AA 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 5F D4 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 FA 94 01 00 35 04 06 00 00 00 AA [12:51:32]Write i2c OK [12:51:32]MH_I2C_Read... [12:51:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:51:33]Read from MH i2c: E2 [12:51:33]MH_I2C_Read... [12:51:33]Read from MH i2c: E2 03 00 [12:51:33]MH_I2C_Read... [12:51:33]Read from MH i2c: E2 03 00 D0 AA 00 90 00 EE [12:51:33]RAPDU: 90 00 [12:51:33]wFMCommunicate OK [12:51:33]wFMCommunicate request_size=11 [12:51:33]MH_SAM_APDU [12:51:33]CAPDU: 80 0D 02 02 06 2F DC 60 7F 1E E1 [12:51:33]Write to MH i2c: E2 0E 00 D1 AA 80 0D 02 02 06 00 2F DC 60 7F 1E E1 00 00 EA [12:51:33]Write i2c OK [12:51:33]MH_I2C_Read... [12:51:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:51:33]Read from MH i2c: E2 [12:51:33]MH_I2C_Read... [12:51:33]Read from MH i2c: E2 03 00 [12:51:33]MH_I2C_Read... [12:51:33]Read from MH i2c: E2 03 00 D1 AA 00 90 00 EF [12:51:33]RAPDU: 90 00 [12:51:33]wFMCommunicate OK [12:51:33]wFMCommunicate request_size=4 [12:51:33]MH_SAM_APDU [12:51:33]CAPDU: 80 0D 03 02 [12:51:33]Write to MH i2c: E2 08 00 D2 AA 80 0D 03 02 00 00 00 00 F7 [12:51:33]Write i2c OK [12:51:33]MH_I2C_Read... [12:51:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:51:33]Read from MH i2c: E2 [12:51:33]MH_I2C_Read... [12:51:33]Read from MH i2c: E2 0B 00 [12:51:33]MH_I2C_Read... [12:51:33]Read from MH i2c: E2 0B 00 D2 AA 00 70 26 5A 15 E9 27 0D 7E 90 00 98 [12:51:33]RAPDU: 70 26 5A 15 E9 27 0D 7E 90 00 [12:51:33]wFMCommunicate OK [12:51:33]SAM_PROTO_SignData done [12:51:33]FM_MakeSignedData done [12:51:33]CreateOFDProtocolMessage [12:51:33]wFMCommunicate request_size=4 [12:51:33]MH_SAM_APDU [12:51:33]CAPDU: 80 11 00 00 [12:51:33]Write to MH i2c: E2 08 00 D3 AA 80 11 00 00 00 00 00 00 F7 [12:51:33]Write i2c OK [12:51:33]MH_I2C_Read... [12:51:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:51:33]Read from MH i2c: E2 [12:51:33]MH_I2C_Read... [12:51:33]Read from MH i2c: E2 17 00 [12:51:33]MH_I2C_Read... [12:51:33]Read from MH i2c: E2 17 00 D3 AA 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 4A [12:51:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [12:51:33]wFMCommunicate OK [12:51:33]CreateOFDProtocolMessage done [12:51:33]OFDSenderStorePacket 103674 [12:51:33]StoreOFDPacket docnum=103674 [12:51:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 72 9B 08 01 4E F1 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 5F D4 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 FA 94 01 00 35 04 06 00 2F DC 60 7F 1E E1 70 26 5A 15 E9 27 0D 7E [12:51:33]CheckFolder [12:51:33]dirname=/storage/ofd_packets [12:51:33]CheckFolder done [12:51:33]ProducePacketName [12:51:33]name=ofd_packets/00103674 [12:51:33]NVStorageSaveData ofd_packets/00103674 [12:51:33]File name is /storage/ofd_packets/00103674 [12:51:33]Write 302 bytes [12:51:33]NVStorageSaveData done [12:51:33]OFDSenderStorePacket done [12:51:33]KKMCreateOFDPacket done [12:51:33]NVStorageSaveData kkm_last_timestamp [12:51:33]File name is /storage/kkm_last_timestamp [12:51:33]Write 4 bytes [12:51:33]NVStorageSaveData done [12:51:33]ExternCall_PrintAddStr [12:51:33]wPrintStart [12:51:33]Write to MH i2c: 01 00 00 D4 AA 7E [12:51:33]Write i2c OK [12:51:33]MH_I2C_Read... [12:51:33]Read from MH i2c: 01 [12:51:33]MH_I2C_Read... [12:51:33]Read from MH i2c: 01 07 00 [12:51:33]MH_I2C_Read... [12:51:33]Read from MH i2c: 01 07 00 D4 AA 00 00 00 00 00 FF 0F 93 [12:51:33]RasterBufferAndPrint [12:51:33]line Счет N : (1)672927 [12:51:33]line ИНН: 02508201610067 [12:51:33]line Контрольно-Кассовый Чек [12:51:33]line ПРОДАЖА [12:51:33]line ТРК (МРК, ГНК) : 21 [12:51:33]line Товар: 2710194210 [12:51:33]line ДТ(л)-К-5 [12:51:33]line 13.720 * 72.90 [12:51:33]line = 1000.19 [12:51:33]line НДС 12% НСП 1% [12:51:33]line > о реализуемом товаре [12:51:33]line ОКРУГЛЕНИЕ: -0.19 [12:51:33]line ИТОГО: 1000.00 [12:51:33]line Внесено: 1000.00 [12:51:33]line СДАЧА: 0.00 [12:51:33]line НСП 1% : 8.85 [12:51:33]line НДС 12% : 106.21 [12:51:33]line Наличными: 1000.00 [12:51:33]line Безнал.: 0.00 [12:51:33]line Место: АЗС № 120 "Партнер Нефть" [12:51:33]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [12:51:33]line СНО: Общий режим [12:51:33]line Чек 104 19.06.2024 12:51 [12:51:33]line Смена: 353 ФФД: 1.0 [12:51:33]line ЗНМ: 0300000164 [12:51:33]line РНМ: 0000000000092785 [12:51:33]line Версия ККМ: 001 [12:51:33]line ФМ: 0000000000875093 [12:51:33]line ФД: 103674 [12:51:33]line ФПД: 52623558254305 [12:51:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T125143&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103674&fm=52623558254305&tin=02508201610067®Number=0000000000092785&sum=100000 [12:51:33]OFD Sender: Processing packet 103674 [packets to send 17, broken 16] [12:51:33]ProducePacketName [12:51:33]name=ofd_packets/00103674 [12:51:33]OFD Sender: To server: pG, [12:51:33]CommunicateWithHost lk.salyk.kg:30040 [12:51:33]ConnectInit lk.salyk.kg [12:51:33]written 0, free lines is 4095 [12:51:33]Connected sock=11 [12:51: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 39 33 10 01 00 00 72 9B 08 01 4E F1 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 5F D4 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 FA 94 01 00 35 04 06 00 2F DC 60 7F 1E E1 70 26 5A 15 E9 27 0D 7E [12:51: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 39 33 4F 00 00 00 24 24 47 00 98 2E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 FA 94 01 00 F4 03 04 00 E8 7A 72 66 B6 04 01 00 00 48 15 43 63 B3 2D 2D D3 [12:51:33]CommunicateWithHost err = 0 [12:51:33]CheckOFDResponse [12:51:33]1017 (14) - 77093643461234 [12:51:33]1041 (16) - 0000000000875093 [12:51:33]1040 (4) - 103674 [12:51:33]1012 (4) - 19.06.2024 06:30 [12:51:33]1206 (1) - 0 [12:51:33]OFD Sender: Remove packet 103674 [12:51:33]ProducePacketName [12:51:33]name=ofd_packets/00103674 [12:51:33]NVStorageDeleteData [12:51:34]Write to MH i2c: 01 00 00 FF AA A9 [12:51:34]Write i2c OK [12:51:34]MH_I2C_Read... [12:51:34]Read from MH i2c: 01 [12:51:34]MH_I2C_Read... [12:51:34]Read from MH i2c: 01 07 00 [12:51:34]MH_I2C_Read... [12:51:34]Read from MH i2c: 01 07 00 FF AA 00 00 00 00 00 E9 0C A5 [12:51:34]RasterBufferAndPrint [12:51:34]line [12:51:34]line [12:51:34]line [12:51:34]line [12:51:34]line [12:51:34]written 0, free lines is 3312 [12:51:34]MH_Cut [12:51:34]Write to MH i2c: D1 01 00 06 AB 01 83 [12:51:34]Write i2c OK [12:51:34]MH_I2C_Read... [12:51:34]Read from MH i2c: D1 [12:51:34]MH_I2C_Read... [12:51:34]Read from MH i2c: D1 01 00 [12:51:34]MH_I2C_Read... [12:51:34]Read from MH i2c: D1 01 00 06 AB 00 82 [12:51:34]Write to MH i2c: 01 00 00 07 AB B2 [12:51:34]Write i2c OK [12:51:34]MH_I2C_Read... [12:51:34]OFD Sender: No OFD packet to send [12:51:34]*** Cut start [12:51:34]*** Partial cut [12:51:34]*** CUTSNS_PIN = 1 [12:51:34]*** CUTSNS_PIN = 0 [12:51:35]*** Brake cut motor [12:51:35]Read from MH i2c: 01 [12:51:35]MH_I2C_Read... [12:51:35]*** Stop cut motor [12:51:35]*** Cut end [12:51:35]Read from MH i2c: 01 07 00 [12:51:35]MH_I2C_Read... [12:51:35]Read from MH i2c: 01 07 00 07 AB 00 00 00 00 00 FF 0F C7 [12:51:35]process_action close_receipt done [12:51:35]requested_data is exist [12:51:35]produce_requested_data [12:51:35]requested_item fm.sn is exist - process it [12:51:35]wFMCommunicate request_size=4 [12:51:35]MH_SAM_APDU [12:51:35]CAPDU: 80 11 00 00 [12:51:35]Write to MH i2c: E2 08 00 08 AB 80 11 00 00 00 00 00 00 2D [12:51:35]Write i2c OK [12:51:35]MH_I2C_Read... [12:51:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:51:35]Read from MH i2c: E2 [12:51:35]MH_I2C_Read... [12:51:35]Read from MH i2c: E2 17 00 [12:51:35]MH_I2C_Read... [12:51:35]Read from MH i2c: E2 17 00 08 AB 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 80 [12:51:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [12:51:35]wFMCommunicate OK [12:51:35]requested_item fd.num is exist - process it [12:51:35]SAM_PROTO_GetFieldsCounters [12:51:35]wFMCommunicate request_size=4 [12:51:35]MH_SAM_APDU [12:51:35]CAPDU: 80 13 00 00 [12:51:35]Write to MH i2c: E2 08 00 09 AB 80 13 00 00 00 00 00 00 30 [12:51:35]Write i2c OK [12:51:35]MH_I2C_Read... [12:51:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:51:35]Read from MH i2c: E2 [12:51:35]MH_I2C_Read... [12:51:35]Read from MH i2c: E2 62 00 [12:51:35]MH_I2C_Read... [12:51:35]Read from MH i2c: E2 62 00 09 AB 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 FA 94 01 00 0E 04 04 00 61 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 80 [12:51: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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 FA 94 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 68 00 00 00 5E 04 04 00 68 00 00 00 57 04 04 00 69 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:51:35]wFMCommunicate OK [12:51:35]SAM_PROTO_GetFieldsCounters done [12:51:35]requested_item shift.num is exist - process it [12:51:35]requested_item shift.opened is exist - process it [12:51:35]req_shift_opened [12:51:35]FM_GetShiftState [12:51:35]SAM_PROTO_GetShiftState [12:51:35]wFMCommunicate request_size=4 [12:51:35]MH_SAM_APDU [12:51:35]CAPDU: 80 13 01 00 [12:51:35]Write to MH i2c: E2 08 00 0A AB 80 13 01 00 00 00 00 00 32 [12:51:35]Write i2c OK [12:51:35]MH_I2C_Read... [12:51:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:51:35]Read from MH i2c: E2 [12:51:35]MH_I2C_Read... [12:51:35]Read from MH i2c: E2 0E 00 [12:51:35]MH_I2C_Read... [12:51:35]Read from MH i2c: E2 0E 00 0A AB 00 09 00 01 04 26 72 66 00 00 00 00 90 00 40 [12:51:35]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [12:51:35]wFMCommunicate OK [12:51:35]SAM_PROTO_GetShiftState done [12:51:35]FM_GetShiftState done [12:51:35]req_shift_opened done [12:51:35]requested_item shift.open_date is exist - process it [12:51:35]req_shift_open_date [12:51:35]req_shift_open_date done [12:51:35]produce_requested_data done [12:51:35]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103674,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [12:51:35]process_action_free close_receipt [12:51:35]json_value_free [12:51:35]json_value_free done [12:51:35]process_json_proto returns [12:51:35]Send response to host [12:51:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103674,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [12:51:35]free response buf [12:51:35]execute_script done [12:51:35]execute_script returns [12:51:35]free content buf [12:51:35]Sock 9.Close socket [12:51:35]Sock 9.Thread stoped [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:04]OFD Sender: No OFD packet to send [12:54:09]OFD Sender: No OFD packet to send [12:54:14]OFD Sender: No OFD packet to send [12:54:19]OFD Sender: No OFD packet to send [12:54:24]OFD Sender: No OFD packet to send [12:54:29]OFD Sender: No OFD packet to send [12:54:34]OFD Sender: No OFD packet to send [12:54:39]OFD Sender: No OFD packet to send [12:54:44]OFD Sender: No OFD packet to send [12:54:49]OFD Sender: No OFD packet to send [12:54:54]OFD Sender: No OFD packet to send [12:54:59]OFD Sender: No OFD packet to send [12:55:04]OFD Sender: No OFD packet to send [12:55:09]OFD Sender: No OFD packet to send [12:55:14]OFD Sender: No OFD packet to send [12:55:19]OFD Sender: No OFD packet to send [12:55:24]OFD Sender: No OFD packet to send [12:55:29]OFD Sender: No OFD packet to send [12:55:34]OFD Sender: No OFD packet to send [12:55:39]OFD Sender: No OFD packet to send [12:55:44]OFD Sender: No OFD packet to send [12:55:49]OFD Sender: No OFD packet to send [12:55:54]OFD Sender: No OFD packet to send [12:55:59]OFD Sender: No OFD packet to send [12:56:04]OFD Sender: No OFD packet to send [12:56:09]OFD Sender: No OFD packet to send [12:56:14]OFD Sender: No OFD packet to send [12:56:19]OFD Sender: No OFD packet to send [12:56:24]OFD Sender: No OFD packet to send [12:56:29]OFD Sender: No OFD packet to send [12:56:34]OFD Sender: No OFD packet to send [12:56:39]OFD Sender: No OFD packet to send [12:56:44]OFD Sender: No OFD packet to send [12:56:49]OFD Sender: No OFD packet to send [12:56:54]OFD Sender: No OFD packet to send [12:56:59]OFD Sender: No OFD packet to send [12:57:04]OFD Sender: No OFD packet to send [12:57:09]OFD Sender: No OFD packet to send [12:57:14]OFD Sender: No OFD packet to send [12:57:19]OFD Sender: No OFD packet to send [12:57:24]OFD Sender: No OFD packet to send [12:57:29]OFD Sender: No OFD packet to send [12:57:34]OFD Sender: No OFD packet to send [12:57:39]OFD Sender: No OFD packet to send [12:57:44]OFD Sender: No OFD packet to send [12:57:49]OFD Sender: No OFD packet to send [12:57:54]OFD Sender: No OFD packet to send [12:57:59]accept exits with 7 [12:57:59]New connection [12:57:59]New thread 3067084132 created [12:57:59]Thread 3067227492 joined [12:57:59]Waiting for new connection... [12:57:59] Sock 7.Parse request [12:57:59]Sock 7.Check first char [12:57:59]Sock 7.First char is OK [12:57:59]request: POST /json_proto HTTP/1.0 [12:57:59]Method: POST [12:57:59]URL: /json_proto [12:57:59]Method is POST - this is cgi request [12:57:59]url: /json_proto [12:57:59]query_string will be loaded in cgi processing [12:57:59]execute_cgi json_proto POST (null) [12:57:59]execute_cgi path=json_proto method=POST [12:57:59]POST find Content-Length [12:57:59]Host: 172.17.38.133:8080 [12:57:59]Content-Length: 660 [12:57:59]Content-Type: application/json [12:57:59] [12:57:59]POST finish read [12:57:59]Found Content-Length = 660 [12:57:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672929", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 5.000, "sum" : 332.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "payments": [ { "type": 0, "sum" : 332.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:57:59]execute_script... [12:57: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)672929", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 5.000, "sum" : 332.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "payments": [ { "type": 0, "sum" : 332.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:57:59]POST & json_proto [12:57:59]process_json_proto [12:57:59]json parsed OK: [12:57:59]protocol is kg_v1.0 [12:57:59]action value=close_receipt [12:57:59]process_action close_receipt [12:57:59]cmd_close_receipt [12:57:59]MH_GetDate [12:57:59]Write to MH i2c: F0 00 00 0B AB A5 [12:57:59]Write i2c OK [12:57:59]MH_I2C_Read... [12:57:59]Read from MH i2c: F0 [12:57:59]MH_I2C_Read... [12:57:59]Read from MH i2c: F0 09 00 [12:57:59]MH_I2C_Read... [12:57:59]Read from MH i2c: F0 09 00 0B AB 00 E3 D5 72 66 BD 8F 7C 64 6A [12:57:59]GetLastDocTimeStamp 1718801503 [12:57:59]current date 1718801891 [12:57:59]FM_GetShiftState [12:57:59]SAM_PROTO_GetShiftState [12:57:59]wFMCommunicate request_size=4 [12:57:59]MH_SAM_APDU [12:57:59]CAPDU: 80 13 01 00 [12:57:59]Write to MH i2c: E2 08 00 0C AB 80 13 01 00 00 00 00 00 34 [12:57:59]Write i2c OK [12:57:59]MH_I2C_Read... [12:57:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:57:59]Read from MH i2c: E2 [12:57:59]MH_I2C_Read... [12:57:59]Read from MH i2c: E2 0E 00 [12:57:59]MH_I2C_Read... [12:57:59]Read from MH i2c: E2 0E 00 0C AB 00 09 00 01 04 26 72 66 00 00 00 00 90 00 42 [12:57:59]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [12:57:59]wFMCommunicate OK [12:57:59]SAM_PROTO_GetShiftState done [12:57:59]FM_GetShiftState done [12:57:59]opened in 1718756868 [12:57:59]opened+sec_in_day 1718843268 [12:57:59]quantity*price = 33200 [12:57:59]sum+1 = 33201 [12:57:59]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 332.00 Внесено: 1000.00 СДАЧА: 668.00 НСП 1% : 2.94 НДС 12% : 35.26 Наличными: 332.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 105 19.06.2024 12:58 Смена: 353 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103675 ФПД: 239024354008141 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T125811&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103675&fm=239024354008141&tin=02508201610067®Number=0000000000092785&sum=33200 [12:58:00]StoreToDocumentArchive [12:58:00]shift 353 fd 103675 [12:58:00]save to /storage/0353/doc_00103675 [12:58:00]save last doc name /storage/0353/doc_00103675 to /storage/kkm_last_doc_name [12:58:00]save OK [12:58:00]Clear old archive folders... [12:58:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:58:00]tlvbuf is 013949F0 [12:58:00]SAM_PROTO_ClearQueue [12:58:00]wFMCommunicate request_size=4 [12:58:00]MH_SAM_APDU [12:58:00]CAPDU: 80 09 00 00 [12:58:00]Write to MH i2c: E2 08 00 19 AB 80 09 00 00 00 00 00 00 36 [12:58:00]Write i2c OK [12:58:00]MH_I2C_Read... [12:58:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:58:00]Read from MH i2c: E2 [12:58:00]MH_I2C_Read... [12:58:00]Read from MH i2c: E2 03 00 [12:58:00]MH_I2C_Read... [12:58:00]Read from MH i2c: E2 03 00 19 AB 00 90 00 38 [12:58:00]RAPDU: 90 00 [12:58:00]wFMCommunicate OK [12:58:00]SAM_PROTO_ClearQueue done [12:58:00]KKMCreateOFDPacket [12:58:00]OFDProtocolAddRootSTLVToBuf [12:58:00]FM_MakeSignedData [12:58:00]FM_MakeSignedData [12:58:00]SAM_PROTO_SignData [12:58:00]wFMCommunicate request_size=4 [12:58:00]MH_SAM_APDU [12:58:00]CAPDU: 80 0D 01 02 [12:58:00]Write to MH i2c: E2 08 00 1A AB 80 0D 01 02 00 00 00 00 3E [12:58:00]Write i2c OK [12:58:00]MH_I2C_Read... [12:58:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:58:00]Read from MH i2c: E2 [12:58:00]MH_I2C_Read... [12:58:00]Read from MH i2c: E2 03 00 [12:58:00]MH_I2C_Read... [12:58:00]Read from MH i2c: E2 03 00 1A AB 00 90 00 39 [12:58:00]RAPDU: 90 00 [12:58:00]wFMCommunicate OK [12:58:00]wFMCommunicate request_size=255 [12:58:00]MH_SAM_APDU [12:58: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 88 13 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 B0 81 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 81 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C6 0D 00 00 00 00 07 04 06 00 B0 81 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 E3 D5 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 FB 94 01 00 35 04 06 00 D9 [12:58:00]Write to MH i2c: E2 02 01 1B AB 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 B0 81 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 81 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C6 0D 00 00 00 00 07 04 06 00 B0 81 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 E3 D5 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 FB 94 01 00 35 04 06 00 D9 00 00 43 [12:58:00]Write i2c OK [12:58:00]MH_I2C_Read... [12:58:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:58:00]Read from MH i2c: E2 [12:58:00]MH_I2C_Read... [12:58:00]Read from MH i2c: E2 03 00 [12:58:00]MH_I2C_Read... [12:58:00]Read from MH i2c: E2 03 00 1B AB 00 90 00 3A [12:58:00]RAPDU: 90 00 [12:58:00]wFMCommunicate OK [12:58:00]wFMCommunicate request_size=10 [12:58:00]MH_SAM_APDU [12:58:00]CAPDU: 80 0D 02 02 05 64 31 B6 9C 4D [12:58:00]Write to MH i2c: E2 0D 00 1C AB 80 0D 02 02 05 00 64 31 B6 9C 4D 00 00 7F [12:58:00]Write i2c OK [12:58:00]MH_I2C_Read... [12:58:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:58:00]Read from MH i2c: E2 [12:58:00]MH_I2C_Read... [12:58:00]Read from MH i2c: E2 03 00 [12:58:00]MH_I2C_Read... [12:58:00]Read from MH i2c: E2 03 00 1C AB 00 90 00 3B [12:58:00]RAPDU: 90 00 [12:58:00]wFMCommunicate OK [12:58:00]wFMCommunicate request_size=4 [12:58:00]MH_SAM_APDU [12:58:00]CAPDU: 80 0D 03 02 [12:58:00]Write to MH i2c: E2 08 00 1D AB 80 0D 03 02 00 00 00 00 43 [12:58:00]Write i2c OK [12:58:00]MH_I2C_Read... [12:58:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:58:01]Read from MH i2c: E2 [12:58:01]MH_I2C_Read... [12:58:01]Read from MH i2c: E2 0B 00 [12:58:01]MH_I2C_Read... [12:58:01]Read from MH i2c: E2 0B 00 1D AB 00 B9 0B 18 9A D0 8B 6E AA 90 00 2D [12:58:01]RAPDU: B9 0B 18 9A D0 8B 6E AA 90 00 [12:58:01]wFMCommunicate OK [12:58:01]SAM_PROTO_SignData done [12:58:01]FM_MakeSignedData done [12:58:01]CreateOFDProtocolMessage [12:58:01]wFMCommunicate request_size=4 [12:58:01]MH_SAM_APDU [12:58:01]CAPDU: 80 11 00 00 [12:58:01]Write to MH i2c: E2 08 00 1E AB 80 11 00 00 00 00 00 00 43 [12:58:01]Write i2c OK [12:58:01]MH_I2C_Read... [12:58:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:58:01]Read from MH i2c: E2 [12:58:01]MH_I2C_Read... [12:58:01]Read from MH i2c: E2 17 00 [12:58:01]MH_I2C_Read... [12:58:01]Read from MH i2c: E2 17 00 1E AB 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 96 [12:58:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [12:58:01]wFMCommunicate OK [12:58:01]CreateOFDProtocolMessage done [12:58:01]OFDSenderStorePacket 103675 [12:58:01]StoreOFDPacket docnum=103675 [12:58:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 44 1B 07 01 6C 77 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 B0 81 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 81 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C6 0D 00 00 00 00 07 04 06 00 B0 81 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 E3 D5 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 FB 94 01 00 35 04 06 00 D9 64 31 B6 9C 4D B9 0B 18 9A D0 8B 6E AA [12:58:01]CheckFolder [12:58:01]dirname=/storage/ofd_packets [12:58:01]CheckFolder done [12:58:01]ProducePacketName [12:58:01]name=ofd_packets/00103675 [12:58:01]NVStorageSaveData ofd_packets/00103675 [12:58:01]File name is /storage/ofd_packets/00103675 [12:58:01]Write 301 bytes [12:58:01]NVStorageSaveData done [12:58:01]OFDSenderStorePacket done [12:58:01]KKMCreateOFDPacket done [12:58:01]NVStorageSaveData kkm_last_timestamp [12:58:01]File name is /storage/kkm_last_timestamp [12:58:01]Write 4 bytes [12:58:01]NVStorageSaveData done [12:58:01]ExternCall_PrintAddStr [12:58:01]wPrintStart [12:58:01]Write to MH i2c: 01 00 00 1F AB CA [12:58:01]Write i2c OK [12:58:01]MH_I2C_Read... [12:58:01]Read from MH i2c: 01 [12:58:01]MH_I2C_Read... [12:58:01]Read from MH i2c: 01 07 00 [12:58:01]MH_I2C_Read... [12:58:01]Read from MH i2c: 01 07 00 1F AB 00 00 00 00 00 FF 0F DF [12:58:01]RasterBufferAndPrint [12:58:01]line Счет N : (1)672929 [12:58:01]line ИНН: 02508201610067 [12:58:01]line Контрольно-Кассовый Чек [12:58:01]line ПРОДАЖА [12:58:01]line ТРК (МРК, ГНК) : 42 [12:58:01]line Товар: 2710124130 [12:58:01]line Аи-92-К-5 [12:58:01]line 5.000 * 66.40 [12:58:01]line = 332.00 [12:58:01]line НДС 12% НСП 1% [12:58:01]line > о реализуемом товаре [12:58:01]line ИТОГО: 332.00 [12:58:01]line Внесено: 1000.00 [12:58:01]line СДАЧА: 668.00 [12:58:01]line НСП 1% : 2.94 [12:58:01]line НДС 12% : 35.26 [12:58:01]line Наличными: 332.00 [12:58:01]line Безнал.: 0.00 [12:58:01]line Место: АЗС № 120 "Партнер Нефть" [12:58:01]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [12:58:01]line СНО: Общий режим [12:58:01]line Чек 105 19.06.2024 12:58 [12:58:01]line Смена: 353 ФФД: 1.0 [12:58:01]line ЗНМ: 0300000164 [12:58:01]line РНМ: 0000000000092785 [12:58:01]line Версия ККМ: 001 [12:58:01]line ФМ: 0000000000875093 [12:58:01]line ФД: 103675 [12:58:01]line ФПД: 239024354008141 [12:58:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T125811&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103675&fm=239024354008141&tin=02508201610067®Number=0000000000092785&sum=33200 [12:58:01]written 0, free lines is 4095 [12:58:01]OFD Sender: Processing packet 103675 [packets to send 17, broken 16] [12:58:01]ProducePacketName [12:58:01]name=ofd_packets/00103675 [12:58:01]OFD Sender: To server: pG, [12:58:01]CommunicateWithHost lk.salyk.kg:30040 [12:58:01]ConnectInit lk.salyk.kg [12:58:01]Connected sock=10 [12:58: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 39 33 0F 01 00 00 44 1B 07 01 6C 77 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 B0 81 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 81 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C6 0D 00 00 00 00 07 04 06 00 B0 81 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 E3 D5 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 FB 94 01 00 35 04 06 00 D9 64 31 B6 9C 4D B9 0B 18 9A D0 8B 6E AA [12:58: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 39 33 4F 00 00 00 77 74 47 00 0E 68 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 FB 94 01 00 F4 03 04 00 6C 7C 72 66 B6 04 01 00 00 5F F4 B1 85 DD E8 A8 79 [12:58:01]CommunicateWithHost err = 0 [12:58:01]CheckOFDResponse [12:58:01]1017 (14) - 77093643461234 [12:58:01]1041 (16) - 0000000000875093 [12:58:01]1040 (4) - 103675 [12:58:01]1012 (4) - 19.06.2024 06:36 [12:58:01]1206 (1) - 0 [12:58:01]OFD Sender: Remove packet 103675 [12:58:01]ProducePacketName [12:58:01]name=ofd_packets/00103675 [12:58:01]NVStorageDeleteData [12:58:01]Write to MH i2c: 01 00 00 49 AB F4 [12:58:01]Write i2c OK [12:58:01]MH_I2C_Read... [12:58:01]Read from MH i2c: 01 [12:58:01]MH_I2C_Read... [12:58:01]Read from MH i2c: 01 07 00 [12:58:01]MH_I2C_Read... [12:58:01]Read from MH i2c: 01 07 00 49 AB 00 00 00 00 00 EF 0C F6 [12:58:01]RasterBufferAndPrint [12:58:01]line [12:58:01]line [12:58:01]line [12:58:01]line [12:58:01]line [12:58:01]written 0, free lines is 3318 [12:58:01]MH_Cut [12:58:01]Write to MH i2c: D1 01 00 50 AB 01 CD [12:58:01]Write i2c OK [12:58:01]MH_I2C_Read... [12:58:01]Read from MH i2c: D1 [12:58:01]MH_I2C_Read... [12:58:01]Read from MH i2c: D1 01 00 [12:58:01]MH_I2C_Read... [12:58:01]Read from MH i2c: D1 01 00 50 AB 00 CC [12:58:01]Write to MH i2c: 01 00 00 51 AB FC [12:58:01]Write i2c OK [12:58:01]MH_I2C_Read... [12:58:02]OFD Sender: No OFD packet to send [12:58:02]*** Cut start [12:58:02]*** Partial cut [12:58:02]*** CUTSNS_PIN = 1 [12:58:02]*** CUTSNS_PIN = 0 [12:58:02]*** Brake cut motor [12:58:03]Read from MH i2c: 01 [12:58:03]MH_I2C_Read... [12:58:03]*** Stop cut motor [12:58:03]*** Cut end [12:58:03]Read from MH i2c: 01 07 00 [12:58:03]MH_I2C_Read... [12:58:03]Read from MH i2c: 01 07 00 51 AB 00 00 00 00 00 FF 0F 11 [12:58:03]process_action close_receipt done [12:58:03]requested_data is exist [12:58:03]produce_requested_data [12:58:03]requested_item fm.sn is exist - process it [12:58:03]wFMCommunicate request_size=4 [12:58:03]MH_SAM_APDU [12:58:03]CAPDU: 80 11 00 00 [12:58:03]Write to MH i2c: E2 08 00 52 AB 80 11 00 00 00 00 00 00 77 [12:58:03]Write i2c OK [12:58:03]MH_I2C_Read... [12:58:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:58:03]Read from MH i2c: E2 [12:58:03]MH_I2C_Read... [12:58:03]Read from MH i2c: E2 17 00 [12:58:03]MH_I2C_Read... [12:58:03]Read from MH i2c: E2 17 00 52 AB 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 CA [12:58:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [12:58:03]wFMCommunicate OK [12:58:03]requested_item fd.num is exist - process it [12:58:03]SAM_PROTO_GetFieldsCounters [12:58:03]wFMCommunicate request_size=4 [12:58:03]MH_SAM_APDU [12:58:03]CAPDU: 80 13 00 00 [12:58:03]Write to MH i2c: E2 08 00 53 AB 80 13 00 00 00 00 00 00 7A [12:58:03]Write i2c OK [12:58:03]MH_I2C_Read... [12:58:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:58:03]Read from MH i2c: E2 [12:58:03]MH_I2C_Read... [12:58:03]Read from MH i2c: E2 62 00 [12:58:03]MH_I2C_Read... [12:58:03]Read from MH i2c: E2 62 00 53 AB 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 FB 94 01 00 0E 04 04 00 61 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 CE [12:58: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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 FB 94 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 69 00 00 00 5E 04 04 00 69 00 00 00 57 04 04 00 6A 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:58:03]wFMCommunicate OK [12:58:03]SAM_PROTO_GetFieldsCounters done [12:58:03]requested_item shift.num is exist - process it [12:58:03]requested_item shift.opened is exist - process it [12:58:03]req_shift_opened [12:58:03]FM_GetShiftState [12:58:03]SAM_PROTO_GetShiftState [12:58:03]wFMCommunicate request_size=4 [12:58:03]MH_SAM_APDU [12:58:03]CAPDU: 80 13 01 00 [12:58:03]Write to MH i2c: E2 08 00 54 AB 80 13 01 00 00 00 00 00 7C [12:58:03]Write i2c OK [12:58:03]MH_I2C_Read... [12:58:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:58:03]Read from MH i2c: E2 [12:58:03]MH_I2C_Read... [12:58:03]Read from MH i2c: E2 0E 00 [12:58:03]MH_I2C_Read... [12:58:03]Read from MH i2c: E2 0E 00 54 AB 00 09 00 01 04 26 72 66 00 00 00 00 90 00 8A [12:58:03]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [12:58:03]wFMCommunicate OK [12:58:03]SAM_PROTO_GetShiftState done [12:58:03]FM_GetShiftState done [12:58:03]req_shift_opened done [12:58:03]requested_item shift.open_date is exist - process it [12:58:03]req_shift_open_date [12:58:03]req_shift_open_date done [12:58:03]produce_requested_data done [12:58:03]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103675,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [12:58:03]process_action_free close_receipt [12:58:03]json_value_free [12:58:03]json_value_free done [12:58:03]process_json_proto returns [12:58:03]Send response to host [12:58:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103675,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [12:58:03]free response buf [12:58:03]execute_script done [12:58:03]execute_script returns [12:58:03]free content buf [12:58:03]Sock 7.Close socket [12:58:03]Sock 7.Thread stoped [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]accept exits with 9 [12:58:32]New connection [12:58:32]New thread 3067227492 created [12:58:32]Thread 3067084132 joined [12:58:32]Waiting for new connection... [12:58:32] Sock 9.Parse request [12:58:32]Sock 9.Check first char [12:58:32]Sock 9.First char is OK [12:58:32]request: POST /json_proto HTTP/1.0 [12:58:32]Method: POST [12:58:32]URL: /json_proto [12:58:32]Method is POST - this is cgi request [12:58:32]url: /json_proto [12:58:32]query_string will be loaded in cgi processing [12:58:32]execute_cgi json_proto POST (null) [12:58:32]execute_cgi path=json_proto method=POST [12:58:32]POST find Content-Length [12:58:32]Host: 172.17.38.133:8080 [12:58:32]Content-Length: 682 [12:58:32]Content-Type: application/json [12:58:32] [12:58:32]POST finish read [12:58:32]Found Content-Length = 682 [12:58:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672928", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 45.190, "sum" : 3000.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:58:32]execute_script... [12:58: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)672928", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 45.190, "sum" : 3000.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:58:32]POST & json_proto [12:58:32]process_json_proto [12:58:32]json parsed OK: [12:58:32]protocol is kg_v1.0 [12:58:32]action value=close_receipt [12:58:32]process_action close_receipt [12:58:32]cmd_close_receipt [12:58:32]MH_GetDate [12:58:32]Write to MH i2c: F0 00 00 55 AB EF [12:58:32]Write i2c OK [12:58:32]MH_I2C_Read... [12:58:32]Read from MH i2c: F0 [12:58:32]MH_I2C_Read... [12:58:32]Read from MH i2c: F0 09 00 [12:58:32]MH_I2C_Read... [12:58:32]Read from MH i2c: F0 09 00 55 AB 00 04 D6 72 66 BD 8F 7C 64 D6 [12:58:32]GetLastDocTimeStamp 1718801891 [12:58:32]current date 1718801924 [12:58:32]FM_GetShiftState [12:58:32]SAM_PROTO_GetShiftState [12:58:32]wFMCommunicate request_size=4 [12:58:32]MH_SAM_APDU [12:58:32]CAPDU: 80 13 01 00 [12:58:32]Write to MH i2c: E2 08 00 56 AB 80 13 01 00 00 00 00 00 7E [12:58:32]OFD Sender: No OFD packet to send [12:58:32]Write i2c OK [12:58:32]MH_I2C_Read... [12:58:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:58:32]Read from MH i2c: E2 [12:58:32]MH_I2C_Read... [12:58:32]Read from MH i2c: E2 0E 00 [12:58:32]MH_I2C_Read... [12:58:32]Read from MH i2c: E2 0E 00 56 AB 00 09 00 01 04 26 72 66 00 00 00 00 90 00 8C [12:58:32]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [12:58:32]wFMCommunicate OK [12:58:32]SAM_PROTO_GetShiftState done [12:58:32]FM_GetShiftState done [12:58:32]opened in 1718756868 [12:58:32]opened+sec_in_day 1718843268 [12:58:32]quantity*price = 300061 [12:58:32]sum+1 = 300063 [12:58:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.62 ИТОГО: 3000.00 Внесено: 3000.00 СДАЧА: 0.00 НСП 1% : 26.55 НДС 12% : 318.65 Наличными: 3000.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 106 19.06.2024 12:58 Смена: 353 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103676 ФПД: 101993482968978 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T125844&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103676&fm=101993482968978&tin=02508201610067®Number=0000000000092785&sum=300000 [12:58:33]StoreToDocumentArchive [12:58:33]shift 353 fd 103676 [12:58:33]save to /storage/0353/doc_00103676 [12:58:33]save last doc name /storage/0353/doc_00103676 to /storage/kkm_last_doc_name [12:58:33]save OK [12:58:33]Clear old archive folders... [12:58:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:58:33]tlvbuf is B6F98280 [12:58:33]SAM_PROTO_ClearQueue [12:58:33]wFMCommunicate request_size=4 [12:58:33]MH_SAM_APDU [12:58:33]CAPDU: 80 09 00 00 [12:58:33]Write to MH i2c: E2 08 00 63 AB 80 09 00 00 00 00 00 00 80 [12:58:33]Write i2c OK [12:58:33]MH_I2C_Read... [12:58:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:58:33]Read from MH i2c: E2 [12:58:33]MH_I2C_Read... [12:58:33]Read from MH i2c: E2 03 00 [12:58:33]MH_I2C_Read... [12:58:33]Read from MH i2c: E2 03 00 63 AB 00 90 00 82 [12:58:33]RAPDU: 90 00 [12:58:33]wFMCommunicate OK [12:58:33]SAM_PROTO_ClearQueue done [12:58:33]KKMCreateOFDPacket [12:58:33]OFDProtocolAddRootSTLVToBuf [12:58:33]FM_MakeSignedData [12:58:33]FM_MakeSignedData [12:58:33]SAM_PROTO_SignData [12:58:33]wFMCommunicate request_size=4 [12:58:33]MH_SAM_APDU [12:58:33]CAPDU: 80 0D 01 02 [12:58:33]Write to MH i2c: E2 08 00 64 AB 80 0D 01 02 00 00 00 00 88 [12:58:33]Write i2c OK [12:58:33]MH_I2C_Read... [12:58:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:58:33]Read from MH i2c: E2 [12:58:33]MH_I2C_Read... [12:58:33]Read from MH i2c: E2 03 00 [12:58:33]MH_I2C_Read... [12:58:33]Read from MH i2c: E2 03 00 64 AB 00 90 00 83 [12:58:33]RAPDU: 90 00 [12:58:33]wFMCommunicate OK [12:58:33]wFMCommunicate request_size=255 [12:58:33]MH_SAM_APDU [12:58:33]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 86 B0 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 1E 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 04 D6 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 FC 94 01 00 35 04 06 00 5C [12:58:33]Write to MH i2c: E2 02 01 65 AB 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 B0 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 1E 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 04 D6 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 FC 94 01 00 35 04 06 00 5C 00 00 44 [12:58:33]Write i2c OK [12:58:33]MH_I2C_Read... [12:58:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:58:33]Read from MH i2c: E2 [12:58:33]MH_I2C_Read... [12:58:33]Read from MH i2c: E2 03 00 [12:58:33]MH_I2C_Read... [12:58:33]Read from MH i2c: E2 03 00 65 AB 00 90 00 84 [12:58:33]RAPDU: 90 00 [12:58:33]wFMCommunicate OK [12:58:33]wFMCommunicate request_size=10 [12:58:33]MH_SAM_APDU [12:58:33]CAPDU: 80 0D 02 02 05 C3 35 52 5F 92 [12:58:33]Write to MH i2c: E2 0D 00 66 AB 80 0D 02 02 05 00 C3 35 52 5F 92 00 00 D0 [12:58:33]Write i2c OK [12:58:33]MH_I2C_Read... [12:58:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:58:33]Read from MH i2c: E2 [12:58:33]MH_I2C_Read... [12:58:33]Read from MH i2c: E2 03 00 [12:58:33]MH_I2C_Read... [12:58:33]Read from MH i2c: E2 03 00 66 AB 00 90 00 85 [12:58:33]RAPDU: 90 00 [12:58:33]wFMCommunicate OK [12:58:33]wFMCommunicate request_size=4 [12:58:33]MH_SAM_APDU [12:58:33]CAPDU: 80 0D 03 02 [12:58:33]Write to MH i2c: E2 08 00 67 AB 80 0D 03 02 00 00 00 00 8D [12:58:33]Write i2c OK [12:58:33]MH_I2C_Read... [12:58:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:58:33]Read from MH i2c: E2 [12:58:33]MH_I2C_Read... [12:58:33]Read from MH i2c: E2 0B 00 [12:58:33]MH_I2C_Read... [12:58:33]Read from MH i2c: E2 0B 00 67 AB 00 C7 33 58 75 82 D8 FA 44 90 00 ED [12:58:33]RAPDU: C7 33 58 75 82 D8 FA 44 90 00 [12:58:33]wFMCommunicate OK [12:58:33]SAM_PROTO_SignData done [12:58:33]FM_MakeSignedData done [12:58:33]CreateOFDProtocolMessage [12:58:33]wFMCommunicate request_size=4 [12:58:33]MH_SAM_APDU [12:58:33]CAPDU: 80 11 00 00 [12:58:33]Write to MH i2c: E2 08 00 68 AB 80 11 00 00 00 00 00 00 8D [12:58:34]Write i2c OK [12:58:34]MH_I2C_Read... [12:58:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:58:34]Read from MH i2c: E2 [12:58:34]MH_I2C_Read... [12:58:34]Read from MH i2c: E2 17 00 [12:58:34]MH_I2C_Read... [12:58:34]Read from MH i2c: E2 17 00 68 AB 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 E0 [12:58:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [12:58:34]wFMCommunicate OK [12:58:34]CreateOFDProtocolMessage done [12:58:34]OFDSenderStorePacket 103676 [12:58:34]StoreOFDPacket docnum=103676 [12:58:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 9E DA 07 01 38 09 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 86 B0 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 1E 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 04 D6 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 FC 94 01 00 35 04 06 00 5C C3 35 52 5F 92 C7 33 58 75 82 D8 FA 44 [12:58:34]CheckFolder [12:58:34]dirname=/storage/ofd_packets [12:58:34]CheckFolder done [12:58:34]ProducePacketName [12:58:34]name=ofd_packets/00103676 [12:58:34]NVStorageSaveData ofd_packets/00103676 [12:58:34]File name is /storage/ofd_packets/00103676 [12:58:34]Write 301 bytes [12:58:34]NVStorageSaveData done [12:58:34]OFDSenderStorePacket done [12:58:34]KKMCreateOFDPacket done [12:58:34]NVStorageSaveData kkm_last_timestamp [12:58:34]File name is /storage/kkm_last_timestamp [12:58:34]Write 4 bytes [12:58:34]NVStorageSaveData done [12:58:34]ExternCall_PrintAddStr [12:58:34]wPrintStart [12:58:34]Write to MH i2c: 01 00 00 69 AB 14 [12:58:34]Write i2c OK [12:58:34]MH_I2C_Read... [12:58:34]Read from MH i2c: 01 [12:58:34]MH_I2C_Read... [12:58:34]Read from MH i2c: 01 07 00 [12:58:34]MH_I2C_Read... [12:58:34]Read from MH i2c: 01 07 00 69 AB 00 00 00 00 00 FF 0F 29 [12:58:34]RasterBufferAndPrint [12:58:34]line Счет N : (1)672928 [12:58:34]line ИНН: 02508201610067 [12:58:34]line Контрольно-Кассовый Чек [12:58:34]line ПРОДАЖА [12:58:34]line ТРК (МРК, ГНК) : 32 [12:58:34]line Товар: 2710124130 [12:58:34]line Аи-92-К-5 [12:58:34]line 45.190 * 66.40 [12:58:34]line = 3000.62 [12:58:34]line НДС 12% НСП 1% [12:58:34]line > о реализуемом товаре [12:58:34]line ОКРУГЛЕНИЕ: -0.62 [12:58:34]line ИТОГО: 3000.00 [12:58:34]line Внесено: 3000.00 [12:58:34]line СДАЧА: 0.00 [12:58:34]line НСП 1% : 26.55 [12:58:34]line НДС 12% : 318.65 [12:58:34]line Наличными: 3000.00 [12:58:34]line Безнал.: 0.00 [12:58:34]line Место: АЗС № 120 "Партнер Нефть" [12:58:34]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [12:58:34]line СНО: Общий режим [12:58:34]line Чек 106 19.06.2024 12:58 [12:58:34]line Смена: 353 ФФД: 1.0 [12:58:34]line ЗНМ: 0300000164 [12:58:34]line РНМ: 0000000000092785 [12:58:34]line Версия ККМ: 001 [12:58:34]line ФМ: 0000000000875093 [12:58:34]line ФД: 103676 [12:58:34]line ФПД: 101993482968978 [12:58:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T125844&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103676&fm=101993482968978&tin=02508201610067®Number=0000000000092785&sum=300000 [12:58:34]OFD Sender: Processing packet 103676 [packets to send 17, broken 16] [12:58:34]ProducePacketName [12:58:34]name=ofd_packets/00103676 [12:58:34]OFD Sender: To server: pG, [12:58:34]CommunicateWithHost lk.salyk.kg:30040 [12:58:34]ConnectInit lk.salyk.kg [12:58:34]written 0, free lines is 4095 [12:58:34]Connected sock=10 [12:58: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 39 33 0F 01 00 00 9E DA 07 01 38 09 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 86 B0 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 1E 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 04 D6 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 FC 94 01 00 35 04 06 00 5C C3 35 52 5F 92 C7 33 58 75 82 D8 FA 44 [12:58: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 39 33 4F 00 00 00 84 9F 47 00 B2 A0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 FC 94 01 00 F4 03 04 00 8D 7C 72 66 B6 04 01 00 00 02 EB 9F DE B2 46 04 27 [12:58:34]CommunicateWithHost err = 0 [12:58:34]CheckOFDResponse [12:58:34]1017 (14) - 77093643461234 [12:58:34]1041 (16) - 0000000000875093 [12:58:34]1040 (4) - 103676 [12:58:34]1012 (4) - 19.06.2024 06:37 [12:58:34]1206 (1) - 0 [12:58:34]OFD Sender: Remove packet 103676 [12:58:34]ProducePacketName [12:58:34]name=ofd_packets/00103676 [12:58:34]NVStorageDeleteData [12:58:34]Write to MH i2c: 01 00 00 94 AB 3F [12:58:34]Write i2c OK [12:58:34]MH_I2C_Read... [12:58:34]Read from MH i2c: 01 [12:58:34]MH_I2C_Read... [12:58:34]Read from MH i2c: 01 07 00 [12:58:34]MH_I2C_Read... [12:58:34]Read from MH i2c: 01 07 00 94 AB 00 00 00 00 00 FA 0C 4C [12:58:34]RasterBufferAndPrint [12:58:34]line [12:58:34]line [12:58:34]line [12:58:34]line [12:58:34]line [12:58:34]written 0, free lines is 3329 [12:58:34]MH_Cut [12:58:34]Write to MH i2c: D1 01 00 9B AB 01 18 [12:58:34]Write i2c OK [12:58:34]MH_I2C_Read... [12:58:34]Read from MH i2c: D1 [12:58:34]MH_I2C_Read... [12:58:34]Read from MH i2c: D1 01 00 [12:58:34]MH_I2C_Read... [12:58:34]Read from MH i2c: D1 01 00 9B AB 00 17 [12:58:34]Write to MH i2c: 01 00 00 9C AB 47 [12:58:34]Write i2c OK [12:58:34]MH_I2C_Read... [12:58:35]OFD Sender: No OFD packet to send [12:58:35]*** Cut start [12:58:35]*** Partial cut [12:58:35]*** CUTSNS_PIN = 1 [12:58:35]*** CUTSNS_PIN = 0 [12:58:35]*** Brake cut motor [12:58:36]Read from MH i2c: 01 [12:58:36]MH_I2C_Read... [12:58:36]*** Stop cut motor [12:58:36]*** Cut end [12:58:36]Read from MH i2c: 01 07 00 [12:58:36]MH_I2C_Read... [12:58:36]Read from MH i2c: 01 07 00 9C AB 00 00 00 00 00 FF 0F 5C [12:58:36]process_action close_receipt done [12:58:36]requested_data is exist [12:58:36]produce_requested_data [12:58:36]requested_item fm.sn is exist - process it [12:58:36]wFMCommunicate request_size=4 [12:58:36]MH_SAM_APDU [12:58:36]CAPDU: 80 11 00 00 [12:58:36]Write to MH i2c: E2 08 00 9D AB 80 11 00 00 00 00 00 00 C2 [12:58:36]Write i2c OK [12:58:36]MH_I2C_Read... [12:58:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:58:36]Read from MH i2c: E2 [12:58:36]MH_I2C_Read... [12:58:36]Read from MH i2c: E2 17 00 [12:58:36]MH_I2C_Read... [12:58:36]Read from MH i2c: E2 17 00 9D AB 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 15 [12:58:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [12:58:36]wFMCommunicate OK [12:58:36]requested_item fd.num is exist - process it [12:58:36]SAM_PROTO_GetFieldsCounters [12:58:36]wFMCommunicate request_size=4 [12:58:36]MH_SAM_APDU [12:58:36]CAPDU: 80 13 00 00 [12:58:36]Write to MH i2c: E2 08 00 9E AB 80 13 00 00 00 00 00 00 C5 [12:58:36]Write i2c OK [12:58:36]MH_I2C_Read... [12:58:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:58:36]Read from MH i2c: E2 [12:58:36]MH_I2C_Read... [12:58:36]Read from MH i2c: E2 62 00 [12:58:36]MH_I2C_Read... [12:58:36]Read from MH i2c: E2 62 00 9E AB 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 FC 94 01 00 0E 04 04 00 61 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 1D [12:58: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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 FC 94 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 6A 00 00 00 5E 04 04 00 6A 00 00 00 57 04 04 00 6B 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:58:36]wFMCommunicate OK [12:58:36]SAM_PROTO_GetFieldsCounters done [12:58:36]requested_item shift.num is exist - process it [12:58:36]requested_item shift.opened is exist - process it [12:58:36]req_shift_opened [12:58:36]FM_GetShiftState [12:58:36]SAM_PROTO_GetShiftState [12:58:36]wFMCommunicate request_size=4 [12:58:36]MH_SAM_APDU [12:58:36]CAPDU: 80 13 01 00 [12:58:36]Write to MH i2c: E2 08 00 9F AB 80 13 01 00 00 00 00 00 C7 [12:58:36]Write i2c OK [12:58:36]MH_I2C_Read... [12:58:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:58:36]Read from MH i2c: E2 [12:58:36]MH_I2C_Read... [12:58:36]Read from MH i2c: E2 0E 00 [12:58:36]MH_I2C_Read... [12:58:36]Read from MH i2c: E2 0E 00 9F AB 00 09 00 01 04 26 72 66 00 00 00 00 90 00 D5 [12:58:36]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [12:58:36]wFMCommunicate OK [12:58:36]SAM_PROTO_GetShiftState done [12:58:36]FM_GetShiftState done [12:58:36]req_shift_opened done [12:58:36]requested_item shift.open_date is exist - process it [12:58:36]req_shift_open_date [12:58:36]req_shift_open_date done [12:58:36]produce_requested_data done [12:58:36]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103676,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [12:58:36]process_action_free close_receipt [12:58:36]json_value_free [12:58:36]json_value_free done [12:58:36]process_json_proto returns [12:58:36]Send response to host [12:58:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103676,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [12:58:36]free response buf [12:58:36]execute_script done [12:58:36]execute_script returns [12:58:36]free content buf [12:58:36]Sock 9.Close socket [12:58:36]Sock 9.Thread stoped [12:58:40]OFD Sender: No OFD packet to send [12:58:45]OFD Sender: No OFD packet to send [12:58:50]OFD Sender: No OFD packet to send [12:58:55]OFD Sender: No OFD packet to send [12:59:00]OFD Sender: No OFD packet to send [12:59:05]OFD Sender: No OFD packet to send [12:59:10]OFD Sender: No OFD packet to send [12:59:15]OFD Sender: No OFD packet to send [12:59:20]OFD Sender: No OFD packet to send [12:59:25]OFD Sender: No OFD packet to send [12:59:30]OFD Sender: No OFD packet to send [12:59:35]OFD Sender: No OFD packet to send [12:59:40]OFD Sender: No OFD packet to send [12:59:45]OFD Sender: No OFD packet to send [12:59:50]OFD Sender: No OFD packet to send [12:59:55]OFD Sender: No OFD packet to send [13:00:00]OFD Sender: No OFD packet to send [13:00:05]OFD Sender: No OFD packet to send [13:00:10]OFD Sender: No OFD packet to send [13:00:15]OFD Sender: No OFD packet to send [13:00:20]OFD Sender: No OFD packet to send [13:00:25]OFD Sender: No OFD packet to send [13:00:30]OFD Sender: No OFD packet to send [13:00:35]OFD Sender: No OFD packet to send [13:00:40]OFD Sender: No OFD packet to send [13:00:45]OFD Sender: No OFD packet to send [13:00:50]OFD Sender: No OFD packet to send [13:00:55]OFD Sender: No OFD packet to send [13:01:00]OFD Sender: No OFD packet to send [13:01:05]OFD Sender: No OFD packet to send [13:01:10]OFD Sender: No OFD packet to send [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:30]OFD Sender: No OFD packet to send [13:01:35]OFD Sender: No OFD packet to send [13:01:40]OFD Sender: No OFD packet to send [13:01:45]OFD Sender: No OFD packet to send [13:01:50]OFD Sender: No OFD packet to send [13:01:55]OFD Sender: No OFD packet to send [13:02:00]OFD Sender: No OFD packet to send [13:02:05]OFD Sender: No OFD packet to send [13:02:10]OFD Sender: No OFD packet to send [13:02:15]OFD Sender: No OFD packet to send [13:02:20]OFD Sender: No OFD packet to send [13:02:25]OFD Sender: No OFD packet to send [13:02:30]OFD Sender: No OFD packet to send [13:02:35]OFD Sender: No OFD packet to send [13:02:40]OFD Sender: No OFD packet to send [13:02:45]OFD Sender: No OFD packet to send [13:02:50]OFD Sender: No OFD packet to send [13:02:55]OFD Sender: No OFD packet to send [13:03:00]OFD Sender: No OFD packet to send [13:03:05]OFD Sender: No OFD packet to send [13:03:10]OFD Sender: No OFD packet to send [13:03:15]OFD Sender: No OFD packet to send [13:03:20]OFD Sender: No OFD packet to send [13:03:25]OFD Sender: No OFD packet to send [13:03:30]OFD Sender: No OFD packet to send [13:03:35]OFD Sender: No OFD packet to send [13:03:35]accept exits with 7 [13:03:35]New connection [13:03:35]New thread 3067084132 created [13:03:35]Thread 3067227492 joined [13:03:35]Waiting for new connection... [13:03:35] Sock 7.Parse request [13:03:35]Sock 7.Check first char [13:03:35]Sock 7.First char is OK [13:03:35]request: POST /json_proto HTTP/1.0 [13:03:35]Method: POST [13:03:35]URL: /json_proto [13:03:35]Method is POST - this is cgi request [13:03:35]url: /json_proto [13:03:35]query_string will be loaded in cgi processing [13:03:35]execute_cgi json_proto POST (null) [13:03:35]execute_cgi path=json_proto method=POST [13:03:35]POST find Content-Length [13:03:35]Host: 172.17.38.133:8080 [13:03:35]Content-Length: 677 [13:03:35]Content-Type: application/json [13:03:35] [13:03:35]POST finish read [13:03:35]Found Content-Length = 677 [13:03:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672931", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:03:35]execute_script... [13:03:35]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672931", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:03:35]POST & json_proto [13:03:35]process_json_proto [13:03:35]json parsed OK: [13:03:35]protocol is kg_v1.0 [13:03:35]action value=close_receipt [13:03:35]process_action close_receipt [13:03:35]cmd_close_receipt [13:03:35]MH_GetDate [13:03:35]Write to MH i2c: F0 00 00 A0 AB 3A [13:03:35]Write i2c OK [13:03:35]MH_I2C_Read... [13:03:35]Read from MH i2c: F0 [13:03:35]MH_I2C_Read... [13:03:35]Read from MH i2c: F0 09 00 [13:03:35]MH_I2C_Read... [13:03:35]Read from MH i2c: F0 09 00 A0 AB 00 34 D7 72 66 BD 8F 7C 64 52 [13:03:35]GetLastDocTimeStamp 1718801924 [13:03:35]current date 1718802228 [13:03:35]FM_GetShiftState [13:03:35]SAM_PROTO_GetShiftState [13:03:35]wFMCommunicate request_size=4 [13:03:35]MH_SAM_APDU [13:03:35]CAPDU: 80 13 01 00 [13:03:35]Write to MH i2c: E2 08 00 A1 AB 80 13 01 00 00 00 00 00 C9 [13:03:35]Write i2c OK [13:03:35]MH_I2C_Read... [13:03:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:03:35]Read from MH i2c: E2 [13:03:35]MH_I2C_Read... [13:03:35]Read from MH i2c: E2 0E 00 [13:03:35]MH_I2C_Read... [13:03:35]Read from MH i2c: E2 0E 00 A1 AB 00 09 00 01 04 26 72 66 00 00 00 00 90 00 D7 [13:03:35]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [13:03:35]wFMCommunicate OK [13:03:35]SAM_PROTO_GetShiftState done [13:03:35]FM_GetShiftState done [13:03:35]opened in 1718756868 [13:03:35]opened+sec_in_day 1718843268 [13:03:35]quantity*price = 50065 [13:03:35]sum+1 = 50067 [13:03:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.17 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 107 19.06.2024 13:03 Смена: 353 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103677 ФПД: 116008983942346 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T130348&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103677&fm=116008983942346&tin=02508201610067®Number=0000000000092785&sum=50000 [13:03:36]StoreToDocumentArchive [13:03:36]shift 353 fd 103677 [13:03:36]save to /storage/0353/doc_00103677 [13:03:36]save last doc name /storage/0353/doc_00103677 to /storage/kkm_last_doc_name [13:03:36]save OK [13:03:36]Clear old archive folders... [13:03:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:03:36]tlvbuf is 013EBAC0 [13:03:36]SAM_PROTO_ClearQueue [13:03:36]wFMCommunicate request_size=4 [13:03:36]MH_SAM_APDU [13:03:36]CAPDU: 80 09 00 00 [13:03:36]Write to MH i2c: E2 08 00 AE AB 80 09 00 00 00 00 00 00 CB [13:03:36]Write i2c OK [13:03:36]MH_I2C_Read... [13:03:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:03:36]Read from MH i2c: E2 [13:03:36]MH_I2C_Read... [13:03:36]Read from MH i2c: E2 03 00 [13:03:36]MH_I2C_Read... [13:03:36]Read from MH i2c: E2 03 00 AE AB 00 90 00 CD [13:03:36]RAPDU: 90 00 [13:03:36]wFMCommunicate OK [13:03:36]SAM_PROTO_ClearQueue done [13:03:36]KKMCreateOFDPacket [13:03:36]OFDProtocolAddRootSTLVToBuf [13:03:36]FM_MakeSignedData [13:03:36]FM_MakeSignedData [13:03:36]SAM_PROTO_SignData [13:03:36]wFMCommunicate request_size=4 [13:03:36]MH_SAM_APDU [13:03:36]CAPDU: 80 0D 01 02 [13:03:36]Write to MH i2c: E2 08 00 AF AB 80 0D 01 02 00 00 00 00 D3 [13:03:36]Write i2c OK [13:03:36]MH_I2C_Read... [13:03:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:03:36]Read from MH i2c: E2 [13:03:36]MH_I2C_Read... [13:03:36]Read from MH i2c: E2 03 00 [13:03:36]MH_I2C_Read... [13:03:36]Read from MH i2c: E2 03 00 AF AB 00 90 00 CE [13:03:36]RAPDU: 90 00 [13:03:36]wFMCommunicate OK [13:03:36]wFMCommunicate request_size=255 [13:03:36]MH_SAM_APDU [13:03:36]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 34 D7 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 FD 94 01 00 35 04 06 00 69 [13:03:36]Write to MH i2c: E2 02 01 B0 AB 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 34 D7 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 FD 94 01 00 35 04 06 00 69 00 00 38 [13:03:36]Write i2c OK [13:03:36]MH_I2C_Read... [13:03:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:03:37]Read from MH i2c: E2 [13:03:37]MH_I2C_Read... [13:03:37]Read from MH i2c: E2 03 00 [13:03:37]MH_I2C_Read... [13:03:37]Read from MH i2c: E2 03 00 B0 AB 00 90 00 CF [13:03:37]RAPDU: 90 00 [13:03:37]wFMCommunicate OK [13:03:37]wFMCommunicate request_size=10 [13:03:37]MH_SAM_APDU [13:03:37]CAPDU: 80 0D 02 02 05 82 72 47 54 CA [13:03:37]Write to MH i2c: E2 0D 00 B1 AB 80 0D 02 02 05 00 82 72 47 54 CA 00 00 39 [13:03:37]Write i2c OK [13:03:37]MH_I2C_Read... [13:03:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:03:37]Read from MH i2c: E2 [13:03:37]MH_I2C_Read... [13:03:37]Read from MH i2c: E2 03 00 [13:03:37]MH_I2C_Read... [13:03:37]Read from MH i2c: E2 03 00 B1 AB 00 90 00 D0 [13:03:37]RAPDU: 90 00 [13:03:37]wFMCommunicate OK [13:03:37]wFMCommunicate request_size=4 [13:03:37]MH_SAM_APDU [13:03:37]CAPDU: 80 0D 03 02 [13:03:37]Write to MH i2c: E2 08 00 B2 AB 80 0D 03 02 00 00 00 00 D8 [13:03:37]Write i2c OK [13:03:37]MH_I2C_Read... [13:03:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:03:37]Read from MH i2c: E2 [13:03:37]MH_I2C_Read... [13:03:37]Read from MH i2c: E2 0B 00 [13:03:37]MH_I2C_Read... [13:03:37]Read from MH i2c: E2 0B 00 B2 AB 00 D7 FE 83 46 45 9C DD 13 90 00 48 [13:03:37]RAPDU: D7 FE 83 46 45 9C DD 13 90 00 [13:03:37]wFMCommunicate OK [13:03:37]SAM_PROTO_SignData done [13:03:37]FM_MakeSignedData done [13:03:37]CreateOFDProtocolMessage [13:03:37]wFMCommunicate request_size=4 [13:03:37]MH_SAM_APDU [13:03:37]CAPDU: 80 11 00 00 [13:03:37]Write to MH i2c: E2 08 00 B3 AB 80 11 00 00 00 00 00 00 D8 [13:03:37]Write i2c OK [13:03:37]MH_I2C_Read... [13:03:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:03:37]Read from MH i2c: E2 [13:03:37]MH_I2C_Read... [13:03:37]Read from MH i2c: E2 17 00 [13:03:37]MH_I2C_Read... [13:03:37]Read from MH i2c: E2 17 00 B3 AB 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 2B [13:03:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [13:03:37]wFMCommunicate OK [13:03:37]CreateOFDProtocolMessage done [13:03:37]OFDSenderStorePacket 103677 [13:03:37]StoreOFDPacket docnum=103677 [13:03:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 3E 86 07 01 2A C3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 34 D7 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 FD 94 01 00 35 04 06 00 69 82 72 47 54 CA D7 FE 83 46 45 9C DD 13 [13:03:37]CheckFolder [13:03:37]dirname=/storage/ofd_packets [13:03:37]CheckFolder done [13:03:37]ProducePacketName [13:03:37]name=ofd_packets/00103677 [13:03:37]NVStorageSaveData ofd_packets/00103677 [13:03:37]File name is /storage/ofd_packets/00103677 [13:03:37]Write 301 bytes [13:03:37]NVStorageSaveData done [13:03:37]OFDSenderStorePacket done [13:03:37]KKMCreateOFDPacket done [13:03:37]NVStorageSaveData kkm_last_timestamp [13:03:37]File name is /storage/kkm_last_timestamp [13:03:37]Write 4 bytes [13:03:37]NVStorageSaveData done [13:03:37]ExternCall_PrintAddStr [13:03:37]wPrintStart [13:03:37]Write to MH i2c: 01 00 00 B4 AB 5F [13:03:37]Write i2c OK [13:03:37]MH_I2C_Read... [13:03:37]Read from MH i2c: 01 [13:03:37]MH_I2C_Read... [13:03:37]Read from MH i2c: 01 07 00 [13:03:37]MH_I2C_Read... [13:03:37]Read from MH i2c: 01 07 00 B4 AB 00 00 00 00 00 FF 0F 74 [13:03:37]RasterBufferAndPrint [13:03:37]line Счет N : (1)672931 [13:03:37]line ИНН: 02508201610067 [13:03:37]line Контрольно-Кассовый Чек [13:03:37]line ПРОДАЖА [13:03:37]line ТРК (МРК, ГНК) : 42 [13:03:37]line Товар: 2710124130 [13:03:37]line Аи-92-К-5 [13:03:37]line 7.540 * 66.40 [13:03:37]line = 500.66 [13:03:37]line НДС 12% НСП 1% [13:03:37]line > о реализуемом товаре [13:03:37]line ОКРУГЛЕНИЕ: -0.66 [13:03:37]line ИТОГО: 500.00 [13:03:37]line Внесено: 500.00 [13:03:37]line СДАЧА: 0.00 [13:03:37]line НСП 1% : 4.43 [13:03:37]line НДС 12% : 53.17 [13:03:37]line Наличными: 500.00 [13:03:37]line Безнал.: 0.00 [13:03:37]line Место: АЗС № 120 "Партнер Нефть" [13:03:37]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [13:03:37]line СНО: Общий режим [13:03:37]line Чек 107 19.06.2024 13:03 [13:03:37]line Смена: 353 ФФД: 1.0 [13:03:37]line ЗНМ: 0300000164 [13:03:37]line РНМ: 0000000000092785 [13:03:37]line Версия ККМ: 001 [13:03:37]line ФМ: 0000000000875093 [13:03:37]line ФД: 103677 [13:03:37]line ФПД: 116008983942346 [13:03:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T130348&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103677&fm=116008983942346&tin=02508201610067®Number=0000000000092785&sum=50000 [13:03:37]OFD Sender: Processing packet 103677 [packets to send 17, broken 16] [13:03:37]ProducePacketName [13:03:37]name=ofd_packets/00103677 [13:03:37]OFD Sender: To server: pG, [13:03:37]CommunicateWithHost lk.salyk.kg:30040 [13:03:37]ConnectInit lk.salyk.kg [13:03:37]written 0, free lines is 4095 [13:03:37]Connected sock=10 [13:03:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 3E 86 07 01 2A C3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 34 D7 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 FD 94 01 00 35 04 06 00 69 82 72 47 54 CA D7 FE 83 46 45 9C DD 13 [13:03:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 BF 02 47 00 39 1C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 FD 94 01 00 F4 03 04 00 BC 7D 72 66 B6 04 01 00 00 FF 27 51 70 50 17 B9 D7 [13:03:38]CommunicateWithHost err = 0 [13:03:38]CheckOFDResponse [13:03:38]1017 (14) - 77093643461234 [13:03:38]1041 (16) - 0000000000875093 [13:03:38]1040 (4) - 103677 [13:03:38]1012 (4) - 19.06.2024 06:42 [13:03:38]1206 (1) - 0 [13:03:38]OFD Sender: Remove packet 103677 [13:03:38]ProducePacketName [13:03:38]name=ofd_packets/00103677 [13:03:38]NVStorageDeleteData [13:03:38]Write to MH i2c: 01 00 00 DF AB 8A [13:03:38]Write i2c OK [13:03:38]MH_I2C_Read... [13:03:38]Read from MH i2c: 01 [13:03:38]MH_I2C_Read... [13:03:38]Read from MH i2c: 01 07 00 [13:03:38]MH_I2C_Read... [13:03:38]Read from MH i2c: 01 07 00 DF AB 00 00 00 00 00 F3 0C 90 [13:03:38]RasterBufferAndPrint [13:03:38]line [13:03:38]line [13:03:38]line [13:03:38]line [13:03:38]line [13:03:38]written 0, free lines is 3324 [13:03:38]MH_Cut [13:03:38]Write to MH i2c: D1 01 00 E6 AB 01 63 [13:03:38]Write i2c OK [13:03:38]MH_I2C_Read... [13:03:38]Read from MH i2c: D1 [13:03:38]MH_I2C_Read... [13:03:38]Read from MH i2c: D1 01 00 [13:03:38]MH_I2C_Read... [13:03:38]Read from MH i2c: D1 01 00 E6 AB 00 62 [13:03:38]Write to MH i2c: 01 00 00 E7 AB 92 [13:03:38]Write i2c OK [13:03:38]MH_I2C_Read... [13:03:38]OFD Sender: No OFD packet to send [13:03:38]*** Cut start [13:03:38]*** Partial cut [13:03:38]*** CUTSNS_PIN = 1 [13:03:38]*** CUTSNS_PIN = 0 [13:03:39]*** Brake cut motor [13:03:39]Read from MH i2c: 01 [13:03:39]MH_I2C_Read... [13:03:39]*** Stop cut motor [13:03:39]*** Cut end [13:03:39]Read from MH i2c: 01 07 00 [13:03:39]MH_I2C_Read... [13:03:39]Read from MH i2c: 01 07 00 E7 AB 00 00 00 00 00 FF 0F A7 [13:03:39]process_action close_receipt done [13:03:39]requested_data is exist [13:03:39]produce_requested_data [13:03:39]requested_item fm.sn is exist - process it [13:03:39]wFMCommunicate request_size=4 [13:03:39]MH_SAM_APDU [13:03:39]CAPDU: 80 11 00 00 [13:03:39]Write to MH i2c: E2 08 00 E8 AB 80 11 00 00 00 00 00 00 0D [13:03:39]Write i2c OK [13:03:39]MH_I2C_Read... [13:03:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:03:39]Read from MH i2c: E2 [13:03:39]MH_I2C_Read... [13:03:39]Read from MH i2c: E2 17 00 [13:03:39]MH_I2C_Read... [13:03:39]Read from MH i2c: E2 17 00 E8 AB 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 60 [13:03:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [13:03:39]wFMCommunicate OK [13:03:39]requested_item fd.num is exist - process it [13:03:39]SAM_PROTO_GetFieldsCounters [13:03:39]wFMCommunicate request_size=4 [13:03:39]MH_SAM_APDU [13:03:39]CAPDU: 80 13 00 00 [13:03:39]Write to MH i2c: E2 08 00 E9 AB 80 13 00 00 00 00 00 00 10 [13:03:39]Write i2c OK [13:03:39]MH_I2C_Read... [13:03:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:03:39]Read from MH i2c: E2 [13:03:39]MH_I2C_Read... [13:03:39]Read from MH i2c: E2 62 00 [13:03:39]MH_I2C_Read... [13:03:39]Read from MH i2c: E2 62 00 E9 AB 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 FD 94 01 00 0E 04 04 00 61 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 6C [13:03: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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 FD 94 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 6B 00 00 00 5E 04 04 00 6B 00 00 00 57 04 04 00 6C 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:03:39]wFMCommunicate OK [13:03:39]SAM_PROTO_GetFieldsCounters done [13:03:39]requested_item shift.num is exist - process it [13:03:39]requested_item shift.opened is exist - process it [13:03:39]req_shift_opened [13:03:39]FM_GetShiftState [13:03:39]SAM_PROTO_GetShiftState [13:03:39]wFMCommunicate request_size=4 [13:03:39]MH_SAM_APDU [13:03:39]CAPDU: 80 13 01 00 [13:03:39]Write to MH i2c: E2 08 00 EA AB 80 13 01 00 00 00 00 00 12 [13:03:39]Write i2c OK [13:03:39]MH_I2C_Read... [13:03:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:03:39]Read from MH i2c: E2 [13:03:39]MH_I2C_Read... [13:03:39]Read from MH i2c: E2 0E 00 [13:03:39]MH_I2C_Read... [13:03:39]Read from MH i2c: E2 0E 00 EA AB 00 09 00 01 04 26 72 66 00 00 00 00 90 00 20 [13:03:39]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [13:03:39]wFMCommunicate OK [13:03:39]SAM_PROTO_GetShiftState done [13:03:39]FM_GetShiftState done [13:03:39]req_shift_opened done [13:03:39]requested_item shift.open_date is exist - process it [13:03:39]req_shift_open_date [13:03:39]req_shift_open_date done [13:03:39]produce_requested_data done [13:03:39]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103677,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [13:03:39]process_action_free close_receipt [13:03:39]json_value_free [13:03:39]json_value_free done [13:03:39]process_json_proto returns [13:03:39]Send response to host [13:03:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103677,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [13:03:39]free response buf [13:03:39]execute_script done [13:03:39]execute_script returns [13:03:39]free content buf [13:03:39]Sock 7.Close socket [13:03:39]Sock 7.Thread stoped [13:03:43]OFD Sender: No OFD packet to send [13:03:48]OFD Sender: No OFD packet to send [13:03:53]OFD Sender: No OFD packet to send [13:03:58]OFD Sender: No OFD packet to send [13:04:03]OFD Sender: No OFD packet to send [13:04:08]OFD Sender: No OFD packet to send [13:04:11]accept exits with 9 [13:04:11]New connection [13:04:11]New thread 3067227492 created [13:04:11]Thread 3067084132 joined [13:04:11]Waiting for new connection... [13:04:11] Sock 9.Parse request [13:04:11]Sock 9.Check first char [13:04:11]Sock 9.First char is OK [13:04:11]request: POST /json_proto HTTP/1.0 [13:04:11]Method: POST [13:04:11]URL: /json_proto [13:04:11]Method is POST - this is cgi request [13:04:11]url: /json_proto [13:04:11]query_string will be loaded in cgi processing [13:04:11]execute_cgi json_proto POST (null) [13:04:11]execute_cgi path=json_proto method=POST [13:04:11]POST find Content-Length [13:04:11]Host: 172.17.38.133:8080 [13:04:11]Content-Length: 682 [13:04:11]Content-Type: application/json [13:04:11] [13:04:11]POST finish read [13:04:11]Found Content-Length = 682 [13:04:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672930", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 16.240, "sum" : 1200.14, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:04:11]execute_script... [13:04: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)672930", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 16.240, "sum" : 1200.14, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:04:11]POST & json_proto [13:04:11]process_json_proto [13:04:11]json parsed OK: [13:04:11]protocol is kg_v1.0 [13:04:11]action value=close_receipt [13:04:11]process_action close_receipt [13:04:11]cmd_close_receipt [13:04:11]MH_GetDate [13:04:11]Write to MH i2c: F0 00 00 EB AB 85 [13:04:11]Write i2c OK [13:04:11]MH_I2C_Read... [13:04:11]Read from MH i2c: F0 [13:04:11]MH_I2C_Read... [13:04:11]Read from MH i2c: F0 09 00 [13:04:11]MH_I2C_Read... [13:04:11]Read from MH i2c: F0 09 00 EB AB 00 57 D7 72 66 BD 8F 7C 64 C0 [13:04:11]GetLastDocTimeStamp 1718802228 [13:04:11]current date 1718802263 [13:04:11]FM_GetShiftState [13:04:11]SAM_PROTO_GetShiftState [13:04:11]wFMCommunicate request_size=4 [13:04:11]MH_SAM_APDU [13:04:11]CAPDU: 80 13 01 00 [13:04:11]Write to MH i2c: E2 08 00 EC AB 80 13 01 00 00 00 00 00 14 [13:04:11]Write i2c OK [13:04:11]MH_I2C_Read... [13:04:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:04:11]Read from MH i2c: E2 [13:04:11]MH_I2C_Read... [13:04:11]Read from MH i2c: E2 0E 00 [13:04:11]MH_I2C_Read... [13:04:11]Read from MH i2c: E2 0E 00 EC AB 00 09 00 01 04 26 72 66 00 00 00 00 90 00 22 [13:04:11]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [13:04:11]wFMCommunicate OK [13:04:11]SAM_PROTO_GetShiftState done [13:04:11]FM_GetShiftState done [13:04:11]opened in 1718756868 [13:04:11]opened+sec_in_day 1718843268 [13:04:11]quantity*price = 120013 [13:04:11]sum+1 = 120015 [13:04:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.14 ИТОГО: 1200.00 Внесено: 1200.00 СДАЧА: 0.00 НСП 1% : 10.62 НДС 12% : 127.45 Наличными: 1200.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 108 19.06.2024 13:04 Смена: 353 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103678 ФПД: 84322280670553 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T130423&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103678&fm=84322280670553&tin=02508201610067®Number=0000000000092785&sum=120000 [13:04:12]StoreToDocumentArchive [13:04:12]shift 353 fd 103678 [13:04:12]save to /storage/0353/doc_00103678 [13:04:12]save last doc name /storage/0353/doc_00103678 to /storage/kkm_last_doc_name [13:04:12]save OK [13:04:12]Clear old archive folders... [13:04:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:04:12]tlvbuf is 014CBFC0 [13:04:12]SAM_PROTO_ClearQueue [13:04:12]wFMCommunicate request_size=4 [13:04:12]MH_SAM_APDU [13:04:12]CAPDU: 80 09 00 00 [13:04:12]Write to MH i2c: E2 08 00 F9 AB 80 09 00 00 00 00 00 00 16 [13:04:12]Write i2c OK [13:04:12]MH_I2C_Read... [13:04:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:04:12]Read from MH i2c: E2 [13:04:12]MH_I2C_Read... [13:04:12]Read from MH i2c: E2 03 00 [13:04:12]MH_I2C_Read... [13:04:12]Read from MH i2c: E2 03 00 F9 AB 00 90 00 18 [13:04:12]RAPDU: 90 00 [13:04:12]wFMCommunicate OK [13:04:12]SAM_PROTO_ClearQueue done [13:04:12]KKMCreateOFDPacket [13:04:12]OFDProtocolAddRootSTLVToBuf [13:04:12]FM_MakeSignedData [13:04:12]FM_MakeSignedData [13:04:12]SAM_PROTO_SignData [13:04:12]wFMCommunicate request_size=4 [13:04:12]MH_SAM_APDU [13:04:12]CAPDU: 80 0D 01 02 [13:04:12]Write to MH i2c: E2 08 00 FA AB 80 0D 01 02 00 00 00 00 1E [13:04:12]Write i2c OK [13:04:12]MH_I2C_Read... [13:04:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:04:12]Read from MH i2c: E2 [13:04:12]MH_I2C_Read... [13:04:12]Read from MH i2c: E2 03 00 [13:04:12]MH_I2C_Read... [13:04:12]Read from MH i2c: E2 03 00 FA AB 00 90 00 19 [13:04:12]RAPDU: 90 00 [13:04:12]wFMCommunicate OK [13:04:12]wFMCommunicate request_size=255 [13:04:12]MH_SAM_APDU [13:04: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 70 3F 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 CE D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 57 D7 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 FE 94 01 00 35 04 06 00 4C [13:04:12]Write to MH i2c: E2 02 01 FB AB 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 70 3F 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 CE D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 57 D7 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 FE 94 01 00 35 04 06 00 4C 00 00 7F [13:04:12]Write i2c OK [13:04:12]MH_I2C_Read... [13:04:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:04:12]Read from MH i2c: E2 [13:04:12]MH_I2C_Read... [13:04:12]Read from MH i2c: E2 03 00 [13:04:12]MH_I2C_Read... [13:04:12]Read from MH i2c: E2 03 00 FB AB 00 90 00 1A [13:04:12]RAPDU: 90 00 [13:04:12]wFMCommunicate OK [13:04:12]wFMCommunicate request_size=10 [13:04:12]MH_SAM_APDU [13:04:12]CAPDU: 80 0D 02 02 05 B0 CF 96 05 59 [13:04:12]Write to MH i2c: E2 0D 00 FC AB 80 0D 02 02 05 00 B0 CF 96 05 59 00 00 9E [13:04:12]Write i2c OK [13:04:12]MH_I2C_Read... [13:04:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:04:12]Read from MH i2c: E2 [13:04:12]MH_I2C_Read... [13:04:12]Read from MH i2c: E2 03 00 [13:04:12]MH_I2C_Read... [13:04:12]Read from MH i2c: E2 03 00 FC AB 00 90 00 1B [13:04:12]RAPDU: 90 00 [13:04:12]wFMCommunicate OK [13:04:12]wFMCommunicate request_size=4 [13:04:12]MH_SAM_APDU [13:04:12]CAPDU: 80 0D 03 02 [13:04:12]Write to MH i2c: E2 08 00 FD AB 80 0D 03 02 00 00 00 00 23 [13:04:12]Write i2c OK [13:04:12]MH_I2C_Read... [13:04:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:04:12]Read from MH i2c: E2 [13:04:12]MH_I2C_Read... [13:04:12]Read from MH i2c: E2 0B 00 [13:04:12]MH_I2C_Read... [13:04:12]Read from MH i2c: E2 0B 00 FD AB 00 28 1E 9E 67 9A 6D 4E 33 90 00 F7 [13:04:12]RAPDU: 28 1E 9E 67 9A 6D 4E 33 90 00 [13:04:12]wFMCommunicate OK [13:04:12]SAM_PROTO_SignData done [13:04:12]FM_MakeSignedData done [13:04:12]CreateOFDProtocolMessage [13:04:12]wFMCommunicate request_size=4 [13:04:12]MH_SAM_APDU [13:04:12]CAPDU: 80 11 00 00 [13:04:12]Write to MH i2c: E2 08 00 FE AB 80 11 00 00 00 00 00 00 23 [13:04:12]Write i2c OK [13:04:12]MH_I2C_Read... [13:04:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:04:12]Read from MH i2c: E2 [13:04:12]MH_I2C_Read... [13:04:12]Read from MH i2c: E2 17 00 [13:04:12]MH_I2C_Read... [13:04:12]Read from MH i2c: E2 17 00 FE AB 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 76 [13:04:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [13:04:12]wFMCommunicate OK [13:04:12]CreateOFDProtocolMessage done [13:04:12]OFDSenderStorePacket 103678 [13:04:12]StoreOFDPacket docnum=103678 [13:04:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 C3 FA 07 01 BF C5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 70 3F 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 CE D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 57 D7 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 FE 94 01 00 35 04 06 00 4C B0 CF 96 05 59 28 1E 9E 67 9A 6D 4E 33 [13:04:12]CheckFolder [13:04:12]dirname=/storage/ofd_packets [13:04:12]CheckFolder done [13:04:12]ProducePacketName [13:04:12]name=ofd_packets/00103678 [13:04:12]NVStorageSaveData ofd_packets/00103678 [13:04:12]File name is /storage/ofd_packets/00103678 [13:04:12]Write 301 bytes [13:04:12]NVStorageSaveData done [13:04:12]OFDSenderStorePacket done [13:04:12]KKMCreateOFDPacket done [13:04:12]NVStorageSaveData kkm_last_timestamp [13:04:12]File name is /storage/kkm_last_timestamp [13:04:12]Write 4 bytes [13:04:12]NVStorageSaveData done [13:04:12]ExternCall_PrintAddStr [13:04:12]wPrintStart [13:04:12]Write to MH i2c: 01 00 00 FF AB AA [13:04:12]Write i2c OK [13:04:12]MH_I2C_Read... [13:04:12]Read from MH i2c: 01 [13:04:12]MH_I2C_Read... [13:04:12]Read from MH i2c: 01 07 00 [13:04:12]MH_I2C_Read... [13:04:12]Read from MH i2c: 01 07 00 FF AB 00 00 00 00 00 FF 0F BF [13:04:12]RasterBufferAndPrint [13:04:12]line Счет N : (1)672930 [13:04:12]line ИНН: 02508201610067 [13:04:12]line Контрольно-Кассовый Чек [13:04:12]line ПРОДАЖА [13:04:12]line ТРК (МРК, ГНК) : 31 [13:04:12]line Товар: 2710124500 [13:04:12]line Аи-95-К-5 [13:04:12]line 16.240 * 73.90 [13:04:12]line = 1200.14 [13:04:12]line НДС 12% НСП 1% [13:04:12]line > о реализуемом товаре [13:04:12]line ОКРУГЛЕНИЕ: -0.14 [13:04:12]line ИТОГО: 1200.00 [13:04:12]line Внесено: 1200.00 [13:04:12]line СДАЧА: 0.00 [13:04:12]line НСП 1% : 10.62 [13:04:12]line НДС 12% : 127.45 [13:04:12]line Наличными: 1200.00 [13:04:12]line Безнал.: 0.00 [13:04:12]line Место: АЗС № 120 "Партнер Нефть" [13:04:12]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [13:04:12]line СНО: Общий режим [13:04:12]line Чек 108 19.06.2024 13:04 [13:04:12]line Смена: 353 ФФД: 1.0 [13:04:12]line ЗНМ: 0300000164 [13:04:12]line РНМ: 0000000000092785 [13:04:12]line Версия ККМ: 001 [13:04:12]line ФМ: 0000000000875093 [13:04:12]line ФД: 103678 [13:04:12]line ФПД: 84322280670553 [13:04:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T130423&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103678&fm=84322280670553&tin=02508201610067®Number=0000000000092785&sum=120000 [13:04:13]OFD Sender: Processing packet 103678 [packets to send 17, broken 16] [13:04:13]ProducePacketName [13:04:13]name=ofd_packets/00103678 [13:04:13]OFD Sender: To server: pG, [13:04:13]CommunicateWithHost lk.salyk.kg:30040 [13:04:13]ConnectInit lk.salyk.kg [13:04:13]written 0, free lines is 4095 [13:04:13]Connected sock=10 [13:04: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 39 33 0F 01 00 00 C3 FA 07 01 BF C5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 70 3F 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 CE D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 57 D7 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 FE 94 01 00 35 04 06 00 4C B0 CF 96 05 59 28 1E 9E 67 9A 6D 4E 33 [13:04: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 39 33 4F 00 00 00 B8 36 47 00 31 C3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 FE 94 01 00 F4 03 04 00 E0 7D 72 66 B6 04 01 00 00 19 11 06 71 71 5E 61 EB [13:04:13]CommunicateWithHost err = 0 [13:04:13]CheckOFDResponse [13:04:13]1017 (14) - 77093643461234 [13:04:13]1041 (16) - 0000000000875093 [13:04:13]1040 (4) - 103678 [13:04:13]1012 (4) - 19.06.2024 06:42 [13:04:13]1206 (1) - 0 [13:04:13]OFD Sender: Remove packet 103678 [13:04:13]ProducePacketName [13:04:13]name=ofd_packets/00103678 [13:04:13]NVStorageDeleteData [13:04:13]Write to MH i2c: 01 00 00 2A AC D6 [13:04:13]Write i2c OK [13:04:13]MH_I2C_Read... [13:04:13]Read from MH i2c: 01 [13:04:13]MH_I2C_Read... [13:04:13]Read from MH i2c: 01 07 00 [13:04:13]MH_I2C_Read... [13:04:13]Read from MH i2c: 01 07 00 2A AC 00 00 00 00 00 E7 0C D0 [13:04:13]RasterBufferAndPrint [13:04:13]line [13:04:13]line [13:04:13]line [13:04:13]line [13:04:13]line [13:04:13]written 0, free lines is 3310 [13:04:13]MH_Cut [13:04:13]Write to MH i2c: D1 01 00 31 AC 01 AF [13:04:13]Write i2c OK [13:04:13]MH_I2C_Read... [13:04:13]Read from MH i2c: D1 [13:04:13]MH_I2C_Read... [13:04:13]Read from MH i2c: D1 01 00 [13:04:13]MH_I2C_Read... [13:04:13]Read from MH i2c: D1 01 00 31 AC 00 AE [13:04:13]Write to MH i2c: 01 00 00 32 AC DE [13:04:13]Write i2c OK [13:04:13]MH_I2C_Read... [13:04:14]OFD Sender: No OFD packet to send [13:04:14]*** Cut start [13:04:14]*** Partial cut [13:04:14]*** CUTSNS_PIN = 1 [13:04:14]*** CUTSNS_PIN = 0 [13:04:14]*** Brake cut motor [13:04:15]Read from MH i2c: 01 [13:04:15]MH_I2C_Read... [13:04:15]*** Stop cut motor [13:04:15]*** Cut end [13:04:15]Read from MH i2c: 01 07 00 [13:04:15]MH_I2C_Read... [13:04:15]Read from MH i2c: 01 07 00 32 AC 00 00 00 00 00 FF 0F F3 [13:04:15]process_action close_receipt done [13:04:15]requested_data is exist [13:04:15]produce_requested_data [13:04:15]requested_item fm.sn is exist - process it [13:04:15]wFMCommunicate request_size=4 [13:04:15]MH_SAM_APDU [13:04:15]CAPDU: 80 11 00 00 [13:04:15]Write to MH i2c: E2 08 00 33 AC 80 11 00 00 00 00 00 00 59 [13:04:15]Write i2c OK [13:04:15]MH_I2C_Read... [13:04:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:04:15]Read from MH i2c: E2 [13:04:15]MH_I2C_Read... [13:04:15]Read from MH i2c: E2 17 00 [13:04:15]MH_I2C_Read... [13:04:15]Read from MH i2c: E2 17 00 33 AC 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 AC [13:04:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [13:04:15]wFMCommunicate OK [13:04:15]requested_item fd.num is exist - process it [13:04:15]SAM_PROTO_GetFieldsCounters [13:04:15]wFMCommunicate request_size=4 [13:04:15]MH_SAM_APDU [13:04:15]CAPDU: 80 13 00 00 [13:04:15]Write to MH i2c: E2 08 00 34 AC 80 13 00 00 00 00 00 00 5C [13:04:15]Write i2c OK [13:04:15]MH_I2C_Read... [13:04:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:04:15]Read from MH i2c: E2 [13:04:15]MH_I2C_Read... [13:04:15]Read from MH i2c: E2 62 00 [13:04:15]MH_I2C_Read... [13:04:15]Read from MH i2c: E2 62 00 34 AC 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 FE 94 01 00 0E 04 04 00 61 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 BC [13:04: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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 FE 94 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 6C 00 00 00 5E 04 04 00 6C 00 00 00 57 04 04 00 6D 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:04:15]wFMCommunicate OK [13:04:15]SAM_PROTO_GetFieldsCounters done [13:04:15]requested_item shift.num is exist - process it [13:04:15]requested_item shift.opened is exist - process it [13:04:15]req_shift_opened [13:04:15]FM_GetShiftState [13:04:15]SAM_PROTO_GetShiftState [13:04:15]wFMCommunicate request_size=4 [13:04:15]MH_SAM_APDU [13:04:15]CAPDU: 80 13 01 00 [13:04:15]Write to MH i2c: E2 08 00 35 AC 80 13 01 00 00 00 00 00 5E [13:04:15]Write i2c OK [13:04:15]MH_I2C_Read... [13:04:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:04:15]Read from MH i2c: E2 [13:04:15]MH_I2C_Read... [13:04:15]Read from MH i2c: E2 0E 00 [13:04:15]MH_I2C_Read... [13:04:15]Read from MH i2c: E2 0E 00 35 AC 00 09 00 01 04 26 72 66 00 00 00 00 90 00 6C [13:04:15]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [13:04:15]wFMCommunicate OK [13:04:15]SAM_PROTO_GetShiftState done [13:04:15]FM_GetShiftState done [13:04:15]req_shift_opened done [13:04:15]requested_item shift.open_date is exist - process it [13:04:15]req_shift_open_date [13:04:15]req_shift_open_date done [13:04:15]produce_requested_data done [13:04:15]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103678,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [13:04:15]process_action_free close_receipt [13:04:15]json_value_free [13:04:15]json_value_free done [13:04:15]process_json_proto returns [13:04:15]Send response to host [13:04:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103678,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [13:04:15]free response buf [13:04:15]execute_script done [13:04:15]execute_script returns [13:04:15]free content buf [13:04:15]Sock 9.Close socket [13:04:15]Sock 9.Thread stoped [13:04:19]OFD Sender: No OFD packet to send [13:04:24]OFD Sender: No OFD packet to send [13:04:26]accept exits with 7 [13:04:26]New connection [13:04:26]New thread 3067084132 created [13:04:26]Thread 3067227492 joined [13:04:26]Waiting for new connection... [13:04:26] Sock 7.Parse request [13:04:26]Sock 7.Check first char [13:04:26]Sock 7.First char is OK [13:04:26]request: POST /json_proto HTTP/1.0 [13:04:26]Method: POST [13:04:26]URL: /json_proto [13:04:26]Method is POST - this is cgi request [13:04:26]url: /json_proto [13:04:26]query_string will be loaded in cgi processing [13:04:26]execute_cgi json_proto POST (null) [13:04:26]execute_cgi path=json_proto method=POST [13:04:26]POST find Content-Length [13:04:26]Host: 172.17.38.133:8080 [13:04:26]Content-Length: 215 [13:04:26]Content-Type: application/json [13:04:26] [13:04:26]POST finish read [13:04:26]Found Content-Length = 215 [13:04:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:04:26]execute_script... [13:04:26]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:04:26]POST & json_proto [13:04:26]process_json_proto [13:04:26]json parsed OK: [13:04:26]protocol is kg_v1.0 [13:04:26]action value=get_value [13:04:26]process_action get_value [13:04:26]cmd_get_value [13:04:26]process_action get_value done [13:04:26]requested_data is exist [13:04:26]produce_requested_data [13:04:26]requested_item kkm.sn is exist - process it [13:04:26]requested_item kkm.ver is exist - process it [13:04:26]requested_item fm.sn is exist - process it [13:04:26]wFMCommunicate request_size=4 [13:04:26]MH_SAM_APDU [13:04:26]CAPDU: 80 11 00 00 [13:04:26]Write to MH i2c: E2 08 00 36 AC 80 11 00 00 00 00 00 00 5C [13:04:26]Write i2c OK [13:04:26]MH_I2C_Read... [13:04:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:04:26]Read from MH i2c: E2 [13:04:26]MH_I2C_Read... [13:04:26]Read from MH i2c: E2 17 00 [13:04:26]MH_I2C_Read... [13:04:26]Read from MH i2c: E2 17 00 36 AC 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 AF [13:04:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [13:04:26]wFMCommunicate OK [13:04:26]requested_item fd.num is exist - process it [13:04:26]SAM_PROTO_GetFieldsCounters [13:04:26]wFMCommunicate request_size=4 [13:04:26]MH_SAM_APDU [13:04:26]CAPDU: 80 13 00 00 [13:04:26]Write to MH i2c: E2 08 00 37 AC 80 13 00 00 00 00 00 00 5F [13:04:26]Write i2c OK [13:04:26]MH_I2C_Read... [13:04:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:04:26]Read from MH i2c: E2 [13:04:26]MH_I2C_Read... [13:04:26]Read from MH i2c: E2 62 00 [13:04:26]MH_I2C_Read... [13:04:26]Read from MH i2c: E2 62 00 37 AC 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 FE 94 01 00 0E 04 04 00 61 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 BF [13:04: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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 FE 94 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 6C 00 00 00 5E 04 04 00 6C 00 00 00 57 04 04 00 6D 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:04:26]wFMCommunicate OK [13:04:26]SAM_PROTO_GetFieldsCounters done [13:04:26]requested_item shift.num is exist - process it [13:04:26]requested_item shift.opened is exist - process it [13:04:26]req_shift_opened [13:04:26]FM_GetShiftState [13:04:26]SAM_PROTO_GetShiftState [13:04:26]wFMCommunicate request_size=4 [13:04:26]MH_SAM_APDU [13:04:26]CAPDU: 80 13 01 00 [13:04:26]Write to MH i2c: E2 08 00 38 AC 80 13 01 00 00 00 00 00 61 [13:04:26]Write i2c OK [13:04:26]MH_I2C_Read... [13:04:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:04:26]Read from MH i2c: E2 [13:04:26]MH_I2C_Read... [13:04:26]Read from MH i2c: E2 0E 00 [13:04:26]MH_I2C_Read... [13:04:26]Read from MH i2c: E2 0E 00 38 AC 00 09 00 01 04 26 72 66 00 00 00 00 90 00 6F [13:04:26]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [13:04:26]wFMCommunicate OK [13:04:26]SAM_PROTO_GetShiftState done [13:04:26]FM_GetShiftState done [13:04:26]req_shift_opened done [13:04:26]requested_item shift.open_date is exist - process it [13:04:26]req_shift_open_date [13:04:26]req_shift_open_date done [13:04:26]produce_requested_data done [13:04:26]produce_requested_data return {"kkm.sn":"0300000164","kkm.ver":"001","fm.sn":"0000000000875093","fd.num":103678,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [13:04:26]process_action_free get_value [13:04:26]json_value_free [13:04:26]json_value_free done [13:04:26]process_json_proto returns [13:04:26]Send response to host [13:04:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000164","kkm.ver":"001","fm.sn":"0000000000875093","fd.num":103678,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [13:04:26]free response buf [13:04:26]execute_script done [13:04:26]execute_script returns [13:04:26]free content buf [13:04:26]Sock 7.Close socket [13:04:26]Sock 7.Thread stoped [13:04:26]accept exits with 9 [13:04:26]New connection [13:04:26]New thread 3067227492 created [13:04:26]Thread 3067084132 joined [13:04:26]Waiting for new connection... [13:04:26] Sock 9.Parse request [13:04:26]Sock 9.Check first char [13:04:26]Sock 9.First char is OK [13:04:26]request: POST /json_proto HTTP/1.0 [13:04:26]Method: POST [13:04:27]URL: /json_proto [13:04:27]Method is POST - this is cgi request [13:04:27]url: /json_proto [13:04:27]query_string will be loaded in cgi processing [13:04:27]execute_cgi json_proto POST (null) [13:04:27]execute_cgi path=json_proto method=POST [13:04:27]POST find Content-Length [13:04:27]Host: 172.17.38.133:8080 [13:04:27]Content-Length: 331 [13:04:27]Content-Type: application/json [13:04:27] [13:04:27]POST finish read [13:04:27]Found Content-Length = 331 [13:04:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [13:04:27]execute_script... [13:04:27]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [13:04:27]POST & json_proto [13:04:27]process_json_proto [13:04:27]json parsed OK: [13:04:27]protocol is kg_v1.0 [13:04:27]action value=get_value [13:04:27]process_action get_value [13:04:27]cmd_get_value [13:04:27]process_action get_value done [13:04:27]requested_data is exist [13:04:27]produce_requested_data [13:04:27]requested_item fm.sale.total is exist - process it [13:04:27]SAM_PROTO_GetFMData [13:04:27]wFMCommunicate request_size=4 [13:04:27]MH_SAM_APDU [13:04:27]CAPDU: 80 13 03 00 [13:04:27]Write to MH i2c: E2 08 00 39 AC 80 13 03 00 00 00 00 00 64 [13:04:27]Write i2c OK [13:04:27]MH_I2C_Read... [13:04:27]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [13:04:27]Read from MH i2c: E2 [13:04:27]MH_I2C_Read... [13:04:27]Read from MH i2c: E2 FD 00 [13:04:27]MH_I2C_Read... [13:04:27]Read from MH i2c: E2 FD 00 39 AC 00 C5 04 85 04 C1 04 6E 04 04 00 3C 92 01 00 69 04 A3 00 6F 04 04 00 EA 8D 01 00 B1 04 05 00 F6 AF 95 3B 04 70 04 05 00 18 0F 41 58 03 72 04 04 00 DE A0 54 E3 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 CB 23 16 73 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 3D 0C 97 09 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9C 00 6F 04 04 00 52 04 00 00 B1 04 04 00 8C D8 05 18 70 04 04 00 8C D8 05 18 72 04 00 00 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 EC 1F 8D 02 EF 03 09 90 00 12 [13:04:27]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 3C 92 01 00 69 04 A3 00 6F 04 04 00 EA 8D 01 00 B1 04 05 00 F6 AF 95 3B 04 70 04 05 00 18 0F 41 58 03 72 04 04 00 DE A0 54 E3 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 CB 23 16 73 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 3D 0C 97 09 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9C 00 6F 04 04 00 52 04 00 00 B1 04 04 00 8C D8 05 18 70 04 04 00 8C D8 05 18 72 04 00 00 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 EC 1F 8D 02 EF 03 09 90 00 [13:04:27]wFMCommunicate OK [13:04:27]wFMCommunicate request_size=4 [13:04:27]MH_SAM_APDU [13:04:27]CAPDU: 80 17 00 00 [13:04:27]Write to MH i2c: E2 08 00 3A AC 80 17 00 00 00 00 00 00 66 [13:04:27]Write i2c OK [13:04:27]MH_I2C_Read... [13:04:28]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:04:28]Read from MH i2c: E2 [13:04:28]MH_I2C_Read... [13:04:28]Read from MH i2c: E2 FD 00 [13:04:28]MH_I2C_Read... [13:04:28]Read from MH i2c: E2 FD 00 3A AC 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 04 6D 36 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 C3 [13:04:28]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 04 6D 36 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [13:04:28]wFMCommunicate OK [13:04:28]wFMCommunicate request_size=4 [13:04:28]MH_SAM_APDU [13:04:28]CAPDU: 80 17 00 00 [13:04:28]Write to MH i2c: E2 08 00 3B AC 80 17 00 00 00 00 00 00 67 [13:04:28]Write i2c OK [13:04:28]MH_I2C_Read... [13:04:28]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:04:28]Read from MH i2c: E2 [13:04:28]MH_I2C_Read... [13:04:28]Read from MH i2c: E2 FD 00 [13:04:28]MH_I2C_Read... [13:04:28]Read from MH i2c: E2 FD 00 3B AC 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 79 [13:04:28]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [13:04:28]wFMCommunicate OK [13:04:28]wFMCommunicate request_size=4 [13:04:28]MH_SAM_APDU [13:04:28]CAPDU: 80 17 00 00 [13:04:28]Write to MH i2c: E2 08 00 3C AC 80 17 00 00 00 00 00 00 68 [13:04:28]Write i2c OK [13:04:28]MH_I2C_Read... [13:04:28]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:04:28]Read from MH i2c: E2 [13:04:28]MH_I2C_Read... [13:04:28]Read from MH i2c: E2 FD 00 [13:04:28]MH_I2C_Read... [13:04:28]Read from MH i2c: E2 FD 00 3C AC 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 F4 [13:04:28]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [13:04:28]wFMCommunicate OK [13:04:28]wFMCommunicate request_size=4 [13:04:28]MH_SAM_APDU [13:04:28]CAPDU: 80 17 00 00 [13:04:28]Write to MH i2c: E2 08 00 3D AC 80 17 00 00 00 00 00 00 69 [13:04:28]Write i2c OK [13:04:28]MH_I2C_Read... [13:04:28]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [13:04:28]Read from MH i2c: E2 [13:04:28]MH_I2C_Read... [13:04:28]Read from MH i2c: E2 E2 00 [13:04:28]MH_I2C_Read... [13:04:28]Read from MH i2c: E2 E2 00 3D AC 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 47 [13:04:28]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [13:04:28]wFMCommunicate OK [13:04:28]SAM_PROTO_GetFMData done [13:04:28]requested_item fm.sale_refund.total is exist - process it [13:04:28]requested_item fm.buy.total is exist - process it [13:04:28]requested_item shift.sale.total is exist - process it [13:04:28]SAM_PROTO_GetShiftData [13:04:28]wFMCommunicate request_size=4 [13:04:28]MH_SAM_APDU [13:04:28]CAPDU: 80 13 02 00 [13:04:28]Write to MH i2c: E2 08 00 3E AC 80 13 02 00 00 00 00 00 68 [13:04:28]Write i2c OK [13:04:28]MH_I2C_Read... [13:04:29]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [13:04:29]Read from MH i2c: E2 [13:04:29]MH_I2C_Read... [13:04:29]Read from MH i2c: E2 FD 00 [13:04:29]MH_I2C_Read... [13:04:29]OFD Sender: No OFD packet to send [13:04:29]Read from MH i2c: E2 FD 00 3E AC 00 B0 04 AA 04 AC 04 6E 04 04 00 6C 00 00 00 69 04 9D 00 6F 04 04 00 6C 00 00 00 B1 04 04 00 C8 DD 49 01 70 04 03 00 48 78 E4 72 04 03 00 80 65 65 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 2B 09 23 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 EB 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 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 90 00 94 [13:04:29]RAPDU: B0 04 AA 04 AC 04 6E 04 04 00 6C 00 00 00 69 04 9D 00 6F 04 04 00 6C 00 00 00 B1 04 04 00 C8 DD 49 01 70 04 03 00 48 78 E4 72 04 03 00 80 65 65 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 2B 09 23 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 EB 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 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 90 00 [13:04:29]wFMCommunicate OK [13:04:29]wFMCommunicate request_size=4 [13:04:29]MH_SAM_APDU [13:04:29]CAPDU: 80 17 00 00 [13:04:29]Write to MH i2c: E2 08 00 3F AC 80 17 00 00 00 00 00 00 6B [13:04:29]Write i2c OK [13:04:29]MH_I2C_Read... [13:04:29]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:04:29]Read from MH i2c: E2 [13:04:29]MH_I2C_Read... [13:04:29]Read from MH i2c: E2 FD 00 [13:04:29]MH_I2C_Read... [13:04:29]Read from MH i2c: E2 FD 00 3F AC 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 85 [13:04:29]RAPDU: 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [13:04:29]wFMCommunicate OK [13:04:29]wFMCommunicate request_size=4 [13:04:29]MH_SAM_APDU [13:04:29]CAPDU: 80 17 00 00 [13:04:29]Write to MH i2c: E2 08 00 40 AC 80 17 00 00 00 00 00 00 6C [13:04:29]Write i2c OK [13:04:29]MH_I2C_Read... [13:04:29]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:04:29]Read from MH i2c: E2 [13:04:29]MH_I2C_Read... [13:04:29]Read from MH i2c: E2 FD 00 [13:04:29]MH_I2C_Read... [13:04:29]Read from MH i2c: E2 FD 00 40 AC 00 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 90 00 29 [13:04:29]RAPDU: 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [13:04:29]wFMCommunicate OK [13:04:29]wFMCommunicate request_size=4 [13:04:29]MH_SAM_APDU [13:04:29]CAPDU: 80 17 00 00 [13:04:29]Write to MH i2c: E2 08 00 41 AC 80 17 00 00 00 00 00 00 6D [13:04:29]Write i2c OK [13:04:29]MH_I2C_Read... [13:04:30]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:04:30]Read from MH i2c: E2 [13:04:30]MH_I2C_Read... [13:04:30]Read from MH i2c: E2 FD 00 [13:04:30]MH_I2C_Read... [13:04:30]Read from MH i2c: E2 FD 00 41 AC 00 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 90 00 E0 [13:04:30]RAPDU: 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 90 00 [13:04:30]wFMCommunicate OK [13:04:30]wFMCommunicate request_size=4 [13:04:30]MH_SAM_APDU [13:04:30]CAPDU: 80 17 00 00 [13:04:30]Write to MH i2c: E2 08 00 42 AC 80 17 00 00 00 00 00 00 6E [13:04:30]Write i2c OK [13:04:30]MH_I2C_Read... [13:04:30]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 202! [13:04:30]Read from MH i2c: E2 [13:04:30]MH_I2C_Read... [13:04:30]Read from MH i2c: E2 CD 00 [13:04:30]MH_I2C_Read... [13:04:30]Read from MH i2c: E2 CD 00 42 AC 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 52 [13:04:30]RAPDU: 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [13:04:30]wFMCommunicate OK [13:04:30]SAM_PROTO_GetShiftData done [13:04:30]requested_item shift.sale.total_cash is exist - process it [13:04:30]requested_item shift.sale_refund.total is exist - process it [13:04:30]requested_item shift.sale_refund.total_cash is exist - process it [13:04:30]requested_item shift.buy.total is exist - process it [13:04:30]requested_item shift.buy.total_cash is exist - process it [13:04:30]produce_requested_data done [13:04:30]produce_requested_data return {"fm.sale.total":181795348.38,"fm.sale_refund.total":4030363.00,"fm.buy.total":0.00,"shift.sale.total":216181.20,"shift.sale.total_cash":149730.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [13:04:30]process_action_free get_value [13:04:30]json_value_free [13:04:30]json_value_free done [13:04:30]process_json_proto returns [13:04:30]Send response to host [13:04:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":181795348.38,"fm.sale_refund.total":4030363.00,"fm.buy.total":0.00,"shift.sale.total":216181.20,"shift.sale.total_cash":149730.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [13:04:30]free response buf [13:04:30]execute_script done [13:04:30]execute_script returns [13:04:30]free content buf [13:04:30]Sock 9.Close socket [13:04:30]Sock 9.Thread stoped [13:04:30]accept exits with 7 [13:04:30]New connection [13:04:30]New thread 3067084132 created [13:04:30]Thread 3067227492 joined [13:04:30]Waiting for new connection... [13:04:30] Sock 7.Parse request [13:04:30]Sock 7.Check first char [13:04:30]Sock 7.First char is OK [13:04:30]request: POST /json_proto HTTP/1.0 [13:04:30]Method: POST [13:04:30]URL: /json_proto [13:04:30]Method is POST - this is cgi request [13:04:30]url: /json_proto [13:04:30]query_string will be loaded in cgi processing [13:04:30]execute_cgi json_proto POST (null) [13:04:30]execute_cgi path=json_proto method=POST [13:04:30]POST find Content-Length [13:04:30]Host: 172.17.38.133:8080 [13:04:30]Content-Length: 331 [13:04:30]Content-Type: application/json [13:04:30] [13:04:30]POST finish read [13:04:30]Found Content-Length = 331 [13:04:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [13:04:30]execute_script... [13:04:30]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [13:04:30]POST & json_proto [13:04:30]process_json_proto [13:04:30]json parsed OK: [13:04:30]protocol is kg_v1.0 [13:04:30]action value=get_value [13:04:30]process_action get_value [13:04:30]cmd_get_value [13:04:30]process_action get_value done [13:04:30]requested_data is exist [13:04:30]produce_requested_data [13:04:30]requested_item fm.sale.total is exist - process it [13:04:30]SAM_PROTO_GetFMData [13:04:30]wFMCommunicate request_size=4 [13:04:30]MH_SAM_APDU [13:04:30]CAPDU: 80 13 03 00 [13:04:30]Write to MH i2c: E2 08 00 43 AC 80 13 03 00 00 00 00 00 6E [13:04:30]Write i2c OK [13:04:30]MH_I2C_Read... [13:04:31]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [13:04:31]Read from MH i2c: E2 [13:04:31]MH_I2C_Read... [13:04:31]Read from MH i2c: E2 FD 00 [13:04:31]MH_I2C_Read... [13:04:31]Read from MH i2c: E2 FD 00 43 AC 00 C5 04 85 04 C1 04 6E 04 04 00 3C 92 01 00 69 04 A3 00 6F 04 04 00 EA 8D 01 00 B1 04 05 00 F6 AF 95 3B 04 70 04 05 00 18 0F 41 58 03 72 04 04 00 DE A0 54 E3 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 CB 23 16 73 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 3D 0C 97 09 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9C 00 6F 04 04 00 52 04 00 00 B1 04 04 00 8C D8 05 18 70 04 04 00 8C D8 05 18 72 04 00 00 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 EC 1F 8D 02 EF 03 09 90 00 1C [13:04:31]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 3C 92 01 00 69 04 A3 00 6F 04 04 00 EA 8D 01 00 B1 04 05 00 F6 AF 95 3B 04 70 04 05 00 18 0F 41 58 03 72 04 04 00 DE A0 54 E3 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 CB 23 16 73 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 3D 0C 97 09 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9C 00 6F 04 04 00 52 04 00 00 B1 04 04 00 8C D8 05 18 70 04 04 00 8C D8 05 18 72 04 00 00 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 EC 1F 8D 02 EF 03 09 90 00 [13:04:31]wFMCommunicate OK [13:04:31]wFMCommunicate request_size=4 [13:04:31]MH_SAM_APDU [13:04:31]CAPDU: 80 17 00 00 [13:04:31]Write to MH i2c: E2 08 00 44 AC 80 17 00 00 00 00 00 00 70 [13:04:31]Write i2c OK [13:04:31]MH_I2C_Read... [13:04:31]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:04:31]Read from MH i2c: E2 [13:04:31]MH_I2C_Read... [13:04:31]Read from MH i2c: E2 FD 00 [13:04:31]MH_I2C_Read... [13:04:31]Read from MH i2c: E2 FD 00 44 AC 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 04 6D 36 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 CD [13:04:31]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 04 6D 36 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [13:04:31]wFMCommunicate OK [13:04:31]wFMCommunicate request_size=4 [13:04:31]MH_SAM_APDU [13:04:31]CAPDU: 80 17 00 00 [13:04:31]Write to MH i2c: E2 08 00 45 AC 80 17 00 00 00 00 00 00 71 [13:04:31]Write i2c OK [13:04:31]MH_I2C_Read... [13:04:31]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:04:31]Read from MH i2c: E2 [13:04:31]MH_I2C_Read... [13:04:31]Read from MH i2c: E2 FD 00 [13:04:31]MH_I2C_Read... [13:04:31]Read from MH i2c: E2 FD 00 45 AC 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 83 [13:04:31]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [13:04:31]wFMCommunicate OK [13:04:31]wFMCommunicate request_size=4 [13:04:31]MH_SAM_APDU [13:04:31]CAPDU: 80 17 00 00 [13:04:31]Write to MH i2c: E2 08 00 46 AC 80 17 00 00 00 00 00 00 72 [13:04:31]Write i2c OK [13:04:31]MH_I2C_Read... [13:04:32]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:04:32]Read from MH i2c: E2 [13:04:32]MH_I2C_Read... [13:04:32]Read from MH i2c: E2 FD 00 [13:04:32]MH_I2C_Read... [13:04:32]Read from MH i2c: E2 FD 00 46 AC 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 FE [13:04:32]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [13:04:32]wFMCommunicate OK [13:04:32]wFMCommunicate request_size=4 [13:04:32]MH_SAM_APDU [13:04:32]CAPDU: 80 17 00 00 [13:04:32]Write to MH i2c: E2 08 00 47 AC 80 17 00 00 00 00 00 00 73 [13:04:32]Write i2c OK [13:04:32]MH_I2C_Read... [13:04:32]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [13:04:32]Read from MH i2c: E2 [13:04:32]MH_I2C_Read... [13:04:32]Read from MH i2c: E2 E2 00 [13:04:32]MH_I2C_Read... [13:04:32]Read from MH i2c: E2 E2 00 47 AC 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 51 [13:04:32]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [13:04:32]wFMCommunicate OK [13:04:32]SAM_PROTO_GetFMData done [13:04:32]requested_item fm.sale_refund.total is exist - process it [13:04:32]requested_item fm.buy.total is exist - process it [13:04:32]requested_item shift.sale.total is exist - process it [13:04:32]SAM_PROTO_GetShiftData [13:04:32]wFMCommunicate request_size=4 [13:04:32]MH_SAM_APDU [13:04:32]CAPDU: 80 13 02 00 [13:04:32]Write to MH i2c: E2 08 00 48 AC 80 13 02 00 00 00 00 00 72 [13:04:32]Write i2c OK [13:04:32]MH_I2C_Read... [13:04:33]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [13:04:33]Read from MH i2c: E2 [13:04:33]MH_I2C_Read... [13:04:33]Read from MH i2c: E2 FD 00 [13:04:33]MH_I2C_Read... [13:04:33]Read from MH i2c: E2 FD 00 48 AC 00 B0 04 AA 04 AC 04 6E 04 04 00 6C 00 00 00 69 04 9D 00 6F 04 04 00 6C 00 00 00 B1 04 04 00 C8 DD 49 01 70 04 03 00 48 78 E4 72 04 03 00 80 65 65 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 2B 09 23 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 EB 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 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 90 00 9E [13:04:33]RAPDU: B0 04 AA 04 AC 04 6E 04 04 00 6C 00 00 00 69 04 9D 00 6F 04 04 00 6C 00 00 00 B1 04 04 00 C8 DD 49 01 70 04 03 00 48 78 E4 72 04 03 00 80 65 65 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 2B 09 23 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 EB 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 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 90 00 [13:04:33]wFMCommunicate OK [13:04:33]wFMCommunicate request_size=4 [13:04:33]MH_SAM_APDU [13:04:33]CAPDU: 80 17 00 00 [13:04:33]Write to MH i2c: E2 08 00 49 AC 80 17 00 00 00 00 00 00 75 [13:04:33]Write i2c OK [13:04:33]MH_I2C_Read... [13:04:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:04:33]Read from MH i2c: E2 [13:04:33]MH_I2C_Read... [13:04:33]Read from MH i2c: E2 FD 00 [13:04:33]MH_I2C_Read... [13:04:33]Read from MH i2c: E2 FD 00 49 AC 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 8F [13:04:33]RAPDU: 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [13:04:33]wFMCommunicate OK [13:04:33]wFMCommunicate request_size=4 [13:04:33]MH_SAM_APDU [13:04:33]CAPDU: 80 17 00 00 [13:04:33]Write to MH i2c: E2 08 00 4A AC 80 17 00 00 00 00 00 00 76 [13:04:33]Write i2c OK [13:04:33]MH_I2C_Read... [13:04:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:04:33]Read from MH i2c: E2 [13:04:33]MH_I2C_Read... [13:04:33]Read from MH i2c: E2 FD 00 [13:04:33]MH_I2C_Read... [13:04:33]Read from MH i2c: E2 FD 00 4A AC 00 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 90 00 33 [13:04:34]RAPDU: 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [13:04:34]wFMCommunicate OK [13:04:34]wFMCommunicate request_size=4 [13:04:34]MH_SAM_APDU [13:04:34]CAPDU: 80 17 00 00 [13:04:34]Write to MH i2c: E2 08 00 4B AC 80 17 00 00 00 00 00 00 77 [13:04:34]Write i2c OK [13:04:34]MH_I2C_Read... [13:04:34]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:04:34]Read from MH i2c: E2 [13:04:34]MH_I2C_Read... [13:04:34]Read from MH i2c: E2 FD 00 [13:04:34]MH_I2C_Read... [13:04:34]OFD Sender: No OFD packet to send [13:04:34]Read from MH i2c: E2 FD 00 4B AC 00 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 90 00 EA [13:04:34]RAPDU: 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 90 00 [13:04:34]wFMCommunicate OK [13:04:34]wFMCommunicate request_size=4 [13:04:34]MH_SAM_APDU [13:04:34]CAPDU: 80 17 00 00 [13:04:34]Write to MH i2c: E2 08 00 4C AC 80 17 00 00 00 00 00 00 78 [13:04:34]Write i2c OK [13:04:34]MH_I2C_Read... [13:04:34]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 202! [13:04:34]Read from MH i2c: E2 [13:04:34]MH_I2C_Read... [13:04:34]Read from MH i2c: E2 CD 00 [13:04:34]MH_I2C_Read... [13:04:34]Read from MH i2c: E2 CD 00 4C AC 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 5C [13:04:34]RAPDU: 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [13:04:34]wFMCommunicate OK [13:04:34]SAM_PROTO_GetShiftData done [13:04:34]requested_item shift.sale.total_cash is exist - process it [13:04:34]requested_item shift.sale_refund.total is exist - process it [13:04:34]requested_item shift.sale_refund.total_cash is exist - process it [13:04:34]requested_item shift.buy.total is exist - process it [13:04:34]requested_item shift.buy.total_cash is exist - process it [13:04:34]produce_requested_data done [13:04:34]produce_requested_data return {"fm.sale.total":181795348.38,"fm.sale_refund.total":4030363.00,"fm.buy.total":0.00,"shift.sale.total":216181.20,"shift.sale.total_cash":149730.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [13:04:34]process_action_free get_value [13:04:34]json_value_free [13:04:34]json_value_free done [13:04:34]process_json_proto returns [13:04:34]Send response to host [13:04:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":181795348.38,"fm.sale_refund.total":4030363.00,"fm.buy.total":0.00,"shift.sale.total":216181.20,"shift.sale.total_cash":149730.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [13:04:34]free response buf [13:04:34]execute_script done [13:04:34]execute_script returns [13:04:34]free content buf [13:04:34]Sock 7.Close socket [13:04:34]Sock 7.Thread stoped [13:04:34]accept exits with 9 [13:04:34]New connection [13:04:34]New thread 3067227492 created [13:04:34]Thread 3067084132 joined [13:04:34]Waiting for new connection... [13:04:34] Sock 9.Parse request [13:04:34]Sock 9.Check first char [13:04:34]Sock 9.First char is OK [13:04:34]request: POST /json_proto HTTP/1.0 [13:04:34]Method: POST [13:04:34]URL: /json_proto [13:04:34]Method is POST - this is cgi request [13:04:34]url: /json_proto [13:04:34]query_string will be loaded in cgi processing [13:04:34]execute_cgi json_proto POST (null) [13:04:34]execute_cgi path=json_proto method=POST [13:04:34]POST find Content-Length [13:04:34]Host: 172.17.38.133:8080 [13:04:34]Content-Length: 269 [13:04:34]Content-Type: application/json [13:04:34] [13:04:34]POST finish read [13:04:34]Found Content-Length = 269 [13:04:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:04:34]execute_script... [13:04:34]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:04:34]POST & json_proto [13:04:34]process_json_proto [13:04:34]json parsed OK: [13:04:34]protocol is kg_v1.0 [13:04:34]action value=x_report [13:04:34]process_action x_report [13:04:34]cmd_x_report [13:04:34]MH_GetDate [13:04:34]Write to MH i2c: F0 00 00 4D AC E8 [13:04:34]Write i2c OK [13:04:34]MH_I2C_Read... [13:04:34]Read from MH i2c: F0 [13:04:34]MH_I2C_Read... [13:04:34]Read from MH i2c: F0 09 00 [13:04:34]MH_I2C_Read... [13:04:34]Read from MH i2c: F0 09 00 4D AC 00 6F D7 72 66 BD 8F 7C 64 3B [13:04:34]GetLastDocTimeStamp 1718802263 [13:04:34]current date 1718802287 [13:04:34]FM_GetShiftState [13:04:34]SAM_PROTO_GetShiftState [13:04:34]wFMCommunicate request_size=4 [13:04:34]MH_SAM_APDU [13:04:34]CAPDU: 80 13 01 00 [13:04:34]Write to MH i2c: E2 08 00 4E AC 80 13 01 00 00 00 00 00 77 [13:04:34]Write i2c OK [13:04:34]MH_I2C_Read... [13:04:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:04:34]Read from MH i2c: E2 [13:04:34]MH_I2C_Read... [13:04:34]Read from MH i2c: E2 0E 00 [13:04:34]MH_I2C_Read... [13:04:34]Read from MH i2c: E2 0E 00 4E AC 00 09 00 01 04 26 72 66 00 00 00 00 90 00 85 [13:04:34]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [13:04:35]wFMCommunicate OK [13:04:35]SAM_PROTO_GetShiftState done [13:04:35]FM_GetShiftState done [13:04:35]KKMCreateXReportDocument [13:04:35]Load OK [13:04:35]Malloc new data [13:04:35]MH_GetDate [13:04:35]Write to MH i2c: F0 00 00 4F AC EA [13:04:35]Write i2c OK [13:04:35]MH_I2C_Read... [13:04:35]Read from MH i2c: F0 [13:04:35]MH_I2C_Read... [13:04:35]Read from MH i2c: F0 09 00 [13:04:35]MH_I2C_Read... [13:04:35]Read from MH i2c: F0 09 00 4F AC 00 6F D7 72 66 BD 8F 7C 64 3D [13:04:35]Malloc new data [13:04:35]Malloc new data [13:04:35]wFMCommunicate request_size=4 [13:04:35]MH_SAM_APDU [13:04:35]CAPDU: 80 11 00 00 [13:04:35]Write to MH i2c: E2 08 00 50 AC 80 11 00 00 00 00 00 00 76 [13:04:35]Write i2c OK [13:04:35]MH_I2C_Read... [13:04:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:04:35]Read from MH i2c: E2 [13:04:35]MH_I2C_Read... [13:04:35]Read from MH i2c: E2 17 00 [13:04:35]MH_I2C_Read... [13:04:35]Read from MH i2c: E2 17 00 50 AC 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 C9 [13:04:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [13:04:35]wFMCommunicate OK [13:04:35]SAM_PROTO_GetFieldsCounters [13:04:35]wFMCommunicate request_size=4 [13:04:35]MH_SAM_APDU [13:04:35]CAPDU: 80 13 00 00 [13:04:35]Write to MH i2c: E2 08 00 51 AC 80 13 00 00 00 00 00 00 79 [13:04:35]Write i2c OK [13:04:35]MH_I2C_Read... [13:04:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:04:35]Read from MH i2c: E2 [13:04:35]MH_I2C_Read... [13:04:35]Read from MH i2c: E2 62 00 [13:04:35]MH_I2C_Read... [13:04:35]Read from MH i2c: E2 62 00 51 AC 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 FE 94 01 00 0E 04 04 00 61 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 D9 [13:04:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 FE 94 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 6C 00 00 00 5E 04 04 00 6C 00 00 00 57 04 04 00 6D 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:04:35]wFMCommunicate OK [13:04:35]SAM_PROTO_GetFieldsCounters done [13:04:35]Malloc new data [13:04:35]Malloc new data [13:04:35]Malloc new data [13:04:35]KKMCreateXReportDocument OK [13:04:35]KKMSetXReportData OK [13:04:35]KKMPrepareXReportFMData [13:04:35]SAM_PROTO_GetShiftData [13:04:35]wFMCommunicate request_size=4 [13:04:35]MH_SAM_APDU [13:04:35]CAPDU: 80 13 02 00 [13:04:35]Write to MH i2c: E2 08 00 52 AC 80 13 02 00 00 00 00 00 7C [13:04:35]Write i2c OK [13:04:35]MH_I2C_Read... [13:04:35]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [13:04:35]Read from MH i2c: E2 [13:04:35]MH_I2C_Read... [13:04:35]Read from MH i2c: E2 FD 00 [13:04:35]MH_I2C_Read... [13:04:35]Read from MH i2c: E2 FD 00 52 AC 00 B0 04 AA 04 AC 04 6E 04 04 00 6C 00 00 00 69 04 9D 00 6F 04 04 00 6C 00 00 00 B1 04 04 00 C8 DD 49 01 70 04 03 00 48 78 E4 72 04 03 00 80 65 65 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 2B 09 23 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 EB 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 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 90 00 A8 [13:04:35]RAPDU: B0 04 AA 04 AC 04 6E 04 04 00 6C 00 00 00 69 04 9D 00 6F 04 04 00 6C 00 00 00 B1 04 04 00 C8 DD 49 01 70 04 03 00 48 78 E4 72 04 03 00 80 65 65 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 2B 09 23 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 EB 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 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 90 00 [13:04:35]wFMCommunicate OK [13:04:35]wFMCommunicate request_size=4 [13:04:35]MH_SAM_APDU [13:04:35]CAPDU: 80 17 00 00 [13:04:35]Write to MH i2c: E2 08 00 53 AC 80 17 00 00 00 00 00 00 7F [13:04:35]Write i2c OK [13:04:35]MH_I2C_Read... [13:04:36]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:04:36]Read from MH i2c: E2 [13:04:36]MH_I2C_Read... [13:04:36]Read from MH i2c: E2 FD 00 [13:04:36]MH_I2C_Read... [13:04:36]Read from MH i2c: E2 FD 00 53 AC 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 99 [13:04:36]RAPDU: 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [13:04:36]wFMCommunicate OK [13:04:36]wFMCommunicate request_size=4 [13:04:36]MH_SAM_APDU [13:04:36]CAPDU: 80 17 00 00 [13:04:36]Write to MH i2c: E2 08 00 54 AC 80 17 00 00 00 00 00 00 80 [13:04:36]Write i2c OK [13:04:36]MH_I2C_Read... [13:04:36]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:04:36]Read from MH i2c: E2 [13:04:36]MH_I2C_Read... [13:04:36]Read from MH i2c: E2 FD 00 [13:04:36]MH_I2C_Read... [13:04:36]Read from MH i2c: E2 FD 00 54 AC 00 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 90 00 3D [13:04:36]RAPDU: 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [13:04:36]wFMCommunicate OK [13:04:36]wFMCommunicate request_size=4 [13:04:36]MH_SAM_APDU [13:04:36]CAPDU: 80 17 00 00 [13:04:36]Write to MH i2c: E2 08 00 55 AC 80 17 00 00 00 00 00 00 81 [13:04:36]Write i2c OK [13:04:36]MH_I2C_Read... [13:04:37]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:04:37]Read from MH i2c: E2 [13:04:37]MH_I2C_Read... [13:04:37]Read from MH i2c: E2 FD 00 [13:04:37]MH_I2C_Read... [13:04:37]Read from MH i2c: E2 FD 00 55 AC 00 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 90 00 F4 [13:04:37]RAPDU: 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 90 00 [13:04:37]wFMCommunicate OK [13:04:37]wFMCommunicate request_size=4 [13:04:37]MH_SAM_APDU [13:04:37]CAPDU: 80 17 00 00 [13:04:37]Write to MH i2c: E2 08 00 56 AC 80 17 00 00 00 00 00 00 82 [13:04:37]Write i2c OK [13:04:37]MH_I2C_Read... [13:04:37]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 202! [13:04:37]Read from MH i2c: E2 [13:04:37]MH_I2C_Read... [13:04:37]Read from MH i2c: E2 CD 00 [13:04:37]MH_I2C_Read... [13:04:37]Read from MH i2c: E2 CD 00 56 AC 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 66 [13:04:37]RAPDU: 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [13:04:37]wFMCommunicate OK [13:04:37]SAM_PROTO_GetShiftData done [13:04:37]1194 (1196) - счетчики итогов смены [13:04:37] 1134 (4) - 108 - количество чеков со всеми признаками расчетов [13:04:37] 1129 (157) - счетчики операций «приход» [13:04:37] 1135 (4) - 108 - количество чеков по признаку расчетов [13:04:37] 1201 (4) - 216181.20 - общая итоговая сумма в чеках [13:04:37] 1136 (3) - 149730.00 - итоговая сумма в чеках наличными [13:04:37] 1138 (3) - 66451.20 - итоговая сумма в чеках безналичными [13:04:37] 1024 (123) - суммы налогов [13:04:37] 1006 (9) - суммы НДС [13:04:37] 1010 (1) - 0% - код ставки НДС [13:04:37] 1011 (0) - 0.00 - сумма НДС по ставке [13:04:37] 1006 (12) - суммы НДС [13:04:37] 1010 (1) - 12% - код ставки НДС [13:04:37] 1011 (3) - 22961.07 - сумма НДС по ставке [13:04:37] 1007 (9) - суммы НСП [13:04:37] 1014 (1) - 0% - код ставки НСП [13:04:37] 1015 (0) - 0.00 - сумма НСП по ставке [13:04:37] 1007 (12) - суммы НСП [13:04:37] 1014 (1) - 1% - код ставки НСП [13:04:37] 1015 (3) - 1913.28 - сумма НСП по ставке [13:04:37] 1007 (9) - суммы НСП [13:04:37] 1014 (1) - 2% - код ставки НСП [13:04:37] 1015 (0) - 0.00 - сумма НСП по ставке [13:04:37] 1007 (9) - суммы НСП [13:04:37] 1014 (1) - 3% - код ставки НСП [13:04:37] 1015 (0) - 0.00 - сумма НСП по ставке [13:04:37] 1007 (9) - суммы НСП [13:04:37] 1014 (1) - 5% - код ставки НСП [13:04:37] 1015 (0) - 0.00 - сумма НСП по ставке [13:04:37] 1007 (9) - суммы НСП [13:04:38] 1014 (1) - 0,50% - код ставки НСП [13:04:38] 1015 (0) - 0.00 - сумма НСП по ставке [13:04:38] 1007 (9) - суммы НСП [13:04:38] 1014 (1) - 1,50% - код ставки НСП [13:04:38] 1015 (0) - 0.00 - сумма НСП по ставке [13:04:38] 1130 (141) - счетчики операций «возврат прихода» [13:04:38] 1135 (4) - 0 - количество чеков по признаку расчетов [13:04:38] 1201 (0) - 0.00 - общая итоговая сумма в чеках [13:04:38] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [13:04:38] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [13:04:38] 1024 (117) - суммы налогов [13:04:38] 1006 (9) - суммы НДС [13:04:38] 1010 (1) - 0% - код ставки НДС [13:04:38] 1011 (0) - 0.00 - сумма НДС по ставке [13:04:38] 1006 (9) - суммы НДС [13:04:38] 1010 (1) - 12% - код ставки НДС [13:04:38] 1011 (0) - 0.00 - сумма НДС по ставке [13:04:38] 1007 (9) - суммы НСП [13:04:38] 1014 (1) - 0% - код ставки НСП [13:04:38] 1015 (0) - 0.00 - сумма НСП по ставке [13:04:38] 1007 (9) - суммы НСП [13:04:38] 1014 (1) - 1% - код ставки НСП [13:04:38] 1015 (0) - 0.00 - сумма НСП по ставке [13:04:38] 1007 (9) - суммы НСП [13:04:38] 1014 (1) - 2% - код ставки НСП [13:04:38] 1015 (0) - 0.00 - сумма НСП по ставке [13:04:38] 1007 (9) - суммы НСП [13:04:38] 1014 (1) - 3% - код ставки НСП [13:04:38] 1015 (0) - 0.00 - сумма НСП по ставке [13:04:38] 1007 (9) - суммы НСП [13:04:38] 1014 (1) - 5% - код ставки НСП [13:04:38] 1015 (0) - 0.00 - сумма НСП по ставке [13:04:38] 1007 (9) - суммы НСП [13:04:38] 1014 (1) - 0,50% - код ставки НСП [13:04:38] 1015 (0) - 0.00 - сумма НСП по ставке [13:04:38] 1007 (9) - суммы НСП [13:04:38] 1014 (1) - 1,50% - код ставки НСП [13:04:38] 1015 (0) - 0.00 - сумма НСП по ставке [13:04:38] 1131 (141) - счетчики операций «расход» [13:04:38] 1135 (4) - 0 - количество чеков по признаку расчетов [13:04:38] 1201 (0) - 0.00 - общая итоговая сумма в чеках [13:04:38] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [13:04:38] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [13:04:38] 1024 (117) - суммы налогов [13:04:38] 1006 (9) - суммы НДС [13:04:38] 1010 (1) - 0% - код ставки НДС [13:04:38] 1011 (0) - 0.00 - сумма НДС по ставке [13:04:38] 1006 (9) - суммы НДС [13:04:38] 1010 (1) - 12% - код ставки НДС [13:04:38] 1011 (0) - 0.00 - сумма НДС по ставке [13:04:38] 1007 (9) - суммы НСП [13:04:38] 1014 (1) - 0% - код ставки НСП [13:04:38] 1015 (0) - 0.00 - сумма НСП по ставке [13:04:38] 1007 (9) - суммы НСП [13:04:38] 1014 (1) - 1% - код ставки НСП [13:04:38] 1015 (0) - 0.00 - сумма НСП по ставке [13:04:38] 1007 (9) - суммы НСП [13:04:38] 1014 (1) - 2% - код ставки НСП [13:04:38] 1015 (0) - 0.00 - сумма НСП по ставке [13:04:38] 1007 (9) - суммы НСП [13:04:38] 1014 (1) - 3% - код ставки НСП [13:04:38] 1015 (0) - 0.00 - сумма НСП по ставке [13:04:38] 1007 (9) - суммы НСП [13:04:38] 1014 (1) - 5% - код ставки НСП [13:04:38] 1015 (0) - 0.00 - сумма НСП по ставке [13:04:38] 1007 (9) - суммы НСП [13:04:38] 1014 (1) - 0,50% - код ставки НСП [13:04:38] 1015 (0) - 0.00 - сумма НСП по ставке [13:04:38] 1007 (9) - суммы НСП [13:04:38] 1014 (1) - 1,50% - код ставки НСП [13:04:38] 1015 (0) - 0.00 - сумма НСП по ставке [13:04:38] 1132 (141) - счетчики операций «возврат расхода» [13:04:38] 1135 (4) - 0 - количество чеков по признаку расчетов [13:04:38] 1201 (0) - 0.00 - общая итоговая сумма в чеках [13:04:38] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [13:04:38] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [13:04:38] 1024 (117) - суммы налогов [13:04:38] 1006 (9) - суммы НДС [13:04:38] 1010 (1) - 0% - код ставки НДС [13:04:38] 1011 (0) - 0.00 - сумма НДС по ставке [13:04:38] 1006 (9) - суммы НДС [13:04:38] 1010 (1) - 12% - код ставки НДС [13:04:38] 1011 (0) - 0.00 - сумма НДС по ставке [13:04:38] 1007 (9) - суммы НСП [13:04:38] 1014 (1) - 0% - код ставки НСП [13:04:38] 1015 (0) - 0.00 - сумма НСП по ставке [13:04:38] 1007 (9) - суммы НСП [13:04:38] 1014 (1) - 1% - код ставки НСП [13:04:38] 1015 (0) - 0.00 - сумма НСП по ставке [13:04:38] 1007 (9) - суммы НСП [13:04:38] 1014 (1) - 2% - код ставки НСП [13:04:38] 1015 (0) - 0.00 - сумма НСП по ставке [13:04:38] 1007 (9) - суммы НСП [13:04:38] 1014 (1) - 3% - код ставки НСП [13:04:38] 1015 (0) - 0.00 - сумма НСП по ставке [13:04:38] 1007 (9) - суммы НСП [13:04:38] 1014 (1) - 5% - код ставки НСП [13:04:38] 1015 (0) - 0.00 - сумма НСП по ставке [13:04:38] 1007 (9) - суммы НСП [13:04:38] 1014 (1) - 0,50% - код ставки НСП [13:04:38] 1015 (0) - 0.00 - сумма НСП по ставке [13:04:38] 1007 (9) - суммы НСП [13:04:38] 1014 (1) - 1,50% - код ставки НСП [13:04:38] 1015 (0) - 0.00 - сумма НСП по ставке [13:04:38] 1133 (588) - - счетчики коррекции - не используются [13:04:38]SetTLVBufToDocument [13:04:38]Processing tag 1194 (04AA) [13:04:38]Load OK [13:04:38]SetTLVBufToDocument [13:04:38]Processing tag 1134 (046E) [13:04:38]Malloc new data [13:04:38]Processing tag 1129 (0469) [13:04:38]Load OK [13:04:38]SetTLVBufToDocument [13:04:38]Processing tag 1135 (046F) [13:04:38]Malloc new data [13:04:38]Processing tag 1201 (04B1) [13:04:38]Malloc new data [13:04:38]Processing tag 1136 (0470) [13:04:38]Malloc new data [13:04:38]Processing tag 1138 (0472) [13:04:38]Malloc new data [13:04:38]Processing tag 1024 (0400) [13:04:38]Load OK [13:04:38]SetTLVBufToDocument [13:04:38]Processing tag 1006 (03EE) [13:04:38]Load OK [13:04:38]SetTLVBufToDocument [13:04:38]Processing tag 1010 (03F2) [13:04:38]Malloc new data [13:04:38]Processing tag 1011 (03F3) [13:04:38]Malloc new data [13:04:38]SetTLVBufToDocument err=0 [13:04:38]Processing tag 1006 (03EE) [13:04:38]Load OK [13:04:38]SetTLVBufToDocument [13:04:38]Processing tag 1010 (03F2) [13:04:38]Malloc new data [13:04:38]Processing tag 1011 (03F3) [13:04:38]Malloc new data [13:04:38]SetTLVBufToDocument err=0 [13:04:38]Processing tag 1007 (03EF) [13:04:38]Load OK [13:04:38]SetTLVBufToDocument [13:04:38]Processing tag 1014 (03F6) [13:04:38]Malloc new data [13:04:38]Processing tag 1015 (03F7) [13:04:38]Malloc new data [13:04:38]SetTLVBufToDocument err=0 [13:04:38]Processing tag 1007 (03EF) [13:04:38]Load OK [13:04:38]SetTLVBufToDocument [13:04:38]Processing tag 1014 (03F6) [13:04:38]Malloc new data [13:04:38]Processing tag 1015 (03F7) [13:04:38]Malloc new data [13:04:38]SetTLVBufToDocument err=0 [13:04:38]Processing tag 1007 (03EF) [13:04:38]Load OK [13:04:38]SetTLVBufToDocument [13:04:38]Processing tag 1014 (03F6) [13:04:38]Malloc new data [13:04:38]Processing tag 1015 (03F7) [13:04:38]Malloc new data [13:04:38]SetTLVBufToDocument err=0 [13:04:38]Processing tag 1007 (03EF) [13:04:38]Load OK [13:04:38]SetTLVBufToDocument [13:04:38]Processing tag 1014 (03F6) [13:04:38]Malloc new data [13:04:38]Processing tag 1015 (03F7) [13:04:38]Malloc new data [13:04:38]SetTLVBufToDocument err=0 [13:04:38]Processing tag 1007 (03EF) [13:04:38]Load OK [13:04:38]SetTLVBufToDocument [13:04:38]Processing tag 1014 (03F6) [13:04:38]Malloc new data [13:04:38]Processing tag 1015 (03F7) [13:04:38]Malloc new data [13:04:38]SetTLVBufToDocument err=0 [13:04:38]Processing tag 1007 (03EF) [13:04:38]Load OK [13:04:38]SetTLVBufToDocument [13:04:38]Processing tag 1014 (03F6) [13:04:38]Malloc new data [13:04:38]Processing tag 1015 (03F7) [13:04:38]Malloc new data [13:04:38]SetTLVBufToDocument err=0 [13:04:38]Processing tag 1007 (03EF) [13:04:38]Load OK [13:04:38]SetTLVBufToDocument [13:04:38]Processing tag 1014 (03F6) [13:04:38]Malloc new data [13:04:38]Processing tag 1015 (03F7) [13:04:38]Malloc new data [13:04:38]SetTLVBufToDocument err=0 [13:04:38]SetTLVBufToDocument err=0 [13:04:38]SetTLVBufToDocument err=0 [13:04:38]Processing tag 1130 (046A) [13:04:38]Load OK [13:04:38]SetTLVBufToDocument [13:04:38]Processing tag 1135 (046F) [13:04:38]Malloc new data [13:04:38]Processing tag 1201 (04B1) [13:04:38]Malloc new data [13:04:38]Processing tag 1136 (0470) [13:04:38]Malloc new data [13:04:38]Processing tag 1138 (0472) [13:04:38]Malloc new data [13:04:38]Processing tag 1024 (0400) [13:04:38]Load OK [13:04:38]SetTLVBufToDocument [13:04:38]Processing tag 1006 (03EE) [13:04:38]Load OK [13:04:38]SetTLVBufToDocument [13:04:38]Processing tag 1010 (03F2) [13:04:38]Malloc new data [13:04:38]Processing tag 1011 (03F3) [13:04:38]Malloc new data [13:04:38]SetTLVBufToDocument err=0 [13:04:38]Processing tag 1006 (03EE) [13:04:38]Load OK [13:04:38]SetTLVBufToDocument [13:04:38]Processing tag 1010 (03F2) [13:04:38]Malloc new data [13:04:38]Processing tag 1011 (03F3) [13:04:38]Malloc new data [13:04:38]SetTLVBufToDocument err=0 [13:04:38]Processing tag 1007 (03EF) [13:04:38]Load OK [13:04:38]SetTLVBufToDocument [13:04:38]Processing tag 1014 (03F6) [13:04:38]Malloc new data [13:04:38]Processing tag 1015 (03F7) [13:04:38]Malloc new data [13:04:38]SetTLVBufToDocument err=0 [13:04:38]Processing tag 1007 (03EF) [13:04:38]Load OK [13:04:38]SetTLVBufToDocument [13:04:38]Processing tag 1014 (03F6) [13:04:38]Malloc new data [13:04:38]Processing tag 1015 (03F7) [13:04:38]Malloc new data [13:04:38]SetTLVBufToDocument err=0 [13:04:38]Processing tag 1007 (03EF) [13:04:38]Load OK [13:04:38]SetTLVBufToDocument [13:04:38]Processing tag 1014 (03F6) [13:04:38]Malloc new data [13:04:38]Processing tag 1015 (03F7) [13:04:38]Malloc new data [13:04:38]SetTLVBufToDocument err=0 [13:04:38]Processing tag 1007 (03EF) [13:04:38]Load OK [13:04:38]SetTLVBufToDocument [13:04:38]Processing tag 1014 (03F6) [13:04:38]Malloc new data [13:04:38]Processing tag 1015 (03F7) [13:04:38]Malloc new data [13:04:38]SetTLVBufToDocument err=0 [13:04:38]Processing tag 1007 (03EF) [13:04:38]Load OK [13:04:38]SetTLVBufToDocument [13:04:38]Processing tag 1014 (03F6) [13:04:38]Malloc new data [13:04:38]Processing tag 1015 (03F7) [13:04:38]Malloc new data [13:04:38]SetTLVBufToDocument err=0 [13:04:38]Processing tag 1007 (03EF) [13:04:38]Load OK [13:04:38]SetTLVBufToDocument [13:04:38]Processing tag 1014 (03F6) [13:04:38]Malloc new data [13:04:38]Processing tag 1015 (03F7) [13:04:38]Malloc new data [13:04:38]SetTLVBufToDocument err=0 [13:04:38]Processing tag 1007 (03EF) [13:04:38]Load OK [13:04:38]SetTLVBufToDocument [13:04:38]Processing tag 1014 (03F6) [13:04:38]Malloc new data [13:04:38]Processing tag 1015 (03F7) [13:04:38]Malloc new data [13:04:38]SetTLVBufToDocument err=0 [13:04:38]SetTLVBufToDocument err=0 [13:04:38]SetTLVBufToDocument err=0 [13:04:38]Processing tag 1131 (046B) [13:04:38]Load OK [13:04:38]SetTLVBufToDocument [13:04:38]Processing tag 1135 (046F) [13:04:38]Malloc new data [13:04:38]Processing tag 1201 (04B1) [13:04:38]Malloc new data [13:04:38]Processing tag 1136 (0470) [13:04:38]Malloc new data [13:04:38]Processing tag 1138 (0472) [13:04:38]Malloc new data [13:04:38]Processing tag 1024 (0400) [13:04:38]Load OK [13:04:38]SetTLVBufToDocument [13:04:38]Processing tag 1006 (03EE) [13:04:38]Load OK [13:04:38]SetTLVBufToDocument [13:04:38]Processing tag 1010 (03F2) [13:04:38]Malloc new data [13:04:38]Processing tag 1011 (03F3) [13:04:38]Malloc new data [13:04:38]SetTLVBufToDocument err=0 [13:04:38]Processing tag 1006 (03EE) [13:04:38]Load OK [13:04:38]SetTLVBufToDocument [13:04:38]Processing tag 1010 (03F2) [13:04:38]Malloc new data [13:04:38]Processing tag 1011 (03F3) [13:04:38]Malloc new data [13:04:38]SetTLVBufToDocument err=0 [13:04:38]Processing tag 1007 (03EF) [13:04:38]Load OK [13:04:38]SetTLVBufToDocument [13:04:38]Processing tag 1014 (03F6) [13:04:38]Malloc new data [13:04:38]Processing tag 1015 (03F7) [13:04:38]Malloc new data [13:04:38]SetTLVBufToDocument err=0 [13:04:38]Processing tag 1007 (03EF) [13:04:38]Load OK [13:04:38]SetTLVBufToDocument [13:04:38]Processing tag 1014 (03F6) [13:04:38]Malloc new data [13:04:38]Processing tag 1015 (03F7) [13:04:38]Malloc new data [13:04:38]SetTLVBufToDocument err=0 [13:04:38]Processing tag 1007 (03EF) [13:04:38]Load OK [13:04:38]SetTLVBufToDocument [13:04:38]Processing tag 1014 (03F6) [13:04:38]Malloc new data [13:04:38]Processing tag 1015 (03F7) [13:04:38]Malloc new data [13:04:38]SetTLVBufToDocument err=0 [13:04:38]Processing tag 1007 (03EF) [13:04:38]Load OK [13:04:38]SetTLVBufToDocument [13:04:38]Processing tag 1014 (03F6) [13:04:38]Malloc new data [13:04:38]Processing tag 1015 (03F7) [13:04:38]Malloc new data [13:04:38]SetTLVBufToDocument err=0 [13:04:38]Processing tag 1007 (03EF) [13:04:38]Load OK [13:04:38]SetTLVBufToDocument [13:04:38]Processing tag 1014 (03F6) [13:04:38]Malloc new data [13:04:38]Processing tag 1015 (03F7) [13:04:38]Malloc new data [13:04:38]SetTLVBufToDocument err=0 [13:04:38]Processing tag 1007 (03EF) [13:04:38]Load OK [13:04:38]SetTLVBufToDocument [13:04:38]Processing tag 1014 (03F6) [13:04:38]Malloc new data [13:04:38]Processing tag 1015 (03F7) [13:04:38]Malloc new data [13:04:38]SetTLVBufToDocument err=0 [13:04:38]Processing tag 1007 (03EF) [13:04:38]Load OK [13:04:38]SetTLVBufToDocument [13:04:38]Processing tag 1014 (03F6) [13:04:38]Malloc new data [13:04:38]Processing tag 1015 (03F7) [13:04:38]Malloc new data [13:04:38]SetTLVBufToDocument err=0 [13:04:38]SetTLVBufToDocument err=0 [13:04:38]SetTLVBufToDocument err=0 [13:04:38]Processing tag 1132 (046C) [13:04:38]Load OK [13:04:38]SetTLVBufToDocument [13:04:38]Processing tag 1135 (046F) [13:04:38]Malloc new data [13:04:38]Processing tag 1201 (04B1) [13:04:38]Malloc new data [13:04:38]Processing tag 1136 (0470) [13:04:38]Malloc new data [13:04:38]Processing tag 1138 (0472) [13:04:38]Malloc new data [13:04:38]Processing tag 1024 (0400) [13:04:38]Load OK [13:04:38]SetTLVBufToDocument [13:04:38]Processing tag 1006 (03EE) [13:04:38]Load OK [13:04:38]SetTLVBufToDocument [13:04:38]Processing tag 1010 (03F2) [13:04:38]Malloc new data [13:04:38]Processing tag 1011 (03F3) [13:04:38]Malloc new data [13:04:38]SetTLVBufToDocument err=0 [13:04:38]Processing tag 1006 (03EE) [13:04:38]Load OK [13:04:38]SetTLVBufToDocument [13:04:38]Processing tag 1010 (03F2) [13:04:38]Malloc new data [13:04:38]Processing tag 1011 (03F3) [13:04:38]Malloc new data [13:04:38]SetTLVBufToDocument err=0 [13:04:38]Processing tag 1007 (03EF) [13:04:38]Load OK [13:04:38]SetTLVBufToDocument [13:04:38]Processing tag 1014 (03F6) [13:04:38]Malloc new data [13:04:38]Processing tag 1015 (03F7) [13:04:38]Malloc new data [13:04:38]SetTLVBufToDocument err=0 [13:04:38]Processing tag 1007 (03EF) [13:04:38]Load OK [13:04:38]SetTLVBufToDocument [13:04:38]Processing tag 1014 (03F6) [13:04:38]Malloc new data [13:04:38]Processing tag 1015 (03F7) [13:04:38]Malloc new data [13:04:38]SetTLVBufToDocument err=0 [13:04:38]Processing tag 1007 (03EF) [13:04:38]Load OK [13:04:38]SetTLVBufToDocument [13:04:38]Processing tag 1014 (03F6) [13:04:38]Malloc new data [13:04:38]Processing tag 1015 (03F7) [13:04:38]Malloc new data [13:04:38]SetTLVBufToDocument err=0 [13:04:38]Processing tag 1007 (03EF) [13:04:38]Load OK [13:04:38]SetTLVBufToDocument [13:04:38]Processing tag 1014 (03F6) [13:04:38]Malloc new data [13:04:38]Processing tag 1015 (03F7) [13:04:38]Malloc new data [13:04:38]SetTLVBufToDocument err=0 [13:04:38]Processing tag 1007 (03EF) [13:04:38]Load OK [13:04:38]SetTLVBufToDocument [13:04:38]Processing tag 1014 (03F6) [13:04:38]Malloc new data [13:04:39]Processing tag 1015 (03F7) [13:04:39]Malloc new data [13:04:39]SetTLVBufToDocument err=0 [13:04:39]Processing tag 1007 (03EF) [13:04:39]Load OK [13:04:39]SetTLVBufToDocument [13:04:39]Processing tag 1014 (03F6) [13:04:39]Malloc new data [13:04:39]Processing tag 1015 (03F7) [13:04:39]Malloc new data [13:04:39]SetTLVBufToDocument err=0 [13:04:39]Processing tag 1007 (03EF) [13:04:39]Load OK [13:04:39]SetTLVBufToDocument [13:04:39]Processing tag 1014 (03F6) [13:04:39]Malloc new data [13:04:39]Processing tag 1015 (03F7) [13:04:39]Malloc new data [13:04:39]SetTLVBufToDocument err=0 [13:04:39]SetTLVBufToDocument err=0 [13:04:39]SetTLVBufToDocument err=0 [13:04:39]Processing tag 1133 (046D) [13:04:39]Malloc new data [13:04:39]SetTLVBufToDocument err=0 [13:04:39]SetTLVBufToDocument err=0 [13:04:39]Malloc new data [13:04:39]SAM_PROTO_GetFMData [13:04:39]wFMCommunicate request_size=4 [13:04:39]MH_SAM_APDU [13:04:39]CAPDU: 80 13 03 00 [13:04:39]Write to MH i2c: E2 08 00 57 AC 80 13 03 00 00 00 00 00 82 [13:04:39]Write i2c OK [13:04:39]MH_I2C_Read... [13:04:39]OFD Sender: No OFD packet to send [13:04:39]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [13:04:39]Read from MH i2c: E2 [13:04:39]MH_I2C_Read... [13:04:39]Read from MH i2c: E2 FD 00 [13:04:39]MH_I2C_Read... [13:04:39]Read from MH i2c: E2 FD 00 57 AC 00 C5 04 85 04 C1 04 6E 04 04 00 3C 92 01 00 69 04 A3 00 6F 04 04 00 EA 8D 01 00 B1 04 05 00 F6 AF 95 3B 04 70 04 05 00 18 0F 41 58 03 72 04 04 00 DE A0 54 E3 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 CB 23 16 73 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 3D 0C 97 09 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9C 00 6F 04 04 00 52 04 00 00 B1 04 04 00 8C D8 05 18 70 04 04 00 8C D8 05 18 72 04 00 00 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 EC 1F 8D 02 EF 03 09 90 00 30 [13:04:39]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 3C 92 01 00 69 04 A3 00 6F 04 04 00 EA 8D 01 00 B1 04 05 00 F6 AF 95 3B 04 70 04 05 00 18 0F 41 58 03 72 04 04 00 DE A0 54 E3 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 CB 23 16 73 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 3D 0C 97 09 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9C 00 6F 04 04 00 52 04 00 00 B1 04 04 00 8C D8 05 18 70 04 04 00 8C D8 05 18 72 04 00 00 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 EC 1F 8D 02 EF 03 09 90 00 [13:04:39]wFMCommunicate OK [13:04:39]wFMCommunicate request_size=4 [13:04:39]MH_SAM_APDU [13:04:39]CAPDU: 80 17 00 00 [13:04:39]Write to MH i2c: E2 08 00 58 AC 80 17 00 00 00 00 00 00 84 [13:04:39]Write i2c OK [13:04:39]MH_I2C_Read... [13:04:40]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:04:40]Read from MH i2c: E2 [13:04:40]MH_I2C_Read... [13:04:40]Read from MH i2c: E2 FD 00 [13:04:40]MH_I2C_Read... [13:04:40]Read from MH i2c: E2 FD 00 58 AC 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 04 6D 36 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 E1 [13:04:40]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 04 6D 36 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 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 17 00 00 [13:04:40]Write to MH i2c: E2 08 00 59 AC 80 17 00 00 00 00 00 00 85 [13:04:40]Write i2c OK [13:04:40]MH_I2C_Read... [13:04:40]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:04:40]Read from MH i2c: E2 [13:04:40]MH_I2C_Read... [13:04:40]Read from MH i2c: E2 FD 00 [13:04:40]MH_I2C_Read... [13:04:40]Read from MH i2c: E2 FD 00 59 AC 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 97 [13:04:40]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 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 17 00 00 [13:04:40]Write to MH i2c: E2 08 00 5A AC 80 17 00 00 00 00 00 00 86 [13:04:40]Write i2c OK [13:04:40]MH_I2C_Read... [13:04:41]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:04:41]Read from MH i2c: E2 [13:04:41]MH_I2C_Read... [13:04:41]Read from MH i2c: E2 FD 00 [13:04:41]MH_I2C_Read... [13:04:41]Read from MH i2c: E2 FD 00 5A AC 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 12 [13:04:41]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [13:04:41]wFMCommunicate OK [13:04:41]wFMCommunicate request_size=4 [13:04:41]MH_SAM_APDU [13:04:41]CAPDU: 80 17 00 00 [13:04:41]Write to MH i2c: E2 08 00 5B AC 80 17 00 00 00 00 00 00 87 [13:04:41]Write i2c OK [13:04:41]MH_I2C_Read... [13:04:41]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [13:04:41]Read from MH i2c: E2 [13:04:41]MH_I2C_Read... [13:04:41]Read from MH i2c: E2 E2 00 [13:04:41]MH_I2C_Read... [13:04:41]Read from MH i2c: E2 E2 00 5B AC 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 65 [13:04:41]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [13:04:41]wFMCommunicate OK [13:04:41]SAM_PROTO_GetFMData done [13:04:41]FM_GetFMData:85 04 C1 04 6E 04 04 00 3C 92 01 00 69 04 A3 00 6F 04 04 00 EA 8D 01 00 B1 04 05 00 F6 AF 95 3B 04 70 04 05 00 18 0F 41 58 03 72 04 04 00 DE A0 54 E3 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 CB 23 16 73 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 3D 0C 97 09 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9C 00 6F 04 04 00 52 04 00 00 B1 04 04 00 8C D8 05 18 70 04 04 00 8C D8 05 18 72 04 00 00 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 EC 1F 8D 02 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 04 6D 36 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [13:04:42]oper:6F 04 04 00 EA 8D 01 00 B1 04 05 00 F6 AF 95 3B 04 70 04 05 00 18 0F 41 58 03 72 04 04 00 DE A0 54 E3 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 CB 23 16 73 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 3D 0C 97 09 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [13:04:42]total:F6 AF 95 3B 04 [13:04:42]Malloc new data [13:04:42]oper:6F 04 04 00 52 04 00 00 B1 04 04 00 8C D8 05 18 70 04 04 00 8C D8 05 18 72 04 00 00 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 EC 1F 8D 02 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 04 6D 36 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [13:04:42]total:8C D8 05 18 [13:04:42]Malloc new data [13:04:42]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 [13:04:42]total: [13:04:42]Malloc new data [13:04:42]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 [13:04:43]total: [13:04:43]Malloc new data [13:04:43]KKMPrepareXReportFMData err=0 [13:04:43]Х отчет ИНН: 02508201610067 Кассир: Байбугуева Г. 19.06.2024 13:04 Смена: 266 РНМ: 0000000000092785 ЗНМ: 0300000164 СНО: Общий режим Всего чеков: 108 ИТОГИ ПРИХОД Чеков: 108 Общий итог: 216181.20 Итого наличными: 149730.00 Итого безнал.: 66451.20 НДС 0% : 0.00 НДС 12% : 22961.07 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 1913.28 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 0 Общий итог: 0.00 Итого наличными: 0.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 0.00 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 0.00 ИТОГИ РАСХОД Чеков: 0 Общий итог: 0.00 Итого наличными: 0.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 0.00 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 0.00 ИТОГИ ВОЗВРАТ РАСХОДА Чеков: 0 Общий итог: 0.00 Итого наличными: 0.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 0.00 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 0.00 Сумма внесений: 0.00 Сумма выплат: 0.00 Нал. в кассе: 149730.00 НС Приход: 181795348.38 НС Возвр.Прихода: 4030363.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФМ: 0000000000875093 [13:04:43]StoreToDocumentArchive [13:04:43]MH_GetDate [13:04:43]Write to MH i2c: F0 00 00 5C AC F7 [13:04:43]Write i2c OK [13:04:43]MH_I2C_Read... [13:04:43]Read from MH i2c: F0 [13:04:43]MH_I2C_Read... [13:04:43]Read from MH i2c: F0 09 00 [13:04:43]MH_I2C_Read... [13:04:43]Read from MH i2c: F0 09 00 5C AC 00 77 D7 72 66 BD 8F 7C 64 52 [13:04:43]shift 266 fd 1718802295 [13:04:43]Create dir for shift 0266 [13:04:43]save to /storage/0266/doc_1718802295 [13:04:43]save last doc name /storage/0266/doc_1718802295 to /storage/kkm_last_doc_name [13:04:43]save OK [13:04:43]Clear old archive folders... [13:04:43]NVStorageSaveData kkm_last_timestamp [13:04:43]File name is /storage/kkm_last_timestamp [13:04:43]Write 4 bytes [13:04:43]NVStorageSaveData done [13:04:43]ExternCall_PrintAddStr [13:04:43]wPrintStart [13:04:43]Write to MH i2c: 01 00 00 5D AC 09 [13:04:43]Write i2c OK [13:04:43]MH_I2C_Read... [13:04:43]Read from MH i2c: 01 [13:04:43]MH_I2C_Read... [13:04:43]Read from MH i2c: 01 07 00 [13:04:43]MH_I2C_Read... [13:04:43]Read from MH i2c: 01 07 00 5D AC 00 00 00 00 00 FF 0F 1E [13:04:43]RasterBufferAndPrint [13:04:43]line Х отчет [13:04:43]line ИНН: 02508201610067 [13:04:43]line Кассир: Байбугуева Г. [13:04:43]line 19.06.2024 13:04 [13:04:43]line Смена: 266 [13:04:43]line РНМ: 0000000000092785 [13:04:43]line ЗНМ: 0300000164 [13:04:43]line СНО: Общий режим [13:04:43]line Всего чеков: 108 [13:04:43]line ИТОГИ ПРИХОД [13:04:43]line Чеков: 108 [13:04:43]line Общий итог: 216181.20 [13:04:43]line Итого наличными: 149730.00 [13:04:43]line Итого безнал.: 66451.20 [13:04:43]line НДС 0% : 0.00 [13:04:43]line НДС 12% : 22961.07 [13:04:43]line НСП 0% : 0.00 [13:04:43]line НСП 1,50% : 0.00 [13:04:43]line НСП 0,50% : 0.00 [13:04:43]line НСП 5% : 0.00 [13:04:43]line НСП 3% : 0.00 [13:04:43]line НСП 2% : 0.00 [13:04:43]line НСП 1% : 1913.28 [13:04:43]line ИТОГИ ВОЗВРАТ ПРИХОДА [13:04:43]line Чеков: 0 [13:04:43]line Общий итог: 0.00 [13:04:43]line Итого наличными: 0.00 [13:04:43]line Итого безнал.: 0.00 [13:04:43]line НДС 0% : 0.00 [13:04:43]line НДС 12% : 0.00 [13:04:43]line НСП 0% : 0.00 [13:04:43]line НСП 1,50% : 0.00 [13:04:43]line НСП 0,50% : 0.00 [13:04:43]line НСП 5% : 0.00 [13:04:43]line НСП 3% : 0.00 [13:04:43]line НСП 2% : 0.00 [13:04:43]line НСП 1% : 0.00 [13:04:43]line ИТОГИ РАСХОД [13:04:43]line Чеков: 0 [13:04:43]line Общий итог: 0.00 [13:04:43]line Итого наличными: 0.00 [13:04:43]line Итого безнал.: 0.00 [13:04:43]line НДС 0% : 0.00 [13:04:43]line НДС 12% : 0.00 [13:04:43]line НСП 0% : 0.00 [13:04:43]line НСП 1,50% : 0.00 [13:04:43]line НСП 0,50% : 0.00 [13:04:43]line НСП 5% : 0.00 [13:04:43]line НСП 3% : 0.00 [13:04:43]line НСП 2% : 0.00 [13:04:43]line НСП 1% : 0.00 [13:04:43]line ИТОГИ ВОЗВРАТ РАСХОДА [13:04:43]line Чеков: 0 [13:04:43]line Общий итог: 0.00 [13:04:43]line Итого наличными: 0.00 [13:04:43]line Итого безнал.: 0.00 [13:04:43]line НДС 0% : 0.00 [13:04:43]line НДС 12% : 0.00 [13:04:43]line НСП 0% : 0.00 [13:04:43]line НСП 1,50% : 0.00 [13:04:43]line НСП 0,50% : 0.00 [13:04:43]line НСП 5% : 0.00 [13:04:43]line НСП 3% : 0.00 [13:04:43]line НСП 2% : 0.00 [13:04:43]line НСП 1% : 0.00 [13:04:43]line Сумма внесений: 0.00 [13:04:43]line Сумма выплат: 0.00 [13:04:43]line Нал. в кассе: 149730.00 [13:04:43]line НС Приход: 181795348.38 [13:04:43]line НС Возвр.Прихода: 4030363.00 [13:04:43]line НС Расход: 0.00 [13:04:43]line НС Возвр.Расхода: 0.00 [13:04:43]line ФМ: 0000000000875093 [13:04:43]written 0, free lines is 4095 [13:04:43]Write to MH i2c: 01 00 00 A8 AC 54 [13:04:43]Write i2c OK [13:04:43]MH_I2C_Read... [13:04:43]Read from MH i2c: 01 [13:04:43]MH_I2C_Read... [13:04:43]Read from MH i2c: 01 07 00 [13:04:43]MH_I2C_Read... [13:04:43]Read from MH i2c: 01 07 00 A8 AC 00 00 00 00 00 D6 0A 3B [13:04:43]RasterBufferAndPrint [13:04:43]line [13:04:43]line [13:04:43]line [13:04:43]line [13:04:43]line [13:04:43]written 0, free lines is 2808 [13:04:43]MH_Cut [13:04:43]Write to MH i2c: D1 01 00 AF AC 01 2D [13:04:43]Write i2c OK [13:04:43]MH_I2C_Read... [13:04:43]Read from MH i2c: D1 [13:04:43]MH_I2C_Read... [13:04:43]Read from MH i2c: D1 01 00 [13:04:43]MH_I2C_Read... [13:04:43]Read from MH i2c: D1 01 00 AF AC 00 2C [13:04:43]Write to MH i2c: 01 00 00 B0 AC 5C [13:04:43]Write i2c OK [13:04:43]MH_I2C_Read... [13:04:44]OFD Sender: No OFD packet to send [13:04:44]*** Cut start [13:04:44]*** Partial cut [13:04:44]*** CUTSNS_PIN = 1 [13:04:45]*** CUTSNS_PIN = 0 [13:04:45]*** Brake cut motor [13:04:45]Read from MH i2c: 01 [13:04:45]MH_I2C_Read... [13:04:45]*** Stop cut motor [13:04:45]*** Cut end [13:04:45]Read from MH i2c: 01 07 00 [13:04:45]MH_I2C_Read... [13:04:45]Read from MH i2c: 01 07 00 B0 AC 00 00 00 00 00 FF 0F 71 [13:04:45]process_action x_report done [13:04:45]requested_data is exist [13:04:45]produce_requested_data [13:04:45]requested_item fd.num is exist - process it [13:04:45]SAM_PROTO_GetFieldsCounters [13:04:45]wFMCommunicate request_size=4 [13:04:45]MH_SAM_APDU [13:04:45]CAPDU: 80 13 00 00 [13:04:45]Write to MH i2c: E2 08 00 B1 AC 80 13 00 00 00 00 00 00 D9 [13:04:45]Write i2c OK [13:04:45]MH_I2C_Read... [13:04:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:04:45]Read from MH i2c: E2 [13:04:45]MH_I2C_Read... [13:04:45]Read from MH i2c: E2 62 00 [13:04:45]MH_I2C_Read... [13:04:45]Read from MH i2c: E2 62 00 B1 AC 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 FE 94 01 00 0E 04 04 00 61 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 39 [13:04:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 FE 94 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 6C 00 00 00 5E 04 04 00 6C 00 00 00 57 04 04 00 6D 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:04:45]wFMCommunicate OK [13:04:45]SAM_PROTO_GetFieldsCounters done [13:04:45]requested_item shift.num is exist - process it [13:04:45]requested_item shift.opened is exist - process it [13:04:45]req_shift_opened [13:04:45]FM_GetShiftState [13:04:45]SAM_PROTO_GetShiftState [13:04:45]wFMCommunicate request_size=4 [13:04:45]MH_SAM_APDU [13:04:45]CAPDU: 80 13 01 00 [13:04:45]Write to MH i2c: E2 08 00 B2 AC 80 13 01 00 00 00 00 00 DB [13:04:45]Write i2c OK [13:04:45]MH_I2C_Read... [13:04:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:04:45]Read from MH i2c: E2 [13:04:45]MH_I2C_Read... [13:04:45]Read from MH i2c: E2 0E 00 [13:04:45]MH_I2C_Read... [13:04:45]Read from MH i2c: E2 0E 00 B2 AC 00 09 00 01 04 26 72 66 00 00 00 00 90 00 E9 [13:04:45]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [13:04:45]wFMCommunicate OK [13:04:45]SAM_PROTO_GetShiftState done [13:04:45]FM_GetShiftState done [13:04:45]req_shift_opened done [13:04:45]requested_item shift.open_date is exist - process it [13:04:45]req_shift_open_date [13:04:45]req_shift_open_date done [13:04:45]produce_requested_data done [13:04:45]produce_requested_data return {"fd.num":103678,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [13:04:45]process_action_free x_report [13:04:45]json_value_free [13:04:45]json_value_free done [13:04:45]process_json_proto returns [13:04:45]Send response to host [13:04:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":103678,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [13:04:45]free response buf [13:04:45]execute_script done [13:04:45]execute_script returns [13:04:45]free content buf [13:04:45]Sock 9.Close socket [13:04:45]Sock 9.Thread stoped [13:04:49]OFD Sender: No OFD packet to send [13:04:54]OFD Sender: No OFD packet to send [13:04:59]OFD Sender: No OFD packet to send [13:05:04]OFD Sender: No OFD packet to send [13:05:09]OFD Sender: No OFD packet to send [13:05:14]OFD Sender: No OFD packet to send [13:05:19]OFD Sender: No OFD packet to send [13:05:24]OFD Sender: No OFD packet to send [13:05:29]OFD Sender: No OFD packet to send [13:05:34]OFD Sender: No OFD packet to send [13:05:39]OFD Sender: No OFD packet to send [13:05:44]OFD Sender: No OFD packet to send [13:05:49]OFD Sender: No OFD packet to send [13:05:54]OFD Sender: No OFD packet to send [13:05:59]OFD Sender: No OFD packet to send [13:06:04]OFD Sender: No OFD packet to send [13:06:09]OFD Sender: No OFD packet to send [13:06:14]OFD Sender: No OFD packet to send [13:06:19]OFD Sender: No OFD packet to send [13:06:24]OFD Sender: No OFD packet to send [13:06:29]OFD Sender: No OFD packet to send [13:06:34]OFD Sender: No OFD packet to send [13:06:39]OFD Sender: No OFD packet to send [13:06:44]OFD Sender: No OFD packet to send [13:06:49]OFD Sender: No OFD packet to send [13:06:54]OFD Sender: No OFD packet to send [13:06:59]OFD Sender: No OFD packet to send [13:07:04]OFD Sender: No OFD packet to send [13:07:09]OFD Sender: No OFD packet to send [13:07:14]OFD Sender: No OFD packet to send [13:07:19]OFD Sender: No OFD packet to send [13:07:24]OFD Sender: No OFD packet to send [13:07:29]OFD Sender: No OFD packet to send [13:07:34]OFD Sender: No OFD packet to send [13:07:39]OFD Sender: No OFD packet to send [13:07:44]OFD Sender: No OFD packet to send [13:07:49]OFD Sender: No OFD packet to send [13:07:54]OFD Sender: No OFD packet to send [13:07:59]OFD Sender: No OFD packet to send [13:08:04]OFD Sender: No OFD packet to send [13:08:09]OFD Sender: No OFD packet to send [13:08:14]OFD Sender: No OFD packet to send [13:08:19]OFD Sender: No OFD packet to send [13:08:24]OFD Sender: No OFD packet to send [13:08:29]OFD Sender: No OFD packet to send [13:08:34]OFD Sender: No OFD packet to send [13:08:39]OFD Sender: No OFD packet to send [13:08:44]OFD Sender: No OFD packet to send [13:08:49]OFD Sender: No OFD packet to send [13:08:54]OFD Sender: No OFD packet to send [13:08:59]OFD Sender: No OFD packet to send [13:09:04]OFD Sender: No OFD packet to send [13:09:09]OFD Sender: No OFD packet to send [13:09:14]OFD Sender: No OFD packet to send [13:09:19]OFD Sender: No OFD packet to send [13:09:24]OFD Sender: No OFD packet to send [13:09:29]OFD Sender: No OFD packet to send [13:09:34]OFD Sender: No OFD packet to send [13:09:39]OFD Sender: No OFD packet to send [13:09:44]OFD Sender: No OFD packet to send [13:09:49]OFD Sender: No OFD packet to send [13:09:54]OFD Sender: No OFD packet to send [13:09:59]OFD Sender: No OFD packet to send [13:10:04]OFD Sender: No OFD packet to send [13:10:09]OFD Sender: No OFD packet to send [13:10:14]OFD Sender: No OFD packet to send [13:10:19]OFD Sender: No OFD packet to send [13:10:24]OFD Sender: No OFD packet to send [13:10:29]OFD Sender: No OFD packet to send [13:10:34]OFD Sender: No OFD packet to send [13:10:39]OFD Sender: No OFD packet to send [13:10:44]OFD Sender: No OFD packet to send [13:10:49]OFD Sender: No OFD packet to send [13:10:54]OFD Sender: No OFD packet to send [13:10:59]OFD Sender: No OFD packet to send [13:11:04]OFD Sender: No OFD packet to send [13:11:09]OFD Sender: No OFD packet to send [13:11:14]OFD Sender: No OFD packet to send [13:11:19]OFD Sender: No OFD packet to send [13:11:24]OFD Sender: No OFD packet to send [13:11:29]OFD Sender: No OFD packet to send [13:11:34]OFD Sender: No OFD packet to send [13:11:39]OFD Sender: No OFD packet to send [13:11:44]OFD Sender: No OFD packet to send [13:11:49]OFD Sender: No OFD packet to send [13:11:54]OFD Sender: No OFD packet to send [13:11:59]OFD Sender: No OFD packet to send [13:12:04]OFD Sender: No OFD packet to send [13:12:09]OFD Sender: No OFD packet to send [13:12:14]OFD Sender: No OFD packet to send [13:12:19]OFD Sender: No OFD packet to send [13:12:24]OFD Sender: No OFD packet to send [13:12:29]OFD Sender: No OFD packet to send [13:12:34]OFD Sender: No OFD packet to send [13:12:39]OFD Sender: No OFD packet to send [13:12:44]OFD Sender: No OFD packet to send [13:12:49]OFD Sender: No OFD packet to send [13:12:54]OFD Sender: No OFD packet to send [13:12:59]OFD Sender: No OFD packet to send [13:13:04]OFD Sender: No OFD packet to send [13:13:09]OFD Sender: No OFD packet to send [13:13:14]OFD Sender: No OFD packet to send [13:13:19]OFD Sender: No OFD packet to send [13:13:24]OFD Sender: No OFD packet to send [13:13:29]OFD Sender: No OFD packet to send [13:13:34]OFD Sender: No OFD packet to send [13:13:39]OFD Sender: No OFD packet to send [13:13:44]OFD Sender: No OFD packet to send [13:13:49]OFD Sender: No OFD packet to send [13:13:54]OFD Sender: No OFD packet to send [13:13:59]OFD Sender: No OFD packet to send [13:14:04]OFD Sender: No OFD packet to send [13:14:09]OFD Sender: No OFD packet to send [13:14:14]OFD Sender: No OFD packet to send [13:14:19]OFD Sender: No OFD packet to send [13:14:24]OFD Sender: No OFD packet to send [13:14:29]OFD Sender: No OFD packet to send [13:14:34]OFD Sender: No OFD packet to send [13:14:39]OFD Sender: No OFD packet to send [13:14:44]OFD Sender: No OFD packet to send [13:14:49]OFD Sender: No OFD packet to send [13:14:54]OFD Sender: No OFD packet to send [13:14:59]OFD Sender: No OFD packet to send [13:15:04]OFD Sender: No OFD packet to send [13:15:09]OFD Sender: No OFD packet to send [13:15:14]OFD Sender: No OFD packet to send [13:15:19]OFD Sender: No OFD packet to send [13:15:24]OFD Sender: No OFD packet to send [13:15:29]OFD Sender: No OFD packet to send [13:15:34]OFD Sender: No OFD packet to send [13:15:39]OFD Sender: No OFD packet to send [13:15:44]OFD Sender: No OFD packet to send [13:15:49]OFD Sender: No OFD packet to send [13:15:54]OFD Sender: No OFD packet to send [13:15:59]OFD Sender: No OFD packet to send [13:16:04]OFD Sender: No OFD packet to send [13:16:09]OFD Sender: No OFD packet to send [13:16:14]OFD Sender: No OFD packet to send [13:16:19]OFD Sender: No OFD packet to send [13:16:24]OFD Sender: No OFD packet to send [13:16:30]OFD Sender: No OFD packet to send [13:16:35]OFD Sender: No OFD packet to send [13:16:40]OFD Sender: No OFD packet to send [13:16:45]OFD Sender: No OFD packet to send [13:16:50]OFD Sender: No OFD packet to send [13:16:55]OFD Sender: No OFD packet to send [13:17:00]OFD Sender: No OFD packet to send [13:17:05]OFD Sender: No OFD packet to send [13:17:10]OFD Sender: No OFD packet to send [13:17:15]OFD Sender: No OFD packet to send [13:17:20]OFD Sender: No OFD packet to send [13:17:25]OFD Sender: No OFD packet to send [13:17:30]OFD Sender: No OFD packet to send [13:17:35]OFD Sender: No OFD packet to send [13:17:40]OFD Sender: No OFD packet to send [13:17:45]OFD Sender: No OFD packet to send [13:17:50]OFD Sender: No OFD packet to send [13:17:55]OFD Sender: No OFD packet to send [13:18:00]OFD Sender: No OFD packet to send [13:18:05]OFD Sender: No OFD packet to send [13:18:10]OFD Sender: No OFD packet to send [13:18:15]OFD Sender: No OFD packet to send [13:18:20]OFD Sender: No OFD packet to send [13:18:25]OFD Sender: No OFD packet to send [13:18:30]OFD Sender: No OFD packet to send [13:18:35]OFD Sender: No OFD packet to send [13:18:40]OFD Sender: No OFD packet to send [13:18:45]OFD Sender: No OFD packet to send [13:18:50]OFD Sender: No OFD packet to send [13:18:55]OFD Sender: No OFD packet to send [13:19:00]OFD Sender: No OFD packet to send [13:19:05]OFD Sender: No OFD packet to send [13:19:10]OFD Sender: No OFD packet to send [13:19:15]OFD Sender: No OFD packet to send [13:19:20]OFD Sender: No OFD packet to send [13:19:25]OFD Sender: No OFD packet to send [13:19:30]OFD Sender: No OFD packet to send [13:19:35]OFD Sender: No OFD packet to send [13:19:40]OFD Sender: No OFD packet to send [13:19:45]OFD Sender: No OFD packet to send [13:19:50]OFD Sender: No OFD packet to send [13:19:55]OFD Sender: No OFD packet to send [13:20:00]OFD Sender: No OFD packet to send [13:20:05]OFD Sender: No OFD packet to send [13:20:10]OFD Sender: No OFD packet to send [13:20:15]OFD Sender: No OFD packet to send [13:20:20]OFD Sender: No OFD packet to send [13:20:25]OFD Sender: No OFD packet to send [13:20:30]OFD Sender: No OFD packet to send [13:20:35]OFD Sender: No OFD packet to send [13:20:40]OFD Sender: No OFD packet to send [13:20:45]OFD Sender: No OFD packet to send [13:20:50]OFD Sender: No OFD packet to send [13:20:55]OFD Sender: No OFD packet to send [13:21:00]OFD Sender: No OFD packet to send [13:21:05]OFD Sender: No OFD packet to send [13:21:10]OFD Sender: No OFD packet to send [13:21:15]OFD Sender: No OFD packet to send [13:21:20]OFD Sender: No OFD packet to send [13:21:25]OFD Sender: No OFD packet to send [13:21:30]OFD Sender: No OFD packet to send [13:21:35]OFD Sender: No OFD packet to send [13:21:40]OFD Sender: No OFD packet to send [13:21:45]OFD Sender: No OFD packet to send [13:21:50]OFD Sender: No OFD packet to send [13:21:55]OFD Sender: No OFD packet to send [13:22:00]OFD Sender: No OFD packet to send [13:22:05]OFD Sender: No OFD packet to send [13:22:10]OFD Sender: No OFD packet to send [13:22:15]OFD Sender: No OFD packet to send [13:22:20]OFD Sender: No OFD packet to send [13:22:25]OFD Sender: No OFD packet to send [13:22:30]OFD Sender: No OFD packet to send [13:22:35]OFD Sender: No OFD packet to send [13:22:40]OFD Sender: No OFD packet to send [13:22:45]OFD Sender: No OFD packet to send [13:22:50]OFD Sender: No OFD packet to send [13:22:55]OFD Sender: No OFD packet to send [13:23:00]OFD Sender: No OFD packet to send [13:23:05]OFD Sender: No OFD packet to send [13:23:10]OFD Sender: No OFD packet to send [13:23:15]OFD Sender: No OFD packet to send [13:23:20]OFD Sender: No OFD packet to send [13:23:25]OFD Sender: No OFD packet to send [13:23:30]OFD Sender: No OFD packet to send [13:23:35]OFD Sender: No OFD packet to send [13:23:40]OFD Sender: No OFD packet to send [13:23:45]OFD Sender: No OFD packet to send [13:23:50]OFD Sender: No OFD packet to send [13:23:55]OFD Sender: No OFD packet to send [13:24:00]OFD Sender: No OFD packet to send [13:24:05]OFD Sender: No OFD packet to send [13:24:10]OFD Sender: No OFD packet to send [13:24:15]OFD Sender: No OFD packet to send [13:24:20]OFD Sender: No OFD packet to send [13:24:25]OFD Sender: No OFD packet to send [13:24:30]OFD Sender: No OFD packet to send [13:24:35]OFD Sender: No OFD packet to send [13:24:40]OFD Sender: No OFD packet to send [13:24:45]OFD Sender: No OFD packet to send [13:24:50]OFD Sender: No OFD packet to send [13:24:55]OFD Sender: No OFD packet to send [13:25:00]OFD Sender: No OFD packet to send [13:25:05]OFD Sender: No OFD packet to send [13:25:10]OFD Sender: No OFD packet to send [13:25:15]OFD Sender: No OFD packet to send [13:25:20]OFD Sender: No OFD packet to send [13:25:25]OFD Sender: No OFD packet to send [13:25:30]OFD Sender: No OFD packet to send [13:25:35]OFD Sender: No OFD packet to send [13:25:40]OFD Sender: No OFD packet to send [13:25:45]OFD Sender: No OFD packet to send [13:25:50]OFD Sender: No OFD packet to send [13:25:55]OFD Sender: No OFD packet to send [13:26:00]OFD Sender: No OFD packet to send [13:26:05]OFD Sender: No OFD packet to send [13:26:10]OFD Sender: No OFD packet to send [13:26:15]OFD Sender: No OFD packet to send [13:26:20]OFD Sender: No OFD packet to send [13:26:25]OFD Sender: No OFD packet to send [13:26:30]OFD Sender: No OFD packet to send [13:26:35]OFD Sender: No OFD packet to send [13:26:40]OFD Sender: No OFD packet to send [13:26:45]OFD Sender: No OFD packet to send [13:26:50]OFD Sender: No OFD packet to send [13:26:55]OFD Sender: No OFD packet to send [13:27:00]OFD Sender: No OFD packet to send [13:27:05]OFD Sender: No OFD packet to send [13:27:10]OFD Sender: No OFD packet to send [13:27:15]OFD Sender: No OFD packet to send [13:27:20]OFD Sender: No OFD packet to send [13:27:25]OFD Sender: No OFD packet to send [13:27:30]OFD Sender: No OFD packet to send [13:27:35]OFD Sender: No OFD packet to send [13:27:40]OFD Sender: No OFD packet to send [13:27:45]OFD Sender: No OFD packet to send [13:27:50]OFD Sender: No OFD packet to send [13:27:55]OFD Sender: No OFD packet to send [13:28:00]OFD Sender: No OFD packet to send [13:28:05]OFD Sender: No OFD packet to send [13:28:10]OFD Sender: No OFD packet to send [13:28:15]OFD Sender: No OFD packet to send [13:28:20]OFD Sender: No OFD packet to send [13:28:25]OFD Sender: No OFD packet to send [13:28:30]OFD Sender: No OFD packet to send [13:28:35]OFD Sender: No OFD packet to send [13:28:40]OFD Sender: No OFD packet to send [13:28:45]OFD Sender: No OFD packet to send [13:28:50]OFD Sender: No OFD packet to send [13:28:55]OFD Sender: No OFD packet to send [13:29:00]OFD Sender: No OFD packet to send [13:29:05]OFD Sender: No OFD packet to send [13:29:10]OFD Sender: No OFD packet to send [13:29:15]OFD Sender: No OFD packet to send [13:29:20]OFD Sender: No OFD packet to send [13:29:25]OFD Sender: No OFD packet to send [13:29:30]OFD Sender: No OFD packet to send [13:29:35]OFD Sender: No OFD packet to send [13:29:40]OFD Sender: No OFD packet to send [13:29:45]OFD Sender: No OFD packet to send [13:29:50]OFD Sender: No OFD packet to send [13:29:55]OFD Sender: No OFD packet to send [13:30:00]OFD Sender: No OFD packet to send [13:30:05]OFD Sender: No OFD packet to send [13:30:10]OFD Sender: No OFD packet to send [13:30:15]OFD Sender: No OFD packet to send [13:30:20]OFD Sender: No OFD packet to send [13:30:25]OFD Sender: No OFD packet to send [13:30:30]OFD Sender: No OFD packet to send [13:30:35]OFD Sender: No OFD packet to send [13:30:40]OFD Sender: No OFD packet to send [13:30:45]OFD Sender: No OFD packet to send [13:30:50]OFD Sender: No OFD packet to send [13:30:55]OFD Sender: No OFD packet to send [13:31:00]OFD Sender: No OFD packet to send [13:31:05]OFD Sender: No OFD packet to send [13:31:10]OFD Sender: No OFD packet to send [13:31:15]OFD Sender: No OFD packet to send [13:31:20]OFD Sender: No OFD packet to send [13:31:25]OFD Sender: No OFD packet to send [13:31:30]OFD Sender: No OFD packet to send [13:31:35]OFD Sender: No OFD packet to send [13:31:40]OFD Sender: No OFD packet to send [13:31:45]OFD Sender: No OFD packet to send [13:31:50]OFD Sender: No OFD packet to send [13:31:55]OFD Sender: No OFD packet to send [13:32:00]OFD Sender: No OFD packet to send [13:32:05]OFD Sender: No OFD packet to send [13:32:10]OFD Sender: No OFD packet to send [13:32:15]OFD Sender: No OFD packet to send [13:32:20]OFD Sender: No OFD packet to send [13:32:22]accept exits with 7 [13:32:22]New connection [13:32:22]New thread 3067084132 created [13:32:22]Thread 3067227492 joined [13:32:22]Waiting for new connection... [13:32:22] Sock 7.Parse request [13:32:22]Sock 7.Check first char [13:32:22]Sock 7.First char is OK [13:32:22]request: POST /json_proto HTTP/1.0 [13:32:22]Method: POST [13:32:22]URL: /json_proto [13:32:22]Method is POST - this is cgi request [13:32:22]url: /json_proto [13:32:22]query_string will be loaded in cgi processing [13:32:22]execute_cgi json_proto POST (null) [13:32:22]execute_cgi path=json_proto method=POST [13:32:22]POST find Content-Length [13:32:22]Host: 172.17.38.133:8080 [13:32:22]Content-Length: 677 [13:32:22]Content-Type: application/json [13:32:22] [13:32:22]POST finish read [13:32:22]Found Content-Length = 677 [13:32:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672932", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:32:22]execute_script... [13:32: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)672932", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:32:22]POST & json_proto [13:32:22]process_json_proto [13:32:22]json parsed OK: [13:32:22]protocol is kg_v1.0 [13:32:22]action value=close_receipt [13:32:22]process_action close_receipt [13:32:22]cmd_close_receipt [13:32:22]MH_GetDate [13:32:22]Write to MH i2c: F0 00 00 B3 AC 4E [13:32:22]Write i2c OK [13:32:22]MH_I2C_Read... [13:32:22]Read from MH i2c: F0 [13:32:22]MH_I2C_Read... [13:32:22]Read from MH i2c: F0 09 00 [13:32:22]MH_I2C_Read... [13:32:22]Read from MH i2c: F0 09 00 B3 AC 00 F3 DD 72 66 BD 8F 7C 64 2B [13:32:22]GetLastDocTimeStamp 1718802287 [13:32:22]current date 1718803955 [13:32:22]FM_GetShiftState [13:32:22]SAM_PROTO_GetShiftState [13:32:22]wFMCommunicate request_size=4 [13:32:22]MH_SAM_APDU [13:32:22]CAPDU: 80 13 01 00 [13:32:22]Write to MH i2c: E2 08 00 B4 AC 80 13 01 00 00 00 00 00 DD [13:32:22]Write i2c OK [13:32:22]MH_I2C_Read... [13:32:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:32:22]Read from MH i2c: E2 [13:32:22]MH_I2C_Read... [13:32:22]Read from MH i2c: E2 0E 00 [13:32:22]MH_I2C_Read... [13:32:22]Read from MH i2c: E2 0E 00 B4 AC 00 09 00 01 04 26 72 66 00 00 00 00 90 00 EB [13:32:22]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [13:32:22]wFMCommunicate OK [13:32:22]SAM_PROTO_GetShiftState done [13:32:22]FM_GetShiftState done [13:32:22]opened in 1718756868 [13:32:22]opened+sec_in_day 1718843268 [13:32:22]quantity*price = 50065 [13:32:22]sum+1 = 50067 [13:32:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.17 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 109 19.06.2024 13:32 Смена: 353 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103679 ФПД: 801600213959 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T133235&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103679&fm=801600213959&tin=02508201610067®Number=0000000000092785&sum=50000 [13:32:24]StoreToDocumentArchive [13:32:24]shift 353 fd 103679 [13:32:24]save to /storage/0353/doc_00103679 [13:32:24]save last doc name /storage/0353/doc_00103679 to /storage/kkm_last_doc_name [13:32:24]save OK [13:32:24]Clear old archive folders... [13:32:24]Remove dir /storage/0266 [13:32:24]opendir ok [13:32:24]file . [13:32:24]file .. [13:32:24]file doc_1718802295 [13:32:24]remove file /storage/0266/doc_1718802295 [13:32:24]remove dir /storage/0266 [13:32:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:32:24]tlvbuf is 0152BE50 [13:32:24]SAM_PROTO_ClearQueue [13:32:24]wFMCommunicate request_size=4 [13:32:24]MH_SAM_APDU [13:32:24]CAPDU: 80 09 00 00 [13:32:24]Write to MH i2c: E2 08 00 C1 AC 80 09 00 00 00 00 00 00 DF [13:32:24]Write i2c OK [13:32:24]MH_I2C_Read... [13:32:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:32:24]Read from MH i2c: E2 [13:32:24]MH_I2C_Read... [13:32:24]Read from MH i2c: E2 03 00 [13:32:24]MH_I2C_Read... [13:32:24]Read from MH i2c: E2 03 00 C1 AC 00 90 00 E1 [13:32:24]RAPDU: 90 00 [13:32:24]wFMCommunicate OK [13:32:24]SAM_PROTO_ClearQueue done [13:32:24]KKMCreateOFDPacket [13:32:24]OFDProtocolAddRootSTLVToBuf [13:32:24]FM_MakeSignedData [13:32:24]FM_MakeSignedData [13:32:24]SAM_PROTO_SignData [13:32:24]wFMCommunicate request_size=4 [13:32:24]MH_SAM_APDU [13:32:24]CAPDU: 80 0D 01 02 [13:32:24]Write to MH i2c: E2 08 00 C2 AC 80 0D 01 02 00 00 00 00 E7 [13:32:24]Write i2c OK [13:32:24]MH_I2C_Read... [13:32:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:32:24]Read from MH i2c: E2 [13:32:24]MH_I2C_Read... [13:32:24]Read from MH i2c: E2 03 00 [13:32:24]MH_I2C_Read... [13:32:24]Read from MH i2c: E2 03 00 C2 AC 00 90 00 E2 [13:32:24]RAPDU: 90 00 [13:32:24]wFMCommunicate OK [13:32:24]wFMCommunicate request_size=255 [13:32:24]MH_SAM_APDU [13:32: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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 F3 DD 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 FF 94 01 00 35 04 06 00 00 [13:32:24]Write to MH i2c: E2 02 01 C3 AC 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 F3 DD 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 FF 94 01 00 35 04 06 00 00 00 00 AC [13:32:24]Write i2c OK [13:32:24]MH_I2C_Read... [13:32:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:32:24]Read from MH i2c: E2 [13:32:24]MH_I2C_Read... [13:32:24]Read from MH i2c: E2 03 00 [13:32:24]MH_I2C_Read... [13:32:24]Read from MH i2c: E2 03 00 C3 AC 00 90 00 E3 [13:32:24]RAPDU: 90 00 [13:32:24]wFMCommunicate OK [13:32:24]wFMCommunicate request_size=10 [13:32:24]MH_SAM_APDU [13:32:24]CAPDU: 80 0D 02 02 05 BA A3 18 93 C7 [13:32:24]Write to MH i2c: E2 0D 00 C4 AC 80 0D 02 02 05 00 BA A3 18 93 C7 00 00 C3 [13:32:24]Write i2c OK [13:32:24]MH_I2C_Read... [13:32:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:32:24]Read from MH i2c: E2 [13:32:24]MH_I2C_Read... [13:32:24]Read from MH i2c: E2 03 00 [13:32:24]MH_I2C_Read... [13:32:24]Read from MH i2c: E2 03 00 C4 AC 00 90 00 E4 [13:32:24]RAPDU: 90 00 [13:32:24]wFMCommunicate OK [13:32:24]wFMCommunicate request_size=4 [13:32:24]MH_SAM_APDU [13:32:24]CAPDU: 80 0D 03 02 [13:32:24]Write to MH i2c: E2 08 00 C5 AC 80 0D 03 02 00 00 00 00 EC [13:32:24]Write i2c OK [13:32:24]MH_I2C_Read... [13:32:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:32:24]Read from MH i2c: E2 [13:32:24]MH_I2C_Read... [13:32:24]Read from MH i2c: E2 0B 00 [13:32:24]MH_I2C_Read... [13:32:24]Read from MH i2c: E2 0B 00 C5 AC 00 8A E6 7D 8C E5 E8 3D C5 90 00 35 [13:32:24]RAPDU: 8A E6 7D 8C E5 E8 3D C5 90 00 [13:32:24]wFMCommunicate OK [13:32:24]SAM_PROTO_SignData done [13:32:24]FM_MakeSignedData done [13:32:24]CreateOFDProtocolMessage [13:32:24]wFMCommunicate request_size=4 [13:32:24]MH_SAM_APDU [13:32:24]CAPDU: 80 11 00 00 [13:32:24]Write to MH i2c: E2 08 00 C6 AC 80 11 00 00 00 00 00 00 EC [13:32:24]Write i2c OK [13:32:24]MH_I2C_Read... [13:32:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:32:24]Read from MH i2c: E2 [13:32:24]MH_I2C_Read... [13:32:24]Read from MH i2c: E2 17 00 [13:32:24]MH_I2C_Read... [13:32:24]Read from MH i2c: E2 17 00 C6 AC 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 3F [13:32:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [13:32:24]wFMCommunicate OK [13:32:24]CreateOFDProtocolMessage done [13:32:24]OFDSenderStorePacket 103679 [13:32:24]StoreOFDPacket docnum=103679 [13:32:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 DE 22 07 01 D3 43 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 F3 DD 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 FF 94 01 00 35 04 06 00 00 BA A3 18 93 C7 8A E6 7D 8C E5 E8 3D C5 [13:32:24]CheckFolder [13:32:24]dirname=/storage/ofd_packets [13:32:24]CheckFolder done [13:32:24]ProducePacketName [13:32:24]name=ofd_packets/00103679 [13:32:24]NVStorageSaveData ofd_packets/00103679 [13:32:24]File name is /storage/ofd_packets/00103679 [13:32:24]Write 301 bytes [13:32:24]NVStorageSaveData done [13:32:24]OFDSenderStorePacket done [13:32:24]KKMCreateOFDPacket done [13:32:24]NVStorageSaveData kkm_last_timestamp [13:32:24]File name is /storage/kkm_last_timestamp [13:32:24]Write 4 bytes [13:32:24]NVStorageSaveData done [13:32:24]ExternCall_PrintAddStr [13:32:24]wPrintStart [13:32:24]Write to MH i2c: 01 00 00 C7 AC 73 [13:32:24]Write i2c OK [13:32:24]MH_I2C_Read... [13:32:24]Read from MH i2c: 01 [13:32:24]MH_I2C_Read... [13:32:24]Read from MH i2c: 01 07 00 [13:32:24]MH_I2C_Read... [13:32:24]Read from MH i2c: 01 07 00 C7 AC 00 00 00 00 00 FF 0F 88 [13:32:24]RasterBufferAndPrint [13:32:24]line Счет N : (1)672932 [13:32:24]line ИНН: 02508201610067 [13:32:24]line Контрольно-Кассовый Чек [13:32:24]line ПРОДАЖА [13:32:24]line ТРК (МРК, ГНК) : 32 [13:32:24]line Товар: 2710124130 [13:32:24]line Аи-92-К-5 [13:32:24]line 7.540 * 66.40 [13:32:24]line = 500.66 [13:32:24]line НДС 12% НСП 1% [13:32:24]line > о реализуемом товаре [13:32:24]line ОКРУГЛЕНИЕ: -0.66 [13:32:24]line ИТОГО: 500.00 [13:32:24]line Внесено: 500.00 [13:32:24]line СДАЧА: 0.00 [13:32:24]line НСП 1% : 4.43 [13:32:24]line НДС 12% : 53.17 [13:32:24]line Наличными: 500.00 [13:32:24]line Безнал.: 0.00 [13:32:24]line Место: АЗС № 120 "Партнер Нефть" [13:32:24]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [13:32:24]line СНО: Общий режим [13:32:24]line Чек 109 19.06.2024 13:32 [13:32:24]line Смена: 353 ФФД: 1.0 [13:32:24]line ЗНМ: 0300000164 [13:32:24]line РНМ: 0000000000092785 [13:32:24]line Версия ККМ: 001 [13:32:24]line ФМ: 0000000000875093 [13:32:24]line ФД: 103679 [13:32:24]line ФПД: 801600213959 [13:32:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T133235&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103679&fm=801600213959&tin=02508201610067®Number=0000000000092785&sum=50000 [13:32:24]OFD Sender: Processing packet 103679 [packets to send 17, broken 16] [13:32:24]ProducePacketName [13:32:24]name=ofd_packets/00103679 [13:32:24]OFD Sender: To server: pG, [13:32:24]CommunicateWithHost lk.salyk.kg:30040 [13:32:24]ConnectInit lk.salyk.kg [13:32:24]written 0, free lines is 4095 [13:32:25]Connected sock=10 [13:32: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 39 33 0F 01 00 00 DE 22 07 01 D3 43 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 F3 DD 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 FF 94 01 00 35 04 06 00 00 BA A3 18 93 C7 8A E6 7D 8C E5 E8 3D C5 [13:32: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 39 33 4F 00 00 00 BF 0D 47 00 F5 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 39 33 10 04 04 00 FF 94 01 00 F4 03 04 00 7C 84 72 66 B6 04 01 00 00 E2 29 5D E7 17 4A 00 C6 [13:32:25]CommunicateWithHost err = 0 [13:32:25]CheckOFDResponse [13:32:25]1017 (14) - 77093643461234 [13:32:25]1041 (16) - 0000000000875093 [13:32:25]1040 (4) - 103679 [13:32:25]1012 (4) - 19.06.2024 07:10 [13:32:25]1206 (1) - 0 [13:32:25]OFD Sender: Remove packet 103679 [13:32:25]ProducePacketName [13:32:25]name=ofd_packets/00103679 [13:32:25]NVStorageDeleteData [13:32:25]Write to MH i2c: 01 00 00 F2 AC 9E [13:32:25]Write i2c OK [13:32:25]MH_I2C_Read... [13:32:25]Read from MH i2c: 01 [13:32:25]MH_I2C_Read... [13:32:25]Read from MH i2c: 01 07 00 [13:32:25]MH_I2C_Read... [13:32:25]Read from MH i2c: 01 07 00 F2 AC 00 00 00 00 00 E1 0C 92 [13:32:25]RasterBufferAndPrint [13:32:25]line [13:32:25]line [13:32:25]line [13:32:25]line [13:32:25]line [13:32:25]written 0, free lines is 3303 [13:32:25]MH_Cut [13:32:25]Write to MH i2c: D1 01 00 F9 AC 01 77 [13:32:25]Write i2c OK [13:32:25]MH_I2C_Read... [13:32:25]Read from MH i2c: D1 [13:32:25]MH_I2C_Read... [13:32:25]Read from MH i2c: D1 01 00 [13:32:25]MH_I2C_Read... [13:32:25]Read from MH i2c: D1 01 00 F9 AC 00 76 [13:32:25]Write to MH i2c: 01 00 00 FA AC A6 [13:32:25]Write i2c OK [13:32:25]MH_I2C_Read... [13:32:25]OFD Sender: No OFD packet to send [13:32:26]*** Cut start [13:32:26]*** Partial cut [13:32:26]*** CUTSNS_PIN = 1 [13:32:26]*** CUTSNS_PIN = 0 [13:32:26]*** Brake cut motor [13:32:26]Read from MH i2c: 01 [13:32:26]MH_I2C_Read... [13:32:26]*** Stop cut motor [13:32:26]*** Cut end [13:32:26]Read from MH i2c: 01 07 00 [13:32:26]MH_I2C_Read... [13:32:26]Read from MH i2c: 01 07 00 FA AC 00 00 00 00 00 FF 0F BB [13:32:26]process_action close_receipt done [13:32:26]requested_data is exist [13:32:26]produce_requested_data [13:32:26]requested_item fm.sn is exist - process it [13:32:26]wFMCommunicate request_size=4 [13:32:26]MH_SAM_APDU [13:32:26]CAPDU: 80 11 00 00 [13:32:26]Write to MH i2c: E2 08 00 FB AC 80 11 00 00 00 00 00 00 21 [13:32:26]Write i2c OK [13:32:26]MH_I2C_Read... [13:32:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:32:26]Read from MH i2c: E2 [13:32:26]MH_I2C_Read... [13:32:26]Read from MH i2c: E2 17 00 [13:32:26]MH_I2C_Read... [13:32:26]Read from MH i2c: E2 17 00 FB AC 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 74 [13:32:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [13:32:26]wFMCommunicate OK [13:32:26]requested_item fd.num is exist - process it [13:32:26]SAM_PROTO_GetFieldsCounters [13:32:26]wFMCommunicate request_size=4 [13:32:26]MH_SAM_APDU [13:32:26]CAPDU: 80 13 00 00 [13:32:26]Write to MH i2c: E2 08 00 FC AC 80 13 00 00 00 00 00 00 24 [13:32:26]Write i2c OK [13:32:26]MH_I2C_Read... [13:32:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:32:26]Read from MH i2c: E2 [13:32:26]MH_I2C_Read... [13:32:26]Read from MH i2c: E2 62 00 [13:32:26]MH_I2C_Read... [13:32:26]Read from MH i2c: E2 62 00 FC AC 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 FF 94 01 00 0E 04 04 00 61 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 88 [13:32: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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 FF 94 01 00 0E 04 04 00 61 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:32:26]wFMCommunicate OK [13:32:26]SAM_PROTO_GetFieldsCounters done [13:32:26]requested_item shift.num is exist - process it [13:32:26]requested_item shift.opened is exist - process it [13:32:26]req_shift_opened [13:32:26]FM_GetShiftState [13:32:26]SAM_PROTO_GetShiftState [13:32:26]wFMCommunicate request_size=4 [13:32:26]MH_SAM_APDU [13:32:26]CAPDU: 80 13 01 00 [13:32:26]Write to MH i2c: E2 08 00 FD AC 80 13 01 00 00 00 00 00 26 [13:32:26]Write i2c OK [13:32:26]MH_I2C_Read... [13:32:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:32:26]Read from MH i2c: E2 [13:32:26]MH_I2C_Read... [13:32:26]Read from MH i2c: E2 0E 00 [13:32:26]MH_I2C_Read... [13:32:26]Read from MH i2c: E2 0E 00 FD AC 00 09 00 01 04 26 72 66 00 00 00 00 90 00 34 [13:32:26]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [13:32:26]wFMCommunicate OK [13:32:26]SAM_PROTO_GetShiftState done [13:32:26]FM_GetShiftState done [13:32:26]req_shift_opened done [13:32:26]requested_item shift.open_date is exist - process it [13:32:26]req_shift_open_date [13:32:26]req_shift_open_date done [13:32:26]produce_requested_data done [13:32:26]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103679,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [13:32:26]process_action_free close_receipt [13:32:26]json_value_free [13:32:26]json_value_free done [13:32:26]process_json_proto returns [13:32:26]Send response to host [13:32:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103679,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [13:32:26]free response buf [13:32:26]execute_script done [13:32:26]execute_script returns [13:32:26]free content buf [13:32:26]Sock 7.Close socket [13:32:26]Sock 7.Thread stoped [13:32:30]OFD Sender: No OFD packet to send [13:32:35]OFD Sender: No OFD packet to send [13:32:40]OFD Sender: No OFD packet to send [13:32:45]OFD Sender: No OFD packet to send [13:32:50]OFD Sender: No OFD packet to send [13:32:55]OFD Sender: No OFD packet to send [13:33:00]OFD Sender: No OFD packet to send [13:33:05]OFD Sender: No OFD packet to send [13:33:10]OFD Sender: No OFD packet to send [13:33:15]OFD Sender: No OFD packet to send [13:33:20]OFD Sender: No OFD packet to send [13:33:25]OFD Sender: No OFD packet to send [13:33:30]OFD Sender: No OFD packet to send [13:33:35]OFD Sender: No OFD packet to send [13:33:40]OFD Sender: No OFD packet to send [13:33:45]OFD Sender: No OFD packet to send [13:33:50]OFD Sender: No OFD packet to send [13:33:55]OFD Sender: No OFD packet to send [13:34:00]OFD Sender: No OFD packet to send [13:34:05]OFD Sender: No OFD packet to send [13:34:10]OFD Sender: No OFD packet to send [13:34:15]OFD Sender: No OFD packet to send [13:34:20]OFD Sender: No OFD packet to send [13:34:25]OFD Sender: No OFD packet to send [13:34:30]OFD Sender: No OFD packet to send [13:34:35]OFD Sender: No OFD packet to send [13:34:40]OFD Sender: No OFD packet to send [13:34:45]OFD Sender: No OFD packet to send [13:34:50]OFD Sender: No OFD packet to send [13:34:55]OFD Sender: No OFD packet to send [13:35:00]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]OFD Sender: No OFD packet to send [13:36:41]OFD Sender: No OFD packet to send [13:36:46]OFD Sender: No OFD packet to send [13:36:51]OFD Sender: No OFD packet to send [13:36:56]OFD Sender: No OFD packet to send [13:37:01]OFD Sender: No OFD packet to send [13:37:06]OFD Sender: No OFD packet to send [13:37:11]OFD Sender: No OFD packet to send [13:37:16]OFD Sender: No OFD packet to send [13:37:21]OFD Sender: No OFD packet to send [13:37:26]OFD Sender: No OFD packet to send [13:37:31]OFD Sender: No OFD packet to send [13:37:36]OFD Sender: No OFD packet to send [13:37:41]OFD Sender: No OFD packet to send [13:37:46]OFD Sender: No OFD packet to send [13:37:51]OFD Sender: No OFD packet to send [13:37:56]OFD Sender: No OFD packet to send [13:38:01]OFD Sender: No OFD packet to send [13:38:06]OFD Sender: No OFD packet to send [13:38:11]OFD Sender: No OFD packet to send [13:38:16]OFD Sender: No OFD packet to send [13:38:19]accept exits with 9 [13:38:19]New connection [13:38:19]New thread 3067227492 created [13:38:19]Thread 3067084132 joined [13:38:19]Waiting for new connection... [13:38:19] Sock 9.Parse request [13:38:19]Sock 9.Check first char [13:38:19]Sock 9.First char is OK [13:38:19]request: POST /json_proto HTTP/1.0 [13:38:19]Method: POST [13:38:19]URL: /json_proto [13:38:19]Method is POST - this is cgi request [13:38:19]url: /json_proto [13:38:19]query_string will be loaded in cgi processing [13:38:19]execute_cgi json_proto POST (null) [13:38:19]execute_cgi path=json_proto method=POST [13:38:19]POST find Content-Length [13:38:19]Host: 172.17.38.133:8080 [13:38:19]Content-Length: 677 [13:38:19]Content-Type: application/json [13:38:19] [13:38:19]POST finish read [13:38:19]Found Content-Length = 677 [13:38:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672933", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 9.040, "sum" : 600.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:38:19]execute_script... [13:38: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)672933", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 9.040, "sum" : 600.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:38:19]POST & json_proto [13:38:19]process_json_proto [13:38:19]json parsed OK: [13:38:19]protocol is kg_v1.0 [13:38:19]action value=close_receipt [13:38:19]process_action close_receipt [13:38:19]cmd_close_receipt [13:38:19]MH_GetDate [13:38:19]Write to MH i2c: F0 00 00 FE AC 99 [13:38:19]Write i2c OK [13:38:19]MH_I2C_Read... [13:38:19]Read from MH i2c: F0 [13:38:19]MH_I2C_Read... [13:38:19]Read from MH i2c: F0 09 00 [13:38:19]MH_I2C_Read... [13:38:19]Read from MH i2c: F0 09 00 FE AC 00 58 DF 72 66 BD 8F 7C 64 DD [13:38:19]GetLastDocTimeStamp 1718803955 [13:38:19]current date 1718804312 [13:38:19]FM_GetShiftState [13:38:19]SAM_PROTO_GetShiftState [13:38:19]wFMCommunicate request_size=4 [13:38:19]MH_SAM_APDU [13:38:19]CAPDU: 80 13 01 00 [13:38:19]Write to MH i2c: E2 08 00 FF AC 80 13 01 00 00 00 00 00 28 [13:38:19]Write i2c OK [13:38:19]MH_I2C_Read... [13:38:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:38:19]Read from MH i2c: E2 [13:38:19]MH_I2C_Read... [13:38:19]Read from MH i2c: E2 0E 00 [13:38:19]MH_I2C_Read... [13:38:19]Read from MH i2c: E2 0E 00 FF AC 00 09 00 01 04 26 72 66 00 00 00 00 90 00 36 [13:38:19]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [13:38:19]wFMCommunicate OK [13:38:19]SAM_PROTO_GetShiftState done [13:38:19]FM_GetShiftState done [13:38:19]opened in 1718756868 [13:38:19]opened+sec_in_day 1718843268 [13:38:19]quantity*price = 60025 [13:38:19]sum+1 = 60027 [13:38:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.26 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.74 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 110 19.06.2024 13:38 Смена: 353 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103680 ФПД: 5554690348992 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T133832&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103680&fm=5554690348992&tin=02508201610067®Number=0000000000092785&sum=60000 [13:38:21]StoreToDocumentArchive [13:38:21]shift 353 fd 103680 [13:38:21]save to /storage/0353/doc_00103680 [13:38:21]save last doc name /storage/0353/doc_00103680 to /storage/kkm_last_doc_name [13:38:21]save OK [13:38:21]Clear old archive folders... [13:38:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:38:21]tlvbuf is 0148B950 [13:38:21]SAM_PROTO_ClearQueue [13:38:21]wFMCommunicate request_size=4 [13:38:21]MH_SAM_APDU [13:38:21]CAPDU: 80 09 00 00 [13:38:21]Write to MH i2c: E2 08 00 0C AD 80 09 00 00 00 00 00 00 2B [13:38:21]Write i2c OK [13:38:21]MH_I2C_Read... [13:38:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:38:21]Read from MH i2c: E2 [13:38:21]MH_I2C_Read... [13:38:21]Read from MH i2c: E2 03 00 [13:38:21]MH_I2C_Read... [13:38:21]Read from MH i2c: E2 03 00 0C AD 00 90 00 2D [13:38:21]RAPDU: 90 00 [13:38:21]wFMCommunicate OK [13:38:21]SAM_PROTO_ClearQueue done [13:38:21]KKMCreateOFDPacket [13:38:21]OFDProtocolAddRootSTLVToBuf [13:38:21]FM_MakeSignedData [13:38:21]FM_MakeSignedData [13:38:21]SAM_PROTO_SignData [13:38:21]wFMCommunicate request_size=4 [13:38:21]MH_SAM_APDU [13:38:21]CAPDU: 80 0D 01 02 [13:38:21]Write to MH i2c: E2 08 00 0D AD 80 0D 01 02 00 00 00 00 33 [13:38:21]Write i2c OK [13:38:21]MH_I2C_Read... [13:38:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:38:21]Read from MH i2c: E2 [13:38:21]MH_I2C_Read... [13:38:21]Read from MH i2c: E2 03 00 [13:38:21]MH_I2C_Read... [13:38:21]Read from MH i2c: E2 03 00 0D AD 00 90 00 2E [13:38:21]RAPDU: 90 00 [13:38:21]wFMCommunicate OK [13:38:21]wFMCommunicate request_size=255 [13:38:21]MH_SAM_APDU [13:38: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 50 23 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 58 DF 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 00 95 01 00 35 04 06 00 05 [13:38:21]Write to MH i2c: E2 02 01 0E AD 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 50 23 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 58 DF 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 00 95 01 00 35 04 06 00 05 00 00 44 [13:38:21]Write i2c OK [13:38:21]MH_I2C_Read... [13:38:21]OFD Sender: No OFD packet to send [13:38:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:38:21]Read from MH i2c: E2 [13:38:21]MH_I2C_Read... [13:38:21]Read from MH i2c: E2 03 00 [13:38:21]MH_I2C_Read... [13:38:21]Read from MH i2c: E2 03 00 0E AD 00 90 00 2F [13:38:21]RAPDU: 90 00 [13:38:21]wFMCommunicate OK [13:38:21]wFMCommunicate request_size=10 [13:38:21]MH_SAM_APDU [13:38:21]CAPDU: 80 0D 02 02 05 0D 4D 58 57 C0 [13:38:21]Write to MH i2c: E2 0D 00 0F AD 80 0D 02 02 05 00 0D 4D 58 57 C0 00 00 09 [13:38:21]Write i2c OK [13:38:21]MH_I2C_Read... [13:38:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:38:21]Read from MH i2c: E2 [13:38:21]MH_I2C_Read... [13:38:21]Read from MH i2c: E2 03 00 [13:38:21]MH_I2C_Read... [13:38:21]Read from MH i2c: E2 03 00 0F AD 00 90 00 30 [13:38:21]RAPDU: 90 00 [13:38:21]wFMCommunicate OK [13:38:21]wFMCommunicate request_size=4 [13:38:21]MH_SAM_APDU [13:38:21]CAPDU: 80 0D 03 02 [13:38:21]Write to MH i2c: E2 08 00 10 AD 80 0D 03 02 00 00 00 00 38 [13:38:21]Write i2c OK [13:38:21]MH_I2C_Read... [13:38:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:38:21]Read from MH i2c: E2 [13:38:21]MH_I2C_Read... [13:38:21]Read from MH i2c: E2 0B 00 [13:38:21]MH_I2C_Read... [13:38:21]Read from MH i2c: E2 0B 00 10 AD 00 DD 0F B4 48 A4 B9 7A A6 90 00 9E [13:38:21]RAPDU: DD 0F B4 48 A4 B9 7A A6 90 00 [13:38:21]wFMCommunicate OK [13:38:21]SAM_PROTO_SignData done [13:38:21]FM_MakeSignedData done [13:38:21]CreateOFDProtocolMessage [13:38:21]wFMCommunicate request_size=4 [13:38:21]MH_SAM_APDU [13:38:21]CAPDU: 80 11 00 00 [13:38:21]Write to MH i2c: E2 08 00 11 AD 80 11 00 00 00 00 00 00 38 [13:38:21]Write i2c OK [13:38:21]MH_I2C_Read... [13:38:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:38:21]Read from MH i2c: E2 [13:38:21]MH_I2C_Read... [13:38:21]Read from MH i2c: E2 17 00 [13:38:21]MH_I2C_Read... [13:38:21]Read from MH i2c: E2 17 00 11 AD 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 8B [13:38:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [13:38:21]wFMCommunicate OK [13:38:21]CreateOFDProtocolMessage done [13:38:21]OFDSenderStorePacket 103680 [13:38:21]StoreOFDPacket docnum=103680 [13:38:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 23 F4 07 01 D3 80 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 50 23 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 58 DF 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 00 95 01 00 35 04 06 00 05 0D 4D 58 57 C0 DD 0F B4 48 A4 B9 7A A6 [13:38:21]CheckFolder [13:38:21]dirname=/storage/ofd_packets [13:38:21]CheckFolder done [13:38:21]ProducePacketName [13:38:21]name=ofd_packets/00103680 [13:38:21]NVStorageSaveData ofd_packets/00103680 [13:38:21]File name is /storage/ofd_packets/00103680 [13:38:21]Write 301 bytes [13:38:21]NVStorageSaveData done [13:38:21]OFDSenderStorePacket done [13:38:21]KKMCreateOFDPacket done [13:38:21]NVStorageSaveData kkm_last_timestamp [13:38:21]File name is /storage/kkm_last_timestamp [13:38:21]Write 4 bytes [13:38:21]NVStorageSaveData done [13:38:21]ExternCall_PrintAddStr [13:38:21]wPrintStart [13:38:21]Write to MH i2c: 01 00 00 12 AD BF [13:38:21]Write i2c OK [13:38:21]MH_I2C_Read... [13:38:21]Read from MH i2c: 01 [13:38:21]MH_I2C_Read... [13:38:21]Read from MH i2c: 01 07 00 [13:38:21]MH_I2C_Read... [13:38:21]Read from MH i2c: 01 07 00 12 AD 00 00 00 00 00 FF 0F D4 [13:38:21]RasterBufferAndPrint [13:38:21]line Счет N : (1)672933 [13:38:21]line ИНН: 02508201610067 [13:38:21]line Контрольно-Кассовый Чек [13:38:21]line ПРОДАЖА [13:38:21]line ТРК (МРК, ГНК) : 32 [13:38:21]line Товар: 2710124130 [13:38:21]line Аи-92-К-5 [13:38:21]line 9.040 * 66.40 [13:38:21]line = 600.26 [13:38:21]line НДС 12% НСП 1% [13:38:21]line > о реализуемом товаре [13:38:21]line ОКРУГЛЕНИЕ: -0.26 [13:38:21]line ИТОГО: 600.00 [13:38:21]line Внесено: 600.00 [13:38:21]line СДАЧА: 0.00 [13:38:21]line НСП 1% : 5.31 [13:38:21]line НДС 12% : 63.74 [13:38:21]line Наличными: 600.00 [13:38:21]line Безнал.: 0.00 [13:38:21]line Место: АЗС № 120 "Партнер Нефть" [13:38:21]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [13:38:21]line СНО: Общий режим [13:38:21]line Чек 110 19.06.2024 13:38 [13:38:21]line Смена: 353 ФФД: 1.0 [13:38:21]line ЗНМ: 0300000164 [13:38:21]line РНМ: 0000000000092785 [13:38:21]line Версия ККМ: 001 [13:38:21]line ФМ: 0000000000875093 [13:38:21]line ФД: 103680 [13:38:21]line ФПД: 5554690348992 [13:38:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T133832&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103680&fm=5554690348992&tin=02508201610067®Number=0000000000092785&sum=60000 [13:38:21]OFD Sender: Processing packet 103680 [packets to send 17, broken 16] [13:38:21]ProducePacketName [13:38:21]name=ofd_packets/00103680 [13:38:21]OFD Sender: To server: pG, [13:38:21]CommunicateWithHost lk.salyk.kg:30040 [13:38:21]ConnectInit lk.salyk.kg [13:38:21]written 0, free lines is 4095 [13:38:22]Connected sock=10 [13:38: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 39 33 0F 01 00 00 23 F4 07 01 D3 80 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 50 23 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 58 DF 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 00 95 01 00 35 04 06 00 05 0D 4D 58 57 C0 DD 0F B4 48 A4 B9 7A A6 [13:38: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 39 33 4F 00 00 00 8C 73 47 00 2A 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 39 33 10 04 04 00 00 95 01 00 F4 03 04 00 E1 85 72 66 B6 04 01 00 00 14 71 37 3B 42 A8 42 1D [13:38:22]CommunicateWithHost err = 0 [13:38:22]CheckOFDResponse [13:38:22]1017 (14) - 77093643461234 [13:38:22]1041 (16) - 0000000000875093 [13:38:22]1040 (4) - 103680 [13:38:22]1012 (4) - 19.06.2024 07:16 [13:38:22]1206 (1) - 0 [13:38:22]OFD Sender: Remove packet 103680 [13:38:22]ProducePacketName [13:38:22]name=ofd_packets/00103680 [13:38:22]NVStorageDeleteData [13:38:22]Write to MH i2c: 01 00 00 3D AD EA [13:38:22]Write i2c OK [13:38:22]MH_I2C_Read... [13:38:22]Read from MH i2c: 01 [13:38:22]MH_I2C_Read... [13:38:22]Read from MH i2c: 01 07 00 [13:38:22]MH_I2C_Read... [13:38:22]Read from MH i2c: 01 07 00 3D AD 00 00 00 00 00 FC 0C F9 [13:38:22]RasterBufferAndPrint [13:38:22]line [13:38:22]line [13:38:22]line [13:38:22]line [13:38:22]line [13:38:22]written 0, free lines is 3333 [13:38:22]MH_Cut [13:38:22]Write to MH i2c: D1 01 00 44 AD 01 C3 [13:38:22]Write i2c OK [13:38:22]MH_I2C_Read... [13:38:22]Read from MH i2c: D1 [13:38:22]MH_I2C_Read... [13:38:22]Read from MH i2c: D1 01 00 [13:38:22]MH_I2C_Read... [13:38:22]Read from MH i2c: D1 01 00 44 AD 00 C2 [13:38:22]Write to MH i2c: 01 00 00 45 AD F2 [13:38:22]Write i2c OK [13:38:22]MH_I2C_Read... [13:38:22]OFD Sender: No OFD packet to send [13:38:23]*** Cut start [13:38:23]*** Partial cut [13:38:23]*** CUTSNS_PIN = 1 [13:38:23]*** CUTSNS_PIN = 0 [13:38:23]*** Brake cut motor [13:38:23]Read from MH i2c: 01 [13:38:23]MH_I2C_Read... [13:38:23]*** Stop cut motor [13:38:23]*** Cut end [13:38:23]Read from MH i2c: 01 07 00 [13:38:23]MH_I2C_Read... [13:38:23]Read from MH i2c: 01 07 00 45 AD 00 00 00 00 00 FF 0F 07 [13:38:23]process_action close_receipt done [13:38:23]requested_data is exist [13:38:23]produce_requested_data [13:38:23]requested_item fm.sn is exist - process it [13:38:23]wFMCommunicate request_size=4 [13:38:23]MH_SAM_APDU [13:38:23]CAPDU: 80 11 00 00 [13:38:23]Write to MH i2c: E2 08 00 46 AD 80 11 00 00 00 00 00 00 6D [13:38:23]Write i2c OK [13:38:23]MH_I2C_Read... [13:38:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:38:23]Read from MH i2c: E2 [13:38:23]MH_I2C_Read... [13:38:23]Read from MH i2c: E2 17 00 [13:38:23]MH_I2C_Read... [13:38:23]Read from MH i2c: E2 17 00 46 AD 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 C0 [13:38:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [13:38:23]wFMCommunicate OK [13:38:23]requested_item fd.num is exist - process it [13:38:23]SAM_PROTO_GetFieldsCounters [13:38:23]wFMCommunicate request_size=4 [13:38:23]MH_SAM_APDU [13:38:23]CAPDU: 80 13 00 00 [13:38:23]Write to MH i2c: E2 08 00 47 AD 80 13 00 00 00 00 00 00 70 [13:38:23]Write i2c OK [13:38:23]MH_I2C_Read... [13:38:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:38:23]Read from MH i2c: E2 [13:38:23]MH_I2C_Read... [13:38:23]Read from MH i2c: E2 62 00 [13:38:23]MH_I2C_Read... [13:38:23]Read from MH i2c: E2 62 00 47 AD 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 00 95 01 00 0E 04 04 00 61 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 D9 [13:38: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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 00 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 6E 00 00 00 5E 04 04 00 6E 00 00 00 57 04 04 00 6F 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:38:23]wFMCommunicate OK [13:38:23]SAM_PROTO_GetFieldsCounters done [13:38:23]requested_item shift.num is exist - process it [13:38:23]requested_item shift.opened is exist - process it [13:38:23]req_shift_opened [13:38:23]FM_GetShiftState [13:38:23]SAM_PROTO_GetShiftState [13:38:23]wFMCommunicate request_size=4 [13:38:23]MH_SAM_APDU [13:38:23]CAPDU: 80 13 01 00 [13:38:23]Write to MH i2c: E2 08 00 48 AD 80 13 01 00 00 00 00 00 72 [13:38:23]Write i2c OK [13:38:23]MH_I2C_Read... [13:38:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:38:23]Read from MH i2c: E2 [13:38:23]MH_I2C_Read... [13:38:23]Read from MH i2c: E2 0E 00 [13:38:23]MH_I2C_Read... [13:38:23]Read from MH i2c: E2 0E 00 48 AD 00 09 00 01 04 26 72 66 00 00 00 00 90 00 80 [13:38:23]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [13:38:23]wFMCommunicate OK [13:38:23]SAM_PROTO_GetShiftState done [13:38:23]FM_GetShiftState done [13:38:23]req_shift_opened done [13:38:23]requested_item shift.open_date is exist - process it [13:38:23]req_shift_open_date [13:38:23]req_shift_open_date done [13:38:23]produce_requested_data done [13:38:23]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103680,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [13:38:23]process_action_free close_receipt [13:38:23]json_value_free [13:38:23]json_value_free done [13:38:23]process_json_proto returns [13:38:23]Send response to host [13:38:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103680,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [13:38:23]free response buf [13:38:23]execute_script done [13:38:23]execute_script returns [13:38:23]free content buf [13:38:23]Sock 9.Close socket [13:38:23]Sock 9.Thread stoped [13:38:27]OFD Sender: No OFD packet to send [13:38:32]OFD Sender: No OFD packet to send [13:38:37]OFD Sender: No OFD packet to send [13:38:42]OFD Sender: No OFD packet to send [13:38:47]OFD Sender: No OFD packet to send [13:38:52]OFD Sender: No OFD packet to send [13:38:57]OFD Sender: No OFD packet to send [13:39:02]OFD Sender: No OFD packet to send [13:39:07]OFD Sender: No OFD packet to send [13:39:12]OFD Sender: No OFD packet to send [13:39:17]OFD Sender: No OFD packet to send [13:39:22]OFD Sender: No OFD packet to send [13:39:27]OFD Sender: No OFD packet to send [13:39:32]OFD Sender: No OFD packet to send [13:39:37]OFD Sender: No OFD packet to send [13:39:42]OFD Sender: No OFD packet to send [13:39:47]OFD Sender: No OFD packet to send [13:39:52]OFD Sender: No OFD packet to send [13:39:57]OFD Sender: No OFD packet to send [13:40:02]OFD Sender: No OFD packet to send [13:40:07]OFD Sender: No OFD packet to send [13:40:12]OFD Sender: No OFD packet to send [13:40:17]OFD Sender: No OFD packet to send [13:40:22]OFD Sender: No OFD packet to send [13:40:27]OFD Sender: No OFD packet to send [13:40:32]OFD Sender: No OFD packet to send [13:40:37]OFD Sender: No OFD packet to send [13:40:42]OFD Sender: No OFD packet to send [13:40:47]OFD Sender: No OFD packet to send [13:40:52]OFD Sender: No OFD packet to send [13:40:57]OFD Sender: No OFD packet to send [13:41:02]OFD Sender: No OFD packet to send [13:41:07]OFD Sender: No OFD packet to send [13:41:12]OFD Sender: No OFD packet to send [13:41:17]OFD Sender: No OFD packet to send [13:41:22]OFD Sender: No OFD packet to send [13:41:27]OFD Sender: No OFD packet to send [13:41:32]OFD Sender: No OFD packet to send [13:41:37]OFD Sender: No OFD packet to send [13:41:42]OFD Sender: No OFD packet to send [13:41:47]OFD Sender: No OFD packet to send [13:41:52]OFD Sender: No OFD packet to send [13:41:57]OFD Sender: No OFD packet to send [13:42:02]OFD Sender: No OFD packet to send [13:42:07]OFD Sender: No OFD packet to send [13:42:12]OFD Sender: No OFD packet to send [13:42:18]OFD Sender: No OFD packet to send [13:42:23]OFD Sender: No OFD packet to send [13:42:28]OFD Sender: No OFD packet to send [13:42:33]OFD Sender: No OFD packet to send [13:42:38]OFD Sender: No OFD packet to send [13:42:43]OFD Sender: No OFD packet to send [13:42:48]OFD Sender: No OFD packet to send [13:42:53]OFD Sender: No OFD packet to send [13:42:58]OFD Sender: No OFD packet to send [13:43:03]OFD Sender: No OFD packet to send [13:43:08]OFD Sender: No OFD packet to send [13:43:13]OFD Sender: No OFD packet to send [13:43:18]OFD Sender: No OFD packet to send [13:43:23]OFD Sender: No OFD packet to send [13:43:28]OFD Sender: No OFD packet to send [13:43:33]OFD Sender: No OFD packet to send [13:43:38]OFD Sender: No OFD packet to send [13:43:43]OFD Sender: No OFD packet to send [13:43:48]OFD Sender: No OFD packet to send [13:43:53]OFD Sender: No OFD packet to send [13:43:58]OFD Sender: No OFD packet to send [13:44:03]OFD Sender: No OFD packet to send [13:44:08]OFD Sender: No OFD packet to send [13:44:13]OFD Sender: No OFD packet to send [13:44:18]OFD Sender: No OFD packet to send [13:44:23]OFD Sender: No OFD packet to send [13:44:28]OFD Sender: No OFD packet to send [13:44:33]OFD Sender: No OFD packet to send [13:44:38]OFD Sender: No OFD packet to send [13:44:43]OFD Sender: No OFD packet to send [13:44:48]OFD Sender: No OFD packet to send [13:44:53]OFD Sender: No OFD packet to send [13:44:58]OFD Sender: No OFD packet to send [13:45:03]OFD Sender: No OFD packet to send [13:45:08]OFD Sender: No OFD packet to send [13:45:13]OFD Sender: No OFD packet to send [13:45:18]OFD Sender: No OFD packet to send [13:45:23]OFD Sender: No OFD packet to send [13:45:28]OFD Sender: No OFD packet to send [13:45:33]OFD Sender: No OFD packet to send [13:45:38]OFD Sender: No OFD packet to send [13:45:43]OFD Sender: No OFD packet to send [13:45:48]OFD Sender: No OFD packet to send [13:45:53]OFD Sender: No OFD packet to send [13:45:58]OFD Sender: No OFD packet to send [13:46:03]OFD Sender: No OFD packet to send [13:46:08]OFD Sender: No OFD packet to send [13:46:13]OFD Sender: No OFD packet to send [13:46:18]OFD Sender: No OFD packet to send [13:46:23]OFD Sender: No OFD packet to send [13:46:28]OFD Sender: No OFD packet to send [13:46:33]OFD Sender: No OFD packet to send [13:46:38]OFD Sender: No OFD packet to send [13:46:43]OFD Sender: No OFD packet to send [13:46: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:43]OFD Sender: No OFD packet to send [13:48:48]OFD Sender: No OFD packet to send [13:48:53]OFD Sender: No OFD packet to send [13:48:58]OFD Sender: No OFD packet to send [13:49:03]OFD Sender: No OFD packet to send [13:49:08]OFD Sender: No OFD packet to send [13:49:13]OFD Sender: No OFD packet to send [13:49:18]OFD Sender: No OFD packet to send [13:49:23]OFD Sender: No OFD packet to send [13:49:28]OFD Sender: No OFD packet to send [13:49:33]OFD Sender: No OFD packet to send [13:49:38]OFD Sender: No OFD packet to send [13:49:43]OFD Sender: No OFD packet to send [13:49:48]OFD Sender: No OFD packet to send [13:49:53]OFD Sender: No OFD packet to send [13:49:58]OFD Sender: No OFD packet to send [13:50:03]OFD Sender: No OFD packet to send [13:50:08]OFD Sender: No OFD packet to send [13:50:13]OFD Sender: No OFD packet to send [13:50:18]OFD Sender: No OFD packet to send [13:50:23]OFD Sender: No OFD packet to send [13:50:28]OFD Sender: No OFD packet to send [13:50:33]OFD Sender: No OFD packet to send [13:50:38]OFD Sender: No OFD packet to send [13:50:43]OFD Sender: No OFD packet to send [13:50:48]OFD Sender: No OFD packet to send [13:50:53]OFD Sender: No OFD packet to send [13:50:58]OFD Sender: No OFD packet to send [13:51:03]OFD Sender: No OFD packet to send [13:51:08]OFD Sender: No OFD packet to send [13:51:13]OFD Sender: No OFD packet to send [13:51:18]OFD Sender: No OFD packet to send [13:51:23]OFD Sender: No OFD packet to send [13:51:28]OFD Sender: No OFD packet to send [13:51:33]OFD Sender: No OFD packet to send [13:51:38]OFD Sender: No OFD packet to send [13:51:43]OFD Sender: No OFD packet to send [13:51:48]OFD Sender: No OFD packet to send [13:51:53]OFD Sender: No OFD packet to send [13:51:58]OFD Sender: No OFD packet to send [13:52:03]OFD Sender: No OFD packet to send [13:52:08]OFD Sender: No OFD packet to send [13:52:13]OFD Sender: No OFD packet to send [13:52:18]OFD Sender: No OFD packet to send [13:52:23]OFD Sender: No OFD packet to send [13:52:28]OFD Sender: No OFD packet to send [13:52:33]OFD Sender: No OFD packet to send [13:52:38]OFD Sender: No OFD packet to send [13:52:43]OFD Sender: No OFD packet to send [13:52:48]OFD Sender: No OFD packet to send [13:52:53]OFD Sender: No OFD packet to send [13:52:58]OFD Sender: No OFD packet to send [13:53:03]OFD Sender: No OFD packet to send [13:53:08]OFD Sender: No OFD packet to send [13:53:13]OFD Sender: No OFD packet to send [13:53:18]OFD Sender: No OFD packet to send [13:53:23]OFD Sender: No OFD packet to send [13:53:28]OFD Sender: No OFD packet to send [13:53:33]OFD Sender: No OFD packet to send [13:53:38]OFD Sender: No OFD packet to send [13:53:43]OFD Sender: No OFD packet to send [13:53:48]OFD Sender: No OFD packet to send [13:53:53]OFD Sender: No OFD packet to send [13:53:58]OFD Sender: No OFD packet to send [13:54:03]OFD Sender: No OFD packet to send [13:54:08]OFD Sender: No OFD packet to send [13:54:13]OFD Sender: No OFD packet to send [13:54:18]OFD Sender: No OFD packet to send [13:54:23]OFD Sender: No OFD packet to send [13:54:28]OFD Sender: No OFD packet to send [13:54:33]OFD Sender: No OFD packet to send [13:54:38]OFD Sender: No OFD packet to send [13:54:43]OFD Sender: No OFD packet to send [13:54:48]OFD Sender: No OFD packet to send [13:54:53]OFD Sender: No OFD packet to send [13:54:58]OFD Sender: No OFD packet to send [13:55:03]OFD Sender: No OFD packet to send [13:55:08]OFD Sender: No OFD packet to send [13:55:13]OFD Sender: No OFD packet to send [13:55:18]OFD Sender: No OFD packet to send [13:55:23]OFD Sender: No OFD packet to send [13:55:28]OFD Sender: No OFD packet to send [13:55:33]OFD Sender: No OFD packet to send [13:55:38]OFD Sender: No OFD packet to send [13:55:43]OFD Sender: No OFD packet to send [13:55:48]OFD Sender: No OFD packet to send [13:55:53]OFD Sender: No OFD packet to send [13:55:58]OFD Sender: No OFD packet to send [13:56:03]OFD Sender: No OFD packet to send [13:56:08]OFD Sender: No OFD packet to send [13:56:13]OFD Sender: No OFD packet to send [13:56:18]OFD Sender: No OFD packet to send [13:56:23]OFD Sender: No OFD packet to send [13:56:28]OFD Sender: No OFD packet to send [13:56:33]OFD Sender: No OFD packet to send [13:56:38]OFD Sender: No OFD packet to send [13:56:43]OFD Sender: No OFD packet to send [13:56:48]OFD Sender: No OFD packet to send [13:56:53]OFD Sender: No OFD packet to send [13:56:58]OFD Sender: No OFD packet to send [13:57:03]OFD Sender: No OFD packet to send [13:57:08]OFD Sender: No OFD packet to send [13:57:13]OFD Sender: No OFD packet to send [13:57:18]OFD Sender: No OFD packet to send [13:57:23]OFD Sender: No OFD packet to send [13:57:28]OFD Sender: No OFD packet to send [13:57:33]OFD Sender: No OFD packet to send [13:57:38]OFD Sender: No OFD packet to send [13:57:43]OFD Sender: No OFD packet to send [13:57:48]OFD Sender: No OFD packet to send [13:57:53]OFD Sender: No OFD packet to send [13:57:58]OFD Sender: No OFD packet to send [13:58:03]OFD Sender: No OFD packet to send [13:58:08]OFD Sender: No OFD packet to send [13:58:13]OFD Sender: No OFD packet to send [13:58:17]accept exits with 7 [13:58:17]New connection [13:58:17]New thread 3067084132 created [13:58:17]Thread 3067227492 joined [13:58:17]Waiting for new connection... [13:58:17] Sock 7.Parse request [13:58:17]Sock 7.Check first char [13:58:17]Sock 7.First char is OK [13:58:17]request: POST /json_proto HTTP/1.0 [13:58:17]Method: POST [13:58:17]URL: /json_proto [13:58:17]Method is POST - this is cgi request [13:58:17]url: /json_proto [13:58:17]query_string will be loaded in cgi processing [13:58:17]execute_cgi json_proto POST (null) [13:58:17]execute_cgi path=json_proto method=POST [13:58:17]POST find Content-Length [13:58:17]Host: 172.17.38.133:8080 [13:58:17]Content-Length: 819 [13:58:17]Content-Type: application/json [13:58:17] [13:58:17]POST finish read [13:58:17]Found Content-Length = 819 [13:58:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672935", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 13.540, "sum" : 1000.61, "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.61 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:58:17]execute_script... [13:58: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)672935", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 13.540, "sum" : 1000.61, "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.61 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:58:17]POST & json_proto [13:58:17]process_json_proto [13:58:17]json parsed OK: [13:58:17]protocol is kg_v1.0 [13:58:17]action value=close_receipt [13:58:17]process_action close_receipt [13:58:17]cmd_close_receipt [13:58:17]MH_GetDate [13:58:17]Write to MH i2c: F0 00 00 49 AD E5 [13:58:17]Write i2c OK [13:58:17]MH_I2C_Read... [13:58:17]Read from MH i2c: F0 [13:58:17]MH_I2C_Read... [13:58:17]Read from MH i2c: F0 09 00 [13:58:17]MH_I2C_Read... [13:58:17]Read from MH i2c: F0 09 00 49 AD 00 06 E4 72 66 BD 8F 7C 64 DC [13:58:17]GetLastDocTimeStamp 1718804312 [13:58:17]current date 1718805510 [13:58:17]FM_GetShiftState [13:58:17]SAM_PROTO_GetShiftState [13:58:17]wFMCommunicate request_size=4 [13:58:17]MH_SAM_APDU [13:58:17]CAPDU: 80 13 01 00 [13:58:17]Write to MH i2c: E2 08 00 4A AD 80 13 01 00 00 00 00 00 74 [13:58:17]Write i2c OK [13:58:17]MH_I2C_Read... [13:58:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:58:17]Read from MH i2c: E2 [13:58:17]MH_I2C_Read... [13:58:17]Read from MH i2c: E2 0E 00 [13:58:17]MH_I2C_Read... [13:58:17]Read from MH i2c: E2 0E 00 4A AD 00 09 00 01 04 26 72 66 00 00 00 00 90 00 82 [13:58:17]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [13:58:17]wFMCommunicate OK [13:58:17]SAM_PROTO_GetShiftState done [13:58:17]FM_GetShiftState done [13:58:17]opened in 1718756868 [13:58:17]opened+sec_in_day 1718843268 [13:58:17]quantity*price = 100060 [13:58:17]sum+1 = 100062 [13:58:17]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.61 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 0.00 Безнал.: 1000.61 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 111 19.06.2024 13:58 Смена: 353 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000875093 ФД: 103681 ФПД: 166696654900927 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T135830&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103681&fm=166696654900927&tin=02508201610067®Number=0000000000092785&sum=100061 [13:58:18]StoreToDocumentArchive [13:58:18]shift 353 fd 103681 [13:58:18]save to /storage/0353/doc_00103681 [13:58:18]save last doc name /storage/0353/doc_00103681 to /storage/kkm_last_doc_name [13:58:18]save OK [13:58:18]Clear old archive folders... [13:58:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:58:18]tlvbuf is 01636DC0 [13:58:18]SAM_PROTO_ClearQueue [13:58:18]wFMCommunicate request_size=4 [13:58:18]MH_SAM_APDU [13:58:18]CAPDU: 80 09 00 00 [13:58:18]Write to MH i2c: E2 08 00 57 AD 80 09 00 00 00 00 00 00 76 [13:58:18]Write i2c OK [13:58:18]MH_I2C_Read... [13:58:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:58:19]Read from MH i2c: E2 [13:58:19]MH_I2C_Read... [13:58:19]Read from MH i2c: E2 03 00 [13:58:19]MH_I2C_Read... [13:58:19]Read from MH i2c: E2 03 00 57 AD 00 90 00 78 [13:58:19]RAPDU: 90 00 [13:58:19]wFMCommunicate OK [13:58:19]SAM_PROTO_ClearQueue done [13:58:19]KKMCreateOFDPacket [13:58:19]OFDProtocolAddRootSTLVToBuf [13:58:19]FM_MakeSignedData [13:58:19]FM_MakeSignedData [13:58:19]SAM_PROTO_SignData [13:58:19]wFMCommunicate request_size=4 [13:58:19]MH_SAM_APDU [13:58:19]CAPDU: 80 0D 01 02 [13:58:19]Write to MH i2c: E2 08 00 58 AD 80 0D 01 02 00 00 00 00 7E [13:58:19]Write i2c OK [13:58:19]MH_I2C_Read... [13:58:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:58:19]Read from MH i2c: E2 [13:58:19]MH_I2C_Read... [13:58:19]Read from MH i2c: E2 03 00 [13:58:19]MH_I2C_Read... [13:58:19]Read from MH i2c: E2 03 00 58 AD 00 90 00 79 [13:58:19]RAPDU: 90 00 [13:58:19]wFMCommunicate OK [13:58:19]wFMCommunicate request_size=255 [13:58:19]MH_SAM_APDU [13:58: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 E4 34 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 DD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DD 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 DD 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 06 E4 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 01 95 01 00 35 04 06 00 97 [13:58:19]Write to MH i2c: E2 02 01 59 AD 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E4 34 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 DD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DD 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 DD 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 06 E4 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 01 95 01 00 35 04 06 00 97 00 00 B4 [13:58:19]Write i2c OK [13:58:19]MH_I2C_Read... [13:58:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:58:19]Read from MH i2c: E2 [13:58:19]MH_I2C_Read... [13:58:19]Read from MH i2c: E2 03 00 [13:58:19]MH_I2C_Read... [13:58:19]Read from MH i2c: E2 03 00 59 AD 00 90 00 7A [13:58:19]RAPDU: 90 00 [13:58:19]wFMCommunicate OK [13:58:19]wFMCommunicate request_size=10 [13:58:19]MH_SAM_APDU [13:58:19]CAPDU: 80 0D 02 02 05 9C 16 E6 8E BF [13:58:19]Write to MH i2c: E2 0D 00 5A AD 80 0D 02 02 05 00 9C 16 E6 8E BF 00 00 70 [13:58:19]Write i2c OK [13:58:19]MH_I2C_Read... [13:58:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:58:19]Read from MH i2c: E2 [13:58:19]MH_I2C_Read... [13:58:19]Read from MH i2c: E2 03 00 [13:58:19]MH_I2C_Read... [13:58:19]Read from MH i2c: E2 03 00 5A AD 00 90 00 7B [13:58:19]RAPDU: 90 00 [13:58:19]wFMCommunicate OK [13:58:19]wFMCommunicate request_size=4 [13:58:19]MH_SAM_APDU [13:58:19]CAPDU: 80 0D 03 02 [13:58:19]Write to MH i2c: E2 08 00 5B AD 80 0D 03 02 00 00 00 00 83 [13:58:19]Write i2c OK [13:58:19]MH_I2C_Read... [13:58:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:58:19]Read from MH i2c: E2 [13:58:19]MH_I2C_Read... [13:58:19]Read from MH i2c: E2 0B 00 [13:58:19]MH_I2C_Read... [13:58:19]Read from MH i2c: E2 0B 00 5B AD 00 B7 BD 00 36 07 BF A9 3F 90 00 DC [13:58:19]RAPDU: B7 BD 00 36 07 BF A9 3F 90 00 [13:58:19]wFMCommunicate OK [13:58:19]SAM_PROTO_SignData done [13:58:19]FM_MakeSignedData done [13:58:19]CreateOFDProtocolMessage [13:58:19]wFMCommunicate request_size=4 [13:58:19]MH_SAM_APDU [13:58:19]CAPDU: 80 11 00 00 [13:58:19]Write to MH i2c: E2 08 00 5C AD 80 11 00 00 00 00 00 00 83 [13:58:19]Write i2c OK [13:58:19]MH_I2C_Read... [13:58:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:58:19]Read from MH i2c: E2 [13:58:19]MH_I2C_Read... [13:58:19]Read from MH i2c: E2 17 00 [13:58:19]MH_I2C_Read... [13:58:19]Read from MH i2c: E2 17 00 5C AD 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 D6 [13:58:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [13:58:19]wFMCommunicate OK [13:58:19]CreateOFDProtocolMessage done [13:58:19]OFDSenderStorePacket 103681 [13:58:19]StoreOFDPacket docnum=103681 [13:58:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 A9 A3 07 01 5C 5D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E4 34 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 DD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DD 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 DD 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 06 E4 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 01 95 01 00 35 04 06 00 97 9C 16 E6 8E BF B7 BD 00 36 07 BF A9 3F [13:58:19]CheckFolder [13:58:19]dirname=/storage/ofd_packets [13:58:19]CheckFolder done [13:58:19]ProducePacketName [13:58:19]name=ofd_packets/00103681 [13:58:19]NVStorageSaveData ofd_packets/00103681 [13:58:19]File name is /storage/ofd_packets/00103681 [13:58:19]Write 301 bytes [13:58:19]NVStorageSaveData done [13:58:19]OFDSenderStorePacket done [13:58:19]KKMCreateOFDPacket done [13:58:19]NVStorageSaveData kkm_last_timestamp [13:58:19]File name is /storage/kkm_last_timestamp [13:58:19]Write 4 bytes [13:58:19]NVStorageSaveData done [13:58:19]ExternCall_PrintAddStr [13:58:19]wPrintStart [13:58:19]Write to MH i2c: 01 00 00 5D AD 0A [13:58:19]Write i2c OK [13:58:19]MH_I2C_Read... [13:58:19]Read from MH i2c: 01 [13:58:19]MH_I2C_Read... [13:58:19]Read from MH i2c: 01 07 00 [13:58:19]MH_I2C_Read... [13:58:19]Read from MH i2c: 01 07 00 5D AD 00 00 00 00 00 FF 0F 1F [13:58:19]RasterBufferAndPrint [13:58:19]line Счет N : (1)672935 [13:58:19]line ИНН: 02508201610067 [13:58:19]line Контрольно-Кассовый Чек [13:58:19]line ПРОДАЖА [13:58:19]line ТРК (МРК, ГНК) : 41 [13:58:19]line Товар: 2710124500 [13:58:19]line Аи-95-К-5 [13:58:19]line 13.540 * 73.90 [13:58:19]line = 1000.61 [13:58:19]line НДС 12% НСП 1% [13:58:19]line > о реализуемом товаре [13:58:19]line ИТОГО: 1000.61 [13:58:19]line НСП 1% : 8.85 [13:58:19]line НДС 12% : 106.26 [13:58:19]line Наличными: 0.00 [13:58:19]line Безнал.: 1000.61 [13:58:19]line Место: АЗС № 120 "Партнер Нефть" [13:58:19]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [13:58:19]line СНО: Общий режим [13:58:19]line Чек 111 19.06.2024 13:58 [13:58:19]line Смена: 353 ФФД: 1.0 [13:58:19]line ЗНМ: 0300000164 [13:58:19]line РНМ: 0000000000092785 [13:58:19]line Версия ККМ: 001 [13:58:19]line Платежная система: Бакай Банк [13:58:19]line ФМ: 0000000000875093 [13:58:19]line ФД: 103681 [13:58:19]line ФПД: 166696654900927 [13:58:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T135830&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103681&fm=166696654900927&tin=02508201610067®Number=0000000000092785&sum=100061 [13:58:19]OFD Sender: Processing packet 103681 [packets to send 17, broken 16] [13:58:19]ProducePacketName [13:58:19]name=ofd_packets/00103681 [13:58:19]OFD Sender: To server: pG, [13:58:19]CommunicateWithHost lk.salyk.kg:30040 [13:58:19]ConnectInit lk.salyk.kg [13:58:19]written 0, free lines is 4095 [13:58:19]Connected sock=10 [13:58:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 A9 A3 07 01 5C 5D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E4 34 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 DD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DD 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 DD 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 06 E4 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 01 95 01 00 35 04 06 00 97 9C 16 E6 8E BF B7 BD 00 36 07 BF A9 3F [13:58: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 39 33 4F 00 00 00 99 03 47 00 A8 C9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 01 95 01 00 F4 03 04 00 8F 8A 72 66 B6 04 01 00 00 4D 53 66 F8 FE E4 7F 6C [13:58:20]CommunicateWithHost err = 0 [13:58:20]CheckOFDResponse [13:58:20]1017 (14) - 77093643461234 [13:58:20]1041 (16) - 0000000000875093 [13:58:20]1040 (4) - 103681 [13:58:20]1012 (4) - 19.06.2024 07:36 [13:58:20]1206 (1) - 0 [13:58:20]OFD Sender: Remove packet 103681 [13:58:20]ProducePacketName [13:58:20]name=ofd_packets/00103681 [13:58:20]NVStorageDeleteData [13:58:20]Write to MH i2c: 01 00 00 87 AD 34 [13:58:20]Write i2c OK [13:58:20]MH_I2C_Read... [13:58:20]Read from MH i2c: 01 [13:58:20]MH_I2C_Read... [13:58:20]Read from MH i2c: 01 07 00 [13:58:20]MH_I2C_Read... [13:58:20]Read from MH i2c: 01 07 00 87 AD 00 00 00 00 00 F5 0C 3C [13:58:20]RasterBufferAndPrint [13:58:20]line [13:58:20]line [13:58:20]line [13:58:20]line [13:58:20]line [13:58:20]written 0, free lines is 3324 [13:58:20]MH_Cut [13:58:20]Write to MH i2c: D1 01 00 8E AD 01 0D [13:58:20]Write i2c OK [13:58:20]MH_I2C_Read... [13:58:20]Read from MH i2c: D1 [13:58:20]MH_I2C_Read... [13:58:20]Read from MH i2c: D1 01 00 [13:58:20]MH_I2C_Read... [13:58:20]Read from MH i2c: D1 01 00 8E AD 00 0C [13:58:20]Write to MH i2c: 01 00 00 8F AD 3C [13:58:20]Write i2c OK [13:58:20]MH_I2C_Read... [13:58:20]OFD Sender: No OFD packet to send [13:58:21]*** Cut start [13:58:21]*** Partial cut [13:58:21]*** CUTSNS_PIN = 1 [13:58:21]*** CUTSNS_PIN = 0 [13:58:21]*** Brake cut motor [13:58:21]Read from MH i2c: 01 [13:58:21]MH_I2C_Read... [13:58:21]*** Stop cut motor [13:58:21]*** Cut end [13:58:21]Read from MH i2c: 01 07 00 [13:58:21]MH_I2C_Read... [13:58:21]Read from MH i2c: 01 07 00 8F AD 00 00 00 00 00 FF 0F 51 [13:58:21]process_action close_receipt done [13:58:21]requested_data is exist [13:58:21]produce_requested_data [13:58:21]requested_item fm.sn is exist - process it [13:58:21]wFMCommunicate request_size=4 [13:58:21]MH_SAM_APDU [13:58:21]CAPDU: 80 11 00 00 [13:58:21]Write to MH i2c: E2 08 00 90 AD 80 11 00 00 00 00 00 00 B7 [13:58:21]Write i2c OK [13:58:21]MH_I2C_Read... [13:58:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:58:21]Read from MH i2c: E2 [13:58:21]MH_I2C_Read... [13:58:21]Read from MH i2c: E2 17 00 [13:58:21]MH_I2C_Read... [13:58:21]Read from MH i2c: E2 17 00 90 AD 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 0A [13:58:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [13:58:21]wFMCommunicate OK [13:58:21]requested_item fd.num is exist - process it [13:58:21]SAM_PROTO_GetFieldsCounters [13:58:21]wFMCommunicate request_size=4 [13:58:21]MH_SAM_APDU [13:58:21]CAPDU: 80 13 00 00 [13:58:21]Write to MH i2c: E2 08 00 91 AD 80 13 00 00 00 00 00 00 BA [13:58:21]Write i2c OK [13:58:21]MH_I2C_Read... [13:58:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:58:21]Read from MH i2c: E2 [13:58:21]MH_I2C_Read... [13:58:21]Read from MH i2c: E2 62 00 [13:58:21]MH_I2C_Read... [13:58:21]Read from MH i2c: E2 62 00 91 AD 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 01 95 01 00 0E 04 04 00 61 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 27 [13:58: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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 01 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 6F 00 00 00 5E 04 04 00 6F 00 00 00 57 04 04 00 70 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:58:21]wFMCommunicate OK [13:58:21]SAM_PROTO_GetFieldsCounters done [13:58:21]requested_item shift.num is exist - process it [13:58:21]requested_item shift.opened is exist - process it [13:58:21]req_shift_opened [13:58:21]FM_GetShiftState [13:58:21]SAM_PROTO_GetShiftState [13:58:21]wFMCommunicate request_size=4 [13:58:21]MH_SAM_APDU [13:58:21]CAPDU: 80 13 01 00 [13:58:21]Write to MH i2c: E2 08 00 92 AD 80 13 01 00 00 00 00 00 BC [13:58:21]Write i2c OK [13:58:21]MH_I2C_Read... [13:58:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:58:21]Read from MH i2c: E2 [13:58:21]MH_I2C_Read... [13:58:21]Read from MH i2c: E2 0E 00 [13:58:21]MH_I2C_Read... [13:58:21]Read from MH i2c: E2 0E 00 92 AD 00 09 00 01 04 26 72 66 00 00 00 00 90 00 CA [13:58:21]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [13:58:21]wFMCommunicate OK [13:58:21]SAM_PROTO_GetShiftState done [13:58:21]FM_GetShiftState done [13:58:21]req_shift_opened done [13:58:21]requested_item shift.open_date is exist - process it [13:58:21]req_shift_open_date [13:58:21]req_shift_open_date done [13:58:21]produce_requested_data done [13:58:21]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103681,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [13:58:21]process_action_free close_receipt [13:58:21]json_value_free [13:58:21]json_value_free done [13:58:21]process_json_proto returns [13:58:21]Send response to host [13:58:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103681,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [13:58:21]free response buf [13:58:21]execute_script done [13:58:21]execute_script returns [13:58:21]free content buf [13:58:21]Sock 7.Close socket [13:58:21]Sock 7.Thread stoped [13:58:25]OFD Sender: No OFD packet to send [13:58:30]OFD Sender: No OFD packet to send [13:58:35]OFD Sender: No OFD packet to send [13:58:40]OFD Sender: No OFD packet to send [13:58:45]OFD Sender: No OFD packet to send [13:58:50]OFD Sender: No OFD packet to send [13:58:55]OFD Sender: No OFD packet to send [13:59:00]OFD Sender: No OFD packet to send [13:59:05]OFD Sender: No OFD packet to send [13:59:10]OFD Sender: No OFD packet to send [13:59:15]OFD Sender: No OFD packet to send [13:59:20]OFD Sender: No OFD packet to send [13:59:25]OFD Sender: No OFD packet to send [13:59:30]OFD Sender: No OFD packet to send [13:59:35]OFD Sender: No OFD packet to send [13:59:40]OFD Sender: No OFD packet to send [13:59:45]OFD Sender: No OFD packet to send [13:59:50]OFD Sender: No OFD packet to send [13:59:52]accept exits with 9 [13:59:52]New connection [13:59:52]New thread 3067227492 created [13:59:52]Thread 3067084132 joined [13:59:52]Waiting for new connection... [13:59:52] Sock 9.Parse request [13:59:52]Sock 9.Check first char [13:59:52]Sock 9.First char is OK [13:59:52]request: POST /json_proto HTTP/1.0 [13:59:52]Method: POST [13:59:52]URL: /json_proto [13:59:52]Method is POST - this is cgi request [13:59:52]url: /json_proto [13:59:52]query_string will be loaded in cgi processing [13:59:52]execute_cgi json_proto POST (null) [13:59:52]execute_cgi path=json_proto method=POST [13:59:52]POST find Content-Length [13:59:52]Host: 172.17.38.133:8080 [13:59:52]Content-Length: 677 [13:59:52]Content-Type: application/json [13:59:52] [13:59:52]POST finish read [13:59:52]Found Content-Length = 677 [13:59:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672937", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:59:52]execute_script... [13:59: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)672937", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:59:52]POST & json_proto [13:59:52]process_json_proto [13:59:52]json parsed OK: [13:59:52]protocol is kg_v1.0 [13:59:52]action value=close_receipt [13:59:52]process_action close_receipt [13:59:52]cmd_close_receipt [13:59:52]MH_GetDate [13:59:52]Write to MH i2c: F0 00 00 93 AD 2F [13:59:52]Write i2c OK [13:59:52]MH_I2C_Read... [13:59:52]Read from MH i2c: F0 [13:59:52]MH_I2C_Read... [13:59:52]Read from MH i2c: F0 09 00 [13:59:52]MH_I2C_Read... [13:59:52]Read from MH i2c: F0 09 00 93 AD 00 64 E4 72 66 BD 8F 7C 64 84 [13:59:52]GetLastDocTimeStamp 1718805510 [13:59:52]current date 1718805604 [13:59:52]FM_GetShiftState [13:59:52]SAM_PROTO_GetShiftState [13:59:52]wFMCommunicate request_size=4 [13:59:52]MH_SAM_APDU [13:59:52]CAPDU: 80 13 01 00 [13:59:52]Write to MH i2c: E2 08 00 94 AD 80 13 01 00 00 00 00 00 BE [13:59:52]Write i2c OK [13:59:52]MH_I2C_Read... [13:59:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:59:52]Read from MH i2c: E2 [13:59:52]MH_I2C_Read... [13:59:52]Read from MH i2c: E2 0E 00 [13:59:52]MH_I2C_Read... [13:59:52]Read from MH i2c: E2 0E 00 94 AD 00 09 00 01 04 26 72 66 00 00 00 00 90 00 CC [13:59:52]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [13:59:52]wFMCommunicate OK [13:59:52]SAM_PROTO_GetShiftState done [13:59:52]FM_GetShiftState done [13:59:52]opened in 1718756868 [13:59:52]opened+sec_in_day 1718843268 [13:59:52]quantity*price = 50065 [13:59:52]sum+1 = 50067 [13:59:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.17 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 112 19.06.2024 14:00 Смена: 353 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103682 ФПД: 159856166095579 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T140004&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103682&fm=159856166095579&tin=02508201610067®Number=0000000000092785&sum=50000 [13:59:53]StoreToDocumentArchive [13:59:53]shift 353 fd 103682 [13:59:53]save to /storage/0353/doc_00103682 [13:59:53]save last doc name /storage/0353/doc_00103682 to /storage/kkm_last_doc_name [13:59:53]save OK [13:59:53]Clear old archive folders... [13:59:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:59:53]tlvbuf is 014E8170 [13:59:53]SAM_PROTO_ClearQueue [13:59:53]wFMCommunicate request_size=4 [13:59:53]MH_SAM_APDU [13:59:53]CAPDU: 80 09 00 00 [13:59:53]Write to MH i2c: E2 08 00 A1 AD 80 09 00 00 00 00 00 00 C0 [13:59:53]Write i2c OK [13:59:53]MH_I2C_Read... [13:59:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:59:53]Read from MH i2c: E2 [13:59:53]MH_I2C_Read... [13:59:53]Read from MH i2c: E2 03 00 [13:59:53]MH_I2C_Read... [13:59:53]Read from MH i2c: E2 03 00 A1 AD 00 90 00 C2 [13:59:53]RAPDU: 90 00 [13:59:53]wFMCommunicate OK [13:59:53]SAM_PROTO_ClearQueue done [13:59:53]KKMCreateOFDPacket [13:59:53]OFDProtocolAddRootSTLVToBuf [13:59:53]FM_MakeSignedData [13:59:53]FM_MakeSignedData [13:59:53]SAM_PROTO_SignData [13:59:53]wFMCommunicate request_size=4 [13:59:53]MH_SAM_APDU [13:59:53]CAPDU: 80 0D 01 02 [13:59:53]Write to MH i2c: E2 08 00 A2 AD 80 0D 01 02 00 00 00 00 C8 [13:59:53]Write i2c OK [13:59:53]MH_I2C_Read... [13:59:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:59:53]Read from MH i2c: E2 [13:59:53]MH_I2C_Read... [13:59:53]Read from MH i2c: E2 03 00 [13:59:53]MH_I2C_Read... [13:59:53]Read from MH i2c: E2 03 00 A2 AD 00 90 00 C3 [13:59:53]RAPDU: 90 00 [13:59:53]wFMCommunicate OK [13:59:53]wFMCommunicate request_size=255 [13:59:53]MH_SAM_APDU [13:59: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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 64 E4 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 02 95 01 00 35 04 06 00 91 [13:59:53]Write to MH i2c: E2 02 01 A3 AD 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 64 E4 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 02 95 01 00 35 04 06 00 91 00 00 9D [13:59:53]Write i2c OK [13:59:53]MH_I2C_Read... [13:59:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:59:53]Read from MH i2c: E2 [13:59:53]MH_I2C_Read... [13:59:53]Read from MH i2c: E2 03 00 [13:59:53]MH_I2C_Read... [13:59:53]Read from MH i2c: E2 03 00 A3 AD 00 90 00 C4 [13:59:53]RAPDU: 90 00 [13:59:53]wFMCommunicate OK [13:59:53]wFMCommunicate request_size=10 [13:59:53]MH_SAM_APDU [13:59:53]CAPDU: 80 0D 02 02 05 63 69 FE CA DB [13:59:53]Write to MH i2c: E2 0D 00 A4 AD 80 0D 02 02 05 00 63 69 FE CA DB 00 00 44 [13:59:53]Write i2c OK [13:59:53]MH_I2C_Read... [13:59:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:59:53]Read from MH i2c: E2 [13:59:53]MH_I2C_Read... [13:59:53]Read from MH i2c: E2 03 00 [13:59:53]MH_I2C_Read... [13:59:53]Read from MH i2c: E2 03 00 A4 AD 00 90 00 C5 [13:59:53]RAPDU: 90 00 [13:59:53]wFMCommunicate OK [13:59:53]wFMCommunicate request_size=4 [13:59:53]MH_SAM_APDU [13:59:53]CAPDU: 80 0D 03 02 [13:59:53]Write to MH i2c: E2 08 00 A5 AD 80 0D 03 02 00 00 00 00 CD [13:59:53]Write i2c OK [13:59:53]MH_I2C_Read... [13:59:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:59:53]Read from MH i2c: E2 [13:59:53]MH_I2C_Read... [13:59:53]Read from MH i2c: E2 0B 00 [13:59:53]MH_I2C_Read... [13:59:53]Read from MH i2c: E2 0B 00 A5 AD 00 22 53 F1 6A 88 04 98 9E 90 00 60 [13:59:53]RAPDU: 22 53 F1 6A 88 04 98 9E 90 00 [13:59:53]wFMCommunicate OK [13:59:53]SAM_PROTO_SignData done [13:59:53]FM_MakeSignedData done [13:59:53]CreateOFDProtocolMessage [13:59:53]wFMCommunicate request_size=4 [13:59:53]MH_SAM_APDU [13:59:53]CAPDU: 80 11 00 00 [13:59:53]Write to MH i2c: E2 08 00 A6 AD 80 11 00 00 00 00 00 00 CD [13:59:53]Write i2c OK [13:59:53]MH_I2C_Read... [13:59:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:59:53]Read from MH i2c: E2 [13:59:53]MH_I2C_Read... [13:59:53]Read from MH i2c: E2 17 00 [13:59:53]MH_I2C_Read... [13:59:53]Read from MH i2c: E2 17 00 A6 AD 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 20 [13:59:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [13:59:53]wFMCommunicate OK [13:59:53]CreateOFDProtocolMessage done [13:59:53]OFDSenderStorePacket 103682 [13:59:53]StoreOFDPacket docnum=103682 [13:59:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 0B 62 07 01 54 E0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 64 E4 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 02 95 01 00 35 04 06 00 91 63 69 FE CA DB 22 53 F1 6A 88 04 98 9E [13:59:53]CheckFolder [13:59:53]dirname=/storage/ofd_packets [13:59:53]CheckFolder done [13:59:53]ProducePacketName [13:59:53]name=ofd_packets/00103682 [13:59:53]NVStorageSaveData ofd_packets/00103682 [13:59:53]File name is /storage/ofd_packets/00103682 [13:59:53]Write 301 bytes [13:59:53]NVStorageSaveData done [13:59:53]OFDSenderStorePacket done [13:59:53]KKMCreateOFDPacket done [13:59:53]NVStorageSaveData kkm_last_timestamp [13:59:53]File name is /storage/kkm_last_timestamp [13:59:53]Write 4 bytes [13:59:53]NVStorageSaveData done [13:59:53]ExternCall_PrintAddStr [13:59:53]wPrintStart [13:59:53]Write to MH i2c: 01 00 00 A7 AD 54 [13:59:53]Write i2c OK [13:59:53]MH_I2C_Read... [13:59:53]Read from MH i2c: 01 [13:59:53]MH_I2C_Read... [13:59:53]Read from MH i2c: 01 07 00 [13:59:54]MH_I2C_Read... [13:59:54]Read from MH i2c: 01 07 00 A7 AD 00 00 00 00 00 FF 0F 69 [13:59:54]RasterBufferAndPrint [13:59:54]line Счет N : (1)672937 [13:59:54]line ИНН: 02508201610067 [13:59:54]line Контрольно-Кассовый Чек [13:59:54]line ПРОДАЖА [13:59:54]line ТРК (МРК, ГНК) : 42 [13:59:54]line Товар: 2710124130 [13:59:54]line Аи-92-К-5 [13:59:54]line 7.540 * 66.40 [13:59:54]line = 500.66 [13:59:54]line НДС 12% НСП 1% [13:59:54]line > о реализуемом товаре [13:59:54]line ОКРУГЛЕНИЕ: -0.66 [13:59:54]line ИТОГО: 500.00 [13:59:54]line Внесено: 500.00 [13:59:54]line СДАЧА: 0.00 [13:59:54]line НСП 1% : 4.43 [13:59:54]line НДС 12% : 53.17 [13:59:54]line Наличными: 500.00 [13:59:54]line Безнал.: 0.00 [13:59:54]line Место: АЗС № 120 "Партнер Нефть" [13:59:54]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [13:59:54]line СНО: Общий режим [13:59:54]line Чек 112 19.06.2024 14:00 [13:59:54]line Смена: 353 ФФД: 1.0 [13:59:54]line ЗНМ: 0300000164 [13:59:54]line РНМ: 0000000000092785 [13:59:54]line Версия ККМ: 001 [13:59:54]line ФМ: 0000000000875093 [13:59:54]line ФД: 103682 [13:59:54]line ФПД: 159856166095579 [13:59:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T140004&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103682&fm=159856166095579&tin=02508201610067®Number=0000000000092785&sum=50000 [13:59:54]OFD Sender: Processing packet 103682 [packets to send 17, broken 16] [13:59:54]ProducePacketName [13:59:54]name=ofd_packets/00103682 [13:59:54]OFD Sender: To server: pG, [13:59:54]CommunicateWithHost lk.salyk.kg:30040 [13:59:54]ConnectInit lk.salyk.kg [13:59:54]written 0, free lines is 4095 [13:59:54]Connected sock=10 [13:59: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 39 33 0F 01 00 00 0B 62 07 01 54 E0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 64 E4 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 02 95 01 00 35 04 06 00 91 63 69 FE CA DB 22 53 F1 6A 88 04 98 9E [13:59: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 39 33 4F 00 00 00 90 30 47 00 28 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 39 33 10 04 04 00 02 95 01 00 F4 03 04 00 ED 8A 72 66 B6 04 01 00 00 C9 D2 F3 EE B5 CC 4B E1 [13:59:54]CommunicateWithHost err = 0 [13:59:54]CheckOFDResponse [13:59:54]1017 (14) - 77093643461234 [13:59:54]1041 (16) - 0000000000875093 [13:59:54]1040 (4) - 103682 [13:59:54]1012 (4) - 19.06.2024 07:38 [13:59:54]1206 (1) - 0 [13:59:54]OFD Sender: Remove packet 103682 [13:59:54]ProducePacketName [13:59:54]name=ofd_packets/00103682 [13:59:54]NVStorageDeleteData [13:59:54]Write to MH i2c: 01 00 00 D2 AD 7F [13:59:54]Write i2c OK [13:59:54]MH_I2C_Read... [13:59:54]Read from MH i2c: 01 [13:59:54]MH_I2C_Read... [13:59:54]Read from MH i2c: 01 07 00 [13:59:54]MH_I2C_Read... [13:59:54]Read from MH i2c: 01 07 00 D2 AD 00 00 00 00 00 E5 0C 77 [13:59:54]RasterBufferAndPrint [13:59:54]line [13:59:54]line [13:59:54]line [13:59:54]line [13:59:54]line [13:59:54]written 0, free lines is 3310 [13:59:54]MH_Cut [13:59:54]Write to MH i2c: D1 01 00 D9 AD 01 58 [13:59:54]Write i2c OK [13:59:54]MH_I2C_Read... [13:59:54]Read from MH i2c: D1 [13:59:54]MH_I2C_Read... [13:59:54]Read from MH i2c: D1 01 00 [13:59:54]MH_I2C_Read... [13:59:54]Read from MH i2c: D1 01 00 D9 AD 00 57 [13:59:54]Write to MH i2c: 01 00 00 DA AD 87 [13:59:54]Write i2c OK [13:59:54]MH_I2C_Read... [13:59:55]OFD Sender: No OFD packet to send [13:59:55]*** Cut start [13:59:55]*** Partial cut [13:59:55]*** CUTSNS_PIN = 1 [13:59:55]*** CUTSNS_PIN = 0 [13:59:55]*** Brake cut motor [13:59:56]Read from MH i2c: 01 [13:59:56]MH_I2C_Read... [13:59:56]*** Stop cut motor [13:59:56]*** Cut end [13:59:56]Read from MH i2c: 01 07 00 [13:59:56]MH_I2C_Read... [13:59:56]Read from MH i2c: 01 07 00 DA AD 00 00 00 00 00 FF 0F 9C [13:59:56]process_action close_receipt done [13:59:56]requested_data is exist [13:59:56]produce_requested_data [13:59:56]requested_item fm.sn is exist - process it [13:59:56]wFMCommunicate request_size=4 [13:59:56]MH_SAM_APDU [13:59:56]CAPDU: 80 11 00 00 [13:59:56]Write to MH i2c: E2 08 00 DB AD 80 11 00 00 00 00 00 00 02 [13:59:56]Write i2c OK [13:59:56]MH_I2C_Read... [13:59:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:59:56]Read from MH i2c: E2 [13:59:56]MH_I2C_Read... [13:59:56]Read from MH i2c: E2 17 00 [13:59:56]MH_I2C_Read... [13:59:56]Read from MH i2c: E2 17 00 DB AD 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 55 [13:59:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [13:59:56]wFMCommunicate OK [13:59:56]requested_item fd.num is exist - process it [13:59:56]SAM_PROTO_GetFieldsCounters [13:59:56]wFMCommunicate request_size=4 [13:59:56]MH_SAM_APDU [13:59:56]CAPDU: 80 13 00 00 [13:59:56]Write to MH i2c: E2 08 00 DC AD 80 13 00 00 00 00 00 00 05 [13:59:56]Write i2c OK [13:59:56]MH_I2C_Read... [13:59:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:59:56]Read from MH i2c: E2 [13:59:56]MH_I2C_Read... [13:59:56]Read from MH i2c: E2 62 00 [13:59:56]MH_I2C_Read... [13:59:56]Read from MH i2c: E2 62 00 DC AD 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 02 95 01 00 0E 04 04 00 61 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 76 [13:59: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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 02 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 70 00 00 00 5E 04 04 00 70 00 00 00 57 04 04 00 71 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:59:56]wFMCommunicate OK [13:59:56]SAM_PROTO_GetFieldsCounters done [13:59:56]requested_item shift.num is exist - process it [13:59:56]requested_item shift.opened is exist - process it [13:59:56]req_shift_opened [13:59:56]FM_GetShiftState [13:59:56]SAM_PROTO_GetShiftState [13:59:56]wFMCommunicate request_size=4 [13:59:56]MH_SAM_APDU [13:59:56]CAPDU: 80 13 01 00 [13:59:56]Write to MH i2c: E2 08 00 DD AD 80 13 01 00 00 00 00 00 07 [13:59:56]Write i2c OK [13:59:56]MH_I2C_Read... [13:59:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:59:56]Read from MH i2c: E2 [13:59:56]MH_I2C_Read... [13:59:56]Read from MH i2c: E2 0E 00 [13:59:56]MH_I2C_Read... [13:59:56]Read from MH i2c: E2 0E 00 DD AD 00 09 00 01 04 26 72 66 00 00 00 00 90 00 15 [13:59:56]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [13:59:56]wFMCommunicate OK [13:59:56]SAM_PROTO_GetShiftState done [13:59:56]FM_GetShiftState done [13:59:56]req_shift_opened done [13:59:56]requested_item shift.open_date is exist - process it [13:59:56]req_shift_open_date [13:59:56]req_shift_open_date done [13:59:56]produce_requested_data done [13:59:56]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103682,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [13:59:56]process_action_free close_receipt [13:59:56]json_value_free [13:59:56]json_value_free done [13:59:56]process_json_proto returns [13:59:56]Send response to host [13:59:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103682,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [13:59:56]free response buf [13:59:56]execute_script done [13:59:56]execute_script returns [13:59:56]free content buf [13:59:56]Sock 9.Close socket [13:59:56]Sock 9.Thread stoped [14:00:00]OFD Sender: No OFD packet to send [14:00:05]OFD Sender: No OFD packet to send [14:00:09]accept exits with 7 [14:00:09]New connection [14:00:09]New thread 3067084132 created [14:00:09]Thread 3067227492 joined [14:00:09]Waiting for new connection... [14:00:09] Sock 7.Parse request [14:00:09]Sock 7.Check first char [14:00:09]Sock 7.First char is OK [14:00:09]request: POST /json_proto HTTP/1.0 [14:00:09]Method: POST [14:00:09]URL: /json_proto [14:00:09]Method is POST - this is cgi request [14:00:09]url: /json_proto [14:00:09]query_string will be loaded in cgi processing [14:00:09]execute_cgi json_proto POST (null) [14:00:09]execute_cgi path=json_proto method=POST [14:00:09]POST find Content-Length [14:00:09]Host: 172.17.38.133:8080 [14:00:09]Content-Length: 824 [14:00:09]Content-Type: application/json [14:00:09] [14:00:09]POST finish read [14:00:09]Found Content-Length = 824 [14:00:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672936", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 24.000, "sum" : 1749.60, "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" : 1749.60 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:00:09]execute_script... [14:00:09]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672936", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 24.000, "sum" : 1749.60, "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" : 1749.60 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:00:09]POST & json_proto [14:00:09]process_json_proto [14:00:09]json parsed OK: [14:00:09]protocol is kg_v1.0 [14:00:09]action value=close_receipt [14:00:09]process_action close_receipt [14:00:09]cmd_close_receipt [14:00:09]MH_GetDate [14:00:09]Write to MH i2c: F0 00 00 DE AD 7A [14:00:09]Write i2c OK [14:00:09]MH_I2C_Read... [14:00:09]Read from MH i2c: F0 [14:00:09]MH_I2C_Read... [14:00:09]Read from MH i2c: F0 09 00 [14:00:09]MH_I2C_Read... [14:00:09]Read from MH i2c: F0 09 00 DE AD 00 76 E4 72 66 BD 8F 7C 64 E1 [14:00:09]GetLastDocTimeStamp 1718805604 [14:00:09]current date 1718805622 [14:00:09]FM_GetShiftState [14:00:09]SAM_PROTO_GetShiftState [14:00:09]wFMCommunicate request_size=4 [14:00:09]MH_SAM_APDU [14:00:09]CAPDU: 80 13 01 00 [14:00:09]Write to MH i2c: E2 08 00 DF AD 80 13 01 00 00 00 00 00 09 [14:00:09]Write i2c OK [14:00:09]MH_I2C_Read... [14:00:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:00:09]Read from MH i2c: E2 [14:00:09]MH_I2C_Read... [14:00:09]Read from MH i2c: E2 0E 00 [14:00:09]MH_I2C_Read... [14:00:09]Read from MH i2c: E2 0E 00 DF AD 00 09 00 01 04 26 72 66 00 00 00 00 90 00 17 [14:00:09]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [14:00:09]wFMCommunicate OK [14:00:09]SAM_PROTO_GetShiftState done [14:00:09]FM_GetShiftState done [14:00:09]opened in 1718756868 [14:00:09]opened+sec_in_day 1718843268 [14:00:09]quantity*price = 174960 [14:00:09]sum+1 = 174961 [14:00:09]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1749.60 НСП 1% : 15.48 НДС 12% : 185.80 Наличными: 0.00 Безнал.: 1749.60 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 113 19.06.2024 14:00 Смена: 353 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000875093 ФД: 103683 ФПД: 39761461840363 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T140022&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103683&fm=39761461840363&tin=02508201610067®Number=0000000000092785&sum=174960 [14:00:11]StoreToDocumentArchive [14:00:11]shift 353 fd 103683 [14:00:11]save to /storage/0353/doc_00103683 [14:00:11]save last doc name /storage/0353/doc_00103683 to /storage/kkm_last_doc_name [14:00:11]save OK [14:00:11]Clear old archive folders... [14:00:11]ProcessDocumentItem done err = 0, tmpTLVsize=252 [14:00:11]tlvbuf is 014A3480 [14:00:11]SAM_PROTO_ClearQueue [14:00:11]wFMCommunicate request_size=4 [14:00:11]MH_SAM_APDU [14:00:11]CAPDU: 80 09 00 00 [14:00:11]Write to MH i2c: E2 08 00 EC AD 80 09 00 00 00 00 00 00 0B [14:00:11]Write i2c OK [14:00:11]MH_I2C_Read... [14:00:11]Read from MH i2c: E2 [14:00:11]MH_I2C_Read... [14:00:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:00:11]Read from MH i2c: E2 03 00 [14:00:11]MH_I2C_Read... [14:00:11]Read from MH i2c: E2 03 00 EC AD 00 90 00 0D [14:00:11]RAPDU: 90 00 [14:00:11]wFMCommunicate OK [14:00:11]SAM_PROTO_ClearQueue done [14:00:11]KKMCreateOFDPacket [14:00:11]OFDProtocolAddRootSTLVToBuf [14:00:11]FM_MakeSignedData [14:00:11]FM_MakeSignedData [14:00:11]SAM_PROTO_SignData [14:00:11]wFMCommunicate request_size=4 [14:00:11]MH_SAM_APDU [14:00:11]CAPDU: 80 0D 01 02 [14:00:11]Write to MH i2c: E2 08 00 ED AD 80 0D 01 02 00 00 00 00 13 [14:00:11]Write i2c OK [14:00:11]MH_I2C_Read... [14:00:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:00:11]Read from MH i2c: E2 [14:00:11]MH_I2C_Read... [14:00:11]Read from MH i2c: E2 03 00 [14:00:11]MH_I2C_Read... [14:00:11]Read from MH i2c: E2 03 00 ED AD 00 90 00 0E [14:00:11]RAPDU: 90 00 [14:00:11]wFMCommunicate OK [14:00:11]wFMCommunicate request_size=255 [14:00:11]MH_SAM_APDU [14:00:11]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 C0 5D 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 70 AB 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 AB 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0C 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 94 48 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 70 AB 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 76 E4 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 03 95 01 00 35 04 06 00 [14:00:11]Write to MH i2c: E2 02 01 EE AD 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 C0 5D 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 70 AB 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 AB 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0C 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 94 48 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 70 AB 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 76 E4 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 03 95 01 00 35 04 06 00 00 00 F4 [14:00:11]Write i2c OK [14:00:11]MH_I2C_Read... [14:00:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:00:11]Read from MH i2c: E2 [14:00:11]MH_I2C_Read... [14:00:11]Read from MH i2c: E2 03 00 [14:00:11]MH_I2C_Read... [14:00:11]Read from MH i2c: E2 03 00 EE AD 00 90 00 0F [14:00:11]RAPDU: 90 00 [14:00:11]wFMCommunicate OK [14:00:11]wFMCommunicate request_size=11 [14:00:11]MH_SAM_APDU [14:00:11]CAPDU: 80 0D 02 02 06 24 29 AF CF 09 EB [14:00:11]Write to MH i2c: E2 0E 00 EF AD 80 0D 02 02 06 00 24 29 AF CF 09 EB 00 00 E1 [14:00:11]Write i2c OK [14:00:11]MH_I2C_Read... [14:00:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:00:11]Read from MH i2c: E2 [14:00:11]MH_I2C_Read... [14:00:11]Read from MH i2c: E2 03 00 [14:00:11]MH_I2C_Read... [14:00:11]Read from MH i2c: E2 03 00 EF AD 00 90 00 10 [14:00:11]RAPDU: 90 00 [14:00:11]wFMCommunicate OK [14:00:11]wFMCommunicate request_size=4 [14:00:11]MH_SAM_APDU [14:00:11]CAPDU: 80 0D 03 02 [14:00:11]Write to MH i2c: E2 08 00 F0 AD 80 0D 03 02 00 00 00 00 18 [14:00:11]Write i2c OK [14:00:11]MH_I2C_Read... [14:00:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:00:11]Read from MH i2c: E2 [14:00:11]MH_I2C_Read... [14:00:11]Read from MH i2c: E2 0B 00 [14:00:11]MH_I2C_Read... [14:00:11]Read from MH i2c: E2 0B 00 F0 AD 00 95 9C 90 15 FA E1 85 D4 90 00 23 [14:00:11]RAPDU: 95 9C 90 15 FA E1 85 D4 90 00 [14:00:11]wFMCommunicate OK [14:00:11]SAM_PROTO_SignData done [14:00:11]FM_MakeSignedData done [14:00:11]CreateOFDProtocolMessage [14:00:11]wFMCommunicate request_size=4 [14:00:11]MH_SAM_APDU [14:00:11]CAPDU: 80 11 00 00 [14:00:11]Write to MH i2c: E2 08 00 F1 AD 80 11 00 00 00 00 00 00 18 [14:00:11]Write i2c OK [14:00:11]MH_I2C_Read... [14:00:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:00:11]Read from MH i2c: E2 [14:00:11]MH_I2C_Read... [14:00:11]Read from MH i2c: E2 17 00 [14:00:11]MH_I2C_Read... [14:00:11]Read from MH i2c: E2 17 00 F1 AD 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 6B [14:00:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [14:00:11]wFMCommunicate OK [14:00:11]CreateOFDProtocolMessage done [14:00:11]OFDSenderStorePacket 103683 [14:00:11]StoreOFDPacket docnum=103683 [14:00:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 56 31 08 01 EC 45 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 C0 5D 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 70 AB 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 AB 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0C 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 94 48 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 70 AB 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 76 E4 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 03 95 01 00 35 04 06 00 24 29 AF CF 09 EB 95 9C 90 15 FA E1 85 D4 [14:00:11]CheckFolder [14:00:11]dirname=/storage/ofd_packets [14:00:11]CheckFolder done [14:00:11]ProducePacketName [14:00:11]name=ofd_packets/00103683 [14:00:11]NVStorageSaveData ofd_packets/00103683 [14:00:11]File name is /storage/ofd_packets/00103683 [14:00:11]Write 302 bytes [14:00:11]NVStorageSaveData done [14:00:11]OFDSenderStorePacket done [14:00:11]KKMCreateOFDPacket done [14:00:11]NVStorageSaveData kkm_last_timestamp [14:00:11]File name is /storage/kkm_last_timestamp [14:00:11]Write 4 bytes [14:00:11]NVStorageSaveData done [14:00:11]ExternCall_PrintAddStr [14:00:11]wPrintStart [14:00:11]Write to MH i2c: 01 00 00 F2 AD 9F [14:00:11]Write i2c OK [14:00:11]MH_I2C_Read... [14:00:11]Read from MH i2c: 01 [14:00:11]MH_I2C_Read... [14:00:11]Read from MH i2c: 01 07 00 [14:00:11]MH_I2C_Read... [14:00:11]Read from MH i2c: 01 07 00 F2 AD 00 00 00 00 00 FF 0F B4 [14:00:11]RasterBufferAndPrint [14:00:11]line Счет N : (1)672936 [14:00:11]line ИНН: 02508201610067 [14:00:11]line Контрольно-Кассовый Чек [14:00:11]line ПРОДАЖА [14:00:11]line ТРК (МРК, ГНК) : 21 [14:00:11]line Товар: 2710194210 [14:00:11]line ДТ(л)-К-5 [14:00:11]line 24.000 * 72.90 [14:00:11]line = 1749.60 [14:00:11]line НДС 12% НСП 1% [14:00:11]line > о реализуемом товаре [14:00:11]line ИТОГО: 1749.60 [14:00:11]line НСП 1% : 15.48 [14:00:11]line НДС 12% : 185.80 [14:00:11]line Наличными: 0.00 [14:00:11]line Безнал.: 1749.60 [14:00:11]line Место: АЗС № 120 "Партнер Нефть" [14:00:11]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [14:00:11]line СНО: Общий режим [14:00:11]line Чек 113 19.06.2024 14:00 [14:00:11]line Смена: 353 ФФД: 1.0 [14:00:11]line ЗНМ: 0300000164 [14:00:11]line РНМ: 0000000000092785 [14:00:11]line Версия ККМ: 001 [14:00:11]line Платежная система: Бакай Банк [14:00:11]line ФМ: 0000000000875093 [14:00:11]line ФД: 103683 [14:00:11]line ФПД: 39761461840363 [14:00:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T140022&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103683&fm=39761461840363&tin=02508201610067®Number=0000000000092785&sum=174960 [14:00:11]written 0, free lines is 4095 [14:00:11]OFD Sender: Processing packet 103683 [packets to send 17, broken 16] [14:00:11]ProducePacketName [14:00:11]name=ofd_packets/00103683 [14:00:11]OFD Sender: To server: pG, [14:00:11]CommunicateWithHost lk.salyk.kg:30040 [14:00:11]ConnectInit lk.salyk.kg [14:00:12]Connected sock=10 [14: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 39 33 10 01 00 00 56 31 08 01 EC 45 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 C0 5D 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 70 AB 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 AB 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0C 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 94 48 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 70 AB 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 76 E4 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 03 95 01 00 35 04 06 00 24 29 AF CF 09 EB 95 9C 90 15 FA E1 85 D4 [14: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 39 33 4F 00 00 00 FF 63 47 00 C3 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 39 33 10 04 04 00 03 95 01 00 F4 03 04 00 FF 8A 72 66 B6 04 01 00 00 41 26 E8 1F A0 EC F3 10 [14:00:12]CommunicateWithHost err = 0 [14:00:12]CheckOFDResponse [14:00:12]1017 (14) - 77093643461234 [14:00:12]1041 (16) - 0000000000875093 [14:00:12]1040 (4) - 103683 [14:00:12]1012 (4) - 19.06.2024 07:38 [14:00:12]1206 (1) - 0 [14:00:12]OFD Sender: Remove packet 103683 [14:00:12]ProducePacketName [14:00:12]name=ofd_packets/00103683 [14:00:12]NVStorageDeleteData [14:00:12]Write to MH i2c: 01 00 00 1C AE CA [14:00:12]Write i2c OK [14:00:12]MH_I2C_Read... [14:00:12]Read from MH i2c: 01 [14:00:12]MH_I2C_Read... [14:00:12]Read from MH i2c: 01 07 00 [14:00:12]MH_I2C_Read... [14:00:12]Read from MH i2c: 01 07 00 1C AE 00 00 00 00 00 ED 0C CA [14:00:12]RasterBufferAndPrint [14:00:12]line [14:00:12]line [14:00:12]line [14:00:12]line [14:00:12]line [14:00:12]written 0, free lines is 3318 [14:00:12]MH_Cut [14:00:12]Write to MH i2c: D1 01 00 23 AE 01 A3 [14:00:12]Write i2c OK [14:00:12]MH_I2C_Read... [14:00:12]Read from MH i2c: D1 [14:00:12]MH_I2C_Read... [14:00:12]Read from MH i2c: D1 01 00 [14:00:12]MH_I2C_Read... [14:00:12]Read from MH i2c: D1 01 00 23 AE 00 A2 [14:00:12]Write to MH i2c: 01 00 00 24 AE D2 [14:00:12]Write i2c OK [14:00:12]MH_I2C_Read... [14:00:12]OFD Sender: No OFD packet to send [14:00:13]*** Cut start [14:00:13]*** Partial cut [14:00:13]*** CUTSNS_PIN = 1 [14:00:13]*** CUTSNS_PIN = 0 [14:00:13]*** Brake cut motor [14:00:13]Read from MH i2c: 01 [14:00:13]MH_I2C_Read... [14:00:13]*** Stop cut motor [14:00:13]*** Cut end [14:00:13]Read from MH i2c: 01 07 00 [14:00:13]MH_I2C_Read... [14:00:13]Read from MH i2c: 01 07 00 24 AE 00 00 00 00 00 FF 0F E7 [14:00:13]process_action close_receipt done [14:00:13]requested_data is exist [14:00:13]produce_requested_data [14:00:13]requested_item fm.sn is exist - process it [14:00:13]wFMCommunicate request_size=4 [14:00:13]MH_SAM_APDU [14:00:13]CAPDU: 80 11 00 00 [14:00:13]Write to MH i2c: E2 08 00 25 AE 80 11 00 00 00 00 00 00 4D [14:00:13]Write i2c OK [14:00:13]MH_I2C_Read... [14:00:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:00:13]Read from MH i2c: E2 [14:00:13]MH_I2C_Read... [14:00:13]Read from MH i2c: E2 17 00 [14:00:13]MH_I2C_Read... [14:00:13]Read from MH i2c: E2 17 00 25 AE 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 A0 [14:00:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [14:00:13]wFMCommunicate OK [14:00:13]requested_item fd.num is exist - process it [14:00:13]SAM_PROTO_GetFieldsCounters [14:00:13]wFMCommunicate request_size=4 [14:00:13]MH_SAM_APDU [14:00:13]CAPDU: 80 13 00 00 [14:00:13]Write to MH i2c: E2 08 00 26 AE 80 13 00 00 00 00 00 00 50 [14:00:13]Write i2c OK [14:00:13]MH_I2C_Read... [14:00:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:00:13]Read from MH i2c: E2 [14:00:13]MH_I2C_Read... [14:00:13]Read from MH i2c: E2 62 00 [14:00:13]MH_I2C_Read... [14:00:13]Read from MH i2c: E2 62 00 26 AE 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 03 95 01 00 0E 04 04 00 61 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 C5 [14:00:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 03 95 01 00 0E 04 04 00 61 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 [14:00:13]wFMCommunicate OK [14:00:13]SAM_PROTO_GetFieldsCounters done [14:00:13]requested_item shift.num is exist - process it [14:00:13]requested_item shift.opened is exist - process it [14:00:13]req_shift_opened [14:00:13]FM_GetShiftState [14:00:13]SAM_PROTO_GetShiftState [14:00:13]wFMCommunicate request_size=4 [14:00:13]MH_SAM_APDU [14:00:13]CAPDU: 80 13 01 00 [14:00:13]Write to MH i2c: E2 08 00 27 AE 80 13 01 00 00 00 00 00 52 [14:00:13]Write i2c OK [14:00:13]MH_I2C_Read... [14:00:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:00:13]Read from MH i2c: E2 [14:00:13]MH_I2C_Read... [14:00:13]Read from MH i2c: E2 0E 00 [14:00:13]MH_I2C_Read... [14:00:13]Read from MH i2c: E2 0E 00 27 AE 00 09 00 01 04 26 72 66 00 00 00 00 90 00 60 [14:00:13]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [14:00:13]wFMCommunicate OK [14:00:13]SAM_PROTO_GetShiftState done [14:00:13]FM_GetShiftState done [14:00:13]req_shift_opened done [14:00:13]requested_item shift.open_date is exist - process it [14:00:13]req_shift_open_date [14:00:13]req_shift_open_date done [14:00:13]produce_requested_data done [14:00:13]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103683,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [14:00:13]process_action_free close_receipt [14:00:13]json_value_free [14:00:13]json_value_free done [14:00:13]process_json_proto returns [14:00:13]Send response to host [14:00:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103683,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [14:00:13]free response buf [14:00:13]execute_script done [14:00:13]execute_script returns [14:00:13]free content buf [14:00:13]Sock 7.Close socket [14:00:13]Sock 7.Thread stoped [14:00:17]OFD Sender: No OFD packet to send [14:00:22]OFD Sender: No OFD packet to send [14:00:27]OFD Sender: No OFD packet to send [14:00:32]OFD Sender: No OFD packet to send [14:00:37]OFD Sender: No OFD packet to send [14:00:42]OFD Sender: No OFD packet to send [14:00:47]OFD Sender: No OFD packet to send [14:00:52]OFD Sender: No OFD packet to send [14:00:57]OFD Sender: No OFD packet to send [14:01:02]OFD Sender: No OFD packet to send [14:01:07]OFD Sender: No OFD packet to send [14:01:12]OFD Sender: No OFD packet to send [14:01:17]OFD Sender: No OFD packet to send [14:01:22]OFD Sender: No OFD packet to send [14:01:27]OFD Sender: No OFD packet to send [14:01:32]OFD Sender: No OFD packet to send [14:01:37]OFD Sender: No OFD packet to send [14:01:42]OFD Sender: No OFD packet to send [14:01:47]OFD Sender: No OFD packet to send [14:01:52]OFD Sender: No OFD packet to send [14:01:57]OFD Sender: No OFD packet to send [14:02:02]OFD Sender: No OFD packet to send [14:02:07]OFD Sender: No OFD packet to send [14:02:12]OFD Sender: No OFD packet to send [14:02:17]OFD Sender: No OFD packet to send [14:02:22]OFD Sender: No OFD packet to send [14:02:27]OFD Sender: No OFD packet to send [14:02:32]OFD Sender: No OFD packet to send [14:02:37]OFD Sender: No OFD packet to send [14:02:42]OFD Sender: No OFD packet to send [14:02:47]OFD Sender: No OFD packet to send [14:02:52]OFD Sender: No OFD packet to send [14:02:57]OFD Sender: No OFD packet to send [14:03:02]OFD Sender: No OFD packet to send [14:03:07]OFD Sender: No OFD packet to send [14:03:12]OFD Sender: No OFD packet to send [14:03:17]OFD Sender: No OFD packet to send [14:03:23]OFD Sender: No OFD packet to send [14:03:28]OFD Sender: No OFD packet to send [14:03:33]OFD Sender: No OFD packet to send [14:03:38]OFD Sender: No OFD packet to send [14:03:43]OFD Sender: No OFD packet to send [14:03:48]OFD Sender: No OFD packet to send [14:03:53]OFD Sender: No OFD packet to send [14:03:58]OFD Sender: No OFD packet to send [14:04:03]OFD Sender: No OFD packet to send [14:04:08]OFD Sender: No OFD packet to send [14:04:13]OFD Sender: No OFD packet to send [14:04:18]OFD Sender: No OFD packet to send [14:04:23]OFD Sender: No OFD packet to send [14:04:28]OFD Sender: No OFD packet to send [14:04:33]OFD Sender: No OFD packet to send [14:04:38]OFD Sender: No OFD packet to send [14:04:43]OFD Sender: No OFD packet to send [14:04:48]OFD Sender: No OFD packet to send [14:04:53]OFD Sender: No OFD packet to send [14:04:58]OFD Sender: No OFD packet to send [14:05:03]OFD Sender: No OFD packet to send [14:05:08]OFD Sender: No OFD packet to send [14:05:13]OFD Sender: No OFD packet to send [14:05:18]OFD Sender: No OFD packet to send [14:05:23]OFD Sender: No OFD packet to send [14:05:28]OFD Sender: No OFD packet to send [14:05:33]OFD Sender: No OFD packet to send [14:05:38]OFD Sender: No OFD packet to send [14:05:43]OFD Sender: No OFD packet to send [14:05:48]OFD Sender: No OFD packet to send [14:05:53]OFD Sender: No OFD packet to send [14:05:58]OFD Sender: No OFD packet to send [14:06:02]accept exits with 9 [14:06:02]New connection [14:06:02]New thread 3067227492 created [14:06:02]Thread 3067084132 joined [14:06:02]Waiting for new connection... [14:06:02] Sock 9.Parse request [14:06:02]Sock 9.Check first char [14:06:02]Sock 9.First char is OK [14:06:02]request: POST /json_proto HTTP/1.0 [14:06:02]Method: POST [14:06:02]URL: /json_proto [14:06:02]Method is POST - this is cgi request [14:06:02]url: /json_proto [14:06:02]query_string will be loaded in cgi processing [14:06:02]execute_cgi json_proto POST (null) [14:06:02]execute_cgi path=json_proto method=POST [14:06:02]POST find Content-Length [14:06:02]Host: 172.17.38.133:8080 [14:06:02]Content-Length: 1169 [14:06:02]Content-Type: application/json [14:06:02] [14:06:02]POST finish read [14:06:02]Found Content-Length = 1169 [14:06:02]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 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. \u000A\u0421\u0447\u0435\u0442 N : (1)672941\u000A19.06.2024 13:43\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 41\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124500\u000A\u0410\u0438-95-\u041A-5\u000A 20.000 x 73.90\u000A\u0418\u0422\u041E\u0413: 1478.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30083655\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:06:02]execute_script... [14:06:02]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 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. \u000A\u0421\u0447\u0435\u0442 N : (1)672941\u000A19.06.2024 13:43\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 41\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124500\u000A\u0410\u0438-95-\u041A-5\u000A 20.000 x 73.90\u000A\u0418\u0422\u041E\u0413: 1478.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30083655\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:06:02]POST & json_proto [14:06:02]process_json_proto [14:06:02]json parsed OK: [14:06:02]protocol is kg_v1.0 [14:06:02]action value=print_text [14:06:02]process_action print_text [14:06:02]cmd_print_text [14:06:02]ExternCall_PrintAddStr [14:06:02]wPrintStart [14:06:02]Write to MH i2c: 01 00 00 28 AE D6 [14:06:02]Write i2c OK [14:06:02]MH_I2C_Read... [14:06:02]Read from MH i2c: 01 [14:06:02]MH_I2C_Read... [14:06:02]Read from MH i2c: 01 07 00 [14:06:02]MH_I2C_Read... [14:06:02]Read from MH i2c: 01 07 00 28 AE 00 00 00 00 00 FF 0F EB [14:06:02]RasterBufferAndPrint [14:06:02]line *****ТОВАРНЫЙ ЧЕК***** [14:06:02]line АЗС 120 [14:06:02]line Партнер нефть [14:06:02]line 02508201610067 [14:06:02]line Кассир : Байбугуева Г. [14:06:02]line Счет N : (1)672941 [14:06:02]line 19.06.2024 13:43 [14:06:02]line ПРОДАЖА [14:06:02]line ТРК (МРК, ГНК): 41 [14:06:02]line Вид ГСМ : 2710124500 [14:06:02]line Аи-95-К-5 [14:06:02]line 20.000 x 73.90 [14:06:02]line ИТОГ: 1478.00 [14:06:02]line Тип оплаты: Талоны: ТК ГПНА Online [14:06:02]line 30083655 [14:06:02]line ______________________ [14:06:02]line (подпись) [14:06:02]written 0, free lines is 4095 [14:06:02]Write to MH i2c: 01 00 00 3C AE EA [14:06:02]Write i2c OK [14:06:02]MH_I2C_Read... [14:06:02]Read from MH i2c: 01 [14:06:02]MH_I2C_Read... [14:06:02]Read from MH i2c: 01 07 00 [14:06:02]MH_I2C_Read... [14:06:02]Read from MH i2c: 01 07 00 3C AE 00 00 00 00 00 12 0E 11 [14:06:02]RasterBufferAndPrint [14:06:02]line [14:06:02]line [14:06:02]line [14:06:02]line [14:06:02]line [14:06:02]written 0, free lines is 3604 [14:06:02]MH_Cut [14:06:02]Write to MH i2c: D1 01 00 43 AE 01 C3 [14:06:02]Write i2c OK [14:06:02]MH_I2C_Read... [14:06:02]Read from MH i2c: D1 [14:06:02]MH_I2C_Read... [14:06:02]Read from MH i2c: D1 01 00 [14:06:02]MH_I2C_Read... [14:06:02]Read from MH i2c: D1 01 00 43 AE 00 C2 [14:06:02]Write to MH i2c: 01 00 00 44 AE F2 [14:06:02]Write i2c OK [14:06:02]MH_I2C_Read... [14:06:03]OFD Sender: No OFD packet to send [14:06:03]*** Cut start [14:06:03]*** Partial cut [14:06:03]*** CUTSNS_PIN = 1 [14:06:03]*** CUTSNS_PIN = 0 [14:06:03]*** Brake cut motor [14:06:03]Read from MH i2c: 01 [14:06:03]MH_I2C_Read... [14:06:03]*** Stop cut motor [14:06:03]*** Cut end [14:06:03]Read from MH i2c: 01 07 00 [14:06:03]MH_I2C_Read... [14:06:03]Read from MH i2c: 01 07 00 44 AE 00 00 00 00 00 FF 0F 07 [14:06:03]process_action print_text done [14:06:03]requested_data is exist [14:06:03]produce_requested_data [14:06:03]requested_item fm.sn is exist - process it [14:06:03]wFMCommunicate request_size=4 [14:06:03]MH_SAM_APDU [14:06:03]CAPDU: 80 11 00 00 [14:06:03]Write to MH i2c: E2 08 00 45 AE 80 11 00 00 00 00 00 00 6D [14:06:03]Write i2c OK [14:06:03]MH_I2C_Read... [14:06:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:06:03]Read from MH i2c: E2 [14:06:03]MH_I2C_Read... [14:06:03]Read from MH i2c: E2 17 00 [14:06:03]MH_I2C_Read... [14:06:03]Read from MH i2c: E2 17 00 45 AE 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 C0 [14:06:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [14:06:03]wFMCommunicate OK [14:06:03]requested_item fd.num is exist - process it [14:06:03]SAM_PROTO_GetFieldsCounters [14:06:03]wFMCommunicate request_size=4 [14:06:03]MH_SAM_APDU [14:06:03]CAPDU: 80 13 00 00 [14:06:03]Write to MH i2c: E2 08 00 46 AE 80 13 00 00 00 00 00 00 70 [14:06:03]Write i2c OK [14:06:03]MH_I2C_Read... [14:06:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:06:03]Read from MH i2c: E2 [14:06:03]MH_I2C_Read... [14:06:03]Read from MH i2c: E2 62 00 [14:06:03]MH_I2C_Read... [14:06:03]Read from MH i2c: E2 62 00 46 AE 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 03 95 01 00 0E 04 04 00 61 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 E5 [14:06: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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 03 95 01 00 0E 04 04 00 61 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 [14:06:03]wFMCommunicate OK [14:06:03]SAM_PROTO_GetFieldsCounters done [14:06:03]requested_item shift.num is exist - process it [14:06:03]requested_item shift.opened is exist - process it [14:06:03]req_shift_opened [14:06:03]FM_GetShiftState [14:06:03]SAM_PROTO_GetShiftState [14:06:03]wFMCommunicate request_size=4 [14:06:03]MH_SAM_APDU [14:06:03]CAPDU: 80 13 01 00 [14:06:03]Write to MH i2c: E2 08 00 47 AE 80 13 01 00 00 00 00 00 72 [14:06:03]Write i2c OK [14:06:03]MH_I2C_Read... [14:06:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:06:04]Read from MH i2c: E2 [14:06:04]MH_I2C_Read... [14:06:04]Read from MH i2c: E2 0E 00 [14:06:04]MH_I2C_Read... [14:06:04]Read from MH i2c: E2 0E 00 47 AE 00 09 00 01 04 26 72 66 00 00 00 00 90 00 80 [14:06:04]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [14:06:04]wFMCommunicate OK [14:06:04]SAM_PROTO_GetShiftState done [14:06:04]FM_GetShiftState done [14:06:04]req_shift_opened done [14:06:04]requested_item shift.open_date is exist - process it [14:06:04]req_shift_open_date [14:06:04]req_shift_open_date done [14:06:04]produce_requested_data done [14:06:04]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103683,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [14:06:04]process_action_free print_text [14:06:04]json_value_free [14:06:04]json_value_free done [14:06:04]process_json_proto returns [14:06:04]Send response to host [14:06:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103683,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [14:06:04]free response buf [14:06:04]execute_script done [14:06:04]execute_script returns [14:06:04]free content buf [14:06:04]Sock 9.Close socket [14:06:04]Sock 9.Thread stoped [14:06:08]OFD Sender: No OFD packet to send [14:06:13]OFD Sender: No OFD packet to send [14:06:18]OFD Sender: No OFD packet to send [14:06:23]OFD Sender: No OFD packet to send [14:06:28]OFD Sender: No OFD packet to send [14:06:33]OFD Sender: No OFD packet to send [14:06:38]OFD Sender: No OFD packet to send [14:06:38]int [14:06:38]Write to MH i2c: 01 00 00 48 AE F6 [14:06:38]*** FLAG_PRN_PAP1 set [14:06:38]Write i2c OK [14:06:38]MH_I2C_Read... [14:06:38]Read from MH i2c: 01 [14:06:38]MH_I2C_Read... [14:06:38]Read from MH i2c: 01 07 00 [14:06:38]MH_I2C_Read... [14:06:38]Read from MH i2c: 01 07 00 48 AE 00 01 00 00 00 FF 0F 0C [14:06:38]state=0 [14:06:38]No paper [14:06:38]int [14:06:38]Write to MH i2c: 01 00 00 49 AE F7 [14:06:38]*** FLAG_PRN_PAP2 set [14:06:38]Write i2c OK [14:06:38]MH_I2C_Read... [14:06:38]Read from MH i2c: 01 [14:06:38]MH_I2C_Read... [14:06:38]Read from MH i2c: 01 07 00 [14:06:38]MH_I2C_Read... [14:06:38]Read from MH i2c: 01 07 00 49 AE 00 03 00 00 00 FF 0F 0F [14:06:38]state=0 [14:06:38]No paper [14:06:38]Cover opened [14:06:43]OFD Sender: No OFD packet to send [14:06:43]Write to MH i2c: 01 00 00 4A AE F8 [14:06:43]Write i2c OK [14:06:43]MH_I2C_Read... [14:06:43]Read from MH i2c: 01 [14:06:43]MH_I2C_Read... [14:06:43]Read from MH i2c: 01 07 00 [14:06:43]MH_I2C_Read... [14:06:43]Read from MH i2c: 01 07 00 4A AE 00 03 00 00 00 FF 0F 10 [14:06:43]state=3 [14:06:43]No paper [14:06:43]Cover opened [14:06:46]int [14:06:46]Write to MH i2c: 01 00 00 4B AE F9 [14:06:46]*** FLAG_PRN_PAP1 reset [14:06:46]*** FLAG_PRN_PAP2 reset [14:06:46]Write i2c OK [14:06:46]MH_I2C_Read... [14:06:46]Read from MH i2c: 01 [14:06:46]MH_I2C_Read... [14:06:46]Read from MH i2c: 01 07 00 [14:06:46]MH_I2C_Read... [14:06:46]Read from MH i2c: 01 07 00 4B AE 00 00 00 00 00 FF 0F 0E [14:06:46]state=3 [14:06:46]Cover closed [14:06:48]OFD Sender: No OFD packet to send [14:06:53]OFD Sender: No OFD packet to send [14:06:58]OFD Sender: No OFD packet to send [14:07:03]OFD Sender: No OFD packet to send [14:07:08]OFD Sender: No OFD packet to send [14:07:13]OFD Sender: No OFD packet to send [14:07:18]OFD Sender: No OFD packet to send [14:07:23]OFD Sender: No OFD packet to send [14:07:28]OFD Sender: No OFD packet to send [14:07:33]OFD Sender: No OFD packet to send [14:07:38]OFD Sender: No OFD packet to send [14:07:43]OFD Sender: No OFD packet to send [14:07:48]OFD Sender: No OFD packet to send [14:07:53]OFD Sender: No OFD packet to send [14:07:58]OFD Sender: No OFD packet to send [14:08:03]OFD Sender: No OFD packet to send [14:08:08]OFD Sender: No OFD packet to send [14:08:13]OFD Sender: No OFD packet to send [14:08:18]OFD Sender: No OFD packet to send [14:08:23]OFD Sender: No OFD packet to send [14:08:28]OFD Sender: No OFD packet to send [14:08:33]OFD Sender: No OFD packet to send [14:08:38]OFD Sender: No OFD packet to send [14:08:43]OFD Sender: No OFD packet to send [14:08:48]OFD Sender: No OFD packet to send [14:08:53]OFD Sender: No OFD packet to send [14:08:58]OFD Sender: No OFD packet to send [14:09:03]OFD Sender: No OFD packet to send [14:09:08]OFD Sender: No OFD packet to send [14:09:13]OFD Sender: No OFD packet to send [14:09:18]OFD Sender: No OFD packet to send [14:09:23]OFD Sender: No OFD packet to send [14:09:28]OFD Sender: No OFD packet to send [14:09:33]OFD Sender: No OFD packet to send [14:09:38]OFD Sender: No OFD packet to send [14:09:43]OFD Sender: No OFD packet to send [14:09:48]OFD Sender: No OFD packet to send [14:09:53]OFD Sender: No OFD packet to send [14:09:58]OFD Sender: No OFD packet to send [14:10:03]OFD Sender: No OFD packet to send [14:10:08]OFD Sender: No OFD packet to send [14:10:13]OFD Sender: No OFD packet to send [14:10:18]OFD Sender: No OFD packet to send [14:10:23]OFD Sender: No OFD packet to send [14:10:28]OFD Sender: No OFD packet to send [14:10:33]OFD Sender: No OFD packet to send [14:10:38]OFD Sender: No OFD packet to send [14:10:43]OFD Sender: No OFD packet to send [14:10:48]OFD Sender: No OFD packet to send [14:10:53]OFD Sender: No OFD packet to send [14:10:58]OFD Sender: No OFD packet to send [14:11:03]OFD Sender: No OFD packet to send [14:11:08]OFD Sender: No OFD packet to send [14:11:13]OFD Sender: No OFD packet to send [14:11:18]OFD Sender: No OFD packet to send [14:11:23]OFD Sender: No OFD packet to send [14:11:28]OFD Sender: No OFD packet to send [14:11:33]OFD Sender: No OFD packet to send [14:11:38]OFD Sender: No OFD packet to send [14:11:43]OFD Sender: No OFD packet to send [14:11:48]OFD Sender: No OFD packet to send [14:11:53]OFD Sender: No OFD packet to send [14:11:58]OFD Sender: No OFD packet to send [14:12:03]OFD Sender: No OFD packet to send [14:12:08]OFD Sender: No OFD packet to send [14:12:13]OFD Sender: No OFD packet to send [14:12:18]OFD Sender: No OFD packet to send [14:12:23]OFD Sender: No OFD packet to send [14:12:28]OFD Sender: No OFD packet to send [14:12:33]OFD Sender: No OFD packet to send [14:12:38]OFD Sender: No OFD packet to send [14:12:43]OFD Sender: No OFD packet to send [14:12:48]OFD Sender: No OFD packet to send [14:12:53]OFD Sender: No OFD packet to send [14:12:53]accept exits with 7 [14:12:53]New connection [14:12:53]New thread 3067084132 created [14:12:53]Thread 3067227492 joined [14:12:53]Waiting for new connection... [14:12:53] Sock 7.Parse request [14:12:53]Sock 7.Check first char [14:12:53]Sock 7.First char is OK [14:12:53]request: POST /json_proto HTTP/1.0 [14:12:53]Method: POST [14:12:53]URL: /json_proto [14:12:53]Method is POST - this is cgi request [14:12:53]url: /json_proto [14:12:53]query_string will be loaded in cgi processing [14:12:53]execute_cgi json_proto POST (null) [14:12:53]execute_cgi path=json_proto method=POST [14:12:53]POST find Content-Length [14:12:53]Host: 172.17.38.133:8080 [14:12:53]Content-Length: 677 [14:12:53]Content-Type: application/json [14:12:53] [14:12:53]POST finish read [14:12:53]Found Content-Length = 677 [14:12:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672946", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:12:53]execute_script... [14:12: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)672946", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:12:53]POST & json_proto [14:12:53]process_json_proto [14:12:53]json parsed OK: [14:12:53]protocol is kg_v1.0 [14:12:53]action value=close_receipt [14:12:53]process_action close_receipt [14:12:53]cmd_close_receipt [14:12:53]MH_GetDate [14:12:53]Write to MH i2c: F0 00 00 4C AE E9 [14:12:53]Write i2c OK [14:12:53]MH_I2C_Read... [14:12:53]Read from MH i2c: F0 [14:12:53]MH_I2C_Read... [14:12:53]Read from MH i2c: F0 09 00 [14:12:53]MH_I2C_Read... [14:12:53]Read from MH i2c: F0 09 00 4C AE 00 72 E7 72 66 BD 8F 7C 64 4F [14:12:53]GetLastDocTimeStamp 1718805622 [14:12:53]current date 1718806386 [14:12:53]FM_GetShiftState [14:12:53]SAM_PROTO_GetShiftState [14:12:53]wFMCommunicate request_size=4 [14:12:53]MH_SAM_APDU [14:12:53]CAPDU: 80 13 01 00 [14:12:53]Write to MH i2c: E2 08 00 4D AE 80 13 01 00 00 00 00 00 78 [14:12:53]Write i2c OK [14:12:53]MH_I2C_Read... [14:12:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:12:53]Read from MH i2c: E2 [14:12:53]MH_I2C_Read... [14:12:53]Read from MH i2c: E2 0E 00 [14:12:53]MH_I2C_Read... [14:12:53]Read from MH i2c: E2 0E 00 4D AE 00 09 00 01 04 26 72 66 00 00 00 00 90 00 86 [14:12:53]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [14:12:53]wFMCommunicate OK [14:12:53]SAM_PROTO_GetShiftState done [14:12:53]FM_GetShiftState done [14:12:53]opened in 1718756868 [14:12:53]opened+sec_in_day 1718843268 [14:12:53]quantity*price = 50065 [14:12:53]sum+1 = 50067 [14:12:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.17 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 114 19.06.2024 14:13 Смена: 353 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103684 ФПД: 193441144582106 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T141306&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103684&fm=193441144582106&tin=02508201610067®Number=0000000000092785&sum=50000 [14:12:54]StoreToDocumentArchive [14:12:54]shift 353 fd 103684 [14:12:54]save to /storage/0353/doc_00103684 [14:12:54]save last doc name /storage/0353/doc_00103684 to /storage/kkm_last_doc_name [14:12:54]save OK [14:12:54]Clear old archive folders... [14:12:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:12:54]tlvbuf is 0148BCA0 [14:12:54]SAM_PROTO_ClearQueue [14:12:54]wFMCommunicate request_size=4 [14:12:54]MH_SAM_APDU [14:12:54]CAPDU: 80 09 00 00 [14:12:54]Write to MH i2c: E2 08 00 5A AE 80 09 00 00 00 00 00 00 7A [14:12:54]Write i2c OK [14:12:54]MH_I2C_Read... [14:12:54]Read from MH i2c: E2 [14:12:54]MH_I2C_Read... [14:12:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:12:54]Read from MH i2c: E2 03 00 [14:12:54]MH_I2C_Read... [14:12:54]Read from MH i2c: E2 03 00 5A AE 00 90 00 7C [14:12:54]RAPDU: 90 00 [14:12:54]wFMCommunicate OK [14:12:54]SAM_PROTO_ClearQueue done [14:12:54]KKMCreateOFDPacket [14:12:54]OFDProtocolAddRootSTLVToBuf [14:12:54]FM_MakeSignedData [14:12:54]FM_MakeSignedData [14:12:54]SAM_PROTO_SignData [14:12:54]wFMCommunicate request_size=4 [14:12:54]MH_SAM_APDU [14:12:54]CAPDU: 80 0D 01 02 [14:12:54]Write to MH i2c: E2 08 00 5B AE 80 0D 01 02 00 00 00 00 82 [14:12:54]Write i2c OK [14:12:54]MH_I2C_Read... [14:12:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:12:54]Read from MH i2c: E2 [14:12:54]MH_I2C_Read... [14:12:54]Read from MH i2c: E2 03 00 [14:12:54]MH_I2C_Read... [14:12:54]Read from MH i2c: E2 03 00 5B AE 00 90 00 7D [14:12:54]RAPDU: 90 00 [14:12:54]wFMCommunicate OK [14:12:54]wFMCommunicate request_size=255 [14:12:54]MH_SAM_APDU [14:12: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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 72 E7 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 04 95 01 00 35 04 06 00 AF [14:12:54]Write to MH i2c: E2 02 01 5C AE 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 72 E7 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 04 95 01 00 35 04 06 00 AF 00 00 8A [14:12:54]Write i2c OK [14:12:54]MH_I2C_Read... [14:12:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:12:55]Read from MH i2c: E2 [14:12:55]MH_I2C_Read... [14:12:55]Read from MH i2c: E2 03 00 [14:12:55]MH_I2C_Read... [14:12:55]Read from MH i2c: E2 03 00 5C AE 00 90 00 7E [14:12:55]RAPDU: 90 00 [14:12:55]wFMCommunicate OK [14:12:55]wFMCommunicate request_size=10 [14:12:55]MH_SAM_APDU [14:12:55]CAPDU: 80 0D 02 02 05 EF 06 B5 2F DA [14:12:55]Write to MH i2c: E2 0D 00 5D AE 80 0D 02 02 05 00 EF 06 B5 2F DA 00 00 42 [14:12:55]Write i2c OK [14:12:55]MH_I2C_Read... [14:12:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:12:55]Read from MH i2c: E2 [14:12:55]MH_I2C_Read... [14:12:55]Read from MH i2c: E2 03 00 [14:12:55]MH_I2C_Read... [14:12:55]Read from MH i2c: E2 03 00 5D AE 00 90 00 7F [14:12:55]RAPDU: 90 00 [14:12:55]wFMCommunicate OK [14:12:55]wFMCommunicate request_size=4 [14:12:55]MH_SAM_APDU [14:12:55]CAPDU: 80 0D 03 02 [14:12:55]Write to MH i2c: E2 08 00 5E AE 80 0D 03 02 00 00 00 00 87 [14:12:55]Write i2c OK [14:12:55]MH_I2C_Read... [14:12:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:12:55]Read from MH i2c: E2 [14:12:55]MH_I2C_Read... [14:12:55]Read from MH i2c: E2 0B 00 [14:12:55]MH_I2C_Read... [14:12:55]Read from MH i2c: E2 0B 00 5E AE 00 7B A3 58 C0 6F B4 18 4A 90 00 43 [14:12:55]RAPDU: 7B A3 58 C0 6F B4 18 4A 90 00 [14:12:55]wFMCommunicate OK [14:12:55]SAM_PROTO_SignData done [14:12:55]FM_MakeSignedData done [14:12:55]CreateOFDProtocolMessage [14:12:55]wFMCommunicate request_size=4 [14:12:55]MH_SAM_APDU [14:12:55]CAPDU: 80 11 00 00 [14:12:55]Write to MH i2c: E2 08 00 5F AE 80 11 00 00 00 00 00 00 87 [14:12:55]Write i2c OK [14:12:55]MH_I2C_Read... [14:12:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:12:55]Read from MH i2c: E2 [14:12:55]MH_I2C_Read... [14:12:55]Read from MH i2c: E2 17 00 [14:12:55]MH_I2C_Read... [14:12:55]Read from MH i2c: E2 17 00 5F AE 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 DA [14:12:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [14:12:55]wFMCommunicate OK [14:12:55]CreateOFDProtocolMessage done [14:12:55]OFDSenderStorePacket 103684 [14:12:55]StoreOFDPacket docnum=103684 [14:12:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 0B 2A 07 01 C1 10 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 72 E7 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 04 95 01 00 35 04 06 00 AF EF 06 B5 2F DA 7B A3 58 C0 6F B4 18 4A [14:12:55]CheckFolder [14:12:55]dirname=/storage/ofd_packets [14:12:55]CheckFolder done [14:12:55]ProducePacketName [14:12:55]name=ofd_packets/00103684 [14:12:55]NVStorageSaveData ofd_packets/00103684 [14:12:55]File name is /storage/ofd_packets/00103684 [14:12:55]Write 301 bytes [14:12:55]NVStorageSaveData done [14:12:55]OFDSenderStorePacket done [14:12:55]KKMCreateOFDPacket done [14:12:55]NVStorageSaveData kkm_last_timestamp [14:12:55]File name is /storage/kkm_last_timestamp [14:12:55]Write 4 bytes [14:12:55]NVStorageSaveData done [14:12:55]ExternCall_PrintAddStr [14:12:55]wPrintStart [14:12:55]Write to MH i2c: 01 00 00 60 AE 0E [14:12:55]Write i2c OK [14:12:55]MH_I2C_Read... [14:12:55]Read from MH i2c: 01 [14:12:55]MH_I2C_Read... [14:12:55]Read from MH i2c: 01 07 00 [14:12:55]MH_I2C_Read... [14:12:55]Read from MH i2c: 01 07 00 60 AE 00 00 00 00 00 FF 0F 23 [14:12:55]RasterBufferAndPrint [14:12:55]line Счет N : (1)672946 [14:12:55]line ИНН: 02508201610067 [14:12:55]line Контрольно-Кассовый Чек [14:12:55]line ПРОДАЖА [14:12:55]line ТРК (МРК, ГНК) : 32 [14:12:55]line Товар: 2710124130 [14:12:55]line Аи-92-К-5 [14:12:55]line 7.540 * 66.40 [14:12:55]line = 500.66 [14:12:55]line НДС 12% НСП 1% [14:12:55]line > о реализуемом товаре [14:12:55]line ОКРУГЛЕНИЕ: -0.66 [14:12:55]line ИТОГО: 500.00 [14:12:55]line Внесено: 500.00 [14:12:55]line СДАЧА: 0.00 [14:12:55]line НСП 1% : 4.43 [14:12:55]line НДС 12% : 53.17 [14:12:55]line Наличными: 500.00 [14:12:55]line Безнал.: 0.00 [14:12:55]line Место: АЗС № 120 "Партнер Нефть" [14:12:55]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [14:12:55]line СНО: Общий режим [14:12:55]line Чек 114 19.06.2024 14:13 [14:12:55]line Смена: 353 ФФД: 1.0 [14:12:55]line ЗНМ: 0300000164 [14:12:55]line РНМ: 0000000000092785 [14:12:55]line Версия ККМ: 001 [14:12:55]line ФМ: 0000000000875093 [14:12:55]line ФД: 103684 [14:12:55]line ФПД: 193441144582106 [14:12:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T141306&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103684&fm=193441144582106&tin=02508201610067®Number=0000000000092785&sum=50000 [14:12:55]OFD Sender: Processing packet 103684 [packets to send 17, broken 16] [14:12:55]ProducePacketName [14:12:55]name=ofd_packets/00103684 [14:12:55]OFD Sender: To server: pG, [14:12:55]CommunicateWithHost lk.salyk.kg:30040 [14:12:55]ConnectInit lk.salyk.kg [14:12:55]written 0, free lines is 4095 [14:12:55]Connected sock=10 [14:12: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 39 33 0F 01 00 00 0B 2A 07 01 C1 10 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 72 E7 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 04 95 01 00 35 04 06 00 AF EF 06 B5 2F DA 7B A3 58 C0 6F B4 18 4A [14:12: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 39 33 4F 00 00 00 AA FC 47 00 61 9E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 04 95 01 00 F4 03 04 00 FB 8D 72 66 B6 04 01 00 00 13 65 2E 2F 96 84 CB 3F [14:12:56]CommunicateWithHost err = 0 [14:12:56]CheckOFDResponse [14:12:56]1017 (14) - 77093643461234 [14:12:56]1041 (16) - 0000000000875093 [14:12:56]1040 (4) - 103684 [14:12:56]1012 (4) - 19.06.2024 07:51 [14:12:56]1206 (1) - 0 [14:12:56]OFD Sender: Remove packet 103684 [14:12:56]ProducePacketName [14:12:56]name=ofd_packets/00103684 [14:12:56]NVStorageDeleteData [14:12:56]Write to MH i2c: 01 00 00 8B AE 39 [14:12:56]Write i2c OK [14:12:56]MH_I2C_Read... [14:12:56]Read from MH i2c: 01 [14:12:56]MH_I2C_Read... [14:12:56]Read from MH i2c: 01 07 00 [14:12:56]MH_I2C_Read... [14:12:56]Read from MH i2c: 01 07 00 8B AE 00 00 00 00 00 E6 0C 32 [14:12:56]RasterBufferAndPrint [14:12:56]line [14:12:56]line [14:12:56]line [14:12:56]line [14:12:56]line [14:12:56]written 0, free lines is 3311 [14:12:56]MH_Cut [14:12:56]Write to MH i2c: D1 01 00 92 AE 01 12 [14:12:56]Write i2c OK [14:12:56]MH_I2C_Read... [14:12:56]Read from MH i2c: D1 [14:12:56]MH_I2C_Read... [14:12:56]Read from MH i2c: D1 01 00 [14:12:56]MH_I2C_Read... [14:12:56]Read from MH i2c: D1 01 00 92 AE 00 11 [14:12:56]Write to MH i2c: 01 00 00 93 AE 41 [14:12:56]Write i2c OK [14:12:56]MH_I2C_Read... [14:12:56]OFD Sender: No OFD packet to send [14:12:56]*** Cut start [14:12:56]*** Partial cut [14:12:56]*** CUTSNS_PIN = 1 [14:12:56]*** CUTSNS_PIN = 0 [14:12:57]*** Brake cut motor [14:12:57]Read from MH i2c: 01 [14:12:57]MH_I2C_Read... [14:12:57]*** Stop cut motor [14:12:57]*** Cut end [14:12:57]Read from MH i2c: 01 07 00 [14:12:57]MH_I2C_Read... [14:12:57]Read from MH i2c: 01 07 00 93 AE 00 00 00 00 00 FF 0F 56 [14:12:57]process_action close_receipt done [14:12:57]requested_data is exist [14:12:57]produce_requested_data [14:12:57]requested_item fm.sn is exist - process it [14:12:57]wFMCommunicate request_size=4 [14:12:57]MH_SAM_APDU [14:12:57]CAPDU: 80 11 00 00 [14:12:57]Write to MH i2c: E2 08 00 94 AE 80 11 00 00 00 00 00 00 BC [14:12:57]Write i2c OK [14:12:57]MH_I2C_Read... [14:12:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:12:57]Read from MH i2c: E2 [14:12:57]MH_I2C_Read... [14:12:57]Read from MH i2c: E2 17 00 [14:12:57]MH_I2C_Read... [14:12:57]Read from MH i2c: E2 17 00 94 AE 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 0F [14:12:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [14:12:57]wFMCommunicate OK [14:12:57]requested_item fd.num is exist - process it [14:12:57]SAM_PROTO_GetFieldsCounters [14:12:57]wFMCommunicate request_size=4 [14:12:57]MH_SAM_APDU [14:12:57]CAPDU: 80 13 00 00 [14:12:57]Write to MH i2c: E2 08 00 95 AE 80 13 00 00 00 00 00 00 BF [14:12:57]Write i2c OK [14:12:57]MH_I2C_Read... [14:12:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:12:57]Read from MH i2c: E2 [14:12:57]MH_I2C_Read... [14:12:57]Read from MH i2c: E2 62 00 [14:12:57]MH_I2C_Read... [14:12:57]Read from MH i2c: E2 62 00 95 AE 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 04 95 01 00 0E 04 04 00 61 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 38 [14:12: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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 04 95 01 00 0E 04 04 00 61 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 [14:12:57]wFMCommunicate OK [14:12:57]SAM_PROTO_GetFieldsCounters done [14:12:57]requested_item shift.num is exist - process it [14:12:57]requested_item shift.opened is exist - process it [14:12:57]req_shift_opened [14:12:57]FM_GetShiftState [14:12:57]SAM_PROTO_GetShiftState [14:12:57]wFMCommunicate request_size=4 [14:12:57]MH_SAM_APDU [14:12:57]CAPDU: 80 13 01 00 [14:12:57]Write to MH i2c: E2 08 00 96 AE 80 13 01 00 00 00 00 00 C1 [14:12:57]Write i2c OK [14:12:57]MH_I2C_Read... [14:12:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:12:57]Read from MH i2c: E2 [14:12:57]MH_I2C_Read... [14:12:57]Read from MH i2c: E2 0E 00 [14:12:57]MH_I2C_Read... [14:12:57]Read from MH i2c: E2 0E 00 96 AE 00 09 00 01 04 26 72 66 00 00 00 00 90 00 CF [14:12:57]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [14:12:57]wFMCommunicate OK [14:12:57]SAM_PROTO_GetShiftState done [14:12:57]FM_GetShiftState done [14:12:57]req_shift_opened done [14:12:57]requested_item shift.open_date is exist - process it [14:12:57]req_shift_open_date [14:12:57]req_shift_open_date done [14:12:57]produce_requested_data done [14:12:57]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103684,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [14:12:57]process_action_free close_receipt [14:12:57]json_value_free [14:12:57]json_value_free done [14:12:57]process_json_proto returns [14:12:57]Send response to host [14:12:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103684,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [14:12:57]free response buf [14:12:57]execute_script done [14:12:57]execute_script returns [14:12:57]free content buf [14:12:57]Sock 7.Close socket [14:12:57]Sock 7.Thread stoped [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:14]accept exits with 9 [14:13:14]New connection [14:13:14]New thread 3067227492 created [14:13:14]Thread 3067084132 joined [14:13:14]Waiting for new connection... [14:13:14] Sock 9.Parse request [14:13:14]Sock 9.Check first char [14:13:14]Sock 9.First char is OK [14:13:14]request: POST /json_proto HTTP/1.0 [14:13:14]Method: POST [14:13:14]URL: /json_proto [14:13:14]Method is POST - this is cgi request [14:13:14]url: /json_proto [14:13:14]query_string will be loaded in cgi processing [14:13:14]execute_cgi json_proto POST (null) [14:13:14]execute_cgi path=json_proto method=POST [14:13:14]POST find Content-Length [14:13:14]Host: 172.17.38.133:8080 [14:13:14]Content-Length: 824 [14:13:14]Content-Type: application/json [14:13:14] [14:13:14]POST finish read [14:13:14]Found Content-Length = 824 [14:13:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672945", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 54.870, "sum" : 4000.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 4000.02 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:13:14]execute_script... [14:13: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)672945", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 54.870, "sum" : 4000.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 4000.02 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:13:14]POST & json_proto [14:13:14]process_json_proto [14:13:14]json parsed OK: [14:13:14]protocol is kg_v1.0 [14:13:14]action value=close_receipt [14:13:14]process_action close_receipt [14:13:14]cmd_close_receipt [14:13:14]MH_GetDate [14:13:14]Write to MH i2c: F0 00 00 97 AE 34 [14:13:14]Write i2c OK [14:13:14]MH_I2C_Read... [14:13:14]Read from MH i2c: F0 [14:13:14]MH_I2C_Read... [14:13:14]Read from MH i2c: F0 09 00 [14:13:14]MH_I2C_Read... [14:13:14]Read from MH i2c: F0 09 00 97 AE 00 87 E7 72 66 BD 8F 7C 64 AF [14:13:14]GetLastDocTimeStamp 1718806386 [14:13:14]current date 1718806407 [14:13:14]FM_GetShiftState [14:13:14]SAM_PROTO_GetShiftState [14:13:14]wFMCommunicate request_size=4 [14:13:14]MH_SAM_APDU [14:13:14]CAPDU: 80 13 01 00 [14:13:14]Write to MH i2c: E2 08 00 98 AE 80 13 01 00 00 00 00 00 C3 [14:13:14]Write i2c OK [14:13:14]MH_I2C_Read... [14:13:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:13:14]Read from MH i2c: E2 [14:13:14]MH_I2C_Read... [14:13:14]Read from MH i2c: E2 0E 00 [14:13:14]MH_I2C_Read... [14:13:14]Read from MH i2c: E2 0E 00 98 AE 00 09 00 01 04 26 72 66 00 00 00 00 90 00 D1 [14:13:14]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [14:13:14]wFMCommunicate OK [14:13:14]SAM_PROTO_GetShiftState done [14:13:14]FM_GetShiftState done [14:13:14]opened in 1718756868 [14:13:14]opened+sec_in_day 1718843268 [14:13:14]quantity*price = 400002 [14:13:14]sum+1 = 400003 [14:13:14]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 4000.02 НСП 1% : 35.40 НДС 12% : 424.78 Наличными: 0.00 Безнал.: 4000.02 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 115 19.06.2024 14:13 Смена: 353 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000875093 ФД: 103685 ФПД: 142154539313346 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T141327&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103685&fm=142154539313346&tin=02508201610067®Number=0000000000092785&sum=400002 [14:13:15]StoreToDocumentArchive [14:13:15]shift 353 fd 103685 [14:13:15]save to /storage/0353/doc_00103685 [14:13:15]save last doc name /storage/0353/doc_00103685 to /storage/kkm_last_doc_name [14:13:15]save OK [14:13:15]Clear old archive folders... [14:13:15]ProcessDocumentItem done err = 0, tmpTLVsize=252 [14:13:15]tlvbuf is 016FDD00 [14:13:15]SAM_PROTO_ClearQueue [14:13:15]wFMCommunicate request_size=4 [14:13:15]MH_SAM_APDU [14:13:15]CAPDU: 80 09 00 00 [14:13:15]Write to MH i2c: E2 08 00 A5 AE 80 09 00 00 00 00 00 00 C5 [14:13:15]Write i2c OK [14:13:15]MH_I2C_Read... [14:13:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:13:15]Read from MH i2c: E2 [14:13:15]MH_I2C_Read... [14:13:15]Read from MH i2c: E2 03 00 [14:13:15]MH_I2C_Read... [14:13:15]Read from MH i2c: E2 03 00 A5 AE 00 90 00 C7 [14:13:15]RAPDU: 90 00 [14:13:15]wFMCommunicate OK [14:13:15]SAM_PROTO_ClearQueue done [14:13:15]KKMCreateOFDPacket [14:13:15]OFDProtocolAddRootSTLVToBuf [14:13:15]FM_MakeSignedData [14:13:15]FM_MakeSignedData [14:13:15]SAM_PROTO_SignData [14:13:15]wFMCommunicate request_size=4 [14:13:15]MH_SAM_APDU [14:13:15]CAPDU: 80 0D 01 02 [14:13:15]Write to MH i2c: E2 08 00 A6 AE 80 0D 01 02 00 00 00 00 CD [14:13:15]Write i2c OK [14:13:15]MH_I2C_Read... [14:13:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:13:15]Read from MH i2c: E2 [14:13:15]MH_I2C_Read... [14:13:15]Read from MH i2c: E2 03 00 [14:13:15]MH_I2C_Read... [14:13:15]Read from MH i2c: E2 03 00 A6 AE 00 90 00 C8 [14:13:15]RAPDU: 90 00 [14:13:15]wFMCommunicate OK [14:13:15]wFMCommunicate request_size=255 [14:13:15]MH_SAM_APDU [14:13:15]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 56 D6 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 82 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 82 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EE A5 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 82 1A 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 87 E7 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 05 95 01 00 35 04 06 00 [14:13:15]Write to MH i2c: E2 02 01 A7 AE 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 56 D6 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 82 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 82 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EE A5 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 82 1A 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 87 E7 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 05 95 01 00 35 04 06 00 00 00 EA [14:13:15]Write i2c OK [14:13:15]MH_I2C_Read... [14:13:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:13:15]Read from MH i2c: E2 [14:13:15]MH_I2C_Read... [14:13:15]Read from MH i2c: E2 03 00 [14:13:15]MH_I2C_Read... [14:13:15]Read from MH i2c: E2 03 00 A7 AE 00 90 00 C9 [14:13:15]RAPDU: 90 00 [14:13:15]wFMCommunicate OK [14:13:15]wFMCommunicate request_size=11 [14:13:15]MH_SAM_APDU [14:13:15]CAPDU: 80 0D 02 02 06 81 49 EE D1 A8 C2 [14:13:15]Write to MH i2c: E2 0E 00 A8 AE 80 0D 02 02 06 00 81 49 EE D1 A8 C2 00 00 CF [14:13:15]Write i2c OK [14:13:15]MH_I2C_Read... [14:13:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:13:16]Read from MH i2c: E2 [14:13:16]MH_I2C_Read... [14:13:16]Read from MH i2c: E2 03 00 [14:13:16]MH_I2C_Read... [14:13:16]Read from MH i2c: E2 03 00 A8 AE 00 90 00 CA [14:13:16]RAPDU: 90 00 [14:13:16]wFMCommunicate OK [14:13:16]wFMCommunicate request_size=4 [14:13:16]MH_SAM_APDU [14:13:16]CAPDU: 80 0D 03 02 [14:13:16]Write to MH i2c: E2 08 00 A9 AE 80 0D 03 02 00 00 00 00 D2 [14:13:16]Write i2c OK [14:13:16]MH_I2C_Read... [14:13:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:13:16]Read from MH i2c: E2 [14:13:16]MH_I2C_Read... [14:13:16]Read from MH i2c: E2 0B 00 [14:13:16]MH_I2C_Read... [14:13:16]Read from MH i2c: E2 0B 00 A9 AE 00 89 50 F6 4A 15 5D 52 DD 90 00 8D [14:13:16]RAPDU: 89 50 F6 4A 15 5D 52 DD 90 00 [14:13:16]wFMCommunicate OK [14:13:16]SAM_PROTO_SignData done [14:13:16]FM_MakeSignedData done [14:13:16]CreateOFDProtocolMessage [14:13:16]wFMCommunicate request_size=4 [14:13:16]MH_SAM_APDU [14:13:16]CAPDU: 80 11 00 00 [14:13:16]Write to MH i2c: E2 08 00 AA AE 80 11 00 00 00 00 00 00 D2 [14:13:16]Write i2c OK [14:13:16]MH_I2C_Read... [14:13:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:13:16]Read from MH i2c: E2 [14:13:16]MH_I2C_Read... [14:13:16]Read from MH i2c: E2 17 00 [14:13:16]MH_I2C_Read... [14:13:16]Read from MH i2c: E2 17 00 AA AE 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 25 [14:13:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [14:13:16]wFMCommunicate OK [14:13:16]CreateOFDProtocolMessage done [14:13:16]OFDSenderStorePacket 103685 [14:13:16]StoreOFDPacket docnum=103685 [14:13:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 19 B2 08 01 97 AF 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 56 D6 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 82 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 82 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EE A5 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 82 1A 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 87 E7 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 05 95 01 00 35 04 06 00 81 49 EE D1 A8 C2 89 50 F6 4A 15 5D 52 DD [14:13:16]CheckFolder [14:13:16]dirname=/storage/ofd_packets [14:13:16]CheckFolder done [14:13:16]ProducePacketName [14:13:16]name=ofd_packets/00103685 [14:13:16]NVStorageSaveData ofd_packets/00103685 [14:13:16]File name is /storage/ofd_packets/00103685 [14:13:16]Write 302 bytes [14:13:16]NVStorageSaveData done [14:13:16]OFDSenderStorePacket done [14:13:16]KKMCreateOFDPacket done [14:13:16]NVStorageSaveData kkm_last_timestamp [14:13:16]File name is /storage/kkm_last_timestamp [14:13:16]Write 4 bytes [14:13:16]NVStorageSaveData done [14:13:16]ExternCall_PrintAddStr [14:13:16]wPrintStart [14:13:16]Write to MH i2c: 01 00 00 AB AE 59 [14:13:16]Write i2c OK [14:13:16]MH_I2C_Read... [14:13:16]Read from MH i2c: 01 [14:13:16]MH_I2C_Read... [14:13:16]Read from MH i2c: 01 07 00 [14:13:16]MH_I2C_Read... [14:13:16]Read from MH i2c: 01 07 00 AB AE 00 00 00 00 00 FF 0F 6E [14:13:16]RasterBufferAndPrint [14:13:16]line Счет N : (1)672945 [14:13:16]line ИНН: 02508201610067 [14:13:16]line Контрольно-Кассовый Чек [14:13:16]line ПРОДАЖА [14:13:16]line ТРК (МРК, ГНК) : 21 [14:13:16]line Товар: 2710194210 [14:13:16]line ДТ(л)-К-5 [14:13:16]line 54.870 * 72.90 [14:13:16]line = 4000.02 [14:13:16]line НДС 12% НСП 1% [14:13:16]line > о реализуемом товаре [14:13:16]line ИТОГО: 4000.02 [14:13:16]line НСП 1% : 35.40 [14:13:16]line НДС 12% : 424.78 [14:13:16]line Наличными: 0.00 [14:13:16]line Безнал.: 4000.02 [14:13:16]line Место: АЗС № 120 "Партнер Нефть" [14:13:16]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [14:13:16]line СНО: Общий режим [14:13:16]line Чек 115 19.06.2024 14:13 [14:13:16]line Смена: 353 ФФД: 1.0 [14:13:16]line ЗНМ: 0300000164 [14:13:16]line РНМ: 0000000000092785 [14:13:16]line Версия ККМ: 001 [14:13:16]line Платежная система: Бакай Банк [14:13:16]line ФМ: 0000000000875093 [14:13:16]line ФД: 103685 [14:13:16]line ФПД: 142154539313346 [14:13:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T141327&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103685&fm=142154539313346&tin=02508201610067®Number=0000000000092785&sum=400002 [14:13:16]OFD Sender: Processing packet 103685 [packets to send 17, broken 16] [14:13:16]ProducePacketName [14:13:16]name=ofd_packets/00103685 [14:13:16]OFD Sender: To server: pG, [14:13:16]CommunicateWithHost lk.salyk.kg:30040 [14:13:16]ConnectInit lk.salyk.kg [14:13:16]written 0, free lines is 4095 [14:13:16]Connected sock=10 [14:13: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 39 33 10 01 00 00 19 B2 08 01 97 AF 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 56 D6 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 82 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 82 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EE A5 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 82 1A 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 87 E7 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 05 95 01 00 35 04 06 00 81 49 EE D1 A8 C2 89 50 F6 4A 15 5D 52 DD [14:13: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 39 33 4F 00 00 00 BB F0 47 00 8B 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 39 33 10 04 04 00 05 95 01 00 F4 03 04 00 0F 8E 72 66 B6 04 01 00 00 C5 B9 33 02 62 84 7C A6 [14:13:16]CommunicateWithHost err = 0 [14:13:16]CheckOFDResponse [14:13:16]1017 (14) - 77093643461234 [14:13:16]1041 (16) - 0000000000875093 [14:13:16]1040 (4) - 103685 [14:13:16]1012 (4) - 19.06.2024 07:51 [14:13:16]1206 (1) - 0 [14:13:16]OFD Sender: Remove packet 103685 [14:13:16]ProducePacketName [14:13:16]name=ofd_packets/00103685 [14:13:16]NVStorageDeleteData [14:13:16]Write to MH i2c: 01 00 00 D5 AE 83 [14:13:16]Write i2c OK [14:13:16]MH_I2C_Read... [14:13:16]Read from MH i2c: 01 [14:13:16]MH_I2C_Read... [14:13:16]Read from MH i2c: 01 07 00 [14:13:16]MH_I2C_Read... [14:13:16]Read from MH i2c: 01 07 00 D5 AE 00 00 00 00 00 FE 0C 94 [14:13:16]RasterBufferAndPrint [14:13:16]line [14:13:16]line [14:13:16]line [14:13:16]line [14:13:16]line [14:13:16]written 0, free lines is 3331 [14:13:16]MH_Cut [14:13:16]Write to MH i2c: D1 01 00 DC AE 01 5C [14:13:16]Write i2c OK [14:13:16]MH_I2C_Read... [14:13:16]Read from MH i2c: D1 [14:13:16]MH_I2C_Read... [14:13:16]Read from MH i2c: D1 01 00 [14:13:16]MH_I2C_Read... [14:13:16]Read from MH i2c: D1 01 00 DC AE 00 5B [14:13:16]Write to MH i2c: 01 00 00 DD AE 8B [14:13:16]Write i2c OK [14:13:16]MH_I2C_Read... [14:13:17]OFD Sender: No OFD packet to send [14:13:17]*** Cut start [14:13:17]*** Partial cut [14:13:17]*** CUTSNS_PIN = 1 [14:13:17]*** CUTSNS_PIN = 0 [14:13:17]*** Brake cut motor [14:13:18]Read from MH i2c: 01 [14:13:18]MH_I2C_Read... [14:13:18]*** Stop cut motor [14:13:18]*** Cut end [14:13:18]Read from MH i2c: 01 07 00 [14:13:18]MH_I2C_Read... [14:13:18]Read from MH i2c: 01 07 00 DD AE 00 00 00 00 00 FF 0F A0 [14:13:18]process_action close_receipt done [14:13:18]requested_data is exist [14:13:18]produce_requested_data [14:13:18]requested_item fm.sn is exist - process it [14:13:18]wFMCommunicate request_size=4 [14:13:18]MH_SAM_APDU [14:13:18]CAPDU: 80 11 00 00 [14:13:18]Write to MH i2c: E2 08 00 DE AE 80 11 00 00 00 00 00 00 06 [14:13:18]Write i2c OK [14:13:18]MH_I2C_Read... [14:13:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:13:18]Read from MH i2c: E2 [14:13:18]MH_I2C_Read... [14:13:18]Read from MH i2c: E2 17 00 [14:13:18]MH_I2C_Read... [14:13:18]Read from MH i2c: E2 17 00 DE AE 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 59 [14:13:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [14:13:18]wFMCommunicate OK [14:13:18]requested_item fd.num is exist - process it [14:13:18]SAM_PROTO_GetFieldsCounters [14:13:18]wFMCommunicate request_size=4 [14:13:18]MH_SAM_APDU [14:13:18]CAPDU: 80 13 00 00 [14:13:18]Write to MH i2c: E2 08 00 DF AE 80 13 00 00 00 00 00 00 09 [14:13:18]Write i2c OK [14:13:18]MH_I2C_Read... [14:13:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:13:18]Read from MH i2c: E2 [14:13:18]MH_I2C_Read... [14:13:18]Read from MH i2c: E2 62 00 [14:13:18]MH_I2C_Read... [14:13:18]Read from MH i2c: E2 62 00 DF AE 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 05 95 01 00 0E 04 04 00 61 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 86 [14:13: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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 05 95 01 00 0E 04 04 00 61 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 [14:13:18]wFMCommunicate OK [14:13:18]SAM_PROTO_GetFieldsCounters done [14:13:18]requested_item shift.num is exist - process it [14:13:18]requested_item shift.opened is exist - process it [14:13:18]req_shift_opened [14:13:18]FM_GetShiftState [14:13:18]SAM_PROTO_GetShiftState [14:13:18]wFMCommunicate request_size=4 [14:13:18]MH_SAM_APDU [14:13:18]CAPDU: 80 13 01 00 [14:13:18]Write to MH i2c: E2 08 00 E0 AE 80 13 01 00 00 00 00 00 0B [14:13:18]Write i2c OK [14:13:18]MH_I2C_Read... [14:13:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:13:18]Read from MH i2c: E2 [14:13:18]MH_I2C_Read... [14:13:18]Read from MH i2c: E2 0E 00 [14:13:18]MH_I2C_Read... [14:13:18]Read from MH i2c: E2 0E 00 E0 AE 00 09 00 01 04 26 72 66 00 00 00 00 90 00 19 [14:13:18]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [14:13:18]wFMCommunicate OK [14:13:18]SAM_PROTO_GetShiftState done [14:13:18]FM_GetShiftState done [14:13:18]req_shift_opened done [14:13:18]requested_item shift.open_date is exist - process it [14:13:18]req_shift_open_date [14:13:18]req_shift_open_date done [14:13:18]produce_requested_data done [14:13:18]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103685,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [14:13:18]process_action_free close_receipt [14:13:18]json_value_free [14:13:18]json_value_free done [14:13:18]process_json_proto returns [14:13:18]Send response to host [14:13:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103685,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [14:13:18]free response buf [14:13:18]execute_script done [14:13:18]execute_script returns [14:13:18]free content buf [14:13:18]Sock 9.Close socket [14:13:18]Sock 9.Thread stoped [14:13:22]OFD Sender: No OFD packet to send [14:13:27]OFD Sender: No OFD packet to send [14:13:32]OFD Sender: No OFD packet to send [14:13:37]OFD Sender: No OFD packet to send [14:13:42]OFD Sender: No OFD packet to send [14:13:47]OFD Sender: No OFD packet to send [14:13:52]OFD Sender: No OFD packet to send [14:13:57]OFD Sender: No OFD packet to send [14:14:02]OFD Sender: No OFD packet to send [14:14:07]OFD Sender: No OFD packet to send [14:14:12]OFD Sender: No OFD packet to send [14:14:17]OFD Sender: No OFD packet to send [14:14:22]OFD Sender: No OFD packet to send [14:14:27]OFD Sender: No OFD packet to send [14:14:32]OFD Sender: No OFD packet to send [14:14:37]OFD Sender: No OFD packet to send [14:14:42]OFD Sender: No OFD packet to send [14:14:47]OFD Sender: No OFD packet to send [14:14:52]OFD Sender: No OFD packet to send [14:14:57]OFD Sender: No OFD packet to send [14:15:02]OFD Sender: No OFD packet to send [14:15:07]OFD Sender: No OFD packet to send [14:15:12]OFD Sender: No OFD packet to send [14:15:17]OFD Sender: No OFD packet to send [14:15:22]OFD Sender: No OFD packet to send [14:15:27]OFD Sender: No OFD packet to send [14:15:32]OFD Sender: No OFD packet to send [14:15:37]OFD Sender: No OFD packet to send [14:15:42]OFD Sender: No OFD packet to send [14:15:47]OFD Sender: No OFD packet to send [14:15:52]OFD Sender: No OFD packet to send [14:15:57]OFD Sender: No OFD packet to send [14:16:02]OFD Sender: No OFD packet to send [14:16:07]OFD Sender: No OFD packet to send [14:16:12]OFD Sender: No OFD packet to send [14:16:17]OFD Sender: No OFD packet to send [14:16:22]OFD Sender: No OFD packet to send [14:16:27]OFD Sender: No OFD packet to send [14:16:32]OFD Sender: No OFD packet to send [14:16:37]OFD Sender: No OFD packet to send [14:16:37]accept exits with 7 [14:16:37]New connection [14:16:37]New thread 3067084132 created [14:16:37]Thread 3067227492 joined [14:16:37]Waiting for new connection... [14:16:37] Sock 7.Parse request [14:16:37]Sock 7.Check first char [14:16:37]Sock 7.First char is OK [14:16:37]request: POST /json_proto HTTP/1.0 [14:16:37]Method: POST [14:16:37]URL: /json_proto [14:16:37]Method is POST - this is cgi request [14:16:37]url: /json_proto [14:16:37]query_string will be loaded in cgi processing [14:16:37]execute_cgi json_proto POST (null) [14:16:37]execute_cgi path=json_proto method=POST [14:16:37]POST find Content-Length [14:16:37]Host: 172.17.38.133:8080 [14:16:37]Content-Length: 819 [14:16:37]Content-Type: application/json [14:16:37] [14:16:37]POST finish read [14:16:37]Found Content-Length = 819 [14:16:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672947", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.65 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:16:37]execute_script... [14:16: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)672947", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.65 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:16:37]POST & json_proto [14:16:37]process_json_proto [14:16:37]json parsed OK: [14:16:37]protocol is kg_v1.0 [14:16:37]action value=close_receipt [14:16:37]process_action close_receipt [14:16:37]cmd_close_receipt [14:16:37]MH_GetDate [14:16:37]Write to MH i2c: F0 00 00 E1 AE 7E [14:16:37]Write i2c OK [14:16:37]MH_I2C_Read... [14:16:37]Read from MH i2c: F0 [14:16:37]MH_I2C_Read... [14:16:37]Read from MH i2c: F0 09 00 [14:16:37]MH_I2C_Read... [14:16:37]Read from MH i2c: F0 09 00 E1 AE 00 52 E8 72 66 BD 8F 7C 64 C5 [14:16:37]GetLastDocTimeStamp 1718806407 [14:16:37]current date 1718806610 [14:16:37]FM_GetShiftState [14:16:37]SAM_PROTO_GetShiftState [14:16:37]wFMCommunicate request_size=4 [14:16:37]MH_SAM_APDU [14:16:37]CAPDU: 80 13 01 00 [14:16:37]Write to MH i2c: E2 08 00 E2 AE 80 13 01 00 00 00 00 00 0D [14:16:37]Write i2c OK [14:16:37]MH_I2C_Read... [14:16:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:16:37]Read from MH i2c: E2 [14:16:37]MH_I2C_Read... [14:16:37]Read from MH i2c: E2 0E 00 [14:16:37]MH_I2C_Read... [14:16:37]Read from MH i2c: E2 0E 00 E2 AE 00 09 00 01 04 26 72 66 00 00 00 00 90 00 1B [14:16:37]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [14:16:37]wFMCommunicate OK [14:16:37]SAM_PROTO_GetShiftState done [14:16:37]FM_GetShiftState done [14:16:37]opened in 1718756868 [14:16:37]opened+sec_in_day 1718843268 [14:16:37]quantity*price = 100064 [14:16:37]sum+1 = 100066 [14:16:37]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.65 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 0.00 Безнал.: 1000.65 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 116 19.06.2024 14:16 Смена: 353 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000875093 ФД: 103686 ФПД: 221131764053944 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T141650&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103686&fm=221131764053944&tin=02508201610067®Number=0000000000092785&sum=100065 [14:16:38]StoreToDocumentArchive [14:16:38]shift 353 fd 103686 [14:16:38]save to /storage/0353/doc_00103686 [14:16:38]save last doc name /storage/0353/doc_00103686 to /storage/kkm_last_doc_name [14:16:38]save OK [14:16:38]Clear old archive folders... [14:16:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:16:38]tlvbuf is 0132D5E0 [14:16:38]SAM_PROTO_ClearQueue [14:16:38]wFMCommunicate request_size=4 [14:16:38]MH_SAM_APDU [14:16:38]CAPDU: 80 09 00 00 [14:16:38]Write to MH i2c: E2 08 00 EF AE 80 09 00 00 00 00 00 00 0F [14:16:38]Write i2c OK [14:16:38]MH_I2C_Read... [14:16:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:16:38]Read from MH i2c: E2 [14:16:38]MH_I2C_Read... [14:16:38]Read from MH i2c: E2 03 00 [14:16:38]MH_I2C_Read... [14:16:38]Read from MH i2c: E2 03 00 EF AE 00 90 00 11 [14:16:38]RAPDU: 90 00 [14:16:38]wFMCommunicate OK [14:16:38]SAM_PROTO_ClearQueue done [14:16:38]KKMCreateOFDPacket [14:16:38]OFDProtocolAddRootSTLVToBuf [14:16:38]FM_MakeSignedData [14:16:38]FM_MakeSignedData [14:16:38]SAM_PROTO_SignData [14:16:38]wFMCommunicate request_size=4 [14:16:38]MH_SAM_APDU [14:16:38]CAPDU: 80 0D 01 02 [14:16:38]Write to MH i2c: E2 08 00 F0 AE 80 0D 01 02 00 00 00 00 17 [14:16:38]Write i2c OK [14:16:38]MH_I2C_Read... [14:16:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:16:38]Read from MH i2c: E2 [14:16:38]MH_I2C_Read... [14:16:38]Read from MH i2c: E2 03 00 [14:16:38]MH_I2C_Read... [14:16:38]Read from MH i2c: E2 03 00 F0 AE 00 90 00 12 [14:16:38]RAPDU: 90 00 [14:16:38]wFMCommunicate OK [14:16:38]wFMCommunicate request_size=255 [14:16:38]MH_SAM_APDU [14:16:38]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E1 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E1 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 52 E8 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 06 95 01 00 35 04 06 00 C9 [14:16:38]Write to MH i2c: E2 02 01 F1 AE 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E1 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E1 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 52 E8 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 06 95 01 00 35 04 06 00 C9 00 00 F0 [14:16:38]Write i2c OK [14:16:38]MH_I2C_Read... [14:16:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:16:39]Read from MH i2c: E2 [14:16:39]MH_I2C_Read... [14:16:39]Read from MH i2c: E2 03 00 [14:16:39]MH_I2C_Read... [14:16:39]Read from MH i2c: E2 03 00 F1 AE 00 90 00 13 [14:16:39]RAPDU: 90 00 [14:16:39]wFMCommunicate OK [14:16:39]wFMCommunicate request_size=10 [14:16:39]MH_SAM_APDU [14:16:39]CAPDU: 80 0D 02 02 05 1E 40 3E B7 B8 [14:16:39]Write to MH i2c: E2 0D 00 F2 AE 80 0D 02 02 05 00 1E 40 3E B7 B8 00 00 2F [14:16:39]Write i2c OK [14:16:39]MH_I2C_Read... [14:16:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:16:39]Read from MH i2c: E2 [14:16:39]MH_I2C_Read... [14:16:39]Read from MH i2c: E2 03 00 [14:16:39]MH_I2C_Read... [14:16:39]Read from MH i2c: E2 03 00 F2 AE 00 90 00 14 [14:16:39]RAPDU: 90 00 [14:16:39]wFMCommunicate OK [14:16:39]wFMCommunicate request_size=4 [14:16:39]MH_SAM_APDU [14:16:39]CAPDU: 80 0D 03 02 [14:16:39]Write to MH i2c: E2 08 00 F3 AE 80 0D 03 02 00 00 00 00 1C [14:16:39]Write i2c OK [14:16:39]MH_I2C_Read... [14:16:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:16:39]Read from MH i2c: E2 [14:16:39]MH_I2C_Read... [14:16:39]Read from MH i2c: E2 0B 00 [14:16:39]MH_I2C_Read... [14:16:39]Read from MH i2c: E2 0B 00 F3 AE 00 29 5A 44 97 24 0B F6 E7 90 00 87 [14:16:39]RAPDU: 29 5A 44 97 24 0B F6 E7 90 00 [14:16:39]wFMCommunicate OK [14:16:39]SAM_PROTO_SignData done [14:16:39]FM_MakeSignedData done [14:16:39]CreateOFDProtocolMessage [14:16:39]wFMCommunicate request_size=4 [14:16:39]MH_SAM_APDU [14:16:39]CAPDU: 80 11 00 00 [14:16:39]Write to MH i2c: E2 08 00 F4 AE 80 11 00 00 00 00 00 00 1C [14:16:39]Write i2c OK [14:16:39]MH_I2C_Read... [14:16:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:16:39]Read from MH i2c: E2 [14:16:39]MH_I2C_Read... [14:16:39]Read from MH i2c: E2 17 00 [14:16:39]MH_I2C_Read... [14:16:39]Read from MH i2c: E2 17 00 F4 AE 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 6F [14:16:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [14:16:39]wFMCommunicate OK [14:16:39]CreateOFDProtocolMessage done [14:16:39]OFDSenderStorePacket 103686 [14:16:39]StoreOFDPacket docnum=103686 [14:16:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 BF 51 07 01 C8 36 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E1 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E1 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 52 E8 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 06 95 01 00 35 04 06 00 C9 1E 40 3E B7 B8 29 5A 44 97 24 0B F6 E7 [14:16:39]CheckFolder [14:16:39]dirname=/storage/ofd_packets [14:16:39]CheckFolder done [14:16:39]ProducePacketName [14:16:39]name=ofd_packets/00103686 [14:16:39]NVStorageSaveData ofd_packets/00103686 [14:16:39]File name is /storage/ofd_packets/00103686 [14:16:39]Write 301 bytes [14:16:39]NVStorageSaveData done [14:16:39]OFDSenderStorePacket done [14:16:39]KKMCreateOFDPacket done [14:16:39]NVStorageSaveData kkm_last_timestamp [14:16:39]File name is /storage/kkm_last_timestamp [14:16:39]Write 4 bytes [14:16:39]NVStorageSaveData done [14:16:39]ExternCall_PrintAddStr [14:16:39]wPrintStart [14:16:39]Write to MH i2c: 01 00 00 F5 AE A3 [14:16:39]Write i2c OK [14:16:39]MH_I2C_Read... [14:16:39]Read from MH i2c: 01 [14:16:39]MH_I2C_Read... [14:16:39]Read from MH i2c: 01 07 00 [14:16:39]MH_I2C_Read... [14:16:39]Read from MH i2c: 01 07 00 F5 AE 00 00 00 00 00 FF 0F B8 [14:16:39]RasterBufferAndPrint [14:16:39]line Счет N : (1)672947 [14:16:39]line ИНН: 02508201610067 [14:16:39]line Контрольно-Кассовый Чек [14:16:39]line ПРОДАЖА [14:16:39]line ТРК (МРК, ГНК) : 42 [14:16:39]line Товар: 2710124130 [14:16:39]line Аи-92-К-5 [14:16:39]line 15.070 * 66.40 [14:16:39]line = 1000.65 [14:16:39]line НДС 12% НСП 1% [14:16:39]line > о реализуемом товаре [14:16:39]line ИТОГО: 1000.65 [14:16:39]line НСП 1% : 8.85 [14:16:39]line НДС 12% : 106.26 [14:16:39]line Наличными: 0.00 [14:16:39]line Безнал.: 1000.65 [14:16:39]line Место: АЗС № 120 "Партнер Нефть" [14:16:39]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [14:16:39]line СНО: Общий режим [14:16:39]line Чек 116 19.06.2024 14:16 [14:16:39]line Смена: 353 ФФД: 1.0 [14:16:39]line ЗНМ: 0300000164 [14:16:39]line РНМ: 0000000000092785 [14:16:39]line Версия ККМ: 001 [14:16:39]line Платежная система: Бакай Банк [14:16:39]line ФМ: 0000000000875093 [14:16:39]line ФД: 103686 [14:16:39]line ФПД: 221131764053944 [14:16:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T141650&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103686&fm=221131764053944&tin=02508201610067®Number=0000000000092785&sum=100065 [14:16:39]written 0, free lines is 4095 [14:16:39]OFD Sender: Processing packet 103686 [packets to send 17, broken 16] [14:16:39]ProducePacketName [14:16:39]name=ofd_packets/00103686 [14:16:39]OFD Sender: To server: pG, [14:16:39]CommunicateWithHost lk.salyk.kg:30040 [14:16:39]ConnectInit lk.salyk.kg [14:16:39]Connected sock=10 [14:16: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 39 33 0F 01 00 00 BF 51 07 01 C8 36 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E1 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E1 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 52 E8 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 06 95 01 00 35 04 06 00 C9 1E 40 3E B7 B8 29 5A 44 97 24 0B F6 E7 [14:16: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 39 33 4F 00 00 00 A5 77 47 00 92 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 39 33 10 04 04 00 06 95 01 00 F4 03 04 00 DA 8E 72 66 B6 04 01 00 00 81 EA 56 90 EF 35 6A DF [14:16:39]CommunicateWithHost err = 0 [14:16:39]CheckOFDResponse [14:16:39]1017 (14) - 77093643461234 [14:16:39]1041 (16) - 0000000000875093 [14:16:39]1040 (4) - 103686 [14:16:39]1012 (4) - 19.06.2024 07:55 [14:16:39]1206 (1) - 0 [14:16:39]OFD Sender: Remove packet 103686 [14:16:39]ProducePacketName [14:16:39]name=ofd_packets/00103686 [14:16:39]NVStorageDeleteData [14:16:39]Write to MH i2c: 01 00 00 1F AF CE [14:16:39]Write i2c OK [14:16:39]MH_I2C_Read... [14:16:39]Read from MH i2c: 01 [14:16:39]MH_I2C_Read... [14:16:39]Read from MH i2c: 01 07 00 [14:16:39]MH_I2C_Read... [14:16:39]Read from MH i2c: 01 07 00 1F AF 00 00 00 00 00 01 0D E3 [14:16:39]RasterBufferAndPrint [14:16:39]line [14:16:39]line [14:16:39]line [14:16:39]line [14:16:39]line [14:16:39]written 0, free lines is 3335 [14:16:39]MH_Cut [14:16:39]Write to MH i2c: D1 01 00 26 AF 01 A7 [14:16:39]Write i2c OK [14:16:39]MH_I2C_Read... [14:16:39]Read from MH i2c: D1 [14:16:39]MH_I2C_Read... [14:16:39]Read from MH i2c: D1 01 00 [14:16:39]MH_I2C_Read... [14:16:39]Read from MH i2c: D1 01 00 26 AF 00 A6 [14:16:39]Write to MH i2c: 01 00 00 27 AF D6 [14:16:39]Write i2c OK [14:16:39]MH_I2C_Read... [14:16:40]OFD Sender: No OFD packet to send [14:16:40]*** Cut start [14:16:40]*** Partial cut [14:16:40]*** CUTSNS_PIN = 1 [14:16:40]*** CUTSNS_PIN = 0 [14:16:40]*** Brake cut motor [14:16:41]Read from MH i2c: 01 [14:16:41]*** Stop cut motor [14:16:41]*** Cut end [14:16:41]MH_I2C_Read... [14:16:41]Read from MH i2c: 01 07 00 [14:16:41]MH_I2C_Read... [14:16:41]Read from MH i2c: 01 07 00 27 AF 00 00 00 00 00 FF 0F EB [14:16:41]process_action close_receipt done [14:16:41]requested_data is exist [14:16:41]produce_requested_data [14:16:41]requested_item fm.sn is exist - process it [14:16:41]wFMCommunicate request_size=4 [14:16:41]MH_SAM_APDU [14:16:41]CAPDU: 80 11 00 00 [14:16:41]Write to MH i2c: E2 08 00 28 AF 80 11 00 00 00 00 00 00 51 [14:16:41]Write i2c OK [14:16:41]MH_I2C_Read... [14:16:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:16:41]Read from MH i2c: E2 [14:16:41]MH_I2C_Read... [14:16:41]Read from MH i2c: E2 17 00 [14:16:41]MH_I2C_Read... [14:16:41]Read from MH i2c: E2 17 00 28 AF 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 A4 [14:16:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [14:16:41]wFMCommunicate OK [14:16:41]requested_item fd.num is exist - process it [14:16:41]SAM_PROTO_GetFieldsCounters [14:16:41]wFMCommunicate request_size=4 [14:16:41]MH_SAM_APDU [14:16:41]CAPDU: 80 13 00 00 [14:16:41]Write to MH i2c: E2 08 00 29 AF 80 13 00 00 00 00 00 00 54 [14:16:41]Write i2c OK [14:16:41]MH_I2C_Read... [14:16:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:16:41]Read from MH i2c: E2 [14:16:41]MH_I2C_Read... [14:16:41]Read from MH i2c: E2 62 00 [14:16:41]MH_I2C_Read... [14:16:41]Read from MH i2c: E2 62 00 29 AF 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 06 95 01 00 0E 04 04 00 61 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 D5 [14: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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 06 95 01 00 0E 04 04 00 61 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 [14:16:41]wFMCommunicate OK [14:16:41]SAM_PROTO_GetFieldsCounters done [14:16:41]requested_item shift.num is exist - process it [14:16:41]requested_item shift.opened is exist - process it [14:16:41]req_shift_opened [14:16:41]FM_GetShiftState [14:16:41]SAM_PROTO_GetShiftState [14:16:41]wFMCommunicate request_size=4 [14:16:41]MH_SAM_APDU [14:16:41]CAPDU: 80 13 01 00 [14:16:41]Write to MH i2c: E2 08 00 2A AF 80 13 01 00 00 00 00 00 56 [14:16:41]Write i2c OK [14:16:41]MH_I2C_Read... [14:16:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:16:41]Read from MH i2c: E2 [14:16:41]MH_I2C_Read... [14:16:41]Read from MH i2c: E2 0E 00 [14:16:41]MH_I2C_Read... [14:16:41]Read from MH i2c: E2 0E 00 2A AF 00 09 00 01 04 26 72 66 00 00 00 00 90 00 64 [14:16:41]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [14:16:41]wFMCommunicate OK [14:16:41]SAM_PROTO_GetShiftState done [14:16:41]FM_GetShiftState done [14:16:41]req_shift_opened done [14:16:41]requested_item shift.open_date is exist - process it [14:16:41]req_shift_open_date [14:16:41]req_shift_open_date done [14:16:41]produce_requested_data done [14:16:41]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103686,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [14:16:41]process_action_free close_receipt [14:16:41]json_value_free [14:16:41]json_value_free done [14:16:41]process_json_proto returns [14:16:41]Send response to host [14:16:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103686,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [14:16:41]free response buf [14:16:41]execute_script done [14:16:41]execute_script returns [14:16:41]free content buf [14:16:41]Sock 7.Close socket [14:16:41]Sock 7.Thread stoped [14:16:45]OFD Sender: No OFD packet to send [14:16:50]OFD Sender: No OFD packet to send [14:16:55]OFD Sender: No OFD packet to send [14:17:00]OFD Sender: No OFD packet to send [14:17:05]OFD Sender: No OFD packet to send [14:17:10]OFD Sender: No OFD packet to send [14:17:15]OFD Sender: No OFD packet to send [14:17:20]OFD Sender: No OFD packet to send [14:17:25]OFD Sender: No OFD packet to send [14:17:30]OFD Sender: No OFD packet to send [14:17:35]OFD Sender: No OFD packet to send [14:17:40]OFD Sender: No OFD packet to send [14:17:45]OFD Sender: No OFD packet to send [14:17:50]OFD Sender: No OFD packet to send [14:17:55]OFD Sender: No OFD packet to send [14:18:00]OFD Sender: No OFD packet to send [14:18:05]OFD Sender: No OFD packet to send [14:18:10]OFD Sender: No OFD packet to send [14:18:15]OFD Sender: No OFD packet to send [14:18:20]OFD Sender: No OFD packet to send [14:18:25]OFD Sender: No OFD packet to send [14:18:30]OFD Sender: No OFD packet to send [14:18:35]OFD Sender: No OFD packet to send [14:18:40]OFD Sender: No OFD packet to send [14:18:45]OFD Sender: No OFD packet to send [14:18:50]OFD Sender: No OFD packet to send [14:18:55]OFD Sender: No OFD packet to send [14:19:00]OFD Sender: No OFD packet to send [14:19:05]OFD Sender: No OFD packet to send [14:19:10]OFD Sender: No OFD packet to send [14:19:15]OFD Sender: No OFD packet to send [14:19:17]accept exits with 9 [14:19:17]New connection [14:19:17]New thread 3067227492 created [14:19:17]Thread 3067084132 joined [14:19:17]Waiting for new connection... [14:19:17] Sock 9.Parse request [14:19:17]Sock 9.Check first char [14:19:17]Sock 9.First char is OK [14:19:17]request: POST /json_proto HTTP/1.0 [14:19:17]Method: POST [14:19:17]URL: /json_proto [14:19:17]Method is POST - this is cgi request [14:19:17]url: /json_proto [14:19:17]query_string will be loaded in cgi processing [14:19:17]execute_cgi json_proto POST (null) [14:19:17]execute_cgi path=json_proto method=POST [14:19:17]POST find Content-Length [14:19:17]Host: 172.17.38.133:8080 [14:19:17]Content-Length: 666 [14:19:17]Content-Type: application/json [14:19:17] [14:19:17]POST finish read [14:19:17]Found Content-Length = 666 [14:19:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672948", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 10.000, "sum" : 729.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "payments": [ { "type": 0, "sum" : 729.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:19:17]execute_script... [14:19: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)672948", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 10.000, "sum" : 729.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "payments": [ { "type": 0, "sum" : 729.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:19:17]POST & json_proto [14:19:17]process_json_proto [14:19:17]json parsed OK: [14:19:17]protocol is kg_v1.0 [14:19:17]action value=close_receipt [14:19:17]process_action close_receipt [14:19:17]cmd_close_receipt [14:19:17]MH_GetDate [14:19:17]Write to MH i2c: F0 00 00 2B AF C9 [14:19:17]Write i2c OK [14:19:17]MH_I2C_Read... [14:19:17]Read from MH i2c: F0 [14:19:17]MH_I2C_Read... [14:19:17]Read from MH i2c: F0 09 00 [14:19:17]MH_I2C_Read... [14:19:17]Read from MH i2c: F0 09 00 2B AF 00 F2 E8 72 66 BD 8F 7C 64 B0 [14:19:17]GetLastDocTimeStamp 1718806610 [14:19:17]current date 1718806770 [14:19:17]FM_GetShiftState [14:19:17]SAM_PROTO_GetShiftState [14:19:17]wFMCommunicate request_size=4 [14:19:17]MH_SAM_APDU [14:19:17]CAPDU: 80 13 01 00 [14:19:17]Write to MH i2c: E2 08 00 2C AF 80 13 01 00 00 00 00 00 58 [14:19:17]Write i2c OK [14:19:17]MH_I2C_Read... [14:19:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:19:17]Read from MH i2c: E2 [14:19:17]MH_I2C_Read... [14:19:17]Read from MH i2c: E2 0E 00 [14:19:17]MH_I2C_Read... [14:19:17]Read from MH i2c: E2 0E 00 2C AF 00 09 00 01 04 26 72 66 00 00 00 00 90 00 66 [14:19:17]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [14:19:17]wFMCommunicate OK [14:19:17]SAM_PROTO_GetShiftState done [14:19:17]FM_GetShiftState done [14:19:17]opened in 1718756868 [14:19:17]opened+sec_in_day 1718843268 [14:19:17]quantity*price = 72900 [14:19:17]sum+1 = 72901 [14:19:17]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 729.00 Внесено: 1000.00 СДАЧА: 271.00 НСП 1% : 6.45 НДС 12% : 77.42 Наличными: 729.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 117 19.06.2024 14:19 Смена: 353 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103687 ФПД: 229673831111602 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T141930&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103687&fm=229673831111602&tin=02508201610067®Number=0000000000092785&sum=72900 [14:19:19]StoreToDocumentArchive [14:19:19]shift 353 fd 103687 [14:19:19]save to /storage/0353/doc_00103687 [14:19:19]save last doc name /storage/0353/doc_00103687 to /storage/kkm_last_doc_name [14:19:19]save OK [14:19:19]Clear old archive folders... [14:19:19]ProcessDocumentItem done err = 0, tmpTLVsize=252 [14:19:19]tlvbuf is 013F63E0 [14:19:19]SAM_PROTO_ClearQueue [14:19:19]wFMCommunicate request_size=4 [14:19:19]MH_SAM_APDU [14:19:19]CAPDU: 80 09 00 00 [14:19:19]Write to MH i2c: E2 08 00 39 AF 80 09 00 00 00 00 00 00 5A [14:19:19]Write i2c OK [14:19:19]MH_I2C_Read... [14:19:19]Read from MH i2c: E2 [14:19:19]MH_I2C_Read... [14:19:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:19:19]Read from MH i2c: E2 03 00 [14:19:19]MH_I2C_Read... [14:19:19]Read from MH i2c: E2 03 00 39 AF 00 90 00 5C [14:19:19]RAPDU: 90 00 [14:19:19]wFMCommunicate OK [14:19:19]SAM_PROTO_ClearQueue done [14:19:19]KKMCreateOFDPacket [14:19:19]OFDProtocolAddRootSTLVToBuf [14:19:19]FM_MakeSignedData [14:19:19]FM_MakeSignedData [14:19:19]SAM_PROTO_SignData [14:19:19]wFMCommunicate request_size=4 [14:19:19]MH_SAM_APDU [14:19:19]CAPDU: 80 0D 01 02 [14:19:19]Write to MH i2c: E2 08 00 3A AF 80 0D 01 02 00 00 00 00 62 [14:19:19]Write i2c OK [14:19:19]MH_I2C_Read... [14:19:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:19:19]Read from MH i2c: E2 [14:19:19]MH_I2C_Read... [14:19:19]Read from MH i2c: E2 03 00 [14:19:19]MH_I2C_Read... [14:19:19]Read from MH i2c: E2 03 00 3A AF 00 90 00 5D [14:19:19]RAPDU: 90 00 [14:19:19]wFMCommunicate OK [14:19:19]wFMCommunicate request_size=255 [14:19:19]MH_SAM_APDU [14:19:19]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 C4 1C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 1C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 1E 00 00 00 00 07 04 06 00 C4 1C 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 F2 E8 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 07 95 01 00 35 04 06 00 [14:19:19]Write to MH i2c: E2 02 01 3B AF 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 C4 1C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 1C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 1E 00 00 00 00 07 04 06 00 C4 1C 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 F2 E8 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 07 95 01 00 35 04 06 00 00 00 26 [14:19:19]Write i2c OK [14:19:19]MH_I2C_Read... [14:19:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:19:19]Read from MH i2c: E2 [14:19:19]MH_I2C_Read... [14:19:19]Read from MH i2c: E2 03 00 [14:19:19]MH_I2C_Read... [14:19:19]Read from MH i2c: E2 03 00 3B AF 00 90 00 5E [14:19:19]RAPDU: 90 00 [14:19:19]wFMCommunicate OK [14:19:19]wFMCommunicate request_size=11 [14:19:19]MH_SAM_APDU [14:19:19]CAPDU: 80 0D 02 02 06 D0 E3 1B 1E 1B B2 [14:19:19]Write to MH i2c: E2 0E 00 3C AF 80 0D 02 02 06 00 D0 E3 1B 1E 1B B2 00 00 2A [14:19:19]Write i2c OK [14:19:19]MH_I2C_Read... [14:19:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:19:19]Read from MH i2c: E2 [14:19:19]MH_I2C_Read... [14:19:19]Read from MH i2c: E2 03 00 [14:19:19]MH_I2C_Read... [14:19:19]Read from MH i2c: E2 03 00 3C AF 00 90 00 5F [14:19:19]RAPDU: 90 00 [14:19:19]wFMCommunicate OK [14:19:19]wFMCommunicate request_size=4 [14:19:19]MH_SAM_APDU [14:19:19]CAPDU: 80 0D 03 02 [14:19:19]Write to MH i2c: E2 08 00 3D AF 80 0D 03 02 00 00 00 00 67 [14:19:19]Write i2c OK [14:19:19]MH_I2C_Read... [14:19:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:19:19]Read from MH i2c: E2 [14:19:19]MH_I2C_Read... [14:19:19]Read from MH i2c: E2 0B 00 [14:19:19]MH_I2C_Read... [14:19:19]Read from MH i2c: E2 0B 00 3D AF 00 DA E3 E5 B3 E0 F8 DA 2B 90 00 9A [14:19:19]RAPDU: DA E3 E5 B3 E0 F8 DA 2B 90 00 [14:19:19]wFMCommunicate OK [14:19:19]SAM_PROTO_SignData done [14:19:19]FM_MakeSignedData done [14:19:19]CreateOFDProtocolMessage [14:19:19]wFMCommunicate request_size=4 [14:19:19]MH_SAM_APDU [14:19:19]CAPDU: 80 11 00 00 [14:19:19]Write to MH i2c: E2 08 00 3E AF 80 11 00 00 00 00 00 00 67 [14:19:19]Write i2c OK [14:19:19]MH_I2C_Read... [14:19:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:19:19]Read from MH i2c: E2 [14:19:19]MH_I2C_Read... [14:19:19]Read from MH i2c: E2 17 00 [14:19:19]MH_I2C_Read... [14:19:19]Read from MH i2c: E2 17 00 3E AF 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 BA [14:19:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [14:19:19]wFMCommunicate OK [14:19:19]CreateOFDProtocolMessage done [14:19:19]OFDSenderStorePacket 103687 [14:19:19]StoreOFDPacket docnum=103687 [14:19:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 85 7E 08 01 E0 7F 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 C4 1C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 1C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 1E 00 00 00 00 07 04 06 00 C4 1C 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 F2 E8 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 07 95 01 00 35 04 06 00 D0 E3 1B 1E 1B B2 DA E3 E5 B3 E0 F8 DA 2B [14:19:19]CheckFolder [14:19:19]dirname=/storage/ofd_packets [14:19:19]CheckFolder done [14:19:19]ProducePacketName [14:19:19]name=ofd_packets/00103687 [14:19:19]NVStorageSaveData ofd_packets/00103687 [14:19:19]File name is /storage/ofd_packets/00103687 [14:19:19]Write 302 bytes [14:19:19]NVStorageSaveData done [14:19:19]OFDSenderStorePacket done [14:19:19]KKMCreateOFDPacket done [14:19:19]NVStorageSaveData kkm_last_timestamp [14:19:19]File name is /storage/kkm_last_timestamp [14:19:19]Write 4 bytes [14:19:19]NVStorageSaveData done [14:19:19]ExternCall_PrintAddStr [14:19:19]wPrintStart [14:19:19]Write to MH i2c: 01 00 00 3F AF EE [14:19:19]Write i2c OK [14:19:19]MH_I2C_Read... [14:19:19]Read from MH i2c: 01 [14:19:19]MH_I2C_Read... [14:19:19]Read from MH i2c: 01 07 00 [14:19:19]MH_I2C_Read... [14:19:19]Read from MH i2c: 01 07 00 3F AF 00 00 00 00 00 FF 0F 03 [14:19:19]RasterBufferAndPrint [14:19:19]line Счет N : (1)672948 [14:19:19]line ИНН: 02508201610067 [14:19:19]line Контрольно-Кассовый Чек [14:19:19]line ПРОДАЖА [14:19:19]line ТРК (МРК, ГНК) : 11 [14:19:19]line Товар: 2710194210 [14:19:19]line ДТ(л)-К-5 [14:19:19]line 10.000 * 72.90 [14:19:19]line = 729.00 [14:19:19]line НДС 12% НСП 1% [14:19:19]line > о реализуемом товаре [14:19:19]line ИТОГО: 729.00 [14:19:19]line Внесено: 1000.00 [14:19:19]line СДАЧА: 271.00 [14:19:19]line НСП 1% : 6.45 [14:19:19]line НДС 12% : 77.42 [14:19:19]line Наличными: 729.00 [14:19:19]line Безнал.: 0.00 [14:19:19]line Место: АЗС № 120 "Партнер Нефть" [14:19:19]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [14:19:19]line СНО: Общий режим [14:19:19]line Чек 117 19.06.2024 14:19 [14:19:19]line Смена: 353 ФФД: 1.0 [14:19:19]line ЗНМ: 0300000164 [14:19:19]line РНМ: 0000000000092785 [14:19:19]line Версия ККМ: 001 [14:19:19]line ФМ: 0000000000875093 [14:19:19]line ФД: 103687 [14:19:19]line ФПД: 229673831111602 [14:19:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T141930&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103687&fm=229673831111602&tin=02508201610067®Number=0000000000092785&sum=72900 [14:19:19]written 0, free lines is 4095 [14:19:19]OFD Sender: Processing packet 103687 [packets to send 17, broken 16] [14:19:19]ProducePacketName [14:19:19]name=ofd_packets/00103687 [14:19:19]OFD Sender: To server: pG, [14:19:19]CommunicateWithHost lk.salyk.kg:30040 [14:19:19]ConnectInit lk.salyk.kg [14:19:20]Connected sock=10 [14:19: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 39 33 10 01 00 00 85 7E 08 01 E0 7F 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 C4 1C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 1C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 1E 00 00 00 00 07 04 06 00 C4 1C 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 F2 E8 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 07 95 01 00 35 04 06 00 D0 E3 1B 1E 1B B2 DA E3 E5 B3 E0 F8 DA 2B [14:19: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 39 33 4F 00 00 00 BC 94 47 00 37 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 39 33 10 04 04 00 07 95 01 00 F4 03 04 00 7B 8F 72 66 B6 04 01 00 00 AE B3 58 6C BB 77 17 20 [14:19:20]CommunicateWithHost err = 0 [14:19:20]CheckOFDResponse [14:19:20]1017 (14) - 77093643461234 [14:19:20]1041 (16) - 0000000000875093 [14:19:20]1040 (4) - 103687 [14:19:20]1012 (4) - 19.06.2024 07:57 [14:19:20]1206 (1) - 0 [14:19:20]OFD Sender: Remove packet 103687 [14:19:20]ProducePacketName [14:19:20]name=ofd_packets/00103687 [14:19:20]NVStorageDeleteData [14:19:20]Write to MH i2c: 01 00 00 69 AF 18 [14:19:20]Write i2c OK [14:19:20]MH_I2C_Read... [14:19:20]Read from MH i2c: 01 [14:19:20]MH_I2C_Read... [14:19:20]Read from MH i2c: 01 07 00 [14:19:20]MH_I2C_Read... [14:19:20]Read from MH i2c: 01 07 00 69 AF 00 00 00 00 00 F1 0C 1C [14:19:20]RasterBufferAndPrint [14:19:20]line [14:19:20]line [14:19:20]line [14:19:20]line [14:19:20]line [14:19:20]written 0, free lines is 3320 [14:19:20]MH_Cut [14:19:20]Write to MH i2c: D1 01 00 70 AF 01 F1 [14:19:20]Write i2c OK [14:19:20]MH_I2C_Read... [14:19:20]Read from MH i2c: D1 [14:19:20]MH_I2C_Read... [14:19:20]Read from MH i2c: D1 01 00 [14:19:20]MH_I2C_Read... [14:19:20]Read from MH i2c: D1 01 00 70 AF 00 F0 [14:19:20]Write to MH i2c: 01 00 00 71 AF 20 [14:19:20]Write i2c OK [14:19:20]MH_I2C_Read... [14:19:20]OFD Sender: No OFD packet to send [14:19:21]*** Cut start [14:19:21]*** Partial cut [14:19:21]*** CUTSNS_PIN = 1 [14:19:21]*** CUTSNS_PIN = 0 [14:19:21]*** Brake cut motor [14:19:21]Read from MH i2c: 01 [14:19:21]MH_I2C_Read... [14:19:21]*** Stop cut motor [14:19:21]*** Cut end [14:19:21]Read from MH i2c: 01 07 00 [14:19:21]MH_I2C_Read... [14:19:21]Read from MH i2c: 01 07 00 71 AF 00 00 00 00 00 FF 0F 35 [14:19:21]process_action close_receipt done [14:19:21]requested_data is exist [14:19:21]produce_requested_data [14:19:21]requested_item fm.sn is exist - process it [14:19:21]wFMCommunicate request_size=4 [14:19:21]MH_SAM_APDU [14:19:21]CAPDU: 80 11 00 00 [14:19:21]Write to MH i2c: E2 08 00 72 AF 80 11 00 00 00 00 00 00 9B [14:19:21]Write i2c OK [14:19:21]MH_I2C_Read... [14:19:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:19:21]Read from MH i2c: E2 [14:19:21]MH_I2C_Read... [14:19:21]Read from MH i2c: E2 17 00 [14:19:21]MH_I2C_Read... [14:19:21]Read from MH i2c: E2 17 00 72 AF 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 EE [14:19:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [14:19:21]wFMCommunicate OK [14:19:21]requested_item fd.num is exist - process it [14:19:21]SAM_PROTO_GetFieldsCounters [14:19:21]wFMCommunicate request_size=4 [14:19:21]MH_SAM_APDU [14:19:21]CAPDU: 80 13 00 00 [14:19:21]Write to MH i2c: E2 08 00 73 AF 80 13 00 00 00 00 00 00 9E [14:19:21]Write i2c OK [14:19:21]MH_I2C_Read... [14:19:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:19:21]Read from MH i2c: E2 [14:19:21]MH_I2C_Read... [14:19:21]Read from MH i2c: E2 62 00 [14:19:21]MH_I2C_Read... [14:19:21]Read from MH i2c: E2 62 00 73 AF 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 07 95 01 00 0E 04 04 00 61 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 23 [14:19: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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 07 95 01 00 0E 04 04 00 61 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 [14:19:21]wFMCommunicate OK [14:19:21]SAM_PROTO_GetFieldsCounters done [14:19:21]requested_item shift.num is exist - process it [14:19:21]requested_item shift.opened is exist - process it [14:19:21]req_shift_opened [14:19:21]FM_GetShiftState [14:19:21]SAM_PROTO_GetShiftState [14:19:21]wFMCommunicate request_size=4 [14:19:21]MH_SAM_APDU [14:19:21]CAPDU: 80 13 01 00 [14:19:21]Write to MH i2c: E2 08 00 74 AF 80 13 01 00 00 00 00 00 A0 [14:19:21]Write i2c OK [14:19:21]MH_I2C_Read... [14:19:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:19:21]Read from MH i2c: E2 [14:19:21]MH_I2C_Read... [14:19:21]Read from MH i2c: E2 0E 00 [14:19:21]MH_I2C_Read... [14:19:21]Read from MH i2c: E2 0E 00 74 AF 00 09 00 01 04 26 72 66 00 00 00 00 90 00 AE [14:19:21]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [14:19:21]wFMCommunicate OK [14:19:21]SAM_PROTO_GetShiftState done [14:19:21]FM_GetShiftState done [14:19:21]req_shift_opened done [14:19:21]requested_item shift.open_date is exist - process it [14:19:21]req_shift_open_date [14:19:21]req_shift_open_date done [14:19:21]produce_requested_data done [14:19:21]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103687,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [14:19:21]process_action_free close_receipt [14:19:21]json_value_free [14:19:21]json_value_free done [14:19:21]process_json_proto returns [14:19:21]Send response to host [14:19:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103687,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [14:19:21]free response buf [14:19:21]execute_script done [14:19:21]execute_script returns [14:19:21]free content buf [14:19:21]Sock 9.Close socket [14:19:21]Sock 9.Thread stoped [14:19:25]OFD Sender: No OFD packet to send [14:19:30]OFD Sender: No OFD packet to send [14:19:35]OFD Sender: No OFD packet to send [14:19:40]OFD Sender: No OFD packet to send [14:19:45]OFD Sender: No OFD packet to send [14:19:50]OFD Sender: No OFD packet to send [14:19:55]OFD Sender: No OFD packet to send [14:20:00]OFD Sender: No OFD packet to send [14:20:05]OFD Sender: No OFD packet to send [14:20:10]OFD Sender: No OFD packet to send [14:20:15]OFD Sender: No OFD packet to send [14:20:20]OFD Sender: No OFD packet to send [14:20:25]OFD Sender: No OFD packet to send [14:20:30]OFD Sender: No OFD packet to send [14:20:35]OFD Sender: No OFD packet to send [14:20:40]OFD Sender: No OFD packet to send [14:20:45]OFD Sender: No OFD packet to send [14:20:50]OFD Sender: No OFD packet to send [14:20:55]OFD Sender: No OFD packet to send [14:21:00]OFD Sender: No OFD packet to send [14:21:05]OFD Sender: No OFD packet to send [14:21:10]OFD Sender: No OFD packet to send [14:21:15]OFD Sender: No OFD packet to send [14:21:20]OFD Sender: No OFD packet to send [14:21:25]OFD Sender: No OFD packet to send [14:21:30]OFD Sender: No OFD packet to send [14:21:35]OFD Sender: No OFD packet to send [14:21:40]OFD Sender: No OFD packet to send [14:21:44]accept exits with 7 [14:21:44]New connection [14:21:44]New thread 3067084132 created [14:21:44]Thread 3067227492 joined [14:21:44]Waiting for new connection... [14:21:44] Sock 7.Parse request [14:21:44]Sock 7.Check first char [14:21:44]Sock 7.First char is OK [14:21:44]request: POST /json_proto HTTP/1.0 [14:21:44]Method: POST [14:21:44]URL: /json_proto [14:21:44]Method is POST - this is cgi request [14:21:44]url: /json_proto [14:21:44]query_string will be loaded in cgi processing [14:21:44]execute_cgi json_proto POST (null) [14:21:44]execute_cgi path=json_proto method=POST [14:21:44]POST find Content-Length [14:21:44]Host: 172.17.38.133:8080 [14:21:44]Content-Length: 677 [14:21:44]Content-Type: application/json [14:21:44] [14:21:44]POST finish read [14:21:44]Found Content-Length = 677 [14:21:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672949", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 6.770, "sum" : 500.30, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:21:44]execute_script... [14:21: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)672949", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 6.770, "sum" : 500.30, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:21:44]POST & json_proto [14:21:44]process_json_proto [14:21:44]json parsed OK: [14:21:44]protocol is kg_v1.0 [14:21:44]action value=close_receipt [14:21:44]process_action close_receipt [14:21:44]cmd_close_receipt [14:21:44]MH_GetDate [14:21:44]Write to MH i2c: F0 00 00 75 AF 13 [14:21:44]Write i2c OK [14:21:44]MH_I2C_Read... [14:21:44]Read from MH i2c: F0 [14:21:44]MH_I2C_Read... [14:21:44]Read from MH i2c: F0 09 00 [14:21:44]MH_I2C_Read... [14:21:44]Read from MH i2c: F0 09 00 75 AF 00 84 E9 72 66 BD 8F 7C 64 8D [14:21:44]GetLastDocTimeStamp 1718806770 [14:21:44]current date 1718806916 [14:21:44]FM_GetShiftState [14:21:44]SAM_PROTO_GetShiftState [14:21:44]wFMCommunicate request_size=4 [14:21:44]MH_SAM_APDU [14:21:44]CAPDU: 80 13 01 00 [14:21:44]Write to MH i2c: E2 08 00 76 AF 80 13 01 00 00 00 00 00 A2 [14:21:44]Write i2c OK [14:21:44]MH_I2C_Read... [14:21:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:21:44]Read from MH i2c: E2 [14:21:44]MH_I2C_Read... [14:21:44]Read from MH i2c: E2 0E 00 [14:21:44]MH_I2C_Read... [14:21:44]Read from MH i2c: E2 0E 00 76 AF 00 09 00 01 04 26 72 66 00 00 00 00 90 00 B0 [14:21:44]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [14:21:44]wFMCommunicate OK [14:21:44]SAM_PROTO_GetShiftState done [14:21:44]FM_GetShiftState done [14:21:44]opened in 1718756868 [14:21:44]opened+sec_in_day 1718843268 [14:21:44]quantity*price = 50030 [14:21:44]sum+1 = 50031 [14:21:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.30 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.13 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 118 19.06.2024 14:21 Смена: 353 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103688 ФПД: 16307568082608 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T142156&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103688&fm=16307568082608&tin=02508201610067®Number=0000000000092785&sum=50000 [14:21:45]StoreToDocumentArchive [14:21:45]shift 353 fd 103688 [14:21:45]save to /storage/0353/doc_00103688 [14:21:45]save last doc name /storage/0353/doc_00103688 to /storage/kkm_last_doc_name [14:21:45]save OK [14:21:45]Clear old archive folders... [14:21:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:21:45]tlvbuf is B6F1DA90 [14:21:45]SAM_PROTO_ClearQueue [14:21:45]wFMCommunicate request_size=4 [14:21:45]MH_SAM_APDU [14:21:45]CAPDU: 80 09 00 00 [14:21:45]Write to MH i2c: E2 08 00 83 AF 80 09 00 00 00 00 00 00 A4 [14:21:45]Write i2c OK [14:21:45]MH_I2C_Read... [14:21:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:21:45]Read from MH i2c: E2 [14:21:45]MH_I2C_Read... [14:21:45]Read from MH i2c: E2 03 00 [14:21:45]MH_I2C_Read... [14:21:45]Read from MH i2c: E2 03 00 83 AF 00 90 00 A6 [14:21:45]RAPDU: 90 00 [14:21:45]wFMCommunicate OK [14:21:45]SAM_PROTO_ClearQueue done [14:21:45]KKMCreateOFDPacket [14:21:45]OFDProtocolAddRootSTLVToBuf [14:21:45]FM_MakeSignedData [14:21:45]FM_MakeSignedData [14:21:45]SAM_PROTO_SignData [14:21:45]wFMCommunicate request_size=4 [14:21:45]MH_SAM_APDU [14:21:45]CAPDU: 80 0D 01 02 [14:21:45]Write to MH i2c: E2 08 00 84 AF 80 0D 01 02 00 00 00 00 AC [14:21:45]Write i2c OK [14:21:45]MH_I2C_Read... [14:21:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:21:45]Read from MH i2c: E2 [14:21:45]MH_I2C_Read... [14:21:45]Read from MH i2c: E2 03 00 [14:21:45]MH_I2C_Read... [14:21:45]Read from MH i2c: E2 03 00 84 AF 00 90 00 A7 [14:21:45]RAPDU: 90 00 [14:21:45]wFMCommunicate OK [14:21:45]wFMCommunicate request_size=255 [14:21:45]MH_SAM_APDU [14:21:45]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 72 1A 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 6E C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 84 E9 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 08 95 01 00 35 04 06 00 0E [14:21:45]Write to MH i2c: E2 02 01 85 AF 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 72 1A 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 6E C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 84 E9 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 08 95 01 00 35 04 06 00 0E 00 00 F7 [14:21:45]Write i2c OK [14:21:45]MH_I2C_Read... [14:21:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:21:45]Read from MH i2c: E2 [14:21:45]MH_I2C_Read... [14:21:45]Read from MH i2c: E2 03 00 [14:21:45]MH_I2C_Read... [14:21:45]Read from MH i2c: E2 03 00 85 AF 00 90 00 A8 [14:21:45]RAPDU: 90 00 [14:21:45]wFMCommunicate OK [14:21:45]wFMCommunicate request_size=10 [14:21:45]MH_SAM_APDU [14:21:45]CAPDU: 80 0D 02 02 05 D4 E6 CD 7E B0 [14:21:45]Write to MH i2c: E2 0D 00 86 AF 80 0D 02 02 05 00 D4 E6 CD 7E B0 00 00 6E [14:21:45]Write i2c OK [14:21:45]MH_I2C_Read... [14:21:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:21:45]Read from MH i2c: E2 [14:21:45]MH_I2C_Read... [14:21:45]Read from MH i2c: E2 03 00 [14:21:45]MH_I2C_Read... [14:21:45]Read from MH i2c: E2 03 00 86 AF 00 90 00 A9 [14:21:45]RAPDU: 90 00 [14:21:45]wFMCommunicate OK [14:21:45]wFMCommunicate request_size=4 [14:21:45]MH_SAM_APDU [14:21:45]CAPDU: 80 0D 03 02 [14:21:45]Write to MH i2c: E2 08 00 87 AF 80 0D 03 02 00 00 00 00 B1 [14:21:45]Write i2c OK [14:21:45]MH_I2C_Read... [14:21:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:21:45]Read from MH i2c: E2 [14:21:45]MH_I2C_Read... [14:21:45]Read from MH i2c: E2 0B 00 [14:21:45]MH_I2C_Read... [14:21:45]Read from MH i2c: E2 0B 00 87 AF 00 41 F0 C7 9C DD 3B A3 5C 90 00 5D [14:21:45]RAPDU: 41 F0 C7 9C DD 3B A3 5C 90 00 [14:21:45]wFMCommunicate OK [14:21:45]SAM_PROTO_SignData done [14:21:45]FM_MakeSignedData done [14:21:45]CreateOFDProtocolMessage [14:21:45]wFMCommunicate request_size=4 [14:21:45]MH_SAM_APDU [14:21:45]CAPDU: 80 11 00 00 [14:21:45]Write to MH i2c: E2 08 00 88 AF 80 11 00 00 00 00 00 00 B1 [14:21:45]Write i2c OK [14:21:45]MH_I2C_Read... [14:21:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:21:45]Read from MH i2c: E2 [14:21:45]MH_I2C_Read... [14:21:45]Read from MH i2c: E2 17 00 [14:21:45]MH_I2C_Read... [14:21:45]Read from MH i2c: E2 17 00 88 AF 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 04 [14:21:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [14:21:45]wFMCommunicate OK [14:21:45]CreateOFDProtocolMessage done [14:21:45]OFDSenderStorePacket 103688 [14:21:45]StoreOFDPacket docnum=103688 [14:21:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 82 60 07 01 3F FC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 72 1A 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 6E C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 84 E9 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 08 95 01 00 35 04 06 00 0E D4 E6 CD 7E B0 41 F0 C7 9C DD 3B A3 5C [14:21:45]CheckFolder [14:21:45]dirname=/storage/ofd_packets [14:21:45]CheckFolder done [14:21:45]ProducePacketName [14:21:45]name=ofd_packets/00103688 [14:21:45]NVStorageSaveData ofd_packets/00103688 [14:21:45]File name is /storage/ofd_packets/00103688 [14:21:45]Write 301 bytes [14:21:45]NVStorageSaveData done [14:21:45]OFDSenderStorePacket done [14:21:45]KKMCreateOFDPacket done [14:21:45]NVStorageSaveData kkm_last_timestamp [14:21:45]File name is /storage/kkm_last_timestamp [14:21:45]Write 4 bytes [14:21:45]NVStorageSaveData done [14:21:45]ExternCall_PrintAddStr [14:21:45]wPrintStart [14:21:45]Write to MH i2c: 01 00 00 89 AF 38 [14:21:45]Write i2c OK [14:21:45]MH_I2C_Read... [14:21:45]Read from MH i2c: 01 [14:21:45]MH_I2C_Read... [14:21:45]Read from MH i2c: 01 07 00 [14:21:45]MH_I2C_Read... [14:21:45]Read from MH i2c: 01 07 00 89 AF 00 00 00 00 00 FF 0F 4D [14:21:45]RasterBufferAndPrint [14:21:45]line Счет N : (1)672949 [14:21:45]line ИНН: 02508201610067 [14:21:45]line Контрольно-Кассовый Чек [14:21:45]line ПРОДАЖА [14:21:45]line ТРК (МРК, ГНК) : 41 [14:21:45]line Товар: 2710124500 [14:21:45]line Аи-95-К-5 [14:21:45]line 6.770 * 73.90 [14:21:45]line = 500.30 [14:21:45]line НДС 12% НСП 1% [14:21:45]line > о реализуемом товаре [14:21:45]line ОКРУГЛЕНИЕ: -0.30 [14:21:45]line ИТОГО: 500.00 [14:21:45]line Внесено: 500.00 [14:21:45]line СДАЧА: 0.00 [14:21:45]line НСП 1% : 4.43 [14:21:45]line НДС 12% : 53.13 [14:21:45]line Наличными: 500.00 [14:21:45]line Безнал.: 0.00 [14:21:45]line Место: АЗС № 120 "Партнер Нефть" [14:21:45]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [14:21:45]line СНО: Общий режим [14:21:45]line Чек 118 19.06.2024 14:21 [14:21:45]line Смена: 353 ФФД: 1.0 [14:21:45]line ЗНМ: 0300000164 [14:21:45]line РНМ: 0000000000092785 [14:21:45]line Версия ККМ: 001 [14:21:45]line ФМ: 0000000000875093 [14:21:45]line ФД: 103688 [14:21:45]line ФПД: 16307568082608 [14:21:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T142156&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103688&fm=16307568082608&tin=02508201610067®Number=0000000000092785&sum=50000 [14:21:46]written 0, free lines is 4095 [14:21:46]OFD Sender: Processing packet 103688 [packets to send 17, broken 16] [14:21:46]ProducePacketName [14:21:46]name=ofd_packets/00103688 [14:21:46]OFD Sender: To server: pG, [14:21:46]CommunicateWithHost lk.salyk.kg:30040 [14:21:46]ConnectInit lk.salyk.kg [14:21:46]Connected sock=9 [14:21:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 82 60 07 01 3F FC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 72 1A 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 6E C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 84 E9 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 08 95 01 00 35 04 06 00 0E D4 E6 CD 7E B0 41 F0 C7 9C DD 3B A3 5C [14:21: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 39 33 4F 00 00 00 5D C2 47 00 BF DF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 08 95 01 00 F4 03 04 00 0D 90 72 66 B6 04 01 00 00 B0 11 65 B0 A2 21 D8 41 [14:21:46]CommunicateWithHost err = 0 [14:21:46]CheckOFDResponse [14:21:46]1017 (14) - 77093643461234 [14:21:46]1041 (16) - 0000000000875093 [14:21:46]1040 (4) - 103688 [14:21:46]1012 (4) - 19.06.2024 08:00 [14:21:46]1206 (1) - 0 [14:21:46]OFD Sender: Remove packet 103688 [14:21:46]ProducePacketName [14:21:46]name=ofd_packets/00103688 [14:21:46]NVStorageDeleteData [14:21:46]Write to MH i2c: 01 00 00 B4 AF 63 [14:21:46]Write i2c OK [14:21:46]MH_I2C_Read... [14:21:46]Read from MH i2c: 01 [14:21:46]MH_I2C_Read... [14:21:46]Read from MH i2c: 01 07 00 [14:21:46]MH_I2C_Read... [14:21:46]Read from MH i2c: 01 07 00 B4 AF 00 00 00 00 00 DC 0C 52 [14:21:46]RasterBufferAndPrint [14:21:46]line [14:21:46]line [14:21:46]line [14:21:46]line [14:21:46]line [14:21:46]written 0, free lines is 3298 [14:21:46]MH_Cut [14:21:46]Write to MH i2c: D1 01 00 BB AF 01 3C [14:21:46]Write i2c OK [14:21:46]MH_I2C_Read... [14:21:46]Read from MH i2c: D1 [14:21:46]MH_I2C_Read... [14:21:46]Read from MH i2c: D1 01 00 [14:21:46]MH_I2C_Read... [14:21:46]Read from MH i2c: D1 01 00 BB AF 00 3B [14:21:46]Write to MH i2c: 01 00 00 BC AF 6B [14:21:46]Write i2c OK [14:21:46]MH_I2C_Read... [14:21:46]OFD Sender: No OFD packet to send [14:21:47]*** Cut start [14:21:47]*** Partial cut [14:21:47]*** CUTSNS_PIN = 1 [14:21:47]*** CUTSNS_PIN = 0 [14:21:47]*** Brake cut motor [14:21:47]Read from MH i2c: 01 [14:21:47]MH_I2C_Read... [14:21:47]*** Stop cut motor [14:21:47]*** Cut end [14:21:47]Read from MH i2c: 01 07 00 [14:21:47]MH_I2C_Read... [14:21:47]Read from MH i2c: 01 07 00 BC AF 00 00 00 00 00 FF 0F 80 [14:21:47]process_action close_receipt done [14:21:47]requested_data is exist [14:21:47]produce_requested_data [14:21:47]requested_item fm.sn is exist - process it [14:21:47]wFMCommunicate request_size=4 [14:21:47]MH_SAM_APDU [14:21:47]CAPDU: 80 11 00 00 [14:21:47]Write to MH i2c: E2 08 00 BD AF 80 11 00 00 00 00 00 00 E6 [14:21:47]Write i2c OK [14:21:47]MH_I2C_Read... [14:21:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:21:47]Read from MH i2c: E2 [14:21:47]MH_I2C_Read... [14:21:47]Read from MH i2c: E2 17 00 [14:21:47]MH_I2C_Read... [14:21:47]Read from MH i2c: E2 17 00 BD AF 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 39 [14:21:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [14:21:47]wFMCommunicate OK [14:21:47]requested_item fd.num is exist - process it [14:21:47]SAM_PROTO_GetFieldsCounters [14:21:47]wFMCommunicate request_size=4 [14:21:47]MH_SAM_APDU [14:21:47]CAPDU: 80 13 00 00 [14:21:47]Write to MH i2c: E2 08 00 BE AF 80 13 00 00 00 00 00 00 E9 [14:21:47]Write i2c OK [14:21:47]MH_I2C_Read... [14:21:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:21:48]Read from MH i2c: E2 [14:21:48]MH_I2C_Read... [14:21:48]Read from MH i2c: E2 62 00 [14:21:48]MH_I2C_Read... [14:21:48]Read from MH i2c: E2 62 00 BE AF 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 08 95 01 00 0E 04 04 00 61 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 72 [14:21:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 08 95 01 00 0E 04 04 00 61 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 [14:21:48]wFMCommunicate OK [14:21:48]SAM_PROTO_GetFieldsCounters done [14:21:48]requested_item shift.num is exist - process it [14:21:48]requested_item shift.opened is exist - process it [14:21:48]req_shift_opened [14:21:48]FM_GetShiftState [14:21:48]SAM_PROTO_GetShiftState [14:21:48]wFMCommunicate request_size=4 [14:21:48]MH_SAM_APDU [14:21:48]CAPDU: 80 13 01 00 [14:21:48]Write to MH i2c: E2 08 00 BF AF 80 13 01 00 00 00 00 00 EB [14:21:48]Write i2c OK [14:21:48]MH_I2C_Read... [14:21:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:21:48]Read from MH i2c: E2 [14:21:48]MH_I2C_Read... [14:21:48]Read from MH i2c: E2 0E 00 [14:21:48]MH_I2C_Read... [14:21:48]Read from MH i2c: E2 0E 00 BF AF 00 09 00 01 04 26 72 66 00 00 00 00 90 00 F9 [14:21:48]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [14:21:48]wFMCommunicate OK [14:21:48]SAM_PROTO_GetShiftState done [14:21:48]FM_GetShiftState done [14:21:48]req_shift_opened done [14:21:48]requested_item shift.open_date is exist - process it [14:21:48]req_shift_open_date [14:21:48]req_shift_open_date done [14:21:48]produce_requested_data done [14:21:48]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103688,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [14:21:48]process_action_free close_receipt [14:21:48]json_value_free [14:21:48]json_value_free done [14:21:48]process_json_proto returns [14:21:48]Send response to host [14:21:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103688,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [14:21:48]free response buf [14:21:48]execute_script done [14:21:48]execute_script returns [14:21:48]free content buf [14:21:48]Sock 7.Close socket [14:21:48]Sock 7.Thread stoped [14:21:51]OFD Sender: No OFD packet to send [14:21:56]OFD Sender: No OFD packet to send [14:22:02]OFD Sender: No OFD packet to send [14:22:07]OFD Sender: No OFD packet to send [14:22:12]OFD Sender: No OFD packet to send [14:22:17]OFD Sender: No OFD packet to send [14:22:22]OFD Sender: No OFD packet to send [14:22:27]OFD Sender: No OFD packet to send [14:22:32]OFD Sender: No OFD packet to send [14:22:37]OFD Sender: No OFD packet to send [14:22:42]OFD Sender: No OFD packet to send [14:22:47]OFD Sender: No OFD packet to send [14:22:52]OFD Sender: No OFD packet to send [14:22:57]OFD Sender: No OFD packet to send [14:23:02]OFD Sender: No OFD packet to send [14:23:07]OFD Sender: No OFD packet to send [14:23:12]OFD Sender: No OFD packet to send [14:23:13]accept exits with 10 [14:23:13]New connection [14:23:13]New thread 3067227492 created [14:23:13]Thread 3067084132 joined [14:23:13]Waiting for new connection... [14:23:13] Sock 10.Parse request [14:23:13]Sock 10.Check first char [14:23:13]Sock 10.First char is OK [14:23:13]request: POST /json_proto HTTP/1.0 [14:23:13]Method: POST [14:23:13]URL: /json_proto [14:23:13]Method is POST - this is cgi request [14:23:13]url: /json_proto [14:23:13]query_string will be loaded in cgi processing [14:23:13]execute_cgi json_proto POST (null) [14:23:13]execute_cgi path=json_proto method=POST [14:23:13]POST find Content-Length [14:23:13]Host: 172.17.38.133:8080 [14:23:13]Content-Length: 678 [14:23:13]Content-Type: application/json [14:23:13] [14:23:13]POST finish read [14:23:13]Found Content-Length = 678 [14:23:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672950", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 10.550, "sum" : 700.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:23:13]execute_script... [14:23:13]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672950", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 10.550, "sum" : 700.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:23:13]POST & json_proto [14:23:13]process_json_proto [14:23:13]json parsed OK: [14:23:13]protocol is kg_v1.0 [14:23:13]action value=close_receipt [14:23:13]process_action close_receipt [14:23:13]cmd_close_receipt [14:23:13]MH_GetDate [14:23:13]Write to MH i2c: F0 00 00 C0 AF 5E [14:23:13]Write i2c OK [14:23:13]MH_I2C_Read... [14:23:13]Read from MH i2c: F0 [14:23:13]MH_I2C_Read... [14:23:13]Read from MH i2c: F0 09 00 [14:23:13]MH_I2C_Read... [14:23:13]Read from MH i2c: F0 09 00 C0 AF 00 DE E9 72 66 BD 8F 7C 64 32 [14:23:13]GetLastDocTimeStamp 1718806916 [14:23:13]current date 1718807006 [14:23:13]FM_GetShiftState [14:23:13]SAM_PROTO_GetShiftState [14:23:13]wFMCommunicate request_size=4 [14:23:13]MH_SAM_APDU [14:23:13]CAPDU: 80 13 01 00 [14:23:13]Write to MH i2c: E2 08 00 C1 AF 80 13 01 00 00 00 00 00 ED [14:23:13]Write i2c OK [14:23:13]MH_I2C_Read... [14:23:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:23:13]Read from MH i2c: E2 [14:23:13]MH_I2C_Read... [14:23:13]Read from MH i2c: E2 0E 00 [14:23:13]MH_I2C_Read... [14:23:13]Read from MH i2c: E2 0E 00 C1 AF 00 09 00 01 04 26 72 66 00 00 00 00 90 00 FB [14:23:13]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [14:23:13]wFMCommunicate OK [14:23:13]SAM_PROTO_GetShiftState done [14:23:13]FM_GetShiftState done [14:23:13]opened in 1718756868 [14:23:13]opened+sec_in_day 1718843268 [14:23:13]quantity*price = 70052 [14:23:13]sum+1 = 70053 [14:23:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.52 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.39 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 119 19.06.2024 14:23 Смена: 353 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103689 ФПД: 75468696785460 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T142326&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103689&fm=75468696785460&tin=02508201610067®Number=0000000000092785&sum=70000 [14:23:14]StoreToDocumentArchive [14:23:14]shift 353 fd 103689 [14:23:14]save to /storage/0353/doc_00103689 [14:23:14]save last doc name /storage/0353/doc_00103689 to /storage/kkm_last_doc_name [14:23:14]save OK [14:23:14]Clear old archive folders... [14:23:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:23:14]tlvbuf is 015E1740 [14:23:14]SAM_PROTO_ClearQueue [14:23:14]wFMCommunicate request_size=4 [14:23:14]MH_SAM_APDU [14:23:14]CAPDU: 80 09 00 00 [14:23:14]Write to MH i2c: E2 08 00 CE AF 80 09 00 00 00 00 00 00 EF [14:23:14]Write i2c OK [14:23:14]MH_I2C_Read... [14:23:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:23:14]Read from MH i2c: E2 [14:23:14]MH_I2C_Read... [14:23:14]Read from MH i2c: E2 03 00 [14:23:14]MH_I2C_Read... [14:23:14]Read from MH i2c: E2 03 00 CE AF 00 90 00 F1 [14:23:14]RAPDU: 90 00 [14:23:14]wFMCommunicate OK [14:23:14]SAM_PROTO_ClearQueue done [14:23:14]KKMCreateOFDPacket [14:23:14]OFDProtocolAddRootSTLVToBuf [14:23:14]FM_MakeSignedData [14:23:14]FM_MakeSignedData [14:23:14]SAM_PROTO_SignData [14:23:14]wFMCommunicate request_size=4 [14:23:14]MH_SAM_APDU [14:23:14]CAPDU: 80 0D 01 02 [14:23:14]Write to MH i2c: E2 08 00 CF AF 80 0D 01 02 00 00 00 00 F7 [14:23:14]Write i2c OK [14:23:14]MH_I2C_Read... [14:23:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:23:14]Read from MH i2c: E2 [14:23:14]MH_I2C_Read... [14:23:14]Read from MH i2c: E2 03 00 [14:23:14]MH_I2C_Read... [14:23:14]Read from MH i2c: E2 03 00 CF AF 00 90 00 F2 [14:23:14]RAPDU: 90 00 [14:23:14]wFMCommunicate OK [14:23:14]wFMCommunicate request_size=255 [14:23:14]MH_SAM_APDU [14:23: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 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 DE E9 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 09 95 01 00 35 04 06 00 44 [14:23:14]Write to MH i2c: E2 02 01 D0 AF 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 DE E9 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 09 95 01 00 35 04 06 00 44 00 00 1E [14:23:15]Write i2c OK [14:23:15]MH_I2C_Read... [14:23:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:23:15]Read from MH i2c: E2 [14:23:15]MH_I2C_Read... [14:23:15]Read from MH i2c: E2 03 00 [14:23:15]MH_I2C_Read... [14:23:15]Read from MH i2c: E2 03 00 D0 AF 00 90 00 F3 [14:23:15]RAPDU: 90 00 [14:23:15]wFMCommunicate OK [14:23:15]wFMCommunicate request_size=10 [14:23:15]MH_SAM_APDU [14:23:15]CAPDU: 80 0D 02 02 05 A3 6C DD 12 34 [14:23:15]Write to MH i2c: E2 0D 00 D1 AF 80 0D 02 02 05 00 A3 6C DD 12 34 00 00 36 [14:23:15]Write i2c OK [14:23:15]MH_I2C_Read... [14:23:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:23:15]Read from MH i2c: E2 [14:23:15]MH_I2C_Read... [14:23:15]Read from MH i2c: E2 03 00 [14:23:15]MH_I2C_Read... [14:23:15]Read from MH i2c: E2 03 00 D1 AF 00 90 00 F4 [14:23:15]RAPDU: 90 00 [14:23:15]wFMCommunicate OK [14:23:15]wFMCommunicate request_size=4 [14:23:15]MH_SAM_APDU [14:23:15]CAPDU: 80 0D 03 02 [14:23:15]Write to MH i2c: E2 08 00 D2 AF 80 0D 03 02 00 00 00 00 FC [14:23:15]Write i2c OK [14:23:15]MH_I2C_Read... [14:23:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:23:15]Read from MH i2c: E2 [14:23:15]MH_I2C_Read... [14:23:15]Read from MH i2c: E2 0B 00 [14:23:15]MH_I2C_Read... [14:23:15]Read from MH i2c: E2 0B 00 D2 AF 00 73 81 05 3E 8E 47 6C 5A 90 00 CF [14:23:15]RAPDU: 73 81 05 3E 8E 47 6C 5A 90 00 [14:23:15]wFMCommunicate OK [14:23:15]SAM_PROTO_SignData done [14:23:15]FM_MakeSignedData done [14:23:15]CreateOFDProtocolMessage [14:23:15]wFMCommunicate request_size=4 [14:23:15]MH_SAM_APDU [14:23:15]CAPDU: 80 11 00 00 [14:23:15]Write to MH i2c: E2 08 00 D3 AF 80 11 00 00 00 00 00 00 FC [14:23:15]Write i2c OK [14:23:15]MH_I2C_Read... [14:23:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:23:15]Read from MH i2c: E2 [14:23:15]MH_I2C_Read... [14:23:15]Read from MH i2c: E2 17 00 [14:23:15]MH_I2C_Read... [14:23:15]Read from MH i2c: E2 17 00 D3 AF 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 4F [14:23:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [14:23:15]wFMCommunicate OK [14:23:15]CreateOFDProtocolMessage done [14:23:15]OFDSenderStorePacket 103689 [14:23:15]StoreOFDPacket docnum=103689 [14:23:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 45 BF 07 01 0E 63 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 DE E9 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 09 95 01 00 35 04 06 00 44 A3 6C DD 12 34 73 81 05 3E 8E 47 6C 5A [14:23:15]CheckFolder [14:23:15]dirname=/storage/ofd_packets [14:23:15]CheckFolder done [14:23:15]ProducePacketName [14:23:15]name=ofd_packets/00103689 [14:23:15]NVStorageSaveData ofd_packets/00103689 [14:23:15]File name is /storage/ofd_packets/00103689 [14:23:15]Write 301 bytes [14:23:15]NVStorageSaveData done [14:23:15]OFDSenderStorePacket done [14:23:15]KKMCreateOFDPacket done [14:23:15]NVStorageSaveData kkm_last_timestamp [14:23:15]File name is /storage/kkm_last_timestamp [14:23:15]Write 4 bytes [14:23:15]NVStorageSaveData done [14:23:15]ExternCall_PrintAddStr [14:23:15]wPrintStart [14:23:15]Write to MH i2c: 01 00 00 D4 AF 83 [14:23:15]Write i2c OK [14:23:15]MH_I2C_Read... [14:23:15]Read from MH i2c: 01 [14:23:15]MH_I2C_Read... [14:23:15]Read from MH i2c: 01 07 00 [14:23:15]MH_I2C_Read... [14:23:15]Read from MH i2c: 01 07 00 D4 AF 00 00 00 00 00 FF 0F 98 [14:23:15]RasterBufferAndPrint [14:23:15]line Счет N : (1)672950 [14:23:15]line ИНН: 02508201610067 [14:23:15]line Контрольно-Кассовый Чек [14:23:15]line ПРОДАЖА [14:23:15]line ТРК (МРК, ГНК) : 32 [14:23:15]line Товар: 2710124130 [14:23:15]line Аи-92-К-5 [14:23:15]line 10.550 * 66.40 [14:23:15]line = 700.52 [14:23:15]line НДС 12% НСП 1% [14:23:15]line > о реализуемом товаре [14:23:15]line ОКРУГЛЕНИЕ: -0.52 [14:23:15]line ИТОГО: 700.00 [14:23:15]line Внесено: 700.00 [14:23:15]line СДАЧА: 0.00 [14:23:15]line НСП 1% : 6.20 [14:23:15]line НДС 12% : 74.39 [14:23:15]line Наличными: 700.00 [14:23:15]line Безнал.: 0.00 [14:23:15]line Место: АЗС № 120 "Партнер Нефть" [14:23:15]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [14:23:15]line СНО: Общий режим [14:23:15]line Чек 119 19.06.2024 14:23 [14:23:15]line Смена: 353 ФФД: 1.0 [14:23:15]line ЗНМ: 0300000164 [14:23:15]line РНМ: 0000000000092785 [14:23:15]line Версия ККМ: 001 [14:23:15]line ФМ: 0000000000875093 [14:23:15]line ФД: 103689 [14:23:15]line ФПД: 75468696785460 [14:23:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T142326&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103689&fm=75468696785460&tin=02508201610067®Number=0000000000092785&sum=70000 [14:23:15]written 0, free lines is 4095 [14:23:15]OFD Sender: Processing packet 103689 [packets to send 17, broken 16] [14:23:15]ProducePacketName [14:23:15]name=ofd_packets/00103689 [14:23:15]OFD Sender: To server: pG, [14:23:15]CommunicateWithHost lk.salyk.kg:30040 [14:23:15]ConnectInit lk.salyk.kg [14:23:15]Connected sock=9 [14:23:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 45 BF 07 01 0E 63 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 DE E9 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 09 95 01 00 35 04 06 00 44 A3 6C DD 12 34 73 81 05 3E 8E 47 6C 5A [14:23:15]Write to MH i2c: 01 00 00 FF AF AE [14:23: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 39 33 4F 00 00 00 84 35 47 00 0A 0D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 09 95 01 00 F4 03 04 00 66 90 72 66 B6 04 01 00 00 28 C3 2C 63 6E 3D D7 1F [14:23:15]CommunicateWithHost err = 0 [14:23:15]CheckOFDResponse [14:23:15]1017 (14) - 77093643461234 [14:23:15]1041 (16) - 0000000000875093 [14:23:15]1040 (4) - 103689 [14:23:15]1012 (4) - 19.06.2024 08:01 [14:23:15]1206 (1) - 0 [14:23:15]OFD Sender: Remove packet 103689 [14:23:15]ProducePacketName [14:23:15]name=ofd_packets/00103689 [14:23:15]NVStorageDeleteData [14:23:15]Write i2c OK [14:23:15]MH_I2C_Read... [14:23:15]Read from MH i2c: 01 [14:23:15]MH_I2C_Read... [14:23:15]Read from MH i2c: 01 07 00 [14:23:15]MH_I2C_Read... [14:23:15]Read from MH i2c: 01 07 00 FF AF 00 00 00 00 00 EC 0C AD [14:23:15]RasterBufferAndPrint [14:23:15]line [14:23:15]line [14:23:15]line [14:23:15]line [14:23:15]line [14:23:15]written 0, free lines is 3320 [14:23:15]MH_Cut [14:23:15]Write to MH i2c: D1 01 00 06 B0 01 88 [14:23:15]Write i2c OK [14:23:15]MH_I2C_Read... [14:23:15]Read from MH i2c: D1 [14:23:15]MH_I2C_Read... [14:23:15]Read from MH i2c: D1 01 00 [14:23:15]MH_I2C_Read... [14:23:15]Read from MH i2c: D1 01 00 06 B0 00 87 [14:23:15]Write to MH i2c: 01 00 00 07 B0 B7 [14:23:15]Write i2c OK [14:23:15]MH_I2C_Read... [14:23:16]OFD Sender: No OFD packet to send [14:23:16]*** Cut start [14:23:16]*** Partial cut [14:23:16]*** CUTSNS_PIN = 1 [14:23:16]*** CUTSNS_PIN = 0 [14:23:16]*** Brake cut motor [14:23:17]Read from MH i2c: 01 [14:23:17]MH_I2C_Read... [14:23:17]*** Stop cut motor [14:23:17]*** Cut end [14:23:17]Read from MH i2c: 01 07 00 [14:23:17]MH_I2C_Read... [14:23:17]Read from MH i2c: 01 07 00 07 B0 00 00 00 00 00 FF 0F CC [14:23:17]process_action close_receipt done [14:23:17]requested_data is exist [14:23:17]produce_requested_data [14:23:17]requested_item fm.sn is exist - process it [14:23:17]wFMCommunicate request_size=4 [14:23:17]MH_SAM_APDU [14:23:17]CAPDU: 80 11 00 00 [14:23:17]Write to MH i2c: E2 08 00 08 B0 80 11 00 00 00 00 00 00 32 [14:23:17]Write i2c OK [14:23:17]MH_I2C_Read... [14:23:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:23:17]Read from MH i2c: E2 [14:23:17]MH_I2C_Read... [14:23:17]Read from MH i2c: E2 17 00 [14:23:17]MH_I2C_Read... [14:23:17]Read from MH i2c: E2 17 00 08 B0 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 85 [14:23:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [14:23:17]wFMCommunicate OK [14:23:17]requested_item fd.num is exist - process it [14:23:17]SAM_PROTO_GetFieldsCounters [14:23:17]wFMCommunicate request_size=4 [14:23:17]MH_SAM_APDU [14:23:17]CAPDU: 80 13 00 00 [14:23:17]Write to MH i2c: E2 08 00 09 B0 80 13 00 00 00 00 00 00 35 [14:23:17]Write i2c OK [14:23:17]MH_I2C_Read... [14:23:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:23:17]Read from MH i2c: E2 [14:23:17]MH_I2C_Read... [14:23:17]Read from MH i2c: E2 62 00 [14:23:17]MH_I2C_Read... [14:23:17]Read from MH i2c: E2 62 00 09 B0 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 09 95 01 00 0E 04 04 00 61 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 C2 [14:23: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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 09 95 01 00 0E 04 04 00 61 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 [14:23:17]wFMCommunicate OK [14:23:17]SAM_PROTO_GetFieldsCounters done [14:23:17]requested_item shift.num is exist - process it [14:23:17]requested_item shift.opened is exist - process it [14:23:17]req_shift_opened [14:23:17]FM_GetShiftState [14:23:17]SAM_PROTO_GetShiftState [14:23:17]wFMCommunicate request_size=4 [14:23:17]MH_SAM_APDU [14:23:17]CAPDU: 80 13 01 00 [14:23:17]Write to MH i2c: E2 08 00 0A B0 80 13 01 00 00 00 00 00 37 [14:23:17]Write i2c OK [14:23:17]MH_I2C_Read... [14:23:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:23:17]Read from MH i2c: E2 [14:23:17]MH_I2C_Read... [14:23:17]Read from MH i2c: E2 0E 00 [14:23:17]MH_I2C_Read... [14:23:17]Read from MH i2c: E2 0E 00 0A B0 00 09 00 01 04 26 72 66 00 00 00 00 90 00 45 [14:23:17]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [14:23:17]wFMCommunicate OK [14:23:17]SAM_PROTO_GetShiftState done [14:23:17]FM_GetShiftState done [14:23:17]req_shift_opened done [14:23:17]requested_item shift.open_date is exist - process it [14:23:17]req_shift_open_date [14:23:17]req_shift_open_date done [14:23:17]produce_requested_data done [14:23:17]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103689,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [14:23:17]process_action_free close_receipt [14:23:17]json_value_free [14:23:17]json_value_free done [14:23:17]process_json_proto returns [14:23:17]Send response to host [14:23:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103689,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [14:23:17]free response buf [14:23:17]execute_script done [14:23:17]execute_script returns [14:23:17]free content buf [14:23:17]Sock 10.Close socket [14:23:17]Sock 10.Thread stoped [14:23:21]OFD Sender: No OFD packet to send [14:23:26]OFD Sender: No OFD packet to send [14:23:31]OFD Sender: No OFD packet to send [14:23:36]OFD Sender: No OFD packet to send [14:23:41]OFD Sender: No OFD packet to send [14:23:46]OFD Sender: No OFD packet to send [14:23:51]OFD Sender: No OFD packet to send [14:23:56]OFD Sender: No OFD packet to send [14:24:01]OFD Sender: No OFD packet to send [14:24:06]OFD Sender: No OFD packet to send [14:24:11]OFD Sender: No OFD packet to send [14:24:16]OFD Sender: No OFD packet to send [14:24:21]OFD Sender: No OFD packet to send [14:24:26]OFD Sender: No OFD packet to send [14:24:31]OFD Sender: No OFD packet to send [14:24:36]OFD Sender: No OFD packet to send [14:24:41]OFD Sender: No OFD packet to send [14:24:46]OFD Sender: No OFD packet to send [14:24:51]OFD Sender: No OFD packet to send [14:24:56]OFD Sender: No OFD packet to send [14:25:01]OFD Sender: No OFD packet to send [14:25:06]OFD Sender: No OFD packet to send [14:25:11]OFD Sender: No OFD packet to send [14:25:16]OFD Sender: No OFD packet to send [14:25:21]OFD Sender: No OFD packet to send [14:25:26]OFD Sender: No OFD packet to send [14:25:31]OFD Sender: No OFD packet to send [14:25:36]OFD Sender: No OFD packet to send [14:25:41]OFD Sender: No OFD packet to send [14:25:46]OFD Sender: No OFD packet to send [14:25:51]OFD Sender: No OFD packet to send [14:25:56]OFD Sender: No OFD packet to send [14:26:01]OFD Sender: No OFD packet to send [14:26:06]OFD Sender: No OFD packet to send [14:26:11]OFD Sender: No OFD packet to send [14:26:16]OFD Sender: No OFD packet to send [14:26:21]OFD Sender: No OFD packet to send [14:26:26]OFD Sender: No OFD packet to send [14:26:31]OFD Sender: No OFD packet to send [14:26:36]OFD Sender: No OFD packet to send [14:26:41]OFD Sender: No OFD packet to send [14:26:46]OFD Sender: No OFD packet to send [14:26:51]OFD Sender: No OFD packet to send [14:26:56]OFD Sender: No OFD packet to send [14:27:01]OFD Sender: No OFD packet to send [14:27:06]OFD Sender: No OFD packet to send [14:27:11]OFD Sender: No OFD packet to send [14:27:16]OFD Sender: No OFD packet to send [14:27:21]OFD Sender: No OFD packet to send [14:27:26]OFD Sender: No OFD packet to send [14:27:31]OFD Sender: No OFD packet to send [14:27:36]OFD Sender: No OFD packet to send [14:27:41]OFD Sender: No OFD packet to send [14:27:46]OFD Sender: No OFD packet to send [14:27:51]OFD Sender: No OFD packet to send [14:27:56]OFD Sender: No OFD packet to send [14:28:01]OFD Sender: No OFD packet to send [14:28:06]OFD Sender: No OFD packet to send [14:28:11]OFD Sender: No OFD packet to send [14:28:16]OFD Sender: No OFD packet to send [14:28:17]accept exits with 7 [14:28:17]New connection [14:28:17]New thread 3067084132 created [14:28:17]Thread 3067227492 joined [14:28:17]Waiting for new connection... [14:28:17] Sock 7.Parse request [14:28:17]Sock 7.Check first char [14:28:17]Sock 7.First char is OK [14:28:17]request: POST /json_proto HTTP/1.0 [14:28:17]Method: POST [14:28:17]URL: /json_proto [14:28:17]Method is POST - this is cgi request [14:28:17]url: /json_proto [14:28:17]query_string will be loaded in cgi processing [14:28:17]execute_cgi json_proto POST (null) [14:28:17]execute_cgi path=json_proto method=POST [14:28:17]POST find Content-Length [14:28:17]Host: 172.17.38.133:8080 [14:28:17]Content-Length: 682 [14:28:17]Content-Type: application/json [14:28:17] [14:28:17]POST finish read [14:28:17]Found Content-Length = 682 [14:28:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672952", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 39.110, "sum" : 2890.23, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2890.00, "total" : 2890.00, "payments": [ { "type": 0, "sum" : 2890.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:28:17]execute_script... [14:28: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)672952", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 39.110, "sum" : 2890.23, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2890.00, "total" : 2890.00, "payments": [ { "type": 0, "sum" : 2890.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:28:17]POST & json_proto [14:28:17]process_json_proto [14:28:17]json parsed OK: [14:28:17]protocol is kg_v1.0 [14:28:17]action value=close_receipt [14:28:17]process_action close_receipt [14:28:17]cmd_close_receipt [14:28:17]MH_GetDate [14:28:17]Write to MH i2c: F0 00 00 0B B0 AA [14:28:17]Write i2c OK [14:28:17]MH_I2C_Read... [14:28:17]Read from MH i2c: F0 [14:28:17]MH_I2C_Read... [14:28:17]Read from MH i2c: F0 09 00 [14:28:17]MH_I2C_Read... [14:28:17]Read from MH i2c: F0 09 00 0B B0 00 0E EB 72 66 BD 8F 7C 64 B0 [14:28:17]GetLastDocTimeStamp 1718807006 [14:28:17]current date 1718807310 [14:28:17]FM_GetShiftState [14:28:17]SAM_PROTO_GetShiftState [14:28:17]wFMCommunicate request_size=4 [14:28:17]MH_SAM_APDU [14:28:17]CAPDU: 80 13 01 00 [14:28:17]Write to MH i2c: E2 08 00 0C B0 80 13 01 00 00 00 00 00 39 [14:28:17]Write i2c OK [14:28:17]MH_I2C_Read... [14:28:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:28:17]Read from MH i2c: E2 [14:28:17]MH_I2C_Read... [14:28:17]Read from MH i2c: E2 0E 00 [14:28:17]MH_I2C_Read... [14:28:17]Read from MH i2c: E2 0E 00 0C B0 00 09 00 01 04 26 72 66 00 00 00 00 90 00 47 [14:28:17]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [14:28:17]wFMCommunicate OK [14:28:17]SAM_PROTO_GetShiftState done [14:28:17]FM_GetShiftState done [14:28:17]opened in 1718756868 [14:28:17]opened+sec_in_day 1718843268 [14:28:17]quantity*price = 289022 [14:28:17]sum+1 = 289024 [14:28:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.23 ИТОГО: 2890.00 Внесено: 2890.00 СДАЧА: 0.00 НСП 1% : 25.58 НДС 12% : 306.93 Наличными: 2890.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 120 19.06.2024 14:28 Смена: 353 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103690 ФПД: 198043567276835 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T142830&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103690&fm=198043567276835&tin=02508201610067®Number=0000000000092785&sum=289000 [14:28:18]StoreToDocumentArchive [14:28:18]shift 353 fd 103690 [14:28:18]save to /storage/0353/doc_00103690 [14:28:18]save last doc name /storage/0353/doc_00103690 to /storage/kkm_last_doc_name [14:28:18]save OK [14:28:18]Clear old archive folders... [14:28:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:28:18]tlvbuf is 0135E720 [14:28:18]SAM_PROTO_ClearQueue [14:28:18]wFMCommunicate request_size=4 [14:28:18]MH_SAM_APDU [14:28:18]CAPDU: 80 09 00 00 [14:28:18]Write to MH i2c: E2 08 00 19 B0 80 09 00 00 00 00 00 00 3B [14:28:18]Write i2c OK [14:28:18]MH_I2C_Read... [14:28:18]Read from MH i2c: E2 [14:28:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:28:18]MH_I2C_Read... [14:28:18]Read from MH i2c: E2 03 00 [14:28:18]MH_I2C_Read... [14:28:18]Read from MH i2c: E2 03 00 19 B0 00 90 00 3D [14:28:18]RAPDU: 90 00 [14:28:18]wFMCommunicate OK [14:28:18]SAM_PROTO_ClearQueue done [14:28:18]KKMCreateOFDPacket [14:28:18]OFDProtocolAddRootSTLVToBuf [14:28:18]FM_MakeSignedData [14:28:18]FM_MakeSignedData [14:28:18]SAM_PROTO_SignData [14:28:18]wFMCommunicate request_size=4 [14:28:18]MH_SAM_APDU [14:28:18]CAPDU: 80 0D 01 02 [14:28:18]Write to MH i2c: E2 08 00 1A B0 80 0D 01 02 00 00 00 00 43 [14:28:18]Write i2c OK [14:28:18]MH_I2C_Read... [14:28:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:28:19]Read from MH i2c: E2 [14:28:19]MH_I2C_Read... [14:28:19]Read from MH i2c: E2 03 00 [14:28:19]MH_I2C_Read... [14:28:19]Read from MH i2c: E2 03 00 1A B0 00 90 00 3E [14:28:19]RAPDU: 90 00 [14:28:19]wFMCommunicate OK [14:28:19]wFMCommunicate request_size=255 [14:28:19]MH_SAM_APDU [14:28: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 C6 98 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 FF 68 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 68 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FE 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 77 00 00 00 00 07 04 06 00 E8 68 04 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 0E EB 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 0A 95 01 00 35 04 06 00 B4 [14:28:19]Write to MH i2c: E2 02 01 1B B0 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 C6 98 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 FF 68 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 68 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FE 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 77 00 00 00 00 07 04 06 00 E8 68 04 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 0E EB 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 0A 95 01 00 35 04 06 00 B4 00 00 24 [14:28:19]Write i2c OK [14:28:19]MH_I2C_Read... [14:28:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:28:19]Read from MH i2c: E2 [14:28:19]MH_I2C_Read... [14:28:19]Read from MH i2c: E2 03 00 [14:28:19]MH_I2C_Read... [14:28:19]Read from MH i2c: E2 03 00 1B B0 00 90 00 3F [14:28:19]RAPDU: 90 00 [14:28:19]wFMCommunicate OK [14:28:19]wFMCommunicate request_size=10 [14:28:19]MH_SAM_APDU [14:28:19]CAPDU: 80 0D 02 02 05 1E 9C 7A 43 23 [14:28:19]Write to MH i2c: E2 0D 00 1C B0 80 0D 02 02 05 00 1E 9C 7A 43 23 00 00 EA [14:28:19]Write i2c OK [14:28:19]MH_I2C_Read... [14:28:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:28:19]Read from MH i2c: E2 [14:28:19]MH_I2C_Read... [14:28:19]Read from MH i2c: E2 03 00 [14:28:19]MH_I2C_Read... [14:28:19]Read from MH i2c: E2 03 00 1C B0 00 90 00 40 [14:28:19]RAPDU: 90 00 [14:28:19]wFMCommunicate OK [14:28:19]wFMCommunicate request_size=4 [14:28:19]MH_SAM_APDU [14:28:19]CAPDU: 80 0D 03 02 [14:28:19]Write to MH i2c: E2 08 00 1D B0 80 0D 03 02 00 00 00 00 48 [14:28:19]Write i2c OK [14:28:19]MH_I2C_Read... [14:28:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:28:19]Read from MH i2c: E2 [14:28:19]MH_I2C_Read... [14:28:19]Read from MH i2c: E2 0B 00 [14:28:19]MH_I2C_Read... [14:28:19]Read from MH i2c: E2 0B 00 1D B0 00 D3 7A F2 81 D7 1C FE 6B 90 00 65 [14:28:19]RAPDU: D3 7A F2 81 D7 1C FE 6B 90 00 [14:28:19]wFMCommunicate OK [14:28:19]SAM_PROTO_SignData done [14:28:19]FM_MakeSignedData done [14:28:19]CreateOFDProtocolMessage [14:28:19]wFMCommunicate request_size=4 [14:28:19]MH_SAM_APDU [14:28:19]CAPDU: 80 11 00 00 [14:28:19]Write to MH i2c: E2 08 00 1E B0 80 11 00 00 00 00 00 00 48 [14:28:19]Write i2c OK [14:28:19]MH_I2C_Read... [14:28:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:28:19]Read from MH i2c: E2 [14:28:19]MH_I2C_Read... [14:28:19]Read from MH i2c: E2 17 00 [14:28:19]MH_I2C_Read... [14:28:19]Read from MH i2c: E2 17 00 1E B0 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 9B [14:28:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [14:28:19]wFMCommunicate OK [14:28:19]CreateOFDProtocolMessage done [14:28:19]OFDSenderStorePacket 103690 [14:28:19]StoreOFDPacket docnum=103690 [14:28:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 C1 0E 07 01 9C E2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 C6 98 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 FF 68 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 68 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FE 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 77 00 00 00 00 07 04 06 00 E8 68 04 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 0E EB 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 0A 95 01 00 35 04 06 00 B4 1E 9C 7A 43 23 D3 7A F2 81 D7 1C FE 6B [14:28:19]CheckFolder [14:28:19]dirname=/storage/ofd_packets [14:28:19]CheckFolder done [14:28:19]ProducePacketName [14:28:19]name=ofd_packets/00103690 [14:28:19]NVStorageSaveData ofd_packets/00103690 [14:28:19]File name is /storage/ofd_packets/00103690 [14:28:19]Write 301 bytes [14:28:19]NVStorageSaveData done [14:28:19]OFDSenderStorePacket done [14:28:19]KKMCreateOFDPacket done [14:28:19]NVStorageSaveData kkm_last_timestamp [14:28:19]File name is /storage/kkm_last_timestamp [14:28:19]Write 4 bytes [14:28:19]NVStorageSaveData done [14:28:19]ExternCall_PrintAddStr [14:28:19]wPrintStart [14:28:19]Write to MH i2c: 01 00 00 1F B0 CF [14:28:19]Write i2c OK [14:28:19]MH_I2C_Read... [14:28:19]Read from MH i2c: 01 [14:28:19]MH_I2C_Read... [14:28:19]Read from MH i2c: 01 07 00 [14:28:19]MH_I2C_Read... [14:28:19]Read from MH i2c: 01 07 00 1F B0 00 00 00 00 00 FF 0F E4 [14:28:19]RasterBufferAndPrint [14:28:19]line Счет N : (1)672952 [14:28:19]line ИНН: 02508201610067 [14:28:19]line Контрольно-Кассовый Чек [14:28:19]line ПРОДАЖА [14:28:19]line ТРК (МРК, ГНК) : 31 [14:28:19]line Товар: 2710124500 [14:28:19]line Аи-95-К-5 [14:28:19]line 39.110 * 73.90 [14:28:19]line = 2890.23 [14:28:19]line НДС 12% НСП 1% [14:28:19]line > о реализуемом товаре [14:28:19]line ОКРУГЛЕНИЕ: -0.23 [14:28:19]line ИТОГО: 2890.00 [14:28:19]line Внесено: 2890.00 [14:28:19]line СДАЧА: 0.00 [14:28:19]line НСП 1% : 25.58 [14:28:19]line НДС 12% : 306.93 [14:28:19]line Наличными: 2890.00 [14:28:19]line Безнал.: 0.00 [14:28:19]line Место: АЗС № 120 "Партнер Нефть" [14:28:19]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [14:28:19]line СНО: Общий режим [14:28:19]line Чек 120 19.06.2024 14:28 [14:28:19]line Смена: 353 ФФД: 1.0 [14:28:19]line ЗНМ: 0300000164 [14:28:19]line РНМ: 0000000000092785 [14:28:19]line Версия ККМ: 001 [14:28:19]line ФМ: 0000000000875093 [14:28:19]line ФД: 103690 [14:28:19]line ФПД: 198043567276835 [14:28:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T142830&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103690&fm=198043567276835&tin=02508201610067®Number=0000000000092785&sum=289000 [14:28:19]OFD Sender: Processing packet 103690 [packets to send 17, broken 16] [14:28:19]ProducePacketName [14:28:19]name=ofd_packets/00103690 [14:28:19]OFD Sender: To server: pG, [14:28:19]CommunicateWithHost lk.salyk.kg:30040 [14:28:19]ConnectInit lk.salyk.kg [14:28:19]written 0, free lines is 4095 [14:28:20]Connected sock=11 [14:28: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 39 33 0F 01 00 00 C1 0E 07 01 9C E2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 C6 98 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 FF 68 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 68 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FE 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 77 00 00 00 00 07 04 06 00 E8 68 04 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 0E EB 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 0A 95 01 00 35 04 06 00 B4 1E 9C 7A 43 23 D3 7A F2 81 D7 1C FE 6B [14:28:20]Write to MH i2c: 01 00 00 4A B0 FA [14:28:20]Write i2c OK [14:28:20]MH_I2C_Read... [14:28:20]Read from MH i2c: 01 [14:28:20]MH_I2C_Read... [14:28:20]Read from MH i2c: 01 07 00 [14:28:20]MH_I2C_Read... [14:28:20]Read from MH i2c: 01 07 00 4A B0 00 00 00 00 00 EF 0C FC [14:28:20]RasterBufferAndPrint [14:28:20]line [14:28:20]line [14:28:20]line [14:28:20]line [14:28:20]line [14:28:20]written 0, free lines is 3317 [14:28:20]MH_Cut [14:28:20]Write to MH i2c: D1 01 00 51 B0 01 D3 [14:28:20]Write i2c OK [14:28:20]MH_I2C_Read... [14:28:20]Read from MH i2c: D1 [14:28:20]MH_I2C_Read... [14:28:20]Read from MH i2c: D1 01 00 [14:28:20]MH_I2C_Read... [14:28:20]Read from MH i2c: D1 01 00 51 B0 00 D2 [14:28:20]Write to MH i2c: 01 00 00 52 B0 02 [14:28:20]Write i2c OK [14:28:20]MH_I2C_Read... [14:28: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 39 33 4F 00 00 00 83 E3 47 00 38 9F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 0A 95 01 00 F4 03 04 00 97 91 72 66 B6 04 01 00 00 B0 7B 42 5C 79 BF E9 6F [14:28:20]CommunicateWithHost err = 0 [14:28:20]CheckOFDResponse [14:28:20]1017 (14) - 77093643461234 [14:28:20]1041 (16) - 0000000000875093 [14:28:20]1040 (4) - 103690 [14:28:20]1012 (4) - 19.06.2024 08:06 [14:28:20]1206 (1) - 0 [14:28:20]OFD Sender: Remove packet 103690 [14:28:20]ProducePacketName [14:28:20]name=ofd_packets/00103690 [14:28:20]NVStorageDeleteData [14:28:20]OFD Sender: No OFD packet to send [14:28:20]*** Cut start [14:28:20]*** Partial cut [14:28:20]*** CUTSNS_PIN = 1 [14:28:21]*** CUTSNS_PIN = 0 [14:28:21]*** Brake cut motor [14:28:21]Read from MH i2c: 01 [14:28:21]MH_I2C_Read... [14:28:21]*** Stop cut motor [14:28:21]*** Cut end [14:28:21]Read from MH i2c: 01 07 00 [14:28:21]MH_I2C_Read... [14:28:21]Read from MH i2c: 01 07 00 52 B0 00 00 00 00 00 FF 0F 17 [14:28:21]process_action close_receipt done [14:28:21]requested_data is exist [14:28:21]produce_requested_data [14:28:21]requested_item fm.sn is exist - process it [14:28:21]wFMCommunicate request_size=4 [14:28:21]MH_SAM_APDU [14:28:21]CAPDU: 80 11 00 00 [14:28:21]Write to MH i2c: E2 08 00 53 B0 80 11 00 00 00 00 00 00 7D [14:28:21]Write i2c OK [14:28:21]MH_I2C_Read... [14:28:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:28:21]Read from MH i2c: E2 [14:28:21]MH_I2C_Read... [14:28:21]Read from MH i2c: E2 17 00 [14:28:21]MH_I2C_Read... [14:28:21]Read from MH i2c: E2 17 00 53 B0 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 D0 [14:28:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [14:28:21]wFMCommunicate OK [14:28:21]requested_item fd.num is exist - process it [14:28:21]SAM_PROTO_GetFieldsCounters [14:28:21]wFMCommunicate request_size=4 [14:28:21]MH_SAM_APDU [14:28:21]CAPDU: 80 13 00 00 [14:28:21]Write to MH i2c: E2 08 00 54 B0 80 13 00 00 00 00 00 00 80 [14:28:21]Write i2c OK [14:28:21]MH_I2C_Read... [14:28:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:28:21]Read from MH i2c: E2 [14:28:21]MH_I2C_Read... [14:28:21]Read from MH i2c: E2 62 00 [14:28:21]MH_I2C_Read... [14:28:21]Read from MH i2c: E2 62 00 54 B0 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 0A 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 78 00 00 00 5E 04 04 00 78 00 00 00 57 04 04 00 79 00 00 00 19 04 04 00 00 00 00 00 90 00 11 [14:28: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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 0A 95 01 00 0E 04 04 00 61 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 [14:28:21]wFMCommunicate OK [14:28:21]SAM_PROTO_GetFieldsCounters done [14:28:21]requested_item shift.num is exist - process it [14:28:21]requested_item shift.opened is exist - process it [14:28:21]req_shift_opened [14:28:21]FM_GetShiftState [14:28:21]SAM_PROTO_GetShiftState [14:28:21]wFMCommunicate request_size=4 [14:28:21]MH_SAM_APDU [14:28:21]CAPDU: 80 13 01 00 [14:28:21]Write to MH i2c: E2 08 00 55 B0 80 13 01 00 00 00 00 00 82 [14:28:21]Write i2c OK [14:28:21]MH_I2C_Read... [14:28:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:28:21]Read from MH i2c: E2 [14:28:21]MH_I2C_Read... [14:28:21]Read from MH i2c: E2 0E 00 [14:28:21]MH_I2C_Read... [14:28:21]Read from MH i2c: E2 0E 00 55 B0 00 09 00 01 04 26 72 66 00 00 00 00 90 00 90 [14:28:21]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [14:28:21]wFMCommunicate OK [14:28:21]SAM_PROTO_GetShiftState done [14:28:21]FM_GetShiftState done [14:28:21]req_shift_opened done [14:28:21]requested_item shift.open_date is exist - process it [14:28:21]req_shift_open_date [14:28:21]req_shift_open_date done [14:28:21]produce_requested_data done [14:28:21]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103690,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [14:28:21]process_action_free close_receipt [14:28:21]json_value_free [14:28:21]json_value_free done [14:28:21]process_json_proto returns [14:28:21]Send response to host [14:28:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103690,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [14:28:21]free response buf [14:28:21]execute_script done [14:28:21]execute_script returns [14:28:21]free content buf [14:28:21]Sock 7.Close socket [14:28:21]Sock 7.Thread stoped [14:28:25]OFD Sender: No OFD packet to send [14:28:30]OFD Sender: No OFD packet to send [14:28:35]OFD Sender: No OFD packet to send [14:28:40]OFD Sender: No OFD packet to send [14:28:45]OFD Sender: No OFD packet to send [14:28:50]OFD Sender: No OFD packet to send [14:28:55]OFD Sender: No OFD packet to send [14:29:00]OFD Sender: No OFD packet to send [14:29:05]OFD Sender: No OFD packet to send [14:29:10]OFD Sender: No OFD packet to send [14:29:15]OFD Sender: No OFD packet to send [14:29:20]OFD Sender: No OFD packet to send [14:29:25]OFD Sender: No OFD packet to send [14:29:30]OFD Sender: No OFD packet to send [14:29:35]OFD Sender: No OFD packet to send [14:29:40]OFD Sender: No OFD packet to send [14:29:45]OFD Sender: No OFD packet to send [14:29:51]OFD Sender: No OFD packet to send [14:29:56]OFD Sender: No OFD packet to send [14:30:01]OFD Sender: No OFD packet to send [14:30:06]OFD Sender: No OFD packet to send [14:30:11]OFD Sender: No OFD packet to send [14:30:16]OFD Sender: No OFD packet to send [14:30:21]OFD Sender: No OFD packet to send [14:30:24]accept exits with 9 [14:30:24]New connection [14:30:24]New thread 3067227492 created [14:30:24]Thread 3067084132 joined [14:30:24]Waiting for new connection... [14:30:24] Sock 9.Parse request [14:30:24]Sock 9.Check first char [14:30:24]Sock 9.First char is OK [14:30:24]request: POST /json_proto HTTP/1.0 [14:30:24]Method: POST [14:30:24]URL: /json_proto [14:30:24]Method is POST - this is cgi request [14:30:24]url: /json_proto [14:30:24]query_string will be loaded in cgi processing [14:30:24]execute_cgi json_proto POST (null) [14:30:24]execute_cgi path=json_proto method=POST [14:30:24]POST find Content-Length [14:30:24]Host: 172.17.38.133:8080 [14:30:24]Content-Length: 678 [14:30:24]Content-Type: application/json [14:30:24] [14:30:24]POST finish read [14:30:24]Found Content-Length = 678 [14:30:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672953", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 10.550, "sum" : 700.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:30:24]execute_script... [14:30:24]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672953", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 10.550, "sum" : 700.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:30:24]POST & json_proto [14:30:24]process_json_proto [14:30:24]json parsed OK: [14:30:24]protocol is kg_v1.0 [14:30:24]action value=close_receipt [14:30:24]process_action close_receipt [14:30:24]cmd_close_receipt [14:30:24]MH_GetDate [14:30:24]Write to MH i2c: F0 00 00 56 B0 F5 [14:30:24]Write i2c OK [14:30:24]MH_I2C_Read... [14:30:24]Read from MH i2c: F0 [14:30:24]MH_I2C_Read... [14:30:24]Read from MH i2c: F0 09 00 [14:30:24]MH_I2C_Read... [14:30:24]Read from MH i2c: F0 09 00 56 B0 00 8C EB 72 66 BD 8F 7C 64 79 [14:30:24]GetLastDocTimeStamp 1718807310 [14:30:24]current date 1718807436 [14:30:24]FM_GetShiftState [14:30:24]SAM_PROTO_GetShiftState [14:30:24]wFMCommunicate request_size=4 [14:30:24]MH_SAM_APDU [14:30:24]CAPDU: 80 13 01 00 [14:30:24]Write to MH i2c: E2 08 00 57 B0 80 13 01 00 00 00 00 00 84 [14:30:24]Write i2c OK [14:30:24]MH_I2C_Read... [14:30:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:30:24]Read from MH i2c: E2 [14:30:24]MH_I2C_Read... [14:30:24]Read from MH i2c: E2 0E 00 [14:30:24]MH_I2C_Read... [14:30:24]Read from MH i2c: E2 0E 00 57 B0 00 09 00 01 04 26 72 66 00 00 00 00 90 00 92 [14:30:24]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [14:30:24]wFMCommunicate OK [14:30:24]SAM_PROTO_GetShiftState done [14:30:24]FM_GetShiftState done [14:30:24]opened in 1718756868 [14:30:24]opened+sec_in_day 1718843268 [14:30:24]quantity*price = 70052 [14:30:24]sum+1 = 70053 [14:30:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.52 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.39 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 121 19.06.2024 14:30 Смена: 353 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103691 ФПД: 70324002759465 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T143036&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103691&fm=70324002759465&tin=02508201610067®Number=0000000000092785&sum=70000 [14:30:25]StoreToDocumentArchive [14:30:25]shift 353 fd 103691 [14:30:25]save to /storage/0353/doc_00103691 [14:30:25]save last doc name /storage/0353/doc_00103691 to /storage/kkm_last_doc_name [14:30:25]save OK [14:30:25]Clear old archive folders... [14:30:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:30:25]tlvbuf is 01446670 [14:30:25]SAM_PROTO_ClearQueue [14:30:25]wFMCommunicate request_size=4 [14:30:25]MH_SAM_APDU [14:30:25]CAPDU: 80 09 00 00 [14:30:25]Write to MH i2c: E2 08 00 64 B0 80 09 00 00 00 00 00 00 86 [14:30:25]Write i2c OK [14:30:25]MH_I2C_Read... [14:30:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:30:25]Read from MH i2c: E2 [14:30:25]MH_I2C_Read... [14:30:25]Read from MH i2c: E2 03 00 [14:30:25]MH_I2C_Read... [14:30:25]Read from MH i2c: E2 03 00 64 B0 00 90 00 88 [14:30:25]RAPDU: 90 00 [14:30:25]wFMCommunicate OK [14:30:25]SAM_PROTO_ClearQueue done [14:30:25]KKMCreateOFDPacket [14:30:25]OFDProtocolAddRootSTLVToBuf [14:30:25]FM_MakeSignedData [14:30:25]FM_MakeSignedData [14:30:25]SAM_PROTO_SignData [14:30:25]wFMCommunicate request_size=4 [14:30:25]MH_SAM_APDU [14:30:25]CAPDU: 80 0D 01 02 [14:30:25]Write to MH i2c: E2 08 00 65 B0 80 0D 01 02 00 00 00 00 8E [14:30:25]Write i2c OK [14:30:25]MH_I2C_Read... [14:30:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:30:25]Read from MH i2c: E2 [14:30:25]MH_I2C_Read... [14:30:25]Read from MH i2c: E2 03 00 [14:30:25]MH_I2C_Read... [14:30:25]Read from MH i2c: E2 03 00 65 B0 00 90 00 89 [14:30:25]RAPDU: 90 00 [14:30:25]wFMCommunicate OK [14:30:25]wFMCommunicate request_size=255 [14:30:25]MH_SAM_APDU [14:30:25]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 8C EB 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 0B 95 01 00 35 04 06 00 3F [14:30:25]Write to MH i2c: E2 02 01 66 B0 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 8C EB 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 0B 95 01 00 35 04 06 00 3F 00 00 64 [14:30:25]Write i2c OK [14:30:25]MH_I2C_Read... [14:30:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:30:25]Read from MH i2c: E2 [14:30:25]MH_I2C_Read... [14:30:25]Read from MH i2c: E2 03 00 [14:30:25]MH_I2C_Read... [14:30:25]Read from MH i2c: E2 03 00 66 B0 00 90 00 8A [14:30:25]RAPDU: 90 00 [14:30:25]wFMCommunicate OK [14:30:25]wFMCommunicate request_size=10 [14:30:25]MH_SAM_APDU [14:30:25]CAPDU: 80 0D 02 02 05 F5 95 34 23 29 [14:30:25]Write to MH i2c: E2 0D 00 67 B0 80 0D 02 02 05 00 F5 95 34 23 29 00 00 A5 [14:30:25]Write i2c OK [14:30:25]MH_I2C_Read... [14:30:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:30:25]Read from MH i2c: E2 [14:30:25]MH_I2C_Read... [14:30:25]Read from MH i2c: E2 03 00 [14:30:25]MH_I2C_Read... [14:30:25]Read from MH i2c: E2 03 00 67 B0 00 90 00 8B [14:30:25]RAPDU: 90 00 [14:30:25]wFMCommunicate OK [14:30:25]wFMCommunicate request_size=4 [14:30:25]MH_SAM_APDU [14:30:25]CAPDU: 80 0D 03 02 [14:30:25]Write to MH i2c: E2 08 00 68 B0 80 0D 03 02 00 00 00 00 93 [14:30:25]Write i2c OK [14:30:25]MH_I2C_Read... [14:30:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:30:25]Read from MH i2c: E2 [14:30:25]MH_I2C_Read... [14:30:25]Read from MH i2c: E2 0B 00 [14:30:25]MH_I2C_Read... [14:30:25]Read from MH i2c: E2 0B 00 68 B0 00 06 57 D5 F5 F1 07 93 C6 90 00 0C [14:30:25]RAPDU: 06 57 D5 F5 F1 07 93 C6 90 00 [14:30:25]wFMCommunicate OK [14:30:25]SAM_PROTO_SignData done [14:30:25]FM_MakeSignedData done [14:30:25]CreateOFDProtocolMessage [14:30:25]wFMCommunicate request_size=4 [14:30:25]MH_SAM_APDU [14:30:25]CAPDU: 80 11 00 00 [14:30:25]Write to MH i2c: E2 08 00 69 B0 80 11 00 00 00 00 00 00 93 [14:30:25]Write i2c OK [14:30:25]MH_I2C_Read... [14:30:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:30:25]Read from MH i2c: E2 [14:30:25]MH_I2C_Read... [14:30:25]Read from MH i2c: E2 17 00 [14:30:25]MH_I2C_Read... [14:30:25]Read from MH i2c: E2 17 00 69 B0 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 E6 [14:30:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [14:30:25]wFMCommunicate OK [14:30:25]CreateOFDProtocolMessage done [14:30:25]OFDSenderStorePacket 103691 [14:30:25]StoreOFDPacket docnum=103691 [14:30:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 E7 D2 07 01 AF DF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 8C EB 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 0B 95 01 00 35 04 06 00 3F F5 95 34 23 29 06 57 D5 F5 F1 07 93 C6 [14:30:25]CheckFolder [14:30:25]dirname=/storage/ofd_packets [14:30:25]CheckFolder done [14:30:25]ProducePacketName [14:30:25]name=ofd_packets/00103691 [14:30:25]NVStorageSaveData ofd_packets/00103691 [14:30:25]File name is /storage/ofd_packets/00103691 [14:30:25]Write 301 bytes [14:30:25]NVStorageSaveData done [14:30:25]OFDSenderStorePacket done [14:30:25]KKMCreateOFDPacket done [14:30:25]NVStorageSaveData kkm_last_timestamp [14:30:25]File name is /storage/kkm_last_timestamp [14:30:25]Write 4 bytes [14:30:25]NVStorageSaveData done [14:30:25]ExternCall_PrintAddStr [14:30:25]wPrintStart [14:30:25]Write to MH i2c: 01 00 00 6A B0 1A [14:30:25]Write i2c OK [14:30:25]MH_I2C_Read... [14:30:25]Read from MH i2c: 01 [14:30:25]MH_I2C_Read... [14:30:25]Read from MH i2c: 01 07 00 [14:30:25]MH_I2C_Read... [14:30:25]Read from MH i2c: 01 07 00 6A B0 00 00 00 00 00 FF 0F 2F [14:30:25]RasterBufferAndPrint [14:30:25]line Счет N : (1)672953 [14:30:25]line ИНН: 02508201610067 [14:30:25]line Контрольно-Кассовый Чек [14:30:25]line ПРОДАЖА [14:30:25]line ТРК (МРК, ГНК) : 42 [14:30:25]line Товар: 2710124130 [14:30:25]line Аи-92-К-5 [14:30:25]line 10.550 * 66.40 [14:30:25]line = 700.52 [14:30:25]line НДС 12% НСП 1% [14:30:25]line > о реализуемом товаре [14:30:25]line ОКРУГЛЕНИЕ: -0.52 [14:30:25]line ИТОГО: 700.00 [14:30:25]line Внесено: 700.00 [14:30:25]line СДАЧА: 0.00 [14:30:25]line НСП 1% : 6.20 [14:30:25]line НДС 12% : 74.39 [14:30:25]line Наличными: 700.00 [14:30:25]line Безнал.: 0.00 [14:30:25]line Место: АЗС № 120 "Партнер Нефть" [14:30:25]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [14:30:25]line СНО: Общий режим [14:30:25]line Чек 121 19.06.2024 14:30 [14:30:25]line Смена: 353 ФФД: 1.0 [14:30:25]line ЗНМ: 0300000164 [14:30:25]line РНМ: 0000000000092785 [14:30:25]line Версия ККМ: 001 [14:30:25]line ФМ: 0000000000875093 [14:30:25]line ФД: 103691 [14:30:25]line ФПД: 70324002759465 [14:30:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T143036&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103691&fm=70324002759465&tin=02508201610067®Number=0000000000092785&sum=70000 [14:30:26]written 0, free lines is 4095 [14:30:26]OFD Sender: Processing packet 103691 [packets to send 17, broken 16] [14:30:26]ProducePacketName [14:30:26]name=ofd_packets/00103691 [14:30:26]OFD Sender: To server: pG, [14:30:26]CommunicateWithHost lk.salyk.kg:30040 [14:30:26]ConnectInit lk.salyk.kg [14:30:26]Connected sock=10 [14:30:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 E7 D2 07 01 AF DF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 8C EB 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 0B 95 01 00 35 04 06 00 3F F5 95 34 23 29 06 57 D5 F5 F1 07 93 C6 [14:30: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 39 33 4F 00 00 00 8C 9D 47 00 0B B6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 0B 95 01 00 F4 03 04 00 15 92 72 66 B6 04 01 00 00 FD AE 08 73 A9 CB DB 76 [14:30:26]CommunicateWithHost err = 0 [14:30:26]CheckOFDResponse [14:30:26]1017 (14) - 77093643461234 [14:30:26]1041 (16) - 0000000000875093 [14:30:26]1040 (4) - 103691 [14:30:26]1012 (4) - 19.06.2024 08:08 [14:30:26]1206 (1) - 0 [14:30:26]OFD Sender: Remove packet 103691 [14:30:26]ProducePacketName [14:30:26]name=ofd_packets/00103691 [14:30:26]NVStorageDeleteData [14:30:26]Write to MH i2c: 01 00 00 95 B0 45 [14:30:26]Write i2c OK [14:30:26]MH_I2C_Read... [14:30:26]Read from MH i2c: 01 [14:30:26]MH_I2C_Read... [14:30:26]Read from MH i2c: 01 07 00 [14:30:26]MH_I2C_Read... [14:30:26]Read from MH i2c: 01 07 00 95 B0 00 00 00 00 00 E1 0C 39 [14:30:26]RasterBufferAndPrint [14:30:26]line [14:30:26]line [14:30:26]line [14:30:26]line [14:30:26]line [14:30:26]written 0, free lines is 3306 [14:30:26]MH_Cut [14:30:26]Write to MH i2c: D1 01 00 9C B0 01 1E [14:30:26]Write i2c OK [14:30:26]MH_I2C_Read... [14:30:26]Read from MH i2c: D1 [14:30:26]MH_I2C_Read... [14:30:26]Read from MH i2c: D1 01 00 [14:30:26]MH_I2C_Read... [14:30:26]Read from MH i2c: D1 01 00 9C B0 00 1D [14:30:26]Write to MH i2c: 01 00 00 9D B0 4D [14:30:26]Write i2c OK [14:30:26]MH_I2C_Read... [14:30:27]OFD Sender: No OFD packet to send [14:30:27]*** Cut start [14:30:27]*** Partial cut [14:30:27]*** CUTSNS_PIN = 1 [14:30:27]*** CUTSNS_PIN = 0 [14:30:27]*** Brake cut motor [14:30:27]Read from MH i2c: 01 [14:30:27]MH_I2C_Read... [14:30:27]*** Stop cut motor [14:30:28]*** Cut end [14:30:28]Read from MH i2c: 01 07 00 [14:30:28]MH_I2C_Read... [14:30:28]Read from MH i2c: 01 07 00 9D B0 00 00 00 00 00 FF 0F 62 [14:30:28]process_action close_receipt done [14:30:28]requested_data is exist [14:30:28]produce_requested_data [14:30:28]requested_item fm.sn is exist - process it [14:30:28]wFMCommunicate request_size=4 [14:30:28]MH_SAM_APDU [14:30:28]CAPDU: 80 11 00 00 [14:30:28]Write to MH i2c: E2 08 00 9E B0 80 11 00 00 00 00 00 00 C8 [14:30:28]Write i2c OK [14:30:28]MH_I2C_Read... [14:30:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:30:28]Read from MH i2c: E2 [14:30:28]MH_I2C_Read... [14:30:28]Read from MH i2c: E2 17 00 [14:30:28]MH_I2C_Read... [14:30:28]Read from MH i2c: E2 17 00 9E B0 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 1B [14:30:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [14:30:28]wFMCommunicate OK [14:30:28]requested_item fd.num is exist - process it [14:30:28]SAM_PROTO_GetFieldsCounters [14:30:28]wFMCommunicate request_size=4 [14:30:28]MH_SAM_APDU [14:30:28]CAPDU: 80 13 00 00 [14:30:28]Write to MH i2c: E2 08 00 9F B0 80 13 00 00 00 00 00 00 CB [14:30:28]Write i2c OK [14:30:28]MH_I2C_Read... [14:30:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:30:28]Read from MH i2c: E2 [14:30:28]MH_I2C_Read... [14:30:28]Read from MH i2c: E2 62 00 [14:30:28]MH_I2C_Read... [14:30:28]Read from MH i2c: E2 62 00 9F B0 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 0B 95 01 00 0E 04 04 00 61 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 60 [14:30:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 0B 95 01 00 0E 04 04 00 61 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 [14:30:28]wFMCommunicate OK [14:30:28]SAM_PROTO_GetFieldsCounters done [14:30:28]requested_item shift.num is exist - process it [14:30:28]requested_item shift.opened is exist - process it [14:30:28]req_shift_opened [14:30:28]FM_GetShiftState [14:30:28]SAM_PROTO_GetShiftState [14:30:28]wFMCommunicate request_size=4 [14:30:28]MH_SAM_APDU [14:30:28]CAPDU: 80 13 01 00 [14:30:28]Write to MH i2c: E2 08 00 A0 B0 80 13 01 00 00 00 00 00 CD [14:30:28]Write i2c OK [14:30:28]MH_I2C_Read... [14:30:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:30:28]Read from MH i2c: E2 [14:30:28]MH_I2C_Read... [14:30:28]Read from MH i2c: E2 0E 00 [14:30:28]MH_I2C_Read... [14:30:28]Read from MH i2c: E2 0E 00 A0 B0 00 09 00 01 04 26 72 66 00 00 00 00 90 00 DB [14:30:28]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [14:30:28]wFMCommunicate OK [14:30:28]SAM_PROTO_GetShiftState done [14:30:28]FM_GetShiftState done [14:30:28]req_shift_opened done [14:30:28]requested_item shift.open_date is exist - process it [14:30:28]req_shift_open_date [14:30:28]req_shift_open_date done [14:30:28]produce_requested_data done [14:30:28]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103691,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [14:30:28]process_action_free close_receipt [14:30:28]json_value_free [14:30:28]json_value_free done [14:30:28]process_json_proto returns [14:30:28]Send response to host [14:30:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103691,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [14:30:28]free response buf [14:30:28]execute_script done [14:30:28]execute_script returns [14:30:28]free content buf [14:30:28]Sock 9.Close socket [14:30:28]Sock 9.Thread stoped [14:30:32]OFD Sender: No OFD packet to send [14:30:37]OFD Sender: No OFD packet to send [14:30:42]OFD Sender: No OFD packet to send [14:30:47]OFD Sender: No OFD packet to send [14:30:52]OFD Sender: No OFD packet to send [14:30:57]OFD Sender: No OFD packet to send [14:31:02]OFD Sender: No OFD packet to send [14:31:07]OFD Sender: No OFD packet to send [14:31:12]OFD Sender: No OFD packet to send [14:31:17]OFD Sender: No OFD packet to send [14:31:22]OFD Sender: No OFD packet to send [14:31:27]OFD Sender: No OFD packet to send [14:31:30]accept exits with 7 [14:31:30]New connection [14:31:30]New thread 3067084132 created [14:31:30]Thread 3067227492 joined [14:31:30]Waiting for new connection... [14:31:30] Sock 7.Parse request [14:31:30]Sock 7.Check first char [14:31:30]Sock 7.First char is OK [14:31:30]request: POST /json_proto HTTP/1.0 [14:31:30]Method: POST [14:31:30]URL: /json_proto [14:31:30]Method is POST - this is cgi request [14:31:30]url: /json_proto [14:31:30]query_string will be loaded in cgi processing [14:31:30]execute_cgi json_proto POST (null) [14:31:30]execute_cgi path=json_proto method=POST [14:31:30]POST find Content-Length [14:31:30]Host: 172.17.38.133:8080 [14:31:30]Content-Length: 677 [14:31:30]Content-Type: application/json [14:31:30] [14:31:30]POST finish read [14:31:30]Found Content-Length = 677 [14:31:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672954", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 8.290, "sum" : 550.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 550.00, "total" : 550.00, "payments": [ { "type": 0, "sum" : 550.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:31:30]execute_script... [14:31:30]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672954", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 8.290, "sum" : 550.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 550.00, "total" : 550.00, "payments": [ { "type": 0, "sum" : 550.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:31:30]POST & json_proto [14:31:30]process_json_proto [14:31:30]json parsed OK: [14:31:30]protocol is kg_v1.0 [14:31:30]action value=close_receipt [14:31:30]process_action close_receipt [14:31:30]cmd_close_receipt [14:31:30]MH_GetDate [14:31:30]Write to MH i2c: F0 00 00 A1 B0 40 [14:31:30]Write i2c OK [14:31:30]MH_I2C_Read... [14:31:30]Read from MH i2c: F0 [14:31:30]MH_I2C_Read... [14:31:30]Read from MH i2c: F0 09 00 [14:31:30]MH_I2C_Read... [14:31:30]Read from MH i2c: F0 09 00 A1 B0 00 CE EB 72 66 BD 8F 7C 64 06 [14:31:30]GetLastDocTimeStamp 1718807436 [14:31:30]current date 1718807502 [14:31:30]FM_GetShiftState [14:31:30]SAM_PROTO_GetShiftState [14:31:30]wFMCommunicate request_size=4 [14:31:30]MH_SAM_APDU [14:31:30]CAPDU: 80 13 01 00 [14:31:30]Write to MH i2c: E2 08 00 A2 B0 80 13 01 00 00 00 00 00 CF [14:31:30]Write i2c OK [14:31:30]MH_I2C_Read... [14:31:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:31:30]Read from MH i2c: E2 [14:31:30]MH_I2C_Read... [14:31:30]Read from MH i2c: E2 0E 00 [14:31:30]MH_I2C_Read... [14:31:30]Read from MH i2c: E2 0E 00 A2 B0 00 09 00 01 04 26 72 66 00 00 00 00 90 00 DD [14:31:30]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [14:31:30]wFMCommunicate OK [14:31:30]SAM_PROTO_GetShiftState done [14:31:30]FM_GetShiftState done [14:31:30]opened in 1718756868 [14:31:30]opened+sec_in_day 1718843268 [14:31:30]quantity*price = 55045 [14:31:30]sum+1 = 55047 [14:31:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.46 ИТОГО: 550.00 Внесено: 550.00 СДАЧА: 0.00 НСП 1% : 4.87 НДС 12% : 58.46 Наличными: 550.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 122 19.06.2024 14:31 Смена: 353 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103692 ФПД: 228273118889455 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T143142&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103692&fm=228273118889455&tin=02508201610067®Number=0000000000092785&sum=55000 [14:31:31]StoreToDocumentArchive [14:31:31]shift 353 fd 103692 [14:31:31]save to /storage/0353/doc_00103692 [14:31:31]save last doc name /storage/0353/doc_00103692 to /storage/kkm_last_doc_name [14:31:31]save OK [14:31:31]Clear old archive folders... [14:31:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:31:31]tlvbuf is 01446670 [14:31:31]SAM_PROTO_ClearQueue [14:31:31]wFMCommunicate request_size=4 [14:31:31]MH_SAM_APDU [14:31:31]CAPDU: 80 09 00 00 [14:31:31]Write to MH i2c: E2 08 00 AF B0 80 09 00 00 00 00 00 00 D1 [14:31:31]Write i2c OK [14:31:31]MH_I2C_Read... [14:31:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:31:31]Read from MH i2c: E2 [14:31:31]MH_I2C_Read... [14:31:31]Read from MH i2c: E2 03 00 [14:31:31]MH_I2C_Read... [14:31:31]Read from MH i2c: E2 03 00 AF B0 00 90 00 D3 [14:31:31]RAPDU: 90 00 [14:31:31]wFMCommunicate OK [14:31:31]SAM_PROTO_ClearQueue done [14:31:31]KKMCreateOFDPacket [14:31:31]OFDProtocolAddRootSTLVToBuf [14:31:31]FM_MakeSignedData [14:31:31]FM_MakeSignedData [14:31:31]SAM_PROTO_SignData [14:31:31]wFMCommunicate request_size=4 [14:31:31]MH_SAM_APDU [14:31:31]CAPDU: 80 0D 01 02 [14:31:31]Write to MH i2c: E2 08 00 B0 B0 80 0D 01 02 00 00 00 00 D9 [14:31:31]Write i2c OK [14:31:31]MH_I2C_Read... [14:31:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:31:31]Read from MH i2c: E2 [14:31:31]MH_I2C_Read... [14:31:31]Read from MH i2c: E2 03 00 [14:31:31]MH_I2C_Read... [14:31:31]Read from MH i2c: E2 03 00 B0 B0 00 90 00 D4 [14:31:31]RAPDU: 90 00 [14:31:31]wFMCommunicate OK [14:31:31]wFMCommunicate request_size=255 [14:31:31]MH_SAM_APDU [14:31:31]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 62 20 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 06 D7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 D6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D6 16 00 00 00 00 07 04 06 00 D8 D6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 CE EB 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 0C 95 01 00 35 04 06 00 CF [14:31:31]Write to MH i2c: E2 02 01 B1 B0 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 62 20 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 06 D7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 D6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D6 16 00 00 00 00 07 04 06 00 D8 D6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 CE EB 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 0C 95 01 00 35 04 06 00 CF 00 00 5F [14:31:31]Write i2c OK [14:31:31]MH_I2C_Read... [14:31:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:31:31]Read from MH i2c: E2 [14:31:31]MH_I2C_Read... [14:31:31]Read from MH i2c: E2 03 00 [14:31:31]MH_I2C_Read... [14:31:31]Read from MH i2c: E2 03 00 B1 B0 00 90 00 D5 [14:31:31]RAPDU: 90 00 [14:31:31]wFMCommunicate OK [14:31:31]wFMCommunicate request_size=10 [14:31:31]MH_SAM_APDU [14:31:31]CAPDU: 80 0D 02 02 05 9C FA 29 C5 EF [14:31:31]Write to MH i2c: E2 0D 00 B2 B0 80 0D 02 02 05 00 9C FA 29 C5 EF 00 00 59 [14:31:31]Write i2c OK [14:31:31]MH_I2C_Read... [14:31:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:31:31]Read from MH i2c: E2 [14:31:31]MH_I2C_Read... [14:31:31]Read from MH i2c: E2 03 00 [14:31:31]MH_I2C_Read... [14:31:31]Read from MH i2c: E2 03 00 B2 B0 00 90 00 D6 [14:31:31]RAPDU: 90 00 [14:31:31]wFMCommunicate OK [14:31:31]wFMCommunicate request_size=4 [14:31:31]MH_SAM_APDU [14:31:31]CAPDU: 80 0D 03 02 [14:31:31]Write to MH i2c: E2 08 00 B3 B0 80 0D 03 02 00 00 00 00 DE [14:31:31]Write i2c OK [14:31:31]MH_I2C_Read... [14:31:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:31:31]Read from MH i2c: E2 [14:31:31]MH_I2C_Read... [14:31:31]Read from MH i2c: E2 0B 00 [14:31:31]MH_I2C_Read... [14:31:31]Read from MH i2c: E2 0B 00 B3 B0 00 96 A9 BD 68 50 C3 A0 5F 90 00 55 [14:31:31]RAPDU: 96 A9 BD 68 50 C3 A0 5F 90 00 [14:31:31]wFMCommunicate OK [14:31:31]SAM_PROTO_SignData done [14:31:31]FM_MakeSignedData done [14:31:31]CreateOFDProtocolMessage [14:31:31]wFMCommunicate request_size=4 [14:31:31]MH_SAM_APDU [14:31:31]CAPDU: 80 11 00 00 [14:31:31]Write to MH i2c: E2 08 00 B4 B0 80 11 00 00 00 00 00 00 DE [14:31:31]Write i2c OK [14:31:31]MH_I2C_Read... [14:31:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:31:31]Read from MH i2c: E2 [14:31:31]MH_I2C_Read... [14:31:31]Read from MH i2c: E2 17 00 [14:31:31]MH_I2C_Read... [14:31:31]Read from MH i2c: E2 17 00 B4 B0 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 31 [14:31:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [14:31:31]wFMCommunicate OK [14:31:31]CreateOFDProtocolMessage done [14:31:31]OFDSenderStorePacket 103692 [14:31:31]StoreOFDPacket docnum=103692 [14:31:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 4F 38 07 01 65 19 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 62 20 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 06 D7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 D6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D6 16 00 00 00 00 07 04 06 00 D8 D6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 CE EB 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 0C 95 01 00 35 04 06 00 CF 9C FA 29 C5 EF 96 A9 BD 68 50 C3 A0 5F [14:31:31]CheckFolder [14:31:31]dirname=/storage/ofd_packets [14:31:31]CheckFolder done [14:31:31]ProducePacketName [14:31:31]name=ofd_packets/00103692 [14:31:31]NVStorageSaveData ofd_packets/00103692 [14:31:31]File name is /storage/ofd_packets/00103692 [14:31:31]Write 301 bytes [14:31:31]NVStorageSaveData done [14:31:31]OFDSenderStorePacket done [14:31:31]KKMCreateOFDPacket done [14:31:31]NVStorageSaveData kkm_last_timestamp [14:31:31]File name is /storage/kkm_last_timestamp [14:31:31]Write 4 bytes [14:31:31]NVStorageSaveData done [14:31:31]ExternCall_PrintAddStr [14:31:31]wPrintStart [14:31:31]Write to MH i2c: 01 00 00 B5 B0 65 [14:31:31]Write i2c OK [14:31:31]MH_I2C_Read... [14:31:31]Read from MH i2c: 01 [14:31:31]MH_I2C_Read... [14:31:31]Read from MH i2c: 01 07 00 [14:31:31]MH_I2C_Read... [14:31:31]Read from MH i2c: 01 07 00 B5 B0 00 00 00 00 00 FF 0F 7A [14:31:31]RasterBufferAndPrint [14:31:31]line Счет N : (1)672954 [14:31:31]line ИНН: 02508201610067 [14:31:31]line Контрольно-Кассовый Чек [14:31:31]line ПРОДАЖА [14:31:31]line ТРК (МРК, ГНК) : 32 [14:31:31]line Товар: 2710124130 [14:31:31]line Аи-92-К-5 [14:31:31]line 8.290 * 66.40 [14:31:31]line = 550.46 [14:31:31]line НДС 12% НСП 1% [14:31:31]line > о реализуемом товаре [14:31:31]line ОКРУГЛЕНИЕ: -0.46 [14:31:31]line ИТОГО: 550.00 [14:31:31]line Внесено: 550.00 [14:31:31]line СДАЧА: 0.00 [14:31:31]line НСП 1% : 4.87 [14:31:31]line НДС 12% : 58.46 [14:31:31]line Наличными: 550.00 [14:31:31]line Безнал.: 0.00 [14:31:31]line Место: АЗС № 120 "Партнер Нефть" [14:31:31]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [14:31:31]line СНО: Общий режим [14:31:31]line Чек 122 19.06.2024 14:31 [14:31:31]line Смена: 353 ФФД: 1.0 [14:31:31]line ЗНМ: 0300000164 [14:31:31]line РНМ: 0000000000092785 [14:31:31]line Версия ККМ: 001 [14:31:31]line ФМ: 0000000000875093 [14:31:31]line ФД: 103692 [14:31:31]line ФПД: 228273118889455 [14:31:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T143142&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103692&fm=228273118889455&tin=02508201610067®Number=0000000000092785&sum=55000 [14:31:32]OFD Sender: Processing packet 103692 [packets to send 17, broken 16] [14:31:32]ProducePacketName [14:31:32]name=ofd_packets/00103692 [14:31:32]OFD Sender: To server: pG, [14:31:32]CommunicateWithHost lk.salyk.kg:30040 [14:31:32]ConnectInit lk.salyk.kg [14:31:32]written 0, free lines is 4095 [14:31:32]Connected sock=10 [14:31:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 4F 38 07 01 65 19 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 62 20 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 06 D7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 D6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D6 16 00 00 00 00 07 04 06 00 D8 D6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 CE EB 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 0C 95 01 00 35 04 06 00 CF 9C FA 29 C5 EF 96 A9 BD 68 50 C3 A0 5F [14:31: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 39 33 4F 00 00 00 32 E6 47 00 13 47 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 0C 95 01 00 F4 03 04 00 57 92 72 66 B6 04 01 00 00 3D BF 06 87 63 49 63 2F [14:31:32]CommunicateWithHost err = 0 [14:31:32]CheckOFDResponse [14:31:32]1017 (14) - 77093643461234 [14:31:32]1041 (16) - 0000000000875093 [14:31:32]1040 (4) - 103692 [14:31:32]1012 (4) - 19.06.2024 08:09 [14:31:32]1206 (1) - 0 [14:31:32]OFD Sender: Remove packet 103692 [14:31:32]ProducePacketName [14:31:32]name=ofd_packets/00103692 [14:31:32]NVStorageDeleteData [14:31:32]Write to MH i2c: 01 00 00 E0 B0 90 [14:31:32]Write i2c OK [14:31:32]MH_I2C_Read... [14:31:32]Read from MH i2c: 01 [14:31:32]MH_I2C_Read... [14:31:32]Read from MH i2c: 01 07 00 [14:31:32]MH_I2C_Read... [14:31:32]Read from MH i2c: 01 07 00 E0 B0 00 00 00 00 00 E4 0C 87 [14:31:32]RasterBufferAndPrint [14:31:32]line [14:31:32]line [14:31:32]line [14:31:32]line [14:31:32]line [14:31:32]written 0, free lines is 3309 [14:31:32]MH_Cut [14:31:32]Write to MH i2c: D1 01 00 E7 B0 01 69 [14:31:32]Write i2c OK [14:31:32]MH_I2C_Read... [14:31:32]Read from MH i2c: D1 [14:31:32]MH_I2C_Read... [14:31:32]Read from MH i2c: D1 01 00 [14:31:32]MH_I2C_Read... [14:31:32]Read from MH i2c: D1 01 00 E7 B0 00 68 [14:31:32]Write to MH i2c: 01 00 00 E8 B0 98 [14:31:32]Write i2c OK [14:31:32]MH_I2C_Read... [14:31:33]OFD Sender: No OFD packet to send [14:31:33]*** Cut start [14:31:33]*** Partial cut [14:31:33]*** CUTSNS_PIN = 1 [14:31:33]*** CUTSNS_PIN = 0 [14:31:33]*** Brake cut motor [14:31:33]Read from MH i2c: 01 [14:31:33]MH_I2C_Read... [14:31:33]*** Stop cut motor [14:31:33]*** Cut end [14:31:33]Read from MH i2c: 01 07 00 [14:31:33]MH_I2C_Read... [14:31:33]Read from MH i2c: 01 07 00 E8 B0 00 00 00 00 00 FF 0F AD [14:31:33]process_action close_receipt done [14:31:33]requested_data is exist [14:31:33]produce_requested_data [14:31:33]requested_item fm.sn is exist - process it [14:31:33]wFMCommunicate request_size=4 [14:31:33]MH_SAM_APDU [14:31:33]CAPDU: 80 11 00 00 [14:31:33]Write to MH i2c: E2 08 00 E9 B0 80 11 00 00 00 00 00 00 13 [14:31:33]Write i2c OK [14:31:33]MH_I2C_Read... [14:31:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:31:33]Read from MH i2c: E2 [14:31:33]MH_I2C_Read... [14:31:33]Read from MH i2c: E2 17 00 [14:31:33]MH_I2C_Read... [14:31:33]Read from MH i2c: E2 17 00 E9 B0 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 66 [14:31:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [14:31:33]wFMCommunicate OK [14:31:33]requested_item fd.num is exist - process it [14:31:33]SAM_PROTO_GetFieldsCounters [14:31:33]wFMCommunicate request_size=4 [14:31:33]MH_SAM_APDU [14:31:33]CAPDU: 80 13 00 00 [14:31:33]Write to MH i2c: E2 08 00 EA B0 80 13 00 00 00 00 00 00 16 [14:31:33]Write i2c OK [14:31:33]MH_I2C_Read... [14:31:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:31:34]Read from MH i2c: E2 [14:31:34]MH_I2C_Read... [14:31:34]Read from MH i2c: E2 62 00 [14:31:34]MH_I2C_Read... [14:31:34]Read from MH i2c: E2 62 00 EA B0 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 0C 95 01 00 0E 04 04 00 61 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 AF [14:31:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 0C 95 01 00 0E 04 04 00 61 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 [14:31:34]wFMCommunicate OK [14:31:34]SAM_PROTO_GetFieldsCounters done [14:31:34]requested_item shift.num is exist - process it [14:31:34]requested_item shift.opened is exist - process it [14:31:34]req_shift_opened [14:31:34]FM_GetShiftState [14:31:34]SAM_PROTO_GetShiftState [14:31:34]wFMCommunicate request_size=4 [14:31:34]MH_SAM_APDU [14:31:34]CAPDU: 80 13 01 00 [14:31:34]Write to MH i2c: E2 08 00 EB B0 80 13 01 00 00 00 00 00 18 [14:31:34]Write i2c OK [14:31:34]MH_I2C_Read... [14:31:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:31:34]Read from MH i2c: E2 [14:31:34]MH_I2C_Read... [14:31:34]Read from MH i2c: E2 0E 00 [14:31:34]MH_I2C_Read... [14:31:34]Read from MH i2c: E2 0E 00 EB B0 00 09 00 01 04 26 72 66 00 00 00 00 90 00 26 [14:31:34]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [14:31:34]wFMCommunicate OK [14:31:34]SAM_PROTO_GetShiftState done [14:31:34]FM_GetShiftState done [14:31:34]req_shift_opened done [14:31:34]requested_item shift.open_date is exist - process it [14:31:34]req_shift_open_date [14:31:34]req_shift_open_date done [14:31:34]produce_requested_data done [14:31:34]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103692,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [14:31:34]process_action_free close_receipt [14:31:34]json_value_free [14:31:34]json_value_free done [14:31:34]process_json_proto returns [14:31:34]Send response to host [14:31:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103692,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [14:31:34]free response buf [14:31:34]execute_script done [14:31:34]execute_script returns [14:31:34]free content buf [14:31:34]Sock 7.Close socket [14:31:34]Sock 7.Thread stoped [14:31:38]OFD Sender: No OFD packet to send [14:31:43]OFD Sender: No OFD packet to send [14:31:48]OFD Sender: No OFD packet to send [14:31:53]OFD Sender: No OFD packet to send [14:31:57]accept exits with 9 [14:31:57]New connection [14:31:57]New thread 3067227492 created [14:31:57]Thread 3067084132 joined [14:31:57]Waiting for new connection... [14:31:57] Sock 9.Parse request [14:31:57]Sock 9.Check first char [14:31:57]Sock 9.First char is OK [14:31:57]request: POST /json_proto HTTP/1.0 [14:31:57]Method: POST [14:31:57]URL: /json_proto [14:31:57]Method is POST - this is cgi request [14:31:57]url: /json_proto [14:31:57]query_string will be loaded in cgi processing [14:31:57]execute_cgi json_proto POST (null) [14:31:57]execute_cgi path=json_proto method=POST [14:31:57]POST find Content-Length [14:31:57]Host: 172.17.38.133:8080 [14:31:57]Content-Length: 687 [14:31:57]Content-Type: application/json [14:31:57] [14:31:57]POST finish read [14:31:57]Found Content-Length = 687 [14:31:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672951", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 96.030, "sum" : 7000.59, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 7000.00, "total" : 7000.00, "payments": [ { "type": 0, "sum" : 7000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:31:57]execute_script... [14:31: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)672951", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 96.030, "sum" : 7000.59, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 7000.00, "total" : 7000.00, "payments": [ { "type": 0, "sum" : 7000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:31:57]POST & json_proto [14:31:57]process_json_proto [14:31:57]json parsed OK: [14:31:57]protocol is kg_v1.0 [14:31:57]action value=close_receipt [14:31:57]process_action close_receipt [14:31:57]cmd_close_receipt [14:31:57]MH_GetDate [14:31:57]Write to MH i2c: F0 00 00 EC B0 8B [14:31:57]Write i2c OK [14:31:57]MH_I2C_Read... [14:31:57]Read from MH i2c: F0 [14:31:57]MH_I2C_Read... [14:31:57]Read from MH i2c: F0 09 00 [14:31:57]MH_I2C_Read... [14:31:57]Read from MH i2c: F0 09 00 EC B0 00 E9 EB 72 66 BD 8F 7C 64 6C [14:31:57]GetLastDocTimeStamp 1718807502 [14:31:57]current date 1718807529 [14:31:57]FM_GetShiftState [14:31:57]SAM_PROTO_GetShiftState [14:31:57]wFMCommunicate request_size=4 [14:31:57]MH_SAM_APDU [14:31:57]CAPDU: 80 13 01 00 [14:31:57]Write to MH i2c: E2 08 00 ED B0 80 13 01 00 00 00 00 00 1A [14:31:57]Write i2c OK [14:31:57]MH_I2C_Read... [14:31:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:31:57]Read from MH i2c: E2 [14:31:57]MH_I2C_Read... [14:31:57]Read from MH i2c: E2 0E 00 [14:31:57]MH_I2C_Read... [14:31:57]Read from MH i2c: E2 0E 00 ED B0 00 09 00 01 04 26 72 66 00 00 00 00 90 00 28 [14:31:57]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [14:31:57]wFMCommunicate OK [14:31:57]SAM_PROTO_GetShiftState done [14:31:57]FM_GetShiftState done [14:31:57]opened in 1718756868 [14:31:57]opened+sec_in_day 1718843268 [14:31:57]quantity*price = 700058 [14:31:57]sum+1 = 700060 [14:31:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.59 ИТОГО: 7000.00 Внесено: 7000.00 СДАЧА: 0.00 НСП 1% : 61.95 НДС 12% : 743.42 Наличными: 7000.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 123 19.06.2024 14:32 Смена: 353 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103693 ФПД: 16127551965690 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T143210&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103693&fm=16127551965690&tin=02508201610067®Number=0000000000092785&sum=700000 [14:31:58]StoreToDocumentArchive [14:31:58]shift 353 fd 103693 [14:31:58]save to /storage/0353/doc_00103693 [14:31:58]save last doc name /storage/0353/doc_00103693 to /storage/kkm_last_doc_name [14:31:58]save OK [14:31:58]Clear old archive folders... [14:31:58]ProcessDocumentItem done err = 0, tmpTLVsize=252 [14:31:58]tlvbuf is 014625E0 [14:31:58]SAM_PROTO_ClearQueue [14:31:58]wFMCommunicate request_size=4 [14:31:58]MH_SAM_APDU [14:31:58]CAPDU: 80 09 00 00 [14:31:58]Write to MH i2c: E2 08 00 FA B0 80 09 00 00 00 00 00 00 1C [14:31:58]Write i2c OK [14:31:58]MH_I2C_Read... [14:31:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:31:58]Read from MH i2c: E2 [14:31:58]MH_I2C_Read... [14:31:58]Read from MH i2c: E2 03 00 [14:31:58]MH_I2C_Read... [14:31:58]Read from MH i2c: E2 03 00 FA B0 00 90 00 1E [14:31:58]RAPDU: 90 00 [14:31:58]wFMCommunicate OK [14:31:58]SAM_PROTO_ClearQueue done [14:31:58]KKMCreateOFDPacket [14:31:58]OFDProtocolAddRootSTLVToBuf [14:31:58]FM_MakeSignedData [14:31:58]FM_MakeSignedData [14:31:58]SAM_PROTO_SignData [14:31:58]wFMCommunicate request_size=4 [14:31:58]MH_SAM_APDU [14:31:58]CAPDU: 80 0D 01 02 [14:31:58]Write to MH i2c: E2 08 00 FB B0 80 0D 01 02 00 00 00 00 24 [14:31:58]Write i2c OK [14:31:58]MH_I2C_Read... [14:31:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:31:58]Read from MH i2c: E2 [14:31:58]MH_I2C_Read... [14:31:58]Read from MH i2c: E2 03 00 [14:31:58]MH_I2C_Read... [14:31:58]Read from MH i2c: E2 03 00 FB B0 00 90 00 1F [14:31:58]RAPDU: 90 00 [14:31:58]wFMCommunicate OK [14:31:58]wFMCommunicate request_size=255 [14:31:58]MH_SAM_APDU [14:31:58]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 1E 77 01 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 9B AE 0A 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 AE 0A 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 33 18 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 66 22 01 00 00 00 07 04 06 00 60 AE 0A 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 EA EB 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 0D 95 01 00 35 04 06 00 [14:31:58]Write to MH i2c: E2 02 01 FC B0 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 1E 77 01 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 9B AE 0A 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 AE 0A 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 33 18 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 66 22 01 00 00 00 07 04 06 00 60 AE 0A 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 EA EB 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 0D 95 01 00 35 04 06 00 00 00 1F [14:31:58]Write i2c OK [14:31:58]MH_I2C_Read... [14:31:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:31:58]Read from MH i2c: E2 [14:31:58]MH_I2C_Read... [14:31:58]Read from MH i2c: E2 03 00 [14:31:58]MH_I2C_Read... [14:31:58]Read from MH i2c: E2 03 00 FC B0 00 90 00 20 [14:31:58]RAPDU: 90 00 [14:31:58]wFMCommunicate OK [14:31:58]wFMCommunicate request_size=11 [14:31:58]MH_SAM_APDU [14:31:58]CAPDU: 80 0D 02 02 06 0E AA FD 01 89 FA [14:31:58]Write to MH i2c: E2 0E 00 FD B0 80 0D 02 02 06 00 0E AA FD 01 89 FA 00 00 6C [14:31:58]Write i2c OK [14:31:58]MH_I2C_Read... [14:31:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:31:58]Read from MH i2c: E2 [14:31:58]MH_I2C_Read... [14:31:58]Read from MH i2c: E2 03 00 [14:31:58]MH_I2C_Read... [14:31:58]Read from MH i2c: E2 03 00 FD B0 00 90 00 21 [14:31:58]RAPDU: 90 00 [14:31:58]wFMCommunicate OK [14:31:58]wFMCommunicate request_size=4 [14:31:58]MH_SAM_APDU [14:31:58]CAPDU: 80 0D 03 02 [14:31:58]Write to MH i2c: E2 08 00 FE B0 80 0D 03 02 00 00 00 00 29 [14:31:58]Write i2c OK [14:31:58]MH_I2C_Read... [14:31:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:31:58]Read from MH i2c: E2 [14:31:58]MH_I2C_Read... [14:31:58]Read from MH i2c: E2 0B 00 [14:31:58]MH_I2C_Read... [14:31:58]Read from MH i2c: E2 0B 00 FE B0 00 A4 D0 ED BB BB F4 C3 1A 90 00 D2 [14:31:58]RAPDU: A4 D0 ED BB BB F4 C3 1A 90 00 [14:31:58]wFMCommunicate OK [14:31:58]SAM_PROTO_SignData done [14:31:58]FM_MakeSignedData done [14:31:58]CreateOFDProtocolMessage [14:31:58]wFMCommunicate request_size=4 [14:31:58]MH_SAM_APDU [14:31:58]CAPDU: 80 11 00 00 [14:31:58]Write to MH i2c: E2 08 00 FF B0 80 11 00 00 00 00 00 00 29 [14:31:58]Write i2c OK [14:31:58]MH_I2C_Read... [14:31:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:31:58]Read from MH i2c: E2 [14:31:58]MH_I2C_Read... [14:31:58]Read from MH i2c: E2 17 00 [14:31:58]MH_I2C_Read... [14:31:58]Read from MH i2c: E2 17 00 FF B0 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 7C [14:31:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [14:31:58]wFMCommunicate OK [14:31:58]CreateOFDProtocolMessage done [14:31:58]OFDSenderStorePacket 103693 [14:31:58]StoreOFDPacket docnum=103693 [14:31:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 29 60 08 01 6A 3E 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 1E 77 01 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 9B AE 0A 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 AE 0A 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 33 18 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 66 22 01 00 00 00 07 04 06 00 60 AE 0A 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 EA EB 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 0D 95 01 00 35 04 06 00 0E AA FD 01 89 FA A4 D0 ED BB BB F4 C3 1A [14:31:58]CheckFolder [14:31:58]dirname=/storage/ofd_packets [14:31:58]CheckFolder done [14:31:58]ProducePacketName [14:31:58]name=ofd_packets/00103693 [14:31:58]NVStorageSaveData ofd_packets/00103693 [14:31:58]File name is /storage/ofd_packets/00103693 [14:31:58]Write 302 bytes [14:31:58]NVStorageSaveData done [14:31:58]OFDSenderStorePacket done [14:31:58]KKMCreateOFDPacket done [14:31:58]NVStorageSaveData kkm_last_timestamp [14:31:58]File name is /storage/kkm_last_timestamp [14:31:58]Write 4 bytes [14:31:58]NVStorageSaveData done [14:31:58]ExternCall_PrintAddStr [14:31:58]wPrintStart [14:31:58]Write to MH i2c: 01 00 00 00 B1 B1 [14:31:58]Write i2c OK [14:31:58]MH_I2C_Read... [14:31:58]Read from MH i2c: 01 [14:31:58]MH_I2C_Read... [14:31:58]Read from MH i2c: 01 07 00 [14:31:58]MH_I2C_Read... [14:31:58]Read from MH i2c: 01 07 00 00 B1 00 00 00 00 00 FF 0F C6 [14:31:58]RasterBufferAndPrint [14:31:58]line Счет N : (1)672951 [14:31:58]line ИНН: 02508201610067 [14:31:58]line Контрольно-Кассовый Чек [14:31:58]line ПРОДАЖА [14:31:58]line ТРК (МРК, ГНК) : 11 [14:31:58]line Товар: 2710194210 [14:31:58]line ДТ(л)-К-5 [14:31:58]line 96.030 * 72.90 [14:31:58]line = 7000.59 [14:31:58]line НДС 12% НСП 1% [14:31:58]line > о реализуемом товаре [14:31:58]line ОКРУГЛЕНИЕ: -0.59 [14:31:58]line ИТОГО: 7000.00 [14:31:58]line Внесено: 7000.00 [14:31:58]line СДАЧА: 0.00 [14:31:58]line НСП 1% : 61.95 [14:31:58]line НДС 12% : 743.42 [14:31:58]line Наличными: 7000.00 [14:31:58]line Безнал.: 0.00 [14:31:58]line Место: АЗС № 120 "Партнер Нефть" [14:31:58]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [14:31:58]line СНО: Общий режим [14:31:58]line Чек 123 19.06.2024 14:32 [14:31:58]line Смена: 353 ФФД: 1.0 [14:31:58]line ЗНМ: 0300000164 [14:31:58]line РНМ: 0000000000092785 [14:31:58]line Версия ККМ: 001 [14:31:58]line ФМ: 0000000000875093 [14:31:58]line ФД: 103693 [14:31:58]line ФПД: 16127551965690 [14:31:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T143210&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103693&fm=16127551965690&tin=02508201610067®Number=0000000000092785&sum=700000 [14:31:59]OFD Sender: Processing packet 103693 [packets to send 17, broken 16] [14:31:59]ProducePacketName [14:31:59]name=ofd_packets/00103693 [14:31:59]OFD Sender: To server: pG, [14:31:59]CommunicateWithHost lk.salyk.kg:30040 [14:31:59]ConnectInit lk.salyk.kg [14:31:59]written 0, free lines is 4095 [14:31:59]Connected sock=10 [14:31: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 39 33 10 01 00 00 29 60 08 01 6A 3E 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 1E 77 01 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 9B AE 0A 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 AE 0A 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 33 18 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 66 22 01 00 00 00 07 04 06 00 60 AE 0A 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 EA EB 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 0D 95 01 00 35 04 06 00 0E AA FD 01 89 FA A4 D0 ED BB BB F4 C3 1A [14:31:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 6F C5 47 00 DB 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 39 33 10 04 04 00 0D 95 01 00 F4 03 04 00 72 92 72 66 B6 04 01 00 00 08 99 C4 52 F4 35 57 8F [14:31:59]CommunicateWithHost err = 0 [14:31:59]CheckOFDResponse [14:31:59]1017 (14) - 77093643461234 [14:31:59]1041 (16) - 0000000000875093 [14:31:59]1040 (4) - 103693 [14:31:59]1012 (4) - 19.06.2024 08:10 [14:31:59]1206 (1) - 0 [14:31:59]OFD Sender: Remove packet 103693 [14:31:59]ProducePacketName [14:31:59]name=ofd_packets/00103693 [14:31:59]NVStorageDeleteData [14:31:59]Write to MH i2c: 01 00 00 2B B1 DC [14:31:59]Write i2c OK [14:31:59]MH_I2C_Read... [14:31:59]Read from MH i2c: 01 [14:31:59]MH_I2C_Read... [14:31:59]Read from MH i2c: 01 07 00 [14:31:59]MH_I2C_Read... [14:31:59]Read from MH i2c: 01 07 00 2B B1 00 00 00 00 00 ED 0C DC [14:31:59]RasterBufferAndPrint [14:31:59]line [14:31:59]line [14:31:59]line [14:31:59]line [14:31:59]line [14:31:59]written 0, free lines is 3318 [14:31:59]MH_Cut [14:31:59]Write to MH i2c: D1 01 00 32 B1 01 B5 [14:31:59]Write i2c OK [14:31:59]MH_I2C_Read... [14:31:59]Read from MH i2c: D1 [14:31:59]MH_I2C_Read... [14:31:59]Read from MH i2c: D1 01 00 [14:31:59]MH_I2C_Read... [14:31:59]Read from MH i2c: D1 01 00 32 B1 00 B4 [14:31:59]Write to MH i2c: 01 00 00 33 B1 E4 [14:31:59]Write i2c OK [14:31:59]MH_I2C_Read... [14:32:00]OFD Sender: No OFD packet to send [14:32:00]*** Cut start [14:32:00]*** Partial cut [14:32:00]*** CUTSNS_PIN = 1 [14:32:00]*** CUTSNS_PIN = 0 [14:32:00]*** Brake cut motor [14:32:01]Read from MH i2c: 01 [14:32:01]MH_I2C_Read... [14:32:01]*** Stop cut motor [14:32:01]*** Cut end [14:32:01]Read from MH i2c: 01 07 00 [14:32:01]MH_I2C_Read... [14:32:01]Read from MH i2c: 01 07 00 33 B1 00 00 00 00 00 FF 0F F9 [14:32:01]process_action close_receipt done [14:32:01]requested_data is exist [14:32:01]produce_requested_data [14:32:01]requested_item fm.sn is exist - process it [14:32:01]wFMCommunicate request_size=4 [14:32:01]MH_SAM_APDU [14:32:01]CAPDU: 80 11 00 00 [14:32:01]Write to MH i2c: E2 08 00 34 B1 80 11 00 00 00 00 00 00 5F [14:32:01]Write i2c OK [14:32:01]MH_I2C_Read... [14:32:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:32:01]Read from MH i2c: E2 [14:32:01]MH_I2C_Read... [14:32:01]Read from MH i2c: E2 17 00 [14:32:01]MH_I2C_Read... [14:32:01]Read from MH i2c: E2 17 00 34 B1 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 B2 [14:32:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [14:32:01]wFMCommunicate OK [14:32:01]requested_item fd.num is exist - process it [14:32:01]SAM_PROTO_GetFieldsCounters [14:32:01]wFMCommunicate request_size=4 [14:32:01]MH_SAM_APDU [14:32:01]CAPDU: 80 13 00 00 [14:32:01]Write to MH i2c: E2 08 00 35 B1 80 13 00 00 00 00 00 00 62 [14:32:01]Write i2c OK [14:32:01]MH_I2C_Read... [14:32:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:32:01]Read from MH i2c: E2 [14:32:01]MH_I2C_Read... [14:32:01]Read from MH i2c: E2 62 00 [14:32:01]MH_I2C_Read... [14:32:01]Read from MH i2c: E2 62 00 35 B1 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 0D 95 01 00 0E 04 04 00 61 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 FF [14:32: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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 0D 95 01 00 0E 04 04 00 61 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 [14:32:01]wFMCommunicate OK [14:32:01]SAM_PROTO_GetFieldsCounters done [14:32:01]requested_item shift.num is exist - process it [14:32:01]requested_item shift.opened is exist - process it [14:32:01]req_shift_opened [14:32:01]FM_GetShiftState [14:32:01]SAM_PROTO_GetShiftState [14:32:01]wFMCommunicate request_size=4 [14:32:01]MH_SAM_APDU [14:32:01]CAPDU: 80 13 01 00 [14:32:01]Write to MH i2c: E2 08 00 36 B1 80 13 01 00 00 00 00 00 64 [14:32:01]Write i2c OK [14:32:01]MH_I2C_Read... [14:32:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:32:01]Read from MH i2c: E2 [14:32:01]MH_I2C_Read... [14:32:01]Read from MH i2c: E2 0E 00 [14:32:01]MH_I2C_Read... [14:32:01]Read from MH i2c: E2 0E 00 36 B1 00 09 00 01 04 26 72 66 00 00 00 00 90 00 72 [14:32:01]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [14:32:01]wFMCommunicate OK [14:32:01]SAM_PROTO_GetShiftState done [14:32:01]FM_GetShiftState done [14:32:01]req_shift_opened done [14:32:01]requested_item shift.open_date is exist - process it [14:32:01]req_shift_open_date [14:32:01]req_shift_open_date done [14:32:01]produce_requested_data done [14:32:01]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103693,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [14:32:01]process_action_free close_receipt [14:32:01]json_value_free [14:32:01]json_value_free done [14:32:01]process_json_proto returns [14:32:01]Send response to host [14:32:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103693,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [14:32:01]free response buf [14:32:01]execute_script done [14:32:01]execute_script returns [14:32:01]free content buf [14:32:01]Sock 9.Close socket [14:32:01]Sock 9.Thread stoped [14:32:05]OFD Sender: No OFD packet to send [14:32:10]OFD Sender: No OFD packet to send [14:32:15]OFD Sender: No OFD packet to send [14:32:20]OFD Sender: No OFD packet to send [14:32:25]OFD Sender: No OFD packet to send [14:32:30]OFD Sender: No OFD packet to send [14:32:35]OFD Sender: No OFD packet to send [14:32:40]OFD Sender: No OFD packet to send [14:32:45]OFD Sender: No OFD packet to send [14:32:50]OFD Sender: No OFD packet to send [14:32:51]accept exits with 7 [14:32:51]New connection [14:32:51]New thread 3067084132 created [14:32:51]Thread 3067227492 joined [14:32:51]Waiting for new connection... [14:32:51] Sock 7.Parse request [14:32:51]Sock 7.Check first char [14:32:51]Sock 7.First char is OK [14:32:51]request: POST /json_proto HTTP/1.0 [14:32:51]Method: POST [14:32:51]URL: /json_proto [14:32:51]Method is POST - this is cgi request [14:32:51]url: /json_proto [14:32:51]query_string will be loaded in cgi processing [14:32:51]execute_cgi json_proto POST (null) [14:32:51]execute_cgi path=json_proto method=POST [14:32:51]POST find Content-Length [14:32:51]Host: 172.17.38.133:8080 [14:32:51]Content-Length: 677 [14:32:51]Content-Type: application/json [14:32:51] [14:32:51]POST finish read [14:32:51]Found Content-Length = 677 [14:32:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672955", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 9.640, "sum" : 640.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 640.00, "total" : 640.00, "payments": [ { "type": 0, "sum" : 640.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:32:51]execute_script... [14:32: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)672955", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 9.640, "sum" : 640.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 640.00, "total" : 640.00, "payments": [ { "type": 0, "sum" : 640.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:32:51]POST & json_proto [14:32:51]process_json_proto [14:32:51]json parsed OK: [14:32:51]protocol is kg_v1.0 [14:32:51]action value=close_receipt [14:32:51]process_action close_receipt [14:32:51]cmd_close_receipt [14:32:51]MH_GetDate [14:32:51]Write to MH i2c: F0 00 00 37 B1 D7 [14:32:51]Write i2c OK [14:32:51]MH_I2C_Read... [14:32:51]Read from MH i2c: F0 [14:32:51]MH_I2C_Read... [14:32:51]Read from MH i2c: F0 09 00 [14:32:51]MH_I2C_Read... [14:32:51]Read from MH i2c: F0 09 00 37 B1 00 20 EC 72 66 BD 8F 7C 64 F0 [14:32:51]GetLastDocTimeStamp 1718807530 [14:32:51]current date 1718807584 [14:32:51]FM_GetShiftState [14:32:51]SAM_PROTO_GetShiftState [14:32:51]wFMCommunicate request_size=4 [14:32:51]MH_SAM_APDU [14:32:51]CAPDU: 80 13 01 00 [14:32:51]Write to MH i2c: E2 08 00 38 B1 80 13 01 00 00 00 00 00 66 [14:32:51]Write i2c OK [14:32:51]MH_I2C_Read... [14:32:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:32:52]Read from MH i2c: E2 [14:32:52]MH_I2C_Read... [14:32:52]Read from MH i2c: E2 0E 00 [14:32:52]MH_I2C_Read... [14:32:52]Read from MH i2c: E2 0E 00 38 B1 00 09 00 01 04 26 72 66 00 00 00 00 90 00 74 [14:32:52]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [14:32:52]wFMCommunicate OK [14:32:52]SAM_PROTO_GetShiftState done [14:32:52]FM_GetShiftState done [14:32:52]opened in 1718756868 [14:32:52]opened+sec_in_day 1718843268 [14:32:52]quantity*price = 64009 [14:32:52]sum+1 = 64011 [14:32:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.10 ИТОГО: 640.00 Внесено: 640.00 СДАЧА: 0.00 НСП 1% : 5.66 НДС 12% : 67.97 Наличными: 640.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 124 19.06.2024 14:33 Смена: 353 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103694 ФПД: 144525307021834 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T143304&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103694&fm=144525307021834&tin=02508201610067®Number=0000000000092785&sum=64000 [14:32:53]StoreToDocumentArchive [14:32:53]shift 353 fd 103694 [14:32:53]save to /storage/0353/doc_00103694 [14:32:53]save last doc name /storage/0353/doc_00103694 to /storage/kkm_last_doc_name [14:32:53]save OK [14:32:53]Clear old archive folders... [14:32:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:32:53]tlvbuf is 01636F90 [14:32:53]SAM_PROTO_ClearQueue [14:32:53]wFMCommunicate request_size=4 [14:32:53]MH_SAM_APDU [14:32:53]CAPDU: 80 09 00 00 [14:32:53]Write to MH i2c: E2 08 00 45 B1 80 09 00 00 00 00 00 00 68 [14:32:53]Write i2c OK [14:32:53]MH_I2C_Read... [14:32:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:32:53]Read from MH i2c: E2 [14:32:53]MH_I2C_Read... [14:32:53]Read from MH i2c: E2 03 00 [14:32:53]MH_I2C_Read... [14:32:53]Read from MH i2c: E2 03 00 45 B1 00 90 00 6A [14:32:53]RAPDU: 90 00 [14:32:53]wFMCommunicate OK [14:32:53]SAM_PROTO_ClearQueue done [14:32:53]KKMCreateOFDPacket [14:32:53]OFDProtocolAddRootSTLVToBuf [14:32:53]FM_MakeSignedData [14:32:53]FM_MakeSignedData [14:32:53]SAM_PROTO_SignData [14:32:53]wFMCommunicate request_size=4 [14:32:53]MH_SAM_APDU [14:32:53]CAPDU: 80 0D 01 02 [14:32:53]Write to MH i2c: E2 08 00 46 B1 80 0D 01 02 00 00 00 00 70 [14:32:53]Write i2c OK [14:32:53]MH_I2C_Read... [14:32:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:32:53]Read from MH i2c: E2 [14:32:53]MH_I2C_Read... [14:32:53]Read from MH i2c: E2 03 00 [14:32:53]MH_I2C_Read... [14:32:53]Read from MH i2c: E2 03 00 46 B1 00 90 00 6B [14:32:53]RAPDU: 90 00 [14:32:53]wFMCommunicate OK [14:32:53]wFMCommunicate request_size=255 [14:32:53]MH_SAM_APDU [14:32:53]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 25 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 0A FA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 FA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8D 1A 00 00 00 00 07 04 06 00 00 FA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 20 EC 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 0E 95 01 00 35 04 06 00 83 [14:32:53]Write to MH i2c: E2 02 01 47 B1 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 25 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 0A FA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 FA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8D 1A 00 00 00 00 07 04 06 00 00 FA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 20 EC 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 0E 95 01 00 35 04 06 00 83 00 00 16 [14:32:53]Write i2c OK [14:32:53]MH_I2C_Read... [14:32:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:32:53]Read from MH i2c: E2 [14:32:53]MH_I2C_Read... [14:32:53]Read from MH i2c: E2 03 00 [14:32:53]MH_I2C_Read... [14:32:53]Read from MH i2c: E2 03 00 47 B1 00 90 00 6C [14:32:53]RAPDU: 90 00 [14:32:53]wFMCommunicate OK [14:32:53]wFMCommunicate request_size=10 [14:32:53]MH_SAM_APDU [14:32:53]CAPDU: 80 0D 02 02 05 71 EB 96 0A 0A [14:32:53]Write to MH i2c: E2 0D 00 48 B1 80 0D 02 02 05 00 71 EB 96 0A 0A 00 00 83 [14:32:53]Write i2c OK [14:32:53]MH_I2C_Read... [14:32:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:32:53]Read from MH i2c: E2 [14:32:53]MH_I2C_Read... [14:32:53]Read from MH i2c: E2 03 00 [14:32:53]MH_I2C_Read... [14:32:53]Read from MH i2c: E2 03 00 48 B1 00 90 00 6D [14:32:53]RAPDU: 90 00 [14:32:53]wFMCommunicate OK [14:32:53]wFMCommunicate request_size=4 [14:32:53]MH_SAM_APDU [14:32:53]CAPDU: 80 0D 03 02 [14:32:53]Write to MH i2c: E2 08 00 49 B1 80 0D 03 02 00 00 00 00 75 [14:32:53]Write i2c OK [14:32:53]MH_I2C_Read... [14:32:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:32:53]Read from MH i2c: E2 [14:32:53]MH_I2C_Read... [14:32:53]Read from MH i2c: E2 0B 00 [14:32:53]MH_I2C_Read... [14:32:53]Read from MH i2c: E2 0B 00 49 B1 00 48 CE D9 5A 6B CE 35 8C 90 00 B9 [14:32:53]RAPDU: 48 CE D9 5A 6B CE 35 8C 90 00 [14:32:53]wFMCommunicate OK [14:32:53]SAM_PROTO_SignData done [14:32:53]FM_MakeSignedData done [14:32:53]CreateOFDProtocolMessage [14:32:53]wFMCommunicate request_size=4 [14:32:53]MH_SAM_APDU [14:32:53]CAPDU: 80 11 00 00 [14:32:53]Write to MH i2c: E2 08 00 4A B1 80 11 00 00 00 00 00 00 75 [14:32:53]Write i2c OK [14:32:53]MH_I2C_Read... [14:32:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:32:53]Read from MH i2c: E2 [14:32:53]MH_I2C_Read... [14:32:53]Read from MH i2c: E2 17 00 [14:32:53]MH_I2C_Read... [14:32:53]Read from MH i2c: E2 17 00 4A B1 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 C8 [14:32:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [14:32:53]wFMCommunicate OK [14:32:53]CreateOFDProtocolMessage done [14:32:53]OFDSenderStorePacket 103694 [14:32:53]StoreOFDPacket docnum=103694 [14:32:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 12 56 07 01 CC B5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 25 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 0A FA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 FA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8D 1A 00 00 00 00 07 04 06 00 00 FA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 20 EC 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 0E 95 01 00 35 04 06 00 83 71 EB 96 0A 0A 48 CE D9 5A 6B CE 35 8C [14:32:53]CheckFolder [14:32:53]dirname=/storage/ofd_packets [14:32:53]CheckFolder done [14:32:53]ProducePacketName [14:32:53]name=ofd_packets/00103694 [14:32:53]NVStorageSaveData ofd_packets/00103694 [14:32:53]File name is /storage/ofd_packets/00103694 [14:32:53]Write 301 bytes [14:32:53]NVStorageSaveData done [14:32:53]OFDSenderStorePacket done [14:32:53]KKMCreateOFDPacket done [14:32:53]NVStorageSaveData kkm_last_timestamp [14:32:53]File name is /storage/kkm_last_timestamp [14:32:53]Write 4 bytes [14:32:53]NVStorageSaveData done [14:32:53]ExternCall_PrintAddStr [14:32:53]wPrintStart [14:32:53]Write to MH i2c: 01 00 00 4B B1 FC [14:32:53]Write i2c OK [14:32:53]MH_I2C_Read... [14:32:53]Read from MH i2c: 01 [14:32:53]MH_I2C_Read... [14:32:53]Read from MH i2c: 01 07 00 [14:32:53]MH_I2C_Read... [14:32:53]Read from MH i2c: 01 07 00 4B B1 00 00 00 00 00 FF 0F 11 [14:32:53]RasterBufferAndPrint [14:32:53]line Счет N : (1)672955 [14:32:53]line ИНН: 02508201610067 [14:32:53]line Контрольно-Кассовый Чек [14:32:53]line ПРОДАЖА [14:32:53]line ТРК (МРК, ГНК) : 42 [14:32:53]line Товар: 2710124130 [14:32:53]line Аи-92-К-5 [14:32:53]line 9.640 * 66.40 [14:32:53]line = 640.10 [14:32:53]line НДС 12% НСП 1% [14:32:53]line > о реализуемом товаре [14:32:53]line ОКРУГЛЕНИЕ: -0.10 [14:32:53]line ИТОГО: 640.00 [14:32:53]line Внесено: 640.00 [14:32:53]line СДАЧА: 0.00 [14:32:53]line НСП 1% : 5.66 [14:32:53]line НДС 12% : 67.97 [14:32:53]line Наличными: 640.00 [14:32:53]line Безнал.: 0.00 [14:32:53]line Место: АЗС № 120 "Партнер Нефть" [14:32:53]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [14:32:53]line СНО: Общий режим [14:32:53]line Чек 124 19.06.2024 14:33 [14:32:53]line Смена: 353 ФФД: 1.0 [14:32:53]line ЗНМ: 0300000164 [14:32:53]line РНМ: 0000000000092785 [14:32:53]line Версия ККМ: 001 [14:32:53]line ФМ: 0000000000875093 [14:32:53]line ФД: 103694 [14:32:53]line ФПД: 144525307021834 [14:32:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T143304&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103694&fm=144525307021834&tin=02508201610067®Number=0000000000092785&sum=64000 [14:32:54]OFD Sender: Processing packet 103694 [packets to send 17, broken 16] [14:32:54]ProducePacketName [14:32:54]name=ofd_packets/00103694 [14:32:54]OFD Sender: To server: pG, [14:32:54]CommunicateWithHost lk.salyk.kg:30040 [14:32:54]ConnectInit lk.salyk.kg [14:32:54]written 0, free lines is 4095 [14:32:54]Connected sock=11 [14: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 39 33 0F 01 00 00 12 56 07 01 CC B5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 25 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 0A FA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 FA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8D 1A 00 00 00 00 07 04 06 00 00 FA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 20 EC 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 0E 95 01 00 35 04 06 00 83 71 EB 96 0A 0A 48 CE D9 5A 6B CE 35 8C [14: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 39 33 4F 00 00 00 08 A4 47 00 C6 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 39 33 10 04 04 00 0E 95 01 00 F4 03 04 00 A9 92 72 66 B6 04 01 00 00 BE 69 D9 84 DE 14 36 5E [14:32:54]CommunicateWithHost err = 0 [14:32:54]CheckOFDResponse [14:32:54]1017 (14) - 77093643461234 [14:32:54]1041 (16) - 0000000000875093 [14:32:54]1040 (4) - 103694 [14:32:54]1012 (4) - 19.06.2024 08:11 [14:32:54]1206 (1) - 0 [14:32:54]OFD Sender: Remove packet 103694 [14:32:54]ProducePacketName [14:32:54]name=ofd_packets/00103694 [14:32:54]NVStorageDeleteData [14:32:54]Write to MH i2c: 01 00 00 76 B1 27 [14:32:54]Write i2c OK [14:32:54]MH_I2C_Read... [14:32:54]Read from MH i2c: 01 [14:32:54]MH_I2C_Read... [14:32:54]Read from MH i2c: 01 07 00 [14:32:54]MH_I2C_Read... [14:32:54]Read from MH i2c: 01 07 00 76 B1 00 00 00 00 00 E8 0C 22 [14:32:54]RasterBufferAndPrint [14:32:54]line [14:32:54]line [14:32:54]line [14:32:54]line [14:32:54]line [14:32:54]written 0, free lines is 3310 [14:32:54]MH_Cut [14:32:54]Write to MH i2c: D1 01 00 7D B1 01 00 [14:32:54]Write i2c OK [14:32:54]MH_I2C_Read... [14:32:54]Read from MH i2c: D1 [14:32:54]MH_I2C_Read... [14:32:54]Read from MH i2c: D1 01 00 [14:32:54]MH_I2C_Read... [14:32:54]Read from MH i2c: D1 01 00 7D B1 00 FF [14:32:54]Write to MH i2c: 01 00 00 7E B1 2F [14:32:54]Write i2c OK [14:32:54]MH_I2C_Read... [14:32:54]OFD Sender: No OFD packet to send [14:32:55]*** Cut start [14:32:55]*** Partial cut [14:32:55]*** CUTSNS_PIN = 1 [14:32:55]*** CUTSNS_PIN = 0 [14:32:55]*** Brake cut motor [14:32:55]Read from MH i2c: 01 [14:32:55]MH_I2C_Read... [14:32:55]*** Stop cut motor [14:32:55]*** Cut end [14:32:55]Read from MH i2c: 01 07 00 [14:32:55]MH_I2C_Read... [14:32:55]Read from MH i2c: 01 07 00 7E B1 00 00 00 00 00 FF 0F 44 [14:32:55]process_action close_receipt done [14:32:55]requested_data is exist [14:32:55]produce_requested_data [14:32:55]requested_item fm.sn is exist - process it [14:32:55]wFMCommunicate request_size=4 [14:32:55]MH_SAM_APDU [14:32:55]CAPDU: 80 11 00 00 [14:32:55]Write to MH i2c: E2 08 00 7F B1 80 11 00 00 00 00 00 00 AA [14:32:55]Write i2c OK [14:32:55]MH_I2C_Read... [14:32:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:32:55]Read from MH i2c: E2 [14:32:55]MH_I2C_Read... [14:32:55]Read from MH i2c: E2 17 00 [14:32:55]MH_I2C_Read... [14:32:55]Read from MH i2c: E2 17 00 7F B1 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 FD [14:32:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [14:32:55]wFMCommunicate OK [14:32:55]requested_item fd.num is exist - process it [14:32:55]SAM_PROTO_GetFieldsCounters [14:32:55]wFMCommunicate request_size=4 [14:32:55]MH_SAM_APDU [14:32:55]CAPDU: 80 13 00 00 [14:32:55]Write to MH i2c: E2 08 00 80 B1 80 13 00 00 00 00 00 00 AD [14:32:55]Write i2c OK [14:32:55]MH_I2C_Read... [14:32:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:32:55]Read from MH i2c: E2 [14:32:55]MH_I2C_Read... [14:32:55]Read from MH i2c: E2 62 00 [14:32:55]MH_I2C_Read... [14:32:55]Read from MH i2c: E2 62 00 80 B1 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 0E 95 01 00 0E 04 04 00 61 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 4E [14:32: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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 0E 95 01 00 0E 04 04 00 61 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 [14:32:55]wFMCommunicate OK [14:32:55]SAM_PROTO_GetFieldsCounters done [14:32:55]requested_item shift.num is exist - process it [14:32:55]requested_item shift.opened is exist - process it [14:32:55]req_shift_opened [14:32:55]FM_GetShiftState [14:32:55]SAM_PROTO_GetShiftState [14:32:55]wFMCommunicate request_size=4 [14:32:55]MH_SAM_APDU [14:32:55]CAPDU: 80 13 01 00 [14:32:55]Write to MH i2c: E2 08 00 81 B1 80 13 01 00 00 00 00 00 AF [14:32:55]Write i2c OK [14:32:55]MH_I2C_Read... [14:32:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:32:56]Read from MH i2c: E2 [14:32:56]MH_I2C_Read... [14:32:56]Read from MH i2c: E2 0E 00 [14:32:56]MH_I2C_Read... [14:32:56]Read from MH i2c: E2 0E 00 81 B1 00 09 00 01 04 26 72 66 00 00 00 00 90 00 BD [14:32:56]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [14:32:56]wFMCommunicate OK [14:32:56]SAM_PROTO_GetShiftState done [14:32:56]FM_GetShiftState done [14:32:56]req_shift_opened done [14:32:56]requested_item shift.open_date is exist - process it [14:32:56]req_shift_open_date [14:32:56]req_shift_open_date done [14:32:56]produce_requested_data done [14:32:56]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103694,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [14:32:56]process_action_free close_receipt [14:32:56]json_value_free [14:32:56]json_value_free done [14:32:56]process_json_proto returns [14:32:56]Send response to host [14:32:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103694,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [14:32:56]free response buf [14:32:56]execute_script done [14:32:56]execute_script returns [14:32:56]free content buf [14:32:56]Sock 7.Close socket [14:32:56]Sock 7.Thread stoped [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:14]OFD Sender: No OFD packet to send [14:33:19]OFD Sender: No OFD packet to send [14:33:24]OFD Sender: No OFD packet to send [14:33:29]OFD Sender: No OFD packet to send [14:33:34]OFD Sender: No OFD packet to send [14:33:39]accept exits with 9 [14:33:39]New connection [14:33:39]New thread 3067227492 created [14:33:39]Thread 3067084132 joined [14:33:39]Waiting for new connection... [14:33:39] Sock 9.Parse request [14:33:39]Sock 9.Check first char [14:33:39]Sock 9.First char is OK [14:33:39]request: POST /json_proto HTTP/1.0 [14:33:39]Method: POST [14:33:39]URL: /json_proto [14:33:39]Method is POST - this is cgi request [14:33:39]url: /json_proto [14:33:39]query_string will be loaded in cgi processing [14:33:39]execute_cgi json_proto POST (null) [14:33:39]execute_cgi path=json_proto method=POST [14:33:39]POST find Content-Length [14:33:39]Host: 172.17.38.133:8080 [14:33:39]Content-Length: 677 [14:33:39]Content-Type: application/json [14:33:39] [14:33:39]POST finish read [14:33:39]Found Content-Length = 677 [14:33:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672956", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:33:39]execute_script... [14:33:39]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672956", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:33:39]POST & json_proto [14:33:39]process_json_proto [14:33:39]json parsed OK: [14:33:39]protocol is kg_v1.0 [14:33:39]action value=close_receipt [14:33:39]process_action close_receipt [14:33:39]cmd_close_receipt [14:33:39]MH_GetDate [14:33:39]Write to MH i2c: F0 00 00 82 B1 22 [14:33:39]Write i2c OK [14:33:39]MH_I2C_Read... [14:33:39]Read from MH i2c: F0 [14:33:39]MH_I2C_Read... [14:33:39]Read from MH i2c: F0 09 00 [14:33:39]MH_I2C_Read... [14:33:39]Read from MH i2c: F0 09 00 82 B1 00 50 EC 72 66 BD 8F 7C 64 6B [14:33:39]GetLastDocTimeStamp 1718807584 [14:33:39]current date 1718807632 [14:33:39]FM_GetShiftState [14:33:39]SAM_PROTO_GetShiftState [14:33:39]wFMCommunicate request_size=4 [14:33:39]MH_SAM_APDU [14:33:39]CAPDU: 80 13 01 00 [14:33:39]Write to MH i2c: E2 08 00 83 B1 80 13 01 00 00 00 00 00 B1 [14:33:39]Write i2c OK [14:33:39]MH_I2C_Read... [14:33:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:33:39]Read from MH i2c: E2 [14:33:39]MH_I2C_Read... [14:33:39]Read from MH i2c: E2 0E 00 [14:33:39]MH_I2C_Read... [14:33:39]Read from MH i2c: E2 0E 00 83 B1 00 09 00 01 04 26 72 66 00 00 00 00 90 00 BF [14:33:39]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [14:33:39]wFMCommunicate OK [14:33:39]SAM_PROTO_GetShiftState done [14:33:39]FM_GetShiftState done [14:33:39]opened in 1718756868 [14:33:39]opened+sec_in_day 1718843268 [14:33:39]quantity*price = 50065 [14:33:39]sum+1 = 50067 [14:33:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.17 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 125 19.06.2024 14:33 Смена: 353 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103695 ФПД: 204998511281464 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T143352&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103695&fm=204998511281464&tin=02508201610067®Number=0000000000092785&sum=50000 [14:33:41]StoreToDocumentArchive [14:33:41]shift 353 fd 103695 [14:33:41]save to /storage/0353/doc_00103695 [14:33:41]save last doc name /storage/0353/doc_00103695 to /storage/kkm_last_doc_name [14:33:41]save OK [14:33:41]Clear old archive folders... [14:33:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:33:41]tlvbuf is 0135E6E0 [14:33:41]SAM_PROTO_ClearQueue [14:33:41]wFMCommunicate request_size=4 [14:33:41]MH_SAM_APDU [14:33:41]CAPDU: 80 09 00 00 [14:33:41]Write to MH i2c: E2 08 00 90 B1 80 09 00 00 00 00 00 00 B3 [14:33:41]Write i2c OK [14:33:41]MH_I2C_Read... [14:33:41]Read from MH i2c: E2 [14:33:41]MH_I2C_Read... [14:33:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:33:41]Read from MH i2c: E2 03 00 [14:33:41]MH_I2C_Read... [14:33:41]Read from MH i2c: E2 03 00 90 B1 00 90 00 B5 [14:33:41]RAPDU: 90 00 [14:33:41]wFMCommunicate OK [14:33:41]SAM_PROTO_ClearQueue done [14:33:41]KKMCreateOFDPacket [14:33:41]OFDProtocolAddRootSTLVToBuf [14:33:41]FM_MakeSignedData [14:33:41]FM_MakeSignedData [14:33:41]SAM_PROTO_SignData [14:33:41]wFMCommunicate request_size=4 [14:33:41]MH_SAM_APDU [14:33:41]CAPDU: 80 0D 01 02 [14:33:41]Write to MH i2c: E2 08 00 91 B1 80 0D 01 02 00 00 00 00 BB [14:33:41]Write i2c OK [14:33:41]MH_I2C_Read... [14:33:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:33:41]Read from MH i2c: E2 [14:33:41]MH_I2C_Read... [14:33:41]Read from MH i2c: E2 03 00 [14:33:41]MH_I2C_Read... [14:33:41]Read from MH i2c: E2 03 00 91 B1 00 90 00 B6 [14:33:41]RAPDU: 90 00 [14:33:41]wFMCommunicate OK [14:33:41]wFMCommunicate request_size=255 [14:33:41]MH_SAM_APDU [14:33: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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 50 EC 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 0F 95 01 00 35 04 06 00 BA [14:33:41]Write to MH i2c: E2 02 01 92 B1 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 50 EC 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 0F 95 01 00 35 04 06 00 BA 00 00 C7 [14:33:41]Write i2c OK [14:33:41]MH_I2C_Read... [14:33:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:33:41]Read from MH i2c: E2 [14:33:41]MH_I2C_Read... [14:33:41]Read from MH i2c: E2 03 00 [14:33:41]MH_I2C_Read... [14:33:41]Read from MH i2c: E2 03 00 92 B1 00 90 00 B7 [14:33:41]RAPDU: 90 00 [14:33:41]wFMCommunicate OK [14:33:41]wFMCommunicate request_size=10 [14:33:41]MH_SAM_APDU [14:33:41]CAPDU: 80 0D 02 02 05 71 EF 71 C5 38 [14:33:41]Write to MH i2c: E2 0D 00 93 B1 80 0D 02 02 05 00 71 EF 71 C5 38 00 00 96 [14:33:41]Write i2c OK [14:33:41]MH_I2C_Read... [14:33:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:33:41]Read from MH i2c: E2 [14:33:41]MH_I2C_Read... [14:33:41]Read from MH i2c: E2 03 00 [14:33:41]MH_I2C_Read... [14:33:41]Read from MH i2c: E2 03 00 93 B1 00 90 00 B8 [14:33:41]RAPDU: 90 00 [14:33:41]wFMCommunicate OK [14:33:41]wFMCommunicate request_size=4 [14:33:41]MH_SAM_APDU [14:33:41]CAPDU: 80 0D 03 02 [14:33:41]Write to MH i2c: E2 08 00 94 B1 80 0D 03 02 00 00 00 00 C0 [14:33:41]Write i2c OK [14:33:41]MH_I2C_Read... [14:33:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:33:41]Read from MH i2c: E2 [14:33:41]MH_I2C_Read... [14:33:41]Read from MH i2c: E2 0B 00 [14:33:41]MH_I2C_Read... [14:33:41]Read from MH i2c: E2 0B 00 94 B1 00 63 70 67 0F DE 57 60 72 90 00 11 [14:33:41]RAPDU: 63 70 67 0F DE 57 60 72 90 00 [14:33:41]wFMCommunicate OK [14:33:41]SAM_PROTO_SignData done [14:33:41]FM_MakeSignedData done [14:33:41]CreateOFDProtocolMessage [14:33:41]wFMCommunicate request_size=4 [14:33:41]MH_SAM_APDU [14:33:41]CAPDU: 80 11 00 00 [14:33:41]Write to MH i2c: E2 08 00 95 B1 80 11 00 00 00 00 00 00 C0 [14:33:41]Write i2c OK [14:33:41]MH_I2C_Read... [14:33:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:33:41]Read from MH i2c: E2 [14:33:41]MH_I2C_Read... [14:33:41]Read from MH i2c: E2 17 00 [14:33:41]MH_I2C_Read... [14:33:41]Read from MH i2c: E2 17 00 95 B1 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 13 [14:33:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [14:33:41]wFMCommunicate OK [14:33:41]CreateOFDProtocolMessage done [14:33:41]OFDSenderStorePacket 103695 [14:33:41]StoreOFDPacket docnum=103695 [14:33:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 93 96 07 01 CC B1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 50 EC 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 0F 95 01 00 35 04 06 00 BA 71 EF 71 C5 38 63 70 67 0F DE 57 60 72 [14:33:41]CheckFolder [14:33:41]dirname=/storage/ofd_packets [14:33:41]CheckFolder done [14:33:41]ProducePacketName [14:33:41]name=ofd_packets/00103695 [14:33:41]NVStorageSaveData ofd_packets/00103695 [14:33:41]File name is /storage/ofd_packets/00103695 [14:33:41]Write 301 bytes [14:33:41]NVStorageSaveData done [14:33:41]OFDSenderStorePacket done [14:33:41]KKMCreateOFDPacket done [14:33:41]NVStorageSaveData kkm_last_timestamp [14:33:41]File name is /storage/kkm_last_timestamp [14:33:41]Write 4 bytes [14:33:41]NVStorageSaveData done [14:33:41]ExternCall_PrintAddStr [14:33:41]wPrintStart [14:33:41]Write to MH i2c: 01 00 00 96 B1 47 [14:33:41]Write i2c OK [14:33:41]MH_I2C_Read... [14:33:41]Read from MH i2c: 01 [14:33:41]MH_I2C_Read... [14:33:41]Read from MH i2c: 01 07 00 [14:33:41]MH_I2C_Read... [14:33:41]Read from MH i2c: 01 07 00 96 B1 00 00 00 00 00 FF 0F 5C [14:33:41]RasterBufferAndPrint [14:33:41]line Счет N : (1)672956 [14:33:41]line ИНН: 02508201610067 [14:33:41]line Контрольно-Кассовый Чек [14:33:41]line ПРОДАЖА [14:33:41]line ТРК (МРК, ГНК) : 32 [14:33:41]line Товар: 2710124130 [14:33:41]line Аи-92-К-5 [14:33:41]line 7.540 * 66.40 [14:33:41]line = 500.66 [14:33:41]line НДС 12% НСП 1% [14:33:41]line > о реализуемом товаре [14:33:41]line ОКРУГЛЕНИЕ: -0.66 [14:33:41]line ИТОГО: 500.00 [14:33:41]line Внесено: 500.00 [14:33:41]line СДАЧА: 0.00 [14:33:41]line НСП 1% : 4.43 [14:33:41]line НДС 12% : 53.17 [14:33:41]line Наличными: 500.00 [14:33:41]line Безнал.: 0.00 [14:33:41]line Место: АЗС № 120 "Партнер Нефть" [14:33:41]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [14:33:41]line СНО: Общий режим [14:33:41]line Чек 125 19.06.2024 14:33 [14:33:41]line Смена: 353 ФФД: 1.0 [14:33:41]line ЗНМ: 0300000164 [14:33:41]line РНМ: 0000000000092785 [14:33:41]line Версия ККМ: 001 [14:33:41]line ФМ: 0000000000875093 [14:33:41]line ФД: 103695 [14:33:41]line ФПД: 204998511281464 [14:33:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T143352&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103695&fm=204998511281464&tin=02508201610067®Number=0000000000092785&sum=50000 [14:33:41]OFD Sender: Processing packet 103695 [packets to send 17, broken 16] [14:33:41]ProducePacketName [14:33:41]name=ofd_packets/00103695 [14:33:41]OFD Sender: To server: pG, [14:33:41]CommunicateWithHost lk.salyk.kg:30040 [14:33:41]ConnectInit lk.salyk.kg [14:33:41]written 0, free lines is 4095 [14:33:42]Write to MH i2c: 01 00 00 C1 B1 72 [14:33:42]Write i2c OK [14:33:42]MH_I2C_Read... [14:33:42]Read from MH i2c: 01 [14:33:42]MH_I2C_Read... [14:33:42]Read from MH i2c: 01 07 00 [14:33:42]MH_I2C_Read... [14:33:42]Read from MH i2c: 01 07 00 C1 B1 00 00 00 00 00 E1 0C 66 [14:33:42]RasterBufferAndPrint [14:33:42]line [14:33:42]line [14:33:42]line [14:33:42]line [14:33:42]line [14:33:42]written 0, free lines is 3303 [14:33:42]MH_Cut [14:33:42]Write to MH i2c: D1 01 00 C8 B1 01 4B [14:33:42]Write i2c OK [14:33:42]MH_I2C_Read... [14:33:42]Read from MH i2c: D1 [14:33:42]MH_I2C_Read... [14:33:42]Read from MH i2c: D1 01 00 [14:33:42]MH_I2C_Read... [14:33:42]Read from MH i2c: D1 01 00 C8 B1 00 4A [14:33:42]Write to MH i2c: 01 00 00 C9 B1 7A [14:33:42]Write i2c OK [14:33:42]MH_I2C_Read... [14:33:43]*** Cut start [14:33:43]*** Partial cut [14:33:43]*** CUTSNS_PIN = 1 [14:33:43]*** CUTSNS_PIN = 0 [14:33:43]*** Brake cut motor [14:33:43]Read from MH i2c: 01 [14:33:43]MH_I2C_Read... [14:33:43]*** Stop cut motor [14:33:43]*** Cut end [14:33:43]Read from MH i2c: 01 07 00 [14:33:43]MH_I2C_Read... [14:33:43]Read from MH i2c: 01 07 00 C9 B1 00 00 00 00 00 FF 0F 8F [14:33:43]process_action close_receipt done [14:33:43]requested_data is exist [14:33:43]produce_requested_data [14:33:43]requested_item fm.sn is exist - process it [14:33:43]wFMCommunicate request_size=4 [14:33:43]MH_SAM_APDU [14:33:43]CAPDU: 80 11 00 00 [14:33:43]Write to MH i2c: E2 08 00 CA B1 80 11 00 00 00 00 00 00 F5 [14:33:43]Write i2c OK [14:33:43]MH_I2C_Read... [14:33:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:33:43]Read from MH i2c: E2 [14:33:43]MH_I2C_Read... [14:33:43]Read from MH i2c: E2 17 00 [14:33:43]MH_I2C_Read... [14:33:43]Read from MH i2c: E2 17 00 CA B1 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 48 [14:33:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [14:33:43]wFMCommunicate OK [14:33:43]requested_item fd.num is exist - process it [14:33:43]SAM_PROTO_GetFieldsCounters [14:33:43]wFMCommunicate request_size=4 [14:33:43]MH_SAM_APDU [14:33:43]CAPDU: 80 13 00 00 [14:33:43]Write to MH i2c: E2 08 00 CB B1 80 13 00 00 00 00 00 00 F8 [14:33:43]Write i2c OK [14:33:43]MH_I2C_Read... [14:33:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:33:43]Read from MH i2c: E2 [14:33:43]MH_I2C_Read... [14:33:43]Read from MH i2c: E2 62 00 [14:33:43]MH_I2C_Read... [14:33:43]Read from MH i2c: E2 62 00 CB B1 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 0F 95 01 00 0E 04 04 00 61 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 9D [14:33:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 0F 95 01 00 0E 04 04 00 61 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 [14:33:43]wFMCommunicate OK [14:33:43]SAM_PROTO_GetFieldsCounters done [14:33:43]requested_item shift.num is exist - process it [14:33:43]requested_item shift.opened is exist - process it [14:33:43]req_shift_opened [14:33:43]FM_GetShiftState [14:33:43]SAM_PROTO_GetShiftState [14:33:43]wFMCommunicate request_size=4 [14:33:43]MH_SAM_APDU [14:33:43]CAPDU: 80 13 01 00 [14:33:43]Write to MH i2c: E2 08 00 CC B1 80 13 01 00 00 00 00 00 FA [14:33:43]Write i2c OK [14:33:43]MH_I2C_Read... [14:33:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:33:43]Read from MH i2c: E2 [14:33:43]MH_I2C_Read... [14:33:43]Read from MH i2c: E2 0E 00 [14:33:43]MH_I2C_Read... [14:33:43]Read from MH i2c: E2 0E 00 CC B1 00 09 00 01 04 26 72 66 00 00 00 00 90 00 08 [14:33:43]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [14:33:43]wFMCommunicate OK [14:33:43]SAM_PROTO_GetShiftState done [14:33:43]FM_GetShiftState done [14:33:43]req_shift_opened done [14:33:43]requested_item shift.open_date is exist - process it [14:33:43]req_shift_open_date [14:33:43]req_shift_open_date done [14:33:43]produce_requested_data done [14:33:43]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103695,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [14:33:43]process_action_free close_receipt [14:33:43]json_value_free [14:33:43]json_value_free done [14:33:43]process_json_proto returns [14:33:43]Send response to host [14:33:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103695,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [14:33:43]free response buf [14:33:43]execute_script done [14:33:43]execute_script returns [14:33:43]free content buf [14:33:43]Sock 9.Close socket [14:33:43]Sock 9.Thread stoped [14:35:51]ConnectInit Can't connect to host [14:35:51]CommunicateWithHost connect error [14:35:51]CommunicateWithHost err = -1 [14:35:51]OFD Sender: Server communicate error [14:35:56]OFD Sender: Processing packet 103695 [packets to send 17, broken 16] [14:35:56]ProducePacketName [14:35:56]name=ofd_packets/00103695 [14:35:56]OFD Sender: To server: pG, [14:35:56]CommunicateWithHost lk.salyk.kg:30040 [14:35:56]ConnectInit lk.salyk.kg [14:35:57]Connected sock=9 [14:35: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 39 33 0F 01 00 00 93 96 07 01 CC B1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 50 EC 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 0F 95 01 00 35 04 06 00 BA 71 EF 71 C5 38 63 70 67 0F DE 57 60 72 [14:35: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 39 33 4F 00 00 00 19 EC 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 39 33 10 04 04 00 0F 95 01 00 F4 03 04 00 60 93 72 66 B6 04 01 00 00 56 FF 4D C7 9B 41 74 DC [14:35:57]CommunicateWithHost err = 0 [14:35:57]CheckOFDResponse [14:35:57]1017 (14) - 77093643461234 [14:35:57]1041 (16) - 0000000000875093 [14:35:57]1040 (4) - 103695 [14:35:57]1012 (4) - 19.06.2024 08:14 [14:35:57]1206 (1) - 0 [14:35:57]OFD Sender: Remove packet 103695 [14:35:57]ProducePacketName [14:35:57]name=ofd_packets/00103695 [14:35:57]NVStorageDeleteData [14:35:57]OFD Sender: No OFD packet to send [14:36:02]OFD Sender: No OFD packet to send [14:36:07]OFD Sender: No OFD packet to send [14:36:08]accept exits with 7 [14:36:08]New connection [14:36:08]New thread 3067084132 created [14:36:08]Thread 3067227492 joined [14:36:08]Waiting for new connection... [14:36:08] Sock 7.Parse request [14:36:08]Sock 7.Check first char [14:36:08]Sock 7.First char is OK [14:36:08]request: POST /json_proto HTTP/1.0 [14:36:08]Method: POST [14:36:08]URL: /json_proto [14:36:08]Method is POST - this is cgi request [14:36:08]url: /json_proto [14:36:08]query_string will be loaded in cgi processing [14:36:08]execute_cgi json_proto POST (null) [14:36:08]execute_cgi path=json_proto method=POST [14:36:08]POST find Content-Length [14:36:08]Host: 172.17.38.133:8080 [14:36:08]Content-Length: 682 [14:36:08]Content-Type: application/json [14:36:08] [14:36:08]POST finish read [14:36:08]Found Content-Length = 682 [14:36:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672957", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 30.130, "sum" : 2000.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:36:08]execute_script... [14:36: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)672957", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 30.130, "sum" : 2000.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:36:08]POST & json_proto [14:36:08]process_json_proto [14:36:08]json parsed OK: [14:36:08]protocol is kg_v1.0 [14:36:08]action value=close_receipt [14:36:08]process_action close_receipt [14:36:08]cmd_close_receipt [14:36:08]MH_GetDate [14:36:08]Write to MH i2c: F0 00 00 CD B1 6D [14:36:08]Write i2c OK [14:36:08]MH_I2C_Read... [14:36:08]Read from MH i2c: F0 [14:36:08]MH_I2C_Read... [14:36:08]Read from MH i2c: F0 09 00 [14:36:08]MH_I2C_Read... [14:36:08]Read from MH i2c: F0 09 00 CD B1 00 E5 EC 72 66 BD 8F 7C 64 4B [14:36:08]GetLastDocTimeStamp 1718807632 [14:36:08]current date 1718807781 [14:36:08]FM_GetShiftState [14:36:08]SAM_PROTO_GetShiftState [14:36:08]wFMCommunicate request_size=4 [14:36:08]MH_SAM_APDU [14:36:08]CAPDU: 80 13 01 00 [14:36:08]Write to MH i2c: E2 08 00 CE B1 80 13 01 00 00 00 00 00 FC [14:36:08]Write i2c OK [14:36:08]MH_I2C_Read... [14:36:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:36:08]Read from MH i2c: E2 [14:36:08]MH_I2C_Read... [14:36:08]Read from MH i2c: E2 0E 00 [14:36:08]MH_I2C_Read... [14:36:08]Read from MH i2c: E2 0E 00 CE B1 00 09 00 01 04 26 72 66 00 00 00 00 90 00 0A [14:36:08]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [14:36:08]wFMCommunicate OK [14:36:08]SAM_PROTO_GetShiftState done [14:36:08]FM_GetShiftState done [14:36:08]opened in 1718756868 [14:36:08]opened+sec_in_day 1718843268 [14:36:08]quantity*price = 200063 [14:36:08]sum+1 = 200064 [14:36:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.46 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 126 19.06.2024 14:36 Смена: 353 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103696 ФПД: 245956151038476 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T143621&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103696&fm=245956151038476&tin=02508201610067®Number=0000000000092785&sum=200000 [14:36:09]StoreToDocumentArchive [14:36:09]shift 353 fd 103696 [14:36:09]save to /storage/0353/doc_00103696 [14:36:09]save last doc name /storage/0353/doc_00103696 to /storage/kkm_last_doc_name [14:36:09]save OK [14:36:09]Clear old archive folders... [14:36:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:36:09]tlvbuf is 01350220 [14:36:09]SAM_PROTO_ClearQueue [14:36:09]wFMCommunicate request_size=4 [14:36:09]MH_SAM_APDU [14:36:09]CAPDU: 80 09 00 00 [14:36:09]Write to MH i2c: E2 08 00 DB B1 80 09 00 00 00 00 00 00 FE [14:36:09]Write i2c OK [14:36:09]MH_I2C_Read... [14:36:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:36:09]Read from MH i2c: E2 [14:36:09]MH_I2C_Read... [14:36:09]Read from MH i2c: E2 03 00 [14:36:09]MH_I2C_Read... [14:36:09]Read from MH i2c: E2 03 00 DB B1 00 90 00 00 [14:36:09]RAPDU: 90 00 [14:36:09]wFMCommunicate OK [14:36:09]SAM_PROTO_ClearQueue done [14:36:09]KKMCreateOFDPacket [14:36:09]OFDProtocolAddRootSTLVToBuf [14:36:09]FM_MakeSignedData [14:36:09]FM_MakeSignedData [14:36:09]SAM_PROTO_SignData [14:36:09]wFMCommunicate request_size=4 [14:36:09]MH_SAM_APDU [14:36:09]CAPDU: 80 0D 01 02 [14:36:09]Write to MH i2c: E2 08 00 DC B1 80 0D 01 02 00 00 00 00 06 [14:36:09]Write i2c OK [14:36:09]MH_I2C_Read... [14:36:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:36:09]Read from MH i2c: E2 [14:36:09]MH_I2C_Read... [14:36:09]Read from MH i2c: E2 03 00 [14:36:09]MH_I2C_Read... [14:36:09]Read from MH i2c: E2 03 00 DC B1 00 90 00 01 [14:36:09]RAPDU: 90 00 [14:36:09]wFMCommunicate OK [14:36:09]wFMCommunicate request_size=255 [14:36:09]MH_SAM_APDU [14:36: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 B2 75 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FE 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 E5 EC 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 10 95 01 00 35 04 06 00 DF [14:36:09]Write to MH i2c: E2 02 01 DD B1 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B2 75 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FE 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 E5 EC 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 10 95 01 00 35 04 06 00 DF 00 00 C3 [14:36:09]Write i2c OK [14:36:09]MH_I2C_Read... [14:36:10]Read from MH i2c: E2 [14:36:10]MH_I2C_Read... [14:36:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:36:10]Read from MH i2c: E2 03 00 [14:36:10]MH_I2C_Read... [14:36:10]Read from MH i2c: E2 03 00 DD B1 00 90 00 02 [14:36:10]RAPDU: 90 00 [14:36:10]wFMCommunicate OK [14:36:10]wFMCommunicate request_size=10 [14:36:10]MH_SAM_APDU [14:36:10]CAPDU: 80 0D 02 02 05 B2 21 03 52 0C [14:36:10]Write to MH i2c: E2 0D 00 DE B1 80 0D 02 02 05 00 B2 21 03 52 0C 00 00 47 [14:36:10]Write i2c OK [14:36:10]MH_I2C_Read... [14:36:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:36:10]Read from MH i2c: E2 [14:36:10]MH_I2C_Read... [14:36:10]Read from MH i2c: E2 03 00 [14:36:10]MH_I2C_Read... [14:36:10]Read from MH i2c: E2 03 00 DE B1 00 90 00 03 [14:36:10]RAPDU: 90 00 [14:36:10]wFMCommunicate OK [14:36:10]wFMCommunicate request_size=4 [14:36:10]MH_SAM_APDU [14:36:10]CAPDU: 80 0D 03 02 [14:36:10]Write to MH i2c: E2 08 00 DF B1 80 0D 03 02 00 00 00 00 0B [14:36:10]Write i2c OK [14:36:10]MH_I2C_Read... [14:36:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:36:10]Read from MH i2c: E2 [14:36:10]MH_I2C_Read... [14:36:10]Read from MH i2c: E2 0B 00 [14:36:10]MH_I2C_Read... [14:36:10]Read from MH i2c: E2 0B 00 DF B1 00 F1 95 F4 BA D7 F8 C7 62 90 00 38 [14:36:10]RAPDU: F1 95 F4 BA D7 F8 C7 62 90 00 [14:36:10]wFMCommunicate OK [14:36:10]SAM_PROTO_SignData done [14:36:10]FM_MakeSignedData done [14:36:10]CreateOFDProtocolMessage [14:36:10]wFMCommunicate request_size=4 [14:36:10]MH_SAM_APDU [14:36:10]CAPDU: 80 11 00 00 [14:36:10]Write to MH i2c: E2 08 00 E0 B1 80 11 00 00 00 00 00 00 0B [14:36:10]Write i2c OK [14:36:10]MH_I2C_Read... [14:36:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:36:10]Read from MH i2c: E2 [14:36:10]MH_I2C_Read... [14:36:10]Read from MH i2c: E2 17 00 [14:36:10]MH_I2C_Read... [14:36:10]Read from MH i2c: E2 17 00 E0 B1 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 5E [14:36:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [14:36:10]wFMCommunicate OK [14:36:10]CreateOFDProtocolMessage done [14:36:10]OFDSenderStorePacket 103696 [14:36:10]StoreOFDPacket docnum=103696 [14:36:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 D2 09 07 01 E9 7A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B2 75 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FE 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 E5 EC 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 10 95 01 00 35 04 06 00 DF B2 21 03 52 0C F1 95 F4 BA D7 F8 C7 62 [14:36:10]CheckFolder [14:36:10]dirname=/storage/ofd_packets [14:36:10]CheckFolder done [14:36:10]ProducePacketName [14:36:10]name=ofd_packets/00103696 [14:36:10]NVStorageSaveData ofd_packets/00103696 [14:36:10]File name is /storage/ofd_packets/00103696 [14:36:10]Write 301 bytes [14:36:10]NVStorageSaveData done [14:36:10]OFDSenderStorePacket done [14:36:10]KKMCreateOFDPacket done [14:36:10]NVStorageSaveData kkm_last_timestamp [14:36:10]File name is /storage/kkm_last_timestamp [14:36:10]Write 4 bytes [14:36:10]NVStorageSaveData done [14:36:10]ExternCall_PrintAddStr [14:36:10]wPrintStart [14:36:10]Write to MH i2c: 01 00 00 E1 B1 92 [14:36:10]Write i2c OK [14:36:10]MH_I2C_Read... [14:36:10]Read from MH i2c: 01 [14:36:10]MH_I2C_Read... [14:36:10]Read from MH i2c: 01 07 00 [14:36:10]MH_I2C_Read... [14:36:10]Read from MH i2c: 01 07 00 E1 B1 00 00 00 00 00 FF 0F A7 [14:36:10]RasterBufferAndPrint [14:36:10]line Счет N : (1)672957 [14:36:10]line ИНН: 02508201610067 [14:36:10]line Контрольно-Кассовый Чек [14:36:10]line ПРОДАЖА [14:36:10]line ТРК (МРК, ГНК) : 32 [14:36:10]line Товар: 2710124130 [14:36:10]line Аи-92-К-5 [14:36:10]line 30.130 * 66.40 [14:36:10]line = 2000.63 [14:36:10]line НДС 12% НСП 1% [14:36:10]line > о реализуемом товаре [14:36:10]line ОКРУГЛЕНИЕ: -0.63 [14:36:10]line ИТОГО: 2000.00 [14:36:10]line Внесено: 2000.00 [14:36:10]line СДАЧА: 0.00 [14:36:10]line НСП 1% : 17.70 [14:36:10]line НДС 12% : 212.46 [14:36:10]line Наличными: 2000.00 [14:36:10]line Безнал.: 0.00 [14:36:10]line Место: АЗС № 120 "Партнер Нефть" [14:36:10]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [14:36:10]line СНО: Общий режим [14:36:10]line Чек 126 19.06.2024 14:36 [14:36:10]line Смена: 353 ФФД: 1.0 [14:36:10]line ЗНМ: 0300000164 [14:36:10]line РНМ: 0000000000092785 [14:36:10]line Версия ККМ: 001 [14:36:10]line ФМ: 0000000000875093 [14:36:10]line ФД: 103696 [14:36:10]line ФПД: 245956151038476 [14:36:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T143621&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103696&fm=245956151038476&tin=02508201610067®Number=0000000000092785&sum=200000 [14:36:10]OFD Sender: Processing packet 103696 [packets to send 17, broken 16] [14:36:10]ProducePacketName [14:36:10]name=ofd_packets/00103696 [14:36:10]OFD Sender: To server: pG, [14:36:10]CommunicateWithHost lk.salyk.kg:30040 [14:36:10]ConnectInit lk.salyk.kg [14:36:10]written 0, free lines is 4095 [14:36:10]Connected sock=10 [14:36: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 39 33 0F 01 00 00 D2 09 07 01 E9 7A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B2 75 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FE 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 E5 EC 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 10 95 01 00 35 04 06 00 DF B2 21 03 52 0C F1 95 F4 BA D7 F8 C7 62 [14:36: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 39 33 4F 00 00 00 90 A9 47 00 2B 21 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 10 95 01 00 F4 03 04 00 6E 93 72 66 B6 04 01 00 00 69 B7 E7 53 15 4F DE 31 [14:36:11]CommunicateWithHost err = 0 [14:36:11]CheckOFDResponse [14:36:11]1017 (14) - 77093643461234 [14:36:11]1041 (16) - 0000000000875093 [14:36:11]1040 (4) - 103696 [14:36:11]1012 (4) - 19.06.2024 08:14 [14:36:11]1206 (1) - 0 [14:36:11]OFD Sender: Remove packet 103696 [14:36:11]ProducePacketName [14:36:11]name=ofd_packets/00103696 [14:36:11]NVStorageDeleteData [14:36:11]Write to MH i2c: 01 00 00 0C B2 BE [14:36:11]Write i2c OK [14:36:11]MH_I2C_Read... [14:36:11]Read from MH i2c: 01 [14:36:11]MH_I2C_Read... [14:36:11]Read from MH i2c: 01 07 00 [14:36:11]MH_I2C_Read... [14:36:11]Read from MH i2c: 01 07 00 0C B2 00 00 00 00 00 EE 0C BF [14:36:11]RasterBufferAndPrint [14:36:11]line [14:36:11]line [14:36:11]line [14:36:11]line [14:36:11]line [14:36:11]written 0, free lines is 3319 [14:36:11]MH_Cut [14:36:11]Write to MH i2c: D1 01 00 13 B2 01 97 [14:36:11]Write i2c OK [14:36:11]MH_I2C_Read... [14:36:11]Read from MH i2c: D1 [14:36:11]MH_I2C_Read... [14:36:11]Read from MH i2c: D1 01 00 [14:36:11]MH_I2C_Read... [14:36:11]Read from MH i2c: D1 01 00 13 B2 00 96 [14:36:11]Write to MH i2c: 01 00 00 14 B2 C6 [14:36:11]Write i2c OK [14:36:11]MH_I2C_Read... [14:36:11]OFD Sender: No OFD packet to send [14:36:11]*** Cut start [14:36:11]*** Partial cut [14:36:11]*** CUTSNS_PIN = 1 [14:36:11]*** CUTSNS_PIN = 0 [14:36:12]*** Brake cut motor [14:36:12]Read from MH i2c: 01 [14:36:12]MH_I2C_Read... [14:36:12]*** Stop cut motor [14:36:12]*** Cut end [14:36:12]Read from MH i2c: 01 07 00 [14:36:12]MH_I2C_Read... [14:36:12]Read from MH i2c: 01 07 00 14 B2 00 00 00 00 00 FF 0F DB [14:36:12]process_action close_receipt done [14:36:12]requested_data is exist [14:36:12]produce_requested_data [14:36:12]requested_item fm.sn is exist - process it [14:36:12]wFMCommunicate request_size=4 [14:36:12]MH_SAM_APDU [14:36:12]CAPDU: 80 11 00 00 [14:36:12]Write to MH i2c: E2 08 00 15 B2 80 11 00 00 00 00 00 00 41 [14:36:12]Write i2c OK [14:36:12]MH_I2C_Read... [14:36:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:36:12]Read from MH i2c: E2 [14:36:12]MH_I2C_Read... [14:36:12]Read from MH i2c: E2 17 00 [14:36:12]MH_I2C_Read... [14:36:12]Read from MH i2c: E2 17 00 15 B2 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 94 [14:36:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [14:36:12]wFMCommunicate OK [14:36:12]requested_item fd.num is exist - process it [14:36:12]SAM_PROTO_GetFieldsCounters [14:36:12]wFMCommunicate request_size=4 [14:36:12]MH_SAM_APDU [14:36:12]CAPDU: 80 13 00 00 [14:36:12]Write to MH i2c: E2 08 00 16 B2 80 13 00 00 00 00 00 00 44 [14:36:12]Write i2c OK [14:36:12]MH_I2C_Read... [14:36:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:36:12]Read from MH i2c: E2 [14:36:12]MH_I2C_Read... [14:36:12]Read from MH i2c: E2 62 00 [14:36:12]MH_I2C_Read... [14:36:12]Read from MH i2c: E2 62 00 16 B2 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 10 95 01 00 0E 04 04 00 61 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 ED [14:36: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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 10 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 7E 00 00 00 5E 04 04 00 7E 00 00 00 57 04 04 00 7F 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:36:12]wFMCommunicate OK [14:36:12]SAM_PROTO_GetFieldsCounters done [14:36:12]requested_item shift.num is exist - process it [14:36:12]requested_item shift.opened is exist - process it [14:36:12]req_shift_opened [14:36:12]FM_GetShiftState [14:36:12]SAM_PROTO_GetShiftState [14:36:12]wFMCommunicate request_size=4 [14:36:12]MH_SAM_APDU [14:36:12]CAPDU: 80 13 01 00 [14:36:12]Write to MH i2c: E2 08 00 17 B2 80 13 01 00 00 00 00 00 46 [14:36:12]Write i2c OK [14:36:12]MH_I2C_Read... [14:36:12]Read from MH i2c: E2 [14:36:12]MH_I2C_Read... [14:36:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:36:12]Read from MH i2c: E2 0E 00 [14:36:12]MH_I2C_Read... [14:36:12]Read from MH i2c: E2 0E 00 17 B2 00 09 00 01 04 26 72 66 00 00 00 00 90 00 54 [14:36:12]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [14:36:12]wFMCommunicate OK [14:36:12]SAM_PROTO_GetShiftState done [14:36:12]FM_GetShiftState done [14:36:12]req_shift_opened done [14:36:12]requested_item shift.open_date is exist - process it [14:36:12]req_shift_open_date [14:36:12]req_shift_open_date done [14:36:12]produce_requested_data done [14:36:12]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103696,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [14:36:12]process_action_free close_receipt [14:36:12]json_value_free [14:36:12]json_value_free done [14:36:12]process_json_proto returns [14:36:12]Send response to host [14:36:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103696,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [14:36:12]free response buf [14:36:12]execute_script done [14:36:12]execute_script returns [14:36:12]free content buf [14:36:12]Sock 7.Close socket [14:36:12]Sock 7.Thread stoped [14:36:16]OFD Sender: No OFD packet to send [14:36:21]OFD Sender: No OFD packet to send [14:36:26]OFD Sender: No OFD packet to send [14:36:31]OFD Sender: No OFD packet to send [14:36:36]OFD Sender: No OFD packet to send [14:36:41]OFD Sender: No OFD packet to send [14:36:46]OFD Sender: No OFD packet to send [14:36:51]OFD Sender: No OFD packet to send [14:36:56]OFD Sender: No OFD packet to send [14:37:01]OFD Sender: No OFD packet to send [14:37:06]OFD Sender: No OFD packet to send [14:37:11]OFD Sender: No OFD packet to send [14:37:16]OFD Sender: No OFD packet to send [14:37:21]OFD Sender: No OFD packet to send [14:37:26]OFD Sender: No OFD packet to send [14:37:31]OFD Sender: No OFD packet to send [14:37:36]OFD Sender: No OFD packet to send [14:37:41]OFD Sender: No OFD packet to send [14:37:46]OFD Sender: No OFD packet to send [14:37:51]OFD Sender: No OFD packet to send [14:37:56]OFD Sender: No OFD packet to send [14:38:01]OFD Sender: No OFD packet to send [14:38:06]OFD Sender: No OFD packet to send [14:38:11]OFD Sender: No OFD packet to send [14:38:16]OFD Sender: No OFD packet to send [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:41]OFD Sender: No OFD packet to send [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:56]OFD Sender: No OFD packet to send [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:47]OFD Sender: No OFD packet to send [14:43:52]OFD Sender: No OFD packet to send [14:43:57]OFD Sender: No OFD packet to send [14:44:02]OFD Sender: No OFD packet to send [14:44:07]OFD Sender: No OFD packet to send [14:44:12]OFD Sender: No OFD packet to send [14:44:17]OFD Sender: No OFD packet to send [14:44:22]OFD Sender: No OFD packet to send [14:44:27]OFD Sender: No OFD packet to send [14:44:32]OFD Sender: No OFD packet to send [14:44:37]OFD Sender: No OFD packet to send [14:44:42]OFD Sender: No OFD packet to send [14:44:47]OFD Sender: No OFD packet to send [14:44:52]OFD Sender: No OFD packet to send [14:44:57]OFD Sender: No OFD packet to send [14:45:02]OFD Sender: No OFD packet to send [14:45:05]accept exits with 9 [14:45:05]New connection [14:45:05]New thread 3067227492 created [14:45:05]Thread 3067084132 joined [14:45:05]Waiting for new connection... [14:45:05] Sock 9.Parse request [14:45:05]Sock 9.Check first char [14:45:05]Sock 9.First char is OK [14:45:05]request: POST /json_proto HTTP/1.0 [14:45:05]Method: POST [14:45:05]URL: /json_proto [14:45:05]Method is POST - this is cgi request [14:45:05]url: /json_proto [14:45:05]query_string will be loaded in cgi processing [14:45:05]execute_cgi json_proto POST (null) [14:45:05]execute_cgi path=json_proto method=POST [14:45:05]POST find Content-Length [14:45:05]Host: 172.17.38.133:8080 [14:45:05]Content-Length: 687 [14:45:05]Content-Type: application/json [14:45:05] [14:45:05]POST finish read [14:45:05]Found Content-Length = 687 [14:45:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672958", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 13.720, "sum" : 1000.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:45:05]execute_script... [14: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)672958", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 13.720, "sum" : 1000.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:45:05]POST & json_proto [14:45:05]process_json_proto [14:45:05]json parsed OK: [14:45:05]protocol is kg_v1.0 [14:45:05]action value=close_receipt [14:45:05]process_action close_receipt [14:45:05]cmd_close_receipt [14:45:05]MH_GetDate [14:45:05]Write to MH i2c: F0 00 00 18 B2 B9 [14:45:05]Write i2c OK [14:45:05]MH_I2C_Read... [14:45:05]Read from MH i2c: F0 [14:45:05]MH_I2C_Read... [14:45:05]Read from MH i2c: F0 09 00 [14:45:05]MH_I2C_Read... [14:45:05]Read from MH i2c: F0 09 00 18 B2 00 FD EE 72 66 BD 8F 7C 64 B1 [14:45:05]GetLastDocTimeStamp 1718807781 [14:45:05]current date 1718808317 [14:45:05]FM_GetShiftState [14:45:05]SAM_PROTO_GetShiftState [14:45:05]wFMCommunicate request_size=4 [14:45:05]MH_SAM_APDU [14:45:05]CAPDU: 80 13 01 00 [14:45:05]Write to MH i2c: E2 08 00 19 B2 80 13 01 00 00 00 00 00 48 [14:45:05]Write i2c OK [14:45:05]MH_I2C_Read... [14:45:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:45:05]Read from MH i2c: E2 [14:45:05]MH_I2C_Read... [14:45:05]Read from MH i2c: E2 0E 00 [14:45:05]MH_I2C_Read... [14:45:05]Read from MH i2c: E2 0E 00 19 B2 00 09 00 01 04 26 72 66 00 00 00 00 90 00 56 [14:45:05]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [14:45:05]wFMCommunicate OK [14:45:05]SAM_PROTO_GetShiftState done [14:45:05]FM_GetShiftState done [14:45:05]opened in 1718756868 [14:45:05]opened+sec_in_day 1718843268 [14:45:05]quantity*price = 100018 [14:45:05]sum+1 = 100020 [14:45:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.19 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 127 19.06.2024 14:45 Смена: 353 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103697 ФПД: 83504560803255 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T144517&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103697&fm=83504560803255&tin=02508201610067®Number=0000000000092785&sum=100000 [14:45:06]StoreToDocumentArchive [14:45:06]shift 353 fd 103697 [14:45:06]save to /storage/0353/doc_00103697 [14:45:06]save last doc name /storage/0353/doc_00103697 to /storage/kkm_last_doc_name [14:45:06]save OK [14:45:06]Clear old archive folders... [14:45:06]ProcessDocumentItem done err = 0, tmpTLVsize=252 [14:45:06]tlvbuf is 015D8970 [14:45:06]SAM_PROTO_ClearQueue [14:45:06]wFMCommunicate request_size=4 [14:45:06]MH_SAM_APDU [14:45:06]CAPDU: 80 09 00 00 [14:45:06]Write to MH i2c: E2 08 00 26 B2 80 09 00 00 00 00 00 00 4A [14:45:06]Write i2c OK [14:45:06]MH_I2C_Read... [14:45:06]Read from MH i2c: E2 [14:45:06]MH_I2C_Read... [14:45:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:45:06]Read from MH i2c: E2 03 00 [14:45:06]MH_I2C_Read... [14:45:06]Read from MH i2c: E2 03 00 26 B2 00 90 00 4C [14:45:06]RAPDU: 90 00 [14:45:06]wFMCommunicate OK [14:45:06]SAM_PROTO_ClearQueue done [14:45:06]KKMCreateOFDPacket [14:45:06]OFDProtocolAddRootSTLVToBuf [14:45:06]FM_MakeSignedData [14:45:06]FM_MakeSignedData [14:45:06]SAM_PROTO_SignData [14:45:06]wFMCommunicate request_size=4 [14:45:06]MH_SAM_APDU [14:45:06]CAPDU: 80 0D 01 02 [14:45:06]Write to MH i2c: E2 08 00 27 B2 80 0D 01 02 00 00 00 00 52 [14:45:06]Write i2c OK [14:45:06]MH_I2C_Read... [14:45:06]Read from MH i2c: E2 [14:45:06]MH_I2C_Read... [14:45:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:45:06]Read from MH i2c: E2 03 00 [14:45:06]MH_I2C_Read... [14:45:06]Read from MH i2c: E2 03 00 27 B2 00 90 00 4D [14:45:06]RAPDU: 90 00 [14:45:06]wFMCommunicate OK [14:45:06]wFMCommunicate request_size=255 [14:45:06]MH_SAM_APDU [14: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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 FD EE 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 11 95 01 00 35 04 06 00 [14:45:06]Write to MH i2c: E2 02 01 28 B2 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 FD EE 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 11 95 01 00 35 04 06 00 00 00 F1 [14:45:06]Write i2c OK [14:45:06]MH_I2C_Read... [14:45:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:45:06]Read from MH i2c: E2 [14:45:06]MH_I2C_Read... [14:45:06]Read from MH i2c: E2 03 00 [14:45:06]MH_I2C_Read... [14:45:06]Read from MH i2c: E2 03 00 28 B2 00 90 00 4E [14:45:06]RAPDU: 90 00 [14:45:06]wFMCommunicate OK [14:45:06]wFMCommunicate request_size=11 [14:45:06]MH_SAM_APDU [14:45:06]CAPDU: 80 0D 02 02 06 4B F2 6B AF 0D B7 [14:45:06]Write to MH i2c: E2 0E 00 29 B2 80 0D 02 02 06 00 4B F2 6B AF 0D B7 00 00 7C [14:45:06]Write i2c OK [14:45:06]MH_I2C_Read... [14:45:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:45:06]Read from MH i2c: E2 [14:45:06]MH_I2C_Read... [14:45:06]Read from MH i2c: E2 03 00 [14:45:06]MH_I2C_Read... [14:45:06]Read from MH i2c: E2 03 00 29 B2 00 90 00 4F [14:45:06]RAPDU: 90 00 [14:45:06]wFMCommunicate OK [14:45:06]wFMCommunicate request_size=4 [14:45:06]MH_SAM_APDU [14:45:06]CAPDU: 80 0D 03 02 [14:45:06]Write to MH i2c: E2 08 00 2A B2 80 0D 03 02 00 00 00 00 57 [14:45:06]Write i2c OK [14:45:06]MH_I2C_Read... [14:45:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:45:06]Read from MH i2c: E2 [14:45:06]MH_I2C_Read... [14:45:06]Read from MH i2c: E2 0B 00 [14:45:06]MH_I2C_Read... [14:45:06]Read from MH i2c: E2 0B 00 2A B2 00 03 48 F1 5B C0 1D FA 08 90 00 CE [14:45:06]RAPDU: 03 48 F1 5B C0 1D FA 08 90 00 [14:45:06]wFMCommunicate OK [14:45:06]SAM_PROTO_SignData done [14:45:06]FM_MakeSignedData done [14:45:06]CreateOFDProtocolMessage [14:45:06]wFMCommunicate request_size=4 [14:45:06]MH_SAM_APDU [14:45:06]CAPDU: 80 11 00 00 [14:45:06]Write to MH i2c: E2 08 00 2B B2 80 11 00 00 00 00 00 00 57 [14:45:06]Write i2c OK [14:45:06]MH_I2C_Read... [14:45:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:45:06]Read from MH i2c: E2 [14:45:06]MH_I2C_Read... [14:45:06]Read from MH i2c: E2 17 00 [14:45:06]MH_I2C_Read... [14:45:06]Read from MH i2c: E2 17 00 2B B2 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 AA [14:45:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [14:45:06]wFMCommunicate OK [14:45:06]CreateOFDProtocolMessage done [14:45:06]OFDSenderStorePacket 103697 [14:45:06]StoreOFDPacket docnum=103697 [14:45:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 A6 04 08 01 88 54 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 FD EE 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 11 95 01 00 35 04 06 00 4B F2 6B AF 0D B7 03 48 F1 5B C0 1D FA 08 [14:45:06]CheckFolder [14:45:06]dirname=/storage/ofd_packets [14:45:06]CheckFolder done [14:45:06]ProducePacketName [14:45:06]name=ofd_packets/00103697 [14:45:06]NVStorageSaveData ofd_packets/00103697 [14:45:06]File name is /storage/ofd_packets/00103697 [14:45:06]Write 302 bytes [14:45:06]NVStorageSaveData done [14:45:06]OFDSenderStorePacket done [14:45:06]KKMCreateOFDPacket done [14:45:06]NVStorageSaveData kkm_last_timestamp [14:45:06]File name is /storage/kkm_last_timestamp [14:45:06]Write 4 bytes [14:45:06]NVStorageSaveData done [14:45:06]ExternCall_PrintAddStr [14:45:06]wPrintStart [14:45:06]Write to MH i2c: 01 00 00 2C B2 DE [14:45:06]Write i2c OK [14:45:06]MH_I2C_Read... [14:45:06]Read from MH i2c: 01 [14:45:06]MH_I2C_Read... [14:45:06]Read from MH i2c: 01 07 00 [14:45:06]MH_I2C_Read... [14:45:06]Read from MH i2c: 01 07 00 2C B2 00 00 00 00 00 FF 0F F3 [14:45:06]RasterBufferAndPrint [14:45:06]line Счет N : (1)672958 [14:45:06]line ИНН: 02508201610067 [14:45:06]line Контрольно-Кассовый Чек [14:45:06]line ПРОДАЖА [14:45:06]line ТРК (МРК, ГНК) : 11 [14:45:06]line Товар: 2710194210 [14:45:06]line ДТ(л)-К-5 [14:45:06]line 13.720 * 72.90 [14:45:06]line = 1000.19 [14:45:06]line НДС 12% НСП 1% [14:45:06]line > о реализуемом товаре [14:45:06]line ОКРУГЛЕНИЕ: -0.19 [14:45:06]line ИТОГО: 1000.00 [14:45:06]line Внесено: 1000.00 [14:45:06]line СДАЧА: 0.00 [14:45:06]line НСП 1% : 8.85 [14:45:06]line НДС 12% : 106.21 [14:45:06]line Наличными: 1000.00 [14:45:06]line Безнал.: 0.00 [14:45:06]line Место: АЗС № 120 "Партнер Нефть" [14:45:06]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [14:45:06]line СНО: Общий режим [14:45:06]line Чек 127 19.06.2024 14:45 [14:45:06]line Смена: 353 ФФД: 1.0 [14:45:06]line ЗНМ: 0300000164 [14:45:06]line РНМ: 0000000000092785 [14:45:06]line Версия ККМ: 001 [14:45:06]line ФМ: 0000000000875093 [14:45:06]line ФД: 103697 [14:45:06]line ФПД: 83504560803255 [14:45:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T144517&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103697&fm=83504560803255&tin=02508201610067®Number=0000000000092785&sum=100000 [14:45:07]OFD Sender: Processing packet 103697 [packets to send 17, broken 16] [14:45:07]ProducePacketName [14:45:07]name=ofd_packets/00103697 [14:45:07]OFD Sender: To server: pG, [14:45:07]CommunicateWithHost lk.salyk.kg:30040 [14:45:07]ConnectInit lk.salyk.kg [14:45:07]written 0, free lines is 4095 [14:45:07]Connected sock=10 [14: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 39 33 10 01 00 00 A6 04 08 01 88 54 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 FD EE 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 11 95 01 00 35 04 06 00 4B F2 6B AF 0D B7 03 48 F1 5B C0 1D FA 08 [14:45:07]Write to MH i2c: 01 00 00 57 B2 09 [14:45:07]Write i2c OK [14:45:07]MH_I2C_Read... [14:45:07]Read from MH i2c: 01 [14:45:07]MH_I2C_Read... [14:45:07]Read from MH i2c: 01 07 00 [14:45:07]MH_I2C_Read... [14:45:07]Read from MH i2c: 01 07 00 57 B2 00 00 00 00 00 DD 0C F9 [14:45:07]RasterBufferAndPrint [14:45:07]line [14:45:07]line [14:45:07]line [14:45:07]line [14:45:07]line [14:45:07]written 0, free lines is 3300 [14:45:07]MH_Cut [14:45:07]Write to MH i2c: D1 01 00 5E B2 01 E2 [14:45:07]Write i2c OK [14:45:07]MH_I2C_Read... [14:45:07]Read from MH i2c: D1 [14:45:07]MH_I2C_Read... [14:45:07]Read from MH i2c: D1 01 00 [14:45:07]MH_I2C_Read... [14:45:07]Read from MH i2c: D1 01 00 5E B2 00 E1 [14:45:07]Write to MH i2c: 01 00 00 5F B2 11 [14:45:07]Write i2c OK [14:45:07]MH_I2C_Read... [14: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 39 33 4F 00 00 00 97 10 47 00 4B 04 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 11 95 01 00 F4 03 04 00 86 95 72 66 B6 04 01 00 00 D5 DD D3 D0 08 E6 07 23 [14:45:07]CommunicateWithHost err = 0 [14:45:07]CheckOFDResponse [14:45:07]1017 (14) - 77093643461234 [14:45:07]1041 (16) - 0000000000875093 [14:45:07]1040 (4) - 103697 [14:45:07]1012 (4) - 19.06.2024 08:23 [14:45:07]1206 (1) - 0 [14:45:07]OFD Sender: Remove packet 103697 [14:45:07]ProducePacketName [14:45:07]name=ofd_packets/00103697 [14:45:07]NVStorageDeleteData [14:45:08]OFD Sender: No OFD packet to send [14:45:08]*** Cut start [14:45:08]*** Partial cut [14:45:08]*** CUTSNS_PIN = 1 [14:45:08]*** CUTSNS_PIN = 0 [14:45:08]*** Brake cut motor [14:45:08]Read from MH i2c: 01 [14:45:08]MH_I2C_Read... [14:45:08]*** Stop cut motor [14:45:08]*** Cut end [14:45:08]Read from MH i2c: 01 07 00 [14:45:08]MH_I2C_Read... [14:45:08]Read from MH i2c: 01 07 00 5F B2 00 00 00 00 00 FF 0F 26 [14:45:08]process_action close_receipt done [14:45:08]requested_data is exist [14:45:08]produce_requested_data [14:45:08]requested_item fm.sn is exist - process it [14:45:08]wFMCommunicate request_size=4 [14:45:08]MH_SAM_APDU [14:45:08]CAPDU: 80 11 00 00 [14:45:08]Write to MH i2c: E2 08 00 60 B2 80 11 00 00 00 00 00 00 8C [14:45:08]Write i2c OK [14:45:08]MH_I2C_Read... [14:45:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:45:08]Read from MH i2c: E2 [14:45:08]MH_I2C_Read... [14:45:08]Read from MH i2c: E2 17 00 [14:45:08]MH_I2C_Read... [14:45:08]Read from MH i2c: E2 17 00 60 B2 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 DF [14:45:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [14:45:08]wFMCommunicate OK [14:45:08]requested_item fd.num is exist - process it [14:45:08]SAM_PROTO_GetFieldsCounters [14:45:08]wFMCommunicate request_size=4 [14:45:08]MH_SAM_APDU [14:45:08]CAPDU: 80 13 00 00 [14:45:08]Write to MH i2c: E2 08 00 61 B2 80 13 00 00 00 00 00 00 8F [14:45:08]Write i2c OK [14:45:08]MH_I2C_Read... [14:45:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:45:09]Read from MH i2c: E2 [14:45:09]MH_I2C_Read... [14:45:09]Read from MH i2c: E2 62 00 [14:45:09]MH_I2C_Read... [14:45:09]Read from MH i2c: E2 62 00 61 B2 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 11 95 01 00 0E 04 04 00 61 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 3C [14:45:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 11 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 7F 00 00 00 5E 04 04 00 7F 00 00 00 57 04 04 00 80 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:45:09]wFMCommunicate OK [14:45:09]SAM_PROTO_GetFieldsCounters done [14:45:09]requested_item shift.num is exist - process it [14:45:09]requested_item shift.opened is exist - process it [14:45:09]req_shift_opened [14:45:09]FM_GetShiftState [14:45:09]SAM_PROTO_GetShiftState [14:45:09]wFMCommunicate request_size=4 [14:45:09]MH_SAM_APDU [14:45:09]CAPDU: 80 13 01 00 [14:45:09]Write to MH i2c: E2 08 00 62 B2 80 13 01 00 00 00 00 00 91 [14:45:09]Write i2c OK [14:45:09]MH_I2C_Read... [14:45:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:45:09]Read from MH i2c: E2 [14:45:09]MH_I2C_Read... [14:45:09]Read from MH i2c: E2 0E 00 [14:45:09]MH_I2C_Read... [14:45:09]Read from MH i2c: E2 0E 00 62 B2 00 09 00 01 04 26 72 66 00 00 00 00 90 00 9F [14:45:09]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [14:45:09]wFMCommunicate OK [14:45:09]SAM_PROTO_GetShiftState done [14:45:09]FM_GetShiftState done [14:45:09]req_shift_opened done [14:45:09]requested_item shift.open_date is exist - process it [14:45:09]req_shift_open_date [14:45:09]req_shift_open_date done [14:45:09]produce_requested_data done [14:45:09]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103697,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [14:45:09]process_action_free close_receipt [14:45:09]json_value_free [14:45:09]json_value_free done [14:45:09]process_json_proto returns [14:45:09]Send response to host [14:45:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103697,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [14:45:09]free response buf [14:45:09]execute_script done [14:45:09]execute_script returns [14:45:09]free content buf [14:45:09]Sock 9.Close socket [14:45:09]Sock 9.Thread stoped [14:45:13]OFD Sender: No OFD packet to send [14:45:18]OFD Sender: No OFD packet to send [14:45:23]OFD Sender: No OFD packet to send [14:45:28]OFD Sender: No OFD packet to send [14:45:33]OFD Sender: No OFD packet to send [14:45:38]OFD Sender: No OFD packet to send [14:45:43]OFD Sender: No OFD packet to send [14:45:48]OFD Sender: No OFD packet to send [14:45:53]OFD Sender: No OFD packet to send [14:45:58]OFD Sender: No OFD packet to send [14:46:03]OFD Sender: No OFD packet to send [14:46:08]OFD Sender: No OFD packet to send [14:46:12]accept exits with 7 [14:46:12]New connection [14:46:12]New thread 3067084132 created [14:46:12]Thread 3067227492 joined [14:46:12]Waiting for new connection... [14:46:12] Sock 7.Parse request [14:46:12]Sock 7.Check first char [14:46:12]Sock 7.First char is OK [14:46:12]request: POST /json_proto HTTP/1.0 [14:46:12]Method: POST [14:46:12]URL: /json_proto [14:46:12]Method is POST - this is cgi request [14:46:12]url: /json_proto [14:46:12]query_string will be loaded in cgi processing [14:46:12]execute_cgi json_proto POST (null) [14:46:12]execute_cgi path=json_proto method=POST [14:46:12]POST find Content-Length [14:46:12]Host: 172.17.38.133:8080 [14:46:12]Content-Length: 687 [14:46:12]Content-Type: application/json [14:46:12] [14:46:12]POST finish read [14:46:12]Found Content-Length = 687 [14:46:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672959", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 13.720, "sum" : 1000.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:46:12]execute_script... [14:46:12]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672959", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 13.720, "sum" : 1000.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:46:12]POST & json_proto [14:46:12]process_json_proto [14:46:12]json parsed OK: [14:46:12]protocol is kg_v1.0 [14:46:12]action value=close_receipt [14:46:12]process_action close_receipt [14:46:12]cmd_close_receipt [14:46:12]MH_GetDate [14:46:12]Write to MH i2c: F0 00 00 63 B2 04 [14:46:12]Write i2c OK [14:46:12]MH_I2C_Read... [14:46:12]Read from MH i2c: F0 [14:46:12]MH_I2C_Read... [14:46:12]Read from MH i2c: F0 09 00 [14:46:12]MH_I2C_Read... [14:46:12]Read from MH i2c: F0 09 00 63 B2 00 41 EF 72 66 BD 8F 7C 64 41 [14:46:12]GetLastDocTimeStamp 1718808317 [14:46:12]current date 1718808385 [14:46:12]FM_GetShiftState [14:46:12]SAM_PROTO_GetShiftState [14:46:12]wFMCommunicate request_size=4 [14:46:12]MH_SAM_APDU [14:46:12]CAPDU: 80 13 01 00 [14:46:12]Write to MH i2c: E2 08 00 64 B2 80 13 01 00 00 00 00 00 93 [14:46:12]Write i2c OK [14:46:12]MH_I2C_Read... [14:46:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:46:12]Read from MH i2c: E2 [14:46:12]MH_I2C_Read... [14:46:12]Read from MH i2c: E2 0E 00 [14:46:12]MH_I2C_Read... [14:46:12]Read from MH i2c: E2 0E 00 64 B2 00 09 00 01 04 26 72 66 00 00 00 00 90 00 A1 [14:46:12]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [14:46:12]wFMCommunicate OK [14:46:12]SAM_PROTO_GetShiftState done [14:46:12]FM_GetShiftState done [14:46:12]opened in 1718756868 [14:46:12]opened+sec_in_day 1718843268 [14:46:12]quantity*price = 100018 [14:46:12]sum+1 = 100020 [14:46:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.19 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 128 19.06.2024 14:46 Смена: 353 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103698 ФПД: 227984329231550 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T144625&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103698&fm=227984329231550&tin=02508201610067®Number=0000000000092785&sum=100000 [14:46:13]StoreToDocumentArchive [14:46:13]shift 353 fd 103698 [14:46:13]save to /storage/0353/doc_00103698 [14:46:13]save last doc name /storage/0353/doc_00103698 to /storage/kkm_last_doc_name [14:46:13]save OK [14:46:13]Clear old archive folders... [14:46:13]ProcessDocumentItem done err = 0, tmpTLVsize=252 [14:46:13]tlvbuf is B6F98840 [14:46:13]SAM_PROTO_ClearQueue [14:46:13]wFMCommunicate request_size=4 [14:46:13]MH_SAM_APDU [14:46:13]CAPDU: 80 09 00 00 [14:46:13]Write to MH i2c: E2 08 00 71 B2 80 09 00 00 00 00 00 00 95 [14:46:13]Write i2c OK [14:46:13]MH_I2C_Read... [14:46:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:46:13]Read from MH i2c: E2 [14:46:13]MH_I2C_Read... [14:46:13]Read from MH i2c: E2 03 00 [14:46:13]MH_I2C_Read... [14:46:13]Read from MH i2c: E2 03 00 71 B2 00 90 00 97 [14:46:13]RAPDU: 90 00 [14:46:13]wFMCommunicate OK [14:46:13]SAM_PROTO_ClearQueue done [14:46:13]KKMCreateOFDPacket [14:46:13]OFDProtocolAddRootSTLVToBuf [14:46:13]FM_MakeSignedData [14:46:13]FM_MakeSignedData [14:46:13]SAM_PROTO_SignData [14:46:13]wFMCommunicate request_size=4 [14:46:13]MH_SAM_APDU [14:46:13]CAPDU: 80 0D 01 02 [14:46:13]Write to MH i2c: E2 08 00 72 B2 80 0D 01 02 00 00 00 00 9D [14:46:13]Write i2c OK [14:46:13]MH_I2C_Read... [14:46:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:46:13]Read from MH i2c: E2 [14:46:13]MH_I2C_Read... [14:46:13]Read from MH i2c: E2 03 00 [14:46:13]MH_I2C_Read... [14:46:13]Read from MH i2c: E2 03 00 72 B2 00 90 00 98 [14:46:13]RAPDU: 90 00 [14:46:13]wFMCommunicate OK [14:46:13]wFMCommunicate request_size=255 [14:46:13]MH_SAM_APDU [14:46:13]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 41 EF 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 12 95 01 00 35 04 06 00 [14:46:13]Write to MH i2c: E2 02 01 73 B2 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 41 EF 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 12 95 01 00 35 04 06 00 00 00 83 [14:46:13]Write i2c OK [14:46:13]MH_I2C_Read... [14:46:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:46:13]Read from MH i2c: E2 [14:46:13]MH_I2C_Read... [14:46:13]Read from MH i2c: E2 03 00 [14:46:13]MH_I2C_Read... [14:46:13]Read from MH i2c: E2 03 00 73 B2 00 90 00 99 [14:46:13]RAPDU: 90 00 [14:46:13]wFMCommunicate OK [14:46:13]wFMCommunicate request_size=11 [14:46:13]MH_SAM_APDU [14:46:13]CAPDU: 80 0D 02 02 06 CF 59 BC F5 4C BE [14:46:13]Write to MH i2c: E2 0E 00 74 B2 80 0D 02 02 06 00 CF 59 BC F5 4C BE 00 00 8F [14:46:13]Write i2c OK [14:46:13]MH_I2C_Read... [14:46:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:46:13]Read from MH i2c: E2 [14:46:13]MH_I2C_Read... [14:46:13]Read from MH i2c: E2 03 00 [14:46:13]MH_I2C_Read... [14:46:13]Read from MH i2c: E2 03 00 74 B2 00 90 00 9A [14:46:13]RAPDU: 90 00 [14:46:13]wFMCommunicate OK [14:46:13]wFMCommunicate request_size=4 [14:46:13]MH_SAM_APDU [14:46:13]CAPDU: 80 0D 03 02 [14:46:13]Write to MH i2c: E2 08 00 75 B2 80 0D 03 02 00 00 00 00 A2 [14:46:13]Write i2c OK [14:46:13]MH_I2C_Read... [14:46:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:46:13]Read from MH i2c: E2 [14:46:13]MH_I2C_Read... [14:46:13]Read from MH i2c: E2 0B 00 [14:46:13]MH_I2C_Read... [14:46:13]Read from MH i2c: E2 0B 00 75 B2 00 62 78 10 0F 88 5E C2 97 90 00 DB [14:46:13]RAPDU: 62 78 10 0F 88 5E C2 97 90 00 [14:46:13]wFMCommunicate OK [14:46:13]SAM_PROTO_SignData done [14:46:13]FM_MakeSignedData done [14:46:13]CreateOFDProtocolMessage [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 76 B2 80 11 00 00 00 00 00 00 A2 [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 76 B2 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 F5 [14:46:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [14:46:13]wFMCommunicate OK [14:46:13]CreateOFDProtocolMessage done [14:46:13]OFDSenderStorePacket 103698 [14:46:13]StoreOFDPacket docnum=103698 [14:46:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 27 AE 08 01 D3 45 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 41 EF 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 12 95 01 00 35 04 06 00 CF 59 BC F5 4C BE 62 78 10 0F 88 5E C2 97 [14:46:13]CheckFolder [14:46:13]dirname=/storage/ofd_packets [14:46:13]CheckFolder done [14:46:13]ProducePacketName [14:46:13]name=ofd_packets/00103698 [14:46:13]NVStorageSaveData ofd_packets/00103698 [14:46:13]File name is /storage/ofd_packets/00103698 [14:46:13]Write 302 bytes [14:46:13]NVStorageSaveData done [14:46:13]OFDSenderStorePacket done [14:46:13]KKMCreateOFDPacket done [14:46:13]NVStorageSaveData kkm_last_timestamp [14:46:13]File name is /storage/kkm_last_timestamp [14:46:13]Write 4 bytes [14:46:13]NVStorageSaveData done [14:46:13]ExternCall_PrintAddStr [14:46:13]wPrintStart [14:46:13]Write to MH i2c: 01 00 00 77 B2 29 [14:46:13]Write i2c OK [14:46:13]MH_I2C_Read... [14:46:13]Read from MH i2c: 01 [14:46:13]MH_I2C_Read... [14:46:13]Read from MH i2c: 01 07 00 [14:46:13]MH_I2C_Read... [14:46:13]Read from MH i2c: 01 07 00 77 B2 00 00 00 00 00 FF 0F 3E [14:46:13]RasterBufferAndPrint [14:46:13]line Счет N : (1)672959 [14:46:13]line ИНН: 02508201610067 [14:46:13]line Контрольно-Кассовый Чек [14:46:13]line ПРОДАЖА [14:46:13]line ТРК (МРК, ГНК) : 21 [14:46:13]line Товар: 2710194210 [14:46:13]line ДТ(л)-К-5 [14:46:13]line 13.720 * 72.90 [14:46:13]line = 1000.19 [14:46:13]line НДС 12% НСП 1% [14:46:13]line > о реализуемом товаре [14:46:13]line ОКРУГЛЕНИЕ: -0.19 [14:46:13]line ИТОГО: 1000.00 [14:46:13]line Внесено: 1000.00 [14:46:13]line СДАЧА: 0.00 [14:46:13]line НСП 1% : 8.85 [14:46:13]line НДС 12% : 106.21 [14:46:13]line Наличными: 1000.00 [14:46:13]line Безнал.: 0.00 [14:46:13]line Место: АЗС № 120 "Партнер Нефть" [14:46:13]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [14:46:13]line СНО: Общий режим [14:46:13]line Чек 128 19.06.2024 14:46 [14:46:13]line Смена: 353 ФФД: 1.0 [14:46:13]line ЗНМ: 0300000164 [14:46:13]line РНМ: 0000000000092785 [14:46:13]line Версия ККМ: 001 [14:46:13]line ФМ: 0000000000875093 [14:46:13]line ФД: 103698 [14:46:13]line ФПД: 227984329231550 [14:46:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T144625&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103698&fm=227984329231550&tin=02508201610067®Number=0000000000092785&sum=100000 [14:46:14]written 0, free lines is 4095 [14:46:14]OFD Sender: Processing packet 103698 [packets to send 17, broken 16] [14:46:14]ProducePacketName [14:46:14]name=ofd_packets/00103698 [14:46:14]OFD Sender: To server: pG, [14:46:14]CommunicateWithHost lk.salyk.kg:30040 [14:46:14]ConnectInit lk.salyk.kg [14:46:14]Write to MH i2c: 01 00 00 A2 B2 54 [14:46:14]Write i2c OK [14:46:14]MH_I2C_Read... [14:46:14]Read from MH i2c: 01 [14:46:14]MH_I2C_Read... [14:46:14]Read from MH i2c: 01 07 00 [14:46:14]MH_I2C_Read... [14:46:14]Read from MH i2c: 01 07 00 A2 B2 00 00 00 00 00 DD 0C 44 [14:46:14]RasterBufferAndPrint [14:46:14]line [14:46:14]line [14:46:14]line [14:46:14]line [14:46:14]line [14:46:14]written 0, free lines is 3297 [14:46:14]Connected sock=10 [14:46:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 27 AE 08 01 D3 45 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 41 EF 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 12 95 01 00 35 04 06 00 CF 59 BC F5 4C BE 62 78 10 0F 88 5E C2 97 [14:46:14]MH_Cut [14:46:14]Write to MH i2c: D1 01 00 A9 B2 01 2D [14:46:14]Write i2c OK [14:46:14]MH_I2C_Read... [14:46:14]Read from MH i2c: D1 [14:46:14]MH_I2C_Read... [14:46:14]Read from MH i2c: D1 01 00 [14:46:14]MH_I2C_Read... [14:46:14]Read from MH i2c: D1 01 00 A9 B2 00 2C [14:46:14]Write to MH i2c: 01 00 00 AA B2 5C [14:46:14]Write i2c OK [14:46:14]MH_I2C_Read... [14:46: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 39 33 4F 00 00 00 00 63 47 00 F0 19 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 12 95 01 00 F4 03 04 00 C9 95 72 66 B6 04 01 00 00 6D 3E 8B 2B 04 79 5B 0D [14:46:14]CommunicateWithHost err = 0 [14:46:14]CheckOFDResponse [14:46:14]1017 (14) - 77093643461234 [14:46:14]1041 (16) - 0000000000875093 [14:46:14]1040 (4) - 103698 [14:46:14]1012 (4) - 19.06.2024 08:24 [14:46:14]1206 (1) - 0 [14:46:14]OFD Sender: Remove packet 103698 [14:46:14]ProducePacketName [14:46:14]name=ofd_packets/00103698 [14:46:14]NVStorageDeleteData [14:46:15]*** Cut start [14:46:15]*** Partial cut [14:46:15]*** CUTSNS_PIN = 1 [14:46:15]*** CUTSNS_PIN = 0 [14:46:15]OFD Sender: No OFD packet to send [14:46:15]*** Brake cut motor [14:46:15]Read from MH i2c: 01 [14:46:15]MH_I2C_Read... [14:46:15]*** Stop cut motor [14:46:15]*** Cut end [14:46:15]Read from MH i2c: 01 07 00 [14:46:15]MH_I2C_Read... [14:46:15]Read from MH i2c: 01 07 00 AA B2 00 00 00 00 00 FF 0F 71 [14:46:15]process_action close_receipt done [14:46:15]requested_data is exist [14:46:15]produce_requested_data [14:46:15]requested_item fm.sn is exist - process it [14:46:15]wFMCommunicate request_size=4 [14:46:15]MH_SAM_APDU [14:46:15]CAPDU: 80 11 00 00 [14:46:15]Write to MH i2c: E2 08 00 AB B2 80 11 00 00 00 00 00 00 D7 [14:46:15]Write i2c OK [14:46:15]MH_I2C_Read... [14:46:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:46:15]Read from MH i2c: E2 [14:46:15]MH_I2C_Read... [14:46:15]Read from MH i2c: E2 17 00 [14:46:15]MH_I2C_Read... [14:46:15]Read from MH i2c: E2 17 00 AB B2 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 2A [14:46:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [14:46:15]wFMCommunicate OK [14:46:15]requested_item fd.num is exist - process it [14:46:15]SAM_PROTO_GetFieldsCounters [14:46:15]wFMCommunicate request_size=4 [14:46:15]MH_SAM_APDU [14:46:15]CAPDU: 80 13 00 00 [14:46:15]Write to MH i2c: E2 08 00 AC B2 80 13 00 00 00 00 00 00 DA [14:46:15]Write i2c OK [14:46:15]MH_I2C_Read... [14:46:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:46:15]Read from MH i2c: E2 [14:46:15]MH_I2C_Read... [14:46:15]Read from MH i2c: E2 62 00 [14:46:15]MH_I2C_Read... [14:46:15]Read from MH i2c: E2 62 00 AC B2 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 12 95 01 00 0E 04 04 00 61 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 8B [14:46: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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 12 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 80 00 00 00 5E 04 04 00 80 00 00 00 57 04 04 00 81 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:46:15]wFMCommunicate OK [14:46:15]SAM_PROTO_GetFieldsCounters done [14:46:15]requested_item shift.num is exist - process it [14:46:15]requested_item shift.opened is exist - process it [14:46:15]req_shift_opened [14:46:15]FM_GetShiftState [14:46:15]SAM_PROTO_GetShiftState [14:46:15]wFMCommunicate request_size=4 [14:46:15]MH_SAM_APDU [14:46:15]CAPDU: 80 13 01 00 [14:46:15]Write to MH i2c: E2 08 00 AD B2 80 13 01 00 00 00 00 00 DC [14:46:15]Write i2c OK [14:46:15]MH_I2C_Read... [14:46:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:46:16]Read from MH i2c: E2 [14:46:16]MH_I2C_Read... [14:46:16]Read from MH i2c: E2 0E 00 [14:46:16]MH_I2C_Read... [14:46:16]Read from MH i2c: E2 0E 00 AD B2 00 09 00 01 04 26 72 66 00 00 00 00 90 00 EA [14:46:16]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [14:46:16]wFMCommunicate OK [14:46:16]SAM_PROTO_GetShiftState done [14:46:16]FM_GetShiftState done [14:46:16]req_shift_opened done [14:46:16]requested_item shift.open_date is exist - process it [14:46:16]req_shift_open_date [14:46:16]req_shift_open_date done [14:46:16]produce_requested_data done [14:46:16]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103698,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [14:46:16]process_action_free close_receipt [14:46:16]json_value_free [14:46:16]json_value_free done [14:46:16]process_json_proto returns [14:46:16]Send response to host [14:46:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103698,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [14:46:16]free response buf [14:46:16]execute_script done [14:46:16]execute_script returns [14:46:16]free content buf [14:46:16]Sock 7.Close socket [14:46:16]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:45]accept exits with 9 [14:49:45]New connection [14:49:45]New thread 3067227492 created [14:49:45]Thread 3067084132 joined [14:49:45]Waiting for new connection... [14:49:45] Sock 9.Parse request [14:49:45]Sock 9.Check first char [14:49:45]Sock 9.First char is OK [14:49:45]request: POST /json_proto HTTP/1.0 [14:49:45]Method: POST [14:49:45]URL: /json_proto [14:49:45]Method is POST - this is cgi request [14:49:45]url: /json_proto [14:49:45]query_string will be loaded in cgi processing [14:49:45]execute_cgi json_proto POST (null) [14:49:45]execute_cgi path=json_proto method=POST [14:49:45]POST find Content-Length [14:49:45]Host: 172.17.38.133:8080 [14:49:45]Content-Length: 1206 [14:49:45]Content-Type: application/json [14:49:45] [14:49:45]POST finish read [14:49:45]Found Content-Length = 1206 [14:49:45]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 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. \u000A\u0421\u0447\u0435\u0442 N : (1)672960\u000A19.06.2024 14:27\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 42\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 10.000 x 66.40\u000A\u0418\u0422\u041E\u0413: 664.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A68886\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:49:45]execute_script... [14:49:45]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 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. \u000A\u0421\u0447\u0435\u0442 N : (1)672960\u000A19.06.2024 14:27\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 42\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 10.000 x 66.40\u000A\u0418\u0422\u041E\u0413: 664.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A68886\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:49:45]POST & json_proto [14:49:45]process_json_proto [14:49:45]json parsed OK: [14:49:45]protocol is kg_v1.0 [14:49:45]action value=print_text [14:49:45]process_action print_text [14:49:45]cmd_print_text [14:49:45]ExternCall_PrintAddStr [14:49:45]wPrintStart [14:49:45]Write to MH i2c: 01 00 00 AE B2 60 [14:49:45]Write i2c OK [14:49:45]MH_I2C_Read... [14:49:45]Read from MH i2c: 01 [14:49:45]MH_I2C_Read... [14:49:45]Read from MH i2c: 01 07 00 [14:49:45]MH_I2C_Read... [14:49:45]Read from MH i2c: 01 07 00 AE B2 00 00 00 00 00 FF 0F 75 [14:49:45]RasterBufferAndPrint [14:49:45]line *****ТОВАРНЫЙ ЧЕК***** [14:49:45]line АЗС 120 [14:49:45]line Партнер нефть [14:49:45]line 02508201610067 [14:49:45]line Кассир : Байбугуева Г. [14:49:45]line Счет N : (1)672960 [14:49:45]line 19.06.2024 14:27 [14:49:45]line ПРОДАЖА [14:49:45]line ТРК (МРК, ГНК): 42 [14:49:45]line Вид ГСМ : 2710124130 [14:49:45]line Аи-92-К-5 [14:49:45]line 10.000 x 66.40 [14:49:45]line ИТОГ: 664.00 [14:49:45]line Тип оплаты: Талоны: Топливная Карта [14:49:45]line 68886 [14:49:45]line ______________________ [14:49:45]line (подпись) [14:49:45]written 0, free lines is 4095 [14:49:46]Write to MH i2c: 01 00 00 C2 B2 74 [14:49:46]Write i2c OK [14:49:46]MH_I2C_Read... [14:49:46]Read from MH i2c: 01 [14:49:46]MH_I2C_Read... [14:49:46]Read from MH i2c: 01 07 00 [14:49:46]MH_I2C_Read... [14:49:46]Read from MH i2c: 01 07 00 C2 B2 00 00 00 00 00 12 0E 9B [14:49:46]RasterBufferAndPrint [14:49:46]line [14:49:46]line [14:49:46]line [14:49:46]line [14:49:46]line [14:49:46]written 0, free lines is 3603 [14:49:46]MH_Cut [14:49:46]Write to MH i2c: D1 01 00 C9 B2 01 4D [14:49:46]Write i2c OK [14:49:46]MH_I2C_Read... [14:49:46]Read from MH i2c: D1 [14:49:46]MH_I2C_Read... [14:49:46]Read from MH i2c: D1 01 00 [14:49:46]MH_I2C_Read... [14:49:46]Read from MH i2c: D1 01 00 C9 B2 00 4C [14:49:46]Write to MH i2c: 01 00 00 CA B2 7C [14:49:46]Write i2c OK [14:49:46]MH_I2C_Read... [14:49:46]*** Cut start [14:49:46]*** Partial cut [14:49:46]*** CUTSNS_PIN = 1 [14:49:46]*** CUTSNS_PIN = 0 [14:49:46]*** Brake cut motor [14:49:47]Read from MH i2c: 01 [14:49:47]MH_I2C_Read... [14:49:47]Read from MH i2c: 01 07 00 [14:49:47]MH_I2C_Read... [14:49:47]*** Stop cut motor [14:49:47]*** Cut end [14:49:47]Read from MH i2c: 01 07 00 CA B2 00 00 00 00 00 FF 0F 91 [14:49:47]process_action print_text done [14:49:47]requested_data is exist [14:49:47]produce_requested_data [14:49:47]requested_item fm.sn is exist - process it [14:49:47]wFMCommunicate request_size=4 [14:49:47]MH_SAM_APDU [14:49:47]CAPDU: 80 11 00 00 [14:49:47]Write to MH i2c: E2 08 00 CB B2 80 11 00 00 00 00 00 00 F7 [14:49:47]Write i2c OK [14:49:47]MH_I2C_Read... [14:49:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:49:47]Read from MH i2c: E2 [14:49:47]MH_I2C_Read... [14:49:47]Read from MH i2c: E2 17 00 [14:49:47]MH_I2C_Read... [14:49:47]Read from MH i2c: E2 17 00 CB B2 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 4A [14:49:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [14:49:47]wFMCommunicate OK [14:49:47]requested_item fd.num is exist - process it [14:49:47]SAM_PROTO_GetFieldsCounters [14:49:47]wFMCommunicate request_size=4 [14:49:47]MH_SAM_APDU [14:49:47]CAPDU: 80 13 00 00 [14:49:47]Write to MH i2c: E2 08 00 CC B2 80 13 00 00 00 00 00 00 FA [14:49:47]Write i2c OK [14:49:47]MH_I2C_Read... [14:49:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:49:47]Read from MH i2c: E2 [14:49:47]MH_I2C_Read... [14:49:47]Read from MH i2c: E2 62 00 [14:49:47]MH_I2C_Read... [14:49:47]Read from MH i2c: E2 62 00 CC B2 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 12 95 01 00 0E 04 04 00 61 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 AB [14:49:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 12 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 80 00 00 00 5E 04 04 00 80 00 00 00 57 04 04 00 81 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:49:47]wFMCommunicate OK [14:49:47]SAM_PROTO_GetFieldsCounters done [14:49:47]requested_item shift.num is exist - process it [14:49:47]requested_item shift.opened is exist - process it [14:49:47]req_shift_opened [14:49:47]FM_GetShiftState [14:49:47]SAM_PROTO_GetShiftState [14:49:47]wFMCommunicate request_size=4 [14:49:47]MH_SAM_APDU [14:49:47]CAPDU: 80 13 01 00 [14:49:47]Write to MH i2c: E2 08 00 CD B2 80 13 01 00 00 00 00 00 FC [14:49:47]Write i2c OK [14:49:47]MH_I2C_Read... [14:49:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:49:47]Read from MH i2c: E2 [14:49:47]MH_I2C_Read... [14:49:47]Read from MH i2c: E2 0E 00 [14:49:47]MH_I2C_Read... [14:49:47]Read from MH i2c: E2 0E 00 CD B2 00 09 00 01 04 26 72 66 00 00 00 00 90 00 0A [14:49:47]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [14:49:47]wFMCommunicate OK [14:49:47]SAM_PROTO_GetShiftState done [14:49:47]FM_GetShiftState done [14:49:47]req_shift_opened done [14:49:47]requested_item shift.open_date is exist - process it [14:49:47]req_shift_open_date [14:49:47]req_shift_open_date done [14:49:47]produce_requested_data done [14:49:47]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103698,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [14:49:47]process_action_free print_text [14:49:47]json_value_free [14:49:47]json_value_free done [14:49:47]process_json_proto returns [14:49:47]Send response to host [14:49:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103698,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [14:49:47]free response buf [14:49:47]execute_script done [14:49:47]execute_script returns [14:49:47]free content buf [14:49:47]Sock 9.Close socket [14:49:47]Sock 9.Thread stoped [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:25]OFD Sender: No OFD packet to send [14:51:30]OFD Sender: No OFD packet to send [14:51:35]OFD Sender: No OFD packet to send [14:51:40]OFD Sender: No OFD packet to send [14:51:45]OFD Sender: No OFD packet to send [14:51:50]OFD Sender: No OFD packet to send [14:51:55]OFD Sender: No OFD packet to send [14:52:00]OFD Sender: No OFD packet to send [14:52:05]OFD Sender: No OFD packet to send [14:52:08]accept exits with 7 [14:52:08]New connection [14:52:08]New thread 3067084132 created [14:52:08]Thread 3067227492 joined [14:52:08]Waiting for new connection... [14:52:08] Sock 7.Parse request [14:52:08]Sock 7.Check first char [14:52:08]Sock 7.First char is OK [14:52:08]request: POST /json_proto HTTP/1.0 [14:52:08]Method: POST [14:52:08]URL: /json_proto [14:52:08]Method is POST - this is cgi request [14:52:08]url: /json_proto [14:52:08]query_string will be loaded in cgi processing [14:52:08]execute_cgi json_proto POST (null) [14:52:08]execute_cgi path=json_proto method=POST [14:52:08]POST find Content-Length [14:52:08]Host: 172.17.38.133:8080 [14:52:08]Content-Length: 682 [14:52:08]Content-Type: application/json [14:52:08] [14:52:08]POST finish read [14:52:08]Found Content-Length = 682 [14:52:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672961", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 6.860, "sum" : 500.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:52:08]execute_script... [14:52:08]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672961", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 6.860, "sum" : 500.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:52:08]POST & json_proto [14:52:08]process_json_proto [14:52:08]json parsed OK: [14:52:08]protocol is kg_v1.0 [14:52:08]action value=close_receipt [14:52:08]process_action close_receipt [14:52:08]cmd_close_receipt [14:52:08]MH_GetDate [14:52:08]Write to MH i2c: F0 00 00 CE B2 6F [14:52:08]Write i2c OK [14:52:08]MH_I2C_Read... [14:52:08]Read from MH i2c: F0 [14:52:08]MH_I2C_Read... [14:52:08]Read from MH i2c: F0 09 00 [14:52:08]MH_I2C_Read... [14:52:08]Read from MH i2c: F0 09 00 CE B2 00 A5 F0 72 66 BD 8F 7C 64 11 [14:52:08]GetLastDocTimeStamp 1718808385 [14:52:08]current date 1718808741 [14:52:08]FM_GetShiftState [14:52:08]SAM_PROTO_GetShiftState [14:52:08]wFMCommunicate request_size=4 [14:52:08]MH_SAM_APDU [14:52:08]CAPDU: 80 13 01 00 [14:52:08]Write to MH i2c: E2 08 00 CF B2 80 13 01 00 00 00 00 00 FE [14:52:08]Write i2c OK [14:52:08]MH_I2C_Read... [14:52:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:52:08]Read from MH i2c: E2 [14:52:08]MH_I2C_Read... [14:52:08]Read from MH i2c: E2 0E 00 [14:52:08]MH_I2C_Read... [14:52:08]Read from MH i2c: E2 0E 00 CF B2 00 09 00 01 04 26 72 66 00 00 00 00 90 00 0C [14:52:08]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [14:52:08]wFMCommunicate OK [14:52:08]SAM_PROTO_GetShiftState done [14:52:08]FM_GetShiftState done [14:52:08]opened in 1718756868 [14:52:08]opened+sec_in_day 1718843268 [14:52:08]quantity*price = 50009 [14:52:08]sum+1 = 50010 [14:52:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 129 19.06.2024 14:52 Смена: 353 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103699 ФПД: 115994952624064 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T145221&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103699&fm=115994952624064&tin=02508201610067®Number=0000000000092785&sum=50000 [14:52:09]StoreToDocumentArchive [14:52:09]shift 353 fd 103699 [14:52:09]save to /storage/0353/doc_00103699 [14:52:09]save last doc name /storage/0353/doc_00103699 to /storage/kkm_last_doc_name [14:52:09]save OK [14:52:09]Clear old archive folders... [14:52:09]ProcessDocumentItem done err = 0, tmpTLVsize=252 [14:52:09]tlvbuf is 013E1960 [14:52:09]SAM_PROTO_ClearQueue [14:52:09]wFMCommunicate request_size=4 [14:52:09]MH_SAM_APDU [14:52:09]CAPDU: 80 09 00 00 [14:52:09]Write to MH i2c: E2 08 00 DC B2 80 09 00 00 00 00 00 00 00 [14:52:09]Write i2c OK [14:52:09]MH_I2C_Read... [14:52:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:52:09]Read from MH i2c: E2 [14:52:09]MH_I2C_Read... [14:52:09]Read from MH i2c: E2 03 00 [14:52:09]MH_I2C_Read... [14:52:09]Read from MH i2c: E2 03 00 DC B2 00 90 00 02 [14:52:09]RAPDU: 90 00 [14:52:09]wFMCommunicate OK [14:52:09]SAM_PROTO_ClearQueue done [14:52:09]KKMCreateOFDPacket [14:52:09]OFDProtocolAddRootSTLVToBuf [14:52:09]FM_MakeSignedData [14:52:09]FM_MakeSignedData [14:52:09]SAM_PROTO_SignData [14:52:09]wFMCommunicate request_size=4 [14:52:09]MH_SAM_APDU [14:52:09]CAPDU: 80 0D 01 02 [14:52:09]Write to MH i2c: E2 08 00 DD B2 80 0D 01 02 00 00 00 00 08 [14:52:09]Write i2c OK [14:52:09]MH_I2C_Read... [14:52:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:52:09]Read from MH i2c: E2 [14:52:09]MH_I2C_Read... [14:52:09]Read from MH i2c: E2 03 00 [14:52:09]MH_I2C_Read... [14:52:09]Read from MH i2c: E2 03 00 DD B2 00 90 00 03 [14:52:09]RAPDU: 90 00 [14:52:09]wFMCommunicate OK [14:52:09]wFMCommunicate request_size=255 [14:52:09]MH_SAM_APDU [14:52:09]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 00 00 00 F4 03 04 00 A5 F0 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 13 95 01 00 35 04 06 00 [14:52:09]Write to MH i2c: E2 02 01 DE B2 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 00 00 00 F4 03 04 00 A5 F0 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 13 95 01 00 35 04 06 00 00 00 99 [14:52:09]Write i2c OK [14:52:09]MH_I2C_Read... [14:52:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:52:09]Read from MH i2c: E2 [14:52:09]MH_I2C_Read... [14:52:09]Read from MH i2c: E2 03 00 [14:52:09]MH_I2C_Read... [14:52:09]Read from MH i2c: E2 03 00 DE B2 00 90 00 04 [14:52:09]RAPDU: 90 00 [14:52:09]wFMCommunicate OK [14:52:09]wFMCommunicate request_size=11 [14:52:09]MH_SAM_APDU [14:52:09]CAPDU: 80 0D 02 02 06 69 7F 2D F2 67 C0 [14:52:09]Write to MH i2c: E2 0E 00 DF B2 80 0D 02 02 06 00 69 7F 2D F2 67 C0 00 00 45 [14:52:09]Write i2c OK [14:52:09]MH_I2C_Read... [14:52:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:52:09]Read from MH i2c: E2 [14:52:09]MH_I2C_Read... [14:52:09]Read from MH i2c: E2 03 00 [14:52:09]MH_I2C_Read... [14:52:09]Read from MH i2c: E2 03 00 DF B2 00 90 00 05 [14:52:09]RAPDU: 90 00 [14:52:09]wFMCommunicate OK [14:52:09]wFMCommunicate request_size=4 [14:52:09]MH_SAM_APDU [14:52:09]CAPDU: 80 0D 03 02 [14:52:09]Write to MH i2c: E2 08 00 E0 B2 80 0D 03 02 00 00 00 00 0D [14:52:09]Write i2c OK [14:52:09]MH_I2C_Read... [14:52:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:52:10]Read from MH i2c: E2 [14:52:10]MH_I2C_Read... [14:52:10]Read from MH i2c: E2 0B 00 [14:52:10]MH_I2C_Read... [14:52:10]Read from MH i2c: E2 0B 00 E0 B2 00 15 67 01 D0 A6 5F 34 AE 90 00 42 [14:52:10]RAPDU: 15 67 01 D0 A6 5F 34 AE 90 00 [14:52:10]wFMCommunicate OK [14:52:10]SAM_PROTO_SignData done [14:52:10]FM_MakeSignedData done [14:52:10]CreateOFDProtocolMessage [14:52:10]wFMCommunicate request_size=4 [14:52:10]MH_SAM_APDU [14:52:10]CAPDU: 80 11 00 00 [14:52:10]Write to MH i2c: E2 08 00 E1 B2 80 11 00 00 00 00 00 00 0D [14:52:10]Write i2c OK [14:52:10]MH_I2C_Read... [14:52:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:52:10]Read from MH i2c: E2 [14:52:10]MH_I2C_Read... [14:52:10]Read from MH i2c: E2 17 00 [14:52:10]MH_I2C_Read... [14:52:10]Read from MH i2c: E2 17 00 E1 B2 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 60 [14:52:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [14:52:10]wFMCommunicate OK [14:52:10]CreateOFDProtocolMessage done [14:52:10]OFDSenderStorePacket 103699 [14:52:10]StoreOFDPacket docnum=103699 [14:52:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 5A 8A 08 01 B3 4C 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 00 00 00 F4 03 04 00 A5 F0 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 13 95 01 00 35 04 06 00 69 7F 2D F2 67 C0 15 67 01 D0 A6 5F 34 AE [14:52:10]CheckFolder [14:52:10]dirname=/storage/ofd_packets [14:52:10]CheckFolder done [14:52:10]ProducePacketName [14:52:10]name=ofd_packets/00103699 [14:52:10]NVStorageSaveData ofd_packets/00103699 [14:52:10]File name is /storage/ofd_packets/00103699 [14:52:10]Write 302 bytes [14:52:10]NVStorageSaveData done [14:52:10]OFDSenderStorePacket done [14:52:10]KKMCreateOFDPacket done [14:52:10]NVStorageSaveData kkm_last_timestamp [14:52:10]File name is /storage/kkm_last_timestamp [14:52:10]OFD Sender: Processing packet 103699 [packets to send 17, broken 16] [14:52:10]ProducePacketName [14:52:10]name=ofd_packets/00103699 [14:52:10]OFD Sender: To server: pG, [14:52:10]CommunicateWithHost lk.salyk.kg:30040 [14:52:10]ConnectInit lk.salyk.kg [14:52:10]Write 4 bytes [14:52:10]NVStorageSaveData done [14:52:10]ExternCall_PrintAddStr [14:52:10]wPrintStart [14:52:10]Write to MH i2c: 01 00 00 E2 B2 94 [14:52:10]Write i2c OK [14:52:10]MH_I2C_Read... [14:52:10]Read from MH i2c: 01 [14:52:10]MH_I2C_Read... [14:52:10]Read from MH i2c: 01 07 00 [14:52:10]MH_I2C_Read... [14:52:10]Read from MH i2c: 01 07 00 E2 B2 00 00 00 00 00 FF 0F A9 [14:52:10]RasterBufferAndPrint [14:52:10]line Счет N : (1)672961 [14:52:10]line ИНН: 02508201610067 [14:52:10]line Контрольно-Кассовый Чек [14:52:10]line ПРОДАЖА [14:52:10]line ТРК (МРК, ГНК) : 21 [14:52:10]line Товар: 2710194210 [14:52:10]line ДТ(л)-К-5 [14:52:10]line 6.860 * 72.90 [14:52:10]line = 500.09 [14:52:10]line НДС 12% НСП 1% [14:52:10]line > о реализуемом товаре [14:52:10]line ОКРУГЛЕНИЕ: -0.09 [14:52:10]line ИТОГО: 500.00 [14:52:10]line Внесено: 500.00 [14:52:10]line СДАЧА: 0.00 [14:52:10]line НСП 1% : 4.43 [14:52:10]line НДС 12% : 53.11 [14:52:10]line Наличными: 500.00 [14:52:10]line Безнал.: 0.00 [14:52:10]line Место: АЗС № 120 "Партнер Нефть" [14:52:10]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [14:52:10]line СНО: Общий режим [14:52:10]line Чек 129 19.06.2024 14:52 [14:52:10]line Смена: 353 ФФД: 1.0 [14:52:10]line ЗНМ: 0300000164 [14:52:10]line РНМ: 0000000000092785 [14:52:10]line Версия ККМ: 001 [14:52:10]line ФМ: 0000000000875093 [14:52:10]line ФД: 103699 [14:52:10]line ФПД: 115994952624064 [14:52:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T145221&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103699&fm=115994952624064&tin=02508201610067®Number=0000000000092785&sum=50000 [14:52:10]Connected sock=11 [14:52:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 5A 8A 08 01 B3 4C 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 00 00 00 F4 03 04 00 A5 F0 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 13 95 01 00 35 04 06 00 69 7F 2D F2 67 C0 15 67 01 D0 A6 5F 34 AE [14:52:10]written 0, free lines is 4095 [14:52: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 39 33 4F 00 00 00 F4 BC 47 00 02 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 39 33 10 04 04 00 13 95 01 00 F4 03 04 00 2D 97 72 66 B6 04 01 00 00 F5 5C 41 49 37 8E 7F E4 [14:52:10]CommunicateWithHost err = 0 [14:52:10]CheckOFDResponse [14:52:10]1017 (14) - 77093643461234 [14:52:10]1041 (16) - 0000000000875093 [14:52:10]1040 (4) - 103699 [14:52:10]1012 (4) - 19.06.2024 08:30 [14:52:10]1206 (1) - 0 [14:52:10]OFD Sender: Remove packet 103699 [14:52:10]ProducePacketName [14:52:10]name=ofd_packets/00103699 [14:52:10]NVStorageDeleteData [14:52:10]Write to MH i2c: 01 00 00 0D B3 C0 [14:52:10]Write i2c OK [14:52:10]MH_I2C_Read... [14:52:10]Read from MH i2c: 01 [14:52:10]MH_I2C_Read... [14:52:10]Read from MH i2c: 01 07 00 [14:52:10]MH_I2C_Read... [14:52:10]Read from MH i2c: 01 07 00 0D B3 00 00 00 00 00 DE 0C B1 [14:52:10]RasterBufferAndPrint [14:52:10]line [14:52:10]line [14:52:10]line [14:52:10]line [14:52:10]line [14:52:10]written 0, free lines is 3303 [14:52:10]MH_Cut [14:52:10]Write to MH i2c: D1 01 00 14 B3 01 99 [14:52:10]Write i2c OK [14:52:10]MH_I2C_Read... [14:52:10]Read from MH i2c: D1 [14:52:10]MH_I2C_Read... [14:52:10]Read from MH i2c: D1 01 00 [14:52:10]MH_I2C_Read... [14:52:10]Read from MH i2c: D1 01 00 14 B3 00 98 [14:52:10]Write to MH i2c: 01 00 00 15 B3 C8 [14:52:10]Write i2c OK [14:52:10]MH_I2C_Read... [14:52:11]OFD Sender: No OFD packet to send [14:52:11]*** Cut start [14:52:11]*** Partial cut [14:52:11]*** CUTSNS_PIN = 1 [14:52:11]*** CUTSNS_PIN = 0 [14:52:11]*** Brake cut motor [14:52:12]Read from MH i2c: 01 [14:52:12]MH_I2C_Read... [14:52:12]*** Stop cut motor [14:52:12]*** Cut end [14:52:12]Read from MH i2c: 01 07 00 [14:52:12]MH_I2C_Read... [14:52:12]Read from MH i2c: 01 07 00 15 B3 00 00 00 00 00 FF 0F DD [14:52:12]process_action close_receipt done [14:52:12]requested_data is exist [14:52:12]produce_requested_data [14:52:12]requested_item fm.sn is exist - process it [14:52:12]wFMCommunicate request_size=4 [14:52:12]MH_SAM_APDU [14:52:12]CAPDU: 80 11 00 00 [14:52:12]Write to MH i2c: E2 08 00 16 B3 80 11 00 00 00 00 00 00 43 [14:52:12]Write i2c OK [14:52:12]MH_I2C_Read... [14:52:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:52:12]Read from MH i2c: E2 [14:52:12]MH_I2C_Read... [14:52:12]Read from MH i2c: E2 17 00 [14:52:12]MH_I2C_Read... [14:52:12]Read from MH i2c: E2 17 00 16 B3 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 96 [14:52:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [14:52:12]wFMCommunicate OK [14:52:12]requested_item fd.num is exist - process it [14:52:12]SAM_PROTO_GetFieldsCounters [14:52:12]wFMCommunicate request_size=4 [14:52:12]MH_SAM_APDU [14:52:12]CAPDU: 80 13 00 00 [14:52:12]Write to MH i2c: E2 08 00 17 B3 80 13 00 00 00 00 00 00 46 [14:52:12]Write i2c OK [14:52:12]MH_I2C_Read... [14:52:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:52:12]Read from MH i2c: E2 [14:52:12]MH_I2C_Read... [14:52:12]Read from MH i2c: E2 62 00 [14:52:12]MH_I2C_Read... [14:52:12]Read from MH i2c: E2 62 00 17 B3 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 13 95 01 00 0E 04 04 00 61 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 FB [14:52:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 13 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 81 00 00 00 5E 04 04 00 81 00 00 00 57 04 04 00 82 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:52:12]wFMCommunicate OK [14:52:12]SAM_PROTO_GetFieldsCounters done [14:52:12]requested_item shift.num is exist - process it [14:52:12]requested_item shift.opened is exist - process it [14:52:12]req_shift_opened [14:52:12]FM_GetShiftState [14:52:12]SAM_PROTO_GetShiftState [14:52:12]wFMCommunicate request_size=4 [14:52:12]MH_SAM_APDU [14:52:12]CAPDU: 80 13 01 00 [14:52:12]Write to MH i2c: E2 08 00 18 B3 80 13 01 00 00 00 00 00 48 [14:52:12]Write i2c OK [14:52:12]MH_I2C_Read... [14:52:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:52:12]Read from MH i2c: E2 [14:52:12]MH_I2C_Read... [14:52:12]Read from MH i2c: E2 0E 00 [14:52:12]MH_I2C_Read... [14:52:12]Read from MH i2c: E2 0E 00 18 B3 00 09 00 01 04 26 72 66 00 00 00 00 90 00 56 [14:52:12]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [14:52:12]wFMCommunicate OK [14:52:12]SAM_PROTO_GetShiftState done [14:52:12]FM_GetShiftState done [14:52:12]req_shift_opened done [14:52:12]requested_item shift.open_date is exist - process it [14:52:12]req_shift_open_date [14:52:12]req_shift_open_date done [14:52:12]produce_requested_data done [14:52:12]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103699,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [14:52:12]process_action_free close_receipt [14:52:12]json_value_free [14:52:12]json_value_free done [14:52:12]process_json_proto returns [14:52:12]Send response to host [14:52:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103699,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [14:52:12]free response buf [14:52:12]execute_script done [14:52:12]execute_script returns [14:52:12]free content buf [14:52:12]Sock 7.Close socket [14:52:12]Sock 7.Thread stoped [14:52:16]OFD Sender: No OFD packet to send [14:52:21]OFD Sender: No OFD packet to send [14:52:26]OFD Sender: No OFD packet to send [14:52:31]OFD Sender: No OFD packet to send [14:52:36]OFD Sender: No OFD packet to send [14:52:39]accept exits with 9 [14:52:39]New connection [14:52:39]New thread 3067227492 created [14:52:39]Thread 3067084132 joined [14:52:39]Waiting for new connection... [14:52:39] Sock 9.Parse request [14:52:39]Sock 9.Check first char [14:52:39]Sock 9.First char is OK [14:52:39]request: POST /json_proto HTTP/1.0 [14:52:39]Method: POST [14:52:39]URL: /json_proto [14:52:39]Method is POST - this is cgi request [14:52:39]url: /json_proto [14:52:39]query_string will be loaded in cgi processing [14:52:39]execute_cgi json_proto POST (null) [14:52:39]execute_cgi path=json_proto method=POST [14:52:39]POST find Content-Length [14:52:39]Host: 172.17.38.133:8080 [14:52:39]Content-Length: 819 [14:52:39]Content-Type: application/json [14:52:39] [14:52:39]POST finish read [14:52:39]Found Content-Length = 819 [14:52:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672962", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.65 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:52:39]execute_script... [14:52: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)672962", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.65 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:52:39]POST & json_proto [14:52:39]process_json_proto [14:52:39]json parsed OK: [14:52:39]protocol is kg_v1.0 [14:52:39]action value=close_receipt [14:52:39]process_action close_receipt [14:52:39]cmd_close_receipt [14:52:39]MH_GetDate [14:52:39]Write to MH i2c: F0 00 00 19 B3 BB [14:52:39]Write i2c OK [14:52:39]MH_I2C_Read... [14:52:39]Read from MH i2c: F0 [14:52:39]MH_I2C_Read... [14:52:39]Read from MH i2c: F0 09 00 [14:52:39]MH_I2C_Read... [14:52:39]Read from MH i2c: F0 09 00 19 B3 00 C4 F0 72 66 BD 8F 7C 64 7C [14:52:39]GetLastDocTimeStamp 1718808741 [14:52:39]current date 1718808772 [14:52:39]FM_GetShiftState [14:52:39]SAM_PROTO_GetShiftState [14:52:39]wFMCommunicate request_size=4 [14:52:39]MH_SAM_APDU [14:52:39]CAPDU: 80 13 01 00 [14:52:39]Write to MH i2c: E2 08 00 1A B3 80 13 01 00 00 00 00 00 4A [14:52:39]Write i2c OK [14:52:39]MH_I2C_Read... [14:52:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:52:39]Read from MH i2c: E2 [14:52:39]MH_I2C_Read... [14:52:39]Read from MH i2c: E2 0E 00 [14:52:39]MH_I2C_Read... [14:52:39]Read from MH i2c: E2 0E 00 1A B3 00 09 00 01 04 26 72 66 00 00 00 00 90 00 58 [14:52:39]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [14:52:39]wFMCommunicate OK [14:52:39]SAM_PROTO_GetShiftState done [14:52:39]FM_GetShiftState done [14:52:39]opened in 1718756868 [14:52:39]opened+sec_in_day 1718843268 [14:52:39]quantity*price = 100064 [14:52:39]sum+1 = 100066 [14:52:39]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.65 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 0.00 Безнал.: 1000.65 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 130 19.06.2024 14:52 Смена: 353 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000875093 ФД: 103700 ФПД: 253644853597726 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T145252&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103700&fm=253644853597726&tin=02508201610067®Number=0000000000092785&sum=100065 [14:52:40]StoreToDocumentArchive [14:52:40]shift 353 fd 103700 [14:52:40]save to /storage/0353/doc_00103700 [14:52:40]save last doc name /storage/0353/doc_00103700 to /storage/kkm_last_doc_name [14:52:40]save OK [14:52:40]Clear old archive folders... [14:52:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:52:40]tlvbuf is 015F2430 [14:52:40]SAM_PROTO_ClearQueue [14:52:40]wFMCommunicate request_size=4 [14:52:40]MH_SAM_APDU [14:52:40]CAPDU: 80 09 00 00 [14:52:40]Write to MH i2c: E2 08 00 27 B3 80 09 00 00 00 00 00 00 4C [14:52:40]Write i2c OK [14:52:40]MH_I2C_Read... [14:52:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:52:40]Read from MH i2c: E2 [14:52:40]MH_I2C_Read... [14:52:40]Read from MH i2c: E2 03 00 [14:52:40]MH_I2C_Read... [14:52:40]Read from MH i2c: E2 03 00 27 B3 00 90 00 4E [14:52:40]RAPDU: 90 00 [14:52:40]wFMCommunicate OK [14:52:40]SAM_PROTO_ClearQueue done [14:52:40]KKMCreateOFDPacket [14:52:40]OFDProtocolAddRootSTLVToBuf [14:52:40]FM_MakeSignedData [14:52:40]FM_MakeSignedData [14:52:40]SAM_PROTO_SignData [14:52:40]wFMCommunicate request_size=4 [14:52:40]MH_SAM_APDU [14:52:40]CAPDU: 80 0D 01 02 [14:52:40]Write to MH i2c: E2 08 00 28 B3 80 0D 01 02 00 00 00 00 54 [14:52:40]Write i2c OK [14:52:40]MH_I2C_Read... [14:52:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:52:40]Read from MH i2c: E2 [14:52:40]MH_I2C_Read... [14:52:40]Read from MH i2c: E2 03 00 [14:52:40]MH_I2C_Read... [14:52:40]Read from MH i2c: E2 03 00 28 B3 00 90 00 4F [14:52:40]RAPDU: 90 00 [14:52:40]wFMCommunicate OK [14:52:40]wFMCommunicate request_size=255 [14:52:40]MH_SAM_APDU [14:52: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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E1 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E1 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 C4 F0 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 14 95 01 00 35 04 06 00 E6 [14:52:40]Write to MH i2c: E2 02 01 29 B3 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E1 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E1 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 C4 F0 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 14 95 01 00 35 04 06 00 E6 00 00 E0 [14:52:40]Write i2c OK [14:52:40]MH_I2C_Read... [14:52:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:52:41]Read from MH i2c: E2 [14:52:41]MH_I2C_Read... [14:52:41]Read from MH i2c: E2 03 00 [14:52:41]MH_I2C_Read... [14:52:41]Read from MH i2c: E2 03 00 29 B3 00 90 00 50 [14:52:41]RAPDU: 90 00 [14:52:41]wFMCommunicate OK [14:52:41]wFMCommunicate request_size=10 [14:52:41]MH_SAM_APDU [14:52:41]CAPDU: 80 0D 02 02 05 B0 4B 65 D6 1E [14:52:41]Write to MH i2c: E2 0D 00 2A B3 80 0D 02 02 05 00 B0 4B 65 D6 1E 00 00 B5 [14:52:41]Write i2c OK [14:52:41]MH_I2C_Read... [14:52:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:52:41]Read from MH i2c: E2 [14:52:41]MH_I2C_Read... [14:52:41]Read from MH i2c: E2 03 00 [14:52:41]MH_I2C_Read... [14:52:41]Read from MH i2c: E2 03 00 2A B3 00 90 00 51 [14:52:41]RAPDU: 90 00 [14:52:41]wFMCommunicate OK [14:52:41]wFMCommunicate request_size=4 [14:52:41]MH_SAM_APDU [14:52:41]CAPDU: 80 0D 03 02 [14:52:41]Write to MH i2c: E2 08 00 2B B3 80 0D 03 02 00 00 00 00 59 [14:52:41]Write i2c OK [14:52:41]MH_I2C_Read... [14:52:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:52:41]Read from MH i2c: E2 [14:52:41]MH_I2C_Read... [14:52:41]Read from MH i2c: E2 0B 00 [14:52:41]MH_I2C_Read... [14:52:41]Read from MH i2c: E2 0B 00 2B B3 00 34 C7 32 07 72 0E B2 D7 90 00 97 [14:52:41]RAPDU: 34 C7 32 07 72 0E B2 D7 90 00 [14:52:41]wFMCommunicate OK [14:52:41]SAM_PROTO_SignData done [14:52:41]FM_MakeSignedData done [14:52:41]CreateOFDProtocolMessage [14:52:41]wFMCommunicate request_size=4 [14:52:41]MH_SAM_APDU [14:52:41]CAPDU: 80 11 00 00 [14:52:41]Write to MH i2c: E2 08 00 2C B3 80 11 00 00 00 00 00 00 59 [14:52:41]Write i2c OK [14:52:41]MH_I2C_Read... [14:52:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:52:41]Read from MH i2c: E2 [14:52:41]MH_I2C_Read... [14:52:41]Read from MH i2c: E2 17 00 [14:52:41]MH_I2C_Read... [14:52:41]Read from MH i2c: E2 17 00 2C B3 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 AC [14:52:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [14:52:41]wFMCommunicate OK [14:52:41]CreateOFDProtocolMessage done [14:52:41]OFDSenderStorePacket 103700 [14:52:41]StoreOFDPacket docnum=103700 [14:52:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 CB EF 07 01 84 DB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E1 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E1 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 C4 F0 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 14 95 01 00 35 04 06 00 E6 B0 4B 65 D6 1E 34 C7 32 07 72 0E B2 D7 [14:52:41]CheckFolder [14:52:41]dirname=/storage/ofd_packets [14:52:41]CheckFolder done [14:52:41]ProducePacketName [14:52:41]name=ofd_packets/00103700 [14:52:41]NVStorageSaveData ofd_packets/00103700 [14:52:41]File name is /storage/ofd_packets/00103700 [14:52:41]Write 301 bytes [14:52:41]NVStorageSaveData done [14:52:41]OFDSenderStorePacket done [14:52:41]KKMCreateOFDPacket done [14:52:41]NVStorageSaveData kkm_last_timestamp [14:52:41]File name is /storage/kkm_last_timestamp [14:52:41]Write 4 bytes [14:52:41]NVStorageSaveData done [14:52:41]ExternCall_PrintAddStr [14:52:41]wPrintStart [14:52:41]Write to MH i2c: 01 00 00 2D B3 E0 [14:52:41]Write i2c OK [14:52:41]MH_I2C_Read... [14:52:41]Read from MH i2c: 01 [14:52:41]MH_I2C_Read... [14:52:41]Read from MH i2c: 01 07 00 [14:52:41]MH_I2C_Read... [14:52:41]Read from MH i2c: 01 07 00 2D B3 00 00 00 00 00 FF 0F F5 [14:52:41]RasterBufferAndPrint [14:52:41]line Счет N : (1)672962 [14:52:41]line ИНН: 02508201610067 [14:52:41]line Контрольно-Кассовый Чек [14:52:41]line ПРОДАЖА [14:52:41]line ТРК (МРК, ГНК) : 32 [14:52:41]line Товар: 2710124130 [14:52:41]line Аи-92-К-5 [14:52:41]line 15.070 * 66.40 [14:52:41]line = 1000.65 [14:52:41]line НДС 12% НСП 1% [14:52:41]line > о реализуемом товаре [14:52:41]line ИТОГО: 1000.65 [14:52:41]line НСП 1% : 8.85 [14:52:41]line НДС 12% : 106.26 [14:52:41]line Наличными: 0.00 [14:52:41]line Безнал.: 1000.65 [14:52:41]line Место: АЗС № 120 "Партнер Нефть" [14:52:41]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [14:52:41]line СНО: Общий режим [14:52:41]line Чек 130 19.06.2024 14:52 [14:52:41]line Смена: 353 ФФД: 1.0 [14:52:41]line ЗНМ: 0300000164 [14:52:41]line РНМ: 0000000000092785 [14:52:41]line Версия ККМ: 001 [14:52:41]line Платежная система: Бакай Банк [14:52:41]line ФМ: 0000000000875093 [14:52:41]line ФД: 103700 [14:52:41]line ФПД: 253644853597726 [14:52:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T145252&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103700&fm=253644853597726&tin=02508201610067®Number=0000000000092785&sum=100065 [14:52:41]written 0, free lines is 4095 [14:52:41]OFD Sender: Processing packet 103700 [packets to send 17, broken 16] [14:52:41]ProducePacketName [14:52:41]name=ofd_packets/00103700 [14:52:41]OFD Sender: To server: pG, [14:52:41]CommunicateWithHost lk.salyk.kg:30040 [14:52:41]ConnectInit lk.salyk.kg [14:52:41]Connected sock=7 [14:52: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 39 33 0F 01 00 00 CB EF 07 01 84 DB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E1 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E1 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 C4 F0 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 14 95 01 00 35 04 06 00 E6 B0 4B 65 D6 1E 34 C7 32 07 72 0E B2 D7 [14:52: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 39 33 4F 00 00 00 04 7F 47 00 06 1D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 14 95 01 00 F4 03 04 00 4C 97 72 66 B6 04 01 00 00 E5 7B C0 64 AD CC 58 43 [14:52:41]CommunicateWithHost err = 0 [14:52:41]CheckOFDResponse [14:52:41]1017 (14) - 77093643461234 [14:52:41]1041 (16) - 0000000000875093 [14:52:41]1040 (4) - 103700 [14:52:41]1012 (4) - 19.06.2024 08:31 [14:52:41]1206 (1) - 0 [14:52:41]OFD Sender: Remove packet 103700 [14:52:41]ProducePacketName [14:52:41]name=ofd_packets/00103700 [14:52:41]NVStorageDeleteData [14:52:41]Write to MH i2c: 01 00 00 57 B3 0A [14:52:41]Write i2c OK [14:52:41]MH_I2C_Read... [14:52:41]Read from MH i2c: 01 [14:52:41]MH_I2C_Read... [14:52:41]Read from MH i2c: 01 07 00 [14:52:41]MH_I2C_Read... [14:52:41]Read from MH i2c: 01 07 00 57 B3 00 00 00 00 00 F3 0C 10 [14:52:41]RasterBufferAndPrint [14:52:41]line [14:52:41]line [14:52:41]line [14:52:41]line [14:52:41]line [14:52:41]written 0, free lines is 3322 [14:52:41]MH_Cut [14:52:41]Write to MH i2c: D1 01 00 5E B3 01 E3 [14:52:41]Write i2c OK [14:52:41]MH_I2C_Read... [14:52:41]Read from MH i2c: D1 [14:52:41]MH_I2C_Read... [14:52:41]Read from MH i2c: D1 01 00 [14:52:41]MH_I2C_Read... [14:52:41]Read from MH i2c: D1 01 00 5E B3 00 E2 [14:52:41]Write to MH i2c: 01 00 00 5F B3 12 [14:52:41]Write i2c OK [14:52:41]MH_I2C_Read... [14:52:42]OFD Sender: No OFD packet to send [14:52:42]*** Cut start [14:52:42]*** Partial cut [14:52:42]*** CUTSNS_PIN = 1 [14:52:42]*** CUTSNS_PIN = 0 [14:52:42]*** Brake cut motor [14:52:43]Read from MH i2c: 01 [14:52:43]MH_I2C_Read... [14:52:43]*** Stop cut motor [14:52:43]*** Cut end [14:52:43]Read from MH i2c: 01 07 00 [14:52:43]MH_I2C_Read... [14:52:43]Read from MH i2c: 01 07 00 5F B3 00 00 00 00 00 FF 0F 27 [14:52:43]process_action close_receipt done [14:52:43]requested_data is exist [14:52:43]produce_requested_data [14:52:43]requested_item fm.sn is exist - process it [14:52:43]wFMCommunicate request_size=4 [14:52:43]MH_SAM_APDU [14:52:43]CAPDU: 80 11 00 00 [14:52:43]Write to MH i2c: E2 08 00 60 B3 80 11 00 00 00 00 00 00 8D [14:52:43]Write i2c OK [14:52:43]MH_I2C_Read... [14:52:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:52:43]Read from MH i2c: E2 [14:52:43]MH_I2C_Read... [14:52:43]Read from MH i2c: E2 17 00 [14:52:43]MH_I2C_Read... [14:52:43]Read from MH i2c: E2 17 00 60 B3 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 E0 [14:52:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [14:52:43]wFMCommunicate OK [14:52:43]requested_item fd.num is exist - process it [14:52:43]SAM_PROTO_GetFieldsCounters [14:52:43]wFMCommunicate request_size=4 [14:52:43]MH_SAM_APDU [14:52:43]CAPDU: 80 13 00 00 [14:52:43]Write to MH i2c: E2 08 00 61 B3 80 13 00 00 00 00 00 00 90 [14:52:43]Write i2c OK [14:52:43]MH_I2C_Read... [14:52:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:52:43]Read from MH i2c: E2 [14:52:43]MH_I2C_Read... [14:52:43]Read from MH i2c: E2 62 00 [14:52:43]MH_I2C_Read... [14:52:43]Read from MH i2c: E2 62 00 61 B3 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 14 95 01 00 0E 04 04 00 61 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 49 [14:52: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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 14 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 82 00 00 00 5E 04 04 00 82 00 00 00 57 04 04 00 83 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:52:43]wFMCommunicate OK [14:52:43]SAM_PROTO_GetFieldsCounters done [14:52:43]requested_item shift.num is exist - process it [14:52:43]requested_item shift.opened is exist - process it [14:52:43]req_shift_opened [14:52:43]FM_GetShiftState [14:52:43]SAM_PROTO_GetShiftState [14:52:43]wFMCommunicate request_size=4 [14:52:43]MH_SAM_APDU [14:52:43]CAPDU: 80 13 01 00 [14:52:43]Write to MH i2c: E2 08 00 62 B3 80 13 01 00 00 00 00 00 92 [14:52:43]Write i2c OK [14:52:43]MH_I2C_Read... [14:52:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:52:43]Read from MH i2c: E2 [14:52:43]MH_I2C_Read... [14:52:43]Read from MH i2c: E2 0E 00 [14:52:43]MH_I2C_Read... [14:52:43]Read from MH i2c: E2 0E 00 62 B3 00 09 00 01 04 26 72 66 00 00 00 00 90 00 A0 [14:52:43]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [14:52:43]wFMCommunicate OK [14:52:43]SAM_PROTO_GetShiftState done [14:52:43]FM_GetShiftState done [14:52:43]req_shift_opened done [14:52:43]requested_item shift.open_date is exist - process it [14:52:43]req_shift_open_date [14:52:43]req_shift_open_date done [14:52:43]produce_requested_data done [14:52:43]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103700,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [14:52:43]process_action_free close_receipt [14:52:43]json_value_free [14:52:43]json_value_free done [14:52:43]process_json_proto returns [14:52:43]Send response to host [14:52:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103700,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [14:52:43]free response buf [14:52:43]execute_script done [14:52:43]execute_script returns [14:52:43]free content buf [14:52:43]Sock 9.Close socket [14:52:43]Sock 9.Thread stoped [14:52:47]OFD Sender: No OFD packet to send [14:52:52]OFD Sender: No OFD packet to send [14:52:57]OFD Sender: No OFD packet to send [14:53:02]OFD Sender: No OFD packet to send [14:53:07]OFD Sender: No OFD packet to send [14:53:12]OFD Sender: No OFD packet to send [14:53:17]OFD Sender: No OFD packet to send [14:53:22]OFD Sender: No OFD packet to send [14:53:27]OFD Sender: No OFD packet to send [14:53:32]OFD Sender: No OFD packet to send [14:53:37]OFD Sender: No OFD packet to send [14:53:42]OFD Sender: No OFD packet to send [14:53:47]OFD Sender: No OFD packet to send [14:53:52]OFD Sender: No OFD packet to send [14:53:57]OFD Sender: No OFD packet to send [14:54:02]OFD Sender: No OFD packet to send [14:54:07]OFD Sender: No OFD packet to send [14:54:12]OFD Sender: No OFD packet to send [14:54:17]OFD Sender: No OFD packet to send [14:54:22]OFD Sender: No OFD packet to send [14:54:27]OFD Sender: No OFD packet to send [14:54:32]OFD Sender: No OFD packet to send [14:54:37]OFD Sender: No OFD packet to send [14:54:41]accept exits with 10 [14:54:41]New connection [14:54:41]New thread 3067084132 created [14:54:41]Thread 3067227492 joined [14:54:41]Waiting for new connection... [14:54:41] Sock 10.Parse request [14:54:41]Sock 10.Check first char [14:54:41]Sock 10.First char is OK [14:54:41]request: POST /json_proto HTTP/1.0 [14:54:41]Method: POST [14:54:41]URL: /json_proto [14:54:41]Method is POST - this is cgi request [14:54:41]url: /json_proto [14:54:41]query_string will be loaded in cgi processing [14:54:41]execute_cgi json_proto POST (null) [14:54:41]execute_cgi path=json_proto method=POST [14:54:41]POST find Content-Length [14:54:41]Host: 172.17.38.133:8080 [14:54:41]Content-Length: 1201 [14:54:41]Content-Type: application/json [14:54:41] [14:54:41]POST finish read [14:54:41]Found Content-Length = 1201 [14:54:41]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 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. \u000A\u0421\u0447\u0435\u0442 N : (1)672963\u000A19.06.2024 14:32\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 31\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124500\u000A\u0410\u0438-95-\u041A-5\u000A 11.000 x 73.90\u000A\u0418\u0422\u041E\u0413: 812.90\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0435\u0445\u043D\u043E\u043B\u043E\u0433\u0438\u0447\u0435\u0441\u043A\u0438\u0439 \u043E\u0442\u043F\u0443\u0441\u043A: \u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:54:41]execute_script... [14:54:41]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 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. \u000A\u0421\u0447\u0435\u0442 N : (1)672963\u000A19.06.2024 14:32\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 31\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124500\u000A\u0410\u0438-95-\u041A-5\u000A 11.000 x 73.90\u000A\u0418\u0422\u041E\u0413: 812.90\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0435\u0445\u043D\u043E\u043B\u043E\u0433\u0438\u0447\u0435\u0441\u043A\u0438\u0439 \u043E\u0442\u043F\u0443\u0441\u043A: \u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:54:41]POST & json_proto [14:54:41]process_json_proto [14:54:41]json parsed OK: [14:54:41]protocol is kg_v1.0 [14:54:41]action value=print_text [14:54:41]process_action print_text [14:54:41]cmd_print_text [14:54:41]ExternCall_PrintAddStr [14:54:41]wPrintStart [14:54:41]Write to MH i2c: 01 00 00 63 B3 16 [14:54:41]Write i2c OK [14:54:41]MH_I2C_Read... [14:54:41]Read from MH i2c: 01 [14:54:41]MH_I2C_Read... [14:54:41]Read from MH i2c: 01 07 00 [14:54:41]MH_I2C_Read... [14:54:41]Read from MH i2c: 01 07 00 63 B3 00 00 00 00 00 FF 0F 2B [14:54:41]RasterBufferAndPrint [14:54:41]line *****ТОВАРНЫЙ ЧЕК***** [14:54:41]line АЗС 120 [14:54:41]line Партнер нефть [14:54:41]line 02508201610067 [14:54:41]line Кассир : Байбугуева Г. [14:54:41]line Счет N : (1)672963 [14:54:41]line 19.06.2024 14:32 [14:54:41]line ПРОДАЖА [14:54:41]line ТРК (МРК, ГНК): 31 [14:54:41]line Вид ГСМ : 2710124500 [14:54:41]line Аи-95-К-5 [14:54:41]line 11.000 x 73.90 [14:54:41]line ИТОГ: 812.90 [14:54:41]line Тип оплаты: Технологический отпуск: [14:54:41]line ______________________ [14:54:41]line (подпись) [14:54:41]written 0, free lines is 4095 [14:54:41]Write to MH i2c: 01 00 00 76 B3 29 [14:54:41]Write i2c OK [14:54:41]MH_I2C_Read... [14:54:41]Read from MH i2c: 01 [14:54:41]MH_I2C_Read... [14:54:41]Read from MH i2c: 01 07 00 [14:54:41]MH_I2C_Read... [14:54:41]Read from MH i2c: 01 07 00 76 B3 00 00 00 00 00 2B 0E 69 [14:54:41]RasterBufferAndPrint [14:54:41]line [14:54:41]line [14:54:41]line [14:54:41]line [14:54:41]line [14:54:41]written 0, free lines is 3628 [14:54:41]MH_Cut [14:54:41]Write to MH i2c: D1 01 00 7D B3 01 02 [14:54:41]Write i2c OK [14:54:41]MH_I2C_Read... [14:54:41]Read from MH i2c: D1 [14:54:41]MH_I2C_Read... [14:54:41]Read from MH i2c: D1 01 00 [14:54:41]MH_I2C_Read... [14:54:41]Read from MH i2c: D1 01 00 7D B3 00 01 [14:54:41]Write to MH i2c: 01 00 00 7E B3 31 [14:54:41]Write i2c OK [14:54:41]MH_I2C_Read... [14:54:42]*** Cut start [14:54:42]*** Partial cut [14:54:42]*** CUTSNS_PIN = 1 [14:54:42]*** CUTSNS_PIN = 0 [14:54:42]*** Brake cut motor [14:54:42]OFD Sender: No OFD packet to send [14:54:42]Read from MH i2c: 01 [14:54:42]MH_I2C_Read... [14:54:42]Read from MH i2c: 01 07 00 [14:54:42]MH_I2C_Read... [14:54:42]*** Stop cut motor [14:54:42]*** Cut end [14:54:42]Read from MH i2c: 01 07 00 7E B3 00 00 00 00 00 FF 0F 46 [14:54:42]process_action print_text done [14:54:42]requested_data is exist [14:54:42]produce_requested_data [14:54:42]requested_item fm.sn is exist - process it [14:54:42]wFMCommunicate request_size=4 [14:54:42]MH_SAM_APDU [14:54:42]CAPDU: 80 11 00 00 [14:54:42]Write to MH i2c: E2 08 00 7F B3 80 11 00 00 00 00 00 00 AC [14:54:42]Write i2c OK [14:54:42]MH_I2C_Read... [14:54:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:54:42]Read from MH i2c: E2 [14:54:42]MH_I2C_Read... [14:54:42]Read from MH i2c: E2 17 00 [14:54:42]MH_I2C_Read... [14:54:42]Read from MH i2c: E2 17 00 7F B3 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 FF [14:54:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [14:54:42]wFMCommunicate OK [14:54:42]requested_item fd.num is exist - process it [14:54:42]SAM_PROTO_GetFieldsCounters [14:54:42]wFMCommunicate request_size=4 [14:54:42]MH_SAM_APDU [14:54:42]CAPDU: 80 13 00 00 [14:54:42]Write to MH i2c: E2 08 00 80 B3 80 13 00 00 00 00 00 00 AF [14:54:42]Write i2c OK [14:54:42]MH_I2C_Read... [14:54:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:54:42]Read from MH i2c: E2 [14:54:42]MH_I2C_Read... [14:54:42]Read from MH i2c: E2 62 00 [14:54:42]MH_I2C_Read... [14:54:42]Read from MH i2c: E2 62 00 80 B3 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 14 95 01 00 0E 04 04 00 61 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 68 [14:54:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 14 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 82 00 00 00 5E 04 04 00 82 00 00 00 57 04 04 00 83 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:54:42]wFMCommunicate OK [14:54:42]SAM_PROTO_GetFieldsCounters done [14:54:42]requested_item shift.num is exist - process it [14:54:42]requested_item shift.opened is exist - process it [14:54:42]req_shift_opened [14:54:42]FM_GetShiftState [14:54:42]SAM_PROTO_GetShiftState [14:54:42]wFMCommunicate request_size=4 [14:54:42]MH_SAM_APDU [14:54:42]CAPDU: 80 13 01 00 [14:54:42]Write to MH i2c: E2 08 00 81 B3 80 13 01 00 00 00 00 00 B1 [14:54:42]Write i2c OK [14:54:42]MH_I2C_Read... [14:54:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:54:43]Read from MH i2c: E2 [14:54:43]MH_I2C_Read... [14:54:43]Read from MH i2c: E2 0E 00 [14:54:43]MH_I2C_Read... [14:54:43]Read from MH i2c: E2 0E 00 81 B3 00 09 00 01 04 26 72 66 00 00 00 00 90 00 BF [14:54:43]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [14:54:43]wFMCommunicate OK [14:54:43]SAM_PROTO_GetShiftState done [14:54:43]FM_GetShiftState done [14:54:43]req_shift_opened done [14:54:43]requested_item shift.open_date is exist - process it [14:54:43]req_shift_open_date [14:54:43]req_shift_open_date done [14:54:43]produce_requested_data done [14:54:43]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103700,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [14:54:43]process_action_free print_text [14:54:43]json_value_free [14:54:43]json_value_free done [14:54:43]process_json_proto returns [14:54:43]Send response to host [14:54:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103700,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [14:54:43]free response buf [14:54:43]execute_script done [14:54:43]execute_script returns [14:54:43]free content buf [14:54:43]Sock 10.Close socket [14:54:43]Sock 10.Thread stoped [14:54:47]OFD Sender: No OFD packet to send [14:54:52]OFD Sender: No OFD packet to send [14:54:57]OFD Sender: No OFD packet to send [14:55:02]OFD Sender: No OFD packet to send [14:55:07]OFD Sender: No OFD packet to send [14:55:12]OFD Sender: No OFD packet to send [14:55:17]OFD Sender: No OFD packet to send [14:55:21]accept exits with 7 [14:55:21]New connection [14:55:21]New thread 3067227492 created [14:55:21]Thread 3067084132 joined [14:55:21]Waiting for new connection... [14:55:21] Sock 7.Parse request [14:55:21]Sock 7.Check first char [14:55:21]Sock 7.First char is OK [14:55:21]request: POST /json_proto HTTP/1.0 [14:55:21]Method: POST [14:55:21]URL: /json_proto [14:55:21]Method is POST - this is cgi request [14:55:21]url: /json_proto [14:55:21]query_string will be loaded in cgi processing [14:55:21]execute_cgi json_proto POST (null) [14:55:21]execute_cgi path=json_proto method=POST [14:55:21]POST find Content-Length [14:55:21]Host: 172.17.38.133:8080 [14:55:21]Content-Length: 1201 [14:55:21]Content-Type: application/json [14:55:21] [14:55:21]POST finish read [14:55:21]Found Content-Length = 1201 [14:55:21]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 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. \u000A\u0421\u0447\u0435\u0442 N : (1)672964\u000A19.06.2024 14:32\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 41\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124500\u000A\u0410\u0438-95-\u041A-5\u000A 10.000 x 73.90\u000A\u0418\u0422\u041E\u0413: 739.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0435\u0445\u043D\u043E\u043B\u043E\u0433\u0438\u0447\u0435\u0441\u043A\u0438\u0439 \u043E\u0442\u043F\u0443\u0441\u043A: \u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:55:21]execute_script... [14:55:21]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 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. \u000A\u0421\u0447\u0435\u0442 N : (1)672964\u000A19.06.2024 14:32\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 41\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124500\u000A\u0410\u0438-95-\u041A-5\u000A 10.000 x 73.90\u000A\u0418\u0422\u041E\u0413: 739.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0435\u0445\u043D\u043E\u043B\u043E\u0433\u0438\u0447\u0435\u0441\u043A\u0438\u0439 \u043E\u0442\u043F\u0443\u0441\u043A: \u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:55:21]POST & json_proto [14:55:21]process_json_proto [14:55:21]json parsed OK: [14:55:21]protocol is kg_v1.0 [14:55:21]action value=print_text [14:55:21]process_action print_text [14:55:21]cmd_print_text [14:55:21]ExternCall_PrintAddStr [14:55:21]wPrintStart [14:55:21]Write to MH i2c: 01 00 00 82 B3 35 [14:55:21]Write i2c OK [14:55:21]MH_I2C_Read... [14:55:21]Read from MH i2c: 01 [14:55:21]MH_I2C_Read... [14:55:21]Read from MH i2c: 01 07 00 [14:55:21]MH_I2C_Read... [14:55:21]Read from MH i2c: 01 07 00 82 B3 00 00 00 00 00 FF 0F 4A [14:55:21]RasterBufferAndPrint [14:55:21]line *****ТОВАРНЫЙ ЧЕК***** [14:55:21]line АЗС 120 [14:55:21]line Партнер нефть [14:55:21]line 02508201610067 [14:55:21]line Кассир : Байбугуева Г. [14:55:21]line Счет N : (1)672964 [14:55:21]line 19.06.2024 14:32 [14:55:21]line ПРОДАЖА [14:55:21]line ТРК (МРК, ГНК): 41 [14:55:21]line Вид ГСМ : 2710124500 [14:55:21]line Аи-95-К-5 [14:55:21]line 10.000 x 73.90 [14:55:21]line ИТОГ: 739.00 [14:55:21]line Тип оплаты: Технологический отпуск: [14:55:21]line ______________________ [14:55:21]line (подпись) [14:55:21]written 0, free lines is 4095 [14:55:22]Write to MH i2c: 01 00 00 95 B3 48 [14:55:22]Write i2c OK [14:55:22]MH_I2C_Read... [14:55:22]Read from MH i2c: 01 [14:55:22]MH_I2C_Read... [14:55:22]Read from MH i2c: 01 07 00 [14:55:22]MH_I2C_Read... [14:55:22]Read from MH i2c: 01 07 00 95 B3 00 00 00 00 00 2A 0E 87 [14:55:22]RasterBufferAndPrint [14:55:22]line [14:55:22]line [14:55:22]line [14:55:22]line [14:55:22]line [14:55:22]written 0, free lines is 3628 [14:55:22]MH_Cut [14:55:22]Write to MH i2c: D1 01 00 9C B3 01 21 [14:55:22]Write i2c OK [14:55:22]MH_I2C_Read... [14:55:22]Read from MH i2c: D1 [14:55:22]MH_I2C_Read... [14:55:22]Read from MH i2c: D1 01 00 [14:55:22]MH_I2C_Read... [14:55:22]Read from MH i2c: D1 01 00 9C B3 00 20 [14:55:22]Write to MH i2c: 01 00 00 9D B3 50 [14:55:22]Write i2c OK [14:55:22]MH_I2C_Read... [14:55:22]OFD Sender: No OFD packet to send [14:55:22]*** Cut start [14:55:22]*** Partial cut [14:55:22]*** CUTSNS_PIN = 1 [14:55:22]*** CUTSNS_PIN = 0 [14:55:22]*** Brake cut motor [14:55:23]Read from MH i2c: 01 [14:55:23]MH_I2C_Read... [14:55:23]Read from MH i2c: 01 07 00 [14:55:23]MH_I2C_Read... [14:55:23]*** Stop cut motor [14:55:23]*** Cut end [14:55:23]Read from MH i2c: 01 07 00 9D B3 00 00 00 00 00 FF 0F 65 [14:55:23]process_action print_text done [14:55:23]requested_data is exist [14:55:23]produce_requested_data [14:55:23]requested_item fm.sn is exist - process it [14:55:23]wFMCommunicate request_size=4 [14:55:23]MH_SAM_APDU [14:55:23]CAPDU: 80 11 00 00 [14:55:23]Write to MH i2c: E2 08 00 9E B3 80 11 00 00 00 00 00 00 CB [14:55:23]Write i2c OK [14:55:23]MH_I2C_Read... [14:55:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:55:23]Read from MH i2c: E2 [14:55:23]MH_I2C_Read... [14:55:23]Read from MH i2c: E2 17 00 [14:55:23]MH_I2C_Read... [14:55:23]Read from MH i2c: E2 17 00 9E B3 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 1E [14:55:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [14:55:23]wFMCommunicate OK [14:55:23]requested_item fd.num is exist - process it [14:55:23]SAM_PROTO_GetFieldsCounters [14:55:23]wFMCommunicate request_size=4 [14:55:23]MH_SAM_APDU [14:55:23]CAPDU: 80 13 00 00 [14:55:23]Write to MH i2c: E2 08 00 9F B3 80 13 00 00 00 00 00 00 CE [14:55:23]Write i2c OK [14:55:23]MH_I2C_Read... [14:55:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:55:23]Read from MH i2c: E2 [14:55:23]MH_I2C_Read... [14:55:23]Read from MH i2c: E2 62 00 [14:55:23]MH_I2C_Read... [14:55:23]Read from MH i2c: E2 62 00 9F B3 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 14 95 01 00 0E 04 04 00 61 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 87 [14:55: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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 14 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 82 00 00 00 5E 04 04 00 82 00 00 00 57 04 04 00 83 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:55:23]wFMCommunicate OK [14:55:23]SAM_PROTO_GetFieldsCounters done [14:55:23]requested_item shift.num is exist - process it [14:55:23]requested_item shift.opened is exist - process it [14:55:23]req_shift_opened [14:55:23]FM_GetShiftState [14:55:23]SAM_PROTO_GetShiftState [14:55:23]wFMCommunicate request_size=4 [14:55:23]MH_SAM_APDU [14:55:23]CAPDU: 80 13 01 00 [14:55:23]Write to MH i2c: E2 08 00 A0 B3 80 13 01 00 00 00 00 00 D0 [14:55:23]Write i2c OK [14:55:23]MH_I2C_Read... [14:55:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:55:23]Read from MH i2c: E2 [14:55:23]MH_I2C_Read... [14:55:23]Read from MH i2c: E2 0E 00 [14:55:23]MH_I2C_Read... [14:55:23]Read from MH i2c: E2 0E 00 A0 B3 00 09 00 01 04 26 72 66 00 00 00 00 90 00 DE [14:55:23]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [14:55:23]wFMCommunicate OK [14:55:23]SAM_PROTO_GetShiftState done [14:55:23]FM_GetShiftState done [14:55:23]req_shift_opened done [14:55:23]requested_item shift.open_date is exist - process it [14:55:23]req_shift_open_date [14:55:23]req_shift_open_date done [14:55:23]produce_requested_data done [14:55:23]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103700,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [14:55:23]process_action_free print_text [14:55:23]json_value_free [14:55:23]json_value_free done [14:55:23]process_json_proto returns [14:55:23]Send response to host [14:55:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103700,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [14:55:23]free response buf [14:55:23]execute_script done [14:55:23]execute_script returns [14:55:23]free content buf [14:55:23]Sock 7.Close socket [14:55:23]Sock 7.Thread stoped [14:55:27]OFD Sender: No OFD packet to send [14:55:32]OFD Sender: No OFD packet to send [14:55:37]OFD Sender: No OFD packet to send [14:55:42]OFD Sender: No OFD packet to send [14:55:47]OFD Sender: No OFD packet to send [14:55:52]OFD Sender: No OFD packet to send [14:55:56]accept exits with 9 [14:55:56]New connection [14:55:56]New thread 3067084132 created [14:55:56]Thread 3067227492 joined [14:55:56]Waiting for new connection... [14:55:56] Sock 9.Parse request [14:55:56]Sock 9.Check first char [14:55:56]Sock 9.First char is OK [14:55:56]request: POST /json_proto HTTP/1.0 [14:55:56]Method: POST [14:55:56]URL: /json_proto [14:55:56]Method is POST - this is cgi request [14:55:56]url: /json_proto [14:55:56]query_string will be loaded in cgi processing [14:55:56]execute_cgi json_proto POST (null) [14:55:56]execute_cgi path=json_proto method=POST [14:55:56]POST find Content-Length [14:55:56]Host: 172.17.38.133:8080 [14:55:56]Content-Length: 640 [14:55:56]Content-Type: application/json [14:55:56] [14:55:56]POST finish read [14:55:56]Found Content-Length = 640 [14:55:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672966", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 10.000, "sum" : 739.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 739.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:55:56]execute_script... [14:55: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)672966", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 10.000, "sum" : 739.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 739.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:55:56]POST & json_proto [14:55:56]process_json_proto [14:55:56]json parsed OK: [14:55:56]protocol is kg_v1.0 [14:55:56]action value=close_receipt [14:55:56]process_action close_receipt [14:55:56]cmd_close_receipt [14:55:56]MH_GetDate [14:55:56]Write to MH i2c: F0 00 00 A1 B3 43 [14:55:56]Write i2c OK [14:55:56]MH_I2C_Read... [14:55:56]Read from MH i2c: F0 [14:55:56]MH_I2C_Read... [14:55:56]Read from MH i2c: F0 09 00 [14:55:56]MH_I2C_Read... [14:55:56]Read from MH i2c: F0 09 00 A1 B3 00 89 F1 72 66 BD 8F 7C 64 CA [14:55:56]GetLastDocTimeStamp 1718808772 [14:55:56]current date 1718808969 [14:55:56]FM_GetShiftState [14:55:56]SAM_PROTO_GetShiftState [14:55:56]wFMCommunicate request_size=4 [14:55:56]MH_SAM_APDU [14:55:56]CAPDU: 80 13 01 00 [14:55:56]Write to MH i2c: E2 08 00 A2 B3 80 13 01 00 00 00 00 00 D2 [14:55:56]Write i2c OK [14:55:56]MH_I2C_Read... [14:55:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:55:56]Read from MH i2c: E2 [14:55:56]MH_I2C_Read... [14:55:56]Read from MH i2c: E2 0E 00 [14:55:56]MH_I2C_Read... [14:55:56]Read from MH i2c: E2 0E 00 A2 B3 00 09 00 01 04 26 72 66 00 00 00 00 90 00 E0 [14:55:56]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [14:55:56]wFMCommunicate OK [14:55:56]SAM_PROTO_GetShiftState done [14:55:56]FM_GetShiftState done [14:55:56]opened in 1718756868 [14:55:56]opened+sec_in_day 1718843268 [14:55:56]quantity*price = 73900 [14:55:56]sum+1 = 73901 [14:55:56]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 739.00 НСП 1% : 6.54 НДС 12% : 78.48 Наличными: 739.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 131 19.06.2024 14:56 Смена: 353 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103701 ФПД: 261073215671849 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T145609&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103701&fm=261073215671849&tin=02508201610067®Number=0000000000092785&sum=73900 [14:55:57]StoreToDocumentArchive [14:55:57]shift 353 fd 103701 [14:55:57]save to /storage/0353/doc_00103701 [14:55:57]save last doc name /storage/0353/doc_00103701 to /storage/kkm_last_doc_name [14:55:57]save OK [14:55:57]Clear old archive folders... [14:55:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:55:57]tlvbuf is 016E5600 [14:55:57]SAM_PROTO_ClearQueue [14:55:57]wFMCommunicate request_size=4 [14:55:57]MH_SAM_APDU [14:55:57]CAPDU: 80 09 00 00 [14:55:57]Write to MH i2c: E2 08 00 AF B3 80 09 00 00 00 00 00 00 D4 [14:55:57]Write i2c OK [14:55:57]MH_I2C_Read... [14:55:57]OFD Sender: No OFD packet to send [14:55:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:55:57]Read from MH i2c: E2 [14:55:57]MH_I2C_Read... [14:55:57]Read from MH i2c: E2 03 00 [14:55:57]MH_I2C_Read... [14:55:57]Read from MH i2c: E2 03 00 AF B3 00 90 00 D6 [14:55:57]RAPDU: 90 00 [14:55:57]wFMCommunicate OK [14:55:57]SAM_PROTO_ClearQueue done [14:55:57]KKMCreateOFDPacket [14:55:57]OFDProtocolAddRootSTLVToBuf [14:55:57]FM_MakeSignedData [14:55:57]FM_MakeSignedData [14:55:57]SAM_PROTO_SignData [14:55:57]wFMCommunicate request_size=4 [14:55:57]MH_SAM_APDU [14:55:57]CAPDU: 80 0D 01 02 [14:55:57]Write to MH i2c: E2 08 00 B0 B3 80 0D 01 02 00 00 00 00 DC [14:55:57]Write i2c OK [14:55:57]MH_I2C_Read... [14:55:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:55:57]Read from MH i2c: E2 [14:55:57]MH_I2C_Read... [14:55:57]Read from MH i2c: E2 03 00 [14:55:57]MH_I2C_Read... [14:55:57]Read from MH i2c: E2 03 00 B0 B3 00 90 00 D7 [14:55:57]RAPDU: 90 00 [14:55:57]wFMCommunicate OK [14:55:57]wFMCommunicate request_size=255 [14:55:57]MH_SAM_APDU [14:55:57]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 AC 20 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 20 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A8 1E 00 00 00 00 07 04 06 00 AC 20 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 89 F1 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 15 95 01 00 35 04 06 00 ED [14:55:57]Write to MH i2c: E2 02 01 B1 B3 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 AC 20 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 20 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A8 1E 00 00 00 00 07 04 06 00 AC 20 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 89 F1 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 15 95 01 00 35 04 06 00 ED 00 00 AD [14:55:57]Write i2c OK [14:55:57]MH_I2C_Read... [14:55:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:55:57]Read from MH i2c: E2 [14:55:57]MH_I2C_Read... [14:55:57]Read from MH i2c: E2 03 00 [14:55:57]MH_I2C_Read... [14:55:57]Read from MH i2c: E2 03 00 B1 B3 00 90 00 D8 [14:55:57]RAPDU: 90 00 [14:55:57]wFMCommunicate OK [14:55:57]wFMCommunicate request_size=10 [14:55:57]MH_SAM_APDU [14:55:57]CAPDU: 80 0D 02 02 05 71 D8 47 CE 29 [14:55:57]Write to MH i2c: E2 0D 00 B2 B3 80 0D 02 02 05 00 71 D8 47 CE 29 00 00 70 [14:55:57]Write i2c OK [14:55:57]MH_I2C_Read... [14:55:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:55:58]Read from MH i2c: E2 [14:55:58]MH_I2C_Read... [14:55:58]Read from MH i2c: E2 03 00 [14:55:58]MH_I2C_Read... [14:55:58]Read from MH i2c: E2 03 00 B2 B3 00 90 00 D9 [14:55:58]RAPDU: 90 00 [14:55:58]wFMCommunicate OK [14:55:58]wFMCommunicate request_size=4 [14:55:58]MH_SAM_APDU [14:55:58]CAPDU: 80 0D 03 02 [14:55:58]Write to MH i2c: E2 08 00 B3 B3 80 0D 03 02 00 00 00 00 E1 [14:55:58]Write i2c OK [14:55:58]MH_I2C_Read... [14:55:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:55:58]Read from MH i2c: E2 [14:55:58]MH_I2C_Read... [14:55:58]Read from MH i2c: E2 0B 00 [14:55:58]MH_I2C_Read... [14:55:58]Read from MH i2c: E2 0B 00 B3 B3 00 91 4A 15 5C E7 FB 97 87 90 00 2E [14:55:58]RAPDU: 91 4A 15 5C E7 FB 97 87 90 00 [14:55:58]wFMCommunicate OK [14:55:58]SAM_PROTO_SignData done [14:55:58]FM_MakeSignedData done [14:55:58]CreateOFDProtocolMessage [14:55:58]wFMCommunicate request_size=4 [14:55:58]MH_SAM_APDU [14:55:58]CAPDU: 80 11 00 00 [14:55:58]Write to MH i2c: E2 08 00 B4 B3 80 11 00 00 00 00 00 00 E1 [14:55:58]Write i2c OK [14:55:58]MH_I2C_Read... [14:55:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:55:58]Read from MH i2c: E2 [14:55:58]MH_I2C_Read... [14:55:58]Read from MH i2c: E2 17 00 [14:55:58]MH_I2C_Read... [14:55:58]Read from MH i2c: E2 17 00 B4 B3 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 34 [14:55:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [14:55:58]wFMCommunicate OK [14:55:58]CreateOFDProtocolMessage done [14:55:58]OFDSenderStorePacket 103701 [14:55:58]StoreOFDPacket docnum=103701 [14:55:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 FC 2E 07 01 B5 1D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 AC 20 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 20 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A8 1E 00 00 00 00 07 04 06 00 AC 20 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 89 F1 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 15 95 01 00 35 04 06 00 ED 71 D8 47 CE 29 91 4A 15 5C E7 FB 97 87 [14:55:58]CheckFolder [14:55:58]dirname=/storage/ofd_packets [14:55:58]CheckFolder done [14:55:58]ProducePacketName [14:55:58]name=ofd_packets/00103701 [14:55:58]NVStorageSaveData ofd_packets/00103701 [14:55:58]File name is /storage/ofd_packets/00103701 [14:55:58]Write 301 bytes [14:55:58]NVStorageSaveData done [14:55:58]OFDSenderStorePacket done [14:55:58]KKMCreateOFDPacket done [14:55:58]NVStorageSaveData kkm_last_timestamp [14:55:58]File name is /storage/kkm_last_timestamp [14:55:58]Write 4 bytes [14:55:58]NVStorageSaveData done [14:55:58]ExternCall_PrintAddStr [14:55:58]wPrintStart [14:55:58]Write to MH i2c: 01 00 00 B5 B3 68 [14:55:58]Write i2c OK [14:55:58]MH_I2C_Read... [14:55:58]Read from MH i2c: 01 [14:55:58]MH_I2C_Read... [14:55:58]Read from MH i2c: 01 07 00 [14:55:58]MH_I2C_Read... [14:55:58]Read from MH i2c: 01 07 00 B5 B3 00 00 00 00 00 FF 0F 7D [14:55:58]RasterBufferAndPrint [14:55:58]line Счет N : (1)672966 [14:55:58]line ИНН: 02508201610067 [14:55:58]line Контрольно-Кассовый Чек [14:55:58]line ПРОДАЖА [14:55:58]line ТРК (МРК, ГНК) : 41 [14:55:58]line Товар: 2710124500 [14:55:58]line Аи-95-К-5 [14:55:58]line 10.000 * 73.90 [14:55:58]line = 739.00 [14:55:58]line НДС 12% НСП 1% [14:55:58]line > о реализуемом товаре [14:55:58]line ИТОГО: 739.00 [14:55:58]line НСП 1% : 6.54 [14:55:58]line НДС 12% : 78.48 [14:55:58]line Наличными: 739.00 [14:55:58]line Безнал.: 0.00 [14:55:58]line Место: АЗС № 120 "Партнер Нефть" [14:55:58]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [14:55:58]line СНО: Общий режим [14:55:58]line Чек 131 19.06.2024 14:56 [14:55:58]line Смена: 353 ФФД: 1.0 [14:55:58]line ЗНМ: 0300000164 [14:55:58]line РНМ: 0000000000092785 [14:55:58]line Версия ККМ: 001 [14:55:58]line ФМ: 0000000000875093 [14:55:58]line ФД: 103701 [14:55:58]line ФПД: 261073215671849 [14:55:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T145609&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103701&fm=261073215671849&tin=02508201610067®Number=0000000000092785&sum=73900 [14:55:58]OFD Sender: Processing packet 103701 [packets to send 17, broken 16] [14:55:58]ProducePacketName [14:55:58]name=ofd_packets/00103701 [14:55:58]OFD Sender: To server: pG, [14:55:58]CommunicateWithHost lk.salyk.kg:30040 [14:55:58]ConnectInit lk.salyk.kg [14:55:58]written 0, free lines is 4095 [14:55:58]Connected sock=10 [14:55: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 39 33 0F 01 00 00 FC 2E 07 01 B5 1D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 AC 20 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 20 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A8 1E 00 00 00 00 07 04 06 00 AC 20 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 89 F1 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 15 95 01 00 35 04 06 00 ED 71 D8 47 CE 29 91 4A 15 5C E7 FB 97 87 [14:55: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 39 33 4F 00 00 00 76 F4 47 00 28 0C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 15 95 01 00 F4 03 04 00 11 98 72 66 B6 04 01 00 00 29 E8 1A AC 9F C2 0A CC [14:55:58]CommunicateWithHost err = 0 [14:55:58]CheckOFDResponse [14:55:58]1017 (14) - 77093643461234 [14:55:58]1041 (16) - 0000000000875093 [14:55:58]1040 (4) - 103701 [14:55:58]1012 (4) - 19.06.2024 08:34 [14:55:58]1206 (1) - 0 [14:55:58]OFD Sender: Remove packet 103701 [14:55:58]ProducePacketName [14:55:58]name=ofd_packets/00103701 [14:55:58]NVStorageDeleteData [14:55:58]Write to MH i2c: 01 00 00 DD B3 90 [14:55:58]Write i2c OK [14:55:58]MH_I2C_Read... [14:55:58]Read from MH i2c: 01 [14:55:58]MH_I2C_Read... [14:55:58]Read from MH i2c: 01 07 00 [14:55:58]MH_I2C_Read... [14:55:58]Read from MH i2c: 01 07 00 DD B3 00 00 00 00 00 0A 0D AE [14:55:58]RasterBufferAndPrint [14:55:58]line [14:55:58]line [14:55:58]line [14:55:58]line [14:55:58]line [14:55:58]written 0, free lines is 3344 [14:55:58]MH_Cut [14:55:58]Write to MH i2c: D1 01 00 E4 B3 01 69 [14:55:58]Write i2c OK [14:55:58]MH_I2C_Read... [14:55:58]Read from MH i2c: D1 [14:55:58]MH_I2C_Read... [14:55:58]Read from MH i2c: D1 01 00 [14:55:58]MH_I2C_Read... [14:55:58]Read from MH i2c: D1 01 00 E4 B3 00 68 [14:55:58]Write to MH i2c: 01 00 00 E5 B3 98 [14:55:58]Write i2c OK [14:55:58]MH_I2C_Read... [14:55:59]OFD Sender: No OFD packet to send [14:55:59]*** Cut start [14:55:59]*** Partial cut [14:55:59]*** CUTSNS_PIN = 1 [14:55:59]*** CUTSNS_PIN = 0 [14:55:59]*** Brake cut motor [14:56:00]Read from MH i2c: 01 [14:56:00]MH_I2C_Read... [14:56:00]*** Stop cut motor [14:56:00]*** Cut end [14:56:00]Read from MH i2c: 01 07 00 [14:56:00]MH_I2C_Read... [14:56:00]Read from MH i2c: 01 07 00 E5 B3 00 00 00 00 00 FF 0F AD [14:56:00]process_action close_receipt done [14:56:00]requested_data is exist [14:56:00]produce_requested_data [14:56:00]requested_item fm.sn is exist - process it [14:56:00]wFMCommunicate request_size=4 [14:56:00]MH_SAM_APDU [14:56:00]CAPDU: 80 11 00 00 [14:56:00]Write to MH i2c: E2 08 00 E6 B3 80 11 00 00 00 00 00 00 13 [14:56:00]Write i2c OK [14:56:00]MH_I2C_Read... [14:56:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:56:00]Read from MH i2c: E2 [14:56:00]MH_I2C_Read... [14:56:00]Read from MH i2c: E2 17 00 [14:56:00]MH_I2C_Read... [14:56:00]Read from MH i2c: E2 17 00 E6 B3 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 66 [14:56:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [14:56:00]wFMCommunicate OK [14:56:00]requested_item fd.num is exist - process it [14:56:00]SAM_PROTO_GetFieldsCounters [14:56:00]wFMCommunicate request_size=4 [14:56:00]MH_SAM_APDU [14:56:00]CAPDU: 80 13 00 00 [14:56:00]Write to MH i2c: E2 08 00 E7 B3 80 13 00 00 00 00 00 00 16 [14:56:00]Write i2c OK [14:56:00]MH_I2C_Read... [14:56:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:56:00]Read from MH i2c: E2 [14:56:00]MH_I2C_Read... [14:56:00]Read from MH i2c: E2 62 00 [14:56:00]MH_I2C_Read... [14:56:00]Read from MH i2c: E2 62 00 E7 B3 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 15 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 83 00 00 00 5E 04 04 00 83 00 00 00 57 04 04 00 84 00 00 00 19 04 04 00 00 00 00 00 90 00 D3 [14:56: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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 15 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 83 00 00 00 5E 04 04 00 83 00 00 00 57 04 04 00 84 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:56:00]wFMCommunicate OK [14:56:00]SAM_PROTO_GetFieldsCounters done [14:56:00]requested_item shift.num is exist - process it [14:56:00]requested_item shift.opened is exist - process it [14:56:00]req_shift_opened [14:56:00]FM_GetShiftState [14:56:00]SAM_PROTO_GetShiftState [14:56:00]wFMCommunicate request_size=4 [14:56:00]MH_SAM_APDU [14:56:00]CAPDU: 80 13 01 00 [14:56:00]Write to MH i2c: E2 08 00 E8 B3 80 13 01 00 00 00 00 00 18 [14:56:00]Write i2c OK [14:56:00]MH_I2C_Read... [14:56:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:56:00]Read from MH i2c: E2 [14:56:00]MH_I2C_Read... [14:56:00]Read from MH i2c: E2 0E 00 [14:56:00]MH_I2C_Read... [14:56:00]Read from MH i2c: E2 0E 00 E8 B3 00 09 00 01 04 26 72 66 00 00 00 00 90 00 26 [14:56:00]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [14:56:00]wFMCommunicate OK [14:56:00]SAM_PROTO_GetShiftState done [14:56:00]FM_GetShiftState done [14:56:00]req_shift_opened done [14:56:00]requested_item shift.open_date is exist - process it [14:56:00]req_shift_open_date [14:56:00]req_shift_open_date done [14:56:00]produce_requested_data done [14:56:00]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103701,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [14:56:00]process_action_free close_receipt [14:56:00]json_value_free [14:56:00]json_value_free done [14:56:00]process_json_proto returns [14:56:00]Send response to host [14:56:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103701,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [14:56:00]free response buf [14:56:00]execute_script done [14:56:00]execute_script returns [14:56:00]free content buf [14:56:00]Sock 9.Close socket [14:56:00]Sock 9.Thread stoped [14:56:03]accept exits with 7 [14:56:03]New connection [14:56:03]New thread 3067227492 created [14:56:03]Thread 3067084132 joined [14:56:03]Waiting for new connection... [14:56:03] Sock 7.Parse request [14:56:03]Sock 7.Check first char [14:56:03]Sock 7.First char is OK [14:56:03]request: POST /json_proto HTTP/1.0 [14:56:03]Method: POST [14:56:03]URL: /json_proto [14:56:03]Method is POST - this is cgi request [14:56:03]url: /json_proto [14:56:03]query_string will be loaded in cgi processing [14:56:03]execute_cgi json_proto POST (null) [14:56:03]execute_cgi path=json_proto method=POST [14:56:03]POST find Content-Length [14:56:03]Host: 172.17.38.133:8080 [14:56:03]Content-Length: 697 [14:56:03]Content-Type: application/json [14:56:03] [14:56:03]POST finish read [14:56:03]Found Content-Length = 697 [14:56:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 103701, "base_FM": "0000000000875093", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672966", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 10.000, "sum" : 739.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 739.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:56:03]execute_script... [14:56:03]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 103701, "base_FM": "0000000000875093", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672966", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 10.000, "sum" : 739.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 739.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:56:03]POST & json_proto [14:56:03]process_json_proto [14:56:03]json parsed OK: [14:56:03]protocol is kg_v1.0 [14:56:03]action value=close_receipt [14:56:03]process_action close_receipt [14:56:03]cmd_close_receipt [14:56:03]MH_GetDate [14:56:03]Write to MH i2c: F0 00 00 E9 B3 8B [14:56:03]Write i2c OK [14:56:03]MH_I2C_Read... [14:56:03]Read from MH i2c: F0 [14:56:03]MH_I2C_Read... [14:56:03]Read from MH i2c: F0 09 00 [14:56:03]MH_I2C_Read... [14:56:03]Read from MH i2c: F0 09 00 E9 B3 00 90 F1 72 66 BD 8F 7C 64 19 [14:56:03]GetLastDocTimeStamp 1718808969 [14:56:03]current date 1718808976 [14:56:03]FM_GetShiftState [14:56:03]SAM_PROTO_GetShiftState [14:56:03]wFMCommunicate request_size=4 [14:56:03]MH_SAM_APDU [14:56:03]CAPDU: 80 13 01 00 [14:56:03]Write to MH i2c: E2 08 00 EA B3 80 13 01 00 00 00 00 00 1A [14:56:03]Write i2c OK [14:56:03]MH_I2C_Read... [14:56:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:56:03]Read from MH i2c: E2 [14:56:03]MH_I2C_Read... [14:56:03]Read from MH i2c: E2 0E 00 [14:56:03]MH_I2C_Read... [14:56:03]Read from MH i2c: E2 0E 00 EA B3 00 09 00 01 04 26 72 66 00 00 00 00 90 00 28 [14:56:03]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [14:56:03]wFMCommunicate OK [14:56:03]SAM_PROTO_GetShiftState done [14:56:03]FM_GetShiftState done [14:56:03]opened in 1718756868 [14:56:03]opened+sec_in_day 1718843268 [14:56:03]quantity*price = 73900 [14:56:03]sum+1 = 73901 [14:56:03]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 739.00 НСП 1% : 6.54 НДС 12% : 78.48 Наличными: 739.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 132 19.06.2024 14:56 Смена: 353 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФД осн.: 103701 ФМ осн.: 0000000000875093 ФМ: 0000000000875093 ФД: 103702 ФПД: 82355562671475 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T145616&type=2&operation_type=1&fn_number=0000000000875093&fd_number=103702&fm=82355562671475&tin=02508201610067®Number=0000000000092785&sum=73900 [14:56:05]StoreToDocumentArchive [14:56:05]shift 353 fd 103702 [14:56:05]save to /storage/0353/doc_00103702 [14:56:05]save last doc name /storage/0353/doc_00103702 to /storage/kkm_last_doc_name [14:56:05]save OK [14:56:05]Clear old archive folders... [14:56:05]ProcessDocumentItem done err = 0, tmpTLVsize=279 [14:56:05]tlvbuf is 016E5270 [14:56:05]SAM_PROTO_ClearQueue [14:56:05]wFMCommunicate request_size=4 [14:56:05]MH_SAM_APDU [14:56:05]CAPDU: 80 09 00 00 [14:56:05]Write to MH i2c: E2 08 00 F9 B3 80 09 00 00 00 00 00 00 1E [14:56:05]Write i2c OK [14:56:05]MH_I2C_Read... [14:56:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:56:05]Read from MH i2c: E2 [14:56:05]MH_I2C_Read... [14:56:05]Read from MH i2c: E2 03 00 [14:56:05]MH_I2C_Read... [14:56:05]Read from MH i2c: E2 03 00 F9 B3 00 90 00 20 [14:56:05]RAPDU: 90 00 [14:56:05]wFMCommunicate OK [14:56:05]SAM_PROTO_ClearQueue done [14:56:05]KKMCreateOFDPacket [14:56:05]OFDProtocolAddRootSTLVToBuf [14:56:05]FM_MakeSignedData [14:56:05]FM_MakeSignedData [14:56:05]SAM_PROTO_SignData [14:56:05]wFMCommunicate request_size=4 [14:56:05]MH_SAM_APDU [14:56:05]CAPDU: 80 0D 01 02 [14:56:05]Write to MH i2c: E2 08 00 FA B3 80 0D 01 02 00 00 00 00 26 [14:56:05]Write i2c OK [14:56:05]MH_I2C_Read... [14:56:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:56:05]Read from MH i2c: E2 [14:56:05]MH_I2C_Read... [14:56:05]Read from MH i2c: E2 03 00 [14:56:05]MH_I2C_Read... [14:56:05]Read from MH i2c: E2 03 00 FA B3 00 90 00 21 [14:56:05]RAPDU: 90 00 [14:56:05]wFMCommunicate OK [14:56:05]wFMCommunicate request_size=255 [14:56:05]MH_SAM_APDU [14:56:05]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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 AC 20 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 20 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A8 1E 00 00 00 00 07 04 06 00 AC 20 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 00 00 00 F4 03 04 00 90 F1 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 27 04 04 00 15 95 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 11 04 10 00 30 [14:56:05]Write to MH i2c: E2 02 01 FB B3 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 AC 20 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 20 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A8 1E 00 00 00 00 07 04 06 00 AC 20 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 00 00 00 F4 03 04 00 90 F1 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 27 04 04 00 15 95 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 11 04 10 00 30 00 00 74 [14:56:05]Write i2c OK [14:56:05]MH_I2C_Read... [14:56:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:56:05]Read from MH i2c: E2 [14:56:05]MH_I2C_Read... [14:56:05]Read from MH i2c: E2 03 00 [14:56:05]MH_I2C_Read... [14:56:05]Read from MH i2c: E2 03 00 FB B3 00 90 00 22 [14:56:05]RAPDU: 90 00 [14:56:05]wFMCommunicate OK [14:56:05]wFMCommunicate request_size=38 [14:56:05]MH_SAM_APDU [14:56:05]CAPDU: 80 0D 02 02 21 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 16 95 01 00 35 04 06 00 4A E6 E6 0E ED 73 [14:56:05]Write to MH i2c: E2 29 00 FC B3 80 0D 02 02 21 00 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 16 95 01 00 35 04 06 00 4A E6 E6 0E ED 73 00 00 E2 [14:56:05]Write i2c OK [14:56:05]MH_I2C_Read... [14:56:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:56:05]Read from MH i2c: E2 [14:56:05]MH_I2C_Read... [14:56:05]Read from MH i2c: E2 03 00 [14:56:05]MH_I2C_Read... [14:56:05]Read from MH i2c: E2 03 00 FC B3 00 90 00 23 [14:56:05]RAPDU: 90 00 [14:56:05]wFMCommunicate OK [14:56:05]wFMCommunicate request_size=4 [14:56:05]MH_SAM_APDU [14:56:05]CAPDU: 80 0D 03 02 [14:56:05]Write to MH i2c: E2 08 00 FD B3 80 0D 03 02 00 00 00 00 2B [14:56:05]Write i2c OK [14:56:05]MH_I2C_Read... [14:56:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:56:05]Read from MH i2c: E2 [14:56:05]MH_I2C_Read... [14:56:05]Read from MH i2c: E2 0B 00 [14:56:05]MH_I2C_Read... [14:56:05]Read from MH i2c: E2 0B 00 FD B3 00 9C 22 3B D2 7A 92 E3 46 90 00 2C [14:56:05]RAPDU: 9C 22 3B D2 7A 92 E3 46 90 00 [14:56:05]wFMCommunicate OK [14:56:05]SAM_PROTO_SignData done [14:56:05]FM_MakeSignedData done [14:56:05]CreateOFDProtocolMessage [14:56:05]wFMCommunicate request_size=4 [14:56:05]MH_SAM_APDU [14:56:05]CAPDU: 80 11 00 00 [14:56:05]Write to MH i2c: E2 08 00 FE B3 80 11 00 00 00 00 00 00 2B [14:56:05]Write i2c OK [14:56:05]MH_I2C_Read... [14:56:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:56:05]Read from MH i2c: E2 [14:56:05]MH_I2C_Read... [14:56:05]Read from MH i2c: E2 17 00 [14:56:05]MH_I2C_Read... [14:56:05]Read from MH i2c: E2 17 00 FE B3 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 7E [14:56:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [14:56:05]wFMCommunicate OK [14:56:05]CreateOFDProtocolMessage done [14:56:05]OFDSenderStorePacket 103702 [14:56:05]StoreOFDPacket docnum=103702 [14:56:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 2B 01 00 00 A5 3C 23 01 52 5B 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 AC 20 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 20 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A8 1E 00 00 00 00 07 04 06 00 AC 20 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 00 00 00 F4 03 04 00 90 F1 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 27 04 04 00 15 95 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 16 95 01 00 35 04 06 00 4A E6 E6 0E ED 73 9C 22 3B D2 7A 92 E3 46 [14:56:05]CheckFolder [14:56:05]dirname=/storage/ofd_packets [14:56:05]CheckFolder done [14:56:05]ProducePacketName [14:56:05]name=ofd_packets/00103702 [14:56:05]NVStorageSaveData ofd_packets/00103702 [14:56:05]File name is /storage/ofd_packets/00103702 [14:56:05]Write 329 bytes [14:56:05]NVStorageSaveData done [14:56:05]OFDSenderStorePacket done [14:56:05]KKMCreateOFDPacket done [14:56:05]NVStorageSaveData kkm_last_timestamp [14:56:05]File name is /storage/kkm_last_timestamp [14:56:05]Write 4 bytes [14:56:05]NVStorageSaveData done [14:56:05]ExternCall_PrintAddStr [14:56:05]wPrintStart [14:56:05]Write to MH i2c: 01 00 00 FF B3 B2 [14:56:05]Write i2c OK [14:56:05]MH_I2C_Read... [14:56:05]Read from MH i2c: 01 [14:56:05]MH_I2C_Read... [14:56:05]Read from MH i2c: 01 07 00 [14:56:05]MH_I2C_Read... [14:56:05]Read from MH i2c: 01 07 00 FF B3 00 00 00 00 00 FF 0F C7 [14:56:05]RasterBufferAndPrint [14:56:05]line Счет N : (1)672966 [14:56:05]line ИНН: 02508201610067 [14:56:05]line Контрольно-Кассовый Чек [14:56:05]line ВОЗВРАТ ПРОДАЖИ [14:56:05]line ТРК (МРК, ГНК) : 41 [14:56:05]line Товар: 2710124500 [14:56:05]line Аи-95-К-5 [14:56:05]line 10.000 * 73.90 [14:56:05]line = 739.00 [14:56:05]line НДС 12% НСП 1% [14:56:05]line > о реализуемом товаре [14:56:05]line ИТОГО: 739.00 [14:56:05]line НСП 1% : 6.54 [14:56:05]line НДС 12% : 78.48 [14:56:05]line Наличными: 739.00 [14:56:05]line Безнал.: 0.00 [14:56:05]line Место: АЗС № 120 "Партнер Нефть" [14:56:05]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [14:56:05]line СНО: Общий режим [14:56:05]line Чек 132 19.06.2024 14:56 [14:56:05]line Смена: 353 ФФД: 1.0 [14:56:05]line ЗНМ: 0300000164 [14:56:05]line РНМ: 0000000000092785 [14:56:05]line Версия ККМ: 001 [14:56:05]line ФД осн.: 103701 [14:56:05]line ФМ осн.: 0000000000875093 [14:56:05]line ФМ: 0000000000875093 [14:56:05]line ФД: 103702 [14:56:05]line ФПД: 82355562671475 [14:56:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T145616&type=2&operation_type=1&fn_number=0000000000875093&fd_number=103702&fm=82355562671475&tin=02508201610067®Number=0000000000092785&sum=73900 [14:56:05]OFD Sender: Processing packet 103702 [packets to send 17, broken 16] [14:56:05]ProducePacketName [14:56:05]name=ofd_packets/00103702 [14:56:05]OFD Sender: To server: pG, [14:56:05]CommunicateWithHost lk.salyk.kg:30040 [14:56:05]ConnectInit lk.salyk.kg [14:56:05]written 0, free lines is 4095 [14:56:05]Connected sock=10 [14:56:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 2B 01 00 00 A5 3C 23 01 52 5B 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 AC 20 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 20 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A8 1E 00 00 00 00 07 04 06 00 AC 20 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 00 00 00 F4 03 04 00 90 F1 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 27 04 04 00 15 95 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 16 95 01 00 35 04 06 00 4A E6 E6 0E ED 73 9C 22 3B D2 7A 92 E3 46 [14:56:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 94 B6 47 00 6F 7F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 16 95 01 00 F4 03 04 00 19 98 72 66 B6 04 01 00 00 EC 7E 27 88 C5 15 79 EE [14:56:06]CommunicateWithHost err = 0 [14:56:06]CheckOFDResponse [14:56:06]1017 (14) - 77093643461234 [14:56:06]1041 (16) - 0000000000875093 [14:56:06]1040 (4) - 103702 [14:56:06]1012 (4) - 19.06.2024 08:34 [14:56:06]1206 (1) - 0 [14:56:06]OFD Sender: Remove packet 103702 [14:56:06]ProducePacketName [14:56:06]name=ofd_packets/00103702 [14:56:06]NVStorageDeleteData [14:56:06]Write to MH i2c: 01 00 00 29 B4 DD [14:56:06]Write i2c OK [14:56:06]MH_I2C_Read... [14:56:06]Read from MH i2c: 01 [14:56:06]MH_I2C_Read... [14:56:06]Read from MH i2c: 01 07 00 [14:56:06]MH_I2C_Read... [14:56:06]Read from MH i2c: 01 07 00 29 B4 00 00 00 00 00 12 0D 03 [14:56:06]RasterBufferAndPrint [14:56:06]line [14:56:06]line [14:56:06]line [14:56:06]line [14:56:06]line [14:56:06]written 0, free lines is 3359 [14:56:06]MH_Cut [14:56:06]Write to MH i2c: D1 01 00 30 B4 01 B6 [14:56:06]Write i2c OK [14:56:06]MH_I2C_Read... [14:56:06]Read from MH i2c: D1 [14:56:06]MH_I2C_Read... [14:56:06]Read from MH i2c: D1 01 00 [14:56:06]MH_I2C_Read... [14:56:06]Read from MH i2c: D1 01 00 30 B4 00 B5 [14:56:06]Write to MH i2c: 01 00 00 31 B4 E5 [14:56:06]Write i2c OK [14:56:06]MH_I2C_Read... [14:56:06]OFD Sender: No OFD packet to send [14:56:06]*** Cut start [14:56:06]*** Partial cut [14:56:06]*** CUTSNS_PIN = 1 [14:56:06]*** CUTSNS_PIN = 0 [14:56:07]*** Brake cut motor [14:56:07]Read from MH i2c: 01 [14:56:07]MH_I2C_Read... [14:56:07]*** Stop cut motor [14:56:07]*** Cut end [14:56:07]Read from MH i2c: 01 07 00 [14:56:07]MH_I2C_Read... [14:56:07]Read from MH i2c: 01 07 00 31 B4 00 00 00 00 00 FF 0F FA [14:56:07]process_action close_receipt done [14:56:07]requested_data is exist [14:56:07]produce_requested_data [14:56:07]requested_item fm.sn is exist - process it [14:56:07]wFMCommunicate request_size=4 [14:56:07]MH_SAM_APDU [14:56:07]CAPDU: 80 11 00 00 [14:56:07]Write to MH i2c: E2 08 00 32 B4 80 11 00 00 00 00 00 00 60 [14:56:07]Write i2c OK [14:56:07]MH_I2C_Read... [14:56:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:56:07]Read from MH i2c: E2 [14:56:07]MH_I2C_Read... [14:56:07]Read from MH i2c: E2 17 00 [14:56:07]MH_I2C_Read... [14:56:07]Read from MH i2c: E2 17 00 32 B4 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 B3 [14:56:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [14:56:07]wFMCommunicate OK [14:56:07]requested_item fd.num is exist - process it [14:56:07]SAM_PROTO_GetFieldsCounters [14:56:07]wFMCommunicate request_size=4 [14:56:07]MH_SAM_APDU [14:56:07]CAPDU: 80 13 00 00 [14:56:07]Write to MH i2c: E2 08 00 33 B4 80 13 00 00 00 00 00 00 63 [14:56:07]Write i2c OK [14:56:07]MH_I2C_Read... [14:56:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:56:07]Read from MH i2c: E2 [14:56:07]MH_I2C_Read... [14:56:07]Read from MH i2c: E2 62 00 [14:56:07]MH_I2C_Read... [14:56:07]Read from MH i2c: E2 62 00 33 B4 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 16 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 84 00 00 00 5E 04 04 00 84 00 00 00 57 04 04 00 85 00 00 00 19 04 04 00 00 00 00 00 90 00 24 [14:56:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 16 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 84 00 00 00 5E 04 04 00 84 00 00 00 57 04 04 00 85 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:56:07]wFMCommunicate OK [14:56:07]SAM_PROTO_GetFieldsCounters done [14:56:07]requested_item shift.num is exist - process it [14:56:07]requested_item shift.opened is exist - process it [14:56:07]req_shift_opened [14:56:07]FM_GetShiftState [14:56:07]SAM_PROTO_GetShiftState [14:56:07]wFMCommunicate request_size=4 [14:56:07]MH_SAM_APDU [14:56:07]CAPDU: 80 13 01 00 [14:56:07]Write to MH i2c: E2 08 00 34 B4 80 13 01 00 00 00 00 00 65 [14:56:07]Write i2c OK [14:56:07]MH_I2C_Read... [14:56:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:56:07]Read from MH i2c: E2 [14:56:07]MH_I2C_Read... [14:56:07]Read from MH i2c: E2 0E 00 [14:56:07]MH_I2C_Read... [14:56:07]Read from MH i2c: E2 0E 00 34 B4 00 09 00 01 04 26 72 66 00 00 00 00 90 00 73 [14:56:07]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [14:56:07]wFMCommunicate OK [14:56:07]SAM_PROTO_GetShiftState done [14:56:07]FM_GetShiftState done [14:56:07]req_shift_opened done [14:56:07]requested_item shift.open_date is exist - process it [14:56:07]req_shift_open_date [14:56:07]req_shift_open_date done [14:56:07]produce_requested_data done [14:56:07]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103702,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [14:56:07]process_action_free close_receipt [14:56:07]json_value_free [14:56:07]json_value_free done [14:56:07]process_json_proto returns [14:56:07]Send response to host [14:56:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103702,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [14:56:07]free response buf [14:56:07]execute_script done [14:56:07]execute_script returns [14:56:07]free content buf [14:56:07]Sock 7.Close socket [14:56:07]Sock 7.Thread stoped [14:56:11]OFD Sender: No OFD packet to send [14:56:16]OFD Sender: No OFD packet to send [14:56:21]OFD Sender: No OFD packet to send [14:56:26]OFD Sender: No OFD packet to send [14:56:28]accept exits with 9 [14:56:28]New connection [14:56:28]New thread 3067084132 created [14:56:28]Thread 3067227492 joined [14:56:28]Waiting for new connection... [14:56:28] Sock 9.Parse request [14:56:28]Sock 9.Check first char [14:56:28]Sock 9.First char is OK [14:56:28]request: POST /json_proto HTTP/1.0 [14:56:28]Method: POST [14:56:28]URL: /json_proto [14:56:28]Method is POST - this is cgi request [14:56:28]url: /json_proto [14:56:28]query_string will be loaded in cgi processing [14:56:28]execute_cgi json_proto POST (null) [14:56:28]execute_cgi path=json_proto method=POST [14:56:28]POST find Content-Length [14:56:28]Host: 172.17.38.133:8080 [14:56:28]Content-Length: 1201 [14:56:28]Content-Type: application/json [14:56:28] [14:56:28]POST finish read [14:56:28]Found Content-Length = 1201 [14:56:28]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 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. \u000A\u0421\u0447\u0435\u0442 N : (1)672965\u000A19.06.2024 14:33\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 32\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 11.000 x 66.40\u000A\u0418\u0422\u041E\u0413: 730.40\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0435\u0445\u043D\u043E\u043B\u043E\u0433\u0438\u0447\u0435\u0441\u043A\u0438\u0439 \u043E\u0442\u043F\u0443\u0441\u043A: \u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:56:28]execute_script... [14:56:28]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 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. \u000A\u0421\u0447\u0435\u0442 N : (1)672965\u000A19.06.2024 14:33\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 32\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 11.000 x 66.40\u000A\u0418\u0422\u041E\u0413: 730.40\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0435\u0445\u043D\u043E\u043B\u043E\u0433\u0438\u0447\u0435\u0441\u043A\u0438\u0439 \u043E\u0442\u043F\u0443\u0441\u043A: \u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:56:28]POST & json_proto [14:56:28]process_json_proto [14:56:28]json parsed OK: [14:56:28]protocol is kg_v1.0 [14:56:28]action value=print_text [14:56:28]process_action print_text [14:56:28]cmd_print_text [14:56:28]ExternCall_PrintAddStr [14:56:28]wPrintStart [14:56:28]Write to MH i2c: 01 00 00 35 B4 E9 [14:56:28]Write i2c OK [14:56:28]MH_I2C_Read... [14:56:28]Read from MH i2c: 01 [14:56:28]MH_I2C_Read... [14:56:28]Read from MH i2c: 01 07 00 [14:56:28]MH_I2C_Read... [14:56:28]Read from MH i2c: 01 07 00 35 B4 00 00 00 00 00 FF 0F FE [14:56:28]RasterBufferAndPrint [14:56:28]line *****ТОВАРНЫЙ ЧЕК***** [14:56:28]line АЗС 120 [14:56:28]line Партнер нефть [14:56:28]line 02508201610067 [14:56:28]line Кассир : Байбугуева Г. [14:56:28]line Счет N : (1)672965 [14:56:28]line 19.06.2024 14:33 [14:56:28]line ПРОДАЖА [14:56:28]line ТРК (МРК, ГНК): 32 [14:56:28]line Вид ГСМ : 2710124130 [14:56:28]line Аи-92-К-5 [14:56:28]line 11.000 x 66.40 [14:56:28]line ИТОГ: 730.40 [14:56:28]line Тип оплаты: Технологический отпуск: [14:56:28]line ______________________ [14:56:28]line (подпись) [14:56:28]written 0, free lines is 4095 [14:56:28]Write to MH i2c: 01 00 00 48 B4 FC [14:56:28]Write i2c OK [14:56:28]MH_I2C_Read... [14:56:28]Read from MH i2c: 01 [14:56:28]MH_I2C_Read... [14:56:28]Read from MH i2c: 01 07 00 [14:56:28]MH_I2C_Read... [14:56:28]Read from MH i2c: 01 07 00 48 B4 00 00 00 00 00 2A 0E 3B [14:56:28]RasterBufferAndPrint [14:56:28]line [14:56:28]line [14:56:28]line [14:56:28]line [14:56:28]line [14:56:28]written 0, free lines is 3628 [14:56:28]MH_Cut [14:56:28]Write to MH i2c: D1 01 00 4F B4 01 D5 [14:56:28]Write i2c OK [14:56:28]MH_I2C_Read... [14:56:28]Read from MH i2c: D1 [14:56:28]MH_I2C_Read... [14:56:28]Read from MH i2c: D1 01 00 [14:56:28]MH_I2C_Read... [14:56:28]Read from MH i2c: D1 01 00 4F B4 00 D4 [14:56:28]Write to MH i2c: 01 00 00 50 B4 04 [14:56:28]Write i2c OK [14:56:28]MH_I2C_Read... [14:56:29]*** Cut start [14:56:29]*** Partial cut [14:56:29]*** CUTSNS_PIN = 1 [14:56:29]*** CUTSNS_PIN = 0 [14:56:29]*** Brake cut motor [14:56:29]Read from MH i2c: 01 [14:56:29]MH_I2C_Read... [14:56:29]Read from MH i2c: 01 07 00 [14:56:29]MH_I2C_Read... [14:56:29]*** Stop cut motor [14:56:29]*** Cut end [14:56:29]Read from MH i2c: 01 07 00 50 B4 00 00 00 00 00 FF 0F 19 [14:56:29]process_action print_text done [14:56:29]requested_data is exist [14:56:29]produce_requested_data [14:56:29]requested_item fm.sn is exist - process it [14:56:29]wFMCommunicate request_size=4 [14:56:29]MH_SAM_APDU [14:56:29]CAPDU: 80 11 00 00 [14:56:29]Write to MH i2c: E2 08 00 51 B4 80 11 00 00 00 00 00 00 7F [14:56:29]Write i2c OK [14:56:29]MH_I2C_Read... [14:56:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:56:29]Read from MH i2c: E2 [14:56:29]MH_I2C_Read... [14:56:29]Read from MH i2c: E2 17 00 [14:56:29]MH_I2C_Read... [14:56:29]Read from MH i2c: E2 17 00 51 B4 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 D2 [14:56:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [14:56:29]wFMCommunicate OK [14:56:29]requested_item fd.num is exist - process it [14:56:29]SAM_PROTO_GetFieldsCounters [14:56:29]wFMCommunicate request_size=4 [14:56:29]MH_SAM_APDU [14:56:29]CAPDU: 80 13 00 00 [14:56:29]Write to MH i2c: E2 08 00 52 B4 80 13 00 00 00 00 00 00 82 [14:56:29]Write i2c OK [14:56:29]MH_I2C_Read... [14:56:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:56:29]Read from MH i2c: E2 [14:56:29]MH_I2C_Read... [14:56:29]Read from MH i2c: E2 62 00 [14:56:29]MH_I2C_Read... [14:56:29]Read from MH i2c: E2 62 00 52 B4 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 16 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 84 00 00 00 5E 04 04 00 84 00 00 00 57 04 04 00 85 00 00 00 19 04 04 00 00 00 00 00 90 00 43 [14:56: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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 16 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 84 00 00 00 5E 04 04 00 84 00 00 00 57 04 04 00 85 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:56:29]wFMCommunicate OK [14:56:29]SAM_PROTO_GetFieldsCounters done [14:56:29]requested_item shift.num is exist - process it [14:56:29]requested_item shift.opened is exist - process it [14:56:29]req_shift_opened [14:56:29]FM_GetShiftState [14:56:29]SAM_PROTO_GetShiftState [14:56:29]wFMCommunicate request_size=4 [14:56:29]MH_SAM_APDU [14:56:29]CAPDU: 80 13 01 00 [14:56:29]Write to MH i2c: E2 08 00 53 B4 80 13 01 00 00 00 00 00 84 [14:56:29]Write i2c OK [14:56:29]MH_I2C_Read... [14:56:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:56:29]Read from MH i2c: E2 [14:56:29]MH_I2C_Read... [14:56:29]Read from MH i2c: E2 0E 00 [14:56:29]MH_I2C_Read... [14:56:29]Read from MH i2c: E2 0E 00 53 B4 00 09 00 01 04 26 72 66 00 00 00 00 90 00 92 [14:56:29]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [14:56:29]wFMCommunicate OK [14:56:29]SAM_PROTO_GetShiftState done [14:56:29]FM_GetShiftState done [14:56:29]req_shift_opened done [14:56:29]requested_item shift.open_date is exist - process it [14:56:29]req_shift_open_date [14:56:29]req_shift_open_date done [14:56:29]produce_requested_data done [14:56:29]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103702,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [14:56:29]process_action_free print_text [14:56:29]json_value_free [14:56:29]json_value_free done [14:56:29]process_json_proto returns [14:56:29]Send response to host [14:56:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103702,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [14:56:29]free response buf [14:56:29]execute_script done [14:56:29]execute_script returns [14:56:29]free content buf [14:56:29]Sock 9.Close socket [14:56:29]Sock 9.Thread stoped [14:56:31]OFD Sender: No OFD packet to send [14:56:36]OFD Sender: No OFD packet to send [14:56:41]OFD Sender: No OFD packet to send [14:56:46]OFD Sender: No OFD packet to send [14:56:51]OFD Sender: No OFD packet to send [14:56:56]OFD Sender: No OFD packet to send [14:57:01]OFD Sender: No OFD packet to send [14:57:06]OFD Sender: No OFD packet to send [14:57:11]OFD Sender: No OFD packet to send [14:57:16]OFD Sender: No OFD packet to send [14:57:21]OFD Sender: No OFD packet to send [14:57:26]OFD Sender: No OFD packet to send [14:57:31]OFD Sender: No OFD packet to send [14:57:36]OFD Sender: No OFD packet to send [14:57:41]OFD Sender: No OFD packet to send [14:57:46]OFD Sender: No OFD packet to send [14:57:51]OFD Sender: No OFD packet to send [14:57:56]OFD Sender: No OFD packet to send [14:58:01]OFD Sender: No OFD packet to send [14:58:06]OFD Sender: No OFD packet to send [14:58:11]OFD Sender: No OFD packet to send [14:58:16]OFD Sender: No OFD packet to send [14:58:21]OFD Sender: No OFD packet to send [14:58:26]OFD Sender: No OFD packet to send [14:58:31]OFD Sender: No OFD packet to send [14:58:36]OFD Sender: No OFD packet to send [14:58:41]OFD Sender: No OFD packet to send [14:58:46]OFD Sender: No OFD packet to send [14:58:51]OFD Sender: No OFD packet to send [14:58:56]OFD Sender: No OFD packet to send [14:59:01]OFD Sender: No OFD packet to send [14:59:06]OFD Sender: No OFD packet to send [14:59:11]OFD Sender: No OFD packet to send [14:59:16]OFD Sender: No OFD packet to send [14:59:21]OFD Sender: No OFD packet to send [14:59:26]OFD Sender: No OFD packet to send [14:59:26]accept exits with 7 [14:59:26]New connection [14:59:26]New thread 3067227492 created [14:59:26]Thread 3067084132 joined [14:59:26]Waiting for new connection... [14:59:26] Sock 7.Parse request [14:59:26]Sock 7.Check first char [14:59:26]Sock 7.First char is OK [14:59:26]request: POST /json_proto HTTP/1.0 [14:59:26]Method: POST [14:59:26]URL: /json_proto [14:59:26]Method is POST - this is cgi request [14:59:26]url: /json_proto [14:59:26]query_string will be loaded in cgi processing [14:59:26]execute_cgi json_proto POST (null) [14:59:26]execute_cgi path=json_proto method=POST [14:59:26]POST find Content-Length [14:59:26]Host: 172.17.38.133:8080 [14:59:26]Content-Length: 687 [14:59:26]Content-Type: application/json [14:59:26] [14:59:26]POST finish read [14:59:26]Found Content-Length = 687 [14:59:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672967", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 53.080, "sum" : 3869.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 5000.00, "total" : 3869.00, "payments": [ { "type": 0, "sum" : 3869.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:59:26]execute_script... [14:59: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)672967", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 53.080, "sum" : 3869.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 5000.00, "total" : 3869.00, "payments": [ { "type": 0, "sum" : 3869.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:59:26]POST & json_proto [14:59:26]process_json_proto [14:59:26]json parsed OK: [14:59:26]protocol is kg_v1.0 [14:59:26]action value=close_receipt [14:59:26]process_action close_receipt [14:59:26]cmd_close_receipt [14:59:26]MH_GetDate [14:59:26]Write to MH i2c: F0 00 00 54 B4 F7 [14:59:26]Write i2c OK [14:59:26]MH_I2C_Read... [14:59:26]Read from MH i2c: F0 [14:59:26]MH_I2C_Read... [14:59:26]Read from MH i2c: F0 09 00 [14:59:26]MH_I2C_Read... [14:59:26]Read from MH i2c: F0 09 00 54 B4 00 5B F2 72 66 BD 8F 7C 64 51 [14:59:26]GetLastDocTimeStamp 1718808976 [14:59:26]current date 1718809179 [14:59:26]FM_GetShiftState [14:59:26]SAM_PROTO_GetShiftState [14:59:26]wFMCommunicate request_size=4 [14:59:26]MH_SAM_APDU [14:59:26]CAPDU: 80 13 01 00 [14:59:26]Write to MH i2c: E2 08 00 55 B4 80 13 01 00 00 00 00 00 86 [14:59:26]Write i2c OK [14:59:26]MH_I2C_Read... [14:59:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:59:26]Read from MH i2c: E2 [14:59:26]MH_I2C_Read... [14:59:26]Read from MH i2c: E2 0E 00 [14:59:26]MH_I2C_Read... [14:59:26]Read from MH i2c: E2 0E 00 55 B4 00 09 00 01 04 26 72 66 00 00 00 00 90 00 94 [14:59:26]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [14:59:26]wFMCommunicate OK [14:59:26]SAM_PROTO_GetShiftState done [14:59:26]FM_GetShiftState done [14:59:26]opened in 1718756868 [14:59:26]opened+sec_in_day 1718843268 [14:59:26]quantity*price = 386953 [14:59:26]sum+1 = 386954 [14:59:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.53 ИТОГО: 3869.00 Внесено: 5000.00 СДАЧА: 1131.00 НСП 1% : 34.24 НДС 12% : 410.92 Наличными: 3869.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 133 19.06.2024 14:59 Смена: 353 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103703 ФПД: 109583959134372 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T145939&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103703&fm=109583959134372&tin=02508201610067®Number=0000000000092785&sum=386900 [14:59:27]StoreToDocumentArchive [14:59:27]shift 353 fd 103703 [14:59:27]save to /storage/0353/doc_00103703 [14:59:27]save last doc name /storage/0353/doc_00103703 to /storage/kkm_last_doc_name [14:59:28]save OK [14:59:28]Clear old archive folders... [14:59:28]ProcessDocumentItem done err = 0, tmpTLVsize=252 [14:59:28]tlvbuf is 0148BCF0 [14:59:28]SAM_PROTO_ClearQueue [14:59:28]wFMCommunicate request_size=4 [14:59:28]MH_SAM_APDU [14:59:28]CAPDU: 80 09 00 00 [14:59:28]Write to MH i2c: E2 08 00 62 B4 80 09 00 00 00 00 00 00 88 [14:59:28]Write i2c OK [14:59:28]MH_I2C_Read... [14:59:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:59:28]Read from MH i2c: E2 [14:59:28]MH_I2C_Read... [14:59:28]Read from MH i2c: E2 03 00 [14:59:28]MH_I2C_Read... [14:59:28]Read from MH i2c: E2 03 00 62 B4 00 90 00 8A [14:59:28]RAPDU: 90 00 [14:59:28]wFMCommunicate OK [14:59:28]SAM_PROTO_ClearQueue done [14:59:28]KKMCreateOFDPacket [14:59:28]OFDProtocolAddRootSTLVToBuf [14:59:28]FM_MakeSignedData [14:59:28]FM_MakeSignedData [14:59:28]SAM_PROTO_SignData [14:59:28]wFMCommunicate request_size=4 [14:59:28]MH_SAM_APDU [14:59:28]CAPDU: 80 0D 01 02 [14:59:28]Write to MH i2c: E2 08 00 63 B4 80 0D 01 02 00 00 00 00 90 [14:59:28]Write i2c OK [14:59:28]MH_I2C_Read... [14:59:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:59:28]Read from MH i2c: E2 [14:59:28]MH_I2C_Read... [14:59:28]Read from MH i2c: E2 03 00 [14:59:28]MH_I2C_Read... [14:59:28]Read from MH i2c: E2 03 00 63 B4 00 90 00 8B [14:59:28]RAPDU: 90 00 [14:59:28]wFMCommunicate OK [14:59:28]wFMCommunicate request_size=255 [14:59:28]MH_SAM_APDU [14:59: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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 58 CF 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 89 E7 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 E7 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 60 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 84 A0 00 00 00 00 07 04 06 00 54 E7 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 5B F2 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 17 95 01 00 35 04 06 00 [14:59:28]Write to MH i2c: E2 02 01 64 B4 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 58 CF 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 89 E7 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 E7 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 60 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 84 A0 00 00 00 00 07 04 06 00 54 E7 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 5B F2 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 17 95 01 00 35 04 06 00 00 00 D7 [14:59:28]Write i2c OK [14:59:28]MH_I2C_Read... [14:59:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:59:28]Read from MH i2c: E2 [14:59:28]MH_I2C_Read... [14:59:28]Read from MH i2c: E2 03 00 [14:59:28]MH_I2C_Read... [14:59:28]Read from MH i2c: E2 03 00 64 B4 00 90 00 8C [14:59:28]RAPDU: 90 00 [14:59:28]wFMCommunicate OK [14:59:28]wFMCommunicate request_size=11 [14:59:28]MH_SAM_APDU [14:59:28]CAPDU: 80 0D 02 02 06 63 AA 80 F5 10 A4 [14:59:28]Write to MH i2c: E2 0E 00 65 B4 80 0D 02 02 06 00 63 AA 80 F5 10 A4 00 00 D5 [14:59:28]Write i2c OK [14:59:28]MH_I2C_Read... [14:59:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:59:28]Read from MH i2c: E2 [14:59:28]MH_I2C_Read... [14:59:28]Read from MH i2c: E2 03 00 [14:59:28]MH_I2C_Read... [14:59:28]Read from MH i2c: E2 03 00 65 B4 00 90 00 8D [14:59:28]RAPDU: 90 00 [14:59:28]wFMCommunicate OK [14:59:28]wFMCommunicate request_size=4 [14:59:28]MH_SAM_APDU [14:59:28]CAPDU: 80 0D 03 02 [14:59:28]Write to MH i2c: E2 08 00 66 B4 80 0D 03 02 00 00 00 00 95 [14:59:28]Write i2c OK [14:59:28]MH_I2C_Read... [14:59:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:59:28]Read from MH i2c: E2 [14:59:28]MH_I2C_Read... [14:59:28]Read from MH i2c: E2 0B 00 [14:59:28]MH_I2C_Read... [14:59:28]Read from MH i2c: E2 0B 00 66 B4 00 EE 74 39 B0 88 12 07 A1 90 00 23 [14:59:28]RAPDU: EE 74 39 B0 88 12 07 A1 90 00 [14:59:28]wFMCommunicate OK [14:59:28]SAM_PROTO_SignData done [14:59:28]FM_MakeSignedData done [14:59:28]CreateOFDProtocolMessage [14:59:28]wFMCommunicate request_size=4 [14:59:28]MH_SAM_APDU [14:59:28]CAPDU: 80 11 00 00 [14:59:28]Write to MH i2c: E2 08 00 67 B4 80 11 00 00 00 00 00 00 95 [14:59:28]Write i2c OK [14:59:28]MH_I2C_Read... [14:59:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:59:28]Read from MH i2c: E2 [14:59:28]MH_I2C_Read... [14:59:28]Read from MH i2c: E2 17 00 [14:59:28]MH_I2C_Read... [14:59:28]Read from MH i2c: E2 17 00 67 B4 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 E8 [14:59:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [14:59:28]wFMCommunicate OK [14:59:28]CreateOFDProtocolMessage done [14:59:28]OFDSenderStorePacket 103703 [14:59:28]StoreOFDPacket docnum=103703 [14:59:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 22 5E 08 01 03 7A 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 58 CF 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 89 E7 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 E7 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 60 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 84 A0 00 00 00 00 07 04 06 00 54 E7 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 5B F2 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 17 95 01 00 35 04 06 00 63 AA 80 F5 10 A4 EE 74 39 B0 88 12 07 A1 [14:59:28]CheckFolder [14:59:28]dirname=/storage/ofd_packets [14:59:28]CheckFolder done [14:59:28]ProducePacketName [14:59:28]name=ofd_packets/00103703 [14:59:28]NVStorageSaveData ofd_packets/00103703 [14:59:28]File name is /storage/ofd_packets/00103703 [14:59:28]Write 302 bytes [14:59:28]NVStorageSaveData done [14:59:28]OFDSenderStorePacket done [14:59:28]KKMCreateOFDPacket done [14:59:28]NVStorageSaveData kkm_last_timestamp [14:59:28]File name is /storage/kkm_last_timestamp [14:59:28]Write 4 bytes [14:59:28]NVStorageSaveData done [14:59:28]ExternCall_PrintAddStr [14:59:28]wPrintStart [14:59:28]Write to MH i2c: 01 00 00 68 B4 1C [14:59:28]Write i2c OK [14:59:28]MH_I2C_Read... [14:59:28]Read from MH i2c: 01 [14:59:28]MH_I2C_Read... [14:59:28]Read from MH i2c: 01 07 00 [14:59:28]MH_I2C_Read... [14:59:28]Read from MH i2c: 01 07 00 68 B4 00 00 00 00 00 FF 0F 31 [14:59:28]RasterBufferAndPrint [14:59:28]line Счет N : (1)672967 [14:59:28]line ИНН: 02508201610067 [14:59:28]line Контрольно-Кассовый Чек [14:59:28]line ПРОДАЖА [14:59:28]line ТРК (МРК, ГНК) : 21 [14:59:28]line Товар: 2710194210 [14:59:28]line ДТ(л)-К-5 [14:59:28]line 53.080 * 72.90 [14:59:28]line = 3869.53 [14:59:28]line НДС 12% НСП 1% [14:59:28]line > о реализуемом товаре [14:59:28]line ОКРУГЛЕНИЕ: -0.53 [14:59:28]line ИТОГО: 3869.00 [14:59:28]line Внесено: 5000.00 [14:59:28]line СДАЧА: 1131.00 [14:59:28]line НСП 1% : 34.24 [14:59:28]line НДС 12% : 410.92 [14:59:28]line Наличными: 3869.00 [14:59:28]line Безнал.: 0.00 [14:59:28]line Место: АЗС № 120 "Партнер Нефть" [14:59:28]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [14:59:28]line СНО: Общий режим [14:59:28]line Чек 133 19.06.2024 14:59 [14:59:28]line Смена: 353 ФФД: 1.0 [14:59:28]line ЗНМ: 0300000164 [14:59:28]line РНМ: 0000000000092785 [14:59:28]line Версия ККМ: 001 [14:59:28]line ФМ: 0000000000875093 [14:59:28]line ФД: 103703 [14:59:28]line ФПД: 109583959134372 [14:59:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T145939&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103703&fm=109583959134372&tin=02508201610067®Number=0000000000092785&sum=386900 [14:59:28]OFD Sender: Processing packet 103703 [packets to send 17, broken 16] [14:59:28]ProducePacketName [14:59:28]name=ofd_packets/00103703 [14:59:28]OFD Sender: To server: pG, [14:59:28]CommunicateWithHost lk.salyk.kg:30040 [14:59:28]ConnectInit lk.salyk.kg [14:59:28]written 0, free lines is 4095 [14:59:28]Connected sock=10 [14:59: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 39 33 10 01 00 00 22 5E 08 01 03 7A 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 58 CF 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 89 E7 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 E7 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 60 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 84 A0 00 00 00 00 07 04 06 00 54 E7 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 5B F2 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 17 95 01 00 35 04 06 00 63 AA 80 F5 10 A4 EE 74 39 B0 88 12 07 A1 [14:59: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 39 33 4F 00 00 00 A2 CD 47 00 06 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 39 33 10 04 04 00 17 95 01 00 F4 03 04 00 E4 98 72 66 B6 04 01 00 00 B5 CF 9F 9F F1 AF 99 40 [14:59:29]CommunicateWithHost err = 0 [14:59:29]CheckOFDResponse [14:59:29]1017 (14) - 77093643461234 [14:59:29]1041 (16) - 0000000000875093 [14:59:29]1040 (4) - 103703 [14:59:29]1012 (4) - 19.06.2024 08:37 [14:59:29]1206 (1) - 0 [14:59:29]OFD Sender: Remove packet 103703 [14:59:29]ProducePacketName [14:59:29]name=ofd_packets/00103703 [14:59:29]NVStorageDeleteData [14:59:29]Write to MH i2c: 01 00 00 93 B4 47 [14:59:29]Write i2c OK [14:59:29]MH_I2C_Read... [14:59:29]Read from MH i2c: 01 [14:59:29]MH_I2C_Read... [14:59:29]Read from MH i2c: 01 07 00 [14:59:29]MH_I2C_Read... [14:59:29]Read from MH i2c: 01 07 00 93 B4 00 00 00 00 00 EC 0C 46 [14:59:29]RasterBufferAndPrint [14:59:29]line [14:59:29]line [14:59:29]line [14:59:29]line [14:59:29]line [14:59:29]written 0, free lines is 3317 [14:59:29]MH_Cut [14:59:29]Write to MH i2c: D1 01 00 9A B4 01 20 [14:59:29]Write i2c OK [14:59:29]MH_I2C_Read... [14:59:29]Read from MH i2c: D1 [14:59:29]MH_I2C_Read... [14:59:29]Read from MH i2c: D1 01 00 [14:59:29]MH_I2C_Read... [14:59:29]Read from MH i2c: D1 01 00 9A B4 00 1F [14:59:29]Write to MH i2c: 01 00 00 9B B4 4F [14:59:29]Write i2c OK [14:59:29]MH_I2C_Read... [14:59:29]OFD Sender: No OFD packet to send [14:59:30]*** Cut start [14:59:30]*** Partial cut [14:59:30]*** CUTSNS_PIN = 1 [14:59:30]*** CUTSNS_PIN = 0 [14:59:30]*** Brake cut motor [14:59:30]Read from MH i2c: 01 [14:59:30]MH_I2C_Read... [14:59:30]*** Stop cut motor [14:59:30]*** Cut end [14:59:30]Read from MH i2c: 01 07 00 [14:59:30]MH_I2C_Read... [14:59:30]Read from MH i2c: 01 07 00 9B B4 00 00 00 00 00 FF 0F 64 [14:59:30]process_action close_receipt done [14:59:30]requested_data is exist [14:59:30]produce_requested_data [14:59:30]requested_item fm.sn is exist - process it [14:59:30]wFMCommunicate request_size=4 [14:59:30]MH_SAM_APDU [14:59:30]CAPDU: 80 11 00 00 [14:59:30]Write to MH i2c: E2 08 00 9C B4 80 11 00 00 00 00 00 00 CA [14:59:30]Write i2c OK [14:59:30]MH_I2C_Read... [14:59:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:59:30]Read from MH i2c: E2 [14:59:30]MH_I2C_Read... [14:59:30]Read from MH i2c: E2 17 00 [14:59:30]MH_I2C_Read... [14:59:30]Read from MH i2c: E2 17 00 9C B4 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 1D [14:59:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [14:59:30]wFMCommunicate OK [14:59:30]requested_item fd.num is exist - process it [14:59:30]SAM_PROTO_GetFieldsCounters [14:59:30]wFMCommunicate request_size=4 [14:59:30]MH_SAM_APDU [14:59:30]CAPDU: 80 13 00 00 [14:59:30]Write to MH i2c: E2 08 00 9D B4 80 13 00 00 00 00 00 00 CD [14:59:30]Write i2c OK [14:59:30]MH_I2C_Read... [14:59:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:59:30]Read from MH i2c: E2 [14:59:30]MH_I2C_Read... [14:59:30]Read from MH i2c: E2 62 00 [14:59:30]MH_I2C_Read... [14:59:30]Read from MH i2c: E2 62 00 9D B4 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 17 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 85 00 00 00 5E 04 04 00 85 00 00 00 57 04 04 00 86 00 00 00 19 04 04 00 00 00 00 00 90 00 92 [14:59:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 17 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 85 00 00 00 5E 04 04 00 85 00 00 00 57 04 04 00 86 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:59:30]wFMCommunicate OK [14:59:30]SAM_PROTO_GetFieldsCounters done [14:59:30]requested_item shift.num is exist - process it [14:59:30]requested_item shift.opened is exist - process it [14:59:30]req_shift_opened [14:59:30]FM_GetShiftState [14:59:30]SAM_PROTO_GetShiftState [14:59:30]wFMCommunicate request_size=4 [14:59:30]MH_SAM_APDU [14:59:30]CAPDU: 80 13 01 00 [14:59:30]Write to MH i2c: E2 08 00 9E B4 80 13 01 00 00 00 00 00 CF [14:59:30]Write i2c OK [14:59:30]MH_I2C_Read... [14:59:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:59:30]Read from MH i2c: E2 [14:59:30]MH_I2C_Read... [14:59:30]Read from MH i2c: E2 0E 00 [14:59:30]MH_I2C_Read... [14:59:30]Read from MH i2c: E2 0E 00 9E B4 00 09 00 01 04 26 72 66 00 00 00 00 90 00 DD [14:59:30]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [14:59:30]wFMCommunicate OK [14:59:30]SAM_PROTO_GetShiftState done [14:59:30]FM_GetShiftState done [14:59:30]req_shift_opened done [14:59:30]requested_item shift.open_date is exist - process it [14:59:30]req_shift_open_date [14:59:30]req_shift_open_date done [14:59:30]produce_requested_data done [14:59:30]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103703,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [14:59:30]process_action_free close_receipt [14:59:30]json_value_free [14:59:30]json_value_free done [14:59:30]process_json_proto returns [14:59:30]Send response to host [14:59:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103703,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [14:59:30]free response buf [14:59:30]execute_script done [14:59:30]execute_script returns [14:59:30]free content buf [14:59:30]Sock 7.Close socket [14:59:30]Sock 7.Thread stoped [14:59:34]OFD Sender: No OFD packet to send [14:59:39]OFD Sender: No OFD packet to send [14:59:44]OFD Sender: No OFD packet to send [14:59:49]OFD Sender: No OFD packet to send [14:59:54]OFD Sender: No OFD packet to send [14:59:59]OFD Sender: No OFD packet to send [15:00:04]OFD Sender: No OFD packet to send [15:00:07]accept exits with 9 [15:00:07]New connection [15:00:07]New thread 3067084132 created [15:00:07]Thread 3067227492 joined [15:00:07]Waiting for new connection... [15:00:07] Sock 9.Parse request [15:00:07]Sock 9.Check first char [15:00:07]Sock 9.First char is OK [15:00:07]request: POST /json_proto HTTP/1.0 [15:00:07]Method: POST [15:00:07]URL: /json_proto [15:00:07]Method is POST - this is cgi request [15:00:07]url: /json_proto [15:00:07]query_string will be loaded in cgi processing [15:00:07]execute_cgi json_proto POST (null) [15:00:07]execute_cgi path=json_proto method=POST [15:00:07]POST find Content-Length [15:00:07]Host: 172.17.38.133:8080 [15:00:07]Content-Length: 1206 [15:00:07]Content-Type: application/json [15:00:07] [15:00:07]POST finish read [15:00:07]Found Content-Length = 1206 [15:00:07]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 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. \u000A\u0421\u0447\u0435\u0442 N : (1)672968\u000A19.06.2024 14:37\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 33\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-5\u000A 11.380 x 72.90\u000A\u0418\u0422\u041E\u0413: 829.60\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0435\u0445\u043D\u043E\u043B\u043E\u0433\u0438\u0447\u0435\u0441\u043A\u0438\u0439 \u043E\u0442\u043F\u0443\u0441\u043A: \u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:00:07]execute_script... [15:00:07]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 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. \u000A\u0421\u0447\u0435\u0442 N : (1)672968\u000A19.06.2024 14:37\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 33\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-5\u000A 11.380 x 72.90\u000A\u0418\u0422\u041E\u0413: 829.60\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0435\u0445\u043D\u043E\u043B\u043E\u0433\u0438\u0447\u0435\u0441\u043A\u0438\u0439 \u043E\u0442\u043F\u0443\u0441\u043A: \u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:00:07]POST & json_proto [15:00:07]process_json_proto [15:00:07]json parsed OK: [15:00:07]protocol is kg_v1.0 [15:00:07]action value=print_text [15:00:07]process_action print_text [15:00:07]cmd_print_text [15:00:07]ExternCall_PrintAddStr [15:00:07]wPrintStart [15:00:07]Write to MH i2c: 01 00 00 9F B4 53 [15:00:07]Write i2c OK [15:00:07]MH_I2C_Read... [15:00:07]Read from MH i2c: 01 [15:00:07]MH_I2C_Read... [15:00:07]Read from MH i2c: 01 07 00 [15:00:07]MH_I2C_Read... [15:00:07]Read from MH i2c: 01 07 00 9F B4 00 00 00 00 00 FF 0F 68 [15:00:07]RasterBufferAndPrint [15:00:07]line *****ТОВАРНЫЙ ЧЕК***** [15:00:07]line АЗС 120 [15:00:07]line Партнер нефть [15:00:07]line 02508201610067 [15:00:07]line Кассир : Байбугуева Г. [15:00:07]line Счет N : (1)672968 [15:00:07]line 19.06.2024 14:37 [15:00:07]line ПРОДАЖА [15:00:07]line ТРК (МРК, ГНК): 33 [15:00:07]line Вид ГСМ : 2710194210 [15:00:07]line ДТ(л)-К-5 [15:00:07]line 11.380 x 72.90 [15:00:07]line ИТОГ: 829.60 [15:00:07]line Тип оплаты: Технологический отпуск: [15:00:07]line ______________________ [15:00:07]line (подпись) [15:00:07]written 0, free lines is 4095 [15:00:07]Write to MH i2c: 01 00 00 B2 B4 66 [15:00:07]Write i2c OK [15:00:07]MH_I2C_Read... [15:00:07]Read from MH i2c: 01 [15:00:07]MH_I2C_Read... [15:00:07]Read from MH i2c: 01 07 00 [15:00:07]MH_I2C_Read... [15:00:07]Read from MH i2c: 01 07 00 B2 B4 00 00 00 00 00 2B 0E A6 [15:00:07]RasterBufferAndPrint [15:00:07]line [15:00:07]line [15:00:07]line [15:00:07]line [15:00:07]line [15:00:07]written 0, free lines is 3628 [15:00:07]MH_Cut [15:00:07]Write to MH i2c: D1 01 00 B9 B4 01 3F [15:00:07]Write i2c OK [15:00:07]MH_I2C_Read... [15:00:07]Read from MH i2c: D1 [15:00:07]MH_I2C_Read... [15:00:07]Read from MH i2c: D1 01 00 [15:00:07]MH_I2C_Read... [15:00:07]Read from MH i2c: D1 01 00 B9 B4 00 3E [15:00:07]Write to MH i2c: 01 00 00 BA B4 6E [15:00:07]Write i2c OK [15:00:07]MH_I2C_Read... [15:00:08]*** Cut start [15:00:08]*** Partial cut [15:00:08]*** CUTSNS_PIN = 1 [15:00:08]*** CUTSNS_PIN = 0 [15:00:08]*** Brake cut motor [15:00:08]Read from MH i2c: 01 [15:00:08]MH_I2C_Read... [15:00:08]Read from MH i2c: 01 07 00 [15:00:08]MH_I2C_Read... [15:00:08]*** Stop cut motor [15:00:08]*** Cut end [15:00:08]Read from MH i2c: 01 07 00 BA B4 00 00 00 00 00 FF 0F 83 [15:00:08]process_action print_text done [15:00:08]requested_data is exist [15:00:08]produce_requested_data [15:00:08]requested_item fm.sn is exist - process it [15:00:08]wFMCommunicate request_size=4 [15:00:08]MH_SAM_APDU [15:00:08]CAPDU: 80 11 00 00 [15:00:08]Write to MH i2c: E2 08 00 BB B4 80 11 00 00 00 00 00 00 E9 [15:00:08]Write i2c OK [15:00:08]MH_I2C_Read... [15:00:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:00:08]Read from MH i2c: E2 [15:00:08]MH_I2C_Read... [15:00:08]Read from MH i2c: E2 17 00 [15:00:08]MH_I2C_Read... [15:00:08]Read from MH i2c: E2 17 00 BB B4 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 3C [15:00:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [15:00:08]wFMCommunicate OK [15:00:08]requested_item fd.num is exist - process it [15:00:08]SAM_PROTO_GetFieldsCounters [15:00:08]wFMCommunicate request_size=4 [15:00:08]MH_SAM_APDU [15:00:08]CAPDU: 80 13 00 00 [15:00:08]Write to MH i2c: E2 08 00 BC B4 80 13 00 00 00 00 00 00 EC [15:00:08]Write i2c OK [15:00:08]MH_I2C_Read... [15:00:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:00:08]Read from MH i2c: E2 [15:00:08]MH_I2C_Read... [15:00:08]Read from MH i2c: E2 62 00 [15:00:08]MH_I2C_Read... [15:00:08]Read from MH i2c: E2 62 00 BC B4 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 17 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 85 00 00 00 5E 04 04 00 85 00 00 00 57 04 04 00 86 00 00 00 19 04 04 00 00 00 00 00 90 00 B1 [15:00:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 17 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 85 00 00 00 5E 04 04 00 85 00 00 00 57 04 04 00 86 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:00:08]wFMCommunicate OK [15:00:08]SAM_PROTO_GetFieldsCounters done [15:00:08]requested_item shift.num is exist - process it [15:00:08]requested_item shift.opened is exist - process it [15:00:08]req_shift_opened [15:00:08]FM_GetShiftState [15:00:08]SAM_PROTO_GetShiftState [15:00:08]wFMCommunicate request_size=4 [15:00:08]MH_SAM_APDU [15:00:08]CAPDU: 80 13 01 00 [15:00:08]Write to MH i2c: E2 08 00 BD B4 80 13 01 00 00 00 00 00 EE [15:00:08]Write i2c OK [15:00:08]MH_I2C_Read... [15:00:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:00:08]Read from MH i2c: E2 [15:00:08]MH_I2C_Read... [15:00:08]Read from MH i2c: E2 0E 00 [15:00:08]MH_I2C_Read... [15:00:08]Read from MH i2c: E2 0E 00 BD B4 00 09 00 01 04 26 72 66 00 00 00 00 90 00 FC [15:00:08]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [15:00:08]wFMCommunicate OK [15:00:08]SAM_PROTO_GetShiftState done [15:00:08]FM_GetShiftState done [15:00:08]req_shift_opened done [15:00:08]requested_item shift.open_date is exist - process it [15:00:08]req_shift_open_date [15:00:08]req_shift_open_date done [15:00:08]produce_requested_data done [15:00:08]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103703,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [15:00:08]process_action_free print_text [15:00:08]json_value_free [15:00:08]json_value_free done [15:00:08]process_json_proto returns [15:00:08]Send response to host [15:00:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103703,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [15:00:08]free response buf [15:00:08]execute_script done [15:00:08]execute_script returns [15:00:08]free content buf [15:00:08]Sock 9.Close socket [15:00:08]Sock 9.Thread stoped [15:00:09]OFD Sender: No OFD packet to send [15:00:14]OFD Sender: No OFD packet to send [15:00:19]OFD Sender: No OFD packet to send [15:00:24]OFD Sender: No OFD packet to send [15:00:29]OFD Sender: No OFD packet to send [15:00:34]OFD Sender: No OFD packet to send [15:00:39]OFD Sender: No OFD packet to send [15:00:44]OFD Sender: No OFD packet to send [15:00:49]OFD Sender: No OFD packet to send [15:00:54]OFD Sender: No OFD packet to send [15:00:59]OFD Sender: No OFD packet to send [15:01:04]OFD Sender: No OFD packet to send [15:01:09]OFD Sender: No OFD packet to send [15:01:14]OFD Sender: No OFD packet to send [15:01:17]accept exits with 7 [15:01:17]New connection [15:01:17]New thread 3067227492 created [15:01:17]Thread 3067084132 joined [15:01:17]Waiting for new connection... [15:01:17] Sock 7.Parse request [15:01:17]Sock 7.Check first char [15:01:17]Sock 7.First char is OK [15:01:17]request: POST /json_proto HTTP/1.0 [15:01:17]Method: POST [15:01:17]URL: /json_proto [15:01:17]Method is POST - this is cgi request [15:01:17]url: /json_proto [15:01:17]query_string will be loaded in cgi processing [15:01:17]execute_cgi json_proto POST (null) [15:01:17]execute_cgi path=json_proto method=POST [15:01:17]POST find Content-Length [15:01:17]Host: 172.17.38.133:8080 [15:01:17]Content-Length: 687 [15:01:17]Content-Type: application/json [15:01:17] [15:01:17]POST finish read [15:01:17]Found Content-Length = 687 [15:01:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672969", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 68.590, "sum" : 5000.21, "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" ] } } [15:01:17]execute_script... [15:01: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)672969", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 68.590, "sum" : 5000.21, "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" ] } } [15:01:17]POST & json_proto [15:01:17]process_json_proto [15:01:17]json parsed OK: [15:01:17]protocol is kg_v1.0 [15:01:17]action value=close_receipt [15:01:17]process_action close_receipt [15:01:17]cmd_close_receipt [15:01:17]MH_GetDate [15:01:17]Write to MH i2c: F0 00 00 BE B4 61 [15:01:17]Write i2c OK [15:01:17]MH_I2C_Read... [15:01:17]Read from MH i2c: F0 [15:01:17]MH_I2C_Read... [15:01:17]Read from MH i2c: F0 09 00 [15:01:17]MH_I2C_Read... [15:01:17]Read from MH i2c: F0 09 00 BE B4 00 CA F2 72 66 BD 8F 7C 64 2A [15:01:17]GetLastDocTimeStamp 1718809179 [15:01:17]current date 1718809290 [15:01:17]FM_GetShiftState [15:01:17]SAM_PROTO_GetShiftState [15:01:17]wFMCommunicate request_size=4 [15:01:17]MH_SAM_APDU [15:01:17]CAPDU: 80 13 01 00 [15:01:17]Write to MH i2c: E2 08 00 BF B4 80 13 01 00 00 00 00 00 F0 [15:01:17]Write i2c OK [15:01:17]MH_I2C_Read... [15:01:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:01:17]Read from MH i2c: E2 [15:01:17]MH_I2C_Read... [15:01:17]Read from MH i2c: E2 0E 00 [15:01:17]MH_I2C_Read... [15:01:17]Read from MH i2c: E2 0E 00 BF B4 00 09 00 01 04 26 72 66 00 00 00 00 90 00 FE [15:01:17]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [15:01:17]wFMCommunicate OK [15:01:17]SAM_PROTO_GetShiftState done [15:01:17]FM_GetShiftState done [15:01:17]opened in 1718756868 [15:01:17]opened+sec_in_day 1718843268 [15:01:17]quantity*price = 500021 [15:01:17]sum+1 = 500022 [15:01:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.21 ИТОГО: 5000.00 Внесено: 5000.00 СДАЧА: 0.00 НСП 1% : 44.25 НДС 12% : 531.00 Наличными: 5000.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 134 19.06.2024 15:01 Смена: 353 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103704 ФПД: 42554642932671 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T150130&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103704&fm=42554642932671&tin=02508201610067®Number=0000000000092785&sum=500000 [15:01:18]StoreToDocumentArchive [15:01:18]shift 353 fd 103704 [15:01:18]save to /storage/0353/doc_00103704 [15:01:18]save last doc name /storage/0353/doc_00103704 to /storage/kkm_last_doc_name [15:01:18]save OK [15:01:18]Clear old archive folders... [15:01:18]ProcessDocumentItem done err = 0, tmpTLVsize=252 [15:01:18]tlvbuf is 013B74D0 [15:01:18]SAM_PROTO_ClearQueue [15:01:18]wFMCommunicate request_size=4 [15:01:18]MH_SAM_APDU [15:01:18]CAPDU: 80 09 00 00 [15:01:18]Write to MH i2c: E2 08 00 CC B4 80 09 00 00 00 00 00 00 F2 [15:01:18]Write i2c OK [15:01:18]MH_I2C_Read... [15:01:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:01:18]Read from MH i2c: E2 [15:01:18]MH_I2C_Read... [15:01:18]Read from MH i2c: E2 03 00 [15:01:18]MH_I2C_Read... [15:01:18]Read from MH i2c: E2 03 00 CC B4 00 90 00 F4 [15:01:18]RAPDU: 90 00 [15:01:18]wFMCommunicate OK [15:01:18]SAM_PROTO_ClearQueue done [15:01:18]KKMCreateOFDPacket [15:01:18]OFDProtocolAddRootSTLVToBuf [15:01:18]FM_MakeSignedData [15:01:18]FM_MakeSignedData [15:01:18]SAM_PROTO_SignData [15:01:18]wFMCommunicate request_size=4 [15:01:18]MH_SAM_APDU [15:01:18]CAPDU: 80 0D 01 02 [15:01:18]Write to MH i2c: E2 08 00 CD B4 80 0D 01 02 00 00 00 00 FA [15:01:18]Write i2c OK [15:01:18]MH_I2C_Read... [15:01:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:01:18]Read from MH i2c: E2 [15:01:18]MH_I2C_Read... [15:01:18]Read from MH i2c: E2 03 00 [15:01:18]MH_I2C_Read... [15:01:18]Read from MH i2c: E2 03 00 CD B4 00 90 00 F5 [15:01:18]RAPDU: 90 00 [15:01:18]wFMCommunicate OK [15:01:18]wFMCommunicate request_size=255 [15:01:18]MH_SAM_APDU [15:01:18]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 EE 0B 01 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 35 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C CF 00 00 00 00 07 04 06 00 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 86 00 00 00 F4 03 04 00 CA F2 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 18 95 01 00 35 04 06 00 [15:01:18]Write to MH i2c: E2 02 01 CE B4 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 EE 0B 01 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 35 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C CF 00 00 00 00 07 04 06 00 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 86 00 00 00 F4 03 04 00 CA F2 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 18 95 01 00 35 04 06 00 00 00 01 [15:01:18]Write i2c OK [15:01:18]MH_I2C_Read... [15:01:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:01:19]Read from MH i2c: E2 [15:01:19]MH_I2C_Read... [15:01:19]Read from MH i2c: E2 03 00 [15:01:19]MH_I2C_Read... [15:01:19]Read from MH i2c: E2 03 00 CE B4 00 90 00 F6 [15:01:19]RAPDU: 90 00 [15:01:19]wFMCommunicate OK [15:01:19]wFMCommunicate request_size=11 [15:01:19]MH_SAM_APDU [15:01:19]CAPDU: 80 0D 02 02 06 26 B4 06 60 23 BF [15:01:19]Write to MH i2c: E2 0E 00 CF B4 80 0D 02 02 06 00 26 B4 06 60 23 BF 00 00 2B [15:01:19]Write i2c OK [15:01:19]MH_I2C_Read... [15:01:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:01:19]Read from MH i2c: E2 [15:01:19]MH_I2C_Read... [15:01:19]Read from MH i2c: E2 03 00 [15:01:19]MH_I2C_Read... [15:01:19]Read from MH i2c: E2 03 00 CF B4 00 90 00 F7 [15:01:19]RAPDU: 90 00 [15:01:19]wFMCommunicate OK [15:01:19]wFMCommunicate request_size=4 [15:01:19]MH_SAM_APDU [15:01:19]CAPDU: 80 0D 03 02 [15:01:19]Write to MH i2c: E2 08 00 D0 B4 80 0D 03 02 00 00 00 00 FF [15:01:19]Write i2c OK [15:01:19]MH_I2C_Read... [15:01:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:01:19]Read from MH i2c: E2 [15:01:19]MH_I2C_Read... [15:01:19]Read from MH i2c: E2 0B 00 [15:01:19]MH_I2C_Read... [15:01:19]Read from MH i2c: E2 0B 00 D0 B4 00 99 EC 33 35 61 9F 01 50 90 00 3E [15:01:19]RAPDU: 99 EC 33 35 61 9F 01 50 90 00 [15:01:19]wFMCommunicate OK [15:01:19]SAM_PROTO_SignData done [15:01:19]FM_MakeSignedData done [15:01:19]CreateOFDProtocolMessage [15:01:19]wFMCommunicate request_size=4 [15:01:19]MH_SAM_APDU [15:01:19]CAPDU: 80 11 00 00 [15:01:19]Write to MH i2c: E2 08 00 D1 B4 80 11 00 00 00 00 00 00 FF [15:01:19]Write i2c OK [15:01:19]MH_I2C_Read... [15:01:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:01:19]Read from MH i2c: E2 [15:01:19]MH_I2C_Read... [15:01:19]Read from MH i2c: E2 17 00 [15:01:19]MH_I2C_Read... [15:01:19]Read from MH i2c: E2 17 00 D1 B4 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 52 [15:01:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [15:01:19]wFMCommunicate OK [15:01:19]CreateOFDProtocolMessage done [15:01:19]OFDSenderStorePacket 103704 [15:01:19]StoreOFDPacket docnum=103704 [15:01:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 1F 7D 08 01 20 A4 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 EE 0B 01 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 35 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C CF 00 00 00 00 07 04 06 00 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 86 00 00 00 F4 03 04 00 CA F2 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 18 95 01 00 35 04 06 00 26 B4 06 60 23 BF 99 EC 33 35 61 9F 01 50 [15:01:19]CheckFolder [15:01:19]dirname=/storage/ofd_packets [15:01:19]CheckFolder done [15:01:19]ProducePacketName [15:01:19]name=ofd_packets/00103704 [15:01:19]NVStorageSaveData ofd_packets/00103704 [15:01:19]File name is /storage/ofd_packets/00103704 [15:01:19]Write 302 bytes [15:01:19]NVStorageSaveData done [15:01:19]OFDSenderStorePacket done [15:01:19]KKMCreateOFDPacket done [15:01:19]NVStorageSaveData kkm_last_timestamp [15:01:19]File name is /storage/kkm_last_timestamp [15:01:19]Write 4 bytes [15:01:19]NVStorageSaveData done [15:01:19]ExternCall_PrintAddStr [15:01:19]wPrintStart [15:01:19]Write to MH i2c: 01 00 00 D2 B4 86 [15:01:19]Write i2c OK [15:01:19]MH_I2C_Read... [15:01:19]Read from MH i2c: 01 [15:01:19]MH_I2C_Read... [15:01:19]Read from MH i2c: 01 07 00 [15:01:19]MH_I2C_Read... [15:01:19]Read from MH i2c: 01 07 00 D2 B4 00 00 00 00 00 FF 0F 9B [15:01:19]RasterBufferAndPrint [15:01:19]line Счет N : (1)672969 [15:01:19]line ИНН: 02508201610067 [15:01:19]line Контрольно-Кассовый Чек [15:01:19]line ПРОДАЖА [15:01:19]line ТРК (МРК, ГНК) : 11 [15:01:19]line Товар: 2710194210 [15:01:19]line ДТ(л)-К-5 [15:01:19]line 68.590 * 72.90 [15:01:19]line = 5000.21 [15:01:19]line НДС 12% НСП 1% [15:01:19]line > о реализуемом товаре [15:01:19]line ОКРУГЛЕНИЕ: -0.21 [15:01:19]line ИТОГО: 5000.00 [15:01:19]line Внесено: 5000.00 [15:01:19]line СДАЧА: 0.00 [15:01:19]line НСП 1% : 44.25 [15:01:19]line НДС 12% : 531.00 [15:01:19]line Наличными: 5000.00 [15:01:19]line Безнал.: 0.00 [15:01:19]line Место: АЗС № 120 "Партнер Нефть" [15:01:19]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [15:01:19]line СНО: Общий режим [15:01:19]line Чек 134 19.06.2024 15:01 [15:01:19]line Смена: 353 ФФД: 1.0 [15:01:19]line ЗНМ: 0300000164 [15:01:19]line РНМ: 0000000000092785 [15:01:19]line Версия ККМ: 001 [15:01:19]line ФМ: 0000000000875093 [15:01:19]line ФД: 103704 [15:01:19]line ФПД: 42554642932671 [15:01:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T150130&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103704&fm=42554642932671&tin=02508201610067®Number=0000000000092785&sum=500000 [15:01:19]OFD Sender: Processing packet 103704 [packets to send 17, broken 16] [15:01:19]ProducePacketName [15:01:19]name=ofd_packets/00103704 [15:01:19]OFD Sender: To server: pG, [15:01:19]CommunicateWithHost lk.salyk.kg:30040 [15:01:19]ConnectInit lk.salyk.kg [15:01:19]written 0, free lines is 4095 [15:01:19]Connected sock=10 [15:01:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 1F 7D 08 01 20 A4 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 EE 0B 01 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 35 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C CF 00 00 00 00 07 04 06 00 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 86 00 00 00 F4 03 04 00 CA F2 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 18 95 01 00 35 04 06 00 26 B4 06 60 23 BF 99 EC 33 35 61 9F 01 50 [15:01: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 39 33 4F 00 00 00 0E F2 47 00 F1 19 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 18 95 01 00 F4 03 04 00 52 99 72 66 B6 04 01 00 00 60 23 A0 BF EB 9B E7 4C [15:01:19]CommunicateWithHost err = 0 [15:01:19]CheckOFDResponse [15:01:19]1017 (14) - 77093643461234 [15:01:19]1041 (16) - 0000000000875093 [15:01:19]1040 (4) - 103704 [15:01:19]1012 (4) - 19.06.2024 08:39 [15:01:19]1206 (1) - 0 [15:01:19]OFD Sender: Remove packet 103704 [15:01:19]ProducePacketName [15:01:19]name=ofd_packets/00103704 [15:01:19]NVStorageDeleteData [15:01:19]Write to MH i2c: 01 00 00 FD B4 B1 [15:01:19]Write i2c OK [15:01:19]MH_I2C_Read... [15:01:19]Read from MH i2c: 01 [15:01:19]MH_I2C_Read... [15:01:19]Read from MH i2c: 01 07 00 [15:01:19]MH_I2C_Read... [15:01:19]Read from MH i2c: 01 07 00 FD B4 00 00 00 00 00 DA 0C 9E [15:01:19]RasterBufferAndPrint [15:01:19]line [15:01:19]line [15:01:19]line [15:01:19]line [15:01:19]line [15:01:19]written 0, free lines is 3297 [15:01:19]MH_Cut [15:01:19]Write to MH i2c: D1 01 00 04 B5 01 8B [15:01:19]Write i2c OK [15:01:19]MH_I2C_Read... [15:01:19]Read from MH i2c: D1 [15:01:19]MH_I2C_Read... [15:01:19]Read from MH i2c: D1 01 00 [15:01:19]MH_I2C_Read... [15:01:19]Read from MH i2c: D1 01 00 04 B5 00 8A [15:01:19]Write to MH i2c: 01 00 00 05 B5 BA [15:01:19]Write i2c OK [15:01:19]MH_I2C_Read... [15:01:20]OFD Sender: No OFD packet to send [15:01:20]*** Cut start [15:01:20]*** Partial cut [15:01:20]*** CUTSNS_PIN = 1 [15:01:20]*** CUTSNS_PIN = 0 [15:01:20]*** Brake cut motor [15:01:21]Read from MH i2c: 01 [15:01:21]MH_I2C_Read... [15:01:21]*** Stop cut motor [15:01:21]*** Cut end [15:01:21]Read from MH i2c: 01 07 00 [15:01:21]MH_I2C_Read... [15:01:21]Read from MH i2c: 01 07 00 05 B5 00 00 00 00 00 FF 0F CF [15:01:21]process_action close_receipt done [15:01:21]requested_data is exist [15:01:21]produce_requested_data [15:01:21]requested_item fm.sn is exist - process it [15:01:21]wFMCommunicate request_size=4 [15:01:21]MH_SAM_APDU [15:01:21]CAPDU: 80 11 00 00 [15:01:21]Write to MH i2c: E2 08 00 06 B5 80 11 00 00 00 00 00 00 35 [15:01:21]Write i2c OK [15:01:21]MH_I2C_Read... [15:01:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:01:21]Read from MH i2c: E2 [15:01:21]MH_I2C_Read... [15:01:21]Read from MH i2c: E2 17 00 [15:01:21]MH_I2C_Read... [15:01:21]Read from MH i2c: E2 17 00 06 B5 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 88 [15:01:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [15:01:21]wFMCommunicate OK [15:01:21]requested_item fd.num is exist - process it [15:01:21]SAM_PROTO_GetFieldsCounters [15:01:21]wFMCommunicate request_size=4 [15:01:21]MH_SAM_APDU [15:01:21]CAPDU: 80 13 00 00 [15:01:21]Write to MH i2c: E2 08 00 07 B5 80 13 00 00 00 00 00 00 38 [15:01:21]Write i2c OK [15:01:21]MH_I2C_Read... [15:01:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:01:21]Read from MH i2c: E2 [15:01:21]MH_I2C_Read... [15:01:21]Read from MH i2c: E2 62 00 [15:01:21]MH_I2C_Read... [15:01:21]Read from MH i2c: E2 62 00 07 B5 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 18 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 86 00 00 00 5E 04 04 00 86 00 00 00 57 04 04 00 87 00 00 00 19 04 04 00 00 00 00 00 90 00 01 [15:01: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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 18 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 86 00 00 00 5E 04 04 00 86 00 00 00 57 04 04 00 87 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:01:21]wFMCommunicate OK [15:01:21]SAM_PROTO_GetFieldsCounters done [15:01:21]requested_item shift.num is exist - process it [15:01:21]requested_item shift.opened is exist - process it [15:01:21]req_shift_opened [15:01:21]FM_GetShiftState [15:01:21]SAM_PROTO_GetShiftState [15:01:21]wFMCommunicate request_size=4 [15:01:21]MH_SAM_APDU [15:01:21]CAPDU: 80 13 01 00 [15:01:21]Write to MH i2c: E2 08 00 08 B5 80 13 01 00 00 00 00 00 3A [15:01:21]Write i2c OK [15:01:21]MH_I2C_Read... [15:01:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:01:21]Read from MH i2c: E2 [15:01:21]MH_I2C_Read... [15:01:21]Read from MH i2c: E2 0E 00 [15:01:21]MH_I2C_Read... [15:01:21]Read from MH i2c: E2 0E 00 08 B5 00 09 00 01 04 26 72 66 00 00 00 00 90 00 48 [15:01:21]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [15:01:21]wFMCommunicate OK [15:01:21]SAM_PROTO_GetShiftState done [15:01:21]FM_GetShiftState done [15:01:21]req_shift_opened done [15:01:21]requested_item shift.open_date is exist - process it [15:01:21]req_shift_open_date [15:01:21]req_shift_open_date done [15:01:21]produce_requested_data done [15:01:21]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103704,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [15:01:21]process_action_free close_receipt [15:01:21]json_value_free [15:01:21]json_value_free done [15:01:21]process_json_proto returns [15:01:21]Send response to host [15:01:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103704,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [15:01:21]free response buf [15:01:21]execute_script done [15:01:21]execute_script returns [15:01:21]free content buf [15:01:21]Sock 7.Close socket [15:01:21]Sock 7.Thread stoped [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:03]accept exits with 9 [15:02:03]New connection [15:02:03]New thread 3067084132 created [15:02:03]Thread 3067227492 joined [15:02:03]Waiting for new connection... [15:02:03] Sock 9.Parse request [15:02:03]Sock 9.Check first char [15:02:03]Sock 9.First char is OK [15:02:03]request: POST /json_proto HTTP/1.0 [15:02:03]Method: POST [15:02:03]URL: /json_proto [15:02:03]Method is POST - this is cgi request [15:02:03]url: /json_proto [15:02:03]query_string will be loaded in cgi processing [15:02:03]execute_cgi json_proto POST (null) [15:02:03]execute_cgi path=json_proto method=POST [15:02:03]POST find Content-Length [15:02:03]Host: 172.17.38.133:8080 [15:02:03]Content-Length: 677 [15:02:03]Content-Type: application/json [15:02:03] [15:02:03]POST finish read [15:02:03]Found Content-Length = 677 [15:02:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672971", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 9.040, "sum" : 600.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:02:03]execute_script... [15:02:03]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672971", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 9.040, "sum" : 600.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:02:03]POST & json_proto [15:02:03]process_json_proto [15:02:03]json parsed OK: [15:02:03]protocol is kg_v1.0 [15:02:03]action value=close_receipt [15:02:03]process_action close_receipt [15:02:03]cmd_close_receipt [15:02:03]MH_GetDate [15:02:03]Write to MH i2c: F0 00 00 09 B5 AD [15:02:03]Write i2c OK [15:02:03]MH_I2C_Read... [15:02:03]Read from MH i2c: F0 [15:02:03]MH_I2C_Read... [15:02:03]Read from MH i2c: F0 09 00 [15:02:03]MH_I2C_Read... [15:02:03]Read from MH i2c: F0 09 00 09 B5 00 F8 F2 72 66 BD 8F 7C 64 A4 [15:02:03]GetLastDocTimeStamp 1718809290 [15:02:03]current date 1718809336 [15:02:03]FM_GetShiftState [15:02:03]SAM_PROTO_GetShiftState [15:02:03]wFMCommunicate request_size=4 [15:02:03]MH_SAM_APDU [15:02:03]CAPDU: 80 13 01 00 [15:02:03]Write to MH i2c: E2 08 00 0A B5 80 13 01 00 00 00 00 00 3C [15:02:03]Write i2c OK [15:02:03]MH_I2C_Read... [15:02:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:02:03]Read from MH i2c: E2 [15:02:03]MH_I2C_Read... [15:02:03]Read from MH i2c: E2 0E 00 [15:02:03]MH_I2C_Read... [15:02:03]Read from MH i2c: E2 0E 00 0A B5 00 09 00 01 04 26 72 66 00 00 00 00 90 00 4A [15:02:03]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [15:02:03]wFMCommunicate OK [15:02:03]SAM_PROTO_GetShiftState done [15:02:03]FM_GetShiftState done [15:02:03]opened in 1718756868 [15:02:03]opened+sec_in_day 1718843268 [15:02:03]quantity*price = 60025 [15:02:03]sum+1 = 60027 [15:02:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.26 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.74 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 135 19.06.2024 15:02 Смена: 353 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103705 ФПД: 59178612559626 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T150216&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103705&fm=59178612559626&tin=02508201610067®Number=0000000000092785&sum=60000 [15:02:04]StoreToDocumentArchive [15:02:04]shift 353 fd 103705 [15:02:04]save to /storage/0353/doc_00103705 [15:02:04]save last doc name /storage/0353/doc_00103705 to /storage/kkm_last_doc_name [15:02:04]save OK [15:02:04]Clear old archive folders... [15:02:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:02:04]tlvbuf is 013910D0 [15:02:04]SAM_PROTO_ClearQueue [15:02:04]wFMCommunicate request_size=4 [15:02:04]MH_SAM_APDU [15:02:04]CAPDU: 80 09 00 00 [15:02:04]Write to MH i2c: E2 08 00 17 B5 80 09 00 00 00 00 00 00 3E [15:02:04]Write i2c OK [15:02:04]MH_I2C_Read... [15:02:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:02:04]Read from MH i2c: E2 [15:02:04]MH_I2C_Read... [15:02:04]Read from MH i2c: E2 03 00 [15:02:04]MH_I2C_Read... [15:02:04]Read from MH i2c: E2 03 00 17 B5 00 90 00 40 [15:02:04]RAPDU: 90 00 [15:02:04]wFMCommunicate OK [15:02:04]SAM_PROTO_ClearQueue done [15:02:04]KKMCreateOFDPacket [15:02:04]OFDProtocolAddRootSTLVToBuf [15:02:04]FM_MakeSignedData [15:02:04]FM_MakeSignedData [15:02:04]SAM_PROTO_SignData [15:02:04]wFMCommunicate request_size=4 [15:02:04]MH_SAM_APDU [15:02:04]CAPDU: 80 0D 01 02 [15:02:04]Write to MH i2c: E2 08 00 18 B5 80 0D 01 02 00 00 00 00 46 [15:02:04]Write i2c OK [15:02:04]MH_I2C_Read... [15:02:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:02:04]Read from MH i2c: E2 [15:02:04]MH_I2C_Read... [15:02:04]Read from MH i2c: E2 03 00 [15:02:04]MH_I2C_Read... [15:02:04]Read from MH i2c: E2 03 00 18 B5 00 90 00 41 [15:02:04]RAPDU: 90 00 [15:02:04]wFMCommunicate OK [15:02:04]wFMCommunicate request_size=255 [15:02:04]MH_SAM_APDU [15:02:04]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 50 23 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 F8 F2 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 19 95 01 00 35 04 06 00 35 [15:02:04]Write to MH i2c: E2 02 01 19 B5 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 50 23 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 F8 F2 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 19 95 01 00 35 04 06 00 35 00 00 6C [15:02:04]Write i2c OK [15:02:04]MH_I2C_Read... [15:02:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:02:05]Read from MH i2c: E2 [15:02:05]MH_I2C_Read... [15:02:05]Read from MH i2c: E2 03 00 [15:02:05]MH_I2C_Read... [15:02:05]Read from MH i2c: E2 03 00 19 B5 00 90 00 42 [15:02:05]RAPDU: 90 00 [15:02:05]wFMCommunicate OK [15:02:05]wFMCommunicate request_size=10 [15:02:05]MH_SAM_APDU [15:02:05]CAPDU: 80 0D 02 02 05 D2 98 2E 0F 0A [15:02:05]Write to MH i2c: E2 0D 00 1A B5 80 0D 02 02 05 00 D2 98 2E 0F 0A 00 00 04 [15:02:05]Write i2c OK [15:02:05]MH_I2C_Read... [15:02:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:02:05]Read from MH i2c: E2 [15:02:05]MH_I2C_Read... [15:02:05]Read from MH i2c: E2 03 00 [15:02:05]MH_I2C_Read... [15:02:05]Read from MH i2c: E2 03 00 1A B5 00 90 00 43 [15:02:05]RAPDU: 90 00 [15:02:05]wFMCommunicate OK [15:02:05]wFMCommunicate request_size=4 [15:02:05]MH_SAM_APDU [15:02:05]CAPDU: 80 0D 03 02 [15:02:05]Write to MH i2c: E2 08 00 1B B5 80 0D 03 02 00 00 00 00 4B [15:02:05]Write i2c OK [15:02:05]MH_I2C_Read... [15:02:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:02:05]Read from MH i2c: E2 [15:02:05]MH_I2C_Read... [15:02:05]Read from MH i2c: E2 0B 00 [15:02:05]MH_I2C_Read... [15:02:05]Read from MH i2c: E2 0B 00 1B B5 00 C1 09 A8 19 1C 32 21 CF 90 00 15 [15:02:05]RAPDU: C1 09 A8 19 1C 32 21 CF 90 00 [15:02:05]wFMCommunicate OK [15:02:05]SAM_PROTO_SignData done [15:02:05]FM_MakeSignedData done [15:02:05]CreateOFDProtocolMessage [15:02:05]wFMCommunicate request_size=4 [15:02:05]MH_SAM_APDU [15:02:05]CAPDU: 80 11 00 00 [15:02:05]Write to MH i2c: E2 08 00 1C B5 80 11 00 00 00 00 00 00 4B [15:02:05]Write i2c OK [15:02:05]MH_I2C_Read... [15:02:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:02:05]Read from MH i2c: E2 [15:02:05]MH_I2C_Read... [15:02:05]Read from MH i2c: E2 17 00 [15:02:05]MH_I2C_Read... [15:02:05]Read from MH i2c: E2 17 00 1C B5 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 9E [15:02:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [15:02:05]wFMCommunicate OK [15:02:05]CreateOFDProtocolMessage done [15:02:05]OFDSenderStorePacket 103705 [15:02:05]StoreOFDPacket docnum=103705 [15:02:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 D3 C2 07 01 8E FA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 50 23 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 F8 F2 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 19 95 01 00 35 04 06 00 35 D2 98 2E 0F 0A C1 09 A8 19 1C 32 21 CF [15:02:05]CheckFolder [15:02:05]dirname=/storage/ofd_packets [15:02:05]CheckFolder done [15:02:05]ProducePacketName [15:02:05]name=ofd_packets/00103705 [15:02:05]NVStorageSaveData ofd_packets/00103705 [15:02:05]File name is /storage/ofd_packets/00103705 [15:02:05]Write 301 bytes [15:02:05]NVStorageSaveData done [15:02:05]OFDSenderStorePacket done [15:02:05]KKMCreateOFDPacket done [15:02:05]NVStorageSaveData kkm_last_timestamp [15:02:05]File name is /storage/kkm_last_timestamp [15:02:05]Write 4 bytes [15:02:05]NVStorageSaveData done [15:02:05]ExternCall_PrintAddStr [15:02:05]wPrintStart [15:02:05]Write to MH i2c: 01 00 00 1D B5 D2 [15:02:05]Write i2c OK [15:02:05]MH_I2C_Read... [15:02:05]Read from MH i2c: 01 [15:02:05]MH_I2C_Read... [15:02:05]Read from MH i2c: 01 07 00 [15:02:05]MH_I2C_Read... [15:02:05]Read from MH i2c: 01 07 00 1D B5 00 00 00 00 00 FF 0F E7 [15:02:05]RasterBufferAndPrint [15:02:05]line Счет N : (1)672971 [15:02:05]line ИНН: 02508201610067 [15:02:05]line Контрольно-Кассовый Чек [15:02:05]line ПРОДАЖА [15:02:05]line ТРК (МРК, ГНК) : 32 [15:02:05]line Товар: 2710124130 [15:02:05]line Аи-92-К-5 [15:02:05]line 9.040 * 66.40 [15:02:05]line = 600.26 [15:02:05]line НДС 12% НСП 1% [15:02:05]line > о реализуемом товаре [15:02:05]line ОКРУГЛЕНИЕ: -0.26 [15:02:05]line ИТОГО: 600.00 [15:02:05]line Внесено: 600.00 [15:02:05]line СДАЧА: 0.00 [15:02:05]line НСП 1% : 5.31 [15:02:05]line НДС 12% : 63.74 [15:02:05]line Наличными: 600.00 [15:02:05]line Безнал.: 0.00 [15:02:05]line Место: АЗС № 120 "Партнер Нефть" [15:02:05]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [15:02:05]line СНО: Общий режим [15:02:05]line Чек 135 19.06.2024 15:02 [15:02:05]line Смена: 353 ФФД: 1.0 [15:02:05]line ЗНМ: 0300000164 [15:02:05]line РНМ: 0000000000092785 [15:02:05]line Версия ККМ: 001 [15:02:05]line ФМ: 0000000000875093 [15:02:05]line ФД: 103705 [15:02:05]line ФПД: 59178612559626 [15:02:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T150216&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103705&fm=59178612559626&tin=02508201610067®Number=0000000000092785&sum=60000 [15:02:05]written 0, free lines is 4095 [15:02:05]OFD Sender: Processing packet 103705 [packets to send 17, broken 16] [15:02:05]ProducePacketName [15:02:05]name=ofd_packets/00103705 [15:02:05]OFD Sender: To server: pG, [15:02:05]CommunicateWithHost lk.salyk.kg:30040 [15:02:05]ConnectInit lk.salyk.kg [15:02:05]Connected sock=10 [15:02:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 D3 C2 07 01 8E FA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 50 23 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 F8 F2 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 19 95 01 00 35 04 06 00 35 D2 98 2E 0F 0A C1 09 A8 19 1C 32 21 CF [15:02:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 21 22 47 00 DA 59 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 19 95 01 00 F4 03 04 00 80 99 72 66 B6 04 01 00 00 5E B7 03 69 9C 95 FD F6 [15:02:05]CommunicateWithHost err = 0 [15:02:05]CheckOFDResponse [15:02:05]1017 (14) - 77093643461234 [15:02:05]1041 (16) - 0000000000875093 [15:02:05]1040 (4) - 103705 [15:02:05]1012 (4) - 19.06.2024 08:40 [15:02:05]1206 (1) - 0 [15:02:05]OFD Sender: Remove packet 103705 [15:02:05]ProducePacketName [15:02:05]name=ofd_packets/00103705 [15:02:05]NVStorageDeleteData [15:02:05]Write to MH i2c: 01 00 00 48 B5 FD [15:02:05]Write i2c OK [15:02:05]MH_I2C_Read... [15:02:05]Read from MH i2c: 01 [15:02:05]MH_I2C_Read... [15:02:05]Read from MH i2c: 01 07 00 [15:02:05]MH_I2C_Read... [15:02:05]Read from MH i2c: 01 07 00 48 B5 00 00 00 00 00 E0 0C F0 [15:02:05]RasterBufferAndPrint [15:02:05]line [15:02:05]line [15:02:05]line [15:02:05]line [15:02:05]line [15:02:05]written 0, free lines is 3302 [15:02:05]MH_Cut [15:02:05]Write to MH i2c: D1 01 00 4F B5 01 D6 [15:02:05]Write i2c OK [15:02:05]MH_I2C_Read... [15:02:05]Read from MH i2c: D1 [15:02:05]MH_I2C_Read... [15:02:05]Read from MH i2c: D1 01 00 [15:02:05]MH_I2C_Read... [15:02:05]Read from MH i2c: D1 01 00 4F B5 00 D5 [15:02:05]Write to MH i2c: 01 00 00 50 B5 05 [15:02:05]Write i2c OK [15:02:05]MH_I2C_Read... [15:02:06]OFD Sender: No OFD packet to send [15:02:06]*** Cut start [15:02:06]*** Partial cut [15:02:06]*** CUTSNS_PIN = 1 [15:02:06]*** CUTSNS_PIN = 0 [15:02:06]*** Brake cut motor [15:02:07]Read from MH i2c: 01 [15:02:07]MH_I2C_Read... [15:02:07]*** Stop cut motor [15:02:07]*** Cut end [15:02:07]Read from MH i2c: 01 07 00 [15:02:07]MH_I2C_Read... [15:02:07]Read from MH i2c: 01 07 00 50 B5 00 00 00 00 00 FF 0F 1A [15:02:07]process_action close_receipt done [15:02:07]requested_data is exist [15:02:07]produce_requested_data [15:02:07]requested_item fm.sn is exist - process it [15:02:07]wFMCommunicate request_size=4 [15:02:07]MH_SAM_APDU [15:02:07]CAPDU: 80 11 00 00 [15:02:07]Write to MH i2c: E2 08 00 51 B5 80 11 00 00 00 00 00 00 80 [15:02:07]Write i2c OK [15:02:07]MH_I2C_Read... [15:02:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:02:07]Read from MH i2c: E2 [15:02:07]MH_I2C_Read... [15:02:07]Read from MH i2c: E2 17 00 [15:02:07]MH_I2C_Read... [15:02:07]Read from MH i2c: E2 17 00 51 B5 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 D3 [15:02:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [15:02:07]wFMCommunicate OK [15:02:07]requested_item fd.num is exist - process it [15:02:07]SAM_PROTO_GetFieldsCounters [15:02:07]wFMCommunicate request_size=4 [15:02:07]MH_SAM_APDU [15:02:07]CAPDU: 80 13 00 00 [15:02:07]Write to MH i2c: E2 08 00 52 B5 80 13 00 00 00 00 00 00 83 [15:02:07]Write i2c OK [15:02:07]MH_I2C_Read... [15:02:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:02:07]Read from MH i2c: E2 [15:02:07]MH_I2C_Read... [15:02:07]Read from MH i2c: E2 62 00 [15:02:07]MH_I2C_Read... [15:02:07]Read from MH i2c: E2 62 00 52 B5 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 19 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 87 00 00 00 5E 04 04 00 87 00 00 00 57 04 04 00 88 00 00 00 19 04 04 00 00 00 00 00 90 00 50 [15:02: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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 19 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 87 00 00 00 5E 04 04 00 87 00 00 00 57 04 04 00 88 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:02:07]wFMCommunicate OK [15:02:07]SAM_PROTO_GetFieldsCounters done [15:02:07]requested_item shift.num is exist - process it [15:02:07]requested_item shift.opened is exist - process it [15:02:07]req_shift_opened [15:02:07]FM_GetShiftState [15:02:07]SAM_PROTO_GetShiftState [15:02:07]wFMCommunicate request_size=4 [15:02:07]MH_SAM_APDU [15:02:07]CAPDU: 80 13 01 00 [15:02:07]Write to MH i2c: E2 08 00 53 B5 80 13 01 00 00 00 00 00 85 [15:02:07]Write i2c OK [15:02:07]MH_I2C_Read... [15:02:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:02:07]Read from MH i2c: E2 [15:02:07]MH_I2C_Read... [15:02:07]Read from MH i2c: E2 0E 00 [15:02:07]MH_I2C_Read... [15:02:07]Read from MH i2c: E2 0E 00 53 B5 00 09 00 01 04 26 72 66 00 00 00 00 90 00 93 [15:02:07]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [15:02:07]wFMCommunicate OK [15:02:07]SAM_PROTO_GetShiftState done [15:02:07]FM_GetShiftState done [15:02:07]req_shift_opened done [15:02:07]requested_item shift.open_date is exist - process it [15:02:07]req_shift_open_date [15:02:07]req_shift_open_date done [15:02:07]produce_requested_data done [15:02:07]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103705,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [15:02:07]process_action_free close_receipt [15:02:07]json_value_free [15:02:07]json_value_free done [15:02:07]process_json_proto returns [15:02:07]Send response to host [15:02:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103705,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [15:02:07]free response buf [15:02:07]execute_script done [15:02:07]execute_script returns [15:02:07]free content buf [15:02:07]Sock 9.Close socket [15:02:07]Sock 9.Thread stoped [15:02:11]OFD Sender: No OFD packet to send [15:02:16]OFD Sender: No OFD packet to send [15:02:21]OFD Sender: No OFD packet to send [15:02:26]OFD Sender: No OFD packet to send [15:02:31]OFD Sender: No OFD packet to send [15:02:36]OFD Sender: No OFD packet to send [15:02:41]OFD Sender: No OFD packet to send [15:02:46]OFD Sender: No OFD packet to send [15:02:51]OFD Sender: No OFD packet to send [15:02:56]OFD Sender: No OFD packet to send [15:02:57]accept exits with 7 [15:02:57]New connection [15:02:57]New thread 3067227492 created [15:02:57]Thread 3067084132 joined [15:02:57]Waiting for new connection... [15:02:57] Sock 7.Parse request [15:02:57]Sock 7.Check first char [15:02:57]Sock 7.First char is OK [15:02:57]request: POST /json_proto HTTP/1.0 [15:02:57]Method: POST [15:02:57]URL: /json_proto [15:02:57]Method is POST - this is cgi request [15:02:57]url: /json_proto [15:02:57]query_string will be loaded in cgi processing [15:02:57]execute_cgi json_proto POST (null) [15:02:57]execute_cgi path=json_proto method=POST [15:02:57]POST find Content-Length [15:02:57]Host: 172.17.38.133:8080 [15:02:57]Content-Length: 1201 [15:02:57]Content-Type: application/json [15:02:57] [15:02:57]POST finish read [15:02:57]Found Content-Length = 1201 [15:02:57]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 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. \u000A\u0421\u0447\u0435\u0442 N : (1)672970\u000A19.06.2024 14:40\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 41\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124500\u000A\u0410\u0438-95-\u041A-5\u000A 11.000 x 73.90\u000A\u0418\u0422\u041E\u0413: 812.90\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0435\u0445\u043D\u043E\u043B\u043E\u0433\u0438\u0447\u0435\u0441\u043A\u0438\u0439 \u043E\u0442\u043F\u0443\u0441\u043A: \u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:02:57]execute_script... [15:02:57]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 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. \u000A\u0421\u0447\u0435\u0442 N : (1)672970\u000A19.06.2024 14:40\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 41\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124500\u000A\u0410\u0438-95-\u041A-5\u000A 11.000 x 73.90\u000A\u0418\u0422\u041E\u0413: 812.90\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0435\u0445\u043D\u043E\u043B\u043E\u0433\u0438\u0447\u0435\u0441\u043A\u0438\u0439 \u043E\u0442\u043F\u0443\u0441\u043A: \u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:02:57]POST & json_proto [15:02:57]process_json_proto [15:02:57]json parsed OK: [15:02:57]protocol is kg_v1.0 [15:02:57]action value=print_text [15:02:57]process_action print_text [15:02:57]cmd_print_text [15:02:57]ExternCall_PrintAddStr [15:02:57]wPrintStart [15:02:57]Write to MH i2c: 01 00 00 54 B5 09 [15:02:57]Write i2c OK [15:02:57]MH_I2C_Read... [15:02:57]Read from MH i2c: 01 [15:02:57]MH_I2C_Read... [15:02:57]Read from MH i2c: 01 07 00 [15:02:57]MH_I2C_Read... [15:02:57]Read from MH i2c: 01 07 00 54 B5 00 00 00 00 00 FF 0F 1E [15:02:57]RasterBufferAndPrint [15:02:57]line *****ТОВАРНЫЙ ЧЕК***** [15:02:57]line АЗС 120 [15:02:57]line Партнер нефть [15:02:57]line 02508201610067 [15:02:57]line Кассир : Байбугуева Г. [15:02:57]line Счет N : (1)672970 [15:02:57]line 19.06.2024 14:40 [15:02:57]line ПРОДАЖА [15:02:57]line ТРК (МРК, ГНК): 41 [15:02:57]line Вид ГСМ : 2710124500 [15:02:57]line Аи-95-К-5 [15:02:57]line 11.000 x 73.90 [15:02:57]line ИТОГ: 812.90 [15:02:57]line Тип оплаты: Технологический отпуск: [15:02:57]line ______________________ [15:02:57]line (подпись) [15:02:57]written 0, free lines is 4095 [15:02:57]Write to MH i2c: 01 00 00 67 B5 1C [15:02:57]Write i2c OK [15:02:57]MH_I2C_Read... [15:02:57]Read from MH i2c: 01 [15:02:57]MH_I2C_Read... [15:02:57]Read from MH i2c: 01 07 00 [15:02:57]MH_I2C_Read... [15:02:57]Read from MH i2c: 01 07 00 67 B5 00 00 00 00 00 2A 0E 5B [15:02:57]RasterBufferAndPrint [15:02:57]line [15:02:57]line [15:02:57]line [15:02:57]line [15:02:57]line [15:02:57]written 0, free lines is 3627 [15:02:57]MH_Cut [15:02:57]Write to MH i2c: D1 01 00 6E B5 01 F5 [15:02:57]Write i2c OK [15:02:57]MH_I2C_Read... [15:02:57]Read from MH i2c: D1 [15:02:57]MH_I2C_Read... [15:02:57]Read from MH i2c: D1 01 00 [15:02:57]MH_I2C_Read... [15:02:57]Read from MH i2c: D1 01 00 6E B5 00 F4 [15:02:57]Write to MH i2c: 01 00 00 6F B5 24 [15:02:57]Write i2c OK [15:02:57]MH_I2C_Read... [15:02:57]*** Cut start [15:02:57]*** Partial cut [15:02:57]*** CUTSNS_PIN = 1 [15:02:57]*** CUTSNS_PIN = 0 [15:02:58]*** Brake cut motor [15:02:58]Read from MH i2c: 01 [15:02:58]MH_I2C_Read... [15:02:58]Read from MH i2c: 01 07 00 [15:02:58]MH_I2C_Read... [15:02:58]*** Stop cut motor [15:02:58]*** Cut end [15:02:58]Read from MH i2c: 01 07 00 6F B5 00 00 00 00 00 FF 0F 39 [15:02:58]process_action print_text done [15:02:58]requested_data is exist [15:02:58]produce_requested_data [15:02:58]requested_item fm.sn is exist - process it [15:02:58]wFMCommunicate request_size=4 [15:02:58]MH_SAM_APDU [15:02:58]CAPDU: 80 11 00 00 [15:02:58]Write to MH i2c: E2 08 00 70 B5 80 11 00 00 00 00 00 00 9F [15:02:58]Write i2c OK [15:02:58]MH_I2C_Read... [15:02:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:02:58]Read from MH i2c: E2 [15:02:58]MH_I2C_Read... [15:02:58]Read from MH i2c: E2 17 00 [15:02:58]MH_I2C_Read... [15:02:58]Read from MH i2c: E2 17 00 70 B5 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 F2 [15:02:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [15:02:58]wFMCommunicate OK [15:02:58]requested_item fd.num is exist - process it [15:02:58]SAM_PROTO_GetFieldsCounters [15:02:58]wFMCommunicate request_size=4 [15:02:58]MH_SAM_APDU [15:02:58]CAPDU: 80 13 00 00 [15:02:58]Write to MH i2c: E2 08 00 71 B5 80 13 00 00 00 00 00 00 A2 [15:02:58]Write i2c OK [15:02:58]MH_I2C_Read... [15:02:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:02:58]Read from MH i2c: E2 [15:02:58]MH_I2C_Read... [15:02:58]Read from MH i2c: E2 62 00 [15:02:58]MH_I2C_Read... [15:02:58]Read from MH i2c: E2 62 00 71 B5 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 19 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 87 00 00 00 5E 04 04 00 87 00 00 00 57 04 04 00 88 00 00 00 19 04 04 00 00 00 00 00 90 00 6F [15:02: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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 19 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 87 00 00 00 5E 04 04 00 87 00 00 00 57 04 04 00 88 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:02:58]wFMCommunicate OK [15:02:58]SAM_PROTO_GetFieldsCounters done [15:02:58]requested_item shift.num is exist - process it [15:02:58]requested_item shift.opened is exist - process it [15:02:58]req_shift_opened [15:02:58]FM_GetShiftState [15:02:58]SAM_PROTO_GetShiftState [15:02:58]wFMCommunicate request_size=4 [15:02:58]MH_SAM_APDU [15:02:58]CAPDU: 80 13 01 00 [15:02:58]Write to MH i2c: E2 08 00 72 B5 80 13 01 00 00 00 00 00 A4 [15:02:58]Write i2c OK [15:02:58]MH_I2C_Read... [15:02:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:02:58]Read from MH i2c: E2 [15:02:58]MH_I2C_Read... [15:02:58]Read from MH i2c: E2 0E 00 [15:02:58]MH_I2C_Read... [15:02:58]Read from MH i2c: E2 0E 00 72 B5 00 09 00 01 04 26 72 66 00 00 00 00 90 00 B2 [15:02:58]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [15:02:58]wFMCommunicate OK [15:02:58]SAM_PROTO_GetShiftState done [15:02:58]FM_GetShiftState done [15:02:58]req_shift_opened done [15:02:58]requested_item shift.open_date is exist - process it [15:02:58]req_shift_open_date [15:02:58]req_shift_open_date done [15:02:58]produce_requested_data done [15:02:58]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103705,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [15:02:58]process_action_free print_text [15:02:58]json_value_free [15:02:58]json_value_free done [15:02:58]process_json_proto returns [15:02:58]Send response to host [15:02:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103705,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [15:02:58]free response buf [15:02:58]execute_script done [15:02:58]execute_script returns [15:02:58]free content buf [15:02:58]Sock 7.Close socket [15:02:58]Sock 7.Thread stoped [15:03:01]OFD Sender: No OFD packet to send [15:03:06]OFD Sender: No OFD packet to send [15:03:11]OFD Sender: No OFD packet to send [15:03:16]OFD Sender: No OFD packet to send [15:03:21]OFD Sender: No OFD packet to send [15:03:26]OFD Sender: No OFD packet to send [15:03:31]OFD Sender: No OFD packet to send [15:03:36]OFD Sender: No OFD packet to send [15:03:41]OFD Sender: No OFD packet to send [15:03:46]OFD Sender: No OFD packet to send [15:03:51]OFD Sender: No OFD packet to send [15:03:56]OFD Sender: No OFD packet to send [15:04:01]OFD Sender: No OFD packet to send [15:04:06]OFD Sender: No OFD packet to send [15:04:07]accept exits with 9 [15:04:07]New connection [15:04:07]New thread 3067084132 created [15:04:07]Thread 3067227492 joined [15:04:07]Waiting for new connection... [15:04:07] Sock 9.Parse request [15:04:07]Sock 9.Check first char [15:04:07]Sock 9.First char is OK [15:04:07]request: POST /json_proto HTTP/1.0 [15:04:07]Method: POST [15:04:07]URL: /json_proto [15:04:07]Method is POST - this is cgi request [15:04:07]url: /json_proto [15:04:07]query_string will be loaded in cgi processing [15:04:07]execute_cgi json_proto POST (null) [15:04:07]execute_cgi path=json_proto method=POST [15:04:07]POST find Content-Length [15:04:07]Host: 172.17.38.133:8080 [15:04:07]Content-Length: 687 [15:04:07]Content-Type: application/json [15:04:07] [15:04:07]POST finish read [15:04:07]Found Content-Length = 687 [15:04:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672972", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 13.720, "sum" : 1000.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:04:07]execute_script... [15:04: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)672972", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 13.720, "sum" : 1000.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:04:07]POST & json_proto [15:04:07]process_json_proto [15:04:07]json parsed OK: [15:04:07]protocol is kg_v1.0 [15:04:07]action value=close_receipt [15:04:07]process_action close_receipt [15:04:07]cmd_close_receipt [15:04:07]MH_GetDate [15:04:07]Write to MH i2c: F0 00 00 73 B5 17 [15:04:07]Write i2c OK [15:04:07]MH_I2C_Read... [15:04:07]Read from MH i2c: F0 [15:04:07]MH_I2C_Read... [15:04:07]Read from MH i2c: F0 09 00 [15:04:07]MH_I2C_Read... [15:04:07]Read from MH i2c: F0 09 00 73 B5 00 74 F3 72 66 BD 8F 7C 64 8B [15:04:07]GetLastDocTimeStamp 1718809336 [15:04:07]current date 1718809460 [15:04:07]FM_GetShiftState [15:04:07]SAM_PROTO_GetShiftState [15:04:07]wFMCommunicate request_size=4 [15:04:07]MH_SAM_APDU [15:04:07]CAPDU: 80 13 01 00 [15:04:07]Write to MH i2c: E2 08 00 74 B5 80 13 01 00 00 00 00 00 A6 [15:04:07]Write i2c OK [15:04:07]MH_I2C_Read... [15:04:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:04:07]Read from MH i2c: E2 [15:04:07]MH_I2C_Read... [15:04:07]Read from MH i2c: E2 0E 00 [15:04:07]MH_I2C_Read... [15:04:07]Read from MH i2c: E2 0E 00 74 B5 00 09 00 01 04 26 72 66 00 00 00 00 90 00 B4 [15:04:07]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [15:04:07]wFMCommunicate OK [15:04:07]SAM_PROTO_GetShiftState done [15:04:07]FM_GetShiftState done [15:04:07]opened in 1718756868 [15:04:07]opened+sec_in_day 1718843268 [15:04:07]quantity*price = 100018 [15:04:07]sum+1 = 100020 [15:04:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.19 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 136 19.06.2024 15:04 Смена: 353 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103706 ФПД: 277698265844282 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T150420&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103706&fm=277698265844282&tin=02508201610067®Number=0000000000092785&sum=100000 [15:04:08]StoreToDocumentArchive [15:04:08]shift 353 fd 103706 [15:04:08]save to /storage/0353/doc_00103706 [15:04:08]save last doc name /storage/0353/doc_00103706 to /storage/kkm_last_doc_name [15:04:08]save OK [15:04:08]Clear old archive folders... [15:04:08]ProcessDocumentItem done err = 0, tmpTLVsize=252 [15:04:08]tlvbuf is 014E8180 [15:04:08]SAM_PROTO_ClearQueue [15:04:08]wFMCommunicate request_size=4 [15:04:08]MH_SAM_APDU [15:04:08]CAPDU: 80 09 00 00 [15:04:08]Write to MH i2c: E2 08 00 81 B5 80 09 00 00 00 00 00 00 A8 [15:04:08]Write i2c OK [15:04:08]MH_I2C_Read... [15:04:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:04:08]Read from MH i2c: E2 [15:04:08]MH_I2C_Read... [15:04:08]Read from MH i2c: E2 03 00 [15:04:08]MH_I2C_Read... [15:04:08]Read from MH i2c: E2 03 00 81 B5 00 90 00 AA [15:04:08]RAPDU: 90 00 [15:04:08]wFMCommunicate OK [15:04:08]SAM_PROTO_ClearQueue done [15:04:08]KKMCreateOFDPacket [15:04:08]OFDProtocolAddRootSTLVToBuf [15:04:08]FM_MakeSignedData [15:04:08]FM_MakeSignedData [15:04:08]SAM_PROTO_SignData [15:04:08]wFMCommunicate request_size=4 [15:04:08]MH_SAM_APDU [15:04:08]CAPDU: 80 0D 01 02 [15:04:08]Write to MH i2c: E2 08 00 82 B5 80 0D 01 02 00 00 00 00 B0 [15:04:08]Write i2c OK [15:04:08]MH_I2C_Read... [15:04:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:04:08]Read from MH i2c: E2 [15:04:08]MH_I2C_Read... [15:04:08]Read from MH i2c: E2 03 00 [15:04:08]MH_I2C_Read... [15:04:08]Read from MH i2c: E2 03 00 82 B5 00 90 00 AB [15:04:08]RAPDU: 90 00 [15:04:08]wFMCommunicate OK [15:04:08]wFMCommunicate request_size=255 [15:04:08]MH_SAM_APDU [15:04:08]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 00 00 00 F4 03 04 00 74 F3 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 1A 95 01 00 35 04 06 00 [15:04:08]Write to MH i2c: E2 02 01 83 B5 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 00 00 00 F4 03 04 00 74 F3 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 1A 95 01 00 35 04 06 00 00 00 DD [15:04:08]Write i2c OK [15:04:08]MH_I2C_Read... [15:04:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:04:09]Read from MH i2c: E2 [15:04:09]MH_I2C_Read... [15:04:09]Read from MH i2c: E2 03 00 [15:04:09]MH_I2C_Read... [15:04:09]Read from MH i2c: E2 03 00 83 B5 00 90 00 AC [15:04:09]RAPDU: 90 00 [15:04:09]wFMCommunicate OK [15:04:09]wFMCommunicate request_size=11 [15:04:09]MH_SAM_APDU [15:04:09]CAPDU: 80 0D 02 02 06 FC 90 AA 7D 8A 3A [15:04:09]Write to MH i2c: E2 0E 00 84 B5 80 0D 02 02 06 00 FC 90 AA 7D 8A 3A 00 00 36 [15:04:09]Write i2c OK [15:04:09]MH_I2C_Read... [15:04:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:04:09]Read from MH i2c: E2 [15:04:09]MH_I2C_Read... [15:04:09]Read from MH i2c: E2 03 00 [15:04:09]MH_I2C_Read... [15:04:09]Read from MH i2c: E2 03 00 84 B5 00 90 00 AD [15:04:09]RAPDU: 90 00 [15:04:09]wFMCommunicate OK [15:04:09]wFMCommunicate request_size=4 [15:04:09]MH_SAM_APDU [15:04:09]CAPDU: 80 0D 03 02 [15:04:09]Write to MH i2c: E2 08 00 85 B5 80 0D 03 02 00 00 00 00 B5 [15:04:09]Write i2c OK [15:04:09]MH_I2C_Read... [15:04:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:04:09]Read from MH i2c: E2 [15:04:09]MH_I2C_Read... [15:04:09]Read from MH i2c: E2 0B 00 [15:04:09]MH_I2C_Read... [15:04:09]Read from MH i2c: E2 0B 00 85 B5 00 33 37 70 30 78 94 EB 43 90 00 FA [15:04:09]RAPDU: 33 37 70 30 78 94 EB 43 90 00 [15:04:09]wFMCommunicate OK [15:04:09]SAM_PROTO_SignData done [15:04:09]FM_MakeSignedData done [15:04:09]CreateOFDProtocolMessage [15:04:09]wFMCommunicate request_size=4 [15:04:09]MH_SAM_APDU [15:04:09]CAPDU: 80 11 00 00 [15:04:09]Write to MH i2c: E2 08 00 86 B5 80 11 00 00 00 00 00 00 B5 [15:04:09]Write i2c OK [15:04:09]MH_I2C_Read... [15:04:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:04:09]Read from MH i2c: E2 [15:04:09]MH_I2C_Read... [15:04:09]Read from MH i2c: E2 17 00 [15:04:09]MH_I2C_Read... [15:04:09]Read from MH i2c: E2 17 00 86 B5 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 08 [15:04:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [15:04:09]wFMCommunicate OK [15:04:09]CreateOFDProtocolMessage done [15:04:09]OFDSenderStorePacket 103706 [15:04:09]StoreOFDPacket docnum=103706 [15:04:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 41 91 08 01 36 61 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 00 00 00 F4 03 04 00 74 F3 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 1A 95 01 00 35 04 06 00 FC 90 AA 7D 8A 3A 33 37 70 30 78 94 EB 43 [15:04:09]CheckFolder [15:04:09]dirname=/storage/ofd_packets [15:04:09]CheckFolder done [15:04:09]ProducePacketName [15:04:09]name=ofd_packets/00103706 [15:04:09]NVStorageSaveData ofd_packets/00103706 [15:04:09]File name is /storage/ofd_packets/00103706 [15:04:09]Write 302 bytes [15:04:09]NVStorageSaveData done [15:04:09]OFDSenderStorePacket done [15:04:09]KKMCreateOFDPacket done [15:04:09]NVStorageSaveData kkm_last_timestamp [15:04:09]File name is /storage/kkm_last_timestamp [15:04:09]Write 4 bytes [15:04:09]NVStorageSaveData done [15:04:09]ExternCall_PrintAddStr [15:04:09]wPrintStart [15:04:09]Write to MH i2c: 01 00 00 87 B5 3C [15:04:09]Write i2c OK [15:04:09]MH_I2C_Read... [15:04:09]Read from MH i2c: 01 [15:04:09]MH_I2C_Read... [15:04:09]Read from MH i2c: 01 07 00 [15:04:09]MH_I2C_Read... [15:04:09]Read from MH i2c: 01 07 00 87 B5 00 00 00 00 00 FF 0F 51 [15:04:09]RasterBufferAndPrint [15:04:09]line Счет N : (1)672972 [15:04:09]line ИНН: 02508201610067 [15:04:09]line Контрольно-Кассовый Чек [15:04:09]line ПРОДАЖА [15:04:09]line ТРК (МРК, ГНК) : 21 [15:04:09]line Товар: 2710194210 [15:04:09]line ДТ(л)-К-5 [15:04:09]line 13.720 * 72.90 [15:04:09]line = 1000.19 [15:04:09]line НДС 12% НСП 1% [15:04:09]line > о реализуемом товаре [15:04:09]line ОКРУГЛЕНИЕ: -0.19 [15:04:09]line ИТОГО: 1000.00 [15:04:09]line Внесено: 1000.00 [15:04:09]line СДАЧА: 0.00 [15:04:09]line НСП 1% : 8.85 [15:04:09]line НДС 12% : 106.21 [15:04:09]line Наличными: 1000.00 [15:04:09]line Безнал.: 0.00 [15:04:09]line Место: АЗС № 120 "Партнер Нефть" [15:04:09]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [15:04:09]line СНО: Общий режим [15:04:09]line Чек 136 19.06.2024 15:04 [15:04:09]line Смена: 353 ФФД: 1.0 [15:04:09]line ЗНМ: 0300000164 [15:04:09]line РНМ: 0000000000092785 [15:04:09]line Версия ККМ: 001 [15:04:09]line ФМ: 0000000000875093 [15:04:09]line ФД: 103706 [15:04:09]line ФПД: 277698265844282 [15:04:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T150420&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103706&fm=277698265844282&tin=02508201610067®Number=0000000000092785&sum=100000 [15:04:09]OFD Sender: Processing packet 103706 [packets to send 17, broken 16] [15:04:09]ProducePacketName [15:04:09]name=ofd_packets/00103706 [15:04:09]OFD Sender: To server: pG, [15:04:09]CommunicateWithHost lk.salyk.kg:30040 [15:04:09]ConnectInit lk.salyk.kg [15:04:09]written 0, free lines is 4095 [15:04:09]Connected sock=11 [15:04:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 41 91 08 01 36 61 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 00 00 00 F4 03 04 00 74 F3 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 1A 95 01 00 35 04 06 00 FC 90 AA 7D 8A 3A 33 37 70 30 78 94 EB 43 [15:04:10]Write to MH i2c: 01 00 00 B2 B5 67 [15:04:10]Write i2c OK [15:04:10]MH_I2C_Read... [15:04:10]Read from MH i2c: 01 [15:04:10]MH_I2C_Read... [15:04:10]Read from MH i2c: 01 07 00 [15:04:10]MH_I2C_Read... [15:04:10]Read from MH i2c: 01 07 00 B2 B5 00 00 00 00 00 D4 0C 4E [15:04:10]RasterBufferAndPrint [15:04:10]line [15:04:10]line [15:04:10]line [15:04:10]line [15:04:10]line [15:04:10]written 0, free lines is 3290 [15:04:10]MH_Cut [15:04:10]Write to MH i2c: D1 01 00 B9 B5 01 40 [15:04:10]Write i2c OK [15:04:10]MH_I2C_Read... [15:04:10]Read from MH i2c: D1 [15:04:10]MH_I2C_Read... [15:04:10]Read from MH i2c: D1 01 00 [15:04:10]MH_I2C_Read... [15:04:10]Read from MH i2c: D1 01 00 B9 B5 00 3F [15:04:10]Write to MH i2c: 01 00 00 BA B5 6F [15:04:10]Write i2c OK [15:04:10]MH_I2C_Read... [15:04: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 39 33 4F 00 00 00 E3 07 47 00 57 34 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 1A 95 01 00 F4 03 04 00 FD 99 72 66 B6 04 01 00 00 72 6E DA 46 A0 54 D3 AC [15:04:10]CommunicateWithHost err = 0 [15:04:10]CheckOFDResponse [15:04:10]1017 (14) - 77093643461234 [15:04:10]1041 (16) - 0000000000875093 [15:04:10]1040 (4) - 103706 [15:04:10]1012 (4) - 19.06.2024 08:42 [15:04:10]1206 (1) - 0 [15:04:10]OFD Sender: Remove packet 103706 [15:04:10]ProducePacketName [15:04:10]name=ofd_packets/00103706 [15:04:10]NVStorageDeleteData [15:04:10]OFD Sender: No OFD packet to send [15:04:10]*** Cut start [15:04:10]*** Partial cut [15:04:10]*** CUTSNS_PIN = 1 [15:04:10]*** CUTSNS_PIN = 0 [15:04:11]*** Brake cut motor [15:04:11]Read from MH i2c: 01 [15:04:11]MH_I2C_Read... [15:04:11]*** Stop cut motor [15:04:11]*** Cut end [15:04:11]Read from MH i2c: 01 07 00 [15:04:11]MH_I2C_Read... [15:04:11]Read from MH i2c: 01 07 00 BA B5 00 00 00 00 00 FF 0F 84 [15:04:11]process_action close_receipt done [15:04:11]requested_data is exist [15:04:11]produce_requested_data [15:04:11]requested_item fm.sn is exist - process it [15:04:11]wFMCommunicate request_size=4 [15:04:11]MH_SAM_APDU [15:04:11]CAPDU: 80 11 00 00 [15:04:11]Write to MH i2c: E2 08 00 BB B5 80 11 00 00 00 00 00 00 EA [15:04:11]Write i2c OK [15:04:11]MH_I2C_Read... [15:04:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:04:11]Read from MH i2c: E2 [15:04:11]MH_I2C_Read... [15:04:11]Read from MH i2c: E2 17 00 [15:04:11]MH_I2C_Read... [15:04:11]Read from MH i2c: E2 17 00 BB B5 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 3D [15:04:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [15:04:11]wFMCommunicate OK [15:04:11]requested_item fd.num is exist - process it [15:04:11]SAM_PROTO_GetFieldsCounters [15:04:11]wFMCommunicate request_size=4 [15:04:11]MH_SAM_APDU [15:04:11]CAPDU: 80 13 00 00 [15:04:11]Write to MH i2c: E2 08 00 BC B5 80 13 00 00 00 00 00 00 ED [15:04:11]Write i2c OK [15:04:11]MH_I2C_Read... [15:04:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:04:11]Read from MH i2c: E2 [15:04:11]MH_I2C_Read... [15:04:11]Read from MH i2c: E2 62 00 [15:04:11]MH_I2C_Read... [15:04:11]Read from MH i2c: E2 62 00 BC B5 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 1A 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 88 00 00 00 5E 04 04 00 88 00 00 00 57 04 04 00 89 00 00 00 19 04 04 00 00 00 00 00 90 00 BE [15:04: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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 1A 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 88 00 00 00 5E 04 04 00 88 00 00 00 57 04 04 00 89 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:04:11]wFMCommunicate OK [15:04:11]SAM_PROTO_GetFieldsCounters done [15:04:11]requested_item shift.num is exist - process it [15:04:11]requested_item shift.opened is exist - process it [15:04:11]req_shift_opened [15:04:11]FM_GetShiftState [15:04:11]SAM_PROTO_GetShiftState [15:04:11]wFMCommunicate request_size=4 [15:04:11]MH_SAM_APDU [15:04:11]CAPDU: 80 13 01 00 [15:04:11]Write to MH i2c: E2 08 00 BD B5 80 13 01 00 00 00 00 00 EF [15:04:11]Write i2c OK [15:04:11]MH_I2C_Read... [15:04:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:04:11]Read from MH i2c: E2 [15:04:11]MH_I2C_Read... [15:04:11]Read from MH i2c: E2 0E 00 [15:04:11]MH_I2C_Read... [15:04:11]Read from MH i2c: E2 0E 00 BD B5 00 09 00 01 04 26 72 66 00 00 00 00 90 00 FD [15:04:11]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [15:04:11]wFMCommunicate OK [15:04:11]SAM_PROTO_GetShiftState done [15:04:11]FM_GetShiftState done [15:04:11]req_shift_opened done [15:04:11]requested_item shift.open_date is exist - process it [15:04:11]req_shift_open_date [15:04:11]req_shift_open_date done [15:04:11]produce_requested_data done [15:04:11]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103706,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [15:04:11]process_action_free close_receipt [15:04:11]json_value_free [15:04:11]json_value_free done [15:04:11]process_json_proto returns [15:04:11]Send response to host [15:04:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103706,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [15:04:11]free response buf [15:04:11]execute_script done [15:04:11]execute_script returns [15:04:11]free content buf [15:04:11]Sock 9.Close socket [15:04:11]Sock 9.Thread stoped [15:04:15]OFD Sender: No OFD packet to send [15:04:20]OFD Sender: No OFD packet to send [15:04:22]accept exits with 7 [15:04:22]New connection [15:04:22]New thread 3067227492 created [15:04:22]Thread 3067084132 joined [15:04:22]Waiting for new connection... [15:04:22] Sock 7.Parse request [15:04:22]Sock 7.Check first char [15:04:22]Sock 7.First char is OK [15:04:22]request: POST /json_proto HTTP/1.0 [15:04:22]Method: POST [15:04:22]URL: /json_proto [15:04:22]Method is POST - this is cgi request [15:04:22]url: /json_proto [15:04:22]query_string will be loaded in cgi processing [15:04:22]execute_cgi json_proto POST (null) [15:04:22]execute_cgi path=json_proto method=POST [15:04:22]POST find Content-Length [15:04:22]Host: 172.17.38.133:8080 [15:04:22]Content-Length: 1201 [15:04:22]Content-Type: application/json [15:04:22] [15:04:22]POST finish read [15:04:22]Found Content-Length = 1201 [15:04:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. \u000A\u0421\u0447\u0435\u0442 N : (1)672973\u000A19.06.2024 14:41\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 42\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 11.000 x 66.40\u000A\u0418\u0422\u041E\u0413: 730.40\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0435\u0445\u043D\u043E\u043B\u043E\u0433\u0438\u0447\u0435\u0441\u043A\u0438\u0439 \u043E\u0442\u043F\u0443\u0441\u043A: \u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:04:22]execute_script... [15:04:22]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. \u000A\u0421\u0447\u0435\u0442 N : (1)672973\u000A19.06.2024 14:41\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 42\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 11.000 x 66.40\u000A\u0418\u0422\u041E\u0413: 730.40\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0435\u0445\u043D\u043E\u043B\u043E\u0433\u0438\u0447\u0435\u0441\u043A\u0438\u0439 \u043E\u0442\u043F\u0443\u0441\u043A: \u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:04:22]POST & json_proto [15:04:22]process_json_proto [15:04:22]json parsed OK: [15:04:22]protocol is kg_v1.0 [15:04:22]action value=print_text [15:04:22]process_action print_text [15:04:22]cmd_print_text [15:04:22]ExternCall_PrintAddStr [15:04:22]wPrintStart [15:04:22]Write to MH i2c: 01 00 00 BE B5 73 [15:04:22]Write i2c OK [15:04:22]MH_I2C_Read... [15:04:22]Read from MH i2c: 01 [15:04:22]MH_I2C_Read... [15:04:22]Read from MH i2c: 01 07 00 [15:04:22]MH_I2C_Read... [15:04:22]Read from MH i2c: 01 07 00 BE B5 00 00 00 00 00 FF 0F 88 [15:04:22]RasterBufferAndPrint [15:04:22]line *****ТОВАРНЫЙ ЧЕК***** [15:04:22]line АЗС 120 [15:04:22]line Партнер нефть [15:04:22]line 02508201610067 [15:04:22]line Кассир : Байбугуева Г. [15:04:22]line Счет N : (1)672973 [15:04:22]line 19.06.2024 14:41 [15:04:22]line ПРОДАЖА [15:04:22]line ТРК (МРК, ГНК): 42 [15:04:22]line Вид ГСМ : 2710124130 [15:04:22]line Аи-92-К-5 [15:04:22]line 11.000 x 66.40 [15:04:22]line ИТОГ: 730.40 [15:04:22]line Тип оплаты: Технологический отпуск: [15:04:22]line ______________________ [15:04:22]line (подпись) [15:04:22]written 0, free lines is 4095 [15:04:22]Write to MH i2c: 01 00 00 D1 B5 86 [15:04:22]Write i2c OK [15:04:22]MH_I2C_Read... [15:04:22]Read from MH i2c: 01 [15:04:22]MH_I2C_Read... [15:04:22]Read from MH i2c: 01 07 00 [15:04:22]MH_I2C_Read... [15:04:22]Read from MH i2c: 01 07 00 D1 B5 00 00 00 00 00 2A 0E C5 [15:04:22]RasterBufferAndPrint [15:04:22]line [15:04:22]line [15:04:22]line [15:04:22]line [15:04:22]line [15:04:22]written 0, free lines is 3627 [15:04:22]MH_Cut [15:04:22]Write to MH i2c: D1 01 00 D8 B5 01 5F [15:04:22]Write i2c OK [15:04:22]MH_I2C_Read... [15:04:22]Read from MH i2c: D1 [15:04:22]MH_I2C_Read... [15:04:22]Read from MH i2c: D1 01 00 [15:04:22]MH_I2C_Read... [15:04:22]Read from MH i2c: D1 01 00 D8 B5 00 5E [15:04:22]Write to MH i2c: 01 00 00 D9 B5 8E [15:04:22]Write i2c OK [15:04:22]MH_I2C_Read... [15:04:23]*** Cut start [15:04:23]*** Partial cut [15:04:23]*** CUTSNS_PIN = 1 [15:04:23]*** CUTSNS_PIN = 0 [15:04:23]*** Brake cut motor [15:04:23]Read from MH i2c: 01 [15:04:23]MH_I2C_Read... [15:04:23]*** Stop cut motor [15:04:23]*** Cut end [15:04:23]Read from MH i2c: 01 07 00 [15:04:23]MH_I2C_Read... [15:04:23]Read from MH i2c: 01 07 00 D9 B5 00 00 00 00 00 FF 0F A3 [15:04:23]process_action print_text done [15:04:23]requested_data is exist [15:04:23]produce_requested_data [15:04:23]requested_item fm.sn is exist - process it [15:04:23]wFMCommunicate request_size=4 [15:04:23]MH_SAM_APDU [15:04:23]CAPDU: 80 11 00 00 [15:04:23]Write to MH i2c: E2 08 00 DA B5 80 11 00 00 00 00 00 00 09 [15:04:23]Write i2c OK [15:04:23]MH_I2C_Read... [15:04:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:04:23]Read from MH i2c: E2 [15:04:23]MH_I2C_Read... [15:04:23]Read from MH i2c: E2 17 00 [15:04:23]MH_I2C_Read... [15:04:23]Read from MH i2c: E2 17 00 DA B5 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 5C [15:04:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [15:04:23]wFMCommunicate OK [15:04:23]requested_item fd.num is exist - process it [15:04:23]SAM_PROTO_GetFieldsCounters [15:04:23]wFMCommunicate request_size=4 [15:04:23]MH_SAM_APDU [15:04:23]CAPDU: 80 13 00 00 [15:04:23]Write to MH i2c: E2 08 00 DB B5 80 13 00 00 00 00 00 00 0C [15:04:23]Write i2c OK [15:04:23]MH_I2C_Read... [15:04:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:04:23]Read from MH i2c: E2 [15:04:23]MH_I2C_Read... [15:04:23]Read from MH i2c: E2 62 00 [15:04:23]MH_I2C_Read... [15:04:23]Read from MH i2c: E2 62 00 DB B5 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 1A 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 88 00 00 00 5E 04 04 00 88 00 00 00 57 04 04 00 89 00 00 00 19 04 04 00 00 00 00 00 90 00 DD [15:04: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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 1A 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 88 00 00 00 5E 04 04 00 88 00 00 00 57 04 04 00 89 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:04:23]wFMCommunicate OK [15:04:23]SAM_PROTO_GetFieldsCounters done [15:04:23]requested_item shift.num is exist - process it [15:04:23]requested_item shift.opened is exist - process it [15:04:23]req_shift_opened [15:04:23]FM_GetShiftState [15:04:23]SAM_PROTO_GetShiftState [15:04:23]wFMCommunicate request_size=4 [15:04:23]MH_SAM_APDU [15:04:23]CAPDU: 80 13 01 00 [15:04:23]Write to MH i2c: E2 08 00 DC B5 80 13 01 00 00 00 00 00 0E [15:04:23]Write i2c OK [15:04:23]MH_I2C_Read... [15:04:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:04:24]Read from MH i2c: E2 [15:04:24]MH_I2C_Read... [15:04:24]Read from MH i2c: E2 0E 00 [15:04:24]MH_I2C_Read... [15:04:24]Read from MH i2c: E2 0E 00 DC B5 00 09 00 01 04 26 72 66 00 00 00 00 90 00 1C [15:04:24]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [15:04:24]wFMCommunicate OK [15:04:24]SAM_PROTO_GetShiftState done [15:04:24]FM_GetShiftState done [15:04:24]req_shift_opened done [15:04:24]requested_item shift.open_date is exist - process it [15:04:24]req_shift_open_date [15:04:24]req_shift_open_date done [15:04:24]produce_requested_data done [15:04:24]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103706,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [15:04:24]process_action_free print_text [15:04:24]json_value_free [15:04:24]json_value_free done [15:04:24]process_json_proto returns [15:04:24]Send response to host [15:04:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103706,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [15:04:24]free response buf [15:04:24]execute_script done [15:04:24]execute_script returns [15:04:24]free content buf [15:04:24]Sock 7.Close socket [15:04:24]Sock 7.Thread stoped [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:05]OFD Sender: No OFD packet to send [15:05:10]OFD Sender: No OFD packet to send [15:05:15]OFD Sender: No OFD packet to send [15:05:20]OFD Sender: No OFD packet to send [15:05:25]OFD Sender: No OFD packet to send [15:05:30]OFD Sender: No OFD packet to send [15:05:35]OFD Sender: No OFD packet to send [15:05:40]OFD Sender: No OFD packet to send [15:05:45]OFD Sender: No OFD packet to send [15:05:50]OFD Sender: No OFD packet to send [15:05:55]OFD Sender: No OFD packet to send [15:06:00]OFD Sender: No OFD packet to send [15:06:05]OFD Sender: No OFD packet to send [15:06:10]OFD Sender: No OFD packet to send [15:06:15]OFD Sender: No OFD packet to send [15:06:20]OFD Sender: No OFD packet to send [15:06:25]OFD Sender: No OFD packet to send [15:06:30]OFD Sender: No OFD packet to send [15:06:35]OFD Sender: No OFD packet to send [15:06:40]OFD Sender: No OFD packet to send [15:06:45]OFD Sender: No OFD packet to send [15:06:50]OFD Sender: No OFD packet to send [15:06:55]OFD Sender: No OFD packet to send [15:07:00]OFD Sender: No OFD packet to send [15:07:05]OFD Sender: No OFD packet to send [15:07:10]OFD Sender: No OFD packet to send [15:07:15]OFD Sender: No OFD packet to send [15:07:20]OFD Sender: No OFD packet to send [15:07:25]OFD Sender: No OFD packet to send [15:07:30]OFD Sender: No OFD packet to send [15:07:31]accept exits with 9 [15:07:31]New connection [15:07:31]New thread 3067084132 created [15:07:31]Thread 3067227492 joined [15:07:31]Waiting for new connection... [15:07:31] Sock 9.Parse request [15:07:31]Sock 9.Check first char [15:07:31]Sock 9.First char is OK [15:07:31]request: POST /json_proto HTTP/1.0 [15:07:31]Method: POST [15:07:31]URL: /json_proto [15:07:31]Method is POST - this is cgi request [15:07:31]url: /json_proto [15:07:31]query_string will be loaded in cgi processing [15:07:31]execute_cgi json_proto POST (null) [15:07:31]execute_cgi path=json_proto method=POST [15:07:31]POST find Content-Length [15:07:31]Host: 172.17.38.133:8080 [15:07:31]Content-Length: 1201 [15:07:31]Content-Type: application/json [15:07:31] [15:07:31]POST finish read [15:07:31]Found Content-Length = 1201 [15:07:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. \u000A\u0421\u0447\u0435\u0442 N : (1)672974\u000A19.06.2024 14:45\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 42\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 11.000 x 66.40\u000A\u0418\u0422\u041E\u0413: 730.40\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0435\u0445\u043D\u043E\u043B\u043E\u0433\u0438\u0447\u0435\u0441\u043A\u0438\u0439 \u043E\u0442\u043F\u0443\u0441\u043A: \u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:07:31]execute_script... [15:07:31]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. \u000A\u0421\u0447\u0435\u0442 N : (1)672974\u000A19.06.2024 14:45\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 42\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 11.000 x 66.40\u000A\u0418\u0422\u041E\u0413: 730.40\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0435\u0445\u043D\u043E\u043B\u043E\u0433\u0438\u0447\u0435\u0441\u043A\u0438\u0439 \u043E\u0442\u043F\u0443\u0441\u043A: \u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:07:31]POST & json_proto [15:07:31]process_json_proto [15:07:31]json parsed OK: [15:07:31]protocol is kg_v1.0 [15:07:31]action value=print_text [15:07:31]process_action print_text [15:07:31]cmd_print_text [15:07:31]ExternCall_PrintAddStr [15:07:31]wPrintStart [15:07:31]Write to MH i2c: 01 00 00 DD B5 92 [15:07:31]Write i2c OK [15:07:31]MH_I2C_Read... [15:07:31]Read from MH i2c: 01 [15:07:31]MH_I2C_Read... [15:07:31]Read from MH i2c: 01 07 00 [15:07:31]MH_I2C_Read... [15:07:31]Read from MH i2c: 01 07 00 DD B5 00 00 00 00 00 FF 0F A7 [15:07:31]RasterBufferAndPrint [15:07:31]line *****ТОВАРНЫЙ ЧЕК***** [15:07:31]line АЗС 120 [15:07:31]line Партнер нефть [15:07:31]line 02508201610067 [15:07:31]line Кассир : Байбугуева Г. [15:07:31]line Счет N : (1)672974 [15:07:31]line 19.06.2024 14:45 [15:07:31]line ПРОДАЖА [15:07:31]line ТРК (МРК, ГНК): 42 [15:07:31]line Вид ГСМ : 2710124130 [15:07:31]line Аи-92-К-5 [15:07:31]line 11.000 x 66.40 [15:07:31]line ИТОГ: 730.40 [15:07:31]line Тип оплаты: Технологический отпуск: [15:07:31]line ______________________ [15:07:31]line (подпись) [15:07:31]written 0, free lines is 4095 [15:07:32]Write to MH i2c: 01 00 00 F0 B5 A5 [15:07:32]Write i2c OK [15:07:32]MH_I2C_Read... [15:07:32]Read from MH i2c: 01 [15:07:32]MH_I2C_Read... [15:07:32]Read from MH i2c: 01 07 00 [15:07:32]MH_I2C_Read... [15:07:32]Read from MH i2c: 01 07 00 F0 B5 00 00 00 00 00 2A 0E E4 [15:07:32]RasterBufferAndPrint [15:07:32]line [15:07:32]line [15:07:32]line [15:07:32]line [15:07:32]line [15:07:32]written 0, free lines is 3628 [15:07:32]MH_Cut [15:07:32]Write to MH i2c: D1 01 00 F7 B5 01 7E [15:07:32]Write i2c OK [15:07:32]MH_I2C_Read... [15:07:32]Read from MH i2c: D1 [15:07:32]MH_I2C_Read... [15:07:32]Read from MH i2c: D1 01 00 [15:07:32]MH_I2C_Read... [15:07:32]Read from MH i2c: D1 01 00 F7 B5 00 7D [15:07:32]Write to MH i2c: 01 00 00 F8 B5 AD [15:07:32]Write i2c OK [15:07:32]MH_I2C_Read... [15:07:32]*** Cut start [15:07:32]*** Partial cut [15:07:32]*** CUTSNS_PIN = 1 [15:07:32]*** CUTSNS_PIN = 0 [15:07:32]*** Brake cut motor [15:07:33]Read from MH i2c: 01 [15:07:33]MH_I2C_Read... [15:07:33]Read from MH i2c: 01 07 00 [15:07:33]MH_I2C_Read... [15:07:33]*** Stop cut motor [15:07:33]*** Cut end [15:07:33]Read from MH i2c: 01 07 00 F8 B5 00 00 00 00 00 FF 0F C2 [15:07:33]process_action print_text done [15:07:33]requested_data is exist [15:07:33]produce_requested_data [15:07:33]requested_item fm.sn is exist - process it [15:07:33]wFMCommunicate request_size=4 [15:07:33]MH_SAM_APDU [15:07:33]CAPDU: 80 11 00 00 [15:07:33]Write to MH i2c: E2 08 00 F9 B5 80 11 00 00 00 00 00 00 28 [15:07:33]Write i2c OK [15:07:33]MH_I2C_Read... [15:07:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:07:33]Read from MH i2c: E2 [15:07:33]MH_I2C_Read... [15:07:33]Read from MH i2c: E2 17 00 [15:07:33]MH_I2C_Read... [15:07:33]Read from MH i2c: E2 17 00 F9 B5 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 7B [15:07:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [15:07:33]wFMCommunicate OK [15:07:33]requested_item fd.num is exist - process it [15:07:33]SAM_PROTO_GetFieldsCounters [15:07:33]wFMCommunicate request_size=4 [15:07:33]MH_SAM_APDU [15:07:33]CAPDU: 80 13 00 00 [15:07:33]Write to MH i2c: E2 08 00 FA B5 80 13 00 00 00 00 00 00 2B [15:07:33]Write i2c OK [15:07:33]MH_I2C_Read... [15:07:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:07:33]Read from MH i2c: E2 [15:07:33]MH_I2C_Read... [15:07:33]Read from MH i2c: E2 62 00 [15:07:33]MH_I2C_Read... [15:07:33]Read from MH i2c: E2 62 00 FA B5 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 1A 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 88 00 00 00 5E 04 04 00 88 00 00 00 57 04 04 00 89 00 00 00 19 04 04 00 00 00 00 00 90 00 FC [15:07: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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 1A 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 88 00 00 00 5E 04 04 00 88 00 00 00 57 04 04 00 89 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:07:33]wFMCommunicate OK [15:07:33]SAM_PROTO_GetFieldsCounters done [15:07:33]requested_item shift.num is exist - process it [15:07:33]requested_item shift.opened is exist - process it [15:07:33]req_shift_opened [15:07:33]FM_GetShiftState [15:07:33]SAM_PROTO_GetShiftState [15:07:33]wFMCommunicate request_size=4 [15:07:33]MH_SAM_APDU [15:07:33]CAPDU: 80 13 01 00 [15:07:33]Write to MH i2c: E2 08 00 FB B5 80 13 01 00 00 00 00 00 2D [15:07:33]Write i2c OK [15:07:33]MH_I2C_Read... [15:07:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:07:33]Read from MH i2c: E2 [15:07:33]MH_I2C_Read... [15:07:33]Read from MH i2c: E2 0E 00 [15:07:33]MH_I2C_Read... [15:07:33]Read from MH i2c: E2 0E 00 FB B5 00 09 00 01 04 26 72 66 00 00 00 00 90 00 3B [15:07:33]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [15:07:33]wFMCommunicate OK [15:07:33]SAM_PROTO_GetShiftState done [15:07:33]FM_GetShiftState done [15:07:33]req_shift_opened done [15:07:33]requested_item shift.open_date is exist - process it [15:07:33]req_shift_open_date [15:07:33]req_shift_open_date done [15:07:33]produce_requested_data done [15:07:33]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103706,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [15:07:33]process_action_free print_text [15:07:33]json_value_free [15:07:33]json_value_free done [15:07:33]process_json_proto returns [15:07:33]Send response to host [15:07:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103706,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [15:07:33]free response buf [15:07:33]execute_script done [15:07:33]execute_script returns [15:07:33]free content buf [15:07:33]Sock 9.Close socket [15:07:33]Sock 9.Thread stoped [15:07:35]OFD Sender: No OFD packet to send [15:07:40]OFD Sender: No OFD packet to send [15:07:45]OFD Sender: No OFD packet to send [15:07:50]OFD Sender: No OFD packet to send [15:07:55]OFD Sender: No OFD packet to send [15:08:00]OFD Sender: No OFD packet to send [15:08:05]OFD Sender: No OFD packet to send [15:08:10]OFD Sender: No OFD packet to send [15:08:15]OFD Sender: No OFD packet to send [15:08:20]OFD Sender: No OFD packet to send [15:08:25]OFD Sender: No OFD packet to send [15:08:30]OFD Sender: No OFD packet to send [15:08:35]OFD Sender: No OFD packet to send [15:08:40]OFD Sender: No OFD packet to send [15:08:45]OFD Sender: No OFD packet to send [15:08:50]OFD Sender: No OFD packet to send [15:08:55]OFD Sender: No OFD packet to send [15:09:00]OFD Sender: No OFD packet to send [15:09:05]OFD Sender: No OFD packet to send [15:09:10]OFD Sender: No OFD packet to send [15:09:15]OFD Sender: No OFD packet to send [15:09:20]OFD Sender: No OFD packet to send [15:09:25]OFD Sender: No OFD packet to send [15:09:30]OFD Sender: No OFD packet to send [15:09:35]OFD Sender: No OFD packet to send [15:09:40]OFD Sender: No OFD packet to send [15:09:45]OFD Sender: No OFD packet to send [15:09:50]OFD Sender: No OFD packet to send [15:09:55]OFD Sender: No OFD packet to send [15:10:00]OFD Sender: No OFD packet to send [15:10: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:33]accept exits with 7 [15:10:33]New connection [15:10:33]New thread 3067227492 created [15:10:33]Thread 3067084132 joined [15:10:33]Waiting for new connection... [15:10:33] Sock 7.Parse request [15:10:33]Sock 7.Check first char [15:10:33]Sock 7.First char is OK [15:10:33]request: POST /json_proto HTTP/1.0 [15:10:33]Method: POST [15:10:33]URL: /json_proto [15:10:33]Method is POST - this is cgi request [15:10:33]url: /json_proto [15:10:33]query_string will be loaded in cgi processing [15:10:33]execute_cgi json_proto POST (null) [15:10:33]execute_cgi path=json_proto method=POST [15:10:33]POST find Content-Length [15:10:33]Host: 172.17.38.133:8080 [15:10:33]Content-Length: 1201 [15:10:33]Content-Type: application/json [15:10:33] [15:10:33]POST finish read [15:10:33]Found Content-Length = 1201 [15:10:33]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 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. \u000A\u0421\u0447\u0435\u0442 N : (1)672975\u000A19.06.2024 14:48\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 42\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 11.000 x 66.40\u000A\u0418\u0422\u041E\u0413: 730.40\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0435\u0445\u043D\u043E\u043B\u043E\u0433\u0438\u0447\u0435\u0441\u043A\u0438\u0439 \u043E\u0442\u043F\u0443\u0441\u043A: \u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:10:33]execute_script... [15:10:33]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 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. \u000A\u0421\u0447\u0435\u0442 N : (1)672975\u000A19.06.2024 14:48\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 42\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 11.000 x 66.40\u000A\u0418\u0422\u041E\u0413: 730.40\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0435\u0445\u043D\u043E\u043B\u043E\u0433\u0438\u0447\u0435\u0441\u043A\u0438\u0439 \u043E\u0442\u043F\u0443\u0441\u043A: \u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:10:33]POST & json_proto [15:10:33]process_json_proto [15:10:33]json parsed OK: [15:10:33]protocol is kg_v1.0 [15:10:33]action value=print_text [15:10:33]process_action print_text [15:10:33]cmd_print_text [15:10:33]ExternCall_PrintAddStr [15:10:33]wPrintStart [15:10:33]Write to MH i2c: 01 00 00 FC B5 B1 [15:10:33]Write i2c OK [15:10:33]MH_I2C_Read... [15:10:33]Read from MH i2c: 01 [15:10:33]MH_I2C_Read... [15:10:33]Read from MH i2c: 01 07 00 [15:10:33]MH_I2C_Read... [15:10:33]Read from MH i2c: 01 07 00 FC B5 00 00 00 00 00 FF 0F C6 [15:10:33]RasterBufferAndPrint [15:10:33]line *****ТОВАРНЫЙ ЧЕК***** [15:10:33]line АЗС 120 [15:10:33]line Партнер нефть [15:10:33]line 02508201610067 [15:10:33]line Кассир : Байбугуева Г. [15:10:33]line Счет N : (1)672975 [15:10:33]line 19.06.2024 14:48 [15:10:33]line ПРОДАЖА [15:10:33]line ТРК (МРК, ГНК): 42 [15:10:33]line Вид ГСМ : 2710124130 [15:10:33]line Аи-92-К-5 [15:10:33]line 11.000 x 66.40 [15:10:33]line ИТОГ: 730.40 [15:10:33]line Тип оплаты: Технологический отпуск: [15:10:33]line ______________________ [15:10:33]line (подпись) [15:10:33]written 0, free lines is 4095 [15:10:34]Write to MH i2c: 01 00 00 0F B6 C5 [15:10:34]Write i2c OK [15:10:34]MH_I2C_Read... [15:10:34]Read from MH i2c: 01 [15:10:34]MH_I2C_Read... [15:10:34]Read from MH i2c: 01 07 00 [15:10:34]MH_I2C_Read... [15:10:34]Read from MH i2c: 01 07 00 0F B6 00 00 00 00 00 2A 0E 04 [15:10:34]RasterBufferAndPrint [15:10:34]line [15:10:34]line [15:10:34]line [15:10:34]line [15:10:34]line [15:10:34]written 0, free lines is 3628 [15:10:34]MH_Cut [15:10:34]Write to MH i2c: D1 01 00 16 B6 01 9E [15:10:34]Write i2c OK [15:10:34]MH_I2C_Read... [15:10:34]Read from MH i2c: D1 [15:10:34]MH_I2C_Read... [15:10:34]Read from MH i2c: D1 01 00 [15:10:34]MH_I2C_Read... [15:10:34]Read from MH i2c: D1 01 00 16 B6 00 9D [15:10:34]Write to MH i2c: 01 00 00 17 B6 CD [15:10:34]Write i2c OK [15:10:34]MH_I2C_Read... [15:10:34]*** Cut start [15:10:34]*** Partial cut [15:10:34]*** CUTSNS_PIN = 1 [15:10:34]*** CUTSNS_PIN = 0 [15:10:34]*** Brake cut motor [15:10:35]Read from MH i2c: 01 [15:10:35]MH_I2C_Read... [15:10:35]Read from MH i2c: 01 07 00 [15:10:35]MH_I2C_Read... [15:10:35]*** Stop cut motor [15:10:35]*** Cut end [15:10:35]Read from MH i2c: 01 07 00 17 B6 00 00 00 00 00 FF 0F E2 [15:10:35]process_action print_text done [15:10:35]requested_data is exist [15:10:35]produce_requested_data [15:10:35]requested_item fm.sn is exist - process it [15:10:35]wFMCommunicate request_size=4 [15:10:35]MH_SAM_APDU [15:10:35]CAPDU: 80 11 00 00 [15:10:35]Write to MH i2c: E2 08 00 18 B6 80 11 00 00 00 00 00 00 48 [15:10:35]Write i2c OK [15:10:35]MH_I2C_Read... [15:10:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:10:35]Read from MH i2c: E2 [15:10:35]MH_I2C_Read... [15:10:35]Read from MH i2c: E2 17 00 [15:10:35]MH_I2C_Read... [15:10:35]Read from MH i2c: E2 17 00 18 B6 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 9B [15:10:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [15:10:35]wFMCommunicate OK [15:10:35]requested_item fd.num is exist - process it [15:10:35]SAM_PROTO_GetFieldsCounters [15:10:35]wFMCommunicate request_size=4 [15:10:35]MH_SAM_APDU [15:10:35]CAPDU: 80 13 00 00 [15:10:35]Write to MH i2c: E2 08 00 19 B6 80 13 00 00 00 00 00 00 4B [15:10:35]Write i2c OK [15:10:35]MH_I2C_Read... [15:10:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:10:35]Read from MH i2c: E2 [15:10:35]MH_I2C_Read... [15:10:35]Read from MH i2c: E2 62 00 [15:10:35]MH_I2C_Read... [15:10:35]Read from MH i2c: E2 62 00 19 B6 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 1A 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 88 00 00 00 5E 04 04 00 88 00 00 00 57 04 04 00 89 00 00 00 19 04 04 00 00 00 00 00 90 00 1C [15: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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 1A 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 88 00 00 00 5E 04 04 00 88 00 00 00 57 04 04 00 89 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:10:35]wFMCommunicate OK [15:10:35]SAM_PROTO_GetFieldsCounters done [15:10:35]requested_item shift.num is exist - process it [15:10:35]requested_item shift.opened is exist - process it [15:10:35]req_shift_opened [15:10:35]FM_GetShiftState [15:10:35]SAM_PROTO_GetShiftState [15:10:35]wFMCommunicate request_size=4 [15:10:35]MH_SAM_APDU [15:10:35]CAPDU: 80 13 01 00 [15:10:35]Write to MH i2c: E2 08 00 1A B6 80 13 01 00 00 00 00 00 4D [15:10:35]Write i2c OK [15:10:35]MH_I2C_Read... [15:10:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:10:35]Read from MH i2c: E2 [15:10:35]MH_I2C_Read... [15:10:35]Read from MH i2c: E2 0E 00 [15:10:35]MH_I2C_Read... [15:10:35]Read from MH i2c: E2 0E 00 1A B6 00 09 00 01 04 26 72 66 00 00 00 00 90 00 5B [15:10:35]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [15:10:35]wFMCommunicate OK [15:10:35]SAM_PROTO_GetShiftState done [15:10:35]FM_GetShiftState done [15:10:35]req_shift_opened done [15:10:35]requested_item shift.open_date is exist - process it [15:10:35]req_shift_open_date [15:10:35]req_shift_open_date done [15:10:35]produce_requested_data done [15:10:35]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103706,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [15:10:35]process_action_free print_text [15:10:35]json_value_free [15:10:35]json_value_free done [15:10:35]process_json_proto returns [15:10:35]Send response to host [15:10:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103706,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [15:10:35]free response buf [15:10:35]execute_script done [15:10:35]execute_script returns [15:10:35]free content buf [15:10:35]Sock 7.Close socket [15:10:35]Sock 7.Thread stoped [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:27]accept exits with 9 [15:16:27]New connection [15:16:27]New thread 3067084132 created [15:16:27]Thread 3067227492 joined [15:16:27]Waiting for new connection... [15:16:27] Sock 9.Parse request [15:16:27]Sock 9.Check first char [15:16:27]Sock 9.First char is OK [15:16:27]request: POST /json_proto HTTP/1.0 [15:16:27]Method: POST [15:16:27]URL: /json_proto [15:16:27]Method is POST - this is cgi request [15:16:27]url: /json_proto [15:16:27]query_string will be loaded in cgi processing [15:16:27]execute_cgi json_proto POST (null) [15:16:27]execute_cgi path=json_proto method=POST [15:16:27]POST find Content-Length [15:16:27]Host: 172.17.38.133:8080 [15:16:27]Content-Length: 1206 [15:16:27]Content-Type: application/json [15:16:27] [15:16:27]POST finish read [15:16:27]Found Content-Length = 1206 [15:16:27]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 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. \u000A\u0421\u0447\u0435\u0442 N : (1)672976\u000A19.06.2024 14:53\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 21\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-5\u000A 11.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 801.90\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0435\u0445\u043D\u043E\u043B\u043E\u0433\u0438\u0447\u0435\u0441\u043A\u0438\u0439 \u043E\u0442\u043F\u0443\u0441\u043A: \u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:16:27]execute_script... [15:16:27]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 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. \u000A\u0421\u0447\u0435\u0442 N : (1)672976\u000A19.06.2024 14:53\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 21\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-5\u000A 11.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 801.90\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0435\u0445\u043D\u043E\u043B\u043E\u0433\u0438\u0447\u0435\u0441\u043A\u0438\u0439 \u043E\u0442\u043F\u0443\u0441\u043A: \u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:16:27]POST & json_proto [15:16:27]process_json_proto [15:16:27]json parsed OK: [15:16:27]protocol is kg_v1.0 [15:16:27]action value=print_text [15:16:27]process_action print_text [15:16:27]cmd_print_text [15:16:27]ExternCall_PrintAddStr [15:16:27]wPrintStart [15:16:27]Write to MH i2c: 01 00 00 1B B6 D1 [15:16:27]Write i2c OK [15:16:27]MH_I2C_Read... [15:16:27]Read from MH i2c: 01 [15:16:27]MH_I2C_Read... [15:16:27]Read from MH i2c: 01 07 00 [15:16:27]MH_I2C_Read... [15:16:27]Read from MH i2c: 01 07 00 1B B6 00 00 00 00 00 FF 0F E6 [15:16:27]RasterBufferAndPrint [15:16:27]line *****ТОВАРНЫЙ ЧЕК***** [15:16:27]line АЗС 120 [15:16:27]line Партнер нефть [15:16:27]line 02508201610067 [15:16:27]line Кассир : Байбугуева Г. [15:16:27]line Счет N : (1)672976 [15:16:27]line 19.06.2024 14:53 [15:16:27]line ПРОДАЖА [15:16:27]line ТРК (МРК, ГНК): 21 [15:16:27]line Вид ГСМ : 2710194210 [15:16:27]line ДТ(л)-К-5 [15:16:27]line 11.000 x 72.90 [15:16:27]line ИТОГ: 801.90 [15:16:27]line Тип оплаты: Технологический отпуск: [15:16:27]line ______________________ [15:16:27]line (подпись) [15:16:27]written 0, free lines is 4095 [15:16:27]Write to MH i2c: 01 00 00 2E B6 E4 [15:16:27]Write i2c OK [15:16:27]MH_I2C_Read... [15:16:27]Read from MH i2c: 01 [15:16:27]MH_I2C_Read... [15:16:27]Read from MH i2c: 01 07 00 [15:16:27]MH_I2C_Read... [15:16:27]Read from MH i2c: 01 07 00 2E B6 00 00 00 00 00 2A 0E 23 [15:16:27]RasterBufferAndPrint [15:16:27]line [15:16:27]line [15:16:27]line [15:16:27]line [15:16:27]line [15:16:27]written 0, free lines is 3627 [15:16:27]MH_Cut [15:16:27]Write to MH i2c: D1 01 00 35 B6 01 BD [15:16:27]Write i2c OK [15:16:27]MH_I2C_Read... [15:16:27]Read from MH i2c: D1 [15:16:27]MH_I2C_Read... [15:16:27]Read from MH i2c: D1 01 00 [15:16:27]MH_I2C_Read... [15:16:27]Read from MH i2c: D1 01 00 35 B6 00 BC [15:16:27]Write to MH i2c: 01 00 00 36 B6 EC [15:16:27]Write i2c OK [15:16:27]MH_I2C_Read... [15:16:27]*** Cut start [15:16:27]*** Partial cut [15:16:27]*** CUTSNS_PIN = 1 [15:16:27]*** CUTSNS_PIN = 0 [15:16:28]*** Brake cut motor [15:16:28]Read from MH i2c: 01 [15:16:28]MH_I2C_Read... [15:16:28]Read from MH i2c: 01 07 00 [15:16:28]MH_I2C_Read... [15:16:28]*** Stop cut motor [15:16:28]*** Cut end [15:16:28]Read from MH i2c: 01 07 00 36 B6 00 00 00 00 00 FF 0F 01 [15:16:28]process_action print_text done [15:16:28]requested_data is exist [15:16:28]produce_requested_data [15:16:28]requested_item fm.sn is exist - process it [15:16:28]wFMCommunicate request_size=4 [15:16:28]MH_SAM_APDU [15:16:28]CAPDU: 80 11 00 00 [15:16:28]Write to MH i2c: E2 08 00 37 B6 80 11 00 00 00 00 00 00 67 [15:16:28]Write i2c OK [15:16:28]MH_I2C_Read... [15:16:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:16:28]Read from MH i2c: E2 [15:16:28]MH_I2C_Read... [15:16:28]Read from MH i2c: E2 17 00 [15:16:28]MH_I2C_Read... [15:16:28]Read from MH i2c: E2 17 00 37 B6 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 BA [15:16:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [15:16:28]wFMCommunicate OK [15:16:28]requested_item fd.num is exist - process it [15:16:28]SAM_PROTO_GetFieldsCounters [15:16:28]wFMCommunicate request_size=4 [15:16:28]MH_SAM_APDU [15:16:28]CAPDU: 80 13 00 00 [15:16:28]Write to MH i2c: E2 08 00 38 B6 80 13 00 00 00 00 00 00 6A [15:16:28]Write i2c OK [15:16:28]MH_I2C_Read... [15:16:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:16:28]Read from MH i2c: E2 [15:16:28]MH_I2C_Read... [15:16:28]Read from MH i2c: E2 62 00 [15:16:28]MH_I2C_Read... [15:16:28]Read from MH i2c: E2 62 00 38 B6 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 1A 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 88 00 00 00 5E 04 04 00 88 00 00 00 57 04 04 00 89 00 00 00 19 04 04 00 00 00 00 00 90 00 3B [15:16: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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 1A 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 88 00 00 00 5E 04 04 00 88 00 00 00 57 04 04 00 89 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:16:28]wFMCommunicate OK [15:16:28]SAM_PROTO_GetFieldsCounters done [15:16:28]requested_item shift.num is exist - process it [15:16:28]requested_item shift.opened is exist - process it [15:16:28]req_shift_opened [15:16:28]FM_GetShiftState [15:16:28]SAM_PROTO_GetShiftState [15:16:28]wFMCommunicate request_size=4 [15:16:28]MH_SAM_APDU [15:16:28]CAPDU: 80 13 01 00 [15:16:28]Write to MH i2c: E2 08 00 39 B6 80 13 01 00 00 00 00 00 6C [15:16:28]Write i2c OK [15:16:28]MH_I2C_Read... [15:16:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:16:28]Read from MH i2c: E2 [15:16:28]MH_I2C_Read... [15:16:28]Read from MH i2c: E2 0E 00 [15:16:28]MH_I2C_Read... [15:16:28]Read from MH i2c: E2 0E 00 39 B6 00 09 00 01 04 26 72 66 00 00 00 00 90 00 7A [15:16:28]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [15:16:28]wFMCommunicate OK [15:16:28]SAM_PROTO_GetShiftState done [15:16:28]FM_GetShiftState done [15:16:28]req_shift_opened done [15:16:28]requested_item shift.open_date is exist - process it [15:16:28]req_shift_open_date [15:16:28]req_shift_open_date done [15:16:28]produce_requested_data done [15:16:28]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103706,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [15:16:28]process_action_free print_text [15:16:28]json_value_free [15:16:28]json_value_free done [15:16:28]process_json_proto returns [15:16:28]Send response to host [15:16:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103706,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [15:16:28]free response buf [15:16:28]execute_script done [15:16:28]execute_script returns [15:16:28]free content buf [15:16:28]Sock 9.Close socket [15:16:28]Sock 9.Thread stoped [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]accept exits with 7 [15:18:46]New connection [15:18:46]New thread 3067227492 created [15:18:46]Thread 3067084132 joined [15:18:46]Waiting for new connection... [15:18:46] Sock 7.Parse request [15:18:46]Sock 7.Check first char [15:18:46]Sock 7.First char is OK [15:18:46]request: POST /json_proto HTTP/1.0 [15:18:46]Method: POST [15:18:46]URL: /json_proto [15:18:46]Method is POST - this is cgi request [15:18:46]url: /json_proto [15:18:46]query_string will be loaded in cgi processing [15:18:46]execute_cgi json_proto POST (null) [15:18:46]execute_cgi path=json_proto method=POST [15:18:46]POST find Content-Length [15:18:46]Host: 172.17.38.133:8080 [15:18:46]Content-Length: 1206 [15:18:46]Content-Type: application/json [15:18:46] [15:18:46]POST finish read [15:18:46]Found Content-Length = 1206 [15:18:46]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 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. \u000A\u0421\u0447\u0435\u0442 N : (1)672977\u000A19.06.2024 14:56\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-5\u000A 10.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 729.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0435\u0445\u043D\u043E\u043B\u043E\u0433\u0438\u0447\u0435\u0441\u043A\u0438\u0439 \u043E\u0442\u043F\u0443\u0441\u043A: \u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:18:46]execute_script... [15:18:46]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 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. \u000A\u0421\u0447\u0435\u0442 N : (1)672977\u000A19.06.2024 14:56\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-5\u000A 10.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 729.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0435\u0445\u043D\u043E\u043B\u043E\u0433\u0438\u0447\u0435\u0441\u043A\u0438\u0439 \u043E\u0442\u043F\u0443\u0441\u043A: \u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:18:46]POST & json_proto [15:18:46]process_json_proto [15:18:46]json parsed OK: [15:18:46]protocol is kg_v1.0 [15:18:46]action value=print_text [15:18:46]process_action print_text [15:18:46]cmd_print_text [15:18:46]ExternCall_PrintAddStr [15:18:46]wPrintStart [15:18:46]Write to MH i2c: 01 00 00 3A B6 F0 [15:18:46]Write i2c OK [15:18:46]MH_I2C_Read... [15:18:46]Read from MH i2c: 01 [15:18:46]MH_I2C_Read... [15:18:46]Read from MH i2c: 01 07 00 [15:18:46]MH_I2C_Read... [15:18:46]Read from MH i2c: 01 07 00 3A B6 00 00 00 00 00 FF 0F 05 [15:18:46]RasterBufferAndPrint [15:18:46]line *****ТОВАРНЫЙ ЧЕК***** [15:18:46]line АЗС 120 [15:18:46]line Партнер нефть [15:18:46]line 02508201610067 [15:18:46]line Кассир : Байбугуева Г. [15:18:46]line Счет N : (1)672977 [15:18:46]line 19.06.2024 14:56 [15:18:46]line ПРОДАЖА [15:18:46]line ТРК (МРК, ГНК): 11 [15:18:46]line Вид ГСМ : 2710194210 [15:18:46]line ДТ(л)-К-5 [15:18:46]line 10.000 x 72.90 [15:18:46]line ИТОГ: 729.00 [15:18:46]line Тип оплаты: Технологический отпуск: [15:18:46]line ______________________ [15:18:46]line (подпись) [15:18:46]written 0, free lines is 4095 [15:18:46]OFD Sender: No OFD packet to send [15:18:46]Write to MH i2c: 01 00 00 4D B6 03 [15:18:46]Write i2c OK [15:18:46]MH_I2C_Read... [15:18:46]Read from MH i2c: 01 [15:18:46]MH_I2C_Read... [15:18:46]Read from MH i2c: 01 07 00 [15:18:46]MH_I2C_Read... [15:18:46]Read from MH i2c: 01 07 00 4D B6 00 00 00 00 00 2A 0E 42 [15:18:46]RasterBufferAndPrint [15:18:46]line [15:18:46]line [15:18:46]line [15:18:46]line [15:18:46]line [15:18:46]written 0, free lines is 3627 [15:18:46]MH_Cut [15:18:46]Write to MH i2c: D1 01 00 54 B6 01 DC [15:18:46]Write i2c OK [15:18:46]MH_I2C_Read... [15:18:46]Read from MH i2c: D1 [15:18:46]MH_I2C_Read... [15:18:46]Read from MH i2c: D1 01 00 [15:18:46]MH_I2C_Read... [15:18:46]Read from MH i2c: D1 01 00 54 B6 00 DB [15:18:46]Write to MH i2c: 01 00 00 55 B6 0B [15:18:46]Write i2c OK [15:18:46]MH_I2C_Read... [15:18:47]*** Cut start [15:18:47]*** Partial cut [15:18:47]*** CUTSNS_PIN = 1 [15:18:47]*** CUTSNS_PIN = 0 [15:18:47]*** Brake cut motor [15:18:47]Read from MH i2c: 01 [15:18:47]MH_I2C_Read... [15:18:47]Read from MH i2c: 01 07 00 [15:18:47]MH_I2C_Read... [15:18:47]*** Stop cut motor [15:18:47]*** Cut end [15:18:47]Read from MH i2c: 01 07 00 55 B6 00 00 00 00 00 FF 0F 20 [15:18:47]process_action print_text done [15:18:47]requested_data is exist [15:18:47]produce_requested_data [15:18:47]requested_item fm.sn is exist - process it [15:18:47]wFMCommunicate request_size=4 [15:18:47]MH_SAM_APDU [15:18:47]CAPDU: 80 11 00 00 [15:18:47]Write to MH i2c: E2 08 00 56 B6 80 11 00 00 00 00 00 00 86 [15:18:47]Write i2c OK [15:18:47]MH_I2C_Read... [15:18:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:18:47]Read from MH i2c: E2 [15:18:47]MH_I2C_Read... [15:18:47]Read from MH i2c: E2 17 00 [15:18:47]MH_I2C_Read... [15:18:47]Read from MH i2c: E2 17 00 56 B6 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 D9 [15:18:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [15:18:47]wFMCommunicate OK [15:18:47]requested_item fd.num is exist - process it [15:18:47]SAM_PROTO_GetFieldsCounters [15:18:47]wFMCommunicate request_size=4 [15:18:47]MH_SAM_APDU [15:18:47]CAPDU: 80 13 00 00 [15:18:47]Write to MH i2c: E2 08 00 57 B6 80 13 00 00 00 00 00 00 89 [15:18:47]Write i2c OK [15:18:47]MH_I2C_Read... [15:18:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:18:47]Read from MH i2c: E2 [15:18:47]MH_I2C_Read... [15:18:47]Read from MH i2c: E2 62 00 [15:18:47]MH_I2C_Read... [15:18:47]Read from MH i2c: E2 62 00 57 B6 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 1A 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 88 00 00 00 5E 04 04 00 88 00 00 00 57 04 04 00 89 00 00 00 19 04 04 00 00 00 00 00 90 00 5A [15:18: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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 1A 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 88 00 00 00 5E 04 04 00 88 00 00 00 57 04 04 00 89 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:18:47]wFMCommunicate OK [15:18:47]SAM_PROTO_GetFieldsCounters done [15:18:47]requested_item shift.num is exist - process it [15:18:47]requested_item shift.opened is exist - process it [15:18:47]req_shift_opened [15:18:47]FM_GetShiftState [15:18:47]SAM_PROTO_GetShiftState [15:18:47]wFMCommunicate request_size=4 [15:18:47]MH_SAM_APDU [15:18:47]CAPDU: 80 13 01 00 [15:18:47]Write to MH i2c: E2 08 00 58 B6 80 13 01 00 00 00 00 00 8B [15:18:47]Write i2c OK [15:18:47]MH_I2C_Read... [15:18:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:18:47]Read from MH i2c: E2 [15:18:47]MH_I2C_Read... [15:18:47]Read from MH i2c: E2 0E 00 [15:18:47]MH_I2C_Read... [15:18:47]Read from MH i2c: E2 0E 00 58 B6 00 09 00 01 04 26 72 66 00 00 00 00 90 00 99 [15:18:47]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [15:18:47]wFMCommunicate OK [15:18:47]SAM_PROTO_GetShiftState done [15:18:47]FM_GetShiftState done [15:18:47]req_shift_opened done [15:18:47]requested_item shift.open_date is exist - process it [15:18:47]req_shift_open_date [15:18:47]req_shift_open_date done [15:18:47]produce_requested_data done [15:18:47]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103706,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [15:18:47]process_action_free print_text [15:18:47]json_value_free [15:18:47]json_value_free done [15:18:47]process_json_proto returns [15:18:47]Send response to host [15:18:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103706,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [15:18:47]free response buf [15:18:47]execute_script done [15:18:47]execute_script returns [15:18:47]free content buf [15:18:47]Sock 7.Close socket [15:18:47]Sock 7.Thread stoped [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:29]accept exits with 9 [15:19:29]New connection [15:19:29]New thread 3067084132 created [15:19:29]Thread 3067227492 joined [15:19:29]Waiting for new connection... [15:19:29] Sock 9.Parse request [15:19:29]Sock 9.Check first char [15:19:29]Sock 9.First char is OK [15:19:29]request: POST /json_proto HTTP/1.0 [15:19:29]Method: POST [15:19:29]URL: /json_proto [15:19:29]Method is POST - this is cgi request [15:19:29]url: /json_proto [15:19:29]query_string will be loaded in cgi processing [15:19:29]execute_cgi json_proto POST (null) [15:19:29]execute_cgi path=json_proto method=POST [15:19:29]POST find Content-Length [15:19:29]Host: 172.17.38.133:8080 [15:19:29]Content-Length: 1204 [15:19:29]Content-Type: application/json [15:19:29] [15:19:29]POST finish read [15:19:29]Found Content-Length = 1204 [15:19:29]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 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. \u000A\u0421\u0447\u0435\u0442 N : (1)672979\u000A19.06.2024 14:56\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-5\u000A 1.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 72.90\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0435\u0445\u043D\u043E\u043B\u043E\u0433\u0438\u0447\u0435\u0441\u043A\u0438\u0439 \u043E\u0442\u043F\u0443\u0441\u043A: \u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:19:29]execute_script... [15:19:29]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 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. \u000A\u0421\u0447\u0435\u0442 N : (1)672979\u000A19.06.2024 14:56\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-5\u000A 1.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 72.90\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0435\u0445\u043D\u043E\u043B\u043E\u0433\u0438\u0447\u0435\u0441\u043A\u0438\u0439 \u043E\u0442\u043F\u0443\u0441\u043A: \u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:19:29]POST & json_proto [15:19:29]process_json_proto [15:19:29]json parsed OK: [15:19:29]protocol is kg_v1.0 [15:19:29]action value=print_text [15:19:29]process_action print_text [15:19:29]cmd_print_text [15:19:29]ExternCall_PrintAddStr [15:19:29]wPrintStart [15:19:29]Write to MH i2c: 01 00 00 59 B6 0F [15:19:29]Write i2c OK [15:19:29]MH_I2C_Read... [15:19:29]Read from MH i2c: 01 [15:19:29]MH_I2C_Read... [15:19:29]Read from MH i2c: 01 07 00 [15:19:29]MH_I2C_Read... [15:19:29]Read from MH i2c: 01 07 00 59 B6 00 00 00 00 00 FF 0F 24 [15:19:29]RasterBufferAndPrint [15:19:29]line *****ТОВАРНЫЙ ЧЕК***** [15:19:29]line АЗС 120 [15:19:29]line Партнер нефть [15:19:29]line 02508201610067 [15:19:29]line Кассир : Байбугуева Г. [15:19:29]line Счет N : (1)672979 [15:19:29]line 19.06.2024 14:56 [15:19:29]line ПРОДАЖА [15:19:29]line ТРК (МРК, ГНК): 11 [15:19:29]line Вид ГСМ : 2710194210 [15:19:29]line ДТ(л)-К-5 [15:19:29]line 1.000 x 72.90 [15:19:29]line ИТОГ: 72.90 [15:19:29]line Тип оплаты: Технологический отпуск: [15:19:29]line ______________________ [15:19:29]line (подпись) [15:19:29]written 0, free lines is 4095 [15:19:29]Write to MH i2c: 01 00 00 6C B6 22 [15:19:29]Write i2c OK [15:19:29]MH_I2C_Read... [15:19:29]Read from MH i2c: 01 [15:19:29]MH_I2C_Read... [15:19:29]Read from MH i2c: 01 07 00 [15:19:29]MH_I2C_Read... [15:19:29]Read from MH i2c: 01 07 00 6C B6 00 00 00 00 00 29 0E 60 [15:19:29]RasterBufferAndPrint [15:19:29]line [15:19:29]line [15:19:29]line [15:19:29]line [15:19:29]line [15:19:29]written 0, free lines is 3626 [15:19:29]MH_Cut [15:19:29]Write to MH i2c: D1 01 00 73 B6 01 FB [15:19:29]Write i2c OK [15:19:29]MH_I2C_Read... [15:19:29]Read from MH i2c: D1 [15:19:29]MH_I2C_Read... [15:19:29]Read from MH i2c: D1 01 00 [15:19:29]MH_I2C_Read... [15:19:29]Read from MH i2c: D1 01 00 73 B6 00 FA [15:19:29]Write to MH i2c: 01 00 00 74 B6 2A [15:19:29]Write i2c OK [15:19:29]MH_I2C_Read... [15:19:29]*** Cut start [15:19:29]*** Partial cut [15:19:29]*** CUTSNS_PIN = 1 [15:19:29]*** CUTSNS_PIN = 0 [15:19:30]*** Brake cut motor [15:19:30]Read from MH i2c: 01 [15:19:30]MH_I2C_Read... [15:19:30]Read from MH i2c: 01 07 00 [15:19:30]MH_I2C_Read... [15:19:30]*** Stop cut motor [15:19:30]*** Cut end [15:19:30]Read from MH i2c: 01 07 00 74 B6 00 00 00 00 00 FF 0F 3F [15:19:30]process_action print_text done [15:19:30]requested_data is exist [15:19:30]produce_requested_data [15:19:30]requested_item fm.sn is exist - process it [15:19:30]wFMCommunicate request_size=4 [15:19:30]MH_SAM_APDU [15:19:30]CAPDU: 80 11 00 00 [15:19:30]Write to MH i2c: E2 08 00 75 B6 80 11 00 00 00 00 00 00 A5 [15:19:30]Write i2c OK [15:19:30]MH_I2C_Read... [15:19:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:19:30]Read from MH i2c: E2 [15:19:30]MH_I2C_Read... [15:19:30]Read from MH i2c: E2 17 00 [15:19:30]MH_I2C_Read... [15:19:30]Read from MH i2c: E2 17 00 75 B6 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 F8 [15:19:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [15:19:30]wFMCommunicate OK [15:19:30]requested_item fd.num is exist - process it [15:19:30]SAM_PROTO_GetFieldsCounters [15:19:30]wFMCommunicate request_size=4 [15:19:30]MH_SAM_APDU [15:19:30]CAPDU: 80 13 00 00 [15:19:30]Write to MH i2c: E2 08 00 76 B6 80 13 00 00 00 00 00 00 A8 [15:19:30]Write i2c OK [15:19:30]MH_I2C_Read... [15:19:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:19:30]Read from MH i2c: E2 [15:19:30]MH_I2C_Read... [15:19:30]Read from MH i2c: E2 62 00 [15:19:30]MH_I2C_Read... [15:19:30]Read from MH i2c: E2 62 00 76 B6 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 1A 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 88 00 00 00 5E 04 04 00 88 00 00 00 57 04 04 00 89 00 00 00 19 04 04 00 00 00 00 00 90 00 79 [15:19:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 1A 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 88 00 00 00 5E 04 04 00 88 00 00 00 57 04 04 00 89 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:19:30]wFMCommunicate OK [15:19:30]SAM_PROTO_GetFieldsCounters done [15:19:30]requested_item shift.num is exist - process it [15:19:30]requested_item shift.opened is exist - process it [15:19:30]req_shift_opened [15:19:30]FM_GetShiftState [15:19:30]SAM_PROTO_GetShiftState [15:19:30]wFMCommunicate request_size=4 [15:19:30]MH_SAM_APDU [15:19:30]CAPDU: 80 13 01 00 [15:19:30]Write to MH i2c: E2 08 00 77 B6 80 13 01 00 00 00 00 00 AA [15:19:30]Write i2c OK [15:19:30]MH_I2C_Read... [15:19:30]Read from MH i2c: E2 [15:19:30]MH_I2C_Read... [15:19:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:19:30]Read from MH i2c: E2 0E 00 [15:19:30]MH_I2C_Read... [15:19:30]Read from MH i2c: E2 0E 00 77 B6 00 09 00 01 04 26 72 66 00 00 00 00 90 00 B8 [15:19:30]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [15:19:30]wFMCommunicate OK [15:19:30]SAM_PROTO_GetShiftState done [15:19:30]FM_GetShiftState done [15:19:30]req_shift_opened done [15:19:30]requested_item shift.open_date is exist - process it [15:19:30]req_shift_open_date [15:19:30]req_shift_open_date done [15:19:30]produce_requested_data done [15:19:30]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103706,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [15:19:30]process_action_free print_text [15:19:30]json_value_free [15:19:30]json_value_free done [15:19:30]process_json_proto returns [15:19:30]Send response to host [15:19:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103706,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [15:19:30]free response buf [15:19:30]execute_script done [15:19:30]execute_script returns [15:19:30]free content buf [15:19:30]Sock 9.Close socket [15:19:30]Sock 9.Thread stoped [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]accept exits with 7 [15:20:51]New connection [15:20:51]New thread 3067227492 created [15:20:51]Thread 3067084132 joined [15:20:51]Waiting for new connection... [15:20:51] Sock 7.Parse request [15:20:51]Sock 7.Check first char [15:20:51]Sock 7.First char is OK [15:20:51]request: POST /json_proto HTTP/1.0 [15:20:51]Method: POST [15:20:51]URL: /json_proto [15:20:51]Method is POST - this is cgi request [15:20:51]url: /json_proto [15:20:51]query_string will be loaded in cgi processing [15:20:51]execute_cgi json_proto POST (null) [15:20:51]execute_cgi path=json_proto method=POST [15:20:51]POST find Content-Length [15:20:51]Host: 172.17.38.133:8080 [15:20:51]Content-Length: 677 [15:20:51]Content-Type: application/json [15:20:51] [15:20:51]POST finish read [15:20:51]Found Content-Length = 677 [15:20:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672980", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 4.520, "sum" : 300.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:20:51]execute_script... [15:20: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)672980", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 4.520, "sum" : 300.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:20:51]POST & json_proto [15:20:51]process_json_proto [15:20:51]json parsed OK: [15:20:51]protocol is kg_v1.0 [15:20:51]action value=close_receipt [15:20:51]process_action close_receipt [15:20:51]cmd_close_receipt [15:20:51]MH_GetDate [15:20:51]Write to MH i2c: F0 00 00 78 B6 1D [15:20:51]Write i2c OK [15:20:51]MH_I2C_Read... [15:20:51]Read from MH i2c: F0 [15:20:51]MH_I2C_Read... [15:20:51]Read from MH i2c: F0 09 00 [15:20:51]MH_I2C_Read... [15:20:51]Read from MH i2c: F0 09 00 78 B6 00 60 F7 72 66 BD 8F 7C 64 81 [15:20:51]GetLastDocTimeStamp 1718809460 [15:20:51]current date 1718810464 [15:20:51]FM_GetShiftState [15:20:51]SAM_PROTO_GetShiftState [15:20:51]wFMCommunicate request_size=4 [15:20:51]MH_SAM_APDU [15:20:51]CAPDU: 80 13 01 00 [15:20:51]Write to MH i2c: E2 08 00 79 B6 80 13 01 00 00 00 00 00 AC [15:20:51]Write i2c OK [15:20:51]MH_I2C_Read... [15:20:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:20:51]Read from MH i2c: E2 [15:20:51]MH_I2C_Read... [15:20:51]Read from MH i2c: E2 0E 00 [15:20:51]MH_I2C_Read... [15:20:51]Read from MH i2c: E2 0E 00 79 B6 00 09 00 01 04 26 72 66 00 00 00 00 90 00 BA [15:20:51]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [15:20:51]wFMCommunicate OK [15:20:51]SAM_PROTO_GetShiftState done [15:20:51]FM_GetShiftState done [15:20:51]opened in 1718756868 [15:20:51]opened+sec_in_day 1718843268 [15:20:51]quantity*price = 30012 [15:20:51]sum+1 = 30014 [15:20:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.13 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.87 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 137 19.06.2024 15:21 Смена: 353 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103707 ФПД: 208831537912647 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T152104&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103707&fm=208831537912647&tin=02508201610067®Number=0000000000092785&sum=30000 [15:20:52]StoreToDocumentArchive [15:20:52]shift 353 fd 103707 [15:20:52]save to /storage/0353/doc_00103707 [15:20:52]save last doc name /storage/0353/doc_00103707 to /storage/kkm_last_doc_name [15:20:52]save OK [15:20:52]Clear old archive folders... [15:20:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:20:52]tlvbuf is 0148C000 [15:20:52]SAM_PROTO_ClearQueue [15:20:52]wFMCommunicate request_size=4 [15:20:52]MH_SAM_APDU [15:20:52]CAPDU: 80 09 00 00 [15:20:52]Write to MH i2c: E2 08 00 86 B6 80 09 00 00 00 00 00 00 AE [15:20:52]Write i2c OK [15:20:52]MH_I2C_Read... [15:20:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:20:52]Read from MH i2c: E2 [15:20:52]MH_I2C_Read... [15:20:52]Read from MH i2c: E2 03 00 [15:20:52]MH_I2C_Read... [15:20:52]Read from MH i2c: E2 03 00 86 B6 00 90 00 B0 [15:20:52]RAPDU: 90 00 [15:20:52]wFMCommunicate OK [15:20:52]SAM_PROTO_ClearQueue done [15:20:52]KKMCreateOFDPacket [15:20:52]OFDProtocolAddRootSTLVToBuf [15:20:52]FM_MakeSignedData [15:20:52]FM_MakeSignedData [15:20:52]SAM_PROTO_SignData [15:20:52]wFMCommunicate request_size=4 [15:20:52]MH_SAM_APDU [15:20:52]CAPDU: 80 0D 01 02 [15:20:52]Write to MH i2c: E2 08 00 87 B6 80 0D 01 02 00 00 00 00 B6 [15:20:52]Write i2c OK [15:20:52]MH_I2C_Read... [15:20:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:20:52]Read from MH i2c: E2 [15:20:52]MH_I2C_Read... [15:20:52]Read from MH i2c: E2 03 00 [15:20:52]MH_I2C_Read... [15:20:52]Read from MH i2c: E2 03 00 87 B6 00 90 00 B1 [15:20:52]RAPDU: 90 00 [15:20:52]wFMCommunicate OK [15:20:52]wFMCommunicate request_size=255 [15:20:52]MH_SAM_APDU [15:20:52]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 00 00 00 F4 03 04 00 60 F7 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 1B 95 01 00 35 04 06 00 BD [15:20:52]Write to MH i2c: E2 02 01 88 B6 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 00 00 00 F4 03 04 00 60 F7 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 1B 95 01 00 35 04 06 00 BD 00 00 96 [15:20:52]Write i2c OK [15:20:52]MH_I2C_Read... [15:20:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:20:53]Read from MH i2c: E2 [15:20:53]MH_I2C_Read... [15:20:53]Read from MH i2c: E2 03 00 [15:20:53]MH_I2C_Read... [15:20:53]Read from MH i2c: E2 03 00 88 B6 00 90 00 B2 [15:20:53]RAPDU: 90 00 [15:20:53]wFMCommunicate OK [15:20:53]wFMCommunicate request_size=10 [15:20:53]MH_SAM_APDU [15:20:53]CAPDU: 80 0D 02 02 05 EE 61 A2 9B 47 [15:20:53]Write to MH i2c: E2 0D 00 89 B6 80 0D 02 02 05 00 EE 61 A2 9B 47 00 00 96 [15:20:53]Write i2c OK [15:20:53]MH_I2C_Read... [15:20:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:20:53]Read from MH i2c: E2 [15:20:53]MH_I2C_Read... [15:20:53]Read from MH i2c: E2 03 00 [15:20:53]MH_I2C_Read... [15:20:53]Read from MH i2c: E2 03 00 89 B6 00 90 00 B3 [15:20:53]RAPDU: 90 00 [15:20:53]wFMCommunicate OK [15:20:53]wFMCommunicate request_size=4 [15:20:53]MH_SAM_APDU [15:20:53]CAPDU: 80 0D 03 02 [15:20:53]Write to MH i2c: E2 08 00 8A B6 80 0D 03 02 00 00 00 00 BB [15:20:53]Write i2c OK [15:20:53]MH_I2C_Read... [15:20:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:20:53]Read from MH i2c: E2 [15:20:53]MH_I2C_Read... [15:20:53]Read from MH i2c: E2 0B 00 [15:20:53]MH_I2C_Read... [15:20:53]Read from MH i2c: E2 0B 00 8A B6 00 98 27 2C CD 2A 50 00 F7 90 00 E5 [15:20:53]RAPDU: 98 27 2C CD 2A 50 00 F7 90 00 [15:20:53]wFMCommunicate OK [15:20:53]SAM_PROTO_SignData done [15:20:53]FM_MakeSignedData done [15:20:53]CreateOFDProtocolMessage [15:20:53]wFMCommunicate request_size=4 [15:20:53]MH_SAM_APDU [15:20:53]CAPDU: 80 11 00 00 [15:20:53]Write to MH i2c: E2 08 00 8B B6 80 11 00 00 00 00 00 00 BB [15:20:53]Write i2c OK [15:20:53]MH_I2C_Read... [15:20:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:20:53]Read from MH i2c: E2 [15:20:53]MH_I2C_Read... [15:20:53]Read from MH i2c: E2 17 00 [15:20:53]MH_I2C_Read... [15:20:53]Read from MH i2c: E2 17 00 8B B6 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 0E [15:20:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [15:20:53]wFMCommunicate OK [15:20:53]CreateOFDProtocolMessage done [15:20:53]OFDSenderStorePacket 103707 [15:20:53]StoreOFDPacket docnum=103707 [15:20:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 AF BE 07 01 A9 0F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 00 00 00 F4 03 04 00 60 F7 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 1B 95 01 00 35 04 06 00 BD EE 61 A2 9B 47 98 27 2C CD 2A 50 00 F7 [15:20:53]CheckFolder [15:20:53]dirname=/storage/ofd_packets [15:20:53]CheckFolder done [15:20:53]ProducePacketName [15:20:53]name=ofd_packets/00103707 [15:20:53]NVStorageSaveData ofd_packets/00103707 [15:20:53]File name is /storage/ofd_packets/00103707 [15:20:53]Write 301 bytes [15:20:53]NVStorageSaveData done [15:20:53]OFDSenderStorePacket done [15:20:53]KKMCreateOFDPacket done [15:20:53]NVStorageSaveData kkm_last_timestamp [15:20:53]File name is /storage/kkm_last_timestamp [15:20:53]Write 4 bytes [15:20:53]NVStorageSaveData done [15:20:53]ExternCall_PrintAddStr [15:20:53]wPrintStart [15:20:53]Write to MH i2c: 01 00 00 8C B6 42 [15:20:53]Write i2c OK [15:20:53]MH_I2C_Read... [15:20:53]Read from MH i2c: 01 [15:20:53]MH_I2C_Read... [15:20:53]Read from MH i2c: 01 07 00 [15:20:53]MH_I2C_Read... [15:20:53]Read from MH i2c: 01 07 00 8C B6 00 00 00 00 00 FF 0F 57 [15:20:53]RasterBufferAndPrint [15:20:53]line Счет N : (1)672980 [15:20:53]line ИНН: 02508201610067 [15:20:53]line Контрольно-Кассовый Чек [15:20:53]line ПРОДАЖА [15:20:53]line ТРК (МРК, ГНК) : 42 [15:20:53]line Товар: 2710124130 [15:20:53]line Аи-92-К-5 [15:20:53]line 4.520 * 66.40 [15:20:53]line = 300.13 [15:20:53]line НДС 12% НСП 1% [15:20:53]line > о реализуемом товаре [15:20:53]line ОКРУГЛЕНИЕ: -0.13 [15:20:53]line ИТОГО: 300.00 [15:20:53]line Внесено: 300.00 [15:20:53]line СДАЧА: 0.00 [15:20:53]line НСП 1% : 2.66 [15:20:53]line НДС 12% : 31.87 [15:20:53]line Наличными: 300.00 [15:20:53]line Безнал.: 0.00 [15:20:53]line Место: АЗС № 120 "Партнер Нефть" [15:20:53]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [15:20:53]line СНО: Общий режим [15:20:53]line Чек 137 19.06.2024 15:21 [15:20:53]line Смена: 353 ФФД: 1.0 [15:20:53]line ЗНМ: 0300000164 [15:20:53]line РНМ: 0000000000092785 [15:20:53]line Версия ККМ: 001 [15:20:53]line ФМ: 0000000000875093 [15:20:53]line ФД: 103707 [15:20:53]line ФПД: 208831537912647 [15:20:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T152104&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103707&fm=208831537912647&tin=02508201610067®Number=0000000000092785&sum=30000 [15:20:53]OFD Sender: Processing packet 103707 [packets to send 17, broken 16] [15:20:53]ProducePacketName [15:20:53]name=ofd_packets/00103707 [15:20:53]OFD Sender: To server: pG, [15:20:53]CommunicateWithHost lk.salyk.kg:30040 [15:20:53]ConnectInit lk.salyk.kg [15:20:53]written 0, free lines is 4095 [15:20:53]Connected sock=10 [15:20: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 39 33 0F 01 00 00 AF BE 07 01 A9 0F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 00 00 00 F4 03 04 00 60 F7 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 1B 95 01 00 35 04 06 00 BD EE 61 A2 9B 47 98 27 2C CD 2A 50 00 F7 [15:20: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 39 33 4F 00 00 00 CD D5 47 00 B8 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 39 33 10 04 04 00 1B 95 01 00 F4 03 04 00 E8 9D 72 66 B6 04 01 00 00 39 D4 26 2F 32 55 53 45 [15:20:53]CommunicateWithHost err = 0 [15:20:53]CheckOFDResponse [15:20:53]1017 (14) - 77093643461234 [15:20:53]1041 (16) - 0000000000875093 [15:20:53]1040 (4) - 103707 [15:20:53]1012 (4) - 19.06.2024 08:59 [15:20:53]1206 (1) - 0 [15:20:53]OFD Sender: Remove packet 103707 [15:20:53]ProducePacketName [15:20:53]name=ofd_packets/00103707 [15:20:53]NVStorageDeleteData [15:20:53]Write to MH i2c: 01 00 00 B7 B6 6D [15:20:53]Write i2c OK [15:20:53]MH_I2C_Read... [15:20:53]Read from MH i2c: 01 [15:20:53]MH_I2C_Read... [15:20:53]Read from MH i2c: 01 07 00 [15:20:53]MH_I2C_Read... [15:20:53]Read from MH i2c: 01 07 00 B7 B6 00 00 00 00 00 EA 0C 6A [15:20:53]RasterBufferAndPrint [15:20:53]line [15:20:53]line [15:20:53]line [15:20:53]line [15:20:53]line [15:20:53]written 0, free lines is 3312 [15:20:54]MH_Cut [15:20:54]Write to MH i2c: D1 01 00 BE B6 01 46 [15:20:54]Write i2c OK [15:20:54]MH_I2C_Read... [15:20:54]Read from MH i2c: D1 [15:20:54]MH_I2C_Read... [15:20:54]Read from MH i2c: D1 01 00 [15:20:54]MH_I2C_Read... [15:20:54]Read from MH i2c: D1 01 00 BE B6 00 45 [15:20:54]Write to MH i2c: 01 00 00 BF B6 75 [15:20:54]Write i2c OK [15:20:54]MH_I2C_Read... [15:20:54]OFD Sender: No OFD packet to send [15:20:54]*** Cut start [15:20:54]*** Partial cut [15:20:54]*** CUTSNS_PIN = 1 [15:20:54]*** CUTSNS_PIN = 0 [15:20:54]*** Brake cut motor [15:20:55]Read from MH i2c: 01 [15:20:55]MH_I2C_Read... [15:20:55]*** Stop cut motor [15:20:55]*** Cut end [15:20:55]Read from MH i2c: 01 07 00 [15:20:55]MH_I2C_Read... [15:20:55]Read from MH i2c: 01 07 00 BF B6 00 00 00 00 00 FF 0F 8A [15:20:55]process_action close_receipt done [15:20:55]requested_data is exist [15:20:55]produce_requested_data [15:20:55]requested_item fm.sn is exist - process it [15:20:55]wFMCommunicate request_size=4 [15:20:55]MH_SAM_APDU [15:20:55]CAPDU: 80 11 00 00 [15:20:55]Write to MH i2c: E2 08 00 C0 B6 80 11 00 00 00 00 00 00 F0 [15:20:55]Write i2c OK [15:20:55]MH_I2C_Read... [15:20:55]Read from MH i2c: E2 [15:20:55]MH_I2C_Read... [15:20:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:20:55]Read from MH i2c: E2 17 00 [15:20:55]MH_I2C_Read... [15:20:55]Read from MH i2c: E2 17 00 C0 B6 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 43 [15:20:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [15:20:55]wFMCommunicate OK [15:20:55]requested_item fd.num is exist - process it [15:20:55]SAM_PROTO_GetFieldsCounters [15:20:55]wFMCommunicate request_size=4 [15:20:55]MH_SAM_APDU [15:20:55]CAPDU: 80 13 00 00 [15:20:55]Write to MH i2c: E2 08 00 C1 B6 80 13 00 00 00 00 00 00 F3 [15:20:55]Write i2c OK [15:20:55]MH_I2C_Read... [15:20:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:20:55]Read from MH i2c: E2 [15:20:55]MH_I2C_Read... [15:20:55]Read from MH i2c: E2 62 00 [15:20:55]MH_I2C_Read... [15:20:55]Read from MH i2c: E2 62 00 C1 B6 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 1B 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 89 00 00 00 5E 04 04 00 89 00 00 00 57 04 04 00 8A 00 00 00 19 04 04 00 00 00 00 00 90 00 C8 [15:20: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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 1B 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 89 00 00 00 5E 04 04 00 89 00 00 00 57 04 04 00 8A 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:20:55]wFMCommunicate OK [15:20:55]SAM_PROTO_GetFieldsCounters done [15:20:55]requested_item shift.num is exist - process it [15:20:55]requested_item shift.opened is exist - process it [15:20:55]req_shift_opened [15:20:55]FM_GetShiftState [15:20:55]SAM_PROTO_GetShiftState [15:20:55]wFMCommunicate request_size=4 [15:20:55]MH_SAM_APDU [15:20:55]CAPDU: 80 13 01 00 [15:20:55]Write to MH i2c: E2 08 00 C2 B6 80 13 01 00 00 00 00 00 F5 [15:20:55]Write i2c OK [15:20:55]MH_I2C_Read... [15:20:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:20:55]Read from MH i2c: E2 [15:20:55]MH_I2C_Read... [15:20:55]Read from MH i2c: E2 0E 00 [15:20:55]MH_I2C_Read... [15:20:55]Read from MH i2c: E2 0E 00 C2 B6 00 09 00 01 04 26 72 66 00 00 00 00 90 00 03 [15:20:55]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [15:20:55]wFMCommunicate OK [15:20:55]SAM_PROTO_GetShiftState done [15:20:55]FM_GetShiftState done [15:20:55]req_shift_opened done [15:20:55]requested_item shift.open_date is exist - process it [15:20:55]req_shift_open_date [15:20:55]req_shift_open_date done [15:20:55]produce_requested_data done [15:20:55]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103707,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [15:20:55]process_action_free close_receipt [15:20:55]json_value_free [15:20:55]json_value_free done [15:20:55]process_json_proto returns [15:20:55]Send response to host [15:20:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103707,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [15:20:55]free response buf [15:20:55]execute_script done [15:20:55]execute_script returns [15:20:55]free content buf [15:20:55]Sock 7.Close socket [15:20:55]Sock 7.Thread stoped [15:20:59]OFD Sender: No OFD packet to send [15:21:04]OFD Sender: No OFD packet to send [15:21:09]OFD Sender: No OFD packet to send [15:21:14]OFD Sender: No OFD packet to send [15:21:19]OFD Sender: No OFD packet to send [15:21:24]OFD Sender: No OFD packet to send [15:21:29]OFD Sender: No OFD packet to send [15:21:34]OFD Sender: No OFD packet to send [15:21:39]OFD Sender: No OFD packet to send [15:21:44]OFD Sender: No OFD packet to send [15:21:49]OFD Sender: No OFD packet to send [15:21:54]OFD Sender: No OFD packet to send [15:21:55]accept exits with 9 [15:21:55]New connection [15:21:55]New thread 3067084132 created [15:21:55]Thread 3067227492 joined [15:21:55]Waiting for new connection... [15:21:55] Sock 9.Parse request [15:21:55]Sock 9.Check first char [15:21:55]Sock 9.First char is OK [15:21:55]request: POST /json_proto HTTP/1.0 [15:21:55]Method: POST [15:21:55]URL: /json_proto [15:21:55]Method is POST - this is cgi request [15:21:55]url: /json_proto [15:21:55]query_string will be loaded in cgi processing [15:21:55]execute_cgi json_proto POST (null) [15:21:55]execute_cgi path=json_proto method=POST [15:21:55]POST find Content-Length [15:21:55]Host: 172.17.38.133:8080 [15:21:55]Content-Length: 1207 [15:21:55]Content-Type: application/json [15:21:55] [15:21:55]POST finish read [15:21:55]Found Content-Length = 1207 [15:21:55]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 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. \u000A\u0421\u0447\u0435\u0442 N : (1)672978\u000A19.06.2024 14:59\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 31\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124500\u000A\u0410\u0438-95-\u041A-5\u000A 50.000 x 73.90\u000A\u0418\u0422\u041E\u0413: 3695.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\u000A54729\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:21:55]execute_script... [15:21:55]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 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. \u000A\u0421\u0447\u0435\u0442 N : (1)672978\u000A19.06.2024 14:59\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 31\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124500\u000A\u0410\u0438-95-\u041A-5\u000A 50.000 x 73.90\u000A\u0418\u0422\u041E\u0413: 3695.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\u000A54729\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:21:55]POST & json_proto [15:21:55]process_json_proto [15:21:55]json parsed OK: [15:21:55]protocol is kg_v1.0 [15:21:55]action value=print_text [15:21:55]process_action print_text [15:21:55]cmd_print_text [15:21:55]ExternCall_PrintAddStr [15:21:55]wPrintStart [15:21:55]Write to MH i2c: 01 00 00 C3 B6 79 [15:21:55]Write i2c OK [15:21:55]MH_I2C_Read... [15:21:55]Read from MH i2c: 01 [15:21:55]MH_I2C_Read... [15:21:55]Read from MH i2c: 01 07 00 [15:21:55]MH_I2C_Read... [15:21:55]Read from MH i2c: 01 07 00 C3 B6 00 00 00 00 00 FF 0F 8E [15:21:55]RasterBufferAndPrint [15:21:55]line *****ТОВАРНЫЙ ЧЕК***** [15:21:55]line АЗС 120 [15:21:55]line Партнер нефть [15:21:55]line 02508201610067 [15:21:55]line Кассир : Байбугуева Г. [15:21:55]line Счет N : (1)672978 [15:21:55]line 19.06.2024 14:59 [15:21:55]line ПРОДАЖА [15:21:55]line ТРК (МРК, ГНК): 31 [15:21:55]line Вид ГСМ : 2710124500 [15:21:55]line Аи-95-К-5 [15:21:55]line 50.000 x 73.90 [15:21:55]line ИТОГ: 3695.00 [15:21:55]line Тип оплаты: Талоны: Топливная Карта [15:21:55]line 54729 [15:21:55]line ______________________ [15:21:55]line (подпись) [15:21:55]written 0, free lines is 4095 [15:21:56]Write to MH i2c: 01 00 00 D7 B6 8D [15:21:56]Write i2c OK [15:21:56]MH_I2C_Read... [15:21:56]Read from MH i2c: 01 [15:21:56]MH_I2C_Read... [15:21:56]Read from MH i2c: 01 07 00 [15:21:56]MH_I2C_Read... [15:21:56]Read from MH i2c: 01 07 00 D7 B6 00 00 00 00 00 12 0E B4 [15:21:56]RasterBufferAndPrint [15:21:56]line [15:21:56]line [15:21:56]line [15:21:56]line [15:21:56]line [15:21:56]written 0, free lines is 3603 [15:21:56]MH_Cut [15:21:56]Write to MH i2c: D1 01 00 DE B6 01 66 [15:21:56]Write i2c OK [15:21:56]MH_I2C_Read... [15:21:56]Read from MH i2c: D1 [15:21:56]MH_I2C_Read... [15:21:56]Read from MH i2c: D1 01 00 [15:21:56]MH_I2C_Read... [15:21:56]Read from MH i2c: D1 01 00 DE B6 00 65 [15:21:56]Write to MH i2c: 01 00 00 DF B6 95 [15:21:56]Write i2c OK [15:21:56]MH_I2C_Read... [15:21:56]*** Cut start [15:21:56]*** Partial cut [15:21:56]*** CUTSNS_PIN = 1 [15:21:56]*** CUTSNS_PIN = 0 [15:21:56]*** Brake cut motor [15:21:57]Read from MH i2c: 01 [15:21:57]MH_I2C_Read... [15:21:57]*** Stop cut motor [15:21:57]*** Cut end [15:21:57]Read from MH i2c: 01 07 00 [15:21:57]MH_I2C_Read... [15:21:57]Read from MH i2c: 01 07 00 DF B6 00 00 00 00 00 FF 0F AA [15:21:57]process_action print_text done [15:21:57]requested_data is exist [15:21:57]produce_requested_data [15:21:57]requested_item fm.sn is exist - process it [15:21:57]wFMCommunicate request_size=4 [15:21:57]MH_SAM_APDU [15:21:57]CAPDU: 80 11 00 00 [15:21:57]Write to MH i2c: E2 08 00 E0 B6 80 11 00 00 00 00 00 00 10 [15:21:57]Write i2c OK [15:21:57]MH_I2C_Read... [15:21:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:21:57]Read from MH i2c: E2 [15:21:57]MH_I2C_Read... [15:21:57]Read from MH i2c: E2 17 00 [15:21:57]MH_I2C_Read... [15:21:57]Read from MH i2c: E2 17 00 E0 B6 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 63 [15:21:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [15:21:57]wFMCommunicate OK [15:21:57]requested_item fd.num is exist - process it [15:21:57]SAM_PROTO_GetFieldsCounters [15:21:57]wFMCommunicate request_size=4 [15:21:57]MH_SAM_APDU [15:21:57]CAPDU: 80 13 00 00 [15:21:57]Write to MH i2c: E2 08 00 E1 B6 80 13 00 00 00 00 00 00 13 [15:21:57]Write i2c OK [15:21:57]MH_I2C_Read... [15:21:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:21:57]Read from MH i2c: E2 [15:21:57]MH_I2C_Read... [15:21:57]Read from MH i2c: E2 62 00 [15:21:57]MH_I2C_Read... [15:21:57]Read from MH i2c: E2 62 00 E1 B6 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 1B 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 89 00 00 00 5E 04 04 00 89 00 00 00 57 04 04 00 8A 00 00 00 19 04 04 00 00 00 00 00 90 00 E8 [15:21:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 1B 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 89 00 00 00 5E 04 04 00 89 00 00 00 57 04 04 00 8A 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:21:57]wFMCommunicate OK [15:21:57]SAM_PROTO_GetFieldsCounters done [15:21:57]requested_item shift.num is exist - process it [15:21:57]requested_item shift.opened is exist - process it [15:21:57]req_shift_opened [15:21:57]FM_GetShiftState [15:21:57]SAM_PROTO_GetShiftState [15:21:57]wFMCommunicate request_size=4 [15:21:57]MH_SAM_APDU [15:21:57]CAPDU: 80 13 01 00 [15:21:57]Write to MH i2c: E2 08 00 E2 B6 80 13 01 00 00 00 00 00 15 [15:21:57]Write i2c OK [15:21:57]MH_I2C_Read... [15:21:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:21:57]Read from MH i2c: E2 [15:21:57]MH_I2C_Read... [15:21:57]Read from MH i2c: E2 0E 00 [15:21:57]MH_I2C_Read... [15:21:57]Read from MH i2c: E2 0E 00 E2 B6 00 09 00 01 04 26 72 66 00 00 00 00 90 00 23 [15:21:57]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [15:21:57]wFMCommunicate OK [15:21:57]SAM_PROTO_GetShiftState done [15:21:57]FM_GetShiftState done [15:21:57]req_shift_opened done [15:21:57]requested_item shift.open_date is exist - process it [15:21:57]req_shift_open_date [15:21:57]req_shift_open_date done [15:21:57]produce_requested_data done [15:21:57]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103707,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [15:21:57]process_action_free print_text [15:21:57]json_value_free [15:21:57]json_value_free done [15:21:57]process_json_proto returns [15:21:57]Send response to host [15:21:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103707,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [15:21:57]free response buf [15:21:57]execute_script done [15:21:57]execute_script returns [15:21:57]free content buf [15:21:57]Sock 9.Close socket [15:21:57]Sock 9.Thread stoped [15:21:59]OFD Sender: No OFD packet to send [15:22:04]OFD Sender: No OFD packet to send [15:22:09]OFD Sender: No OFD packet to send [15:22:14]OFD Sender: No OFD packet to send [15:22:19]OFD Sender: No OFD packet to send [15:22:24]OFD Sender: No OFD packet to send [15:22:29]OFD Sender: No OFD packet to send [15:22:34]OFD Sender: No OFD packet to send [15:22:39]OFD Sender: No OFD packet to send [15:22:44]OFD Sender: No OFD packet to send [15:22:49]OFD Sender: No OFD packet to send [15:22:54]OFD Sender: No OFD packet to send [15:22:56]accept exits with 7 [15:22:56]New connection [15:22:56]New thread 3067227492 created [15:22:56]Thread 3067084132 joined [15:22:56]Waiting for new connection... [15:22:56] Sock 7.Parse request [15:22:56]Sock 7.Check first char [15:22:56]Sock 7.First char is OK [15:22:56]request: POST /json_proto HTTP/1.0 [15:22:56]Method: POST [15:22:56]URL: /json_proto [15:22:56]Method is POST - this is cgi request [15:22:56]url: /json_proto [15:22:56]query_string will be loaded in cgi processing [15:22:56]execute_cgi json_proto POST (null) [15:22:56]execute_cgi path=json_proto method=POST [15:22:56]POST find Content-Length [15:22:56]Host: 172.17.38.133:8080 [15:22:56]Content-Length: 687 [15:22:56]Content-Type: application/json [15:22:56] [15:22:56]POST finish read [15:22:56]Found Content-Length = 687 [15:22:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672981", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 13.720, "sum" : 1000.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:22:56]execute_script... [15:22: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)672981", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 13.720, "sum" : 1000.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:22:56]POST & json_proto [15:22:56]process_json_proto [15:22:56]json parsed OK: [15:22:56]protocol is kg_v1.0 [15:22:56]action value=close_receipt [15:22:56]process_action close_receipt [15:22:56]cmd_close_receipt [15:22:56]MH_GetDate [15:22:56]Write to MH i2c: F0 00 00 E3 B6 88 [15:22:56]Write i2c OK [15:22:56]MH_I2C_Read... [15:22:56]Read from MH i2c: F0 [15:22:56]MH_I2C_Read... [15:22:56]Read from MH i2c: F0 09 00 [15:22:56]MH_I2C_Read... [15:22:56]Read from MH i2c: F0 09 00 E3 B6 00 DD F7 72 66 BD 8F 7C 64 69 [15:22:56]GetLastDocTimeStamp 1718810464 [15:22:56]current date 1718810589 [15:22:56]FM_GetShiftState [15:22:56]SAM_PROTO_GetShiftState [15:22:56]wFMCommunicate request_size=4 [15:22:56]MH_SAM_APDU [15:22:56]CAPDU: 80 13 01 00 [15:22:56]Write to MH i2c: E2 08 00 E4 B6 80 13 01 00 00 00 00 00 17 [15:22:56]Write i2c OK [15:22:56]MH_I2C_Read... [15:22:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:22:56]Read from MH i2c: E2 [15:22:56]MH_I2C_Read... [15:22:56]Read from MH i2c: E2 0E 00 [15:22:56]MH_I2C_Read... [15:22:56]Read from MH i2c: E2 0E 00 E4 B6 00 09 00 01 04 26 72 66 00 00 00 00 90 00 25 [15:22:56]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [15:22:56]wFMCommunicate OK [15:22:56]SAM_PROTO_GetShiftState done [15:22:56]FM_GetShiftState done [15:22:56]opened in 1718756868 [15:22:56]opened+sec_in_day 1718843268 [15:22:56]quantity*price = 100018 [15:22:56]sum+1 = 100020 [15:22:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.19 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 138 19.06.2024 15:23 Смена: 353 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103708 ФПД: 95875188271590 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T152309&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103708&fm=95875188271590&tin=02508201610067®Number=0000000000092785&sum=100000 [15:22:57]StoreToDocumentArchive [15:22:57]shift 353 fd 103708 [15:22:57]save to /storage/0353/doc_00103708 [15:22:57]save last doc name /storage/0353/doc_00103708 to /storage/kkm_last_doc_name [15:22:57]save OK [15:22:57]Clear old archive folders... [15:22:57]ProcessDocumentItem done err = 0, tmpTLVsize=252 [15:22:57]tlvbuf is 015CBB70 [15:22:57]SAM_PROTO_ClearQueue [15:22:57]wFMCommunicate request_size=4 [15:22:57]MH_SAM_APDU [15:22:57]CAPDU: 80 09 00 00 [15:22:57]Write to MH i2c: E2 08 00 F1 B6 80 09 00 00 00 00 00 00 19 [15:22:57]Write i2c OK [15:22:57]MH_I2C_Read... [15:22:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:22:57]Read from MH i2c: E2 [15:22:57]MH_I2C_Read... [15:22:57]Read from MH i2c: E2 03 00 [15:22:57]MH_I2C_Read... [15:22:57]Read from MH i2c: E2 03 00 F1 B6 00 90 00 1B [15:22:57]RAPDU: 90 00 [15:22:57]wFMCommunicate OK [15:22:57]SAM_PROTO_ClearQueue done [15:22:57]KKMCreateOFDPacket [15:22:57]OFDProtocolAddRootSTLVToBuf [15:22:57]FM_MakeSignedData [15:22:57]FM_MakeSignedData [15:22:57]SAM_PROTO_SignData [15:22:57]wFMCommunicate request_size=4 [15:22:57]MH_SAM_APDU [15:22:57]CAPDU: 80 0D 01 02 [15:22:57]Write to MH i2c: E2 08 00 F2 B6 80 0D 01 02 00 00 00 00 21 [15:22:57]Write i2c OK [15:22:57]MH_I2C_Read... [15:22:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:22:57]Read from MH i2c: E2 [15:22:57]MH_I2C_Read... [15:22:57]Read from MH i2c: E2 03 00 [15:22:57]MH_I2C_Read... [15:22:57]Read from MH i2c: E2 03 00 F2 B6 00 90 00 1C [15:22:57]RAPDU: 90 00 [15:22:57]wFMCommunicate OK [15:22:57]wFMCommunicate request_size=255 [15:22:57]MH_SAM_APDU [15:22: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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 00 00 00 F4 03 04 00 DD F7 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 1C 95 01 00 35 04 06 00 [15:22:57]Write to MH i2c: E2 02 01 F3 B6 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 00 00 00 F4 03 04 00 DD F7 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 1C 95 01 00 35 04 06 00 00 00 BF [15:22:57]Write i2c OK [15:22:57]MH_I2C_Read... [15:22:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:22:57]Read from MH i2c: E2 [15:22:57]MH_I2C_Read... [15:22:57]Read from MH i2c: E2 03 00 [15:22:57]MH_I2C_Read... [15:22:57]Read from MH i2c: E2 03 00 F3 B6 00 90 00 1D [15:22:57]RAPDU: 90 00 [15:22:57]wFMCommunicate OK [15:22:57]wFMCommunicate request_size=11 [15:22:57]MH_SAM_APDU [15:22:57]CAPDU: 80 0D 02 02 06 57 32 AE 8A 29 E6 [15:22:57]Write to MH i2c: E2 0E 00 F4 B6 80 0D 02 02 06 00 57 32 AE 8A 29 E6 00 00 00 [15:22:57]Write i2c OK [15:22:57]MH_I2C_Read... [15:22:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:22:58]Read from MH i2c: E2 [15:22:58]MH_I2C_Read... [15:22:58]Read from MH i2c: E2 03 00 [15:22:58]MH_I2C_Read... [15:22:58]Read from MH i2c: E2 03 00 F4 B6 00 90 00 1E [15:22:58]RAPDU: 90 00 [15:22:58]wFMCommunicate OK [15:22:58]wFMCommunicate request_size=4 [15:22:58]MH_SAM_APDU [15:22:58]CAPDU: 80 0D 03 02 [15:22:58]Write to MH i2c: E2 08 00 F5 B6 80 0D 03 02 00 00 00 00 26 [15:22:58]Write i2c OK [15:22:58]MH_I2C_Read... [15:22:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:22:58]Read from MH i2c: E2 [15:22:58]MH_I2C_Read... [15:22:58]Read from MH i2c: E2 0B 00 [15:22:58]MH_I2C_Read... [15:22:58]Read from MH i2c: E2 0B 00 F5 B6 00 80 D1 50 18 90 07 C2 A6 90 00 DF [15:22:58]RAPDU: 80 D1 50 18 90 07 C2 A6 90 00 [15:22:58]wFMCommunicate OK [15:22:58]SAM_PROTO_SignData done [15:22:58]FM_MakeSignedData done [15:22:58]CreateOFDProtocolMessage [15:22:58]wFMCommunicate request_size=4 [15:22:58]MH_SAM_APDU [15:22:58]CAPDU: 80 11 00 00 [15:22:58]Write to MH i2c: E2 08 00 F6 B6 80 11 00 00 00 00 00 00 26 [15:22:58]Write i2c OK [15:22:58]MH_I2C_Read... [15:22:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:22:58]Read from MH i2c: E2 [15:22:58]MH_I2C_Read... [15:22:58]Read from MH i2c: E2 17 00 [15:22:58]MH_I2C_Read... [15:22:58]Read from MH i2c: E2 17 00 F6 B6 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 79 [15:22:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [15:22:58]wFMCommunicate OK [15:22:58]CreateOFDProtocolMessage done [15:22:58]OFDSenderStorePacket 103708 [15:22:58]StoreOFDPacket docnum=103708 [15:22:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 9F B5 08 01 E7 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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 00 00 00 F4 03 04 00 DD F7 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 1C 95 01 00 35 04 06 00 57 32 AE 8A 29 E6 80 D1 50 18 90 07 C2 A6 [15:22:58]CheckFolder [15:22:58]dirname=/storage/ofd_packets [15:22:58]CheckFolder done [15:22:58]ProducePacketName [15:22:58]name=ofd_packets/00103708 [15:22:58]NVStorageSaveData ofd_packets/00103708 [15:22:58]File name is /storage/ofd_packets/00103708 [15:22:58]Write 302 bytes [15:22:58]NVStorageSaveData done [15:22:58]OFDSenderStorePacket done [15:22:58]KKMCreateOFDPacket done [15:22:58]NVStorageSaveData kkm_last_timestamp [15:22:58]File name is /storage/kkm_last_timestamp [15:22:58]Write 4 bytes [15:22:58]NVStorageSaveData done [15:22:58]ExternCall_PrintAddStr [15:22:58]wPrintStart [15:22:58]Write to MH i2c: 01 00 00 F7 B6 AD [15:22:58]Write i2c OK [15:22:58]MH_I2C_Read... [15:22:58]Read from MH i2c: 01 [15:22:58]MH_I2C_Read... [15:22:58]Read from MH i2c: 01 07 00 [15:22:58]MH_I2C_Read... [15:22:58]Read from MH i2c: 01 07 00 F7 B6 00 00 00 00 00 FF 0F C2 [15:22:58]RasterBufferAndPrint [15:22:58]line Счет N : (1)672981 [15:22:58]line ИНН: 02508201610067 [15:22:58]line Контрольно-Кассовый Чек [15:22:58]line ПРОДАЖА [15:22:58]line ТРК (МРК, ГНК) : 21 [15:22:58]line Товар: 2710194210 [15:22:58]line ДТ(л)-К-5 [15:22:58]line 13.720 * 72.90 [15:22:58]line = 1000.19 [15:22:58]line НДС 12% НСП 1% [15:22:58]line > о реализуемом товаре [15:22:58]line ОКРУГЛЕНИЕ: -0.19 [15:22:58]line ИТОГО: 1000.00 [15:22:58]line Внесено: 1000.00 [15:22:58]line СДАЧА: 0.00 [15:22:58]line НСП 1% : 8.85 [15:22:58]line НДС 12% : 106.21 [15:22:58]line Наличными: 1000.00 [15:22:58]line Безнал.: 0.00 [15:22:58]line Место: АЗС № 120 "Партнер Нефть" [15:22:58]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [15:22:58]line СНО: Общий режим [15:22:58]line Чек 138 19.06.2024 15:23 [15:22:58]line Смена: 353 ФФД: 1.0 [15:22:58]line ЗНМ: 0300000164 [15:22:58]line РНМ: 0000000000092785 [15:22:58]line Версия ККМ: 001 [15:22:58]line ФМ: 0000000000875093 [15:22:58]line ФД: 103708 [15:22:58]line ФПД: 95875188271590 [15:22:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T152309&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103708&fm=95875188271590&tin=02508201610067®Number=0000000000092785&sum=100000 [15:22:58]OFD Sender: Processing packet 103708 [packets to send 17, broken 16] [15:22:58]ProducePacketName [15:22:58]name=ofd_packets/00103708 [15:22:58]OFD Sender: To server: pG, [15:22:58]CommunicateWithHost lk.salyk.kg:30040 [15:22:58]ConnectInit lk.salyk.kg [15:22:58]written 0, free lines is 4095 [15:22:58]Connected sock=10 [15:22: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 39 33 10 01 00 00 9F B5 08 01 E7 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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 00 00 00 F4 03 04 00 DD F7 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 1C 95 01 00 35 04 06 00 57 32 AE 8A 29 E6 80 D1 50 18 90 07 C2 A6 [15:22:58]Write to MH i2c: 01 00 00 22 B7 D9 [15:22:58]Write i2c OK [15:22:58]MH_I2C_Read... [15:22:58]Read from MH i2c: 01 [15:22:58]MH_I2C_Read... [15:22:58]Read from MH i2c: 01 07 00 [15:22:58]MH_I2C_Read... [15:22:58]Read from MH i2c: 01 07 00 22 B7 00 00 00 00 00 E4 0C D0 [15:22:58]RasterBufferAndPrint [15:22:58]line [15:22:58]line [15:22:58]line [15:22:58]line [15:22:58]line [15:22:58]written 0, free lines is 3306 [15:22:58]MH_Cut [15:22:58]Write to MH i2c: D1 01 00 29 B7 01 B2 [15:22:58]Write i2c OK [15:22:58]MH_I2C_Read... [15:22:58]Read from MH i2c: D1 [15:22:58]MH_I2C_Read... [15:22:58]Read from MH i2c: D1 01 00 [15:22:58]MH_I2C_Read... [15:22:58]Read from MH i2c: D1 01 00 29 B7 00 B1 [15:22:58]Write to MH i2c: 01 00 00 2A B7 E1 [15:22:58]Write i2c OK [15:22:58]MH_I2C_Read... [15:22: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 39 33 4F 00 00 00 58 F4 47 00 B2 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 39 33 10 04 04 00 1C 95 01 00 F4 03 04 00 66 9E 72 66 B6 04 01 00 00 AA 7E 74 AE F3 BE 0C 1B [15:22:58]CommunicateWithHost err = 0 [15:22:58]CheckOFDResponse [15:22:58]1017 (14) - 77093643461234 [15:22:58]1041 (16) - 0000000000875093 [15:22:58]1040 (4) - 103708 [15:22:58]1012 (4) - 19.06.2024 09:01 [15:22:58]1206 (1) - 0 [15:22:58]OFD Sender: Remove packet 103708 [15:22:58]ProducePacketName [15:22:58]name=ofd_packets/00103708 [15:22:58]NVStorageDeleteData [15:22:59]OFD Sender: No OFD packet to send [15:22:59]*** Cut start [15:22:59]*** Partial cut [15:22:59]*** CUTSNS_PIN = 1 [15:22:59]*** CUTSNS_PIN = 0 [15:22:59]*** Brake cut motor [15:23:00]Read from MH i2c: 01 [15:23:00]MH_I2C_Read... [15:23:00]*** Stop cut motor [15:23:00]*** Cut end [15:23:00]Read from MH i2c: 01 07 00 [15:23:00]MH_I2C_Read... [15:23:00]Read from MH i2c: 01 07 00 2A B7 00 00 00 00 00 FF 0F F6 [15:23:00]process_action close_receipt done [15:23:00]requested_data is exist [15:23:00]produce_requested_data [15:23:00]requested_item fm.sn is exist - process it [15:23:00]wFMCommunicate request_size=4 [15:23:00]MH_SAM_APDU [15:23:00]CAPDU: 80 11 00 00 [15:23:00]Write to MH i2c: E2 08 00 2B B7 80 11 00 00 00 00 00 00 5C [15:23:00]Write i2c OK [15:23:00]MH_I2C_Read... [15:23:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:23:00]Read from MH i2c: E2 [15:23:00]MH_I2C_Read... [15:23:00]Read from MH i2c: E2 17 00 [15:23:00]MH_I2C_Read... [15:23:00]Read from MH i2c: E2 17 00 2B B7 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 AF [15:23:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [15:23:00]wFMCommunicate OK [15:23:00]requested_item fd.num is exist - process it [15:23:00]SAM_PROTO_GetFieldsCounters [15:23:00]wFMCommunicate request_size=4 [15:23:00]MH_SAM_APDU [15:23:00]CAPDU: 80 13 00 00 [15:23:00]Write to MH i2c: E2 08 00 2C B7 80 13 00 00 00 00 00 00 5F [15:23:00]Write i2c OK [15:23:00]MH_I2C_Read... [15:23:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:23:00]Read from MH i2c: E2 [15:23:00]MH_I2C_Read... [15:23:00]Read from MH i2c: E2 62 00 [15:23:00]MH_I2C_Read... [15:23:00]Read from MH i2c: E2 62 00 2C B7 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 1C 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 8A 00 00 00 5E 04 04 00 8A 00 00 00 57 04 04 00 8B 00 00 00 19 04 04 00 00 00 00 00 90 00 38 [15:23: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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 1C 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 8A 00 00 00 5E 04 04 00 8A 00 00 00 57 04 04 00 8B 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:23:00]wFMCommunicate OK [15:23:00]SAM_PROTO_GetFieldsCounters done [15:23:00]requested_item shift.num is exist - process it [15:23:00]requested_item shift.opened is exist - process it [15:23:00]req_shift_opened [15:23:00]FM_GetShiftState [15:23:00]SAM_PROTO_GetShiftState [15:23:00]wFMCommunicate request_size=4 [15:23:00]MH_SAM_APDU [15:23:00]CAPDU: 80 13 01 00 [15:23:00]Write to MH i2c: E2 08 00 2D B7 80 13 01 00 00 00 00 00 61 [15:23:00]Write i2c OK [15:23:00]MH_I2C_Read... [15:23:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:23:00]Read from MH i2c: E2 [15:23:00]MH_I2C_Read... [15:23:00]Read from MH i2c: E2 0E 00 [15:23:00]MH_I2C_Read... [15:23:00]Read from MH i2c: E2 0E 00 2D B7 00 09 00 01 04 26 72 66 00 00 00 00 90 00 6F [15:23:00]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [15:23:00]wFMCommunicate OK [15:23:00]SAM_PROTO_GetShiftState done [15:23:00]FM_GetShiftState done [15:23:00]req_shift_opened done [15:23:00]requested_item shift.open_date is exist - process it [15:23:00]req_shift_open_date [15:23:00]req_shift_open_date done [15:23:00]produce_requested_data done [15:23:00]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103708,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [15:23:00]process_action_free close_receipt [15:23:00]json_value_free [15:23:00]json_value_free done [15:23:00]process_json_proto returns [15:23:00]Send response to host [15:23:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103708,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [15:23:00]free response buf [15:23:00]execute_script done [15:23:00]execute_script returns [15:23:00]free content buf [15:23:00]Sock 7.Close socket [15:23:00]Sock 7.Thread stoped [15:23:04]OFD Sender: No OFD packet to send [15:23:09]OFD Sender: No OFD packet to send [15:23:14]OFD Sender: No OFD packet to send [15:23:19]OFD Sender: No OFD packet to send [15:23:24]OFD Sender: No OFD packet to send [15:23:29]OFD Sender: No OFD packet to send [15:23:34]OFD Sender: No OFD packet to send [15:23:39]OFD Sender: No OFD packet to send [15:23:44]OFD Sender: No OFD packet to send [15:23:49]OFD Sender: No OFD packet to send [15:23:54]OFD Sender: No OFD packet to send [15:23:59]OFD Sender: No OFD packet to send [15:24:04]OFD Sender: No OFD packet to send [15:24:09]OFD Sender: No OFD packet to send [15:24:11]accept exits with 9 [15:24:11]New connection [15:24:11]New thread 3067084132 created [15:24:11]Thread 3067227492 joined [15:24:11]Waiting for new connection... [15:24:11] Sock 9.Parse request [15:24:11]Sock 9.Check first char [15:24:11]Sock 9.First char is OK [15:24:11]request: POST /json_proto HTTP/1.0 [15:24:11]Method: POST [15:24:11]URL: /json_proto [15:24:11]Method is POST - this is cgi request [15:24:11]url: /json_proto [15:24:11]query_string will be loaded in cgi processing [15:24:11]execute_cgi json_proto POST (null) [15:24:11]execute_cgi path=json_proto method=POST [15:24:11]POST find Content-Length [15:24:11]Host: 172.17.38.133:8080 [15:24:11]Content-Length: 677 [15:24:11]Content-Type: application/json [15:24:11] [15:24:11]POST finish read [15:24:11]Found Content-Length = 677 [15:24:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672982", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:24:11]execute_script... [15:24: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)672982", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:24:11]POST & json_proto [15:24:11]process_json_proto [15:24:11]json parsed OK: [15:24:11]protocol is kg_v1.0 [15:24:11]action value=close_receipt [15:24:11]process_action close_receipt [15:24:11]cmd_close_receipt [15:24:11]MH_GetDate [15:24:11]Write to MH i2c: F0 00 00 2E B7 D4 [15:24:11]Write i2c OK [15:24:11]MH_I2C_Read... [15:24:11]Read from MH i2c: F0 [15:24:11]MH_I2C_Read... [15:24:11]Read from MH i2c: F0 09 00 [15:24:11]MH_I2C_Read... [15:24:11]Read from MH i2c: F0 09 00 2E B7 00 28 F8 72 66 BD 8F 7C 64 01 [15:24:11]GetLastDocTimeStamp 1718810589 [15:24:11]current date 1718810664 [15:24:11]FM_GetShiftState [15:24:11]SAM_PROTO_GetShiftState [15:24:11]wFMCommunicate request_size=4 [15:24:11]MH_SAM_APDU [15:24:11]CAPDU: 80 13 01 00 [15:24:11]Write to MH i2c: E2 08 00 2F B7 80 13 01 00 00 00 00 00 63 [15:24:11]Write i2c OK [15:24:11]MH_I2C_Read... [15:24:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:24:11]Read from MH i2c: E2 [15:24:11]MH_I2C_Read... [15:24:11]Read from MH i2c: E2 0E 00 [15:24:11]MH_I2C_Read... [15:24:11]Read from MH i2c: E2 0E 00 2F B7 00 09 00 01 04 26 72 66 00 00 00 00 90 00 71 [15:24:11]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [15:24:11]wFMCommunicate OK [15:24:11]SAM_PROTO_GetShiftState done [15:24:11]FM_GetShiftState done [15:24:11]opened in 1718756868 [15:24:11]opened+sec_in_day 1718843268 [15:24:11]quantity*price = 50065 [15:24:11]sum+1 = 50067 [15:24:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.17 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 139 19.06.2024 15:24 Смена: 353 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103709 ФПД: 7073858574305 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T152424&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103709&fm=7073858574305&tin=02508201610067®Number=0000000000092785&sum=50000 [15:24:12]StoreToDocumentArchive [15:24:12]shift 353 fd 103709 [15:24:12]save to /storage/0353/doc_00103709 [15:24:12]save last doc name /storage/0353/doc_00103709 to /storage/kkm_last_doc_name [15:24:12]save OK [15:24:12]Clear old archive folders... [15:24:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:24:12]tlvbuf is 0169C620 [15:24:12]SAM_PROTO_ClearQueue [15:24:12]wFMCommunicate request_size=4 [15:24:12]MH_SAM_APDU [15:24:12]CAPDU: 80 09 00 00 [15:24:12]Write to MH i2c: E2 08 00 3C B7 80 09 00 00 00 00 00 00 65 [15:24:12]Write i2c OK [15:24:12]MH_I2C_Read... [15:24:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:24:12]Read from MH i2c: E2 [15:24:12]MH_I2C_Read... [15:24:12]Read from MH i2c: E2 03 00 [15:24:12]MH_I2C_Read... [15:24:12]Read from MH i2c: E2 03 00 3C B7 00 90 00 67 [15:24:12]RAPDU: 90 00 [15:24:12]wFMCommunicate OK [15:24:12]SAM_PROTO_ClearQueue done [15:24:12]KKMCreateOFDPacket [15:24:12]OFDProtocolAddRootSTLVToBuf [15:24:12]FM_MakeSignedData [15:24:12]FM_MakeSignedData [15:24:12]SAM_PROTO_SignData [15:24:12]wFMCommunicate request_size=4 [15:24:12]MH_SAM_APDU [15:24:12]CAPDU: 80 0D 01 02 [15:24:12]Write to MH i2c: E2 08 00 3D B7 80 0D 01 02 00 00 00 00 6D [15:24:12]Write i2c OK [15:24:12]MH_I2C_Read... [15:24:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:24:12]Read from MH i2c: E2 [15:24:12]MH_I2C_Read... [15:24:12]Read from MH i2c: E2 03 00 [15:24:12]MH_I2C_Read... [15:24:12]Read from MH i2c: E2 03 00 3D B7 00 90 00 68 [15:24:12]RAPDU: 90 00 [15:24:12]wFMCommunicate OK [15:24:12]wFMCommunicate request_size=255 [15:24:12]MH_SAM_APDU [15:24: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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 28 F8 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 1D 95 01 00 35 04 06 00 06 [15:24:12]Write to MH i2c: E2 02 01 3E B7 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 28 F8 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 1D 95 01 00 35 04 06 00 06 00 00 C5 [15:24:12]Write i2c OK [15:24:12]MH_I2C_Read... [15:24:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:24:13]Read from MH i2c: E2 [15:24:13]MH_I2C_Read... [15:24:13]Read from MH i2c: E2 03 00 [15:24:13]MH_I2C_Read... [15:24:13]Read from MH i2c: E2 03 00 3E B7 00 90 00 69 [15:24:13]RAPDU: 90 00 [15:24:13]wFMCommunicate OK [15:24:13]wFMCommunicate request_size=10 [15:24:13]MH_SAM_APDU [15:24:13]CAPDU: 80 0D 02 02 05 6F 02 D3 D7 E1 [15:24:13]Write to MH i2c: E2 0D 00 3F B7 80 0D 02 02 05 00 6F 02 D3 D7 E1 00 00 76 [15:24:13]Write i2c OK [15:24:13]MH_I2C_Read... [15:24:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:24:13]Read from MH i2c: E2 [15:24:13]MH_I2C_Read... [15:24:13]Read from MH i2c: E2 03 00 [15:24:13]MH_I2C_Read... [15:24:13]Read from MH i2c: E2 03 00 3F B7 00 90 00 6A [15:24:13]RAPDU: 90 00 [15:24:13]wFMCommunicate OK [15:24:13]wFMCommunicate request_size=4 [15:24:13]MH_SAM_APDU [15:24:13]CAPDU: 80 0D 03 02 [15:24:13]Write to MH i2c: E2 08 00 40 B7 80 0D 03 02 00 00 00 00 72 [15:24:13]Write i2c OK [15:24:13]MH_I2C_Read... [15:24:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:24:13]Read from MH i2c: E2 [15:24:13]MH_I2C_Read... [15:24:13]Read from MH i2c: E2 0B 00 [15:24:13]MH_I2C_Read... [15:24:13]Read from MH i2c: E2 0B 00 40 B7 00 5E 96 BA 5E 7D 46 83 0F 90 00 D4 [15:24:13]RAPDU: 5E 96 BA 5E 7D 46 83 0F 90 00 [15:24:13]wFMCommunicate OK [15:24:13]SAM_PROTO_SignData done [15:24:13]FM_MakeSignedData done [15:24:13]CreateOFDProtocolMessage [15:24:13]wFMCommunicate request_size=4 [15:24:13]MH_SAM_APDU [15:24:13]CAPDU: 80 11 00 00 [15:24:13]Write to MH i2c: E2 08 00 41 B7 80 11 00 00 00 00 00 00 72 [15:24:13]Write i2c OK [15:24:13]MH_I2C_Read... [15:24:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:24:13]Read from MH i2c: E2 [15:24:13]MH_I2C_Read... [15:24:13]Read from MH i2c: E2 17 00 [15:24:13]MH_I2C_Read... [15:24:13]Read from MH i2c: E2 17 00 41 B7 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 C5 [15:24:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [15:24:13]wFMCommunicate OK [15:24:13]CreateOFDProtocolMessage done [15:24:13]OFDSenderStorePacket 103709 [15:24:13]StoreOFDPacket docnum=103709 [15:24:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 6D 7C 07 01 11 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 28 F8 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 1D 95 01 00 35 04 06 00 06 6F 02 D3 D7 E1 5E 96 BA 5E 7D 46 83 0F [15:24:13]CheckFolder [15:24:13]dirname=/storage/ofd_packets [15:24:13]CheckFolder done [15:24:13]ProducePacketName [15:24:13]name=ofd_packets/00103709 [15:24:13]NVStorageSaveData ofd_packets/00103709 [15:24:13]File name is /storage/ofd_packets/00103709 [15:24:13]Write 301 bytes [15:24:13]NVStorageSaveData done [15:24:13]OFDSenderStorePacket done [15:24:13]KKMCreateOFDPacket done [15:24:13]NVStorageSaveData kkm_last_timestamp [15:24:13]File name is /storage/kkm_last_timestamp [15:24:13]Write 4 bytes [15:24:13]NVStorageSaveData done [15:24:13]ExternCall_PrintAddStr [15:24:13]wPrintStart [15:24:13]Write to MH i2c: 01 00 00 42 B7 F9 [15:24:13]Write i2c OK [15:24:13]MH_I2C_Read... [15:24:13]Read from MH i2c: 01 [15:24:13]MH_I2C_Read... [15:24:13]Read from MH i2c: 01 07 00 [15:24:13]MH_I2C_Read... [15:24:13]Read from MH i2c: 01 07 00 42 B7 00 00 00 00 00 FF 0F 0E [15:24:13]RasterBufferAndPrint [15:24:13]line Счет N : (1)672982 [15:24:13]line ИНН: 02508201610067 [15:24:13]line Контрольно-Кассовый Чек [15:24:13]line ПРОДАЖА [15:24:13]line ТРК (МРК, ГНК) : 32 [15:24:13]line Товар: 2710124130 [15:24:13]line Аи-92-К-5 [15:24:13]line 7.540 * 66.40 [15:24:13]line = 500.66 [15:24:13]line НДС 12% НСП 1% [15:24:13]line > о реализуемом товаре [15:24:13]line ОКРУГЛЕНИЕ: -0.66 [15:24:13]line ИТОГО: 500.00 [15:24:13]line Внесено: 500.00 [15:24:13]line СДАЧА: 0.00 [15:24:13]line НСП 1% : 4.43 [15:24:13]line НДС 12% : 53.17 [15:24:13]line Наличными: 500.00 [15:24:13]line Безнал.: 0.00 [15:24:13]line Место: АЗС № 120 "Партнер Нефть" [15:24:13]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [15:24:13]line СНО: Общий режим [15:24:13]line Чек 139 19.06.2024 15:24 [15:24:13]line Смена: 353 ФФД: 1.0 [15:24:13]line ЗНМ: 0300000164 [15:24:13]line РНМ: 0000000000092785 [15:24:13]line Версия ККМ: 001 [15:24:13]line ФМ: 0000000000875093 [15:24:13]line ФД: 103709 [15:24:13]line ФПД: 7073858574305 [15:24:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T152424&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103709&fm=7073858574305&tin=02508201610067®Number=0000000000092785&sum=50000 [15:24:13]written 0, free lines is 4095 [15:24:13]OFD Sender: Processing packet 103709 [packets to send 17, broken 16] [15:24:13]ProducePacketName [15:24:13]name=ofd_packets/00103709 [15:24:13]OFD Sender: To server: pG, [15:24:13]CommunicateWithHost lk.salyk.kg:30040 [15:24:13]ConnectInit lk.salyk.kg [15:24:13]Connected sock=10 [15:24: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 39 33 0F 01 00 00 6D 7C 07 01 11 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 28 F8 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 1D 95 01 00 35 04 06 00 06 6F 02 D3 D7 E1 5E 96 BA 5E 7D 46 83 0F [15:24: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 39 33 4F 00 00 00 EC CB 47 00 EA 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 39 33 10 04 04 00 1D 95 01 00 F4 03 04 00 B1 9E 72 66 B6 04 01 00 00 2C A5 1D 4F 5C 9C DD BA [15:24:14]CommunicateWithHost err = 0 [15:24:14]CheckOFDResponse [15:24:14]1017 (14) - 77093643461234 [15:24:14]1041 (16) - 0000000000875093 [15:24:14]1040 (4) - 103709 [15:24:14]1012 (4) - 19.06.2024 09:02 [15:24:14]1206 (1) - 0 [15:24:14]OFD Sender: Remove packet 103709 [15:24:14]ProducePacketName [15:24:14]name=ofd_packets/00103709 [15:24:14]NVStorageDeleteData [15:24:14]Write to MH i2c: 01 00 00 6D B7 24 [15:24:14]Write i2c OK [15:24:14]MH_I2C_Read... [15:24:14]Read from MH i2c: 01 [15:24:14]MH_I2C_Read... [15:24:14]Read from MH i2c: 01 07 00 [15:24:14]MH_I2C_Read... [15:24:14]Read from MH i2c: 01 07 00 6D B7 00 00 00 00 00 D7 0C 0E [15:24:14]RasterBufferAndPrint [15:24:14]line [15:24:14]line [15:24:14]line [15:24:14]line [15:24:14]line [15:24:14]written 0, free lines is 3294 [15:24:14]MH_Cut [15:24:14]Write to MH i2c: D1 01 00 74 B7 01 FD [15:24:14]Write i2c OK [15:24:14]MH_I2C_Read... [15:24:14]Read from MH i2c: D1 [15:24:14]MH_I2C_Read... [15:24:14]Read from MH i2c: D1 01 00 [15:24:14]MH_I2C_Read... [15:24:14]Read from MH i2c: D1 01 00 74 B7 00 FC [15:24:14]Write to MH i2c: 01 00 00 75 B7 2C [15:24:14]Write i2c OK [15:24:14]MH_I2C_Read... [15:24:14]OFD Sender: No OFD packet to send [15:24:14]*** Cut start [15:24:14]*** Partial cut [15:24:14]*** CUTSNS_PIN = 1 [15:24:14]*** CUTSNS_PIN = 0 [15:24:15]*** Brake cut motor [15:24:15]Read from MH i2c: 01 [15:24:15]*** Stop cut motor [15:24:15]*** Cut end [15:24:15]MH_I2C_Read... [15:24:15]Read from MH i2c: 01 07 00 [15:24:15]MH_I2C_Read... [15:24:15]Read from MH i2c: 01 07 00 75 B7 00 00 00 00 00 FF 0F 41 [15:24:15]process_action close_receipt done [15:24:15]requested_data is exist [15:24:15]produce_requested_data [15:24:15]requested_item fm.sn is exist - process it [15:24:15]wFMCommunicate request_size=4 [15:24:15]MH_SAM_APDU [15:24:15]CAPDU: 80 11 00 00 [15:24:15]Write to MH i2c: E2 08 00 76 B7 80 11 00 00 00 00 00 00 A7 [15:24:15]Write i2c OK [15:24:15]MH_I2C_Read... [15:24:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:24:15]Read from MH i2c: E2 [15:24:15]MH_I2C_Read... [15:24:15]Read from MH i2c: E2 17 00 [15:24:15]MH_I2C_Read... [15:24:15]Read from MH i2c: E2 17 00 76 B7 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 FA [15:24:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [15:24:15]wFMCommunicate OK [15:24:15]requested_item fd.num is exist - process it [15:24:15]SAM_PROTO_GetFieldsCounters [15:24:15]wFMCommunicate request_size=4 [15:24:15]MH_SAM_APDU [15:24:15]CAPDU: 80 13 00 00 [15:24:15]Write to MH i2c: E2 08 00 77 B7 80 13 00 00 00 00 00 00 AA [15:24:15]Write i2c OK [15:24:15]MH_I2C_Read... [15:24:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:24:15]Read from MH i2c: E2 [15:24:15]MH_I2C_Read... [15:24:15]Read from MH i2c: E2 62 00 [15:24:15]MH_I2C_Read... [15:24:15]Read from MH i2c: E2 62 00 77 B7 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 1D 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 8B 00 00 00 5E 04 04 00 8B 00 00 00 57 04 04 00 8C 00 00 00 19 04 04 00 00 00 00 00 90 00 87 [15:24: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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 1D 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 8B 00 00 00 5E 04 04 00 8B 00 00 00 57 04 04 00 8C 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:24:15]wFMCommunicate OK [15:24:15]SAM_PROTO_GetFieldsCounters done [15:24:15]requested_item shift.num is exist - process it [15:24:15]requested_item shift.opened is exist - process it [15:24:15]req_shift_opened [15:24:15]FM_GetShiftState [15:24:15]SAM_PROTO_GetShiftState [15:24:15]wFMCommunicate request_size=4 [15:24:15]MH_SAM_APDU [15:24:15]CAPDU: 80 13 01 00 [15:24:15]Write to MH i2c: E2 08 00 78 B7 80 13 01 00 00 00 00 00 AC [15:24:15]Write i2c OK [15:24:15]MH_I2C_Read... [15:24:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:24:15]Read from MH i2c: E2 [15:24:15]MH_I2C_Read... [15:24:15]Read from MH i2c: E2 0E 00 [15:24:15]MH_I2C_Read... [15:24:15]Read from MH i2c: E2 0E 00 78 B7 00 09 00 01 04 26 72 66 00 00 00 00 90 00 BA [15:24:15]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [15:24:15]wFMCommunicate OK [15:24:15]SAM_PROTO_GetShiftState done [15:24:15]FM_GetShiftState done [15:24:15]req_shift_opened done [15:24:15]requested_item shift.open_date is exist - process it [15:24:15]req_shift_open_date [15:24:15]req_shift_open_date done [15:24:15]produce_requested_data done [15:24:15]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103709,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [15:24:15]process_action_free close_receipt [15:24:15]json_value_free [15:24:15]json_value_free done [15:24:15]process_json_proto returns [15:24:15]Send response to host [15:24:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103709,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [15:24:15]free response buf [15:24:15]execute_script done [15:24:15]execute_script returns [15:24:15]free content buf [15:24:15]Sock 9.Close socket [15:24:15]Sock 9.Thread stoped [15:24:19]OFD Sender: No OFD packet to send [15:24:24]OFD Sender: No OFD packet to send [15:24:29]OFD Sender: No OFD packet to send [15:24:34]OFD Sender: No OFD packet to send [15:24:39]OFD Sender: No OFD packet to send [15:24:44]OFD Sender: No OFD packet to send [15:24:49]OFD Sender: No OFD packet to send [15:24:54]OFD Sender: No OFD packet to send [15:24:59]OFD Sender: No OFD packet to send [15:25:04]OFD Sender: No OFD packet to send [15:25:09]OFD Sender: No OFD packet to send [15:25:14]OFD Sender: No OFD packet to send [15:25:19]OFD Sender: No OFD packet to send [15:25:24]OFD Sender: No OFD packet to send [15:25:29]OFD Sender: No OFD packet to send [15:25:34]OFD Sender: No OFD packet to send [15:25:39]OFD Sender: No OFD packet to send [15:25:44]OFD Sender: No OFD packet to send [15:25:49]OFD Sender: No OFD packet to send [15:25:54]OFD Sender: No OFD packet to send [15:25:59]OFD Sender: No OFD packet to send [15:26:04]OFD Sender: No OFD packet to send [15:26:09]OFD Sender: No OFD packet to send [15:26:14]OFD Sender: No OFD packet to send [15:26:19]OFD Sender: No OFD packet to send [15:26:24]OFD Sender: No OFD packet to send [15:26:29]OFD Sender: No OFD packet to send [15:26:34]OFD Sender: No OFD packet to send [15:26:39]OFD Sender: No OFD packet to send [15:26:44]OFD Sender: No OFD packet to send [15:26:49]OFD Sender: No OFD packet to send [15:26:54]OFD Sender: No OFD packet to send [15:26:59]OFD Sender: No OFD packet to send [15:27:04]OFD Sender: No OFD packet to send [15:27:09]OFD Sender: No OFD packet to send [15:27:14]OFD Sender: No OFD packet to send [15:27:19]OFD Sender: No OFD packet to send [15:27:24]OFD Sender: No OFD packet to send [15:27:29]OFD Sender: No OFD packet to send [15:27:34]OFD Sender: No OFD packet to send [15:27:39]OFD Sender: No OFD packet to send [15:27:44]OFD Sender: No OFD packet to send [15:27:49]OFD Sender: No OFD packet to send [15:27:54]OFD Sender: No OFD packet to send [15:27:59]OFD Sender: No OFD packet to send [15:28:04]OFD Sender: No OFD packet to send [15:28:09]OFD Sender: No OFD packet to send [15:28:14]OFD Sender: No OFD packet to send [15:28:19]OFD Sender: No OFD packet to send [15:28:24]OFD Sender: No OFD packet to send [15:28:29]OFD Sender: No OFD packet to send [15:28:34]OFD Sender: No OFD packet to send [15:28:39]OFD Sender: No OFD packet to send [15:28:44]OFD Sender: No OFD packet to send [15:28:49]OFD Sender: No OFD packet to send [15:28:54]OFD Sender: No OFD packet to send [15:28:59]OFD Sender: No OFD packet to send [15:29:04]OFD Sender: No OFD packet to send [15:29:09]OFD Sender: No OFD packet to send [15:29:14]OFD Sender: No OFD packet to send [15:29:19]OFD Sender: No OFD packet to send [15:29:24]OFD Sender: No OFD packet to send [15:29:29]OFD Sender: No OFD packet to send [15:29:34]OFD Sender: No OFD packet to send [15:29:39]OFD Sender: No OFD packet to send [15:29:44]OFD Sender: No OFD packet to send [15:29:49]OFD Sender: No OFD packet to send [15:29:54]OFD Sender: No OFD packet to send [15:29:59]OFD Sender: No OFD packet to send [15:30:04]OFD Sender: No OFD packet to send [15:30:09]OFD Sender: No OFD packet to send [15:30:14]OFD Sender: No OFD packet to send [15:30:19]OFD Sender: No OFD packet to send [15:30:24]OFD Sender: No OFD packet to send [15:30:29]OFD Sender: No OFD packet to send [15:30:34]OFD Sender: No OFD packet to send [15:30:39]OFD Sender: No OFD packet to send [15:30:44]OFD Sender: No OFD packet to send [15:30:49]OFD Sender: No OFD packet to send [15:30:54]OFD Sender: No OFD packet to send [15:30:59]OFD Sender: No OFD packet to send [15:31:04]OFD Sender: No OFD packet to send [15:31:09]OFD Sender: No OFD packet to send [15:31:14]OFD Sender: No OFD packet to send [15:31:19]OFD Sender: No OFD packet to send [15:31:24]OFD Sender: No OFD packet to send [15:31:29]OFD Sender: No OFD packet to send [15:31:34]OFD Sender: No OFD packet to send [15:31:39]OFD Sender: No OFD packet to send [15:31:44]OFD Sender: No OFD packet to send [15:31:49]OFD Sender: No OFD packet to send [15:31:54]OFD Sender: No OFD packet to send [15:31:59]OFD Sender: No OFD packet to send [15:32:04]OFD Sender: No OFD packet to send [15:32:09]OFD Sender: No OFD packet to send [15:32:14]OFD Sender: No OFD packet to send [15:32:19]OFD Sender: No OFD packet to send [15:32:24]OFD Sender: No OFD packet to send [15:32:29]OFD Sender: No OFD packet to send [15:32:34]OFD Sender: No OFD packet to send [15:32:38]accept exits with 7 [15:32:38]New connection [15:32:38]New thread 3067227492 created [15:32:38]Thread 3067084132 joined [15:32:38]Waiting for new connection... [15:32:38] Sock 7.Parse request [15:32:38]Sock 7.Check first char [15:32:38]Sock 7.First char is OK [15:32:38]request: POST /json_proto HTTP/1.0 [15:32:38]Method: POST [15:32:38]URL: /json_proto [15:32:38]Method is POST - this is cgi request [15:32:38]url: /json_proto [15:32:38]query_string will be loaded in cgi processing [15:32:38]execute_cgi json_proto POST (null) [15:32:38]execute_cgi path=json_proto method=POST [15:32:38]POST find Content-Length [15:32:38]Host: 172.17.38.133:8080 [15:32:38]Content-Length: 682 [15:32:38]Content-Type: application/json [15:32:38] [15:32:38]POST finish read [15:32:38]Found Content-Length = 682 [15:32:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672983", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 40.600, "sum" : 3000.34, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:32:38]execute_script... [15:32: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)672983", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 40.600, "sum" : 3000.34, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:32:38]POST & json_proto [15:32:38]process_json_proto [15:32:38]json parsed OK: [15:32:38]protocol is kg_v1.0 [15:32:38]action value=close_receipt [15:32:38]process_action close_receipt [15:32:38]cmd_close_receipt [15:32:38]MH_GetDate [15:32:38]Write to MH i2c: F0 00 00 79 B7 1F [15:32:38]Write i2c OK [15:32:38]MH_I2C_Read... [15:32:38]Read from MH i2c: F0 [15:32:38]MH_I2C_Read... [15:32:38]Read from MH i2c: F0 09 00 [15:32:38]MH_I2C_Read... [15:32:38]Read from MH i2c: F0 09 00 79 B7 00 23 FA 72 66 BD 8F 7C 64 49 [15:32:38]GetLastDocTimeStamp 1718810664 [15:32:38]current date 1718811171 [15:32:38]FM_GetShiftState [15:32:38]SAM_PROTO_GetShiftState [15:32:38]wFMCommunicate request_size=4 [15:32:38]MH_SAM_APDU [15:32:38]CAPDU: 80 13 01 00 [15:32:38]Write to MH i2c: E2 08 00 7A B7 80 13 01 00 00 00 00 00 AE [15:32:38]Write i2c OK [15:32:38]MH_I2C_Read... [15:32:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:32:38]Read from MH i2c: E2 [15:32:38]MH_I2C_Read... [15:32:38]Read from MH i2c: E2 0E 00 [15:32:38]MH_I2C_Read... [15:32:38]Read from MH i2c: E2 0E 00 7A B7 00 09 00 01 04 26 72 66 00 00 00 00 90 00 BC [15:32:38]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [15:32:38]wFMCommunicate OK [15:32:38]SAM_PROTO_GetShiftState done [15:32:38]FM_GetShiftState done [15:32:38]opened in 1718756868 [15:32:38]opened+sec_in_day 1718843268 [15:32:38]quantity*price = 300034 [15:32:38]sum+1 = 300035 [15:32:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.34 ИТОГО: 3000.00 Внесено: 3000.00 СДАЧА: 0.00 НСП 1% : 26.55 НДС 12% : 318.62 Наличными: 3000.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 140 19.06.2024 15:32 Смена: 353 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103710 ФПД: 85913972665988 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T153251&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103710&fm=85913972665988&tin=02508201610067®Number=0000000000092785&sum=300000 [15:32:39]StoreToDocumentArchive [15:32:39]shift 353 fd 103710 [15:32:39]save to /storage/0353/doc_00103710 [15:32:39]save last doc name /storage/0353/doc_00103710 to /storage/kkm_last_doc_name [15:32:39]save OK [15:32:39]Clear old archive folders... [15:32:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:32:39]tlvbuf is 014465B0 [15:32:39]SAM_PROTO_ClearQueue [15:32:39]wFMCommunicate request_size=4 [15:32:39]MH_SAM_APDU [15:32:39]CAPDU: 80 09 00 00 [15:32:39]Write to MH i2c: E2 08 00 87 B7 80 09 00 00 00 00 00 00 B0 [15:32:39]Write i2c OK [15:32:39]MH_I2C_Read... [15:32:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:32:39]Read from MH i2c: E2 [15:32:39]MH_I2C_Read... [15:32:39]Read from MH i2c: E2 03 00 [15:32:39]MH_I2C_Read... [15:32:39]Read from MH i2c: E2 03 00 87 B7 00 90 00 B2 [15:32:39]RAPDU: 90 00 [15:32:39]wFMCommunicate OK [15:32:39]SAM_PROTO_ClearQueue done [15:32:39]KKMCreateOFDPacket [15:32:39]OFDProtocolAddRootSTLVToBuf [15:32:39]FM_MakeSignedData [15:32:39]FM_MakeSignedData [15:32:39]SAM_PROTO_SignData [15:32:39]wFMCommunicate request_size=4 [15:32:39]MH_SAM_APDU [15:32:39]CAPDU: 80 0D 01 02 [15:32:39]Write to MH i2c: E2 08 00 88 B7 80 0D 01 02 00 00 00 00 B8 [15:32:39]Write i2c OK [15:32:39]MH_I2C_Read... [15:32:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:32:39]Read from MH i2c: E2 [15:32:39]MH_I2C_Read... [15:32:39]Read from MH i2c: E2 03 00 [15:32:39]MH_I2C_Read... [15:32:39]Read from MH i2c: E2 03 00 88 B7 00 90 00 B3 [15:32:39]RAPDU: 90 00 [15:32:39]wFMCommunicate OK [15:32:39]wFMCommunicate request_size=255 [15:32:39]MH_SAM_APDU [15:32:39]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 98 9E 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 02 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 00 00 00 F4 03 04 00 23 FA 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 1E 95 01 00 35 04 06 00 4E [15:32:39]Write to MH i2c: E2 02 01 89 B7 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 98 9E 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 02 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 00 00 00 F4 03 04 00 23 FA 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 1E 95 01 00 35 04 06 00 4E 00 00 C4 [15:32:39]Write i2c OK [15:32:39]MH_I2C_Read... [15:32:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:32:39]Read from MH i2c: E2 [15:32:39]MH_I2C_Read... [15:32:39]Read from MH i2c: E2 03 00 [15:32:39]MH_I2C_Read... [15:32:39]Read from MH i2c: E2 03 00 89 B7 00 90 00 B4 [15:32:39]RAPDU: 90 00 [15:32:39]wFMCommunicate OK [15:32:39]wFMCommunicate request_size=10 [15:32:39]MH_SAM_APDU [15:32:39]CAPDU: 80 0D 02 02 05 23 67 D2 6E 84 [15:32:39]Write to MH i2c: E2 0D 00 8A B7 80 0D 02 02 05 00 23 67 D2 6E 84 00 00 13 [15:32:39]Write i2c OK [15:32:39]MH_I2C_Read... [15:32:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:32:39]Read from MH i2c: E2 [15:32:39]MH_I2C_Read... [15:32:39]Read from MH i2c: E2 03 00 [15:32:39]MH_I2C_Read... [15:32:39]Read from MH i2c: E2 03 00 8A B7 00 90 00 B5 [15:32:39]RAPDU: 90 00 [15:32:39]wFMCommunicate OK [15:32:39]wFMCommunicate request_size=4 [15:32:39]MH_SAM_APDU [15:32:39]CAPDU: 80 0D 03 02 [15:32:39]Write to MH i2c: E2 08 00 8B B7 80 0D 03 02 00 00 00 00 BD [15:32:39]Write i2c OK [15:32:39]MH_I2C_Read... [15:32:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:32:39]Read from MH i2c: E2 [15:32:39]MH_I2C_Read... [15:32:39]Read from MH i2c: E2 0B 00 [15:32:39]MH_I2C_Read... [15:32:39]Read from MH i2c: E2 0B 00 8B B7 00 06 1E EB 79 E8 72 68 19 90 00 21 [15:32:39]RAPDU: 06 1E EB 79 E8 72 68 19 90 00 [15:32:39]wFMCommunicate OK [15:32:39]SAM_PROTO_SignData done [15:32:39]FM_MakeSignedData done [15:32:39]CreateOFDProtocolMessage [15:32:39]wFMCommunicate request_size=4 [15:32:39]MH_SAM_APDU [15:32:39]CAPDU: 80 11 00 00 [15:32:39]Write to MH i2c: E2 08 00 8C B7 80 11 00 00 00 00 00 00 BD [15:32:39]Write i2c OK [15:32:39]MH_I2C_Read... [15:32:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:32:39]Read from MH i2c: E2 [15:32:39]MH_I2C_Read... [15:32:39]Read from MH i2c: E2 17 00 [15:32:39]MH_I2C_Read... [15:32:39]Read from MH i2c: E2 17 00 8C B7 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 10 [15:32:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [15:32:39]wFMCommunicate OK [15:32:39]CreateOFDProtocolMessage done [15:32:39]OFDSenderStorePacket 103710 [15:32:39]StoreOFDPacket docnum=103710 [15:32:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 78 F3 07 01 3C 6A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 98 9E 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 02 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 00 00 00 F4 03 04 00 23 FA 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 1E 95 01 00 35 04 06 00 4E 23 67 D2 6E 84 06 1E EB 79 E8 72 68 19 [15:32:39]CheckFolder [15:32:39]dirname=/storage/ofd_packets [15:32:39]CheckFolder done [15:32:39]ProducePacketName [15:32:39]name=ofd_packets/00103710 [15:32:39]NVStorageSaveData ofd_packets/00103710 [15:32:39]File name is /storage/ofd_packets/00103710 [15:32:39]Write 301 bytes [15:32:39]NVStorageSaveData done [15:32:39]OFDSenderStorePacket done [15:32:39]KKMCreateOFDPacket done [15:32:39]NVStorageSaveData kkm_last_timestamp [15:32:39]File name is /storage/kkm_last_timestamp [15:32:39]Write 4 bytes [15:32:39]NVStorageSaveData done [15:32:39]ExternCall_PrintAddStr [15:32:39]wPrintStart [15:32:39]Write to MH i2c: 01 00 00 8D B7 44 [15:32:39]Write i2c OK [15:32:39]MH_I2C_Read... [15:32:39]Read from MH i2c: 01 [15:32:39]MH_I2C_Read... [15:32:39]Read from MH i2c: 01 07 00 [15:32:39]MH_I2C_Read... [15:32:39]Read from MH i2c: 01 07 00 8D B7 00 00 00 00 00 FF 0F 59 [15:32:39]RasterBufferAndPrint [15:32:39]line Счет N : (1)672983 [15:32:39]line ИНН: 02508201610067 [15:32:39]line Контрольно-Кассовый Чек [15:32:39]line ПРОДАЖА [15:32:39]line ТРК (МРК, ГНК) : 41 [15:32:39]line Товар: 2710124500 [15:32:39]line Аи-95-К-5 [15:32:39]line 40.600 * 73.90 [15:32:39]line = 3000.34 [15:32:39]line НДС 12% НСП 1% [15:32:39]line > о реализуемом товаре [15:32:39]line ОКРУГЛЕНИЕ: -0.34 [15:32:39]line ИТОГО: 3000.00 [15:32:39]line Внесено: 3000.00 [15:32:39]line СДАЧА: 0.00 [15:32:39]line НСП 1% : 26.55 [15:32:39]line НДС 12% : 318.62 [15:32:39]line Наличными: 3000.00 [15:32:39]line Безнал.: 0.00 [15:32:39]line Место: АЗС № 120 "Партнер Нефть" [15:32:39]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [15:32:39]line СНО: Общий режим [15:32:39]line Чек 140 19.06.2024 15:32 [15:32:39]line Смена: 353 ФФД: 1.0 [15:32:39]line ЗНМ: 0300000164 [15:32:39]line РНМ: 0000000000092785 [15:32:39]line Версия ККМ: 001 [15:32:39]line ФМ: 0000000000875093 [15:32:39]line ФД: 103710 [15:32:39]line ФПД: 85913972665988 [15:32:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T153251&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103710&fm=85913972665988&tin=02508201610067®Number=0000000000092785&sum=300000 [15:32:40]OFD Sender: Processing packet 103710 [packets to send 17, broken 16] [15:32:40]ProducePacketName [15:32:40]name=ofd_packets/00103710 [15:32:40]OFD Sender: To server: pG, [15:32:40]CommunicateWithHost lk.salyk.kg:30040 [15:32:40]ConnectInit lk.salyk.kg [15:32:40]written 0, free lines is 4095 [15:32:40]Connected sock=10 [15:32: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 39 33 0F 01 00 00 78 F3 07 01 3C 6A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 98 9E 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 02 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 00 00 00 F4 03 04 00 23 FA 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 1E 95 01 00 35 04 06 00 4E 23 67 D2 6E 84 06 1E EB 79 E8 72 68 19 [15:32: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 39 33 4F 00 00 00 E9 AE 47 00 C2 3D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 1E 95 01 00 F4 03 04 00 AB A0 72 66 B6 04 01 00 00 B3 7F F5 24 A7 F4 F5 E7 [15:32:40]CommunicateWithHost err = 0 [15:32:40]CheckOFDResponse [15:32:40]1017 (14) - 77093643461234 [15:32:40]1041 (16) - 0000000000875093 [15:32:40]1040 (4) - 103710 [15:32:40]1012 (4) - 19.06.2024 09:11 [15:32:40]1206 (1) - 0 [15:32:40]OFD Sender: Remove packet 103710 [15:32:40]ProducePacketName [15:32:40]name=ofd_packets/00103710 [15:32:40]NVStorageDeleteData [15:32:40]Write to MH i2c: 01 00 00 B8 B7 6F [15:32:40]Write i2c OK [15:32:40]MH_I2C_Read... [15:32:40]Read from MH i2c: 01 [15:32:40]MH_I2C_Read... [15:32:40]Read from MH i2c: 01 07 00 [15:32:40]MH_I2C_Read... [15:32:40]Read from MH i2c: 01 07 00 B8 B7 00 00 00 00 00 E4 0C 66 [15:32:40]RasterBufferAndPrint [15:32:40]line [15:32:40]line [15:32:40]line [15:32:40]line [15:32:40]line [15:32:40]written 0, free lines is 3306 [15:32:40]MH_Cut [15:32:40]Write to MH i2c: D1 01 00 BF B7 01 48 [15:32:40]Write i2c OK [15:32:40]MH_I2C_Read... [15:32:40]Read from MH i2c: D1 [15:32:40]MH_I2C_Read... [15:32:40]Read from MH i2c: D1 01 00 [15:32:40]MH_I2C_Read... [15:32:40]Read from MH i2c: D1 01 00 BF B7 00 47 [15:32:40]Write to MH i2c: 01 00 00 C0 B7 77 [15:32:40]Write i2c OK [15:32:40]MH_I2C_Read... [15:32:41]OFD Sender: No OFD packet to send [15:32:41]*** Cut start [15:32:41]*** Partial cut [15:32:41]*** CUTSNS_PIN = 1 [15:32:41]*** CUTSNS_PIN = 0 [15:32:41]*** Brake cut motor [15:32:42]Read from MH i2c: 01 [15:32:42]MH_I2C_Read... [15:32:42]*** Stop cut motor [15:32:42]*** Cut end [15:32:42]Read from MH i2c: 01 07 00 [15:32:42]MH_I2C_Read... [15:32:42]Read from MH i2c: 01 07 00 C0 B7 00 00 00 00 00 FF 0F 8C [15:32:42]process_action close_receipt done [15:32:42]requested_data is exist [15:32:42]produce_requested_data [15:32:42]requested_item fm.sn is exist - process it [15:32:42]wFMCommunicate request_size=4 [15:32:42]MH_SAM_APDU [15:32:42]CAPDU: 80 11 00 00 [15:32:42]Write to MH i2c: E2 08 00 C1 B7 80 11 00 00 00 00 00 00 F2 [15:32:42]Write i2c OK [15:32:42]MH_I2C_Read... [15:32:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:32:42]Read from MH i2c: E2 [15:32:42]MH_I2C_Read... [15:32:42]Read from MH i2c: E2 17 00 [15:32:42]MH_I2C_Read... [15:32:42]Read from MH i2c: E2 17 00 C1 B7 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 45 [15:32:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [15:32:42]wFMCommunicate OK [15:32:42]requested_item fd.num is exist - process it [15:32:42]SAM_PROTO_GetFieldsCounters [15:32:42]wFMCommunicate request_size=4 [15:32:42]MH_SAM_APDU [15:32:42]CAPDU: 80 13 00 00 [15:32:42]Write to MH i2c: E2 08 00 C2 B7 80 13 00 00 00 00 00 00 F5 [15:32:42]Write i2c OK [15:32:42]MH_I2C_Read... [15:32:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:32:42]Read from MH i2c: E2 [15:32:42]MH_I2C_Read... [15:32:42]Read from MH i2c: E2 62 00 [15:32:42]MH_I2C_Read... [15:32:42]Read from MH i2c: E2 62 00 C2 B7 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 1E 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 8C 00 00 00 5E 04 04 00 8C 00 00 00 57 04 04 00 8D 00 00 00 19 04 04 00 00 00 00 00 90 00 D6 [15:32: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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 1E 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 8C 00 00 00 5E 04 04 00 8C 00 00 00 57 04 04 00 8D 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:32:42]wFMCommunicate OK [15:32:42]SAM_PROTO_GetFieldsCounters done [15:32:42]requested_item shift.num is exist - process it [15:32:42]requested_item shift.opened is exist - process it [15:32:42]req_shift_opened [15:32:42]FM_GetShiftState [15:32:42]SAM_PROTO_GetShiftState [15:32:42]wFMCommunicate request_size=4 [15:32:42]MH_SAM_APDU [15:32:42]CAPDU: 80 13 01 00 [15:32:42]Write to MH i2c: E2 08 00 C3 B7 80 13 01 00 00 00 00 00 F7 [15:32:42]Write i2c OK [15:32:42]MH_I2C_Read... [15:32:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:32:42]Read from MH i2c: E2 [15:32:42]MH_I2C_Read... [15:32:42]Read from MH i2c: E2 0E 00 [15:32:42]MH_I2C_Read... [15:32:42]Read from MH i2c: E2 0E 00 C3 B7 00 09 00 01 04 26 72 66 00 00 00 00 90 00 05 [15:32:42]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [15:32:42]wFMCommunicate OK [15:32:42]SAM_PROTO_GetShiftState done [15:32:42]FM_GetShiftState done [15:32:42]req_shift_opened done [15:32:42]requested_item shift.open_date is exist - process it [15:32:42]req_shift_open_date [15:32:42]req_shift_open_date done [15:32:42]produce_requested_data done [15:32:42]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103710,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [15:32:42]process_action_free close_receipt [15:32:42]json_value_free [15:32:42]json_value_free done [15:32:42]process_json_proto returns [15:32:42]Send response to host [15:32:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103710,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [15:32:42]free response buf [15:32:42]execute_script done [15:32:42]execute_script returns [15:32:42]free content buf [15:32:42]Sock 7.Close socket [15:32:42]Sock 7.Thread stoped [15:32:46]OFD Sender: No OFD packet to send [15:32:51]OFD Sender: No OFD packet to send [15:32:56]OFD Sender: No OFD packet to send [15:33:01]OFD Sender: No OFD packet to send [15:33:06]OFD Sender: No OFD packet to send [15:33:11]OFD Sender: No OFD packet to send [15:33:16]OFD Sender: No OFD packet to send [15:33:21]OFD Sender: No OFD packet to send [15:33:26]OFD Sender: No OFD packet to send [15:33:31]OFD Sender: No OFD packet to send [15:33:36]OFD Sender: No OFD packet to send [15:33:41]OFD Sender: No OFD packet to send [15:33:46]OFD Sender: No OFD packet to send [15:33:51]OFD Sender: No OFD packet to send [15:33:56]OFD Sender: No OFD packet to send [15:34:01]OFD Sender: No OFD packet to send [15:34:06]OFD Sender: No OFD packet to send [15:34:11]OFD Sender: No OFD packet to send [15:34:16]OFD Sender: No OFD packet to send [15:34:21]OFD Sender: No OFD packet to send [15:34:26]OFD Sender: No OFD packet to send [15:34:31]OFD Sender: No OFD packet to send [15:34:36]OFD Sender: No OFD packet to send [15:34:41]OFD Sender: No OFD packet to send [15:34:46]OFD Sender: No OFD packet to send [15:34:51]OFD Sender: No OFD packet to send [15:34:56]OFD Sender: No OFD packet to send [15:35:01]OFD Sender: No OFD packet to send [15:35:06]OFD Sender: No OFD packet to send [15:35:11]OFD Sender: No OFD packet to send [15:35:16]OFD Sender: No OFD packet to send [15:35:21]OFD Sender: No OFD packet to send [15:35:26]OFD Sender: No OFD packet to send [15:35:31]OFD Sender: No OFD packet to send [15:35:41]OFD Sender: No OFD packet to send [15:35:46]OFD Sender: No OFD packet to send [15:35:51]OFD Sender: No OFD packet to send [15:35:56]OFD Sender: No OFD packet to send [15:36:01]OFD Sender: No OFD packet to send [15:36:06]OFD Sender: No OFD packet to send [15:36:11]OFD Sender: No OFD packet to send [15:36:16]OFD Sender: No OFD packet to send [15:36:21]OFD Sender: No OFD packet to send [15:36:26]OFD Sender: No OFD packet to send [15:36:31]OFD Sender: No OFD packet to send [15:36:36]OFD Sender: No OFD packet to send [15:36:41]OFD Sender: No OFD packet to send [15:36:46]OFD Sender: No OFD packet to send [15:36:51]accept exits with 9 [15:36:51]New connection [15:36:51]New thread 3067084132 created [15:36:51]Thread 3067227492 joined [15:36:51]Waiting for new connection... [15:36:51] Sock 9.Parse request [15:36:51]Sock 9.Check first char [15:36:51]Sock 9.First char is OK [15:36:51]request: POST /json_proto HTTP/1.0 [15:36:51]Method: POST [15:36:51]URL: /json_proto [15:36:51]Method is POST - this is cgi request [15:36:51]url: /json_proto [15:36:51]query_string will be loaded in cgi processing [15:36:51]execute_cgi json_proto POST (null) [15:36:51]execute_cgi path=json_proto method=POST [15:36:51]POST find Content-Length [15:36:51]Host: 172.17.38.133:8080 [15:36:51]Content-Length: 687 [15:36:51]Content-Type: application/json [15:36:51] [15:36:51]POST finish read [15:36:51]Found Content-Length = 687 [15:36:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672984", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 27.440, "sum" : 2000.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:36:51]execute_script... [15:36: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)672984", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 27.440, "sum" : 2000.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:36:51]POST & json_proto [15:36:51]process_json_proto [15:36:51]json parsed OK: [15:36:51]protocol is kg_v1.0 [15:36:51]action value=close_receipt [15:36:51]process_action close_receipt [15:36:51]cmd_close_receipt [15:36:51]MH_GetDate [15:36:51]Write to MH i2c: F0 00 00 C4 B7 6A [15:36:51]Write i2c OK [15:36:51]MH_I2C_Read... [15:36:51]Read from MH i2c: F0 [15:36:51]MH_I2C_Read... [15:36:51]Read from MH i2c: F0 09 00 [15:36:51]MH_I2C_Read... [15:36:51]Read from MH i2c: F0 09 00 C4 B7 00 20 FB 72 66 BD 8F 7C 64 92 [15:36:51]GetLastDocTimeStamp 1718811171 [15:36:51]current date 1718811424 [15:36:51]FM_GetShiftState [15:36:51]SAM_PROTO_GetShiftState [15:36:51]wFMCommunicate request_size=4 [15:36:51]MH_SAM_APDU [15:36:51]CAPDU: 80 13 01 00 [15:36:51]Write to MH i2c: E2 08 00 C5 B7 80 13 01 00 00 00 00 00 F9 [15:36:51]Write i2c OK [15:36:51]MH_I2C_Read... [15:36:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:36:51]Read from MH i2c: E2 [15:36:51]MH_I2C_Read... [15:36:51]Read from MH i2c: E2 0E 00 [15:36:51]MH_I2C_Read... [15:36:51]Read from MH i2c: E2 0E 00 C5 B7 00 09 00 01 04 26 72 66 00 00 00 00 90 00 07 [15:36:51]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [15:36:51]wFMCommunicate OK [15:36:51]SAM_PROTO_GetShiftState done [15:36:51]FM_GetShiftState done [15:36:51]opened in 1718756868 [15:36:51]opened+sec_in_day 1718843268 [15:36:51]quantity*price = 200037 [15:36:51]sum+1 = 200039 [15:36:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.43 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 141 19.06.2024 15:37 Смена: 353 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103711 ФПД: 17588068257521 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T153704&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103711&fm=17588068257521&tin=02508201610067®Number=0000000000092785&sum=200000 [15:36:52]StoreToDocumentArchive [15:36:52]shift 353 fd 103711 [15:36:52]save to /storage/0353/doc_00103711 [15:36:52]save last doc name /storage/0353/doc_00103711 to /storage/kkm_last_doc_name [15:36:52]save OK [15:36:52]Clear old archive folders... [15:36:52]ProcessDocumentItem done err = 0, tmpTLVsize=252 [15:36:52]tlvbuf is 0147BAD0 [15:36:52]SAM_PROTO_ClearQueue [15:36:52]wFMCommunicate request_size=4 [15:36:52]MH_SAM_APDU [15:36:52]CAPDU: 80 09 00 00 [15:36:52]Write to MH i2c: E2 08 00 D2 B7 80 09 00 00 00 00 00 00 FB [15:36:52]Write i2c OK [15:36:52]MH_I2C_Read... [15:36:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:36:52]Read from MH i2c: E2 [15:36:52]MH_I2C_Read... [15:36:52]Read from MH i2c: E2 03 00 [15:36:52]MH_I2C_Read... [15:36:52]Read from MH i2c: E2 03 00 D2 B7 00 90 00 FD [15:36:52]RAPDU: 90 00 [15:36:52]wFMCommunicate OK [15:36:52]SAM_PROTO_ClearQueue done [15:36:52]KKMCreateOFDPacket [15:36:52]OFDProtocolAddRootSTLVToBuf [15:36:52]FM_MakeSignedData [15:36:52]FM_MakeSignedData [15:36:52]SAM_PROTO_SignData [15:36:52]wFMCommunicate request_size=4 [15:36:52]MH_SAM_APDU [15:36:52]CAPDU: 80 0D 01 02 [15:36:52]Write to MH i2c: E2 08 00 D3 B7 80 0D 01 02 00 00 00 00 03 [15:36:52]Write i2c OK [15:36:52]MH_I2C_Read... [15:36:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:36:52]Read from MH i2c: E2 [15:36:52]MH_I2C_Read... [15:36:52]Read from MH i2c: E2 03 00 [15:36:52]MH_I2C_Read... [15:36:52]Read from MH i2c: E2 03 00 D3 B7 00 90 00 FE [15:36:52]RAPDU: 90 00 [15:36:52]wFMCommunicate OK [15:36:52]wFMCommunicate request_size=255 [15:36:52]MH_SAM_APDU [15:36:52]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 30 6B 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 66 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 20 FB 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 1F 95 01 00 35 04 06 00 [15:36:52]Write to MH i2c: E2 02 01 D4 B7 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 30 6B 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 66 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 20 FB 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 1F 95 01 00 35 04 06 00 00 00 69 [15:36:52]Write i2c OK [15:36:52]MH_I2C_Read... [15:36:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:36:52]Read from MH i2c: E2 [15:36:52]MH_I2C_Read... [15:36:52]Read from MH i2c: E2 03 00 [15:36:52]MH_I2C_Read... [15:36:52]Read from MH i2c: E2 03 00 D4 B7 00 90 00 FF [15:36:52]RAPDU: 90 00 [15:36:52]wFMCommunicate OK [15:36:52]wFMCommunicate request_size=11 [15:36:52]MH_SAM_APDU [15:36:52]CAPDU: 80 0D 02 02 06 0F FF 0A 8F 8E F1 [15:36:52]Write to MH i2c: E2 0E 00 D5 B7 80 0D 02 02 06 00 0F FF 0A 8F 8E F1 00 00 38 [15:36:52]Write i2c OK [15:36:52]MH_I2C_Read... [15:36:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:36:52]Read from MH i2c: E2 [15:36:52]MH_I2C_Read... [15:36:52]Read from MH i2c: E2 03 00 [15:36:52]MH_I2C_Read... [15:36:52]Read from MH i2c: E2 03 00 D5 B7 00 90 00 00 [15:36:52]RAPDU: 90 00 [15:36:52]wFMCommunicate OK [15:36:52]wFMCommunicate request_size=4 [15:36:52]MH_SAM_APDU [15:36:52]CAPDU: 80 0D 03 02 [15:36:52]Write to MH i2c: E2 08 00 D6 B7 80 0D 03 02 00 00 00 00 08 [15:36:52]Write i2c OK [15:36:52]MH_I2C_Read... [15:36:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:36:52]Read from MH i2c: E2 [15:36:52]MH_I2C_Read... [15:36:52]Read from MH i2c: E2 0B 00 [15:36:52]MH_I2C_Read... [15:36:52]Read from MH i2c: E2 0B 00 D6 B7 00 CF C5 88 8A 76 29 10 60 90 00 BE [15:36:52]RAPDU: CF C5 88 8A 76 29 10 60 90 00 [15:36:52]wFMCommunicate OK [15:36:52]SAM_PROTO_SignData done [15:36:52]FM_MakeSignedData done [15:36:52]CreateOFDProtocolMessage [15:36:52]wFMCommunicate request_size=4 [15:36:52]MH_SAM_APDU [15:36:52]CAPDU: 80 11 00 00 [15:36:52]Write to MH i2c: E2 08 00 D7 B7 80 11 00 00 00 00 00 00 08 [15:36:52]Write i2c OK [15:36:52]MH_I2C_Read... [15:36:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:36:52]Read from MH i2c: E2 [15:36:52]MH_I2C_Read... [15:36:52]Read from MH i2c: E2 17 00 [15:36:52]MH_I2C_Read... [15:36:52]Read from MH i2c: E2 17 00 D7 B7 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 5B [15:36:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [15:36:52]wFMCommunicate OK [15:36:52]CreateOFDProtocolMessage done [15:36:52]OFDSenderStorePacket 103711 [15:36:52]StoreOFDPacket docnum=103711 [15:36:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 DD 32 08 01 38 2B 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 30 6B 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 66 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 20 FB 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 1F 95 01 00 35 04 06 00 0F FF 0A 8F 8E F1 CF C5 88 8A 76 29 10 60 [15:36:52]CheckFolder [15:36:52]dirname=/storage/ofd_packets [15:36:52]CheckFolder done [15:36:52]ProducePacketName [15:36:52]name=ofd_packets/00103711 [15:36:52]NVStorageSaveData ofd_packets/00103711 [15:36:52]File name is /storage/ofd_packets/00103711 [15:36:52]Write 302 bytes [15:36:52]NVStorageSaveData done [15:36:52]OFDSenderStorePacket done [15:36:52]KKMCreateOFDPacket done [15:36:52]NVStorageSaveData kkm_last_timestamp [15:36:52]File name is /storage/kkm_last_timestamp [15:36:52]Write 4 bytes [15:36:52]NVStorageSaveData done [15:36:52]ExternCall_PrintAddStr [15:36:52]wPrintStart [15:36:52]Write to MH i2c: 01 00 00 D8 B7 8F [15:36:52]Write i2c OK [15:36:52]MH_I2C_Read... [15:36:52]Read from MH i2c: 01 [15:36:52]MH_I2C_Read... [15:36:52]Read from MH i2c: 01 07 00 [15:36:52]MH_I2C_Read... [15:36:52]Read from MH i2c: 01 07 00 D8 B7 00 00 00 00 00 FF 0F A4 [15:36:52]RasterBufferAndPrint [15:36:52]line Счет N : (1)672984 [15:36:52]line ИНН: 02508201610067 [15:36:52]line Контрольно-Кассовый Чек [15:36:52]line ПРОДАЖА [15:36:52]line ТРК (МРК, ГНК) : 11 [15:36:52]line Товар: 2710194210 [15:36:52]line ДТ(л)-К-5 [15:36:52]line 27.440 * 72.90 [15:36:52]line = 2000.38 [15:36:52]line НДС 12% НСП 1% [15:36:52]line > о реализуемом товаре [15:36:52]line ОКРУГЛЕНИЕ: -0.38 [15:36:52]line ИТОГО: 2000.00 [15:36:52]line Внесено: 2000.00 [15:36:52]line СДАЧА: 0.00 [15:36:52]line НСП 1% : 17.70 [15:36:52]line НДС 12% : 212.43 [15:36:52]line Наличными: 2000.00 [15:36:52]line Безнал.: 0.00 [15:36:52]line Место: АЗС № 120 "Партнер Нефть" [15:36:52]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [15:36:52]line СНО: Общий режим [15:36:52]line Чек 141 19.06.2024 15:37 [15:36:52]line Смена: 353 ФФД: 1.0 [15:36:52]line ЗНМ: 0300000164 [15:36:52]line РНМ: 0000000000092785 [15:36:52]line Версия ККМ: 001 [15:36:52]line ФМ: 0000000000875093 [15:36:52]line ФД: 103711 [15:36:52]line ФПД: 17588068257521 [15:36:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T153704&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103711&fm=17588068257521&tin=02508201610067®Number=0000000000092785&sum=200000 [15:36:53]OFD Sender: Processing packet 103711 [packets to send 17, broken 16] [15:36:53]ProducePacketName [15:36:53]name=ofd_packets/00103711 [15:36:53]OFD Sender: To server: pG, [15:36:53]CommunicateWithHost lk.salyk.kg:30040 [15:36:53]ConnectInit lk.salyk.kg [15:36:53]written 0, free lines is 4095 [15:36:53]Connected sock=11 [15:36: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 39 33 10 01 00 00 DD 32 08 01 38 2B 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 30 6B 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 66 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 20 FB 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 1F 95 01 00 35 04 06 00 0F FF 0A 8F 8E F1 CF C5 88 8A 76 29 10 60 [15:36: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 39 33 4F 00 00 00 1B 8E 47 00 0D 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 39 33 10 04 04 00 1F 95 01 00 F4 03 04 00 A8 A1 72 66 B6 04 01 00 00 B1 69 EF BE AF D0 81 FD [15:36:53]CommunicateWithHost err = 0 [15:36:53]CheckOFDResponse [15:36:53]1017 (14) - 77093643461234 [15:36:53]1041 (16) - 0000000000875093 [15:36:53]1040 (4) - 103711 [15:36:53]1012 (4) - 19.06.2024 09:15 [15:36:53]1206 (1) - 0 [15:36:53]OFD Sender: Remove packet 103711 [15:36:53]ProducePacketName [15:36:53]name=ofd_packets/00103711 [15:36:53]NVStorageDeleteData [15:36:53]Write to MH i2c: 01 00 00 03 B8 BB [15:36:53]Write i2c OK [15:36:53]MH_I2C_Read... [15:36:53]Read from MH i2c: 01 [15:36:53]MH_I2C_Read... [15:36:53]Read from MH i2c: 01 07 00 [15:36:53]MH_I2C_Read... [15:36:53]Read from MH i2c: 01 07 00 03 B8 00 00 00 00 00 EE 0C BC [15:36:53]RasterBufferAndPrint [15:36:53]line [15:36:53]line [15:36:53]line [15:36:53]line [15:36:53]line [15:36:53]written 0, free lines is 3319 [15:36:53]MH_Cut [15:36:53]Write to MH i2c: D1 01 00 0A B8 01 94 [15:36:53]Write i2c OK [15:36:53]MH_I2C_Read... [15:36:53]Read from MH i2c: D1 [15:36:53]MH_I2C_Read... [15:36:53]Read from MH i2c: D1 01 00 [15:36:53]MH_I2C_Read... [15:36:53]Read from MH i2c: D1 01 00 0A B8 00 93 [15:36:53]Write to MH i2c: 01 00 00 0B B8 C3 [15:36:53]Write i2c OK [15:36:53]MH_I2C_Read... [15:36:54]OFD Sender: No OFD packet to send [15:36:54]*** Cut start [15:36:54]*** Partial cut [15:36:54]*** CUTSNS_PIN = 1 [15:36:54]*** CUTSNS_PIN = 0 [15:36:54]*** Brake cut motor [15:36:55]Read from MH i2c: 01 [15:36:55]MH_I2C_Read... [15:36:55]*** Stop cut motor [15:36:55]*** Cut end [15:36:55]Read from MH i2c: 01 07 00 [15:36:55]MH_I2C_Read... [15:36:55]Read from MH i2c: 01 07 00 0B B8 00 00 00 00 00 FF 0F D8 [15:36:55]process_action close_receipt done [15:36:55]requested_data is exist [15:36:55]produce_requested_data [15:36:55]requested_item fm.sn is exist - process it [15:36:55]wFMCommunicate request_size=4 [15:36:55]MH_SAM_APDU [15:36:55]CAPDU: 80 11 00 00 [15:36:55]Write to MH i2c: E2 08 00 0C B8 80 11 00 00 00 00 00 00 3E [15:36:55]Write i2c OK [15:36:55]MH_I2C_Read... [15:36:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:36:55]Read from MH i2c: E2 [15:36:55]MH_I2C_Read... [15:36:55]Read from MH i2c: E2 17 00 [15:36:55]MH_I2C_Read... [15:36:55]Read from MH i2c: E2 17 00 0C B8 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 91 [15:36:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [15:36:55]wFMCommunicate OK [15:36:55]requested_item fd.num is exist - process it [15:36:55]SAM_PROTO_GetFieldsCounters [15:36:55]wFMCommunicate request_size=4 [15:36:55]MH_SAM_APDU [15:36:55]CAPDU: 80 13 00 00 [15:36:55]Write to MH i2c: E2 08 00 0D B8 80 13 00 00 00 00 00 00 41 [15:36:55]Write i2c OK [15:36:55]MH_I2C_Read... [15:36:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:36:55]Read from MH i2c: E2 [15:36:55]MH_I2C_Read... [15:36:55]Read from MH i2c: E2 62 00 [15:36:55]MH_I2C_Read... [15:36:55]Read from MH i2c: E2 62 00 0D B8 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 1F 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 8D 00 00 00 5E 04 04 00 8D 00 00 00 57 04 04 00 8E 00 00 00 19 04 04 00 00 00 00 00 90 00 26 [15:36: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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 1F 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 8D 00 00 00 5E 04 04 00 8D 00 00 00 57 04 04 00 8E 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:36:55]wFMCommunicate OK [15:36:55]SAM_PROTO_GetFieldsCounters done [15:36:55]requested_item shift.num is exist - process it [15:36:55]requested_item shift.opened is exist - process it [15:36:55]req_shift_opened [15:36:55]FM_GetShiftState [15:36:55]SAM_PROTO_GetShiftState [15:36:55]wFMCommunicate request_size=4 [15:36:55]MH_SAM_APDU [15:36:55]CAPDU: 80 13 01 00 [15:36:55]Write to MH i2c: E2 08 00 0E B8 80 13 01 00 00 00 00 00 43 [15:36:55]Write i2c OK [15:36:55]MH_I2C_Read... [15:36:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:36:55]Read from MH i2c: E2 [15:36:55]MH_I2C_Read... [15:36:55]Read from MH i2c: E2 0E 00 [15:36:55]MH_I2C_Read... [15:36:55]Read from MH i2c: E2 0E 00 0E B8 00 09 00 01 04 26 72 66 00 00 00 00 90 00 51 [15:36:55]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [15:36:55]wFMCommunicate OK [15:36:55]SAM_PROTO_GetShiftState done [15:36:55]FM_GetShiftState done [15:36:55]req_shift_opened done [15:36:55]requested_item shift.open_date is exist - process it [15:36:55]req_shift_open_date [15:36:55]req_shift_open_date done [15:36:55]produce_requested_data done [15:36:55]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103711,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [15:36:55]process_action_free close_receipt [15:36:55]json_value_free [15:36:55]json_value_free done [15:36:55]process_json_proto returns [15:36:55]Send response to host [15:36:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103711,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [15:36:55]free response buf [15:36:55]execute_script done [15:36:55]execute_script returns [15:36:55]free content buf [15:36:55]Sock 9.Close socket [15:36:55]Sock 9.Thread stoped [15:36:59]OFD Sender: No OFD packet to send [15:37:04]OFD Sender: No OFD packet to send [15:37:09]OFD Sender: No OFD packet to send [15:37:14]OFD Sender: No OFD packet to send [15:37:19]OFD Sender: No OFD packet to send [15:37:24]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]ConnectInit Can't connect to host [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:02]accept exits with 10 [15:38:02]New connection [15:38:02]New thread 3067227492 created [15:38:02]Thread 3067084132 joined [15:38:02]Waiting for new connection... [15:38:02] Sock 10.Parse request [15:38:02]Sock 10.Check first char [15:38:02]Sock 10.First char is OK [15:38:02]request: POST /json_proto HTTP/1.0 [15:38:02]Method: POST [15:38:02]URL: /json_proto [15:38:02]Method is POST - this is cgi request [15:38:02]url: /json_proto [15:38:02]query_string will be loaded in cgi processing [15:38:02]execute_cgi json_proto POST (null) [15:38:02]execute_cgi path=json_proto method=POST [15:38:02]POST find Content-Length [15:38:02]Host: 172.17.38.133:8080 [15:38:02]Content-Length: 682 [15:38:02]Content-Type: application/json [15:38:02] [15:38:02]POST finish read [15:38:02]Found Content-Length = 682 [15:38:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672985", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:38:02]execute_script... [15:38:02]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672985", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:38:02]POST & json_proto [15:38:02]process_json_proto [15:38:02]json parsed OK: [15:38:02]protocol is kg_v1.0 [15:38:02]action value=close_receipt [15:38:02]process_action close_receipt [15:38:02]cmd_close_receipt [15:38:02]MH_GetDate [15:38:02]Write to MH i2c: F0 00 00 0F B8 B6 [15:38:02]Write i2c OK [15:38:02]MH_I2C_Read... [15:38:02]Read from MH i2c: F0 [15:38:02]MH_I2C_Read... [15:38:02]Read from MH i2c: F0 09 00 [15:38:02]MH_I2C_Read... [15:38:02]Read from MH i2c: F0 09 00 0F B8 00 67 FB 72 66 BD 8F 7C 64 25 [15:38:02]GetLastDocTimeStamp 1718811424 [15:38:02]current date 1718811495 [15:38:02]FM_GetShiftState [15:38:02]SAM_PROTO_GetShiftState [15:38:02]wFMCommunicate request_size=4 [15:38:02]MH_SAM_APDU [15:38:02]CAPDU: 80 13 01 00 [15:38:02]Write to MH i2c: E2 08 00 10 B8 80 13 01 00 00 00 00 00 45 [15:38:02]Write i2c OK [15:38:02]MH_I2C_Read... [15:38:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:38:02]Read from MH i2c: E2 [15:38:02]MH_I2C_Read... [15:38:02]Read from MH i2c: E2 0E 00 [15:38:02]MH_I2C_Read... [15:38:02]Read from MH i2c: E2 0E 00 10 B8 00 09 00 01 04 26 72 66 00 00 00 00 90 00 53 [15:38:02]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [15:38:02]wFMCommunicate OK [15:38:02]SAM_PROTO_GetShiftState done [15:38:02]FM_GetShiftState done [15:38:02]opened in 1718756868 [15:38:02]opened+sec_in_day 1718843268 [15:38:02]quantity*price = 100064 [15:38:02]sum+1 = 100066 [15:38:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.65 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 142 19.06.2024 15:38 Смена: 353 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103712 ФПД: 129384030138894 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T153815&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103712&fm=129384030138894&tin=02508201610067®Number=0000000000092785&sum=100000 [15:38:04]StoreToDocumentArchive [15:38:04]shift 353 fd 103712 [15:38:04]save to /storage/0353/doc_00103712 [15:38:04]save last doc name /storage/0353/doc_00103712 to /storage/kkm_last_doc_name [15:38:04]save OK [15:38:04]Clear old archive folders... [15:38:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:38:04]tlvbuf is 016789B0 [15:38:04]SAM_PROTO_ClearQueue [15:38:04]wFMCommunicate request_size=4 [15:38:04]MH_SAM_APDU [15:38:04]CAPDU: 80 09 00 00 [15:38:04]Write to MH i2c: E2 08 00 1D B8 80 09 00 00 00 00 00 00 47 [15:38:04]Write i2c OK [15:38:04]MH_I2C_Read... [15:38:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:38:04]Read from MH i2c: E2 [15:38:04]MH_I2C_Read... [15:38:04]Read from MH i2c: E2 03 00 [15:38:04]MH_I2C_Read... [15:38:04]Read from MH i2c: E2 03 00 1D B8 00 90 00 49 [15:38:04]RAPDU: 90 00 [15:38:04]wFMCommunicate OK [15:38:04]SAM_PROTO_ClearQueue done [15:38:04]KKMCreateOFDPacket [15:38:04]OFDProtocolAddRootSTLVToBuf [15:38:04]FM_MakeSignedData [15:38:04]FM_MakeSignedData [15:38:04]SAM_PROTO_SignData [15:38:04]wFMCommunicate request_size=4 [15:38:04]MH_SAM_APDU [15:38:04]CAPDU: 80 0D 01 02 [15:38:04]Write to MH i2c: E2 08 00 1E B8 80 0D 01 02 00 00 00 00 4F [15:38:04]Write i2c OK [15:38:04]MH_I2C_Read... [15:38:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:38:04]Read from MH i2c: E2 [15:38:04]MH_I2C_Read... [15:38:04]Read from MH i2c: E2 03 00 [15:38:04]MH_I2C_Read... [15:38:04]Read from MH i2c: E2 03 00 1E B8 00 90 00 4A [15:38:04]RAPDU: 90 00 [15:38:04]wFMCommunicate OK [15:38:04]wFMCommunicate request_size=255 [15:38:04]MH_SAM_APDU [15:38:04]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 00 00 00 F4 03 04 00 67 FB 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 20 95 01 00 35 04 06 00 75 [15:38:04]Write to MH i2c: E2 02 01 1F B8 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 00 00 00 F4 03 04 00 67 FB 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 20 95 01 00 35 04 06 00 75 00 00 AE [15:38:04]Write i2c OK [15:38:04]MH_I2C_Read... [15:38:04]OFD Sender: No OFD packet to send [15:38:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:38:04]Read from MH i2c: E2 [15:38:04]MH_I2C_Read... [15:38:04]Read from MH i2c: E2 03 00 [15:38:04]MH_I2C_Read... [15:38:04]Read from MH i2c: E2 03 00 1F B8 00 90 00 4B [15:38:04]RAPDU: 90 00 [15:38:04]wFMCommunicate OK [15:38:04]wFMCommunicate request_size=10 [15:38:04]MH_SAM_APDU [15:38:04]CAPDU: 80 0D 02 02 05 AC 91 27 F2 0E [15:38:04]Write to MH i2c: E2 0D 00 20 B8 80 0D 02 02 05 00 AC 91 27 F2 0E 00 00 C0 [15:38:04]Write i2c OK [15:38:04]MH_I2C_Read... [15:38:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:38:04]Read from MH i2c: E2 [15:38:04]MH_I2C_Read... [15:38:04]Read from MH i2c: E2 03 00 [15:38:04]MH_I2C_Read... [15:38:04]Read from MH i2c: E2 03 00 20 B8 00 90 00 4C [15:38:04]RAPDU: 90 00 [15:38:04]wFMCommunicate OK [15:38:04]wFMCommunicate request_size=4 [15:38:04]MH_SAM_APDU [15:38:04]CAPDU: 80 0D 03 02 [15:38:04]Write to MH i2c: E2 08 00 21 B8 80 0D 03 02 00 00 00 00 54 [15:38:04]Write i2c OK [15:38:04]MH_I2C_Read... [15:38:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:38:04]Read from MH i2c: E2 [15:38:04]MH_I2C_Read... [15:38:04]Read from MH i2c: E2 0B 00 [15:38:04]MH_I2C_Read... [15:38:04]Read from MH i2c: E2 0B 00 21 B8 00 C1 46 6E 28 E6 87 37 8A 90 00 20 [15:38:04]RAPDU: C1 46 6E 28 E6 87 37 8A 90 00 [15:38:04]wFMCommunicate OK [15:38:04]SAM_PROTO_SignData done [15:38:04]FM_MakeSignedData done [15:38:04]CreateOFDProtocolMessage [15:38:04]wFMCommunicate request_size=4 [15:38:04]MH_SAM_APDU [15:38:04]CAPDU: 80 11 00 00 [15:38:04]Write to MH i2c: E2 08 00 22 B8 80 11 00 00 00 00 00 00 54 [15:38:04]Write i2c OK [15:38:04]MH_I2C_Read... [15:38:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:38:04]Read from MH i2c: E2 [15:38:04]MH_I2C_Read... [15:38:04]Read from MH i2c: E2 17 00 [15:38:04]MH_I2C_Read... [15:38:04]Read from MH i2c: E2 17 00 22 B8 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 A7 [15:38:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [15:38:04]wFMCommunicate OK [15:38:04]CreateOFDProtocolMessage done [15:38:04]OFDSenderStorePacket 103712 [15:38:04]StoreOFDPacket docnum=103712 [15:38:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 37 5D 07 01 54 FB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 00 00 00 F4 03 04 00 67 FB 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 20 95 01 00 35 04 06 00 75 AC 91 27 F2 0E C1 46 6E 28 E6 87 37 8A [15:38:04]CheckFolder [15:38:04]dirname=/storage/ofd_packets [15:38:04]CheckFolder done [15:38:04]ProducePacketName [15:38:04]name=ofd_packets/00103712 [15:38:04]NVStorageSaveData ofd_packets/00103712 [15:38:04]File name is /storage/ofd_packets/00103712 [15:38:04]Write 301 bytes [15:38:04]NVStorageSaveData done [15:38:04]OFDSenderStorePacket done [15:38:04]KKMCreateOFDPacket done [15:38:04]NVStorageSaveData kkm_last_timestamp [15:38:04]File name is /storage/kkm_last_timestamp [15:38:04]Write 4 bytes [15:38:04]NVStorageSaveData done [15:38:04]ExternCall_PrintAddStr [15:38:04]wPrintStart [15:38:04]Write to MH i2c: 01 00 00 23 B8 DB [15:38:04]Write i2c OK [15:38:04]MH_I2C_Read... [15:38:04]Read from MH i2c: 01 [15:38:04]MH_I2C_Read... [15:38:04]Read from MH i2c: 01 07 00 [15:38:04]MH_I2C_Read... [15:38:04]Read from MH i2c: 01 07 00 23 B8 00 00 00 00 00 FF 0F F0 [15:38:04]RasterBufferAndPrint [15:38:04]line Счет N : (1)672985 [15:38:04]line ИНН: 02508201610067 [15:38:04]line Контрольно-Кассовый Чек [15:38:04]line ПРОДАЖА [15:38:04]line ТРК (МРК, ГНК) : 32 [15:38:04]line Товар: 2710124130 [15:38:04]line Аи-92-К-5 [15:38:04]line 15.070 * 66.40 [15:38:04]line = 1000.65 [15:38:04]line НДС 12% НСП 1% [15:38:04]line > о реализуемом товаре [15:38:04]line ОКРУГЛЕНИЕ: -0.65 [15:38:04]line ИТОГО: 1000.00 [15:38:04]line Внесено: 1000.00 [15:38:04]line СДАЧА: 0.00 [15:38:04]line НСП 1% : 8.85 [15:38:04]line НДС 12% : 106.26 [15:38:04]line Наличными: 1000.00 [15:38:04]line Безнал.: 0.00 [15:38:04]line Место: АЗС № 120 "Партнер Нефть" [15:38:04]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [15:38:04]line СНО: Общий режим [15:38:04]line Чек 142 19.06.2024 15:38 [15:38:04]line Смена: 353 ФФД: 1.0 [15:38:04]line ЗНМ: 0300000164 [15:38:04]line РНМ: 0000000000092785 [15:38:04]line Версия ККМ: 001 [15:38:04]line ФМ: 0000000000875093 [15:38:04]line ФД: 103712 [15:38:04]line ФПД: 129384030138894 [15:38:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T153815&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103712&fm=129384030138894&tin=02508201610067®Number=0000000000092785&sum=100000 [15:38:04]written 0, free lines is 4095 [15:38:04]OFD Sender: Processing packet 103712 [packets to send 17, broken 16] [15:38:04]ProducePacketName [15:38:04]name=ofd_packets/00103712 [15:38:04]OFD Sender: To server: pG, [15:38:04]CommunicateWithHost lk.salyk.kg:30040 [15:38:04]ConnectInit lk.salyk.kg [15:38:04]Connected sock=9 [15:38: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 39 33 0F 01 00 00 37 5D 07 01 54 FB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 00 00 00 F4 03 04 00 67 FB 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 20 95 01 00 35 04 06 00 75 AC 91 27 F2 0E C1 46 6E 28 E6 87 37 8A [15:38:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 9E 91 47 00 03 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 39 33 10 04 04 00 20 95 01 00 F4 03 04 00 F0 A1 72 66 B6 04 01 00 00 DD 40 4A A3 7F 28 44 AD [15:38:05]CommunicateWithHost err = 0 [15:38:05]CheckOFDResponse [15:38:05]1017 (14) - 77093643461234 [15:38:05]1041 (16) - 0000000000875093 [15:38:05]1040 (4) - 103712 [15:38:05]1012 (4) - 19.06.2024 09:16 [15:38:05]1206 (1) - 0 [15:38:05]OFD Sender: Remove packet 103712 [15:38:05]ProducePacketName [15:38:05]name=ofd_packets/00103712 [15:38:05]NVStorageDeleteData [15:38:05]Write to MH i2c: 01 00 00 4E B8 06 [15:38:05]Write i2c OK [15:38:05]MH_I2C_Read... [15:38:05]Read from MH i2c: 01 [15:38:05]MH_I2C_Read... [15:38:05]Read from MH i2c: 01 07 00 [15:38:05]MH_I2C_Read... [15:38:05]Read from MH i2c: 01 07 00 4E B8 00 00 00 00 00 F5 0C 0E [15:38:05]RasterBufferAndPrint [15:38:05]line [15:38:05]line [15:38:05]line [15:38:05]line [15:38:05]line [15:38:05]written 0, free lines is 3327 [15:38:05]MH_Cut [15:38:05]Write to MH i2c: D1 01 00 55 B8 01 DF [15:38:05]Write i2c OK [15:38:05]MH_I2C_Read... [15:38:05]Read from MH i2c: D1 [15:38:05]MH_I2C_Read... [15:38:05]Read from MH i2c: D1 01 00 [15:38:05]MH_I2C_Read... [15:38:05]Read from MH i2c: D1 01 00 55 B8 00 DE [15:38:05]Write to MH i2c: 01 00 00 56 B8 0E [15:38:05]Write i2c OK [15:38:05]MH_I2C_Read... [15:38:05]OFD Sender: No OFD packet to send [15:38:05]*** Cut start [15:38:05]*** Partial cut [15:38:05]*** CUTSNS_PIN = 1 [15:38:05]*** CUTSNS_PIN = 0 [15:38:06]*** Brake cut motor [15:38:06]Read from MH i2c: 01 [15:38:06]MH_I2C_Read... [15:38:06]*** Stop cut motor [15:38:06]*** Cut end [15:38:06]Read from MH i2c: 01 07 00 [15:38:06]MH_I2C_Read... [15:38:06]Read from MH i2c: 01 07 00 56 B8 00 00 00 00 00 FF 0F 23 [15:38:06]process_action close_receipt done [15:38:06]requested_data is exist [15:38:06]produce_requested_data [15:38:06]requested_item fm.sn is exist - process it [15:38:06]wFMCommunicate request_size=4 [15:38:06]MH_SAM_APDU [15:38:06]CAPDU: 80 11 00 00 [15:38:06]Write to MH i2c: E2 08 00 57 B8 80 11 00 00 00 00 00 00 89 [15:38:06]Write i2c OK [15:38:06]MH_I2C_Read... [15:38:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:38:06]Read from MH i2c: E2 [15:38:06]MH_I2C_Read... [15:38:06]Read from MH i2c: E2 17 00 [15:38:06]MH_I2C_Read... [15:38:06]Read from MH i2c: E2 17 00 57 B8 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 DC [15:38:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [15:38:06]wFMCommunicate OK [15:38:06]requested_item fd.num is exist - process it [15:38:06]SAM_PROTO_GetFieldsCounters [15:38:06]wFMCommunicate request_size=4 [15:38:06]MH_SAM_APDU [15:38:06]CAPDU: 80 13 00 00 [15:38:06]Write to MH i2c: E2 08 00 58 B8 80 13 00 00 00 00 00 00 8C [15:38:06]Write i2c OK [15:38:06]MH_I2C_Read... [15:38:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:38:06]Read from MH i2c: E2 [15:38:06]MH_I2C_Read... [15:38:06]Read from MH i2c: E2 62 00 [15:38:06]MH_I2C_Read... [15:38:06]Read from MH i2c: E2 62 00 58 B8 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 20 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 8E 00 00 00 5E 04 04 00 8E 00 00 00 57 04 04 00 8F 00 00 00 19 04 04 00 00 00 00 00 90 00 75 [15:38: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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 20 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 8E 00 00 00 5E 04 04 00 8E 00 00 00 57 04 04 00 8F 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:38:06]wFMCommunicate OK [15:38:06]SAM_PROTO_GetFieldsCounters done [15:38:06]requested_item shift.num is exist - process it [15:38:06]requested_item shift.opened is exist - process it [15:38:06]req_shift_opened [15:38:06]FM_GetShiftState [15:38:06]SAM_PROTO_GetShiftState [15:38:06]wFMCommunicate request_size=4 [15:38:06]MH_SAM_APDU [15:38:06]CAPDU: 80 13 01 00 [15:38:06]Write to MH i2c: E2 08 00 59 B8 80 13 01 00 00 00 00 00 8E [15:38:06]Write i2c OK [15:38:06]MH_I2C_Read... [15:38:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:38:06]Read from MH i2c: E2 [15:38:06]MH_I2C_Read... [15:38:06]Read from MH i2c: E2 0E 00 [15:38:06]MH_I2C_Read... [15:38:06]Read from MH i2c: E2 0E 00 59 B8 00 09 00 01 04 26 72 66 00 00 00 00 90 00 9C [15:38:06]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [15:38:06]wFMCommunicate OK [15:38:06]SAM_PROTO_GetShiftState done [15:38:06]FM_GetShiftState done [15:38:06]req_shift_opened done [15:38:06]requested_item shift.open_date is exist - process it [15:38:06]req_shift_open_date [15:38:06]req_shift_open_date done [15:38:06]produce_requested_data done [15:38:06]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103712,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [15:38:06]process_action_free close_receipt [15:38:06]json_value_free [15:38:06]json_value_free done [15:38:06]process_json_proto returns [15:38:06]Send response to host [15:38:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103712,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [15:38:06]free response buf [15:38:06]execute_script done [15:38:06]execute_script returns [15:38:06]free content buf [15:38:06]Sock 10.Close socket [15:38:06]Sock 10.Thread stoped [15:38:10]OFD Sender: No OFD packet to send [15:38:15]OFD Sender: No OFD packet to send [15:38:20]OFD Sender: No OFD packet to send [15:38:25]OFD Sender: No OFD packet to send [15:38:30]OFD Sender: No OFD packet to send [15:38:35]OFD Sender: No OFD packet to send [15:38:40]OFD Sender: No OFD packet to send [15:38:45]OFD Sender: No OFD packet to send [15:38:50]OFD Sender: No OFD packet to send [15:38:55]OFD Sender: No OFD packet to send [15:39:00]OFD Sender: No OFD packet to send [15:39:03]accept exits with 7 [15:39:03]New connection [15:39:03]New thread 3067084132 created [15:39:03]Thread 3067227492 joined [15:39:03]Waiting for new connection... [15:39:03] Sock 7.Parse request [15:39:03]Sock 7.Check first char [15:39:03]Sock 7.First char is OK [15:39:03]request: POST /json_proto HTTP/1.0 [15:39:03]Method: POST [15:39:03]URL: /json_proto [15:39:03]Method is POST - this is cgi request [15:39:03]url: /json_proto [15:39:03]query_string will be loaded in cgi processing [15:39:03]execute_cgi json_proto POST (null) [15:39:03]execute_cgi path=json_proto method=POST [15:39:03]POST find Content-Length [15:39:03]Host: 172.17.38.133:8080 [15:39:03]Content-Length: 642 [15:39:03]Content-Type: application/json [15:39:03] [15:39:03]POST finish read [15:39:03]Found Content-Length = 642 [15:39:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672986", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 20.000, "sum" : 1328.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 1328.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:39:03]execute_script... [15:39:03]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672986", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 20.000, "sum" : 1328.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 1328.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:39:03]POST & json_proto [15:39:03]process_json_proto [15:39:03]json parsed OK: [15:39:03]protocol is kg_v1.0 [15:39:03]action value=close_receipt [15:39:03]process_action close_receipt [15:39:03]cmd_close_receipt [15:39:03]MH_GetDate [15:39:03]Write to MH i2c: F0 00 00 5A B8 01 [15:39:03]Write i2c OK [15:39:03]MH_I2C_Read... [15:39:03]Read from MH i2c: F0 [15:39:03]MH_I2C_Read... [15:39:03]Read from MH i2c: F0 09 00 [15:39:03]MH_I2C_Read... [15:39:03]Read from MH i2c: F0 09 00 5A B8 00 A4 FB 72 66 BD 8F 7C 64 AD [15:39:03]GetLastDocTimeStamp 1718811495 [15:39:03]current date 1718811556 [15:39:03]FM_GetShiftState [15:39:03]SAM_PROTO_GetShiftState [15:39:03]wFMCommunicate request_size=4 [15:39:03]MH_SAM_APDU [15:39:03]CAPDU: 80 13 01 00 [15:39:03]Write to MH i2c: E2 08 00 5B B8 80 13 01 00 00 00 00 00 90 [15:39:03]Write i2c OK [15:39:03]MH_I2C_Read... [15:39:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:39:03]Read from MH i2c: E2 [15:39:03]MH_I2C_Read... [15:39:03]Read from MH i2c: E2 0E 00 [15:39:03]MH_I2C_Read... [15:39:03]Read from MH i2c: E2 0E 00 5B B8 00 09 00 01 04 26 72 66 00 00 00 00 90 00 9E [15:39:03]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [15:39:03]wFMCommunicate OK [15:39:03]SAM_PROTO_GetShiftState done [15:39:03]FM_GetShiftState done [15:39:03]opened in 1718756868 [15:39:03]opened+sec_in_day 1718843268 [15:39:03]quantity*price = 132800 [15:39:03]sum+1 = 132801 [15:39:03]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1328.00 НСП 1% : 11.75 НДС 12% : 141.03 Наличными: 1328.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 143 19.06.2024 15:39 Смена: 353 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103713 ФПД: 34112941787040 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T153916&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103713&fm=34112941787040&tin=02508201610067®Number=0000000000092785&sum=132800 [15:39:04]StoreToDocumentArchive [15:39:04]shift 353 fd 103713 [15:39:04]save to /storage/0353/doc_00103713 [15:39:04]save last doc name /storage/0353/doc_00103713 to /storage/kkm_last_doc_name [15:39:04]save OK [15:39:04]Clear old archive folders... [15:39:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:39:04]tlvbuf is 014109E0 [15:39:04]SAM_PROTO_ClearQueue [15:39:04]wFMCommunicate request_size=4 [15:39:04]MH_SAM_APDU [15:39:04]CAPDU: 80 09 00 00 [15:39:04]Write to MH i2c: E2 08 00 68 B8 80 09 00 00 00 00 00 00 92 [15:39:04]Write i2c OK [15:39:04]MH_I2C_Read... [15:39:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:39:04]Read from MH i2c: E2 [15:39:04]MH_I2C_Read... [15:39:04]Read from MH i2c: E2 03 00 [15:39:04]MH_I2C_Read... [15:39:04]Read from MH i2c: E2 03 00 68 B8 00 90 00 94 [15:39:04]RAPDU: 90 00 [15:39:04]wFMCommunicate OK [15:39:04]SAM_PROTO_ClearQueue done [15:39:04]KKMCreateOFDPacket [15:39:04]OFDProtocolAddRootSTLVToBuf [15:39:04]FM_MakeSignedData [15:39:04]FM_MakeSignedData [15:39:04]SAM_PROTO_SignData [15:39:04]wFMCommunicate request_size=4 [15:39:04]MH_SAM_APDU [15:39:04]CAPDU: 80 0D 01 02 [15:39:04]Write to MH i2c: E2 08 00 69 B8 80 0D 01 02 00 00 00 00 9A [15:39:04]Write i2c OK [15:39:04]MH_I2C_Read... [15:39:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:39:05]Read from MH i2c: E2 [15:39:05]MH_I2C_Read... [15:39:05]Read from MH i2c: E2 03 00 [15:39:05]MH_I2C_Read... [15:39:05]Read from MH i2c: E2 03 00 69 B8 00 90 00 95 [15:39:05]RAPDU: 90 00 [15:39:05]wFMCommunicate OK [15:39:05]wFMCommunicate request_size=255 [15:39:05]MH_SAM_APDU [15:39:05]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 C0 06 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 06 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 97 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 17 37 00 00 00 00 07 04 06 00 C0 06 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 A4 FB 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 21 95 01 00 35 04 06 00 1F [15:39:05]Write to MH i2c: E2 02 01 6A B8 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 F0 19 00 00 00 00 13 04 06 00 C0 06 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 06 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 97 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 17 37 00 00 00 00 07 04 06 00 C0 06 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 A4 FB 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 21 95 01 00 35 04 06 00 1F 00 00 A0 [15:39:05]Write i2c OK [15:39:05]MH_I2C_Read... [15:39:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:39:05]Read from MH i2c: E2 [15:39:05]MH_I2C_Read... [15:39:05]Read from MH i2c: E2 03 00 [15:39:05]MH_I2C_Read... [15:39:05]Read from MH i2c: E2 03 00 6A B8 00 90 00 96 [15:39:05]RAPDU: 90 00 [15:39:05]wFMCommunicate OK [15:39:05]wFMCommunicate request_size=10 [15:39:05]MH_SAM_APDU [15:39:05]CAPDU: 80 0D 02 02 05 06 89 C7 07 A0 [15:39:05]Write to MH i2c: E2 0D 00 6B B8 80 0D 02 02 05 00 06 89 C7 07 A0 00 00 A4 [15:39:05]Write i2c OK [15:39:05]MH_I2C_Read... [15:39:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:39:05]Read from MH i2c: E2 [15:39:05]MH_I2C_Read... [15:39:05]Read from MH i2c: E2 03 00 [15:39:05]MH_I2C_Read... [15:39:05]Read from MH i2c: E2 03 00 6B B8 00 90 00 97 [15:39:05]RAPDU: 90 00 [15:39:05]wFMCommunicate OK [15:39:05]wFMCommunicate request_size=4 [15:39:05]MH_SAM_APDU [15:39:05]CAPDU: 80 0D 03 02 [15:39:05]Write to MH i2c: E2 08 00 6C B8 80 0D 03 02 00 00 00 00 9F [15:39:05]Write i2c OK [15:39:05]MH_I2C_Read... [15:39:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:39:05]Read from MH i2c: E2 [15:39:05]MH_I2C_Read... [15:39:05]Read from MH i2c: E2 0B 00 [15:39:05]MH_I2C_Read... [15:39:05]Read from MH i2c: E2 0B 00 6C B8 00 31 6D 8F 3D 7C 1A 4F 28 90 00 17 [15:39:05]RAPDU: 31 6D 8F 3D 7C 1A 4F 28 90 00 [15:39:05]wFMCommunicate OK [15:39:05]SAM_PROTO_SignData done [15:39:05]FM_MakeSignedData done [15:39:05]CreateOFDProtocolMessage [15:39:05]wFMCommunicate request_size=4 [15:39:05]MH_SAM_APDU [15:39:05]CAPDU: 80 11 00 00 [15:39:05]Write to MH i2c: E2 08 00 6D B8 80 11 00 00 00 00 00 00 9F [15:39:05]Write i2c OK [15:39:05]MH_I2C_Read... [15:39:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:39:05]Read from MH i2c: E2 [15:39:05]MH_I2C_Read... [15:39:05]Read from MH i2c: E2 17 00 [15:39:05]MH_I2C_Read... [15:39:05]Read from MH i2c: E2 17 00 6D B8 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 F2 [15:39:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [15:39:05]wFMCommunicate OK [15:39:05]CreateOFDProtocolMessage done [15:39:05]OFDSenderStorePacket 103713 [15:39:05]StoreOFDPacket docnum=103713 [15:39:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 EB AC 07 01 8A 52 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 C0 06 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 06 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 97 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 17 37 00 00 00 00 07 04 06 00 C0 06 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 A4 FB 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 21 95 01 00 35 04 06 00 1F 06 89 C7 07 A0 31 6D 8F 3D 7C 1A 4F 28 [15:39:05]CheckFolder [15:39:05]dirname=/storage/ofd_packets [15:39:05]CheckFolder done [15:39:05]ProducePacketName [15:39:05]name=ofd_packets/00103713 [15:39:05]NVStorageSaveData ofd_packets/00103713 [15:39:05]File name is /storage/ofd_packets/00103713 [15:39:05]Write 301 bytes [15:39:05]NVStorageSaveData done [15:39:05]OFDSenderStorePacket done [15:39:05]KKMCreateOFDPacket done [15:39:05]NVStorageSaveData kkm_last_timestamp [15:39:05]File name is /storage/kkm_last_timestamp [15:39:05]Write 4 bytes [15:39:05]NVStorageSaveData done [15:39:05]ExternCall_PrintAddStr [15:39:05]wPrintStart [15:39:05]Write to MH i2c: 01 00 00 6E B8 26 [15:39:05]Write i2c OK [15:39:05]MH_I2C_Read... [15:39:05]Read from MH i2c: 01 [15:39:05]MH_I2C_Read... [15:39:05]Read from MH i2c: 01 07 00 [15:39:05]MH_I2C_Read... [15:39:05]Read from MH i2c: 01 07 00 6E B8 00 00 00 00 00 FF 0F 3B [15:39:05]RasterBufferAndPrint [15:39:05]line Счет N : (1)672986 [15:39:05]line ИНН: 02508201610067 [15:39:05]line Контрольно-Кассовый Чек [15:39:05]line ПРОДАЖА [15:39:05]line ТРК (МРК, ГНК) : 42 [15:39:05]line Товар: 2710124130 [15:39:05]line Аи-92-К-5 [15:39:05]line 20.000 * 66.40 [15:39:05]line = 1328.00 [15:39:05]line НДС 12% НСП 1% [15:39:05]line > о реализуемом товаре [15:39:05]line ИТОГО: 1328.00 [15:39:05]line НСП 1% : 11.75 [15:39:05]line НДС 12% : 141.03 [15:39:05]line Наличными: 1328.00 [15:39:05]line Безнал.: 0.00 [15:39:05]line Место: АЗС № 120 "Партнер Нефть" [15:39:05]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [15:39:05]line СНО: Общий режим [15:39:05]line Чек 143 19.06.2024 15:39 [15:39:05]line Смена: 353 ФФД: 1.0 [15:39:05]line ЗНМ: 0300000164 [15:39:05]line РНМ: 0000000000092785 [15:39:05]line Версия ККМ: 001 [15:39:05]line ФМ: 0000000000875093 [15:39:05]line ФД: 103713 [15:39:05]line ФПД: 34112941787040 [15:39:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T153916&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103713&fm=34112941787040&tin=02508201610067®Number=0000000000092785&sum=132800 [15:39:05]OFD Sender: Processing packet 103713 [packets to send 17, broken 16] [15:39:05]ProducePacketName [15:39:05]name=ofd_packets/00103713 [15:39:05]OFD Sender: To server: pG, [15:39:05]CommunicateWithHost lk.salyk.kg:30040 [15:39:05]ConnectInit lk.salyk.kg [15:39:05]written 0, free lines is 4095 [15:39:05]Connected sock=10 [15:39:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 EB AC 07 01 8A 52 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 C0 06 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 06 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 97 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 17 37 00 00 00 00 07 04 06 00 C0 06 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 A4 FB 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 21 95 01 00 35 04 06 00 1F 06 89 C7 07 A0 31 6D 8F 3D 7C 1A 4F 28 [15:39:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 C6 39 47 00 A7 50 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 21 95 01 00 F4 03 04 00 2D A2 72 66 B6 04 01 00 00 7B EC 9E 33 E5 62 1D A1 [15:39:06]CommunicateWithHost err = 0 [15:39:06]CheckOFDResponse [15:39:06]1017 (14) - 77093643461234 [15:39:06]1041 (16) - 0000000000875093 [15:39:06]1040 (4) - 103713 [15:39:06]1012 (4) - 19.06.2024 09:17 [15:39:06]1206 (1) - 0 [15:39:06]OFD Sender: Remove packet 103713 [15:39:06]ProducePacketName [15:39:06]name=ofd_packets/00103713 [15:39:06]NVStorageDeleteData [15:39:06]Write to MH i2c: 01 00 00 96 B8 4E [15:39:06]Write i2c OK [15:39:06]MH_I2C_Read... [15:39:06]Read from MH i2c: 01 [15:39:06]MH_I2C_Read... [15:39:06]Read from MH i2c: 01 07 00 [15:39:06]MH_I2C_Read... [15:39:06]Read from MH i2c: 01 07 00 96 B8 00 00 00 00 00 1C 0D 7E [15:39:06]RasterBufferAndPrint [15:39:06]line [15:39:06]line [15:39:06]line [15:39:06]line [15:39:06]line [15:39:06]written 0, free lines is 3362 [15:39:06]MH_Cut [15:39:06]Write to MH i2c: D1 01 00 9D B8 01 27 [15:39:06]Write i2c OK [15:39:06]MH_I2C_Read... [15:39:06]Read from MH i2c: D1 [15:39:06]MH_I2C_Read... [15:39:06]Read from MH i2c: D1 01 00 [15:39:06]MH_I2C_Read... [15:39:06]Read from MH i2c: D1 01 00 9D B8 00 26 [15:39:06]Write to MH i2c: 01 00 00 9E B8 56 [15:39:06]Write i2c OK [15:39:06]MH_I2C_Read... [15:39:06]OFD Sender: No OFD packet to send [15:39:06]*** Cut start [15:39:06]*** Partial cut [15:39:06]*** CUTSNS_PIN = 1 [15:39:06]*** CUTSNS_PIN = 0 [15:39:07]*** Brake cut motor [15:39:07]Read from MH i2c: 01 [15:39:07]MH_I2C_Read... [15:39:07]*** Stop cut motor [15:39:07]*** Cut end [15:39:07]Read from MH i2c: 01 07 00 [15:39:07]MH_I2C_Read... [15:39:07]Read from MH i2c: 01 07 00 9E B8 00 00 00 00 00 FF 0F 6B [15:39:07]process_action close_receipt done [15:39:07]requested_data is exist [15:39:07]produce_requested_data [15:39:07]requested_item fm.sn is exist - process it [15:39:07]wFMCommunicate request_size=4 [15:39:07]MH_SAM_APDU [15:39:07]CAPDU: 80 11 00 00 [15:39:07]Write to MH i2c: E2 08 00 9F B8 80 11 00 00 00 00 00 00 D1 [15:39:07]Write i2c OK [15:39:07]MH_I2C_Read... [15:39:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:39:07]Read from MH i2c: E2 [15:39:07]MH_I2C_Read... [15:39:07]Read from MH i2c: E2 17 00 [15:39:07]MH_I2C_Read... [15:39:07]Read from MH i2c: E2 17 00 9F B8 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 24 [15:39:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [15:39:07]wFMCommunicate OK [15:39:07]requested_item fd.num is exist - process it [15:39:07]SAM_PROTO_GetFieldsCounters [15:39:07]wFMCommunicate request_size=4 [15:39:07]MH_SAM_APDU [15:39:07]CAPDU: 80 13 00 00 [15:39:07]Write to MH i2c: E2 08 00 A0 B8 80 13 00 00 00 00 00 00 D4 [15:39:07]Write i2c OK [15:39:07]MH_I2C_Read... [15:39:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:39:07]Read from MH i2c: E2 [15:39:07]MH_I2C_Read... [15:39:07]Read from MH i2c: E2 62 00 [15:39:07]MH_I2C_Read... [15:39:07]Read from MH i2c: E2 62 00 A0 B8 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 21 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 8F 00 00 00 5E 04 04 00 8F 00 00 00 57 04 04 00 90 00 00 00 19 04 04 00 00 00 00 00 90 00 C1 [15:39: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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 21 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 8F 00 00 00 5E 04 04 00 8F 00 00 00 57 04 04 00 90 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:39:07]wFMCommunicate OK [15:39:07]SAM_PROTO_GetFieldsCounters done [15:39:07]requested_item shift.num is exist - process it [15:39:07]requested_item shift.opened is exist - process it [15:39:07]req_shift_opened [15:39:07]FM_GetShiftState [15:39:07]SAM_PROTO_GetShiftState [15:39:07]wFMCommunicate request_size=4 [15:39:07]MH_SAM_APDU [15:39:07]CAPDU: 80 13 01 00 [15:39:07]Write to MH i2c: E2 08 00 A1 B8 80 13 01 00 00 00 00 00 D6 [15:39:07]Write i2c OK [15:39:07]MH_I2C_Read... [15:39:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:39:07]Read from MH i2c: E2 [15:39:07]MH_I2C_Read... [15:39:07]Read from MH i2c: E2 0E 00 [15:39:07]MH_I2C_Read... [15:39:07]Read from MH i2c: E2 0E 00 A1 B8 00 09 00 01 04 26 72 66 00 00 00 00 90 00 E4 [15:39:07]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [15:39:07]wFMCommunicate OK [15:39:07]SAM_PROTO_GetShiftState done [15:39:07]FM_GetShiftState done [15:39:07]req_shift_opened done [15:39:07]requested_item shift.open_date is exist - process it [15:39:07]req_shift_open_date [15:39:07]req_shift_open_date done [15:39:07]produce_requested_data done [15:39:07]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103713,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [15:39:07]process_action_free close_receipt [15:39:07]json_value_free [15:39:07]json_value_free done [15:39:07]process_json_proto returns [15:39:07]Send response to host [15:39:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103713,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [15:39:07]free response buf [15:39:07]execute_script done [15:39:07]execute_script returns [15:39:07]free content buf [15:39:07]Sock 7.Close socket [15:39:07]Sock 7.Thread stoped [15:39:11]OFD Sender: No OFD packet to send [15:39:16]OFD Sender: No OFD packet to send [15:39:21]OFD Sender: No OFD packet to send [15:39:26]OFD Sender: No OFD packet to send [15:39:31]OFD Sender: No OFD packet to send [15:39:36]OFD Sender: No OFD packet to send [15:39:41]OFD Sender: No OFD packet to send [15:39:46]OFD Sender: No OFD packet to send [15:39:51]OFD Sender: No OFD packet to send [15:39:56]OFD Sender: No OFD packet to send [15:40:01]OFD Sender: No OFD packet to send [15:40:06]OFD Sender: No OFD packet to send [15:40:11]OFD Sender: No OFD packet to send [15:40:16]OFD Sender: No OFD packet to send [15:40:21]OFD Sender: No OFD packet to send [15:40:26]OFD Sender: No OFD packet to send [15:40:31]OFD Sender: No OFD packet to send [15:40:36]OFD Sender: No OFD packet to send [15:40:41]OFD Sender: No OFD packet to send [15:40:46]OFD Sender: No OFD packet to send [15:40:51]OFD Sender: No OFD packet to send [15:40:56]OFD Sender: No OFD packet to send [15:41:01]OFD Sender: No OFD packet to send [15:41:06]OFD Sender: No OFD packet to send [15:41:11]OFD Sender: No OFD packet to send [15:41:16]OFD Sender: No OFD packet to send [15:41:21]OFD Sender: No OFD packet to send [15:41:26]OFD Sender: No OFD packet to send [15:41:31]OFD Sender: No OFD packet to send [15:41:36]OFD Sender: No OFD packet to send [15:41:41]OFD Sender: No OFD packet to send [15:41:46]OFD Sender: No OFD packet to send [15:41:51]OFD Sender: No OFD packet to send [15:41:56]OFD Sender: No OFD packet to send [15:42:01]OFD Sender: No OFD packet to send [15:42:06]OFD Sender: No OFD packet to send [15:42:11]OFD Sender: No OFD packet to send [15:42:16]OFD Sender: No OFD packet to send [15:42:21]OFD Sender: No OFD packet to send [15:42:26]OFD Sender: No OFD packet to send [15:42:31]OFD Sender: No OFD packet to send [15:42:36]OFD Sender: No OFD packet to send [15:42:41]OFD Sender: No OFD packet to send [15:42:46]OFD Sender: No OFD packet to send [15:42:51]OFD Sender: No OFD packet to send [15:42:56]OFD Sender: No OFD packet to send [15:43:01]OFD Sender: No OFD packet to send [15:43:06]OFD Sender: No OFD packet to send [15:43:11]OFD Sender: No OFD packet to send [15:43:16]OFD Sender: No OFD packet to send [15:43:21]OFD Sender: No OFD packet to send [15:43:26]OFD Sender: No OFD packet to send [15:43:31]OFD Sender: No OFD packet to send [15:43:36]OFD Sender: No OFD packet to send [15:43:41]OFD Sender: No OFD packet to send [15:43:46]OFD Sender: No OFD packet to send [15:43:51]OFD Sender: No OFD packet to send [15:43:56]OFD Sender: No OFD packet to send [15:44:01]OFD Sender: No OFD packet to send [15:44:06]OFD Sender: No OFD packet to send [15:44:11]OFD Sender: No OFD packet to send [15:44:16]OFD Sender: No OFD packet to send [15:44:21]OFD Sender: No OFD packet to send [15:44:26]OFD Sender: No OFD packet to send [15:44:31]OFD Sender: No OFD packet to send [15:44:36]OFD Sender: No OFD packet to send [15:44:42]OFD Sender: No OFD packet to send [15:44:47]OFD Sender: No OFD packet to send [15:44:52]OFD Sender: No OFD packet to send [15:44:57]OFD Sender: No OFD packet to send [15:45:02]OFD Sender: No OFD packet to send [15:45:07]OFD Sender: No OFD packet to send [15:45:12]OFD Sender: No OFD packet to send [15:45:17]OFD Sender: No OFD packet to send [15:45:22]OFD Sender: No OFD packet to send [15:45:27]OFD Sender: No OFD packet to send [15:45:32]OFD Sender: No OFD packet to send [15:45:37]OFD Sender: No OFD packet to send [15:45:42]OFD Sender: No OFD packet to send [15:45:47]OFD Sender: No OFD packet to send [15:45:50]accept exits with 9 [15:45:50]New connection [15:45:50]New thread 3067227492 created [15:45:50]Thread 3067084132 joined [15:45:50]Waiting for new connection... [15:45:50] Sock 9.Parse request [15:45:50]Sock 9.Check first char [15:45:50]Sock 9.First char is OK [15:45:50]request: POST /json_proto HTTP/1.0 [15:45:50]Method: POST [15:45:50]URL: /json_proto [15:45:50]Method is POST - this is cgi request [15:45:50]url: /json_proto [15:45:50]query_string will be loaded in cgi processing [15:45:50]execute_cgi json_proto POST (null) [15:45:50]execute_cgi path=json_proto method=POST [15:45:50]POST find Content-Length [15:45:50]Host: 172.17.38.133:8080 [15:45:50]Content-Length: 678 [15:45:50]Content-Type: application/json [15:45:50] [15:45:50]POST finish read [15:45:50]Found Content-Length = 678 [15:45:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672988", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 10.550, "sum" : 700.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:45:50]execute_script... [15:45: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)672988", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 10.550, "sum" : 700.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:45:50]POST & json_proto [15:45:50]process_json_proto [15:45:50]json parsed OK: [15:45:50]protocol is kg_v1.0 [15:45:50]action value=close_receipt [15:45:50]process_action close_receipt [15:45:50]cmd_close_receipt [15:45:50]MH_GetDate [15:45:50]Write to MH i2c: F0 00 00 A2 B8 49 [15:45:50]Write i2c OK [15:45:50]MH_I2C_Read... [15:45:50]Read from MH i2c: F0 [15:45:50]MH_I2C_Read... [15:45:50]Read from MH i2c: F0 09 00 [15:45:50]MH_I2C_Read... [15:45:50]Read from MH i2c: F0 09 00 A2 B8 00 3B FD 72 66 BD 8F 7C 64 8E [15:45:50]GetLastDocTimeStamp 1718811556 [15:45:50]current date 1718811963 [15:45:50]FM_GetShiftState [15:45:50]SAM_PROTO_GetShiftState [15:45:50]wFMCommunicate request_size=4 [15:45:50]MH_SAM_APDU [15:45:50]CAPDU: 80 13 01 00 [15:45:50]Write to MH i2c: E2 08 00 A3 B8 80 13 01 00 00 00 00 00 D8 [15:45:50]Write i2c OK [15:45:50]MH_I2C_Read... [15:45:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:45:50]Read from MH i2c: E2 [15:45:50]MH_I2C_Read... [15:45:50]Read from MH i2c: E2 0E 00 [15:45:50]MH_I2C_Read... [15:45:50]Read from MH i2c: E2 0E 00 A3 B8 00 09 00 01 04 26 72 66 00 00 00 00 90 00 E6 [15:45:50]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [15:45:50]wFMCommunicate OK [15:45:50]SAM_PROTO_GetShiftState done [15:45:50]FM_GetShiftState done [15:45:50]opened in 1718756868 [15:45:50]opened+sec_in_day 1718843268 [15:45:50]quantity*price = 70052 [15:45:50]sum+1 = 70053 [15:45:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.52 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.39 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 144 19.06.2024 15:46 Смена: 353 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103714 ФПД: 47763883509216 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T154604&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103714&fm=47763883509216&tin=02508201610067®Number=0000000000092785&sum=70000 [15:45:52]StoreToDocumentArchive [15:45:52]shift 353 fd 103714 [15:45:52]save to /storage/0353/doc_00103714 [15:45:52]save last doc name /storage/0353/doc_00103714 to /storage/kkm_last_doc_name [15:45:52]save OK [15:45:52]Clear old archive folders... [15:45:52]OFD Sender: No OFD packet to send [15:45:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:45:52]tlvbuf is 013EBE90 [15:45:52]SAM_PROTO_ClearQueue [15:45:52]wFMCommunicate request_size=4 [15:45:52]MH_SAM_APDU [15:45:52]CAPDU: 80 09 00 00 [15:45:52]Write to MH i2c: E2 08 00 B0 B8 80 09 00 00 00 00 00 00 DA [15:45:52]Write i2c OK [15:45:52]MH_I2C_Read... [15:45:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:45:52]Read from MH i2c: E2 [15:45:52]MH_I2C_Read... [15:45:52]Read from MH i2c: E2 03 00 [15:45:52]MH_I2C_Read... [15:45:52]Read from MH i2c: E2 03 00 B0 B8 00 90 00 DC [15:45:52]RAPDU: 90 00 [15:45:52]wFMCommunicate OK [15:45:52]SAM_PROTO_ClearQueue done [15:45:52]KKMCreateOFDPacket [15:45:52]OFDProtocolAddRootSTLVToBuf [15:45:52]FM_MakeSignedData [15:45:52]FM_MakeSignedData [15:45:52]SAM_PROTO_SignData [15:45:52]wFMCommunicate request_size=4 [15:45:52]MH_SAM_APDU [15:45:52]CAPDU: 80 0D 01 02 [15:45:52]Write to MH i2c: E2 08 00 B1 B8 80 0D 01 02 00 00 00 00 E2 [15:45:52]Write i2c OK [15:45:52]MH_I2C_Read... [15:45:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:45:52]Read from MH i2c: E2 [15:45:52]MH_I2C_Read... [15:45:52]Read from MH i2c: E2 03 00 [15:45:52]MH_I2C_Read... [15:45:52]Read from MH i2c: E2 03 00 B1 B8 00 90 00 DD [15:45:52]RAPDU: 90 00 [15:45:52]wFMCommunicate OK [15:45:52]wFMCommunicate request_size=255 [15:45:52]MH_SAM_APDU [15:45: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 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 00 00 00 F4 03 04 00 3C FD 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 22 95 01 00 35 04 06 00 2B [15:45:52]Write to MH i2c: E2 02 01 B2 B8 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 00 00 00 F4 03 04 00 3C FD 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 22 95 01 00 35 04 06 00 2B 00 00 94 [15:45:52]Write i2c OK [15:45:52]MH_I2C_Read... [15:45:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:45:52]Read from MH i2c: E2 [15:45:52]MH_I2C_Read... [15:45:52]Read from MH i2c: E2 03 00 [15:45:52]MH_I2C_Read... [15:45:52]Read from MH i2c: E2 03 00 B2 B8 00 90 00 DE [15:45:52]RAPDU: 90 00 [15:45:52]wFMCommunicate OK [15:45:52]wFMCommunicate request_size=10 [15:45:52]MH_SAM_APDU [15:45:52]CAPDU: 80 0D 02 02 05 70 E5 4F 45 E0 [15:45:52]Write to MH i2c: E2 0D 00 B3 B8 80 0D 02 02 05 00 70 E5 4F 45 E0 00 00 B8 [15:45:52]Write i2c OK [15:45:52]MH_I2C_Read... [15:45:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:45:52]Read from MH i2c: E2 [15:45:52]MH_I2C_Read... [15:45:52]Read from MH i2c: E2 03 00 [15:45:52]MH_I2C_Read... [15:45:52]Read from MH i2c: E2 03 00 B3 B8 00 90 00 DF [15:45:52]RAPDU: 90 00 [15:45:52]wFMCommunicate OK [15:45:52]wFMCommunicate request_size=4 [15:45:52]MH_SAM_APDU [15:45:52]CAPDU: 80 0D 03 02 [15:45:52]Write to MH i2c: E2 08 00 B4 B8 80 0D 03 02 00 00 00 00 E7 [15:45:52]Write i2c OK [15:45:52]MH_I2C_Read... [15:45:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:45:52]Read from MH i2c: E2 [15:45:52]MH_I2C_Read... [15:45:52]Read from MH i2c: E2 0B 00 [15:45:52]MH_I2C_Read... [15:45:52]Read from MH i2c: E2 0B 00 B4 B8 00 77 46 16 04 12 75 5E D3 90 00 77 [15:45:52]RAPDU: 77 46 16 04 12 75 5E D3 90 00 [15:45:52]wFMCommunicate OK [15:45:52]SAM_PROTO_SignData done [15:45:52]FM_MakeSignedData done [15:45:52]CreateOFDProtocolMessage [15:45:52]wFMCommunicate request_size=4 [15:45:52]MH_SAM_APDU [15:45:52]CAPDU: 80 11 00 00 [15:45:52]Write to MH i2c: E2 08 00 B5 B8 80 11 00 00 00 00 00 00 E7 [15:45:52]Write i2c OK [15:45:52]MH_I2C_Read... [15:45:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:45:52]Read from MH i2c: E2 [15:45:52]MH_I2C_Read... [15:45:52]Read from MH i2c: E2 17 00 [15:45:52]MH_I2C_Read... [15:45:52]Read from MH i2c: E2 17 00 B5 B8 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 3A [15:45:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [15:45:52]wFMCommunicate OK [15:45:52]CreateOFDProtocolMessage done [15:45:52]OFDSenderStorePacket 103714 [15:45:52]StoreOFDPacket docnum=103714 [15:45:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 F6 44 07 01 94 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 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 00 00 00 F4 03 04 00 3C FD 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 22 95 01 00 35 04 06 00 2B 70 E5 4F 45 E0 77 46 16 04 12 75 5E D3 [15:45:52]CheckFolder [15:45:52]dirname=/storage/ofd_packets [15:45:52]CheckFolder done [15:45:52]ProducePacketName [15:45:52]name=ofd_packets/00103714 [15:45:52]NVStorageSaveData ofd_packets/00103714 [15:45:52]File name is /storage/ofd_packets/00103714 [15:45:52]Write 301 bytes [15:45:52]NVStorageSaveData done [15:45:52]OFDSenderStorePacket done [15:45:52]KKMCreateOFDPacket done [15:45:52]NVStorageSaveData kkm_last_timestamp [15:45:52]File name is /storage/kkm_last_timestamp [15:45:52]Write 4 bytes [15:45:52]NVStorageSaveData done [15:45:52]ExternCall_PrintAddStr [15:45:52]wPrintStart [15:45:52]Write to MH i2c: 01 00 00 B6 B8 6E [15:45:52]Write i2c OK [15:45:52]MH_I2C_Read... [15:45:52]Read from MH i2c: 01 [15:45:52]MH_I2C_Read... [15:45:52]Read from MH i2c: 01 07 00 [15:45:52]MH_I2C_Read... [15:45:52]Read from MH i2c: 01 07 00 B6 B8 00 00 00 00 00 FF 0F 83 [15:45:52]RasterBufferAndPrint [15:45:52]line Счет N : (1)672988 [15:45:52]line ИНН: 02508201610067 [15:45:52]line Контрольно-Кассовый Чек [15:45:52]line ПРОДАЖА [15:45:52]line ТРК (МРК, ГНК) : 32 [15:45:52]line Товар: 2710124130 [15:45:52]line Аи-92-К-5 [15:45:52]line 10.550 * 66.40 [15:45:52]line = 700.52 [15:45:52]line НДС 12% НСП 1% [15:45:52]line > о реализуемом товаре [15:45:52]line ОКРУГЛЕНИЕ: -0.52 [15:45:52]line ИТОГО: 700.00 [15:45:52]line Внесено: 700.00 [15:45:52]line СДАЧА: 0.00 [15:45:52]line НСП 1% : 6.20 [15:45:52]line НДС 12% : 74.39 [15:45:52]line Наличными: 700.00 [15:45:52]line Безнал.: 0.00 [15:45:52]line Место: АЗС № 120 "Партнер Нефть" [15:45:52]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [15:45:52]line СНО: Общий режим [15:45:52]line Чек 144 19.06.2024 15:46 [15:45:52]line Смена: 353 ФФД: 1.0 [15:45:52]line ЗНМ: 0300000164 [15:45:52]line РНМ: 0000000000092785 [15:45:52]line Версия ККМ: 001 [15:45:52]line ФМ: 0000000000875093 [15:45:52]line ФД: 103714 [15:45:52]line ФПД: 47763883509216 [15:45:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T154604&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103714&fm=47763883509216&tin=02508201610067®Number=0000000000092785&sum=70000 [15:45:52]OFD Sender: Processing packet 103714 [packets to send 17, broken 16] [15:45:52]ProducePacketName [15:45:52]name=ofd_packets/00103714 [15:45:52]OFD Sender: To server: pG, [15:45:52]CommunicateWithHost lk.salyk.kg:30040 [15:45:52]ConnectInit lk.salyk.kg [15:45:52]written 0, free lines is 4095 [15:45:53]Connected sock=10 [15:45: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 39 33 0F 01 00 00 F6 44 07 01 94 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 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 00 00 00 F4 03 04 00 3C FD 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 22 95 01 00 35 04 06 00 2B 70 E5 4F 45 E0 77 46 16 04 12 75 5E D3 [15:45: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 39 33 4F 00 00 00 9C 55 47 00 18 84 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 22 95 01 00 F4 03 04 00 C4 A3 72 66 B6 04 01 00 00 3B 13 28 37 44 7B F7 B8 [15:45:53]CommunicateWithHost err = 0 [15:45:53]CheckOFDResponse [15:45:53]1017 (14) - 77093643461234 [15:45:53]1041 (16) - 0000000000875093 [15:45:53]1040 (4) - 103714 [15:45:53]1012 (4) - 19.06.2024 09:24 [15:45:53]1206 (1) - 0 [15:45:53]OFD Sender: Remove packet 103714 [15:45:53]ProducePacketName [15:45:53]name=ofd_packets/00103714 [15:45:53]NVStorageDeleteData [15:45:53]Write to MH i2c: 01 00 00 E1 B8 99 [15:45:53]Write i2c OK [15:45:53]MH_I2C_Read... [15:45:53]Read from MH i2c: 01 [15:45:53]MH_I2C_Read... [15:45:53]Read from MH i2c: 01 07 00 [15:45:53]MH_I2C_Read... [15:45:53]Read from MH i2c: 01 07 00 E1 B8 00 00 00 00 00 E8 0C 94 [15:45:53]RasterBufferAndPrint [15:45:53]line [15:45:53]line [15:45:53]line [15:45:53]line [15:45:53]line [15:45:53]written 0, free lines is 3310 [15:45:53]MH_Cut [15:45:53]Write to MH i2c: D1 01 00 E8 B8 01 72 [15:45:53]Write i2c OK [15:45:53]MH_I2C_Read... [15:45:53]Read from MH i2c: D1 [15:45:53]MH_I2C_Read... [15:45:53]Read from MH i2c: D1 01 00 [15:45:53]MH_I2C_Read... [15:45:53]Read from MH i2c: D1 01 00 E8 B8 00 71 [15:45:53]Write to MH i2c: 01 00 00 E9 B8 A1 [15:45:53]Write i2c OK [15:45:53]MH_I2C_Read... [15:45:53]OFD Sender: No OFD packet to send [15:45:54]*** Cut start [15:45:54]*** Partial cut [15:45:54]*** CUTSNS_PIN = 1 [15:45:54]*** CUTSNS_PIN = 0 [15:45:54]*** Brake cut motor [15:45:54]Read from MH i2c: 01 [15:45:54]MH_I2C_Read... [15:45:54]*** Stop cut motor [15:45:54]*** Cut end [15:45:54]Read from MH i2c: 01 07 00 [15:45:54]MH_I2C_Read... [15:45:54]Read from MH i2c: 01 07 00 E9 B8 00 00 00 00 00 FF 0F B6 [15:45:54]process_action close_receipt done [15:45:54]requested_data is exist [15:45:54]produce_requested_data [15:45:54]requested_item fm.sn is exist - process it [15:45:54]wFMCommunicate request_size=4 [15:45:54]MH_SAM_APDU [15:45:54]CAPDU: 80 11 00 00 [15:45:54]Write to MH i2c: E2 08 00 EA B8 80 11 00 00 00 00 00 00 1C [15:45:54]Write i2c OK [15:45:54]MH_I2C_Read... [15:45:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:45:54]Read from MH i2c: E2 [15:45:54]MH_I2C_Read... [15:45:54]Read from MH i2c: E2 17 00 [15:45:54]MH_I2C_Read... [15:45:54]Read from MH i2c: E2 17 00 EA B8 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 6F [15:45:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [15:45:54]wFMCommunicate OK [15:45:54]requested_item fd.num is exist - process it [15:45:54]SAM_PROTO_GetFieldsCounters [15:45:54]wFMCommunicate request_size=4 [15:45:54]MH_SAM_APDU [15:45:54]CAPDU: 80 13 00 00 [15:45:54]Write to MH i2c: E2 08 00 EB B8 80 13 00 00 00 00 00 00 1F [15:45:54]Write i2c OK [15:45:54]MH_I2C_Read... [15:45:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:45:54]Read from MH i2c: E2 [15:45:54]MH_I2C_Read... [15:45:54]Read from MH i2c: E2 62 00 [15:45:54]MH_I2C_Read... [15:45:54]Read from MH i2c: E2 62 00 EB B8 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 22 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 90 00 00 00 5E 04 04 00 90 00 00 00 57 04 04 00 91 00 00 00 19 04 04 00 00 00 00 00 90 00 10 [15: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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 22 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 90 00 00 00 5E 04 04 00 90 00 00 00 57 04 04 00 91 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:45:54]wFMCommunicate OK [15:45:54]SAM_PROTO_GetFieldsCounters done [15:45:54]requested_item shift.num is exist - process it [15:45:54]requested_item shift.opened is exist - process it [15:45:54]req_shift_opened [15:45:54]FM_GetShiftState [15:45:54]SAM_PROTO_GetShiftState [15:45:54]wFMCommunicate request_size=4 [15:45:54]MH_SAM_APDU [15:45:54]CAPDU: 80 13 01 00 [15:45:54]Write to MH i2c: E2 08 00 EC B8 80 13 01 00 00 00 00 00 21 [15:45:54]Write i2c OK [15:45:54]MH_I2C_Read... [15:45:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:45:54]Read from MH i2c: E2 [15:45:54]MH_I2C_Read... [15:45:54]Read from MH i2c: E2 0E 00 [15:45:54]MH_I2C_Read... [15:45:54]Read from MH i2c: E2 0E 00 EC B8 00 09 00 01 04 26 72 66 00 00 00 00 90 00 2F [15:45:54]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [15:45:54]wFMCommunicate OK [15:45:54]SAM_PROTO_GetShiftState done [15:45:54]FM_GetShiftState done [15:45:54]req_shift_opened done [15:45:54]requested_item shift.open_date is exist - process it [15:45:54]req_shift_open_date [15:45:54]req_shift_open_date done [15:45:54]produce_requested_data done [15:45:54]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103714,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [15:45:54]process_action_free close_receipt [15:45:54]json_value_free [15:45:54]json_value_free done [15:45:54]process_json_proto returns [15:45:54]Send response to host [15:45:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103714,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [15:45:54]free response buf [15:45:54]execute_script done [15:45:54]execute_script returns [15:45:54]free content buf [15:45:54]Sock 9.Close socket [15:45:54]Sock 9.Thread stoped [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:29]accept exits with 7 [15:46:29]New connection [15:46:29]New thread 3067084132 created [15:46:29]Thread 3067227492 joined [15:46:29]Waiting for new connection... [15:46:29] Sock 7.Parse request [15:46:29]Sock 7.Check first char [15:46:29]Sock 7.First char is OK [15:46:29]request: POST /json_proto HTTP/1.0 [15:46:29]Method: POST [15:46:29]URL: /json_proto [15:46:29]Method is POST - this is cgi request [15:46:29]url: /json_proto [15:46:29]query_string will be loaded in cgi processing [15:46:29]execute_cgi json_proto POST (null) [15:46:29]execute_cgi path=json_proto method=POST [15:46:29]POST find Content-Length [15:46:29]Host: 172.17.38.133:8080 [15:46:29]Content-Length: 640 [15:46:29]Content-Type: application/json [15:46:29] [15:46:29]POST finish read [15:46:29]Found Content-Length = 640 [15:46:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672989", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 10.000, "sum" : 664.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 664.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:46:29]execute_script... [15:46: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)672989", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 10.000, "sum" : 664.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 664.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:46:29]POST & json_proto [15:46:29]process_json_proto [15:46:29]json parsed OK: [15:46:29]protocol is kg_v1.0 [15:46:29]action value=close_receipt [15:46:29]process_action close_receipt [15:46:29]cmd_close_receipt [15:46:29]MH_GetDate [15:46:29]Write to MH i2c: F0 00 00 ED B8 94 [15:46:29]Write i2c OK [15:46:29]MH_I2C_Read... [15:46:29]Read from MH i2c: F0 [15:46:29]MH_I2C_Read... [15:46:29]Read from MH i2c: F0 09 00 [15:46:29]MH_I2C_Read... [15:46:29]Read from MH i2c: F0 09 00 ED B8 00 62 FD 72 66 BD 8F 7C 64 00 [15:46:29]GetLastDocTimeStamp 1718811964 [15:46:29]current date 1718812002 [15:46:29]FM_GetShiftState [15:46:29]SAM_PROTO_GetShiftState [15:46:29]wFMCommunicate request_size=4 [15:46:29]MH_SAM_APDU [15:46:29]CAPDU: 80 13 01 00 [15:46:29]Write to MH i2c: E2 08 00 EE B8 80 13 01 00 00 00 00 00 23 [15:46:29]Write i2c OK [15:46:29]MH_I2C_Read... [15:46:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:46:29]Read from MH i2c: E2 [15:46:29]MH_I2C_Read... [15:46:29]Read from MH i2c: E2 0E 00 [15:46:29]MH_I2C_Read... [15:46:29]Read from MH i2c: E2 0E 00 EE B8 00 09 00 01 04 26 72 66 00 00 00 00 90 00 31 [15:46:29]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [15:46:29]wFMCommunicate OK [15:46:29]SAM_PROTO_GetShiftState done [15:46:29]FM_GetShiftState done [15:46:29]opened in 1718756868 [15:46:29]opened+sec_in_day 1718843268 [15:46:29]quantity*price = 66400 [15:46:29]sum+1 = 66401 [15:46:29]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 664.00 НСП 1% : 5.88 НДС 12% : 70.51 Наличными: 664.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 145 19.06.2024 15:46 Смена: 353 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103715 ФПД: 134195176756853 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T154642&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103715&fm=134195176756853&tin=02508201610067®Number=0000000000092785&sum=66400 [15:46:30]StoreToDocumentArchive [15:46:30]shift 353 fd 103715 [15:46:30]save to /storage/0353/doc_00103715 [15:46:30]save last doc name /storage/0353/doc_00103715 to /storage/kkm_last_doc_name [15:46:30]save OK [15:46:30]Clear old archive folders... [15:46:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:46:30]tlvbuf is 013B1710 [15:46:30]SAM_PROTO_ClearQueue [15:46:30]wFMCommunicate request_size=4 [15:46:30]MH_SAM_APDU [15:46:30]CAPDU: 80 09 00 00 [15:46:30]Write to MH i2c: E2 08 00 FB B8 80 09 00 00 00 00 00 00 25 [15:46:30]Write i2c OK [15:46:30]MH_I2C_Read... [15:46:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:46:30]Read from MH i2c: E2 [15:46:30]MH_I2C_Read... [15:46:30]Read from MH i2c: E2 03 00 [15:46:30]MH_I2C_Read... [15:46:30]Read from MH i2c: E2 03 00 FB B8 00 90 00 27 [15:46:30]RAPDU: 90 00 [15:46:30]wFMCommunicate OK [15:46:30]SAM_PROTO_ClearQueue done [15:46:30]KKMCreateOFDPacket [15:46:30]OFDProtocolAddRootSTLVToBuf [15:46:30]FM_MakeSignedData [15:46:30]FM_MakeSignedData [15:46:30]SAM_PROTO_SignData [15:46:30]wFMCommunicate request_size=4 [15:46:30]MH_SAM_APDU [15:46:30]CAPDU: 80 0D 01 02 [15:46:30]Write to MH i2c: E2 08 00 FC B8 80 0D 01 02 00 00 00 00 2D [15:46:30]Write i2c OK [15:46:30]MH_I2C_Read... [15:46:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:46:30]Read from MH i2c: E2 [15:46:30]MH_I2C_Read... [15:46:30]Read from MH i2c: E2 03 00 [15:46:30]MH_I2C_Read... [15:46:30]Read from MH i2c: E2 03 00 FC B8 00 90 00 28 [15:46:30]RAPDU: 90 00 [15:46:30]wFMCommunicate OK [15:46:30]wFMCommunicate request_size=255 [15:46:30]MH_SAM_APDU [15:46: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 10 27 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 60 03 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 03 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 1B 00 00 00 00 07 04 06 00 60 03 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 00 00 00 F4 03 04 00 62 FD 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 23 95 01 00 35 04 06 00 7A [15:46:30]Write to MH i2c: E2 02 01 FD B8 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 60 03 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 03 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 1B 00 00 00 00 07 04 06 00 60 03 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 00 00 00 F4 03 04 00 62 FD 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 23 95 01 00 35 04 06 00 7A 00 00 FA [15:46:30]Write i2c OK [15:46:30]MH_I2C_Read... [15:46:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:46:31]Read from MH i2c: E2 [15:46:31]MH_I2C_Read... [15:46:31]Read from MH i2c: E2 03 00 [15:46:31]MH_I2C_Read... [15:46:31]Read from MH i2c: E2 03 00 FD B8 00 90 00 29 [15:46:31]RAPDU: 90 00 [15:46:31]wFMCommunicate OK [15:46:31]wFMCommunicate request_size=10 [15:46:31]MH_SAM_APDU [15:46:31]CAPDU: 80 0D 02 02 05 0C BF D7 56 75 [15:46:31]Write to MH i2c: E2 0D 00 FE B8 80 0D 02 02 05 00 0C BF D7 56 75 00 00 A7 [15:46:31]Write i2c OK [15:46:31]MH_I2C_Read... [15:46:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:46:31]Read from MH i2c: E2 [15:46:31]MH_I2C_Read... [15:46:31]Read from MH i2c: E2 03 00 [15:46:31]MH_I2C_Read... [15:46:31]Read from MH i2c: E2 03 00 FE B8 00 90 00 2A [15:46:31]RAPDU: 90 00 [15:46:31]wFMCommunicate OK [15:46:31]wFMCommunicate request_size=4 [15:46:31]MH_SAM_APDU [15:46:31]CAPDU: 80 0D 03 02 [15:46:31]Write to MH i2c: E2 08 00 FF B8 80 0D 03 02 00 00 00 00 32 [15:46:31]Write i2c OK [15:46:31]MH_I2C_Read... [15:46:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:46:31]Read from MH i2c: E2 [15:46:31]MH_I2C_Read... [15:46:31]Read from MH i2c: E2 0B 00 [15:46:31]MH_I2C_Read... [15:46:31]Read from MH i2c: E2 0B 00 FF B8 00 B2 AD 74 52 C9 41 32 2C 90 00 C0 [15:46:31]RAPDU: B2 AD 74 52 C9 41 32 2C 90 00 [15:46:31]wFMCommunicate OK [15:46:31]SAM_PROTO_SignData done [15:46:31]FM_MakeSignedData done [15:46:31]CreateOFDProtocolMessage [15:46:31]wFMCommunicate request_size=4 [15:46:31]MH_SAM_APDU [15:46:31]CAPDU: 80 11 00 00 [15:46:31]Write to MH i2c: E2 08 00 00 B9 80 11 00 00 00 00 00 00 33 [15:46:31]Write i2c OK [15:46:31]MH_I2C_Read... [15:46:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:46:31]Read from MH i2c: E2 [15:46:31]MH_I2C_Read... [15:46:31]Read from MH i2c: E2 17 00 [15:46:31]MH_I2C_Read... [15:46:31]Read from MH i2c: E2 17 00 00 B9 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 86 [15:46:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [15:46:31]wFMCommunicate OK [15:46:31]CreateOFDProtocolMessage done [15:46:31]OFDSenderStorePacket 103715 [15:46:31]StoreOFDPacket docnum=103715 [15:46:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 03 39 07 01 C6 CA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 60 03 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 03 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 1B 00 00 00 00 07 04 06 00 60 03 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 00 00 00 F4 03 04 00 62 FD 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 23 95 01 00 35 04 06 00 7A 0C BF D7 56 75 B2 AD 74 52 C9 41 32 2C [15:46:31]CheckFolder [15:46:31]dirname=/storage/ofd_packets [15:46:31]CheckFolder done [15:46:31]ProducePacketName [15:46:31]name=ofd_packets/00103715 [15:46:31]NVStorageSaveData ofd_packets/00103715 [15:46:31]File name is /storage/ofd_packets/00103715 [15:46:31]Write 301 bytes [15:46:31]NVStorageSaveData done [15:46:31]OFDSenderStorePacket done [15:46:31]KKMCreateOFDPacket done [15:46:31]NVStorageSaveData kkm_last_timestamp [15:46:31]File name is /storage/kkm_last_timestamp [15:46:31]Write 4 bytes [15:46:31]NVStorageSaveData done [15:46:31]ExternCall_PrintAddStr [15:46:31]wPrintStart [15:46:31]Write to MH i2c: 01 00 00 01 B9 BA [15:46:31]Write i2c OK [15:46:31]MH_I2C_Read... [15:46:31]Read from MH i2c: 01 [15:46:31]MH_I2C_Read... [15:46:31]Read from MH i2c: 01 07 00 [15:46:31]MH_I2C_Read... [15:46:31]Read from MH i2c: 01 07 00 01 B9 00 00 00 00 00 FF 0F CF [15:46:31]RasterBufferAndPrint [15:46:31]line Счет N : (1)672989 [15:46:31]line ИНН: 02508201610067 [15:46:31]line Контрольно-Кассовый Чек [15:46:31]line ПРОДАЖА [15:46:31]line ТРК (МРК, ГНК) : 42 [15:46:31]line Товар: 2710124130 [15:46:31]line Аи-92-К-5 [15:46:31]line 10.000 * 66.40 [15:46:31]line = 664.00 [15:46:31]line НДС 12% НСП 1% [15:46:31]line > о реализуемом товаре [15:46:31]line ИТОГО: 664.00 [15:46:31]line НСП 1% : 5.88 [15:46:31]line НДС 12% : 70.51 [15:46:31]line Наличными: 664.00 [15:46:31]line Безнал.: 0.00 [15:46:31]line Место: АЗС № 120 "Партнер Нефть" [15:46:31]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [15:46:31]line СНО: Общий режим [15:46:31]line Чек 145 19.06.2024 15:46 [15:46:31]line Смена: 353 ФФД: 1.0 [15:46:31]line ЗНМ: 0300000164 [15:46:31]line РНМ: 0000000000092785 [15:46:31]line Версия ККМ: 001 [15:46:31]line ФМ: 0000000000875093 [15:46:31]line ФД: 103715 [15:46:31]line ФПД: 134195176756853 [15:46:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T154642&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103715&fm=134195176756853&tin=02508201610067®Number=0000000000092785&sum=66400 [15:46:31]OFD Sender: Processing packet 103715 [packets to send 17, broken 16] [15:46:31]ProducePacketName [15:46:31]name=ofd_packets/00103715 [15:46:31]OFD Sender: To server: pG, [15:46:31]CommunicateWithHost lk.salyk.kg:30040 [15:46:31]ConnectInit lk.salyk.kg [15:46:31]written 0, free lines is 4095 [15:46:31]Write to MH i2c: 01 00 00 29 B9 E2 [15:46:31]Write i2c OK [15:46:31]MH_I2C_Read... [15:46:31]Read from MH i2c: 01 [15:46:31]MH_I2C_Read... [15:46:31]Read from MH i2c: 01 07 00 [15:46:31]MH_I2C_Read... [15:46:31]Read from MH i2c: 01 07 00 29 B9 00 00 00 00 00 0F 0D 05 [15:46:31]RasterBufferAndPrint [15:46:31]line [15:46:31]line [15:46:31]line [15:46:31]line [15:46:31]line [15:46:31]written 0, free lines is 3349 [15:46:32]MH_Cut [15:46:32]Write to MH i2c: D1 01 00 30 B9 01 BB [15:46:32]Write i2c OK [15:46:32]MH_I2C_Read... [15:46:32]Read from MH i2c: D1 [15:46:32]MH_I2C_Read... [15:46:32]Read from MH i2c: D1 01 00 [15:46:32]MH_I2C_Read... [15:46:32]Read from MH i2c: D1 01 00 30 B9 00 BA [15:46:32]Write to MH i2c: 01 00 00 31 B9 EA [15:46:32]Write i2c OK [15:46:32]MH_I2C_Read... [15:46:32]*** Cut start [15:46:32]*** Partial cut [15:46:32]*** CUTSNS_PIN = 1 [15:46:32]*** CUTSNS_PIN = 0 [15:46:32]*** Brake cut motor [15:46:33]Read from MH i2c: 01 [15:46:33]MH_I2C_Read... [15:46:33]*** Stop cut motor [15:46:33]*** Cut end [15:46:33]Read from MH i2c: 01 07 00 [15:46:33]MH_I2C_Read... [15:46:33]Read from MH i2c: 01 07 00 31 B9 00 00 00 00 00 FF 0F FF [15:46:33]process_action close_receipt done [15:46:33]requested_data is exist [15:46:33]produce_requested_data [15:46:33]requested_item fm.sn is exist - process it [15:46:33]wFMCommunicate request_size=4 [15:46:33]MH_SAM_APDU [15:46:33]CAPDU: 80 11 00 00 [15:46:33]Write to MH i2c: E2 08 00 32 B9 80 11 00 00 00 00 00 00 65 [15:46:33]Write i2c OK [15:46:33]MH_I2C_Read... [15:46:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:46:33]Read from MH i2c: E2 [15:46:33]MH_I2C_Read... [15:46:33]Read from MH i2c: E2 17 00 [15:46:33]MH_I2C_Read... [15:46:33]Read from MH i2c: E2 17 00 32 B9 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 B8 [15:46:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [15:46:33]wFMCommunicate OK [15:46:33]requested_item fd.num is exist - process it [15:46:33]SAM_PROTO_GetFieldsCounters [15:46:33]wFMCommunicate request_size=4 [15:46:33]MH_SAM_APDU [15:46:33]CAPDU: 80 13 00 00 [15:46:33]Write to MH i2c: E2 08 00 33 B9 80 13 00 00 00 00 00 00 68 [15:46:33]Write i2c OK [15:46:33]MH_I2C_Read... [15:46:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:46:33]Read from MH i2c: E2 [15:46:33]MH_I2C_Read... [15:46:33]Read from MH i2c: E2 62 00 [15:46:33]MH_I2C_Read... [15:46:33]Read from MH i2c: E2 62 00 33 B9 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 23 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 91 00 00 00 5E 04 04 00 91 00 00 00 57 04 04 00 92 00 00 00 19 04 04 00 00 00 00 00 90 00 5D [15:46: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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 23 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 91 00 00 00 5E 04 04 00 91 00 00 00 57 04 04 00 92 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:46:33]wFMCommunicate OK [15:46:33]SAM_PROTO_GetFieldsCounters done [15:46:33]requested_item shift.num is exist - process it [15:46:33]requested_item shift.opened is exist - process it [15:46:33]req_shift_opened [15:46:33]FM_GetShiftState [15:46:33]SAM_PROTO_GetShiftState [15:46:33]wFMCommunicate request_size=4 [15:46:33]MH_SAM_APDU [15:46:33]CAPDU: 80 13 01 00 [15:46:33]Write to MH i2c: E2 08 00 34 B9 80 13 01 00 00 00 00 00 6A [15:46:33]Write i2c OK [15:46:33]MH_I2C_Read... [15:46:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:46:33]Read from MH i2c: E2 [15:46:33]MH_I2C_Read... [15:46:33]Read from MH i2c: E2 0E 00 [15:46:33]MH_I2C_Read... [15:46:33]Read from MH i2c: E2 0E 00 34 B9 00 09 00 01 04 26 72 66 00 00 00 00 90 00 78 [15:46:33]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [15:46:33]wFMCommunicate OK [15:46:33]SAM_PROTO_GetShiftState done [15:46:33]FM_GetShiftState done [15:46:33]req_shift_opened done [15:46:33]requested_item shift.open_date is exist - process it [15:46:33]req_shift_open_date [15:46:33]req_shift_open_date done [15:46:33]produce_requested_data done [15:46:33]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103715,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [15:46:33]process_action_free close_receipt [15:46:33]json_value_free [15:46:33]json_value_free done [15:46:33]process_json_proto returns [15:46:33]Send response to host [15:46:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103715,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [15:46:33]free response buf [15:46:33]execute_script done [15:46:33]execute_script returns [15:46:33]free content buf [15:46:33]Sock 7.Close socket [15:46:33]Sock 7.Thread stoped [15:48:16]accept exits with 9 [15:48:16]New connection [15:48:16]New thread 3067227492 created [15:48:16]Thread 3067084132 joined [15:48:16]Waiting for new connection... [15:48:16] Sock 9.Parse request [15:48:16]Sock 9.Check first char [15:48:16]Sock 9.First char is OK [15:48:16]request: POST /json_proto HTTP/1.0 [15:48:16]Method: POST [15:48:16]URL: /json_proto [15:48:16]Method is POST - this is cgi request [15:48:16]url: /json_proto [15:48:16]query_string will be loaded in cgi processing [15:48:16]execute_cgi json_proto POST (null) [15:48:16]execute_cgi path=json_proto method=POST [15:48:16]POST find Content-Length [15:48:16]Host: 172.17.38.133:8080 [15:48:16]Content-Length: 687 [15:48:16]Content-Type: application/json [15:48:16] [15:48:16]POST finish read [15:48:16]Found Content-Length = 687 [15:48:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672987", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 96.030, "sum" : 7000.59, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 7000.00, "total" : 7000.00, "payments": [ { "type": 0, "sum" : 7000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:48:16]execute_script... [15:48:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672987", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 96.030, "sum" : 7000.59, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 7000.00, "total" : 7000.00, "payments": [ { "type": 0, "sum" : 7000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:48:16]POST & json_proto [15:48:16]process_json_proto [15:48:16]json parsed OK: [15:48:16]protocol is kg_v1.0 [15:48:16]action value=close_receipt [15:48:16]process_action close_receipt [15:48:16]cmd_close_receipt [15:48:16]MH_GetDate [15:48:16]Write to MH i2c: F0 00 00 35 B9 DD [15:48:16]Write i2c OK [15:48:16]MH_I2C_Read... [15:48:16]Read from MH i2c: F0 [15:48:16]MH_I2C_Read... [15:48:16]Read from MH i2c: F0 09 00 [15:48:16]MH_I2C_Read... [15:48:16]Read from MH i2c: F0 09 00 35 B9 00 CD FD 72 66 BD 8F 7C 64 B4 [15:48:16]GetLastDocTimeStamp 1718812002 [15:48:16]current date 1718812109 [15:48:16]FM_GetShiftState [15:48:16]SAM_PROTO_GetShiftState [15:48:16]wFMCommunicate request_size=4 [15:48:16]MH_SAM_APDU [15:48:16]CAPDU: 80 13 01 00 [15:48:16]Write to MH i2c: E2 08 00 36 B9 80 13 01 00 00 00 00 00 6C [15:48:16]Write i2c OK [15:48:16]MH_I2C_Read... [15:48:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:48:16]Read from MH i2c: E2 [15:48:16]MH_I2C_Read... [15:48:16]Read from MH i2c: E2 0E 00 [15:48:16]MH_I2C_Read... [15:48:16]Read from MH i2c: E2 0E 00 36 B9 00 09 00 01 04 26 72 66 00 00 00 00 90 00 7A [15:48:16]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [15:48:16]wFMCommunicate OK [15:48:16]SAM_PROTO_GetShiftState done [15:48:16]FM_GetShiftState done [15:48:16]opened in 1718756868 [15:48:16]opened+sec_in_day 1718843268 [15:48:16]quantity*price = 700058 [15:48:16]sum+1 = 700060 [15:48:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.59 ИТОГО: 7000.00 Внесено: 7000.00 СДАЧА: 0.00 НСП 1% : 61.95 НДС 12% : 743.42 Наличными: 7000.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 146 19.06.2024 15:48 Смена: 353 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103716 ФПД: 93761397646651 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T154829&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103716&fm=93761397646651&tin=02508201610067®Number=0000000000092785&sum=700000 [15:48:17]StoreToDocumentArchive [15:48:17]shift 353 fd 103716 [15:48:17]save to /storage/0353/doc_00103716 [15:48:17]save last doc name /storage/0353/doc_00103716 to /storage/kkm_last_doc_name [15:48:17]save OK [15:48:17]Clear old archive folders... [15:48:17]ProcessDocumentItem done err = 0, tmpTLVsize=252 [15:48:17]tlvbuf is 0145DD50 [15:48:17]SAM_PROTO_ClearQueue [15:48:17]wFMCommunicate request_size=4 [15:48:17]MH_SAM_APDU [15:48:17]CAPDU: 80 09 00 00 [15:48:17]Write to MH i2c: E2 08 00 43 B9 80 09 00 00 00 00 00 00 6E [15:48:17]Write i2c OK [15:48:17]MH_I2C_Read... [15:48:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:48:17]Read from MH i2c: E2 [15:48:17]MH_I2C_Read... [15:48:17]Read from MH i2c: E2 03 00 [15:48:17]MH_I2C_Read... [15:48:17]Read from MH i2c: E2 03 00 43 B9 00 90 00 70 [15:48:17]RAPDU: 90 00 [15:48:17]wFMCommunicate OK [15:48:17]SAM_PROTO_ClearQueue done [15:48:17]KKMCreateOFDPacket [15:48:17]OFDProtocolAddRootSTLVToBuf [15:48:17]FM_MakeSignedData [15:48:17]FM_MakeSignedData [15:48:17]SAM_PROTO_SignData [15:48:17]wFMCommunicate request_size=4 [15:48:17]MH_SAM_APDU [15:48:17]CAPDU: 80 0D 01 02 [15:48:17]Write to MH i2c: E2 08 00 44 B9 80 0D 01 02 00 00 00 00 76 [15:48:17]Write i2c OK [15:48:17]MH_I2C_Read... [15:48:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:48:17]Read from MH i2c: E2 [15:48:17]MH_I2C_Read... [15:48:17]Read from MH i2c: E2 03 00 [15:48:17]MH_I2C_Read... [15:48:17]Read from MH i2c: E2 03 00 44 B9 00 90 00 71 [15:48:17]RAPDU: 90 00 [15:48:17]wFMCommunicate OK [15:48:17]wFMCommunicate request_size=255 [15:48:17]MH_SAM_APDU [15:48:17]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 1E 77 01 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 9B AE 0A 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 AE 0A 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 33 18 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 66 22 01 00 00 00 07 04 06 00 60 AE 0A 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 CD FD 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 24 95 01 00 35 04 06 00 [15:48:17]Write to MH i2c: E2 02 01 45 B9 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 1E 77 01 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 9B AE 0A 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 AE 0A 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 33 18 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 66 22 01 00 00 00 07 04 06 00 60 AE 0A 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 CD FD 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 24 95 01 00 35 04 06 00 00 00 94 [15:48:17]Write i2c OK [15:48:17]MH_I2C_Read... [15:48:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:48:18]Read from MH i2c: E2 [15:48:18]MH_I2C_Read... [15:48:18]Read from MH i2c: E2 03 00 [15:48:18]MH_I2C_Read... [15:48:18]Read from MH i2c: E2 03 00 45 B9 00 90 00 72 [15:48:18]RAPDU: 90 00 [15:48:18]wFMCommunicate OK [15:48:18]wFMCommunicate request_size=11 [15:48:18]MH_SAM_APDU [15:48:18]CAPDU: 80 0D 02 02 06 55 46 86 CC E5 3B [15:48:18]Write to MH i2c: E2 0E 00 46 B9 80 0D 02 02 06 00 55 46 86 CC E5 3B 00 00 92 [15:48:18]Write i2c OK [15:48:18]MH_I2C_Read... [15:48:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:48:18]Read from MH i2c: E2 [15:48:18]MH_I2C_Read... [15:48:18]Read from MH i2c: E2 03 00 [15:48:18]MH_I2C_Read... [15:48:18]Read from MH i2c: E2 03 00 46 B9 00 90 00 73 [15:48:18]RAPDU: 90 00 [15:48:18]wFMCommunicate OK [15:48:18]wFMCommunicate request_size=4 [15:48:18]MH_SAM_APDU [15:48:18]CAPDU: 80 0D 03 02 [15:48:18]Write to MH i2c: E2 08 00 47 B9 80 0D 03 02 00 00 00 00 7B [15:48:18]Write i2c OK [15:48:18]MH_I2C_Read... [15:48:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:48:18]Read from MH i2c: E2 [15:48:18]MH_I2C_Read... [15:48:18]Read from MH i2c: E2 0B 00 [15:48:18]MH_I2C_Read... [15:48:18]Read from MH i2c: E2 0B 00 47 B9 00 21 AA 0E 31 7D 9F A4 51 90 00 97 [15:48:18]RAPDU: 21 AA 0E 31 7D 9F A4 51 90 00 [15:48:18]wFMCommunicate OK [15:48:18]SAM_PROTO_SignData done [15:48:18]FM_MakeSignedData done [15:48:18]CreateOFDProtocolMessage [15:48:18]wFMCommunicate request_size=4 [15:48:18]MH_SAM_APDU [15:48:18]CAPDU: 80 11 00 00 [15:48:18]Write to MH i2c: E2 08 00 48 B9 80 11 00 00 00 00 00 00 7B [15:48:18]Write i2c OK [15:48:18]MH_I2C_Read... [15:48:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:48:18]Read from MH i2c: E2 [15:48:18]MH_I2C_Read... [15:48:18]Read from MH i2c: E2 17 00 [15:48:18]MH_I2C_Read... [15:48:18]Read from MH i2c: E2 17 00 48 B9 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 CE [15:48:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [15:48:18]wFMCommunicate OK [15:48:18]CreateOFDProtocolMessage done [15:48:18]OFDSenderStorePacket 103716 [15:48:18]StoreOFDPacket docnum=103716 [15:48:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 7E 3E 08 01 9E BA 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 1E 77 01 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 9B AE 0A 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 AE 0A 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 33 18 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 66 22 01 00 00 00 07 04 06 00 60 AE 0A 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 CD FD 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 24 95 01 00 35 04 06 00 55 46 86 CC E5 3B 21 AA 0E 31 7D 9F A4 51 [15:48:18]CheckFolder [15:48:18]dirname=/storage/ofd_packets [15:48:18]CheckFolder done [15:48:18]ProducePacketName [15:48:18]name=ofd_packets/00103716 [15:48:18]NVStorageSaveData ofd_packets/00103716 [15:48:18]File name is /storage/ofd_packets/00103716 [15:48:18]Write 302 bytes [15:48:18]NVStorageSaveData done [15:48:18]OFDSenderStorePacket done [15:48:18]KKMCreateOFDPacket done [15:48:18]NVStorageSaveData kkm_last_timestamp [15:48:18]File name is /storage/kkm_last_timestamp [15:48:18]Write 4 bytes [15:48:18]NVStorageSaveData done [15:48:18]ExternCall_PrintAddStr [15:48:18]wPrintStart [15:48:18]Write to MH i2c: 01 00 00 49 B9 02 [15:48:18]Write i2c OK [15:48:18]MH_I2C_Read... [15:48:18]Read from MH i2c: 01 [15:48:18]MH_I2C_Read... [15:48:18]Read from MH i2c: 01 07 00 [15:48:18]MH_I2C_Read... [15:48:18]Read from MH i2c: 01 07 00 49 B9 00 00 00 00 00 FF 0F 17 [15:48:18]RasterBufferAndPrint [15:48:18]line Счет N : (1)672987 [15:48:18]line ИНН: 02508201610067 [15:48:18]line Контрольно-Кассовый Чек [15:48:18]line ПРОДАЖА [15:48:18]line ТРК (МРК, ГНК) : 21 [15:48:18]line Товар: 2710194210 [15:48:18]line ДТ(л)-К-5 [15:48:18]line 96.030 * 72.90 [15:48:18]line = 7000.59 [15:48:18]line НДС 12% НСП 1% [15:48:18]line > о реализуемом товаре [15:48:18]line ОКРУГЛЕНИЕ: -0.59 [15:48:18]line ИТОГО: 7000.00 [15:48:18]line Внесено: 7000.00 [15:48:18]line СДАЧА: 0.00 [15:48:18]line НСП 1% : 61.95 [15:48:18]line НДС 12% : 743.42 [15:48:18]line Наличными: 7000.00 [15:48:18]line Безнал.: 0.00 [15:48:18]line Место: АЗС № 120 "Партнер Нефть" [15:48:18]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [15:48:18]line СНО: Общий режим [15:48:18]line Чек 146 19.06.2024 15:48 [15:48:18]line Смена: 353 ФФД: 1.0 [15:48:18]line ЗНМ: 0300000164 [15:48:18]line РНМ: 0000000000092785 [15:48:18]line Версия ККМ: 001 [15:48:18]line ФМ: 0000000000875093 [15:48:18]line ФД: 103716 [15:48:18]line ФПД: 93761397646651 [15:48:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T154829&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103716&fm=93761397646651&tin=02508201610067®Number=0000000000092785&sum=700000 [15:48:18]written 0, free lines is 4095 [15:48:19]Write to MH i2c: 01 00 00 74 B9 2D [15:48:19]Write i2c OK [15:48:19]MH_I2C_Read... [15:48:19]Read from MH i2c: 01 [15:48:19]MH_I2C_Read... [15:48:19]Read from MH i2c: 01 07 00 [15:48:19]MH_I2C_Read... [15:48:19]Read from MH i2c: 01 07 00 74 B9 00 00 00 00 00 D9 0C 19 [15:48:19]RasterBufferAndPrint [15:48:19]line [15:48:19]line [15:48:19]line [15:48:19]line [15:48:19]line [15:48:19]written 0, free lines is 3296 [15:48:19]MH_Cut [15:48:19]Write to MH i2c: D1 01 00 7B B9 01 06 [15:48:19]Write i2c OK [15:48:19]MH_I2C_Read... [15:48:19]Read from MH i2c: D1 [15:48:19]MH_I2C_Read... [15:48:19]Read from MH i2c: D1 01 00 [15:48:19]MH_I2C_Read... [15:48:19]Read from MH i2c: D1 01 00 7B B9 00 05 [15:48:19]Write to MH i2c: 01 00 00 7C B9 35 [15:48:19]Write i2c OK [15:48:19]MH_I2C_Read... [15:48:19]*** Cut start [15:48:19]*** Partial cut [15:48:19]*** CUTSNS_PIN = 1 [15:48:19]*** CUTSNS_PIN = 0 [15:48:20]*** Brake cut motor [15:48:20]Read from MH i2c: 01 [15:48:20]MH_I2C_Read... [15:48:20]*** Stop cut motor [15:48:20]*** Cut end [15:48:20]Read from MH i2c: 01 07 00 [15:48:20]MH_I2C_Read... [15:48:20]Read from MH i2c: 01 07 00 7C B9 00 00 00 00 00 FF 0F 4A [15:48:20]process_action close_receipt done [15:48:20]requested_data is exist [15:48:20]produce_requested_data [15:48:20]requested_item fm.sn is exist - process it [15:48:20]wFMCommunicate request_size=4 [15:48:20]MH_SAM_APDU [15:48:20]CAPDU: 80 11 00 00 [15:48:20]Write to MH i2c: E2 08 00 7D B9 80 11 00 00 00 00 00 00 B0 [15:48:20]Write i2c OK [15:48:20]MH_I2C_Read... [15:48:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:48:20]Read from MH i2c: E2 [15:48:20]MH_I2C_Read... [15:48:20]Read from MH i2c: E2 17 00 [15:48:20]MH_I2C_Read... [15:48:20]Read from MH i2c: E2 17 00 7D B9 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 03 [15:48:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [15:48:20]wFMCommunicate OK [15:48:20]requested_item fd.num is exist - process it [15:48:20]SAM_PROTO_GetFieldsCounters [15:48:20]wFMCommunicate request_size=4 [15:48:20]MH_SAM_APDU [15:48:20]CAPDU: 80 13 00 00 [15:48:20]Write to MH i2c: E2 08 00 7E B9 80 13 00 00 00 00 00 00 B3 [15:48:20]Write i2c OK [15:48:20]MH_I2C_Read... [15:48:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:48:20]Read from MH i2c: E2 [15:48:20]MH_I2C_Read... [15:48:20]Read from MH i2c: E2 62 00 [15:48:20]MH_I2C_Read... [15:48:20]Read from MH i2c: E2 62 00 7E B9 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 24 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 92 00 00 00 5E 04 04 00 92 00 00 00 57 04 04 00 93 00 00 00 19 04 04 00 00 00 00 00 90 00 AC [15:48:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 24 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 92 00 00 00 5E 04 04 00 92 00 00 00 57 04 04 00 93 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:48:20]wFMCommunicate OK [15:48:20]SAM_PROTO_GetFieldsCounters done [15:48:20]requested_item shift.num is exist - process it [15:48:20]requested_item shift.opened is exist - process it [15:48:20]req_shift_opened [15:48:20]FM_GetShiftState [15:48:20]SAM_PROTO_GetShiftState [15:48:20]wFMCommunicate request_size=4 [15:48:20]MH_SAM_APDU [15:48:20]CAPDU: 80 13 01 00 [15:48:20]Write to MH i2c: E2 08 00 7F B9 80 13 01 00 00 00 00 00 B5 [15:48:20]Write i2c OK [15:48:20]MH_I2C_Read... [15:48:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:48:20]Read from MH i2c: E2 [15:48:20]MH_I2C_Read... [15:48:20]Read from MH i2c: E2 0E 00 [15:48:20]MH_I2C_Read... [15:48:20]Read from MH i2c: E2 0E 00 7F B9 00 09 00 01 04 26 72 66 00 00 00 00 90 00 C3 [15:48:20]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [15:48:20]wFMCommunicate OK [15:48:20]SAM_PROTO_GetShiftState done [15:48:20]FM_GetShiftState done [15:48:20]req_shift_opened done [15:48:20]requested_item shift.open_date is exist - process it [15:48:20]req_shift_open_date [15:48:20]req_shift_open_date done [15:48:20]produce_requested_data done [15:48:20]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103716,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [15:48:20]process_action_free close_receipt [15:48:20]json_value_free [15:48:20]json_value_free done [15:48:20]process_json_proto returns [15:48:20]Send response to host [15:48:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103716,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [15:48:20]free response buf [15:48:20]execute_script done [15:48:20]execute_script returns [15:48:20]free content buf [15:48:20]Sock 9.Close socket [15:48:20]Sock 9.Thread stoped [15:48:44]ConnectInit Can't connect to host [15:48:44]CommunicateWithHost connect error [15:48:44]CommunicateWithHost err = -1 [15:48:44]OFD Sender: Server communicate error [15:48:44]OFD Sender: Processing packet 103715 [packets to send 18, broken 16] [15:48:44]ProducePacketName [15:48:44]name=ofd_packets/00103715 [15:48:44]OFD Sender: To server: pG, [15:48:44]CommunicateWithHost lk.salyk.kg:30040 [15:48:44]ConnectInit lk.salyk.kg [15:48:44]Connected sock=9 [15:48:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 03 39 07 01 C6 CA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 60 03 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 03 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 1B 00 00 00 00 07 04 06 00 60 03 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 00 00 00 F4 03 04 00 62 FD 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 23 95 01 00 35 04 06 00 7A 0C BF D7 56 75 B2 AD 74 52 C9 41 32 2C [15:48: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 39 33 4F 00 00 00 A9 2D 47 00 67 88 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 23 95 01 00 F4 03 04 00 70 A4 72 66 B6 04 01 00 00 17 CF CE 65 40 48 2A E7 [15:48:44]CommunicateWithHost err = 0 [15:48:44]CheckOFDResponse [15:48:44]1017 (14) - 77093643461234 [15:48:44]1041 (16) - 0000000000875093 [15:48:44]1040 (4) - 103715 [15:48:44]1012 (4) - 19.06.2024 09:27 [15:48:44]1206 (1) - 0 [15:48:44]OFD Sender: Remove packet 103715 [15:48:44]ProducePacketName [15:48:44]name=ofd_packets/00103715 [15:48:44]NVStorageDeleteData [15:48:45]OFD Sender: Processing packet 103716 [packets to send 17, broken 16] [15:48:45]ProducePacketName [15:48:45]name=ofd_packets/00103716 [15:48:45]OFD Sender: To server: pG, [15:48:45]CommunicateWithHost lk.salyk.kg:30040 [15:48:45]ConnectInit lk.salyk.kg [15:48:45]Connected sock=9 [15:48: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 39 33 10 01 00 00 7E 3E 08 01 9E BA 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 1E 77 01 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 9B AE 0A 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 AE 0A 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 33 18 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 66 22 01 00 00 00 07 04 06 00 60 AE 0A 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 CD FD 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 24 95 01 00 35 04 06 00 55 46 86 CC E5 3B 21 AA 0E 31 7D 9F A4 51 [15:48: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 39 33 4F 00 00 00 E3 6B 47 00 B7 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 39 33 10 04 04 00 24 95 01 00 F4 03 04 00 70 A4 72 66 B6 04 01 00 00 DD BC 12 D8 9D 61 6E 56 [15:48:45]CommunicateWithHost err = 0 [15:48:45]CheckOFDResponse [15:48:45]1017 (14) - 77093643461234 [15:48:45]1041 (16) - 0000000000875093 [15:48:45]1040 (4) - 103716 [15:48:45]1012 (4) - 19.06.2024 09:27 [15:48:45]1206 (1) - 0 [15:48:45]OFD Sender: Remove packet 103716 [15:48:45]ProducePacketName [15:48:45]name=ofd_packets/00103716 [15:48:45]NVStorageDeleteData [15:48:46]OFD Sender: No OFD packet to send [15:48:51]OFD Sender: No OFD packet to send [15:48:56]OFD Sender: No OFD packet to send [15:49:01]OFD Sender: No OFD packet to send [15:49:06]OFD Sender: No OFD packet to send [15:49:11]OFD Sender: No OFD packet to send [15:49:16]OFD Sender: No OFD packet to send [15:49:21]OFD Sender: No OFD packet to send [15:49:23]accept exits with 7 [15:49:23]New connection [15:49:23]New thread 3067084132 created [15:49:23]Thread 3067227492 joined [15:49:23]Waiting for new connection... [15:49:23] Sock 7.Parse request [15:49:23]Sock 7.Check first char [15:49:23]Sock 7.First char is OK [15:49:23]request: POST /json_proto HTTP/1.0 [15:49:23]Method: POST [15:49:23]URL: /json_proto [15:49:23]Method is POST - this is cgi request [15:49:23]url: /json_proto [15:49:23]query_string will be loaded in cgi processing [15:49:23]execute_cgi json_proto POST (null) [15:49:23]execute_cgi path=json_proto method=POST [15:49:23]POST find Content-Length [15:49:23]Host: 172.17.38.133:8080 [15:49:23]Content-Length: 682 [15:49:23]Content-Type: application/json [15:49:23] [15:49:23]POST finish read [15:49:23]Found Content-Length = 682 [15:49:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672990", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 6.860, "sum" : 500.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:49:23]execute_script... [15:49:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672990", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 6.860, "sum" : 500.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:49:23]POST & json_proto [15:49:23]process_json_proto [15:49:23]json parsed OK: [15:49:23]protocol is kg_v1.0 [15:49:23]action value=close_receipt [15:49:23]process_action close_receipt [15:49:23]cmd_close_receipt [15:49:23]MH_GetDate [15:49:23]Write to MH i2c: F0 00 00 80 B9 28 [15:49:23]Write i2c OK [15:49:23]MH_I2C_Read... [15:49:23]Read from MH i2c: F0 [15:49:23]MH_I2C_Read... [15:49:23]Read from MH i2c: F0 09 00 [15:49:23]MH_I2C_Read... [15:49:23]Read from MH i2c: F0 09 00 80 B9 00 10 FE 72 66 BD 8F 7C 64 43 [15:49:23]GetLastDocTimeStamp 1718812109 [15:49:23]current date 1718812176 [15:49:23]FM_GetShiftState [15:49:23]SAM_PROTO_GetShiftState [15:49:23]wFMCommunicate request_size=4 [15:49:23]MH_SAM_APDU [15:49:23]CAPDU: 80 13 01 00 [15:49:23]Write to MH i2c: E2 08 00 81 B9 80 13 01 00 00 00 00 00 B7 [15:49:23]Write i2c OK [15:49:23]MH_I2C_Read... [15:49:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:49:23]Read from MH i2c: E2 [15:49:23]MH_I2C_Read... [15:49:23]Read from MH i2c: E2 0E 00 [15:49:23]MH_I2C_Read... [15:49:23]Read from MH i2c: E2 0E 00 81 B9 00 09 00 01 04 26 72 66 00 00 00 00 90 00 C5 [15:49:23]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [15:49:23]wFMCommunicate OK [15:49:23]SAM_PROTO_GetShiftState done [15:49:23]FM_GetShiftState done [15:49:23]opened in 1718756868 [15:49:23]opened+sec_in_day 1718843268 [15:49:23]quantity*price = 50009 [15:49:23]sum+1 = 50010 [15:49:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 147 19.06.2024 15:49 Смена: 353 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103717 ФПД: 188812763948896 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T154936&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103717&fm=188812763948896&tin=02508201610067®Number=0000000000092785&sum=50000 [15:49:24]StoreToDocumentArchive [15:49:24]shift 353 fd 103717 [15:49:24]save to /storage/0353/doc_00103717 [15:49:24]save last doc name /storage/0353/doc_00103717 to /storage/kkm_last_doc_name [15:49:24]save OK [15:49:24]Clear old archive folders... [15:49:24]ProcessDocumentItem done err = 0, tmpTLVsize=252 [15:49:24]tlvbuf is 013E1770 [15:49:24]SAM_PROTO_ClearQueue [15:49:24]wFMCommunicate request_size=4 [15:49:24]MH_SAM_APDU [15:49:24]CAPDU: 80 09 00 00 [15:49:24]Write to MH i2c: E2 08 00 8E B9 80 09 00 00 00 00 00 00 B9 [15:49:24]Write i2c OK [15:49:24]MH_I2C_Read... [15:49:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:49:24]Read from MH i2c: E2 [15:49:24]MH_I2C_Read... [15:49:24]Read from MH i2c: E2 03 00 [15:49:24]MH_I2C_Read... [15:49:24]Read from MH i2c: E2 03 00 8E B9 00 90 00 BB [15:49:24]RAPDU: 90 00 [15:49:24]wFMCommunicate OK [15:49:24]SAM_PROTO_ClearQueue done [15:49:24]KKMCreateOFDPacket [15:49:24]OFDProtocolAddRootSTLVToBuf [15:49:24]FM_MakeSignedData [15:49:24]FM_MakeSignedData [15:49:24]SAM_PROTO_SignData [15:49:24]wFMCommunicate request_size=4 [15:49:24]MH_SAM_APDU [15:49:24]CAPDU: 80 0D 01 02 [15:49:24]Write to MH i2c: E2 08 00 8F B9 80 0D 01 02 00 00 00 00 C1 [15:49:24]Write i2c OK [15:49:24]MH_I2C_Read... [15:49:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:49:24]Read from MH i2c: E2 [15:49:24]MH_I2C_Read... [15:49:24]Read from MH i2c: E2 03 00 [15:49:24]MH_I2C_Read... [15:49:24]Read from MH i2c: E2 03 00 8F B9 00 90 00 BC [15:49:24]RAPDU: 90 00 [15:49:24]wFMCommunicate OK [15:49:24]wFMCommunicate request_size=255 [15:49:24]MH_SAM_APDU [15:49:24]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 00 00 00 F4 03 04 00 10 FE 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 25 95 01 00 35 04 06 00 [15:49:24]Write to MH i2c: E2 02 01 90 B9 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 00 00 00 F4 03 04 00 10 FE 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 25 95 01 00 35 04 06 00 00 00 EF [15:49:24]Write i2c OK [15:49:24]MH_I2C_Read... [15:49:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:49:25]Read from MH i2c: E2 [15:49:25]MH_I2C_Read... [15:49:25]Read from MH i2c: E2 03 00 [15:49:25]MH_I2C_Read... [15:49:25]Read from MH i2c: E2 03 00 90 B9 00 90 00 BD [15:49:25]RAPDU: 90 00 [15:49:25]wFMCommunicate OK [15:49:25]wFMCommunicate request_size=11 [15:49:25]MH_SAM_APDU [15:49:25]CAPDU: 80 0D 02 02 06 AB B9 65 B9 67 60 [15:49:25]Write to MH i2c: E2 0E 00 91 B9 80 0D 02 02 06 00 AB B9 65 B9 67 60 00 00 19 [15:49:25]Write i2c OK [15:49:25]MH_I2C_Read... [15:49:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:49:25]Read from MH i2c: E2 [15:49:25]MH_I2C_Read... [15:49:25]Read from MH i2c: E2 03 00 [15:49:25]MH_I2C_Read... [15:49:25]Read from MH i2c: E2 03 00 91 B9 00 90 00 BE [15:49:25]RAPDU: 90 00 [15:49:25]wFMCommunicate OK [15:49:25]wFMCommunicate request_size=4 [15:49:25]MH_SAM_APDU [15:49:25]CAPDU: 80 0D 03 02 [15:49:25]Write to MH i2c: E2 08 00 92 B9 80 0D 03 02 00 00 00 00 C6 [15:49:25]Write i2c OK [15:49:25]MH_I2C_Read... [15:49:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:49:25]Read from MH i2c: E2 [15:49:25]MH_I2C_Read... [15:49:25]Read from MH i2c: E2 0B 00 [15:49:25]MH_I2C_Read... [15:49:25]Read from MH i2c: E2 0B 00 92 B9 00 D3 F0 DE 05 83 C6 2E E4 90 00 C8 [15:49:25]RAPDU: D3 F0 DE 05 83 C6 2E E4 90 00 [15:49:25]wFMCommunicate OK [15:49:25]SAM_PROTO_SignData done [15:49:25]FM_MakeSignedData done [15:49:25]CreateOFDProtocolMessage [15:49:25]wFMCommunicate request_size=4 [15:49:25]MH_SAM_APDU [15:49:25]CAPDU: 80 11 00 00 [15:49:25]Write to MH i2c: E2 08 00 93 B9 80 11 00 00 00 00 00 00 C6 [15:49:25]Write i2c OK [15:49:25]MH_I2C_Read... [15:49:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:49:25]Read from MH i2c: E2 [15:49:25]MH_I2C_Read... [15:49:25]Read from MH i2c: E2 17 00 [15:49:25]MH_I2C_Read... [15:49:25]Read from MH i2c: E2 17 00 93 B9 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 19 [15:49:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [15:49:25]wFMCommunicate OK [15:49:25]CreateOFDProtocolMessage done [15:49:25]OFDSenderStorePacket 103717 [15:49:25]StoreOFDPacket docnum=103717 [15:49:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 8C F0 08 01 26 B4 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 00 00 00 F4 03 04 00 10 FE 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 25 95 01 00 35 04 06 00 AB B9 65 B9 67 60 D3 F0 DE 05 83 C6 2E E4 [15:49:25]CheckFolder [15:49:25]dirname=/storage/ofd_packets [15:49:25]CheckFolder done [15:49:25]ProducePacketName [15:49:25]name=ofd_packets/00103717 [15:49:25]NVStorageSaveData ofd_packets/00103717 [15:49:25]File name is /storage/ofd_packets/00103717 [15:49:25]Write 302 bytes [15:49:25]NVStorageSaveData done [15:49:25]OFDSenderStorePacket done [15:49:25]KKMCreateOFDPacket done [15:49:25]NVStorageSaveData kkm_last_timestamp [15:49:25]File name is /storage/kkm_last_timestamp [15:49:25]Write 4 bytes [15:49:25]NVStorageSaveData done [15:49:25]ExternCall_PrintAddStr [15:49:25]wPrintStart [15:49:25]Write to MH i2c: 01 00 00 94 B9 4D [15:49:25]Write i2c OK [15:49:25]MH_I2C_Read... [15:49:25]Read from MH i2c: 01 [15:49:25]MH_I2C_Read... [15:49:25]Read from MH i2c: 01 07 00 [15:49:25]MH_I2C_Read... [15:49:25]Read from MH i2c: 01 07 00 94 B9 00 00 00 00 00 FF 0F 62 [15:49:25]RasterBufferAndPrint [15:49:25]line Счет N : (1)672990 [15:49:25]line ИНН: 02508201610067 [15:49:25]line Контрольно-Кассовый Чек [15:49:25]line ПРОДАЖА [15:49:25]line ТРК (МРК, ГНК) : 21 [15:49:25]line Товар: 2710194210 [15:49:25]line ДТ(л)-К-5 [15:49:25]line 6.860 * 72.90 [15:49:25]line = 500.09 [15:49:25]line НДС 12% НСП 1% [15:49:25]line > о реализуемом товаре [15:49:25]line ОКРУГЛЕНИЕ: -0.09 [15:49:25]line ИТОГО: 500.00 [15:49:25]line Внесено: 500.00 [15:49:25]line СДАЧА: 0.00 [15:49:25]line НСП 1% : 4.43 [15:49:25]line НДС 12% : 53.11 [15:49:25]line Наличными: 500.00 [15:49:25]line Безнал.: 0.00 [15:49:25]line Место: АЗС № 120 "Партнер Нефть" [15:49:25]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [15:49:25]line СНО: Общий режим [15:49:25]line Чек 147 19.06.2024 15:49 [15:49:25]line Смена: 353 ФФД: 1.0 [15:49:25]line ЗНМ: 0300000164 [15:49:25]line РНМ: 0000000000092785 [15:49:25]line Версия ККМ: 001 [15:49:25]line ФМ: 0000000000875093 [15:49:25]line ФД: 103717 [15:49:25]line ФПД: 188812763948896 [15:49:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T154936&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103717&fm=188812763948896&tin=02508201610067®Number=0000000000092785&sum=50000 [15:49:25]OFD Sender: Processing packet 103717 [packets to send 17, broken 16] [15:49:25]ProducePacketName [15:49:25]name=ofd_packets/00103717 [15:49:25]OFD Sender: To server: pG, [15:49:25]CommunicateWithHost lk.salyk.kg:30040 [15:49:25]ConnectInit lk.salyk.kg [15:49:25]written 0, free lines is 4095 [15:49:25]Connected sock=10 [15:49:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 8C F0 08 01 26 B4 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 00 00 00 F4 03 04 00 10 FE 72 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 25 95 01 00 35 04 06 00 AB B9 65 B9 67 60 D3 F0 DE 05 83 C6 2E E4 [15:49:26]Write to MH i2c: 01 00 00 BF B9 78 [15:49:26]Write i2c OK [15:49:26]MH_I2C_Read... [15:49:26]Read from MH i2c: 01 [15:49:26]MH_I2C_Read... [15:49:26]Read from MH i2c: 01 07 00 [15:49:26]MH_I2C_Read... [15:49:26]Read from MH i2c: 01 07 00 BF B9 00 00 00 00 00 D9 0C 64 [15:49:26]RasterBufferAndPrint [15:49:26]line [15:49:26]line [15:49:26]line [15:49:26]line [15:49:26]line [15:49:26]written 0, free lines is 3296 [15:49:26]MH_Cut [15:49:26]Write to MH i2c: D1 01 00 C6 B9 01 51 [15:49:26]Write i2c OK [15:49:26]MH_I2C_Read... [15:49:26]Read from MH i2c: D1 [15:49:26]MH_I2C_Read... [15:49:26]Read from MH i2c: D1 01 00 [15:49:26]MH_I2C_Read... [15:49:26]Read from MH i2c: D1 01 00 C6 B9 00 50 [15:49:26]Write to MH i2c: 01 00 00 C7 B9 80 [15:49: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 39 33 4F 00 00 00 C1 83 47 00 75 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 39 33 10 04 04 00 25 95 01 00 F4 03 04 00 99 A4 72 66 B6 04 01 00 00 FA F2 FA C4 61 20 7D EA [15:49:26]CommunicateWithHost err = 0 [15:49:26]CheckOFDResponse [15:49:26]1017 (14) - 77093643461234 [15:49:26]1041 (16) - 0000000000875093 [15:49:26]1040 (4) - 103717 [15:49:26]1012 (4) - 19.06.2024 09:27 [15:49:26]1206 (1) - 0 [15:49:26]OFD Sender: Remove packet 103717 [15:49:26]ProducePacketName [15:49:26]name=ofd_packets/00103717 [15:49:26]NVStorageDeleteData [15:49:26]Write i2c OK [15:49:26]MH_I2C_Read... [15:49:26]OFD Sender: No OFD packet to send [15:49:26]*** Cut start [15:49:26]*** Partial cut [15:49:26]*** CUTSNS_PIN = 1 [15:49:26]*** CUTSNS_PIN = 0 [15:49:27]*** Brake cut motor [15:49:27]Read from MH i2c: 01 [15:49:27]MH_I2C_Read... [15:49:27]*** Stop cut motor [15:49:27]*** Cut end [15:49:27]Read from MH i2c: 01 07 00 [15:49:27]MH_I2C_Read... [15:49:27]Read from MH i2c: 01 07 00 C7 B9 00 00 00 00 00 FF 0F 95 [15:49:27]process_action close_receipt done [15:49:27]requested_data is exist [15:49:27]produce_requested_data [15:49:27]requested_item fm.sn is exist - process it [15:49:27]wFMCommunicate request_size=4 [15:49:27]MH_SAM_APDU [15:49:27]CAPDU: 80 11 00 00 [15:49:27]Write to MH i2c: E2 08 00 C8 B9 80 11 00 00 00 00 00 00 FB [15:49:27]Write i2c OK [15:49:27]MH_I2C_Read... [15:49:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:49:27]Read from MH i2c: E2 [15:49:27]MH_I2C_Read... [15:49:27]Read from MH i2c: E2 17 00 [15:49:27]MH_I2C_Read... [15:49:27]Read from MH i2c: E2 17 00 C8 B9 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 4E [15:49:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [15:49:27]wFMCommunicate OK [15:49:27]requested_item fd.num is exist - process it [15:49:27]SAM_PROTO_GetFieldsCounters [15:49:27]wFMCommunicate request_size=4 [15:49:27]MH_SAM_APDU [15:49:27]CAPDU: 80 13 00 00 [15:49:27]Write to MH i2c: E2 08 00 C9 B9 80 13 00 00 00 00 00 00 FE [15:49:27]Write i2c OK [15:49:27]MH_I2C_Read... [15:49:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:49:27]Read from MH i2c: E2 [15:49:27]MH_I2C_Read... [15:49:27]Read from MH i2c: E2 62 00 [15:49:27]MH_I2C_Read... [15:49:27]Read from MH i2c: E2 62 00 C9 B9 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 25 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 93 00 00 00 5E 04 04 00 93 00 00 00 57 04 04 00 94 00 00 00 19 04 04 00 00 00 00 00 90 00 FB [15:49:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 25 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 93 00 00 00 5E 04 04 00 93 00 00 00 57 04 04 00 94 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:49:27]wFMCommunicate OK [15:49:27]SAM_PROTO_GetFieldsCounters done [15:49:27]requested_item shift.num is exist - process it [15:49:27]requested_item shift.opened is exist - process it [15:49:27]req_shift_opened [15:49:27]FM_GetShiftState [15:49:27]SAM_PROTO_GetShiftState [15:49:27]wFMCommunicate request_size=4 [15:49:27]MH_SAM_APDU [15:49:27]CAPDU: 80 13 01 00 [15:49:27]Write to MH i2c: E2 08 00 CA B9 80 13 01 00 00 00 00 00 00 [15:49:27]Write i2c OK [15:49:27]MH_I2C_Read... [15:49:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:49:27]Read from MH i2c: E2 [15:49:27]MH_I2C_Read... [15:49:27]Read from MH i2c: E2 0E 00 [15:49:27]MH_I2C_Read... [15:49:27]Read from MH i2c: E2 0E 00 CA B9 00 09 00 01 04 26 72 66 00 00 00 00 90 00 0E [15:49:27]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [15:49:27]wFMCommunicate OK [15:49:27]SAM_PROTO_GetShiftState done [15:49:27]FM_GetShiftState done [15:49:27]req_shift_opened done [15:49:27]requested_item shift.open_date is exist - process it [15:49:27]req_shift_open_date [15:49:27]req_shift_open_date done [15:49:27]produce_requested_data done [15:49:27]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103717,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [15:49:27]process_action_free close_receipt [15:49:27]json_value_free [15:49:27]json_value_free done [15:49:27]process_json_proto returns [15:49:27]Send response to host [15:49:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103717,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [15:49:27]free response buf [15:49:27]execute_script done [15:49:27]execute_script returns [15:49:27]free content buf [15:49:27]Sock 7.Close socket [15:49:27]Sock 7.Thread stoped [15:49:31]OFD Sender: No OFD packet to send [15:49:36]OFD Sender: No OFD packet to send [15:49:41]OFD Sender: No OFD packet to send [15:49:46]OFD Sender: No OFD packet to send [15:49:51]OFD Sender: No OFD packet to send [15:49:56]OFD Sender: No OFD packet to send [15:50:01]OFD Sender: No OFD packet to send [15:50:06]OFD Sender: No OFD packet to send [15:50:11]OFD Sender: No OFD packet to send [15:50:16]OFD Sender: No OFD packet to send [15:50:21]OFD Sender: No OFD packet to send [15:50:26]OFD Sender: No OFD packet to send [15:50:31]OFD Sender: No OFD packet to send [15:50:36]OFD Sender: No OFD packet to send [15:50:41]OFD Sender: No OFD packet to send [15:50:46]OFD Sender: No OFD packet to send [15:50:51]OFD Sender: No OFD packet to send [15:50:56]OFD Sender: No OFD packet to send [15:51:01]OFD Sender: No OFD packet to send [15:51:06]OFD Sender: No OFD packet to send [15:51:11]OFD Sender: No OFD packet to send [15:51:16]OFD Sender: No OFD packet to send [15:51:21]OFD Sender: No OFD packet to send [15:51:26]OFD Sender: No OFD packet to send [15:51:31]OFD Sender: No OFD packet to send [15:51:36]OFD Sender: No OFD packet to send [15:51:41]OFD Sender: No OFD packet to send [15:51:46]OFD Sender: No OFD packet to send [15:51:51]OFD Sender: No OFD packet to send [15:51:56]OFD Sender: No OFD packet to send [15:52:01]OFD Sender: No OFD packet to send [15:52:06]OFD Sender: No OFD packet to send [15:52:11]OFD Sender: No OFD packet to send [15:52:16]OFD Sender: No OFD packet to send [15:52:21]OFD Sender: No OFD packet to send [15:52:26]OFD Sender: No OFD packet to send [15:52:31]OFD Sender: No OFD packet to send [15:52:36]OFD Sender: No OFD packet to send [15:52:41]OFD Sender: No OFD packet to send [15:52:46]OFD Sender: No OFD packet to send [15:52:51]OFD Sender: No OFD packet to send [15:52:56]OFD Sender: No OFD packet to send [15:53:01]OFD Sender: No OFD packet to send [15:53:06]OFD Sender: No OFD packet to send [15:53:11]OFD Sender: No OFD packet to send [15:53:16]OFD Sender: No OFD packet to send [15:53:21]OFD Sender: No OFD packet to send [15:53:26]OFD Sender: No OFD packet to send [15:53:31]OFD Sender: No OFD packet to send [15:53:36]OFD Sender: No OFD packet to send [15:53:41]OFD Sender: No OFD packet to send [15:53:46]OFD Sender: No OFD packet to send [15:53:51]OFD Sender: No OFD packet to send [15:53:56]OFD Sender: No OFD packet to send [15:54:01]OFD Sender: No OFD packet to send [15:54:06]OFD Sender: No OFD packet to send [15:54:11]OFD Sender: No OFD packet to send [15:54:16]OFD Sender: No OFD packet to send [15:54:21]OFD Sender: No OFD packet to send [15:54:26]OFD Sender: No OFD packet to send [15:54:31]OFD Sender: No OFD packet to send [15:54:36]OFD Sender: No OFD packet to send [15:54:41]OFD Sender: No OFD packet to send [15:54:46]OFD Sender: No OFD packet to send [15:54:51]OFD Sender: No OFD packet to send [15:54:56]OFD Sender: No OFD packet to send [15:55:01]OFD Sender: No OFD packet to send [15:55:06]OFD Sender: No OFD packet to send [15:55:11]OFD Sender: No OFD packet to send [15:55:16]OFD Sender: No OFD packet to send [15:55:21]OFD Sender: No OFD packet to send [15:55:26]OFD Sender: No OFD packet to send [15:55:31]OFD Sender: No OFD packet to send [15:55:36]OFD Sender: No OFD packet to send [15:55:41]OFD Sender: No OFD packet to send [15:55:46]OFD Sender: No OFD packet to send [15:55:51]OFD Sender: No OFD packet to send [15:55:56]OFD Sender: No OFD packet to send [15:56:01]OFD Sender: No OFD packet to send [15:56:06]OFD Sender: No OFD packet to send [15:56:11]OFD Sender: No OFD packet to send [15:56:16]OFD Sender: No OFD packet to send [15:56:21]OFD Sender: No OFD packet to send [15:56:26]OFD Sender: No OFD packet to send [15:56:32]OFD Sender: No OFD packet to send [15:56:37]OFD Sender: No OFD packet to send [15:56:42]OFD Sender: No OFD packet to send [15:56:47]OFD Sender: No OFD packet to send [15:56:52]OFD Sender: No OFD packet to send [15:56:57]OFD Sender: No OFD packet to send [15:57:02]OFD Sender: No OFD packet to send [15:57:07]OFD Sender: No OFD packet to send [15:57:10]accept exits with 9 [15:57:10]New connection [15:57:10]New thread 3067227492 created [15:57:10]Thread 3067084132 joined [15:57:10]Waiting for new connection... [15:57:10] Sock 9.Parse request [15:57:10]Sock 9.Check first char [15:57:10]Sock 9.First char is OK [15:57:10]request: POST /json_proto HTTP/1.0 [15:57:10]Method: POST [15:57:10]URL: /json_proto [15:57:10]Method is POST - this is cgi request [15:57:10]url: /json_proto [15:57:10]query_string will be loaded in cgi processing [15:57:10]execute_cgi json_proto POST (null) [15:57:10]execute_cgi path=json_proto method=POST [15:57:10]POST find Content-Length [15:57:10]Host: 172.17.38.133:8080 [15:57:10]Content-Length: 1168 [15:57:10]Content-Type: application/json [15:57:10] [15:57:10]POST finish read [15:57:10]Found Content-Length = 1168 [15:57:10]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 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. \u000A\u0421\u0447\u0435\u0442 N : (1)672993\u000A19.06.2024 15:34\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 42\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 10.000 x 66.40\u000A\u0418\u0422\u041E\u0413: 664.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30021788\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:57:10]execute_script... [15:57:10]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 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. \u000A\u0421\u0447\u0435\u0442 N : (1)672993\u000A19.06.2024 15:34\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 42\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 10.000 x 66.40\u000A\u0418\u0422\u041E\u0413: 664.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30021788\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:57:10]POST & json_proto [15:57:10]process_json_proto [15:57:10]json parsed OK: [15:57:10]protocol is kg_v1.0 [15:57:10]action value=print_text [15:57:10]process_action print_text [15:57:10]cmd_print_text [15:57:10]ExternCall_PrintAddStr [15:57:10]wPrintStart [15:57:10]Write to MH i2c: 01 00 00 CB B9 84 [15:57:10]Write i2c OK [15:57:10]MH_I2C_Read... [15:57:10]Read from MH i2c: 01 [15:57:10]MH_I2C_Read... [15:57:10]Read from MH i2c: 01 07 00 [15:57:10]MH_I2C_Read... [15:57:10]Read from MH i2c: 01 07 00 CB B9 00 00 00 00 00 FF 0F 99 [15:57:10]RasterBufferAndPrint [15:57:10]line *****ТОВАРНЫЙ ЧЕК***** [15:57:10]line АЗС 120 [15:57:10]line Партнер нефть [15:57:10]line 02508201610067 [15:57:10]line Кассир : Байбугуева Г. [15:57:10]line Счет N : (1)672993 [15:57:10]line 19.06.2024 15:34 [15:57:10]line ПРОДАЖА [15:57:10]line ТРК (МРК, ГНК): 42 [15:57:10]line Вид ГСМ : 2710124130 [15:57:10]line Аи-92-К-5 [15:57:10]line 10.000 x 66.40 [15:57:10]line ИТОГ: 664.00 [15:57:10]line Тип оплаты: Талоны: ТК ГПНА Online [15:57:10]line 30021788 [15:57:10]line ______________________ [15:57:10]line (подпись) [15:57:10]written 0, free lines is 4095 [15:57:10]Write to MH i2c: 01 00 00 DF B9 98 [15:57:10]Write i2c OK [15:57:10]MH_I2C_Read... [15:57:10]Read from MH i2c: 01 [15:57:10]MH_I2C_Read... [15:57:10]Read from MH i2c: 01 07 00 [15:57:10]MH_I2C_Read... [15:57:10]Read from MH i2c: 01 07 00 DF B9 00 00 00 00 00 12 0E BF [15:57:10]RasterBufferAndPrint [15:57:10]line [15:57:10]line [15:57:10]line [15:57:10]line [15:57:10]line [15:57:10]written 0, free lines is 3604 [15:57:11]MH_Cut [15:57:11]Write to MH i2c: D1 01 00 E6 B9 01 71 [15:57:11]Write i2c OK [15:57:11]MH_I2C_Read... [15:57:11]Read from MH i2c: D1 [15:57:11]MH_I2C_Read... [15:57:11]Read from MH i2c: D1 01 00 [15:57:11]MH_I2C_Read... [15:57:11]Read from MH i2c: D1 01 00 E6 B9 00 70 [15:57:11]Write to MH i2c: 01 00 00 E7 B9 A0 [15:57:11]Write i2c OK [15:57:11]MH_I2C_Read... [15:57:11]*** Cut start [15:57:11]*** Partial cut [15:57:11]*** CUTSNS_PIN = 1 [15:57:11]*** CUTSNS_PIN = 0 [15:57:11]*** Brake cut motor [15:57:12]OFD Sender: No OFD packet to send [15:57:12]Read from MH i2c: 01 [15:57:12]MH_I2C_Read... [15:57:12]*** Stop cut motor [15:57:12]*** Cut end [15:57:12]Read from MH i2c: 01 07 00 [15:57:12]MH_I2C_Read... [15:57:12]Read from MH i2c: 01 07 00 E7 B9 00 00 00 00 00 FF 0F B5 [15:57:12]process_action print_text done [15:57:12]requested_data is exist [15:57:12]produce_requested_data [15:57:12]requested_item fm.sn is exist - process it [15:57:12]wFMCommunicate request_size=4 [15:57:12]MH_SAM_APDU [15:57:12]CAPDU: 80 11 00 00 [15:57:12]Write to MH i2c: E2 08 00 E8 B9 80 11 00 00 00 00 00 00 1B [15:57:12]Write i2c OK [15:57:12]MH_I2C_Read... [15:57:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:57:12]Read from MH i2c: E2 [15:57:12]MH_I2C_Read... [15:57:12]Read from MH i2c: E2 17 00 [15:57:12]MH_I2C_Read... [15:57:12]Read from MH i2c: E2 17 00 E8 B9 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 6E [15:57:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [15:57:12]wFMCommunicate OK [15:57:12]requested_item fd.num is exist - process it [15:57:12]SAM_PROTO_GetFieldsCounters [15:57:12]wFMCommunicate request_size=4 [15:57:12]MH_SAM_APDU [15:57:12]CAPDU: 80 13 00 00 [15:57:12]Write to MH i2c: E2 08 00 E9 B9 80 13 00 00 00 00 00 00 1E [15:57:12]Write i2c OK [15:57:12]MH_I2C_Read... [15:57:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:57:12]Read from MH i2c: E2 [15:57:12]MH_I2C_Read... [15:57:12]Read from MH i2c: E2 62 00 [15:57:12]MH_I2C_Read... [15:57:12]Read from MH i2c: E2 62 00 E9 B9 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 25 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 93 00 00 00 5E 04 04 00 93 00 00 00 57 04 04 00 94 00 00 00 19 04 04 00 00 00 00 00 90 00 1B [15:57:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 25 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 93 00 00 00 5E 04 04 00 93 00 00 00 57 04 04 00 94 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:57:12]wFMCommunicate OK [15:57:12]SAM_PROTO_GetFieldsCounters done [15:57:12]requested_item shift.num is exist - process it [15:57:12]requested_item shift.opened is exist - process it [15:57:12]req_shift_opened [15:57:12]FM_GetShiftState [15:57:12]SAM_PROTO_GetShiftState [15:57:12]wFMCommunicate request_size=4 [15:57:12]MH_SAM_APDU [15:57:12]CAPDU: 80 13 01 00 [15:57:12]Write to MH i2c: E2 08 00 EA B9 80 13 01 00 00 00 00 00 20 [15:57:12]Write i2c OK [15:57:12]MH_I2C_Read... [15:57:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:57:12]Read from MH i2c: E2 [15:57:12]MH_I2C_Read... [15:57:12]Read from MH i2c: E2 0E 00 [15:57:12]MH_I2C_Read... [15:57:12]Read from MH i2c: E2 0E 00 EA B9 00 09 00 01 04 26 72 66 00 00 00 00 90 00 2E [15:57:12]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [15:57:12]wFMCommunicate OK [15:57:12]SAM_PROTO_GetShiftState done [15:57:12]FM_GetShiftState done [15:57:12]req_shift_opened done [15:57:12]requested_item shift.open_date is exist - process it [15:57:12]req_shift_open_date [15:57:12]req_shift_open_date done [15:57:12]produce_requested_data done [15:57:12]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103717,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [15:57:12]process_action_free print_text [15:57:12]json_value_free [15:57:12]json_value_free done [15:57:12]process_json_proto returns [15:57:12]Send response to host [15:57:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103717,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [15:57:12]free response buf [15:57:12]execute_script done [15:57:12]execute_script returns [15:57:12]free content buf [15:57:12]Sock 9.Close socket [15:57:12]Sock 9.Thread stoped [15:57:17]OFD Sender: No OFD packet to send [15:57:22]OFD Sender: No OFD packet to send [15:57:27]OFD Sender: No OFD packet to send [15:57:32]OFD Sender: No OFD packet to send [15:57:37]OFD Sender: No OFD packet to send [15:57:42]OFD Sender: No OFD packet to send [15:57:47]OFD Sender: No OFD packet to send [15:57:52]OFD Sender: No OFD packet to send [15:57:57]OFD Sender: No OFD packet to send [15:58:02]OFD Sender: No OFD packet to send [15:58:07]OFD Sender: No OFD packet to send [15:58:12]OFD Sender: No OFD packet to send [15:58:17]OFD Sender: No OFD packet to send [15:58:21]accept exits with 7 [15:58:21]New connection [15:58:21]New thread 3067084132 created [15:58:21]Thread 3067227492 joined [15:58:21]Waiting for new connection... [15:58:21] Sock 7.Parse request [15:58:21]Sock 7.Check first char [15:58:21]Sock 7.First char is OK [15:58:21]request: POST /json_proto HTTP/1.0 [15:58:21]Method: POST [15:58:21]URL: /json_proto [15:58:21]Method is POST - this is cgi request [15:58:21]url: /json_proto [15:58:21]query_string will be loaded in cgi processing [15:58:21]execute_cgi json_proto POST (null) [15:58:21]execute_cgi path=json_proto method=POST [15:58:21]POST find Content-Length [15:58:21]Host: 172.17.38.133:8080 [15:58:21]Content-Length: 687 [15:58:21]Content-Type: application/json [15:58:21] [15:58:21]POST finish read [15:58:21]Found Content-Length = 687 [15:58:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672992", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 47.890, "sum" : 3491.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 6000.00, "total" : 3491.00, "payments": [ { "type": 0, "sum" : 3491.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:58:21]execute_script... [15:58:21]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672992", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 47.890, "sum" : 3491.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 6000.00, "total" : 3491.00, "payments": [ { "type": 0, "sum" : 3491.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:58:21]POST & json_proto [15:58:21]process_json_proto [15:58:21]json parsed OK: [15:58:21]protocol is kg_v1.0 [15:58:21]action value=close_receipt [15:58:21]process_action close_receipt [15:58:21]cmd_close_receipt [15:58:21]MH_GetDate [15:58:21]Write to MH i2c: F0 00 00 EB B9 93 [15:58:21]Write i2c OK [15:58:21]MH_I2C_Read... [15:58:21]Read from MH i2c: F0 [15:58:21]MH_I2C_Read... [15:58:21]Read from MH i2c: F0 09 00 [15:58:21]MH_I2C_Read... [15:58:21]Read from MH i2c: F0 09 00 EB B9 00 2A 00 73 66 BD 8F 7C 64 CB [15:58:21]GetLastDocTimeStamp 1718812176 [15:58:21]current date 1718812714 [15:58:21]FM_GetShiftState [15:58:21]SAM_PROTO_GetShiftState [15:58:21]wFMCommunicate request_size=4 [15:58:21]MH_SAM_APDU [15:58:21]CAPDU: 80 13 01 00 [15:58:21]Write to MH i2c: E2 08 00 EC B9 80 13 01 00 00 00 00 00 22 [15:58:21]Write i2c OK [15:58:21]MH_I2C_Read... [15:58:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:58:21]Read from MH i2c: E2 [15:58:21]MH_I2C_Read... [15:58:21]Read from MH i2c: E2 0E 00 [15:58:21]MH_I2C_Read... [15:58:21]Read from MH i2c: E2 0E 00 EC B9 00 09 00 01 04 26 72 66 00 00 00 00 90 00 30 [15:58:21]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [15:58:21]wFMCommunicate OK [15:58:21]SAM_PROTO_GetShiftState done [15:58:21]FM_GetShiftState done [15:58:21]opened in 1718756868 [15:58:21]opened+sec_in_day 1718843268 [15:58:21]quantity*price = 349118 [15:58:21]sum+1 = 349119 [15:58:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.18 ИТОГО: 3491.00 Внесено: 6000.00 СДАЧА: 2509.00 НСП 1% : 30.89 НДС 12% : 370.74 Наличными: 3491.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 148 19.06.2024 15:58 Смена: 353 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103718 ФПД: 60774274280297 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T155834&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103718&fm=60774274280297&tin=02508201610067®Number=0000000000092785&sum=349100 [15:58:22]StoreToDocumentArchive [15:58:22]shift 353 fd 103718 [15:58:22]save to /storage/0353/doc_00103718 [15:58:22]save last doc name /storage/0353/doc_00103718 to /storage/kkm_last_doc_name [15:58:22]save OK [15:58:22]Clear old archive folders... [15:58:22]ProcessDocumentItem done err = 0, tmpTLVsize=252 [15:58:22]tlvbuf is 0147BC30 [15:58:22]SAM_PROTO_ClearQueue [15:58:22]wFMCommunicate request_size=4 [15:58:22]MH_SAM_APDU [15:58:22]CAPDU: 80 09 00 00 [15:58:22]Write to MH i2c: E2 08 00 F9 B9 80 09 00 00 00 00 00 00 24 [15:58:22]Write i2c OK [15:58:22]MH_I2C_Read... [15:58:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:58:22]Read from MH i2c: E2 [15:58:22]MH_I2C_Read... [15:58:22]Read from MH i2c: E2 03 00 [15:58:22]MH_I2C_Read... [15:58:22]Read from MH i2c: E2 03 00 F9 B9 00 90 00 26 [15:58:22]RAPDU: 90 00 [15:58:22]wFMCommunicate OK [15:58:22]SAM_PROTO_ClearQueue done [15:58:22]KKMCreateOFDPacket [15:58:22]OFDProtocolAddRootSTLVToBuf [15:58:22]FM_MakeSignedData [15:58:22]FM_MakeSignedData [15:58:22]SAM_PROTO_SignData [15:58:22]wFMCommunicate request_size=4 [15:58:22]MH_SAM_APDU [15:58:22]CAPDU: 80 0D 01 02 [15:58:22]Write to MH i2c: E2 08 00 FA B9 80 0D 01 02 00 00 00 00 2C [15:58:22]Write i2c OK [15:58:22]MH_I2C_Read... [15:58:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:58:22]Read from MH i2c: E2 [15:58:22]MH_I2C_Read... [15:58:22]Read from MH i2c: E2 03 00 [15:58:22]MH_I2C_Read... [15:58:22]Read from MH i2c: E2 03 00 FA B9 00 90 00 27 [15:58:22]RAPDU: 90 00 [15:58:22]wFMCommunicate OK [15:58:22]wFMCommunicate request_size=255 [15:58:22]MH_SAM_APDU [15:58:22]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 12 BB 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 BE 53 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 53 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 11 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D2 90 00 00 00 00 07 04 06 00 AC 53 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 94 00 00 00 F4 03 04 00 2A 00 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 26 95 01 00 35 04 06 00 [15:58:22]Write to MH i2c: E2 02 01 FB B9 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 12 BB 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 BE 53 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 53 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 11 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D2 90 00 00 00 00 07 04 06 00 AC 53 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 94 00 00 00 F4 03 04 00 2A 00 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 26 95 01 00 35 04 06 00 00 00 2C [15:58:22]Write i2c OK [15:58:22]MH_I2C_Read... [15:58:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:58:23]Read from MH i2c: E2 [15:58:23]MH_I2C_Read... [15:58:23]Read from MH i2c: E2 03 00 [15:58:23]MH_I2C_Read... [15:58:23]Read from MH i2c: E2 03 00 FB B9 00 90 00 28 [15:58:23]RAPDU: 90 00 [15:58:23]wFMCommunicate OK [15:58:23]wFMCommunicate request_size=11 [15:58:23]MH_SAM_APDU [15:58:23]CAPDU: 80 0D 02 02 06 37 46 1D 07 AB 69 [15:58:23]Write to MH i2c: E2 0E 00 FC B9 80 0D 02 02 06 00 37 46 1D 07 AB 69 00 00 F0 [15:58:23]Write i2c OK [15:58:23]MH_I2C_Read... [15:58:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:58:23]Read from MH i2c: E2 [15:58:23]MH_I2C_Read... [15:58:23]Read from MH i2c: E2 03 00 [15:58:23]MH_I2C_Read... [15:58:23]Read from MH i2c: E2 03 00 FC B9 00 90 00 29 [15:58:23]RAPDU: 90 00 [15:58:23]wFMCommunicate OK [15:58:23]wFMCommunicate request_size=4 [15:58:23]MH_SAM_APDU [15:58:23]CAPDU: 80 0D 03 02 [15:58:23]Write to MH i2c: E2 08 00 FD B9 80 0D 03 02 00 00 00 00 31 [15:58:23]Write i2c OK [15:58:23]MH_I2C_Read... [15:58:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:58:23]Read from MH i2c: E2 [15:58:23]MH_I2C_Read... [15:58:23]Read from MH i2c: E2 0B 00 [15:58:23]MH_I2C_Read... [15:58:23]Read from MH i2c: E2 0B 00 FD B9 00 A1 B5 D1 93 9B 50 1E 8F 90 00 84 [15:58:23]RAPDU: A1 B5 D1 93 9B 50 1E 8F 90 00 [15:58:23]wFMCommunicate OK [15:58:23]SAM_PROTO_SignData done [15:58:23]FM_MakeSignedData done [15:58:23]CreateOFDProtocolMessage [15:58:23]wFMCommunicate request_size=4 [15:58:23]MH_SAM_APDU [15:58:23]CAPDU: 80 11 00 00 [15:58:23]Write to MH i2c: E2 08 00 FE B9 80 11 00 00 00 00 00 00 31 [15:58:23]Write i2c OK [15:58:23]MH_I2C_Read... [15:58:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:58:23]Read from MH i2c: E2 [15:58:23]MH_I2C_Read... [15:58:23]Read from MH i2c: E2 17 00 [15:58:23]MH_I2C_Read... [15:58:23]Read from MH i2c: E2 17 00 FE B9 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 84 [15:58:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [15:58:23]wFMCommunicate OK [15:58:23]CreateOFDProtocolMessage done [15:58:23]OFDSenderStorePacket 103718 [15:58:23]StoreOFDPacket docnum=103718 [15:58:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 93 6D 08 01 4B 6D 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 12 BB 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 BE 53 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 53 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 11 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D2 90 00 00 00 00 07 04 06 00 AC 53 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 94 00 00 00 F4 03 04 00 2A 00 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 26 95 01 00 35 04 06 00 37 46 1D 07 AB 69 A1 B5 D1 93 9B 50 1E 8F [15:58:23]CheckFolder [15:58:23]dirname=/storage/ofd_packets [15:58:23]CheckFolder done [15:58:23]ProducePacketName [15:58:23]name=ofd_packets/00103718 [15:58:23]NVStorageSaveData ofd_packets/00103718 [15:58:23]File name is /storage/ofd_packets/00103718 [15:58:23]Write 302 bytes [15:58:23]NVStorageSaveData done [15:58:23]OFDSenderStorePacket done [15:58:23]KKMCreateOFDPacket done [15:58:23]NVStorageSaveData kkm_last_timestamp [15:58:23]File name is /storage/kkm_last_timestamp [15:58:23]Write 4 bytes [15:58:23]NVStorageSaveData done [15:58:23]ExternCall_PrintAddStr [15:58:23]wPrintStart [15:58:23]Write to MH i2c: 01 00 00 FF B9 B8 [15:58:23]Write i2c OK [15:58:23]MH_I2C_Read... [15:58:23]Read from MH i2c: 01 [15:58:23]MH_I2C_Read... [15:58:23]Read from MH i2c: 01 07 00 [15:58:23]MH_I2C_Read... [15:58:23]Read from MH i2c: 01 07 00 FF B9 00 00 00 00 00 FF 0F CD [15:58:23]RasterBufferAndPrint [15:58:23]line Счет N : (1)672992 [15:58:23]line ИНН: 02508201610067 [15:58:23]line Контрольно-Кассовый Чек [15:58:23]line ПРОДАЖА [15:58:23]line ТРК (МРК, ГНК) : 21 [15:58:23]line Товар: 2710194210 [15:58:23]line ДТ(л)-К-5 [15:58:23]line 47.890 * 72.90 [15:58:23]line = 3491.18 [15:58:23]line НДС 12% НСП 1% [15:58:23]line > о реализуемом товаре [15:58:23]line ОКРУГЛЕНИЕ: -0.18 [15:58:23]line ИТОГО: 3491.00 [15:58:23]line Внесено: 6000.00 [15:58:23]line СДАЧА: 2509.00 [15:58:23]line НСП 1% : 30.89 [15:58:23]line НДС 12% : 370.74 [15:58:23]line Наличными: 3491.00 [15:58:23]line Безнал.: 0.00 [15:58:23]line Место: АЗС № 120 "Партнер Нефть" [15:58:23]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [15:58:23]line СНО: Общий режим [15:58:23]line Чек 148 19.06.2024 15:58 [15:58:23]line Смена: 353 ФФД: 1.0 [15:58:23]line ЗНМ: 0300000164 [15:58:23]line РНМ: 0000000000092785 [15:58:23]line Версия ККМ: 001 [15:58:23]line ФМ: 0000000000875093 [15:58:23]line ФД: 103718 [15:58:23]line ФПД: 60774274280297 [15:58:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T155834&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103718&fm=60774274280297&tin=02508201610067®Number=0000000000092785&sum=349100 [15:58:23]OFD Sender: Processing packet 103718 [packets to send 17, broken 16] [15:58:23]ProducePacketName [15:58:23]name=ofd_packets/00103718 [15:58:23]OFD Sender: To server: pG, [15:58:23]CommunicateWithHost lk.salyk.kg:30040 [15:58:23]ConnectInit lk.salyk.kg [15:58:23]written 0, free lines is 4095 [15:58:23]Connected sock=10 [15:58:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 93 6D 08 01 4B 6D 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 12 BB 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 BE 53 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 53 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 11 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D2 90 00 00 00 00 07 04 06 00 AC 53 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 94 00 00 00 F4 03 04 00 2A 00 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 26 95 01 00 35 04 06 00 37 46 1D 07 AB 69 A1 B5 D1 93 9B 50 1E 8F [15: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 39 33 4F 00 00 00 D5 3B 47 00 15 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 39 33 10 04 04 00 26 95 01 00 F4 03 04 00 B3 A6 72 66 B6 04 01 00 00 80 4E 62 43 1D AA 60 3A [15:58:24]CommunicateWithHost err = 0 [15:58:24]CheckOFDResponse [15:58:24]1017 (14) - 77093643461234 [15:58:24]1041 (16) - 0000000000875093 [15:58:24]1040 (4) - 103718 [15:58:24]1012 (4) - 19.06.2024 09:36 [15:58:24]1206 (1) - 0 [15:58:24]OFD Sender: Remove packet 103718 [15:58:24]ProducePacketName [15:58:24]name=ofd_packets/00103718 [15:58:24]NVStorageDeleteData [15:58:24]Write to MH i2c: 01 00 00 2A BA E4 [15:58:24]Write i2c OK [15:58:24]MH_I2C_Read... [15:58:24]Read from MH i2c: 01 [15:58:24]MH_I2C_Read... [15:58:24]Read from MH i2c: 01 07 00 [15:58:24]MH_I2C_Read... [15:58:24]Read from MH i2c: 01 07 00 2A BA 00 00 00 00 00 F3 0C EA [15:58:24]RasterBufferAndPrint [15:58:24]line [15:58:24]line [15:58:24]line [15:58:24]line [15:58:24]line [15:58:24]written 0, free lines is 3323 [15:58:24]MH_Cut [15:58:24]Write to MH i2c: D1 01 00 31 BA 01 BD [15:58:24]Write i2c OK [15:58:24]MH_I2C_Read... [15:58:24]Read from MH i2c: D1 [15:58:24]MH_I2C_Read... [15:58:24]Read from MH i2c: D1 01 00 [15:58:24]MH_I2C_Read... [15:58:24]Read from MH i2c: D1 01 00 31 BA 00 BC [15:58:24]Write to MH i2c: 01 00 00 32 BA EC [15:58:24]Write i2c OK [15:58:24]MH_I2C_Read... [15:58:24]OFD Sender: No OFD packet to send [15:58:24]*** Cut start [15:58:24]*** Partial cut [15:58:24]*** CUTSNS_PIN = 1 [15:58:24]*** CUTSNS_PIN = 0 [15:58:25]*** Brake cut motor [15:58:25]Read from MH i2c: 01 [15:58:25]MH_I2C_Read... [15:58:25]*** Stop cut motor [15:58:25]*** Cut end [15:58:25]Read from MH i2c: 01 07 00 [15:58:25]MH_I2C_Read... [15:58:25]Read from MH i2c: 01 07 00 32 BA 00 00 00 00 00 FF 0F 01 [15:58:25]process_action close_receipt done [15:58:25]requested_data is exist [15:58:25]produce_requested_data [15:58:25]requested_item fm.sn is exist - process it [15:58:25]wFMCommunicate request_size=4 [15:58:25]MH_SAM_APDU [15:58:25]CAPDU: 80 11 00 00 [15:58:25]Write to MH i2c: E2 08 00 33 BA 80 11 00 00 00 00 00 00 67 [15:58:25]Write i2c OK [15:58:25]MH_I2C_Read... [15:58:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:58:25]Read from MH i2c: E2 [15:58:25]MH_I2C_Read... [15:58:25]Read from MH i2c: E2 17 00 [15:58:25]MH_I2C_Read... [15:58:25]Read from MH i2c: E2 17 00 33 BA 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 BA [15:58:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [15:58:25]wFMCommunicate OK [15:58:25]requested_item fd.num is exist - process it [15:58:25]SAM_PROTO_GetFieldsCounters [15:58:25]wFMCommunicate request_size=4 [15:58:25]MH_SAM_APDU [15:58:25]CAPDU: 80 13 00 00 [15:58:25]Write to MH i2c: E2 08 00 34 BA 80 13 00 00 00 00 00 00 6A [15:58:25]Write i2c OK [15:58:25]MH_I2C_Read... [15:58:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:58:25]Read from MH i2c: E2 [15:58:25]MH_I2C_Read... [15:58:25]Read from MH i2c: E2 62 00 [15:58:25]MH_I2C_Read... [15:58:25]Read from MH i2c: E2 62 00 34 BA 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 26 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 94 00 00 00 5E 04 04 00 94 00 00 00 57 04 04 00 95 00 00 00 19 04 04 00 00 00 00 00 90 00 6B [15:58:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 26 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 94 00 00 00 5E 04 04 00 94 00 00 00 57 04 04 00 95 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:58:25]wFMCommunicate OK [15:58:25]SAM_PROTO_GetFieldsCounters done [15:58:25]requested_item shift.num is exist - process it [15:58:25]requested_item shift.opened is exist - process it [15:58:25]req_shift_opened [15:58:25]FM_GetShiftState [15:58:25]SAM_PROTO_GetShiftState [15:58:25]wFMCommunicate request_size=4 [15:58:25]MH_SAM_APDU [15:58:25]CAPDU: 80 13 01 00 [15:58:25]Write to MH i2c: E2 08 00 35 BA 80 13 01 00 00 00 00 00 6C [15:58:25]Write i2c OK [15:58:25]MH_I2C_Read... [15:58:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:58:25]Read from MH i2c: E2 [15:58:25]MH_I2C_Read... [15:58:25]Read from MH i2c: E2 0E 00 [15:58:25]MH_I2C_Read... [15:58:25]Read from MH i2c: E2 0E 00 35 BA 00 09 00 01 04 26 72 66 00 00 00 00 90 00 7A [15:58:25]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [15:58:25]wFMCommunicate OK [15:58:25]SAM_PROTO_GetShiftState done [15:58:25]FM_GetShiftState done [15:58:25]req_shift_opened done [15:58:25]requested_item shift.open_date is exist - process it [15:58:25]req_shift_open_date [15:58:25]req_shift_open_date done [15:58:25]produce_requested_data done [15:58:25]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103718,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [15:58:25]process_action_free close_receipt [15:58:25]json_value_free [15:58:25]json_value_free done [15:58:25]process_json_proto returns [15:58:25]Send response to host [15:58:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103718,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [15:58:25]free response buf [15:58:25]execute_script done [15:58:25]execute_script returns [15:58:25]free content buf [15:58:25]Sock 7.Close socket [15:58:25]Sock 7.Thread stoped [15:58:29]OFD Sender: No OFD packet to send [15:58:30]accept exits with 9 [15:58:30]New connection [15:58:30]New thread 3067227492 created [15:58:30]Thread 3067084132 joined [15:58:30]Waiting for new connection... [15:58:30] Sock 9.Parse request [15:58:30]Sock 9.Check first char [15:58:30]Sock 9.First char is OK [15:58:30]request: POST /json_proto HTTP/1.0 [15:58:30]Method: POST [15:58:30]URL: /json_proto [15:58:30]Method is POST - this is cgi request [15:58:30]url: /json_proto [15:58:30]query_string will be loaded in cgi processing [15:58:30]execute_cgi json_proto POST (null) [15:58:30]execute_cgi path=json_proto method=POST [15:58:30]POST find Content-Length [15:58:30]Host: 172.17.38.133:8080 [15:58:30]Content-Length: 687 [15:58:30]Content-Type: application/json [15:58:30] [15:58:30]POST finish read [15:58:30]Found Content-Length = 687 [15:58:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672994", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 19.210, "sum" : 1400.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1400.00, "total" : 1400.00, "payments": [ { "type": 0, "sum" : 1400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:58:30]execute_script... [15:58: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)672994", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 19.210, "sum" : 1400.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1400.00, "total" : 1400.00, "payments": [ { "type": 0, "sum" : 1400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:58:30]POST & json_proto [15:58:30]process_json_proto [15:58:30]json parsed OK: [15:58:30]protocol is kg_v1.0 [15:58:30]action value=close_receipt [15:58:30]process_action close_receipt [15:58:30]cmd_close_receipt [15:58:30]MH_GetDate [15:58:30]Write to MH i2c: F0 00 00 36 BA DF [15:58:30]Write i2c OK [15:58:30]MH_I2C_Read... [15:58:30]Read from MH i2c: F0 [15:58:30]MH_I2C_Read... [15:58:30]Read from MH i2c: F0 09 00 [15:58:30]MH_I2C_Read... [15:58:30]Read from MH i2c: F0 09 00 36 BA 00 33 00 73 66 BD 8F 7C 64 20 [15:58:30]GetLastDocTimeStamp 1718812714 [15:58:30]current date 1718812723 [15:58:30]FM_GetShiftState [15:58:30]SAM_PROTO_GetShiftState [15:58:30]wFMCommunicate request_size=4 [15:58:30]MH_SAM_APDU [15:58:30]CAPDU: 80 13 01 00 [15:58:30]Write to MH i2c: E2 08 00 37 BA 80 13 01 00 00 00 00 00 6E [15:58:30]Write i2c OK [15:58:30]MH_I2C_Read... [15:58:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:58:30]Read from MH i2c: E2 [15:58:30]MH_I2C_Read... [15:58:30]Read from MH i2c: E2 0E 00 [15:58:30]MH_I2C_Read... [15:58:30]Read from MH i2c: E2 0E 00 37 BA 00 09 00 01 04 26 72 66 00 00 00 00 90 00 7C [15:58:30]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [15:58:30]wFMCommunicate OK [15:58:30]SAM_PROTO_GetShiftState done [15:58:30]FM_GetShiftState done [15:58:30]opened in 1718756868 [15:58:30]opened+sec_in_day 1718843268 [15:58:30]quantity*price = 140040 [15:58:30]sum+1 = 140042 [15:58:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 1400.00 Внесено: 1400.00 СДАЧА: 0.00 НСП 1% : 12.39 НДС 12% : 148.72 Наличными: 1400.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 149 19.06.2024 15:58 Смена: 353 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103719 ФПД: 48887075156567 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T155843&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103719&fm=48887075156567&tin=02508201610067®Number=0000000000092785&sum=140000 [15:58:31]StoreToDocumentArchive [15:58:31]shift 353 fd 103719 [15:58:31]save to /storage/0353/doc_00103719 [15:58:31]save last doc name /storage/0353/doc_00103719 to /storage/kkm_last_doc_name [15:58:31]save OK [15:58:31]Clear old archive folders... [15:58:31]ProcessDocumentItem done err = 0, tmpTLVsize=252 [15:58:31]tlvbuf is 014160A0 [15:58:31]SAM_PROTO_ClearQueue [15:58:31]wFMCommunicate request_size=4 [15:58:31]MH_SAM_APDU [15:58:31]CAPDU: 80 09 00 00 [15:58:31]Write to MH i2c: E2 08 00 44 BA 80 09 00 00 00 00 00 00 70 [15:58:31]Write i2c OK [15:58:31]MH_I2C_Read... [15:58:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:58:31]Read from MH i2c: E2 [15:58:31]MH_I2C_Read... [15:58:31]Read from MH i2c: E2 03 00 [15:58:31]MH_I2C_Read... [15:58:31]Read from MH i2c: E2 03 00 44 BA 00 90 00 72 [15:58:31]RAPDU: 90 00 [15:58:31]wFMCommunicate OK [15:58:31]SAM_PROTO_ClearQueue done [15:58:31]KKMCreateOFDPacket [15:58:31]OFDProtocolAddRootSTLVToBuf [15:58:31]FM_MakeSignedData [15:58:31]FM_MakeSignedData [15:58:31]SAM_PROTO_SignData [15:58:31]wFMCommunicate request_size=4 [15:58:31]MH_SAM_APDU [15:58:31]CAPDU: 80 0D 01 02 [15:58:31]Write to MH i2c: E2 08 00 45 BA 80 0D 01 02 00 00 00 00 78 [15:58:31]Write i2c OK [15:58:31]MH_I2C_Read... [15:58:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:58:31]Read from MH i2c: E2 [15:58:31]MH_I2C_Read... [15:58:31]Read from MH i2c: E2 03 00 [15:58:31]MH_I2C_Read... [15:58:31]Read from MH i2c: E2 03 00 45 BA 00 90 00 73 [15:58:31]RAPDU: 90 00 [15:58:31]wFMCommunicate OK [15:58:31]wFMCommunicate request_size=255 [15:58:31]MH_SAM_APDU [15:58:31]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 0A 4B 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 09 23 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 18 3A 00 00 00 00 07 04 06 00 E0 22 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 33 00 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 27 95 01 00 35 04 06 00 [15:58:31]Write to MH i2c: E2 02 01 46 BA 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 0A 4B 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 09 23 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 18 3A 00 00 00 00 07 04 06 00 E0 22 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 33 00 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 27 95 01 00 35 04 06 00 00 00 D1 [15:58:31]Write i2c OK [15:58:31]MH_I2C_Read... [15:58:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:58:31]Read from MH i2c: E2 [15:58:31]MH_I2C_Read... [15:58:31]Read from MH i2c: E2 03 00 [15:58:31]MH_I2C_Read... [15:58:31]Read from MH i2c: E2 03 00 46 BA 00 90 00 74 [15:58:31]RAPDU: 90 00 [15:58:31]wFMCommunicate OK [15:58:31]wFMCommunicate request_size=11 [15:58:31]MH_SAM_APDU [15:58:31]CAPDU: 80 0D 02 02 06 2C 76 68 BF B2 57 [15:58:31]Write to MH i2c: E2 0E 00 47 BA 80 0D 02 02 06 00 2C 76 68 BF B2 57 00 00 59 [15:58:31]Write i2c OK [15:58:31]MH_I2C_Read... [15:58:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:58:31]Read from MH i2c: E2 [15:58:31]MH_I2C_Read... [15:58:31]Read from MH i2c: E2 03 00 [15:58:31]MH_I2C_Read... [15:58:31]Read from MH i2c: E2 03 00 47 BA 00 90 00 75 [15:58:31]RAPDU: 90 00 [15:58:31]wFMCommunicate OK [15:58:31]wFMCommunicate request_size=4 [15:58:31]MH_SAM_APDU [15:58:31]CAPDU: 80 0D 03 02 [15:58:31]Write to MH i2c: E2 08 00 48 BA 80 0D 03 02 00 00 00 00 7D [15:58:31]Write i2c OK [15:58:31]MH_I2C_Read... [15:58:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:58:31]Read from MH i2c: E2 [15:58:31]MH_I2C_Read... [15:58:31]Read from MH i2c: E2 0B 00 [15:58:31]MH_I2C_Read... [15:58:31]Read from MH i2c: E2 0B 00 48 BA 00 34 30 60 1C 10 7D F9 65 90 00 49 [15:58:31]RAPDU: 34 30 60 1C 10 7D F9 65 90 00 [15:58:31]wFMCommunicate OK [15:58:31]SAM_PROTO_SignData done [15:58:31]FM_MakeSignedData done [15:58:31]CreateOFDProtocolMessage [15:58:31]wFMCommunicate request_size=4 [15:58:31]MH_SAM_APDU [15:58:31]CAPDU: 80 11 00 00 [15:58:31]Write to MH i2c: E2 08 00 49 BA 80 11 00 00 00 00 00 00 7D [15:58:31]Write i2c OK [15:58:31]MH_I2C_Read... [15:58:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:58:31]Read from MH i2c: E2 [15:58:31]MH_I2C_Read... [15:58:31]Read from MH i2c: E2 17 00 [15:58:31]MH_I2C_Read... [15:58:31]Read from MH i2c: E2 17 00 49 BA 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 D0 [15:58:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [15:58:31]wFMCommunicate OK [15:58:31]CreateOFDProtocolMessage done [15:58:31]OFDSenderStorePacket 103719 [15:58:31]StoreOFDPacket docnum=103719 [15:58:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 11 3E 08 01 C4 36 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 0A 4B 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 09 23 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 18 3A 00 00 00 00 07 04 06 00 E0 22 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 33 00 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 27 95 01 00 35 04 06 00 2C 76 68 BF B2 57 34 30 60 1C 10 7D F9 65 [15:58:31]CheckFolder [15:58:31]dirname=/storage/ofd_packets [15:58:31]CheckFolder done [15:58:31]ProducePacketName [15:58:31]name=ofd_packets/00103719 [15:58:31]NVStorageSaveData ofd_packets/00103719 [15:58:31]File name is /storage/ofd_packets/00103719 [15:58:31]Write 302 bytes [15:58:31]NVStorageSaveData done [15:58:31]OFDSenderStorePacket done [15:58:31]KKMCreateOFDPacket done [15:58:31]NVStorageSaveData kkm_last_timestamp [15:58:31]File name is /storage/kkm_last_timestamp [15:58:31]Write 4 bytes [15:58:31]NVStorageSaveData done [15:58:31]ExternCall_PrintAddStr [15:58:31]wPrintStart [15:58:31]Write to MH i2c: 01 00 00 4A BA 04 [15:58:31]Write i2c OK [15:58:31]MH_I2C_Read... [15:58:31]Read from MH i2c: 01 [15:58:31]MH_I2C_Read... [15:58:31]Read from MH i2c: 01 07 00 [15:58:31]MH_I2C_Read... [15:58:31]Read from MH i2c: 01 07 00 4A BA 00 00 00 00 00 FF 0F 19 [15:58:31]RasterBufferAndPrint [15:58:31]line Счет N : (1)672994 [15:58:31]line ИНН: 02508201610067 [15:58:31]line Контрольно-Кассовый Чек [15:58:31]line ПРОДАЖА [15:58:31]line ТРК (МРК, ГНК) : 11 [15:58:31]line Товар: 2710194210 [15:58:31]line ДТ(л)-К-5 [15:58:31]line 19.210 * 72.90 [15:58:31]line = 1400.41 [15:58:31]line НДС 12% НСП 1% [15:58:31]line > о реализуемом товаре [15:58:31]line ОКРУГЛЕНИЕ: -0.41 [15:58:31]line ИТОГО: 1400.00 [15:58:31]line Внесено: 1400.00 [15:58:31]line СДАЧА: 0.00 [15:58:31]line НСП 1% : 12.39 [15:58:31]line НДС 12% : 148.72 [15:58:31]line Наличными: 1400.00 [15:58:31]line Безнал.: 0.00 [15:58:31]line Место: АЗС № 120 "Партнер Нефть" [15:58:31]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [15:58:31]line СНО: Общий режим [15:58:31]line Чек 149 19.06.2024 15:58 [15:58:31]line Смена: 353 ФФД: 1.0 [15:58:31]line ЗНМ: 0300000164 [15:58:31]line РНМ: 0000000000092785 [15:58:31]line Версия ККМ: 001 [15:58:31]line ФМ: 0000000000875093 [15:58:31]line ФД: 103719 [15:58:31]line ФПД: 48887075156567 [15:58:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T155843&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103719&fm=48887075156567&tin=02508201610067®Number=0000000000092785&sum=140000 [15:58:31]written 0, free lines is 4095 [15:58:31]OFD Sender: Processing packet 103719 [packets to send 17, broken 16] [15:58:31]ProducePacketName [15:58:31]name=ofd_packets/00103719 [15:58:31]OFD Sender: To server: pG, [15:58:31]CommunicateWithHost lk.salyk.kg:30040 [15:58:31]ConnectInit lk.salyk.kg [15:58:32]Connected sock=7 [15:58: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 39 33 10 01 00 00 11 3E 08 01 C4 36 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 0A 4B 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 09 23 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 18 3A 00 00 00 00 07 04 06 00 E0 22 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 33 00 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 27 95 01 00 35 04 06 00 2C 76 68 BF B2 57 34 30 60 1C 10 7D F9 65 [15:58: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 39 33 4F 00 00 00 B4 33 47 00 BC 51 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 27 95 01 00 F4 03 04 00 BB A6 72 66 B6 04 01 00 00 81 9D A7 BB 96 FF F9 6D [15:58:32]CommunicateWithHost err = 0 [15:58:32]CheckOFDResponse [15:58:32]1017 (14) - 77093643461234 [15:58:32]1041 (16) - 0000000000875093 [15:58:32]1040 (4) - 103719 [15:58:32]1012 (4) - 19.06.2024 09:36 [15:58:32]1206 (1) - 0 [15:58:32]OFD Sender: Remove packet 103719 [15:58:32]ProducePacketName [15:58:32]name=ofd_packets/00103719 [15:58:32]NVStorageDeleteData [15:58:32]Write to MH i2c: 01 00 00 75 BA 2F [15:58:32]Write i2c OK [15:58:32]MH_I2C_Read... [15:58:32]Read from MH i2c: 01 [15:58:32]MH_I2C_Read... [15:58:32]Read from MH i2c: 01 07 00 [15:58:32]MH_I2C_Read... [15:58:32]Read from MH i2c: 01 07 00 75 BA 00 00 00 00 00 F8 0C 3A [15:58:32]RasterBufferAndPrint [15:58:32]line [15:58:32]line [15:58:32]line [15:58:32]line [15:58:32]line [15:58:32]written 0, free lines is 3332 [15:58:32]MH_Cut [15:58:32]Write to MH i2c: D1 01 00 7C BA 01 08 [15:58:32]Write i2c OK [15:58:32]MH_I2C_Read... [15:58:32]Read from MH i2c: D1 [15:58:32]MH_I2C_Read... [15:58:32]Read from MH i2c: D1 01 00 [15:58:32]MH_I2C_Read... [15:58:32]Read from MH i2c: D1 01 00 7C BA 00 07 [15:58:32]Write to MH i2c: 01 00 00 7D BA 37 [15:58:32]Write i2c OK [15:58:32]MH_I2C_Read... [15:58:32]OFD Sender: No OFD packet to send [15:58:33]*** Cut start [15:58:33]*** Partial cut [15:58:33]*** CUTSNS_PIN = 1 [15:58:33]*** CUTSNS_PIN = 0 [15:58:33]*** Brake cut motor [15:58:33]Read from MH i2c: 01 [15:58:33]MH_I2C_Read... [15:58:33]*** Stop cut motor [15:58:33]*** Cut end [15:58:33]Read from MH i2c: 01 07 00 [15:58:33]MH_I2C_Read... [15:58:33]Read from MH i2c: 01 07 00 7D BA 00 00 00 00 00 FF 0F 4C [15:58:33]process_action close_receipt done [15:58:33]requested_data is exist [15:58:33]produce_requested_data [15:58:33]requested_item fm.sn is exist - process it [15:58:33]wFMCommunicate request_size=4 [15:58:33]MH_SAM_APDU [15:58:33]CAPDU: 80 11 00 00 [15:58:33]Write to MH i2c: E2 08 00 7E BA 80 11 00 00 00 00 00 00 B2 [15:58:33]Write i2c OK [15:58:33]MH_I2C_Read... [15:58:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:58:33]Read from MH i2c: E2 [15:58:33]MH_I2C_Read... [15:58:33]Read from MH i2c: E2 17 00 [15:58:33]MH_I2C_Read... [15:58:33]Read from MH i2c: E2 17 00 7E BA 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 05 [15:58:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [15:58:33]wFMCommunicate OK [15:58:33]requested_item fd.num is exist - process it [15:58:33]SAM_PROTO_GetFieldsCounters [15:58:33]wFMCommunicate request_size=4 [15:58:33]MH_SAM_APDU [15:58:33]CAPDU: 80 13 00 00 [15:58:33]Write to MH i2c: E2 08 00 7F BA 80 13 00 00 00 00 00 00 B5 [15:58:33]Write i2c OK [15:58:33]MH_I2C_Read... [15:58:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:58:33]Read from MH i2c: E2 [15:58:33]MH_I2C_Read... [15:58:33]Read from MH i2c: E2 62 00 [15:58:33]MH_I2C_Read... [15:58:33]Read from MH i2c: E2 62 00 7F BA 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 27 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 95 00 00 00 5E 04 04 00 95 00 00 00 57 04 04 00 96 00 00 00 19 04 04 00 00 00 00 00 90 00 BA [15:58:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 27 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 95 00 00 00 5E 04 04 00 95 00 00 00 57 04 04 00 96 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:58:33]wFMCommunicate OK [15:58:33]SAM_PROTO_GetFieldsCounters done [15:58:33]requested_item shift.num is exist - process it [15:58:33]requested_item shift.opened is exist - process it [15:58:33]req_shift_opened [15:58:33]FM_GetShiftState [15:58:33]SAM_PROTO_GetShiftState [15:58:33]wFMCommunicate request_size=4 [15:58:33]MH_SAM_APDU [15:58:33]CAPDU: 80 13 01 00 [15:58:33]Write to MH i2c: E2 08 00 80 BA 80 13 01 00 00 00 00 00 B7 [15:58:33]Write i2c OK [15:58:33]MH_I2C_Read... [15:58:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:58:33]Read from MH i2c: E2 [15:58:33]MH_I2C_Read... [15:58:33]Read from MH i2c: E2 0E 00 [15:58:33]MH_I2C_Read... [15:58:33]Read from MH i2c: E2 0E 00 80 BA 00 09 00 01 04 26 72 66 00 00 00 00 90 00 C5 [15:58:33]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [15:58:33]wFMCommunicate OK [15:58:33]SAM_PROTO_GetShiftState done [15:58:33]FM_GetShiftState done [15:58:33]req_shift_opened done [15:58:33]requested_item shift.open_date is exist - process it [15:58:33]req_shift_open_date [15:58:33]req_shift_open_date done [15:58:33]produce_requested_data done [15:58:33]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103719,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [15:58:33]process_action_free close_receipt [15:58:33]json_value_free [15:58:33]json_value_free done [15:58:33]process_json_proto returns [15:58:33]Send response to host [15:58:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103719,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [15:58:33]free response buf [15:58:33]execute_script done [15:58:33]execute_script returns [15:58:33]free content buf [15:58:33]Sock 9.Close socket [15:58:33]Sock 9.Thread stoped [15:58:37]OFD Sender: No OFD packet to send [15:58:42]OFD Sender: No OFD packet to send [15:58:47]OFD Sender: No OFD packet to send [15:58:52]OFD Sender: No OFD packet to send [15:58:57]OFD Sender: No OFD packet to send [15:59:02]OFD Sender: No OFD packet to send [15:59:07]OFD Sender: No OFD packet to send [15:59:12]OFD Sender: No OFD packet to send [15:59:17]OFD Sender: No OFD packet to send [15:59:22]OFD Sender: No OFD packet to send [15:59:27]OFD Sender: No OFD packet to send [15:59:32]OFD Sender: No OFD packet to send [15:59:37]OFD Sender: No OFD packet to send [15:59:42]OFD Sender: No OFD packet to send [15:59:47]OFD Sender: No OFD packet to send [15:59:52]OFD Sender: No OFD packet to send [15:59:57]OFD Sender: No OFD packet to send [16:00:02]OFD Sender: No OFD packet to send [16:00:07]OFD Sender: No OFD packet to send [16:00:12]OFD Sender: No OFD packet to send [16:00:16]accept exits with 10 [16:00:16]New connection [16:00:16]New thread 3067084132 created [16:00:16]Thread 3067227492 joined [16:00:16]Waiting for new connection... [16:00:16] Sock 10.Parse request [16:00:16]Sock 10.Check first char [16:00:16]Sock 10.First char is OK [16:00:16]request: POST /json_proto HTTP/1.0 [16:00:16]Method: POST [16:00:16]URL: /json_proto [16:00:16]Method is POST - this is cgi request [16:00:16]url: /json_proto [16:00:16]query_string will be loaded in cgi processing [16:00:16]execute_cgi json_proto POST (null) [16:00:16]execute_cgi path=json_proto method=POST [16:00:16]POST find Content-Length [16:00:16]Host: 172.17.38.133:8080 [16:00:16]Content-Length: 682 [16:00:16]Content-Type: application/json [16:00:16] [16:00:16]POST finish read [16:00:16]Found Content-Length = 682 [16:00:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672996", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 30.130, "sum" : 2000.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:00:16]execute_script... [16:00: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)672996", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 30.130, "sum" : 2000.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:00:16]POST & json_proto [16:00:16]process_json_proto [16:00:16]json parsed OK: [16:00:16]protocol is kg_v1.0 [16:00:16]action value=close_receipt [16:00:16]process_action close_receipt [16:00:16]cmd_close_receipt [16:00:16]MH_GetDate [16:00:16]Write to MH i2c: F0 00 00 81 BA 2A [16:00:16]Write i2c OK [16:00:16]MH_I2C_Read... [16:00:16]Read from MH i2c: F0 [16:00:16]MH_I2C_Read... [16:00:16]Read from MH i2c: F0 09 00 [16:00:16]MH_I2C_Read... [16:00:16]Read from MH i2c: F0 09 00 81 BA 00 9D 00 73 66 BD 8F 7C 64 D5 [16:00:16]GetLastDocTimeStamp 1718812723 [16:00:16]current date 1718812829 [16:00:16]FM_GetShiftState [16:00:16]SAM_PROTO_GetShiftState [16:00:16]wFMCommunicate request_size=4 [16:00:16]MH_SAM_APDU [16:00:16]CAPDU: 80 13 01 00 [16:00:16]Write to MH i2c: E2 08 00 82 BA 80 13 01 00 00 00 00 00 B9 [16:00:16]Write i2c OK [16:00:16]MH_I2C_Read... [16:00:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:00:16]Read from MH i2c: E2 [16:00:16]MH_I2C_Read... [16:00:16]Read from MH i2c: E2 0E 00 [16:00:16]MH_I2C_Read... [16:00:16]Read from MH i2c: E2 0E 00 82 BA 00 09 00 01 04 26 72 66 00 00 00 00 90 00 C7 [16:00:16]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [16:00:16]wFMCommunicate OK [16:00:16]SAM_PROTO_GetShiftState done [16:00:16]FM_GetShiftState done [16:00:16]opened in 1718756868 [16:00:16]opened+sec_in_day 1718843268 [16:00:16]quantity*price = 200063 [16:00:16]sum+1 = 200064 [16:00:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.46 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 150 19.06.2024 16:00 Смена: 353 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103720 ФПД: 91713229148109 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T160029&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103720&fm=91713229148109&tin=02508201610067®Number=0000000000092785&sum=200000 [16:00:17]StoreToDocumentArchive [16:00:17]shift 353 fd 103720 [16:00:17]save to /storage/0353/doc_00103720 [16:00:17]save last doc name /storage/0353/doc_00103720 to /storage/kkm_last_doc_name [16:00:17]save OK [16:00:17]Clear old archive folders... [16:00:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:00:17]tlvbuf is 015CB400 [16:00:17]SAM_PROTO_ClearQueue [16:00:17]wFMCommunicate request_size=4 [16:00:17]MH_SAM_APDU [16:00:17]CAPDU: 80 09 00 00 [16:00:17]Write to MH i2c: E2 08 00 8F BA 80 09 00 00 00 00 00 00 BB [16:00:17]Write i2c OK [16:00:17]MH_I2C_Read... [16:00:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:00:17]Read from MH i2c: E2 [16:00:17]MH_I2C_Read... [16:00:17]Read from MH i2c: E2 03 00 [16:00:17]MH_I2C_Read... [16:00:17]Read from MH i2c: E2 03 00 8F BA 00 90 00 BD [16:00:17]RAPDU: 90 00 [16:00:17]wFMCommunicate OK [16:00:17]SAM_PROTO_ClearQueue done [16:00:17]KKMCreateOFDPacket [16:00:17]OFDProtocolAddRootSTLVToBuf [16:00:17]FM_MakeSignedData [16:00:17]FM_MakeSignedData [16:00:17]SAM_PROTO_SignData [16:00:17]wFMCommunicate request_size=4 [16:00:17]MH_SAM_APDU [16:00:17]CAPDU: 80 0D 01 02 [16:00:17]Write to MH i2c: E2 08 00 90 BA 80 0D 01 02 00 00 00 00 C3 [16:00:17]Write i2c OK [16:00:17]MH_I2C_Read... [16:00:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:00:17]Read from MH i2c: E2 [16:00:17]MH_I2C_Read... [16:00:17]Read from MH i2c: E2 03 00 [16:00:17]MH_I2C_Read... [16:00:17]Read from MH i2c: E2 03 00 90 BA 00 90 00 BE [16:00:17]RAPDU: 90 00 [16:00:17]wFMCommunicate OK [16:00:17]wFMCommunicate request_size=255 [16:00:17]MH_SAM_APDU [16:00: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 B2 75 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FE 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 00 00 00 F4 03 04 00 9D 00 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 28 95 01 00 35 04 06 00 53 [16:00:17]Write to MH i2c: E2 02 01 91 BA 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B2 75 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FE 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 00 00 00 F4 03 04 00 9D 00 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 28 95 01 00 35 04 06 00 53 00 00 F1 [16:00:17]Write i2c OK [16:00:17]MH_I2C_Read... [16:00:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:00:17]Read from MH i2c: E2 [16:00:17]MH_I2C_Read... [16:00:17]Read from MH i2c: E2 03 00 [16:00:17]MH_I2C_Read... [16:00:17]Read from MH i2c: E2 03 00 91 BA 00 90 00 BF [16:00:17]RAPDU: 90 00 [16:00:17]wFMCommunicate OK [16:00:17]wFMCommunicate request_size=10 [16:00:17]MH_SAM_APDU [16:00:17]CAPDU: 80 0D 02 02 05 69 A6 71 CF CD [16:00:17]Write to MH i2c: E2 0D 00 92 BA 80 0D 02 02 05 00 69 A6 71 CF CD 00 00 EC [16:00:17]Write i2c OK [16:00:17]MH_I2C_Read... [16:00:17]OFD Sender: No OFD packet to send [16:00:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:00:17]Read from MH i2c: E2 [16:00:17]MH_I2C_Read... [16:00:17]Read from MH i2c: E2 03 00 [16:00:17]MH_I2C_Read... [16:00:17]Read from MH i2c: E2 03 00 92 BA 00 90 00 C0 [16:00:17]RAPDU: 90 00 [16:00:17]wFMCommunicate OK [16:00:17]wFMCommunicate request_size=4 [16:00:17]MH_SAM_APDU [16:00:17]CAPDU: 80 0D 03 02 [16:00:17]Write to MH i2c: E2 08 00 93 BA 80 0D 03 02 00 00 00 00 C8 [16:00:17]Write i2c OK [16:00:17]MH_I2C_Read... [16:00:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:00:18]Read from MH i2c: E2 [16:00:18]MH_I2C_Read... [16:00:18]Read from MH i2c: E2 0B 00 [16:00:18]MH_I2C_Read... [16:00:18]Read from MH i2c: E2 0B 00 93 BA 00 45 36 C2 58 FF F0 43 3B 90 00 CB [16:00:18]RAPDU: 45 36 C2 58 FF F0 43 3B 90 00 [16:00:18]wFMCommunicate OK [16:00:18]SAM_PROTO_SignData done [16:00:18]FM_MakeSignedData done [16:00:18]CreateOFDProtocolMessage [16:00:18]wFMCommunicate request_size=4 [16:00:18]MH_SAM_APDU [16:00:18]CAPDU: 80 11 00 00 [16:00:18]Write to MH i2c: E2 08 00 94 BA 80 11 00 00 00 00 00 00 C8 [16:00:18]Write i2c OK [16:00:18]MH_I2C_Read... [16:00:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:00:18]Read from MH i2c: E2 [16:00:18]MH_I2C_Read... [16:00:18]Read from MH i2c: E2 17 00 [16:00:18]MH_I2C_Read... [16:00:18]Read from MH i2c: E2 17 00 94 BA 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 1B [16:00:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [16:00:18]wFMCommunicate OK [16:00:18]CreateOFDProtocolMessage done [16:00:18]OFDSenderStorePacket 103720 [16:00:18]StoreOFDPacket docnum=103720 [16:00:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 AE 1A 07 01 CB 1B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B2 75 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FE 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 00 00 00 F4 03 04 00 9D 00 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 28 95 01 00 35 04 06 00 53 69 A6 71 CF CD 45 36 C2 58 FF F0 43 3B [16:00:18]CheckFolder [16:00:18]dirname=/storage/ofd_packets [16:00:18]CheckFolder done [16:00:18]ProducePacketName [16:00:18]name=ofd_packets/00103720 [16:00:18]NVStorageSaveData ofd_packets/00103720 [16:00:18]File name is /storage/ofd_packets/00103720 [16:00:18]Write 301 bytes [16:00:18]NVStorageSaveData done [16:00:18]OFDSenderStorePacket done [16:00:18]KKMCreateOFDPacket done [16:00:18]NVStorageSaveData kkm_last_timestamp [16:00:18]File name is /storage/kkm_last_timestamp [16:00:18]Write 4 bytes [16:00:18]NVStorageSaveData done [16:00:18]ExternCall_PrintAddStr [16:00:18]wPrintStart [16:00:18]Write to MH i2c: 01 00 00 95 BA 4F [16:00:18]Write i2c OK [16:00:18]MH_I2C_Read... [16:00:18]Read from MH i2c: 01 [16:00:18]MH_I2C_Read... [16:00:18]Read from MH i2c: 01 07 00 [16:00:18]MH_I2C_Read... [16:00:18]Read from MH i2c: 01 07 00 95 BA 00 00 00 00 00 FF 0F 64 [16:00:18]RasterBufferAndPrint [16:00:18]line Счет N : (1)672996 [16:00:18]line ИНН: 02508201610067 [16:00:18]line Контрольно-Кассовый Чек [16:00:18]line ПРОДАЖА [16:00:18]line ТРК (МРК, ГНК) : 32 [16:00:18]line Товар: 2710124130 [16:00:18]line Аи-92-К-5 [16:00:18]line 30.130 * 66.40 [16:00:18]line = 2000.63 [16:00:18]line НДС 12% НСП 1% [16:00:18]line > о реализуемом товаре [16:00:18]line ОКРУГЛЕНИЕ: -0.63 [16:00:18]line ИТОГО: 2000.00 [16:00:18]line Внесено: 2000.00 [16:00:18]line СДАЧА: 0.00 [16:00:18]line НСП 1% : 17.70 [16:00:18]line НДС 12% : 212.46 [16:00:18]line Наличными: 2000.00 [16:00:18]line Безнал.: 0.00 [16:00:18]line Место: АЗС № 120 "Партнер Нефть" [16:00:18]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [16:00:18]line СНО: Общий режим [16:00:18]line Чек 150 19.06.2024 16:00 [16:00:18]line Смена: 353 ФФД: 1.0 [16:00:18]line ЗНМ: 0300000164 [16:00:18]line РНМ: 0000000000092785 [16:00:18]line Версия ККМ: 001 [16:00:18]line ФМ: 0000000000875093 [16:00:18]line ФД: 103720 [16:00:18]line ФПД: 91713229148109 [16:00:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T160029&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103720&fm=91713229148109&tin=02508201610067®Number=0000000000092785&sum=200000 [16:00:18]OFD Sender: Processing packet 103720 [packets to send 17, broken 16] [16:00:18]ProducePacketName [16:00:18]name=ofd_packets/00103720 [16:00:18]OFD Sender: To server: pG, [16:00:18]CommunicateWithHost lk.salyk.kg:30040 [16:00:18]ConnectInit lk.salyk.kg [16:00:18]written 0, free lines is 4095 [16:00:18]Connected sock=9 [16:00: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 39 33 0F 01 00 00 AE 1A 07 01 CB 1B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B2 75 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FE 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 00 00 00 F4 03 04 00 9D 00 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 28 95 01 00 35 04 06 00 53 69 A6 71 CF CD 45 36 C2 58 FF F0 43 3B [16:00:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 2F FB 47 00 59 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 39 33 10 04 04 00 28 95 01 00 F4 03 04 00 25 A7 72 66 B6 04 01 00 00 4C 1E 26 37 3B 09 DC FB [16:00:18]CommunicateWithHost err = 0 [16:00:18]CheckOFDResponse [16:00:18]1017 (14) - 77093643461234 [16:00:18]1041 (16) - 0000000000875093 [16:00:18]1040 (4) - 103720 [16:00:18]1012 (4) - 19.06.2024 09:38 [16:00:18]1206 (1) - 0 [16:00:18]OFD Sender: Remove packet 103720 [16:00:18]ProducePacketName [16:00:18]name=ofd_packets/00103720 [16:00:18]NVStorageDeleteData [16:00:18]Write to MH i2c: 01 00 00 C0 BA 7A [16:00:18]Write i2c OK [16:00:18]MH_I2C_Read... [16:00:18]Read from MH i2c: 01 [16:00:18]MH_I2C_Read... [16:00:18]Read from MH i2c: 01 07 00 [16:00:18]MH_I2C_Read... [16:00:18]Read from MH i2c: 01 07 00 C0 BA 00 00 00 00 00 E6 0C 73 [16:00:18]RasterBufferAndPrint [16:00:18]line [16:00:18]line [16:00:18]line [16:00:18]line [16:00:18]line [16:00:18]written 0, free lines is 3308 [16:00:18]MH_Cut [16:00:18]Write to MH i2c: D1 01 00 C7 BA 01 53 [16:00:18]Write i2c OK [16:00:18]MH_I2C_Read... [16:00:18]Read from MH i2c: D1 [16:00:18]MH_I2C_Read... [16:00:18]Read from MH i2c: D1 01 00 [16:00:18]MH_I2C_Read... [16:00:18]Read from MH i2c: D1 01 00 C7 BA 00 52 [16:00:18]Write to MH i2c: 01 00 00 C8 BA 82 [16:00:18]Write i2c OK [16:00:18]MH_I2C_Read... [16:00:19]OFD Sender: No OFD packet to send [16:00:19]*** Cut start [16:00:19]*** Partial cut [16:00:19]*** CUTSNS_PIN = 1 [16:00:19]*** CUTSNS_PIN = 0 [16:00:19]*** Brake cut motor [16:00:20]Read from MH i2c: 01 [16:00:20]MH_I2C_Read... [16:00:20]*** Stop cut motor [16:00:20]*** Cut end [16:00:20]Read from MH i2c: 01 07 00 [16:00:20]MH_I2C_Read... [16:00:20]Read from MH i2c: 01 07 00 C8 BA 00 00 00 00 00 FF 0F 97 [16:00:20]process_action close_receipt done [16:00:20]requested_data is exist [16:00:20]produce_requested_data [16:00:20]requested_item fm.sn is exist - process it [16:00:20]wFMCommunicate request_size=4 [16:00:20]MH_SAM_APDU [16:00:20]CAPDU: 80 11 00 00 [16:00:20]Write to MH i2c: E2 08 00 C9 BA 80 11 00 00 00 00 00 00 FD [16:00:20]Write i2c OK [16:00:20]MH_I2C_Read... [16:00:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:00:20]Read from MH i2c: E2 [16:00:20]MH_I2C_Read... [16:00:20]Read from MH i2c: E2 17 00 [16:00:20]MH_I2C_Read... [16:00:20]Read from MH i2c: E2 17 00 C9 BA 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 50 [16:00:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [16:00:20]wFMCommunicate OK [16:00:20]requested_item fd.num is exist - process it [16:00:20]SAM_PROTO_GetFieldsCounters [16:00:20]wFMCommunicate request_size=4 [16:00:20]MH_SAM_APDU [16:00:20]CAPDU: 80 13 00 00 [16:00:20]Write to MH i2c: E2 08 00 CA BA 80 13 00 00 00 00 00 00 00 [16:00:20]Write i2c OK [16:00:20]MH_I2C_Read... [16:00:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:00:20]Read from MH i2c: E2 [16:00:20]MH_I2C_Read... [16:00:20]Read from MH i2c: E2 62 00 [16:00:20]MH_I2C_Read... [16:00:20]Read from MH i2c: E2 62 00 CA BA 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 28 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 96 00 00 00 5E 04 04 00 96 00 00 00 57 04 04 00 97 00 00 00 19 04 04 00 00 00 00 00 90 00 09 [16:00: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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 28 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 96 00 00 00 5E 04 04 00 96 00 00 00 57 04 04 00 97 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:00:20]wFMCommunicate OK [16:00:20]SAM_PROTO_GetFieldsCounters done [16:00:20]requested_item shift.num is exist - process it [16:00:20]requested_item shift.opened is exist - process it [16:00:20]req_shift_opened [16:00:20]FM_GetShiftState [16:00:20]SAM_PROTO_GetShiftState [16:00:20]wFMCommunicate request_size=4 [16:00:20]MH_SAM_APDU [16:00:20]CAPDU: 80 13 01 00 [16:00:20]Write to MH i2c: E2 08 00 CB BA 80 13 01 00 00 00 00 00 02 [16:00:20]Write i2c OK [16:00:20]MH_I2C_Read... [16:00:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:00:20]Read from MH i2c: E2 [16:00:20]MH_I2C_Read... [16:00:20]Read from MH i2c: E2 0E 00 [16:00:20]MH_I2C_Read... [16:00:20]Read from MH i2c: E2 0E 00 CB BA 00 09 00 01 04 26 72 66 00 00 00 00 90 00 10 [16:00:20]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [16:00:20]wFMCommunicate OK [16:00:20]SAM_PROTO_GetShiftState done [16:00:20]FM_GetShiftState done [16:00:20]req_shift_opened done [16:00:20]requested_item shift.open_date is exist - process it [16:00:20]req_shift_open_date [16:00:20]req_shift_open_date done [16:00:20]produce_requested_data done [16:00:20]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103720,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [16:00:20]process_action_free close_receipt [16:00:20]json_value_free [16:00:20]json_value_free done [16:00:20]process_json_proto returns [16:00:20]Send response to host [16:00:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103720,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [16:00:20]free response buf [16:00:20]execute_script done [16:00:20]execute_script returns [16:00:20]free content buf [16:00:20]Sock 10.Close socket [16:00:20]Sock 10.Thread stoped [16:00:24]OFD Sender: No OFD packet to send [16:00:29]OFD Sender: No OFD packet to send [16:00:34]OFD Sender: No OFD packet to send [16:00:39]OFD Sender: No OFD packet to send [16:00:44]OFD Sender: No OFD packet to send [16:00:49]OFD Sender: No OFD packet to send [16:00:54]OFD Sender: No OFD packet to send [16:00:59]OFD Sender: No OFD packet to send [16:01:04]OFD Sender: No OFD packet to send [16:01:09]OFD Sender: No OFD packet to send [16:01:14]OFD Sender: No OFD packet to send [16:01:19]OFD Sender: No OFD packet to send [16:01:24]OFD Sender: No OFD packet to send [16:01:29]OFD Sender: No OFD packet to send [16:01:34]OFD Sender: No OFD packet to send [16:01:39]OFD Sender: No OFD packet to send [16:01:44]OFD Sender: No OFD packet to send [16:01:49]OFD Sender: No OFD packet to send [16:01:54]OFD Sender: No OFD packet to send [16:01:59]OFD Sender: No OFD packet to send [16:02:04]OFD Sender: No OFD packet to send [16:02:09]OFD Sender: No OFD packet to send [16:02:14]OFD Sender: No OFD packet to send [16:02:19]OFD Sender: No OFD packet to send [16:02:24]OFD Sender: No OFD packet to send [16:02:29]OFD Sender: No OFD packet to send [16:02:34]OFD Sender: No OFD packet to send [16:02:39]OFD Sender: No OFD packet to send [16:02:44]OFD Sender: No OFD packet to send [16:02:49]OFD Sender: No OFD packet to send [16:02:54]OFD Sender: No OFD packet to send [16:02:59]OFD Sender: No OFD packet to send [16:03:04]OFD Sender: No OFD packet to send [16:03:09]OFD Sender: No OFD packet to send [16:03:14]OFD Sender: No OFD packet to send [16:03:19]OFD Sender: No OFD packet to send [16:03:24]OFD Sender: No OFD packet to send [16:03:29]OFD Sender: No OFD packet to send [16:03:34]OFD Sender: No OFD packet to send [16:03:39]OFD Sender: No OFD packet to send [16:03:44]OFD Sender: No OFD packet to send [16:03:49]OFD Sender: No OFD packet to send [16:03:54]OFD Sender: No OFD packet to send [16:03:59]OFD Sender: No OFD packet to send [16:04:04]OFD Sender: No OFD packet to send [16:04:09]OFD Sender: No OFD packet to send [16:04:14]OFD Sender: No OFD packet to send [16:04:19]OFD Sender: No OFD packet to send [16:04:24]OFD Sender: No OFD packet to send [16:04:29]OFD Sender: No OFD packet to send [16:04:34]OFD Sender: No OFD packet to send [16:04:39]OFD Sender: No OFD packet to send [16:04:44]OFD Sender: No OFD packet to send [16:04:49]OFD Sender: No OFD packet to send [16:04:54]OFD Sender: No OFD packet to send [16:04:59]OFD Sender: No OFD packet to send [16:05:04]OFD Sender: No OFD packet to send [16:05:09]OFD Sender: No OFD packet to send [16:05:14]OFD Sender: No OFD packet to send [16:05:19]OFD Sender: No OFD packet to send [16:05:24]OFD Sender: No OFD packet to send [16:05:25]accept exits with 7 [16:05:25]New connection [16:05:25]New thread 3067227492 created [16:05:25]Thread 3067084132 joined [16:05:25]Waiting for new connection... [16:05:25] Sock 7.Parse request [16:05:25]Sock 7.Check first char [16:05:25]Sock 7.First char is OK [16:05:25]request: POST /json_proto HTTP/1.0 [16:05:25]Method: POST [16:05:25]URL: /json_proto [16:05:25]Method is POST - this is cgi request [16:05:25]url: /json_proto [16:05:25]query_string will be loaded in cgi processing [16:05:25]execute_cgi json_proto POST (null) [16:05:25]execute_cgi path=json_proto method=POST [16:05:25]POST find Content-Length [16:05:25]Host: 172.17.38.133:8080 [16:05:25]Content-Length: 687 [16:05:25]Content-Type: application/json [16:05:25] [16:05:25]POST finish read [16:05:25]Found Content-Length = 687 [16:05:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672998", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 54.870, "sum" : 4000.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 4000.00, "total" : 4000.00, "payments": [ { "type": 0, "sum" : 4000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:05:25]execute_script... [16:05: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)672998", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 54.870, "sum" : 4000.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 4000.00, "total" : 4000.00, "payments": [ { "type": 0, "sum" : 4000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:05:25]POST & json_proto [16:05:25]process_json_proto [16:05:25]json parsed OK: [16:05:25]protocol is kg_v1.0 [16:05:25]action value=close_receipt [16:05:25]process_action close_receipt [16:05:25]cmd_close_receipt [16:05:25]MH_GetDate [16:05:25]Write to MH i2c: F0 00 00 CC BA 75 [16:05:25]Write i2c OK [16:05:25]MH_I2C_Read... [16:05:25]Read from MH i2c: F0 [16:05:25]MH_I2C_Read... [16:05:25]Read from MH i2c: F0 09 00 [16:05:25]MH_I2C_Read... [16:05:25]Read from MH i2c: F0 09 00 CC BA 00 D2 01 73 66 BD 8F 7C 64 56 [16:05:25]GetLastDocTimeStamp 1718812829 [16:05:25]current date 1718813138 [16:05:25]FM_GetShiftState [16:05:25]SAM_PROTO_GetShiftState [16:05:25]wFMCommunicate request_size=4 [16:05:25]MH_SAM_APDU [16:05:25]CAPDU: 80 13 01 00 [16:05:25]Write to MH i2c: E2 08 00 CD BA 80 13 01 00 00 00 00 00 04 [16:05:25]Write i2c OK [16:05:25]MH_I2C_Read... [16:05:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:05:25]Read from MH i2c: E2 [16:05:25]MH_I2C_Read... [16:05:25]Read from MH i2c: E2 0E 00 [16:05:25]MH_I2C_Read... [16:05:25]Read from MH i2c: E2 0E 00 CD BA 00 09 00 01 04 26 72 66 00 00 00 00 90 00 12 [16:05:25]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [16:05:25]wFMCommunicate OK [16:05:25]SAM_PROTO_GetShiftState done [16:05:25]FM_GetShiftState done [16:05:25]opened in 1718756868 [16:05:25]opened+sec_in_day 1718843268 [16:05:25]quantity*price = 400002 [16:05:25]sum+1 = 400003 [16:05:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 4000.00 Внесено: 4000.00 СДАЧА: 0.00 НСП 1% : 35.40 НДС 12% : 424.78 Наличными: 4000.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 151 19.06.2024 16:05 Смена: 353 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103721 ФПД: 110703426114728 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T160538&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103721&fm=110703426114728&tin=02508201610067®Number=0000000000092785&sum=400000 [16:05:26]StoreToDocumentArchive [16:05:26]shift 353 fd 103721 [16:05:26]save to /storage/0353/doc_00103721 [16:05:26]save last doc name /storage/0353/doc_00103721 to /storage/kkm_last_doc_name [16:05:26]save OK [16:05:26]Clear old archive folders... [16:05:26]ProcessDocumentItem done err = 0, tmpTLVsize=252 [16:05:26]tlvbuf is 013703F0 [16:05:26]SAM_PROTO_ClearQueue [16:05:26]wFMCommunicate request_size=4 [16:05:26]MH_SAM_APDU [16:05:26]CAPDU: 80 09 00 00 [16:05:26]Write to MH i2c: E2 08 00 DA BA 80 09 00 00 00 00 00 00 06 [16:05:26]Write i2c OK [16:05:26]MH_I2C_Read... [16:05:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:05:26]Read from MH i2c: E2 [16:05:26]MH_I2C_Read... [16:05:26]Read from MH i2c: E2 03 00 [16:05:26]MH_I2C_Read... [16:05:26]Read from MH i2c: E2 03 00 DA BA 00 90 00 08 [16:05:26]RAPDU: 90 00 [16:05:26]wFMCommunicate OK [16:05:26]SAM_PROTO_ClearQueue done [16:05:26]KKMCreateOFDPacket [16:05:26]OFDProtocolAddRootSTLVToBuf [16:05:26]FM_MakeSignedData [16:05:26]FM_MakeSignedData [16:05:26]SAM_PROTO_SignData [16:05:26]wFMCommunicate request_size=4 [16:05:26]MH_SAM_APDU [16:05:26]CAPDU: 80 0D 01 02 [16:05:26]Write to MH i2c: E2 08 00 DB BA 80 0D 01 02 00 00 00 00 0E [16:05:26]Write i2c OK [16:05:26]MH_I2C_Read... [16:05:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:05:26]Read from MH i2c: E2 [16:05:26]MH_I2C_Read... [16:05:26]Read from MH i2c: E2 03 00 [16:05:26]MH_I2C_Read... [16:05:26]Read from MH i2c: E2 03 00 DB BA 00 90 00 09 [16:05:26]RAPDU: 90 00 [16:05:26]wFMCommunicate OK [16:05:26]wFMCommunicate request_size=255 [16:05:26]MH_SAM_APDU [16:05:26]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 56 D6 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 82 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EE A5 00 00 00 00 07 04 06 00 80 1A 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 00 00 00 F4 03 04 00 D2 01 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 29 95 01 00 35 04 06 00 [16:05:26]Write to MH i2c: E2 02 01 DC BA 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 56 D6 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 82 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EE A5 00 00 00 00 07 04 06 00 80 1A 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 00 00 00 F4 03 04 00 D2 01 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 29 95 01 00 35 04 06 00 00 00 D5 [16:05:27]Write i2c OK [16:05:27]MH_I2C_Read... [16:05:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:05:27]Read from MH i2c: E2 [16:05:27]MH_I2C_Read... [16:05:27]Read from MH i2c: E2 03 00 [16:05:27]MH_I2C_Read... [16:05:27]Read from MH i2c: E2 03 00 DC BA 00 90 00 0A [16:05:27]RAPDU: 90 00 [16:05:27]wFMCommunicate OK [16:05:27]wFMCommunicate request_size=11 [16:05:27]MH_SAM_APDU [16:05:27]CAPDU: 80 0D 02 02 06 64 AF 26 63 94 A8 [16:05:27]Write to MH i2c: E2 0E 00 DD BA 80 0D 02 02 06 00 64 AF 26 63 94 A8 00 00 F5 [16:05:27]Write i2c OK [16:05:27]MH_I2C_Read... [16:05:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:05:27]Read from MH i2c: E2 [16:05:27]MH_I2C_Read... [16:05:27]Read from MH i2c: E2 03 00 [16:05:27]MH_I2C_Read... [16:05:27]Read from MH i2c: E2 03 00 DD BA 00 90 00 0B [16:05:27]RAPDU: 90 00 [16:05:27]wFMCommunicate OK [16:05:27]wFMCommunicate request_size=4 [16:05:27]MH_SAM_APDU [16:05:27]CAPDU: 80 0D 03 02 [16:05:27]Write to MH i2c: E2 08 00 DE BA 80 0D 03 02 00 00 00 00 13 [16:05:27]Write i2c OK [16:05:27]MH_I2C_Read... [16:05:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:05:27]Read from MH i2c: E2 [16:05:27]MH_I2C_Read... [16:05:27]Read from MH i2c: E2 0B 00 [16:05:27]MH_I2C_Read... [16:05:27]Read from MH i2c: E2 0B 00 DE BA 00 C0 21 A4 82 9B 05 33 2A 90 00 18 [16:05:27]RAPDU: C0 21 A4 82 9B 05 33 2A 90 00 [16:05:27]wFMCommunicate OK [16:05:27]SAM_PROTO_SignData done [16:05:27]FM_MakeSignedData done [16:05:27]CreateOFDProtocolMessage [16:05:27]wFMCommunicate request_size=4 [16:05:27]MH_SAM_APDU [16:05:27]CAPDU: 80 11 00 00 [16:05:27]Write to MH i2c: E2 08 00 DF BA 80 11 00 00 00 00 00 00 13 [16:05:27]Write i2c OK [16:05:27]MH_I2C_Read... [16:05:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:05:27]Read from MH i2c: E2 [16:05:27]MH_I2C_Read... [16:05:27]Read from MH i2c: E2 17 00 [16:05:27]MH_I2C_Read... [16:05:27]Read from MH i2c: E2 17 00 DF BA 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 66 [16:05:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [16:05:27]wFMCommunicate OK [16:05:27]CreateOFDProtocolMessage done [16:05:27]OFDSenderStorePacket 103721 [16:05:27]StoreOFDPacket docnum=103721 [16:05:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 A8 2E 08 01 B4 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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 56 D6 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 82 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EE A5 00 00 00 00 07 04 06 00 80 1A 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 00 00 00 F4 03 04 00 D2 01 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 29 95 01 00 35 04 06 00 64 AF 26 63 94 A8 C0 21 A4 82 9B 05 33 2A [16:05:27]CheckFolder [16:05:27]dirname=/storage/ofd_packets [16:05:27]CheckFolder done [16:05:27]ProducePacketName [16:05:27]name=ofd_packets/00103721 [16:05:27]NVStorageSaveData ofd_packets/00103721 [16:05:27]File name is /storage/ofd_packets/00103721 [16:05:27]Write 302 bytes [16:05:27]NVStorageSaveData done [16:05:27]OFDSenderStorePacket done [16:05:27]KKMCreateOFDPacket done [16:05:27]NVStorageSaveData kkm_last_timestamp [16:05:27]File name is /storage/kkm_last_timestamp [16:05:27]Write 4 bytes [16:05:27]NVStorageSaveData done [16:05:27]ExternCall_PrintAddStr [16:05:27]wPrintStart [16:05:27]Write to MH i2c: 01 00 00 E0 BA 9A [16:05:27]Write i2c OK [16:05:27]MH_I2C_Read... [16:05:27]Read from MH i2c: 01 [16:05:27]MH_I2C_Read... [16:05:27]Read from MH i2c: 01 07 00 [16:05:27]MH_I2C_Read... [16:05:27]Read from MH i2c: 01 07 00 E0 BA 00 00 00 00 00 FF 0F AF [16:05:27]RasterBufferAndPrint [16:05:27]line Счет N : (1)672998 [16:05:27]line ИНН: 02508201610067 [16:05:27]line Контрольно-Кассовый Чек [16:05:27]line ПРОДАЖА [16:05:27]line ТРК (МРК, ГНК) : 21 [16:05:27]line Товар: 2710194210 [16:05:27]line ДТ(л)-К-5 [16:05:27]line 54.870 * 72.90 [16:05:27]line = 4000.02 [16:05:27]line НДС 12% НСП 1% [16:05:27]line > о реализуемом товаре [16:05:27]line ОКРУГЛЕНИЕ: -0.02 [16:05:27]line ИТОГО: 4000.00 [16:05:27]line Внесено: 4000.00 [16:05:27]line СДАЧА: 0.00 [16:05:27]line НСП 1% : 35.40 [16:05:27]line НДС 12% : 424.78 [16:05:27]line Наличными: 4000.00 [16:05:27]line Безнал.: 0.00 [16:05:27]line Место: АЗС № 120 "Партнер Нефть" [16:05:27]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [16:05:27]line СНО: Общий режим [16:05:27]line Чек 151 19.06.2024 16:05 [16:05:27]line Смена: 353 ФФД: 1.0 [16:05:27]line ЗНМ: 0300000164 [16:05:27]line РНМ: 0000000000092785 [16:05:27]line Версия ККМ: 001 [16:05:27]line ФМ: 0000000000875093 [16:05:27]line ФД: 103721 [16:05:27]line ФПД: 110703426114728 [16:05:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T160538&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103721&fm=110703426114728&tin=02508201610067®Number=0000000000092785&sum=400000 [16:05:27]OFD Sender: Processing packet 103721 [packets to send 17, broken 16] [16:05:27]ProducePacketName [16:05:27]name=ofd_packets/00103721 [16:05:27]OFD Sender: To server: pG, [16:05:27]CommunicateWithHost lk.salyk.kg:30040 [16:05:27]ConnectInit lk.salyk.kg [16:05:27]written 0, free lines is 4095 [16:05:27]Connected sock=10 [16:05:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 A8 2E 08 01 B4 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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 56 D6 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 82 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EE A5 00 00 00 00 07 04 06 00 80 1A 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 00 00 00 F4 03 04 00 D2 01 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 29 95 01 00 35 04 06 00 64 AF 26 63 94 A8 C0 21 A4 82 9B 05 33 2A [16:05: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 39 33 4F 00 00 00 B6 7A 47 00 EC 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 39 33 10 04 04 00 29 95 01 00 F4 03 04 00 5B A8 72 66 B6 04 01 00 00 01 19 66 A4 79 6F 16 A6 [16:05:28]CommunicateWithHost err = 0 [16:05:28]CheckOFDResponse [16:05:28]1017 (14) - 77093643461234 [16:05:28]1041 (16) - 0000000000875093 [16:05:28]1040 (4) - 103721 [16:05:28]1012 (4) - 19.06.2024 09:43 [16:05:28]1206 (1) - 0 [16:05:28]OFD Sender: Remove packet 103721 [16:05:28]ProducePacketName [16:05:28]name=ofd_packets/00103721 [16:05:28]NVStorageDeleteData [16:05:28]Write to MH i2c: 01 00 00 0B BB C6 [16:05:28]Write i2c OK [16:05:28]MH_I2C_Read... [16:05:28]Read from MH i2c: 01 [16:05:28]MH_I2C_Read... [16:05:28]Read from MH i2c: 01 07 00 [16:05:28]MH_I2C_Read... [16:05:28]Read from MH i2c: 01 07 00 0B BB 00 00 00 00 00 EC 0C C5 [16:05:28]RasterBufferAndPrint [16:05:28]line [16:05:28]line [16:05:28]line [16:05:28]line [16:05:28]line [16:05:28]written 0, free lines is 3317 [16:05:28]MH_Cut [16:05:28]Write to MH i2c: D1 01 00 12 BB 01 9F [16:05:28]Write i2c OK [16:05:28]MH_I2C_Read... [16:05:28]Read from MH i2c: D1 [16:05:28]MH_I2C_Read... [16:05:28]Read from MH i2c: D1 01 00 [16:05:28]MH_I2C_Read... [16:05:28]Read from MH i2c: D1 01 00 12 BB 00 9E [16:05:28]Write to MH i2c: 01 00 00 13 BB CE [16:05:28]Write i2c OK [16:05:28]MH_I2C_Read... [16:05:28]OFD Sender: No OFD packet to send [16:05:28]*** Cut start [16:05:28]*** Partial cut [16:05:28]*** CUTSNS_PIN = 1 [16:05:29]*** CUTSNS_PIN = 0 [16:05:29]*** Brake cut motor [16:05:29]Read from MH i2c: 01 [16:05:29]MH_I2C_Read... [16:05:29]*** Stop cut motor [16:05:29]*** Cut end [16:05:29]Read from MH i2c: 01 07 00 [16:05:29]MH_I2C_Read... [16:05:29]Read from MH i2c: 01 07 00 13 BB 00 00 00 00 00 FF 0F E3 [16:05:29]process_action close_receipt done [16:05:29]requested_data is exist [16:05:29]produce_requested_data [16:05:29]requested_item fm.sn is exist - process it [16:05:29]wFMCommunicate request_size=4 [16:05:29]MH_SAM_APDU [16:05:29]CAPDU: 80 11 00 00 [16:05:29]Write to MH i2c: E2 08 00 14 BB 80 11 00 00 00 00 00 00 49 [16:05:29]Write i2c OK [16:05:29]MH_I2C_Read... [16:05:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:05:29]Read from MH i2c: E2 [16:05:29]MH_I2C_Read... [16:05:29]Read from MH i2c: E2 17 00 [16:05:29]MH_I2C_Read... [16:05:29]Read from MH i2c: E2 17 00 14 BB 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 9C [16:05:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [16:05:29]wFMCommunicate OK [16:05:29]requested_item fd.num is exist - process it [16:05:29]SAM_PROTO_GetFieldsCounters [16:05:29]wFMCommunicate request_size=4 [16:05:29]MH_SAM_APDU [16:05:29]CAPDU: 80 13 00 00 [16:05:29]Write to MH i2c: E2 08 00 15 BB 80 13 00 00 00 00 00 00 4C [16:05:29]Write i2c OK [16:05:29]MH_I2C_Read... [16:05:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:05:29]Read from MH i2c: E2 [16:05:29]MH_I2C_Read... [16:05:29]Read from MH i2c: E2 62 00 [16:05:29]MH_I2C_Read... [16:05:29]Read from MH i2c: E2 62 00 15 BB 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 29 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 97 00 00 00 5E 04 04 00 97 00 00 00 57 04 04 00 98 00 00 00 19 04 04 00 00 00 00 00 90 00 59 [16:05: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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 29 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 97 00 00 00 5E 04 04 00 97 00 00 00 57 04 04 00 98 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:05:29]wFMCommunicate OK [16:05:29]SAM_PROTO_GetFieldsCounters done [16:05:29]requested_item shift.num is exist - process it [16:05:29]requested_item shift.opened is exist - process it [16:05:29]req_shift_opened [16:05:29]FM_GetShiftState [16:05:29]SAM_PROTO_GetShiftState [16:05:29]wFMCommunicate request_size=4 [16:05:29]MH_SAM_APDU [16:05:29]CAPDU: 80 13 01 00 [16:05:29]Write to MH i2c: E2 08 00 16 BB 80 13 01 00 00 00 00 00 4E [16:05:29]Write i2c OK [16:05:29]MH_I2C_Read... [16:05:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:05:29]Read from MH i2c: E2 [16:05:29]MH_I2C_Read... [16:05:29]Read from MH i2c: E2 0E 00 [16:05:29]MH_I2C_Read... [16:05:29]Read from MH i2c: E2 0E 00 16 BB 00 09 00 01 04 26 72 66 00 00 00 00 90 00 5C [16:05:29]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [16:05:29]wFMCommunicate OK [16:05:29]SAM_PROTO_GetShiftState done [16:05:29]FM_GetShiftState done [16:05:29]req_shift_opened done [16:05:29]requested_item shift.open_date is exist - process it [16:05:29]req_shift_open_date [16:05:29]req_shift_open_date done [16:05:29]produce_requested_data done [16:05:29]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103721,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [16:05:29]process_action_free close_receipt [16:05:29]json_value_free [16:05:29]json_value_free done [16:05:29]process_json_proto returns [16:05:29]Send response to host [16:05:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103721,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [16:05:29]free response buf [16:05:29]execute_script done [16:05:29]execute_script returns [16:05:29]free content buf [16:05:29]Sock 7.Close socket [16:05:29]Sock 7.Thread stoped [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]accept exits with 9 [16:06:23]New connection [16:06:23]New thread 3067084132 created [16:06:23]Thread 3067227492 joined [16:06:23]Waiting for new connection... [16:06:23] Sock 9.Parse request [16:06:23]Sock 9.Check first char [16:06:23]Sock 9.First char is OK [16:06:23]request: POST /json_proto HTTP/1.0 [16:06:23]Method: POST [16:06:23]URL: /json_proto [16:06:23]Method is POST - this is cgi request [16:06:23]url: /json_proto [16:06:23]query_string will be loaded in cgi processing [16:06:23]execute_cgi json_proto POST (null) [16:06:23]execute_cgi path=json_proto method=POST [16:06:23]POST find Content-Length [16:06:23]Host: 172.17.38.133:8080 [16:06:23]Content-Length: 682 [16:06:23]Content-Type: application/json [16:06:23] [16:06:23]POST finish read [16:06:23]Found Content-Length = 682 [16:06:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672999", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:06:23]execute_script... [16:06:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)672999", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:06:23]POST & json_proto [16:06:23]process_json_proto [16:06:23]json parsed OK: [16:06:23]protocol is kg_v1.0 [16:06:23]action value=close_receipt [16:06:23]process_action close_receipt [16:06:23]cmd_close_receipt [16:06:23]MH_GetDate [16:06:23]Write to MH i2c: F0 00 00 17 BB C1 [16:06:23]Write i2c OK [16:06:23]MH_I2C_Read... [16:06:23]Read from MH i2c: F0 [16:06:23]MH_I2C_Read... [16:06:23]Read from MH i2c: F0 09 00 [16:06:23]MH_I2C_Read... [16:06:23]Read from MH i2c: F0 09 00 17 BB 00 0C 02 73 66 BD 8F 7C 64 DD [16:06:23]GetLastDocTimeStamp 1718813138 [16:06:23]current date 1718813196 [16:06:23]FM_GetShiftState [16:06:23]SAM_PROTO_GetShiftState [16:06:23]wFMCommunicate request_size=4 [16:06:23]MH_SAM_APDU [16:06:23]CAPDU: 80 13 01 00 [16:06:23]Write to MH i2c: E2 08 00 18 BB 80 13 01 00 00 00 00 00 50 [16:06:23]Write i2c OK [16:06:23]MH_I2C_Read... [16:06:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:06:23]Read from MH i2c: E2 [16:06:23]MH_I2C_Read... [16:06:23]Read from MH i2c: E2 0E 00 [16:06:23]MH_I2C_Read... [16:06:23]Read from MH i2c: E2 0E 00 18 BB 00 09 00 01 04 26 72 66 00 00 00 00 90 00 5E [16:06:23]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [16:06:23]wFMCommunicate OK [16:06:23]SAM_PROTO_GetShiftState done [16:06:23]FM_GetShiftState done [16:06:23]opened in 1718756868 [16:06:23]opened+sec_in_day 1718843268 [16:06:23]quantity*price = 100064 [16:06:23]sum+1 = 100066 [16:06:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.65 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 152 19.06.2024 16:06 Смена: 353 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103722 ФПД: 65399509035199 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T160636&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103722&fm=65399509035199&tin=02508201610067®Number=0000000000092785&sum=100000 [16:06:24]StoreToDocumentArchive [16:06:24]shift 353 fd 103722 [16:06:24]save to /storage/0353/doc_00103722 [16:06:24]save last doc name /storage/0353/doc_00103722 to /storage/kkm_last_doc_name [16:06:24]save OK [16:06:24]Clear old archive folders... [16:06:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:06:24]tlvbuf is 016B6620 [16:06:24]SAM_PROTO_ClearQueue [16:06:24]wFMCommunicate request_size=4 [16:06:24]MH_SAM_APDU [16:06:24]CAPDU: 80 09 00 00 [16:06:24]Write to MH i2c: E2 08 00 25 BB 80 09 00 00 00 00 00 00 52 [16:06:24]Write i2c OK [16:06:24]MH_I2C_Read... [16:06:24]Read from MH i2c: E2 [16:06:24]MH_I2C_Read... [16:06:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:06:24]Read from MH i2c: E2 03 00 [16:06:24]MH_I2C_Read... [16:06:24]Read from MH i2c: E2 03 00 25 BB 00 90 00 54 [16:06:24]RAPDU: 90 00 [16:06:24]wFMCommunicate OK [16:06:24]SAM_PROTO_ClearQueue done [16:06:24]KKMCreateOFDPacket [16:06:24]OFDProtocolAddRootSTLVToBuf [16:06:24]FM_MakeSignedData [16:06:24]FM_MakeSignedData [16:06:24]SAM_PROTO_SignData [16:06:24]wFMCommunicate request_size=4 [16:06:24]MH_SAM_APDU [16:06:24]CAPDU: 80 0D 01 02 [16:06:24]Write to MH i2c: E2 08 00 26 BB 80 0D 01 02 00 00 00 00 5A [16:06:24]Write i2c OK [16:06:24]MH_I2C_Read... [16:06:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:06:24]Read from MH i2c: E2 [16:06:24]MH_I2C_Read... [16:06:24]Read from MH i2c: E2 03 00 [16:06:24]MH_I2C_Read... [16:06:24]Read from MH i2c: E2 03 00 26 BB 00 90 00 55 [16:06:24]RAPDU: 90 00 [16:06:24]wFMCommunicate OK [16:06:24]wFMCommunicate request_size=255 [16:06:24]MH_SAM_APDU [16:06: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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 00 00 00 F4 03 04 00 0C 02 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 2A 95 01 00 35 04 06 00 3B [16:06:24]Write to MH i2c: E2 02 01 27 BB 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 00 00 00 F4 03 04 00 0C 02 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 2A 95 01 00 35 04 06 00 3B 00 00 40 [16:06:24]Write i2c OK [16:06:24]MH_I2C_Read... [16:06:24]Read from MH i2c: E2 [16:06:24]MH_I2C_Read... [16:06:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:06:25]Read from MH i2c: E2 03 00 [16:06:25]MH_I2C_Read... [16:06:25]Read from MH i2c: E2 03 00 27 BB 00 90 00 56 [16:06:25]RAPDU: 90 00 [16:06:25]wFMCommunicate OK [16:06:25]wFMCommunicate request_size=10 [16:06:25]MH_SAM_APDU [16:06:25]CAPDU: 80 0D 02 02 05 7B 02 81 28 BF [16:06:25]Write to MH i2c: E2 0D 00 28 BB 80 0D 02 02 05 00 7B 02 81 28 BF 00 00 4C [16:06:25]Write i2c OK [16:06:25]MH_I2C_Read... [16:06:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:06:25]Read from MH i2c: E2 [16:06:25]MH_I2C_Read... [16:06:25]Read from MH i2c: E2 03 00 [16:06:25]MH_I2C_Read... [16:06:25]Read from MH i2c: E2 03 00 28 BB 00 90 00 57 [16:06:25]RAPDU: 90 00 [16:06:25]wFMCommunicate OK [16:06:25]wFMCommunicate request_size=4 [16:06:25]MH_SAM_APDU [16:06:25]CAPDU: 80 0D 03 02 [16:06:25]Write to MH i2c: E2 08 00 29 BB 80 0D 03 02 00 00 00 00 5F [16:06:25]Write i2c OK [16:06:25]MH_I2C_Read... [16:06:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:06:25]Read from MH i2c: E2 [16:06:25]MH_I2C_Read... [16:06:25]Read from MH i2c: E2 0B 00 [16:06:25]MH_I2C_Read... [16:06:25]Read from MH i2c: E2 0B 00 29 BB 00 84 7E 45 6C 22 28 50 13 90 00 C0 [16:06:25]RAPDU: 84 7E 45 6C 22 28 50 13 90 00 [16:06:25]wFMCommunicate OK [16:06:25]SAM_PROTO_SignData done [16:06:25]FM_MakeSignedData done [16:06:25]CreateOFDProtocolMessage [16:06:25]wFMCommunicate request_size=4 [16:06:25]MH_SAM_APDU [16:06:25]CAPDU: 80 11 00 00 [16:06:25]Write to MH i2c: E2 08 00 2A BB 80 11 00 00 00 00 00 00 5F [16:06:25]Write i2c OK [16:06:25]MH_I2C_Read... [16:06:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:06:25]Read from MH i2c: E2 [16:06:25]MH_I2C_Read... [16:06:25]Read from MH i2c: E2 17 00 [16:06:25]MH_I2C_Read... [16:06:25]Read from MH i2c: E2 17 00 2A BB 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 B2 [16:06:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [16:06:25]wFMCommunicate OK [16:06:25]CreateOFDProtocolMessage done [16:06:25]OFDSenderStorePacket 103722 [16:06:25]StoreOFDPacket docnum=103722 [16:06:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 30 C6 07 01 F6 2B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 00 00 00 F4 03 04 00 0C 02 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 2A 95 01 00 35 04 06 00 3B 7B 02 81 28 BF 84 7E 45 6C 22 28 50 13 [16:06:25]CheckFolder [16:06:25]dirname=/storage/ofd_packets [16:06:25]CheckFolder done [16:06:25]ProducePacketName [16:06:25]name=ofd_packets/00103722 [16:06:25]NVStorageSaveData ofd_packets/00103722 [16:06:25]File name is /storage/ofd_packets/00103722 [16:06:25]Write 301 bytes [16:06:25]NVStorageSaveData done [16:06:25]OFDSenderStorePacket done [16:06:25]KKMCreateOFDPacket done [16:06:25]NVStorageSaveData kkm_last_timestamp [16:06:25]File name is /storage/kkm_last_timestamp [16:06:25]Write 4 bytes [16:06:25]NVStorageSaveData done [16:06:25]ExternCall_PrintAddStr [16:06:25]wPrintStart [16:06:25]Write to MH i2c: 01 00 00 2B BB E6 [16:06:25]Write i2c OK [16:06:25]MH_I2C_Read... [16:06:25]Read from MH i2c: 01 [16:06:25]MH_I2C_Read... [16:06:25]Read from MH i2c: 01 07 00 [16:06:25]MH_I2C_Read... [16:06:25]Read from MH i2c: 01 07 00 2B BB 00 00 00 00 00 FF 0F FB [16:06:25]RasterBufferAndPrint [16:06:25]line Счет N : (1)672999 [16:06:25]line ИНН: 02508201610067 [16:06:25]line Контрольно-Кассовый Чек [16:06:25]line ПРОДАЖА [16:06:25]line ТРК (МРК, ГНК) : 32 [16:06:25]line Товар: 2710124130 [16:06:25]line Аи-92-К-5 [16:06:25]line 15.070 * 66.40 [16:06:25]line = 1000.65 [16:06:25]line НДС 12% НСП 1% [16:06:25]line > о реализуемом товаре [16:06:25]line ОКРУГЛЕНИЕ: -0.65 [16:06:25]line ИТОГО: 1000.00 [16:06:25]line Внесено: 1000.00 [16:06:25]line СДАЧА: 0.00 [16:06:25]line НСП 1% : 8.85 [16:06:25]line НДС 12% : 106.26 [16:06:25]line Наличными: 1000.00 [16:06:25]line Безнал.: 0.00 [16:06:25]line Место: АЗС № 120 "Партнер Нефть" [16:06:25]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [16:06:25]line СНО: Общий режим [16:06:25]line Чек 152 19.06.2024 16:06 [16:06:25]line Смена: 353 ФФД: 1.0 [16:06:25]line ЗНМ: 0300000164 [16:06:25]line РНМ: 0000000000092785 [16:06:25]line Версия ККМ: 001 [16:06:25]line ФМ: 0000000000875093 [16:06:25]line ФД: 103722 [16:06:25]line ФПД: 65399509035199 [16:06:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T160636&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103722&fm=65399509035199&tin=02508201610067®Number=0000000000092785&sum=100000 [16:06:25]OFD Sender: Processing packet 103722 [packets to send 17, broken 16] [16:06:25]ProducePacketName [16:06:25]name=ofd_packets/00103722 [16:06:25]OFD Sender: To server: pG, [16:06:25]CommunicateWithHost lk.salyk.kg:30040 [16:06:25]ConnectInit lk.salyk.kg [16:06:25]written 0, free lines is 4095 [16:06:25]Connected sock=10 [16:06:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 30 C6 07 01 F6 2B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 00 00 00 F4 03 04 00 0C 02 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 2A 95 01 00 35 04 06 00 3B 7B 02 81 28 BF 84 7E 45 6C 22 28 50 13 [16:06: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 39 33 4F 00 00 00 AA A0 47 00 ED 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 39 33 10 04 04 00 2A 95 01 00 F4 03 04 00 95 A8 72 66 B6 04 01 00 00 F6 0D 9F C9 8F 82 DD 0B [16:06:25]CommunicateWithHost err = 0 [16:06:25]CheckOFDResponse [16:06:25]1017 (14) - 77093643461234 [16:06:25]1041 (16) - 0000000000875093 [16:06:25]1040 (4) - 103722 [16:06:25]1012 (4) - 19.06.2024 09:44 [16:06:25]1206 (1) - 0 [16:06:25]OFD Sender: Remove packet 103722 [16:06:25]ProducePacketName [16:06:25]name=ofd_packets/00103722 [16:06:25]NVStorageDeleteData [16:06:25]Write to MH i2c: 01 00 00 56 BB 11 [16:06:25]Write i2c OK [16:06:25]MH_I2C_Read... [16:06:25]Read from MH i2c: 01 [16:06:25]MH_I2C_Read... [16:06:25]Read from MH i2c: 01 07 00 [16:06:25]MH_I2C_Read... [16:06:25]Read from MH i2c: 01 07 00 56 BB 00 00 00 00 00 E4 0C 08 [16:06:25]RasterBufferAndPrint [16:06:25]line [16:06:25]line [16:06:25]line [16:06:25]line [16:06:25]line [16:06:25]written 0, free lines is 3306 [16:06:25]MH_Cut [16:06:25]Write to MH i2c: D1 01 00 5D BB 01 EA [16:06:25]Write i2c OK [16:06:25]MH_I2C_Read... [16:06:25]Read from MH i2c: D1 [16:06:25]MH_I2C_Read... [16:06:25]Read from MH i2c: D1 01 00 [16:06:25]MH_I2C_Read... [16:06:25]Read from MH i2c: D1 01 00 5D BB 00 E9 [16:06:25]Write to MH i2c: 01 00 00 5E BB 19 [16:06:25]Write i2c OK [16:06:25]MH_I2C_Read... [16:06:26]OFD Sender: No OFD packet to send [16:06:26]*** Cut start [16:06:26]*** Partial cut [16:06:26]*** CUTSNS_PIN = 1 [16:06:26]*** CUTSNS_PIN = 0 [16:06:26]*** Brake cut motor [16:06:27]Read from MH i2c: 01 [16:06:27]MH_I2C_Read... [16:06:27]*** Stop cut motor [16:06:27]*** Cut end [16:06:27]Read from MH i2c: 01 07 00 [16:06:27]MH_I2C_Read... [16:06:27]Read from MH i2c: 01 07 00 5E BB 00 00 00 00 00 FF 0F 2E [16:06:27]process_action close_receipt done [16:06:27]requested_data is exist [16:06:27]produce_requested_data [16:06:27]requested_item fm.sn is exist - process it [16:06:27]wFMCommunicate request_size=4 [16:06:27]MH_SAM_APDU [16:06:27]CAPDU: 80 11 00 00 [16:06:27]Write to MH i2c: E2 08 00 5F BB 80 11 00 00 00 00 00 00 94 [16:06:27]Write i2c OK [16:06:27]MH_I2C_Read... [16:06:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:06:27]Read from MH i2c: E2 [16:06:27]MH_I2C_Read... [16:06:27]Read from MH i2c: E2 17 00 [16:06:27]MH_I2C_Read... [16:06:27]Read from MH i2c: E2 17 00 5F BB 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 E7 [16:06:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [16:06:27]wFMCommunicate OK [16:06:27]requested_item fd.num is exist - process it [16:06:27]SAM_PROTO_GetFieldsCounters [16:06:27]wFMCommunicate request_size=4 [16:06:27]MH_SAM_APDU [16:06:27]CAPDU: 80 13 00 00 [16:06:27]Write to MH i2c: E2 08 00 60 BB 80 13 00 00 00 00 00 00 97 [16:06:27]Write i2c OK [16:06:27]MH_I2C_Read... [16:06:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:06:27]Read from MH i2c: E2 [16:06:27]MH_I2C_Read... [16:06:27]Read from MH i2c: E2 62 00 [16:06:27]MH_I2C_Read... [16:06:27]Read from MH i2c: E2 62 00 60 BB 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 2A 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 98 00 00 00 5E 04 04 00 98 00 00 00 57 04 04 00 99 00 00 00 19 04 04 00 00 00 00 00 90 00 A8 [16:06:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 2A 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 98 00 00 00 5E 04 04 00 98 00 00 00 57 04 04 00 99 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:06:27]wFMCommunicate OK [16:06:27]SAM_PROTO_GetFieldsCounters done [16:06:27]requested_item shift.num is exist - process it [16:06:27]requested_item shift.opened is exist - process it [16:06:27]req_shift_opened [16:06:27]FM_GetShiftState [16:06:27]SAM_PROTO_GetShiftState [16:06:27]wFMCommunicate request_size=4 [16:06:27]MH_SAM_APDU [16:06:27]CAPDU: 80 13 01 00 [16:06:27]Write to MH i2c: E2 08 00 61 BB 80 13 01 00 00 00 00 00 99 [16:06:27]Write i2c OK [16:06:27]MH_I2C_Read... [16:06:27]Read from MH i2c: E2 [16:06:27]MH_I2C_Read... [16:06:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:06:27]Read from MH i2c: E2 0E 00 [16:06:27]MH_I2C_Read... [16:06:27]Read from MH i2c: E2 0E 00 61 BB 00 09 00 01 04 26 72 66 00 00 00 00 90 00 A7 [16:06:27]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [16:06:27]wFMCommunicate OK [16:06:27]SAM_PROTO_GetShiftState done [16:06:27]FM_GetShiftState done [16:06:27]req_shift_opened done [16:06:27]requested_item shift.open_date is exist - process it [16:06:27]req_shift_open_date [16:06:27]req_shift_open_date done [16:06:27]produce_requested_data done [16:06:27]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103722,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [16:06:27]process_action_free close_receipt [16:06:27]json_value_free [16:06:27]json_value_free done [16:06:27]process_json_proto returns [16:06:27]Send response to host [16:06:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103722,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [16:06:27]free response buf [16:06:27]execute_script done [16:06:27]execute_script returns [16:06:27]free content buf [16:06:27]Sock 9.Close socket [16:06:27]Sock 9.Thread stoped [16:06:31]OFD Sender: No OFD packet to send [16:06:36]OFD Sender: No OFD packet to send [16:06:41]OFD Sender: No OFD packet to send [16:06:46]OFD Sender: No OFD packet to send [16:06:51]OFD Sender: No OFD packet to send [16:06:56]OFD Sender: No OFD packet to send [16:07:01]OFD Sender: No OFD packet to send [16:07:06]OFD Sender: No OFD packet to send [16:07:11]OFD Sender: No OFD packet to send [16:07:16]OFD Sender: No OFD packet to send [16:07:21]OFD Sender: No OFD packet to send [16:07:26]OFD Sender: No OFD packet to send [16:07:31]OFD Sender: No OFD packet to send [16:07:36]OFD Sender: No OFD packet to send [16:07:41]OFD Sender: No OFD packet to send [16:07:46]OFD Sender: No OFD packet to send [16:07:51]OFD Sender: No OFD packet to send [16:07:56]OFD Sender: No OFD packet to send [16:08:01]OFD Sender: No OFD packet to send [16:08:06]OFD Sender: No OFD packet to send [16:08:11]OFD Sender: No OFD packet to send [16:08:16]OFD Sender: No OFD packet to send [16:08:21]OFD Sender: No OFD packet to send [16:08:26]OFD Sender: No OFD packet to send [16:08:31]OFD Sender: No OFD packet to send [16:08:36]OFD Sender: No OFD packet to send [16:08:41]OFD Sender: No OFD packet to send [16:08:46]OFD Sender: No OFD packet to send [16:08:51]OFD Sender: No OFD packet to send [16:08:56]OFD Sender: No OFD packet to send [16:09:01]OFD Sender: No OFD packet to send [16:09:06]OFD Sender: No OFD packet to send [16:09:08]accept exits with 7 [16:09:08]New connection [16:09:08]New thread 3067227492 created [16:09:08]Thread 3067084132 joined [16:09:08]Waiting for new connection... [16:09:08] Sock 7.Parse request [16:09:08]Sock 7.Check first char [16:09:08]Sock 7.First char is OK [16:09:08]request: POST /json_proto HTTP/1.0 [16:09:08]Method: POST [16:09:08]URL: /json_proto [16:09:08]Method is POST - this is cgi request [16:09:08]url: /json_proto [16:09:08]query_string will be loaded in cgi processing [16:09:08]execute_cgi json_proto POST (null) [16:09:08]execute_cgi path=json_proto method=POST [16:09:08]POST find Content-Length [16:09:08]Host: 172.17.38.133:8080 [16:09:08]Content-Length: 819 [16:09:08]Content-Type: application/json [16:09:08] [16:09:08]POST finish read [16:09:08]Found Content-Length = 819 [16:09:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673000", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 30.130, "sum" : 2000.63, "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" : 2000.63 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:09:08]execute_script... [16:09: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)673000", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 30.130, "sum" : 2000.63, "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" : 2000.63 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:09:08]POST & json_proto [16:09:08]process_json_proto [16:09:08]json parsed OK: [16:09:08]protocol is kg_v1.0 [16:09:08]action value=close_receipt [16:09:08]process_action close_receipt [16:09:08]cmd_close_receipt [16:09:08]MH_GetDate [16:09:08]Write to MH i2c: F0 00 00 62 BB 0C [16:09:08]Write i2c OK [16:09:08]MH_I2C_Read... [16:09:08]Read from MH i2c: F0 [16:09:08]MH_I2C_Read... [16:09:08]Read from MH i2c: F0 09 00 [16:09:08]MH_I2C_Read... [16:09:08]Read from MH i2c: F0 09 00 62 BB 00 B2 02 73 66 BD 8F 7C 64 CE [16:09:08]GetLastDocTimeStamp 1718813196 [16:09:08]current date 1718813362 [16:09:08]FM_GetShiftState [16:09:08]SAM_PROTO_GetShiftState [16:09:08]wFMCommunicate request_size=4 [16:09:08]MH_SAM_APDU [16:09:08]CAPDU: 80 13 01 00 [16:09:08]Write to MH i2c: E2 08 00 63 BB 80 13 01 00 00 00 00 00 9B [16:09:08]Write i2c OK [16:09:08]MH_I2C_Read... [16:09:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:09:08]Read from MH i2c: E2 [16:09:08]MH_I2C_Read... [16:09:08]Read from MH i2c: E2 0E 00 [16:09:08]MH_I2C_Read... [16:09:08]Read from MH i2c: E2 0E 00 63 BB 00 09 00 01 04 26 72 66 00 00 00 00 90 00 A9 [16:09:08]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [16:09:08]wFMCommunicate OK [16:09:08]SAM_PROTO_GetShiftState done [16:09:08]FM_GetShiftState done [16:09:08]opened in 1718756868 [16:09:08]opened+sec_in_day 1718843268 [16:09:08]quantity*price = 200063 [16:09:08]sum+1 = 200064 [16:09:08]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.63 НСП 1% : 17.70 НДС 12% : 212.46 Наличными: 0.00 Безнал.: 2000.63 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 153 19.06.2024 16:09 Смена: 353 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000875093 ФД: 103723 ФПД: 18707761936370 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T160922&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103723&fm=18707761936370&tin=02508201610067®Number=0000000000092785&sum=200063 [16:09:10]StoreToDocumentArchive [16:09:10]shift 353 fd 103723 [16:09:10]save to /storage/0353/doc_00103723 [16:09:10]save last doc name /storage/0353/doc_00103723 to /storage/kkm_last_doc_name [16:09:10]save OK [16:09:10]Clear old archive folders... [16:09:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:09:10]tlvbuf is 01454570 [16:09:10]SAM_PROTO_ClearQueue [16:09:10]wFMCommunicate request_size=4 [16:09:10]MH_SAM_APDU [16:09:10]CAPDU: 80 09 00 00 [16:09:10]Write to MH i2c: E2 08 00 70 BB 80 09 00 00 00 00 00 00 9D [16:09:10]Write i2c OK [16:09:10]MH_I2C_Read... [16:09:10]Read from MH i2c: E2 [16:09:10]MH_I2C_Read... [16:09:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:09:10]Read from MH i2c: E2 03 00 [16:09:10]MH_I2C_Read... [16:09:10]Read from MH i2c: E2 03 00 70 BB 00 90 00 9F [16:09:10]RAPDU: 90 00 [16:09:10]wFMCommunicate OK [16:09:10]SAM_PROTO_ClearQueue done [16:09:10]KKMCreateOFDPacket [16:09:10]OFDProtocolAddRootSTLVToBuf [16:09:10]FM_MakeSignedData [16:09:10]FM_MakeSignedData [16:09:10]SAM_PROTO_SignData [16:09:10]wFMCommunicate request_size=4 [16:09:10]MH_SAM_APDU [16:09:10]CAPDU: 80 0D 01 02 [16:09:10]Write to MH i2c: E2 08 00 71 BB 80 0D 01 02 00 00 00 00 A5 [16:09:10]Write i2c OK [16:09:10]MH_I2C_Read... [16:09:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:09:10]Read from MH i2c: E2 [16:09:10]MH_I2C_Read... [16:09:10]Read from MH i2c: E2 03 00 [16:09:10]MH_I2C_Read... [16:09:10]Read from MH i2c: E2 03 00 71 BB 00 90 00 A0 [16:09:10]RAPDU: 90 00 [16:09:10]wFMCommunicate OK [16:09:10]wFMCommunicate request_size=255 [16:09:10]MH_SAM_APDU [16:09:10]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B2 75 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7F 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FE 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7F 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 00 00 00 F4 03 04 00 B2 02 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 2B 95 01 00 35 04 06 00 11 [16:09:10]Write to MH i2c: E2 02 01 72 BB 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B2 75 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7F 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FE 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7F 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 00 00 00 F4 03 04 00 B2 02 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 2B 95 01 00 35 04 06 00 11 00 00 2C [16:09:10]Write i2c OK [16:09:10]MH_I2C_Read... [16:09:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:09:10]Read from MH i2c: E2 [16:09:10]MH_I2C_Read... [16:09:10]Read from MH i2c: E2 03 00 [16:09:10]MH_I2C_Read... [16:09:10]Read from MH i2c: E2 03 00 72 BB 00 90 00 A1 [16:09:10]RAPDU: 90 00 [16:09:10]wFMCommunicate OK [16:09:10]wFMCommunicate request_size=10 [16:09:10]MH_SAM_APDU [16:09:10]CAPDU: 80 0D 02 02 05 03 BD 81 37 F2 [16:09:10]Write to MH i2c: E2 0D 00 73 BB 80 0D 02 02 05 00 03 BD 81 37 F2 00 00 1C [16:09:10]Write i2c OK [16:09:10]MH_I2C_Read... [16:09:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:09:10]Read from MH i2c: E2 [16:09:10]MH_I2C_Read... [16:09:10]Read from MH i2c: E2 03 00 [16:09:10]MH_I2C_Read... [16:09:10]Read from MH i2c: E2 03 00 73 BB 00 90 00 A2 [16:09:10]RAPDU: 90 00 [16:09:10]wFMCommunicate OK [16:09:10]wFMCommunicate request_size=4 [16:09:10]MH_SAM_APDU [16:09:10]CAPDU: 80 0D 03 02 [16:09:10]Write to MH i2c: E2 08 00 74 BB 80 0D 03 02 00 00 00 00 AA [16:09:10]Write i2c OK [16:09:10]MH_I2C_Read... [16:09:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:09:10]Read from MH i2c: E2 [16:09:10]MH_I2C_Read... [16:09:10]Read from MH i2c: E2 0B 00 [16:09:10]MH_I2C_Read... [16:09:10]Read from MH i2c: E2 0B 00 74 BB 00 81 1C F3 2F 35 C8 F9 8E 90 00 EE [16:09:10]RAPDU: 81 1C F3 2F 35 C8 F9 8E 90 00 [16:09:10]wFMCommunicate OK [16:09:10]SAM_PROTO_SignData done [16:09:10]FM_MakeSignedData done [16:09:10]CreateOFDProtocolMessage [16:09:10]wFMCommunicate request_size=4 [16:09:10]MH_SAM_APDU [16:09:10]CAPDU: 80 11 00 00 [16:09:10]Write to MH i2c: E2 08 00 75 BB 80 11 00 00 00 00 00 00 AA [16:09:10]Write i2c OK [16:09:10]MH_I2C_Read... [16:09:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:09:10]Read from MH i2c: E2 [16:09:10]MH_I2C_Read... [16:09:10]Read from MH i2c: E2 17 00 [16:09:10]MH_I2C_Read... [16:09:10]Read from MH i2c: E2 17 00 75 BB 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 FD [16:09:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [16:09:10]wFMCommunicate OK [16:09:10]CreateOFDProtocolMessage done [16:09:10]OFDSenderStorePacket 103723 [16:09:10]StoreOFDPacket docnum=103723 [16:09:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 CF 1B 07 01 5F BE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B2 75 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7F 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FE 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7F 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 00 00 00 F4 03 04 00 B2 02 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 2B 95 01 00 35 04 06 00 11 03 BD 81 37 F2 81 1C F3 2F 35 C8 F9 8E [16:09:10]CheckFolder [16:09:10]dirname=/storage/ofd_packets [16:09:10]CheckFolder done [16:09:10]ProducePacketName [16:09:10]name=ofd_packets/00103723 [16:09:10]NVStorageSaveData ofd_packets/00103723 [16:09:10]File name is /storage/ofd_packets/00103723 [16:09:10]Write 301 bytes [16:09:10]NVStorageSaveData done [16:09:10]OFDSenderStorePacket done [16:09:10]KKMCreateOFDPacket done [16:09:10]NVStorageSaveData kkm_last_timestamp [16:09:10]File name is /storage/kkm_last_timestamp [16:09:10]Write 4 bytes [16:09:10]NVStorageSaveData done [16:09:10]ExternCall_PrintAddStr [16:09:10]wPrintStart [16:09:10]Write to MH i2c: 01 00 00 76 BB 31 [16:09:10]Write i2c OK [16:09:10]MH_I2C_Read... [16:09:10]Read from MH i2c: 01 [16:09:10]MH_I2C_Read... [16:09:10]Read from MH i2c: 01 07 00 [16:09:10]MH_I2C_Read... [16:09:10]Read from MH i2c: 01 07 00 76 BB 00 00 00 00 00 FF 0F 46 [16:09:10]RasterBufferAndPrint [16:09:10]line Счет N : (1)673000 [16:09:10]line ИНН: 02508201610067 [16:09:10]line Контрольно-Кассовый Чек [16:09:10]line ПРОДАЖА [16:09:10]line ТРК (МРК, ГНК) : 42 [16:09:10]line Товар: 2710124130 [16:09:10]line Аи-92-К-5 [16:09:10]line 30.130 * 66.40 [16:09:10]line = 2000.63 [16:09:10]line НДС 12% НСП 1% [16:09:10]line > о реализуемом товаре [16:09:10]line ИТОГО: 2000.63 [16:09:10]line НСП 1% : 17.70 [16:09:10]line НДС 12% : 212.46 [16:09:10]line Наличными: 0.00 [16:09:10]line Безнал.: 2000.63 [16:09:10]line Место: АЗС № 120 "Партнер Нефть" [16:09:10]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [16:09:10]line СНО: Общий режим [16:09:10]line Чек 153 19.06.2024 16:09 [16:09:10]line Смена: 353 ФФД: 1.0 [16:09:10]line ЗНМ: 0300000164 [16:09:10]line РНМ: 0000000000092785 [16:09:10]line Версия ККМ: 001 [16:09:10]line Платежная система: Бакай Банк [16:09:10]line ФМ: 0000000000875093 [16:09:10]line ФД: 103723 [16:09:10]line ФПД: 18707761936370 [16:09:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T160922&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103723&fm=18707761936370&tin=02508201610067®Number=0000000000092785&sum=200063 [16:09:10]written 0, free lines is 4095 [16:09:10]OFD Sender: Processing packet 103723 [packets to send 17, broken 16] [16:09:10]ProducePacketName [16:09:10]name=ofd_packets/00103723 [16:09:10]OFD Sender: To server: pG, [16:09:10]CommunicateWithHost lk.salyk.kg:30040 [16:09:10]ConnectInit lk.salyk.kg [16:09:11]Connected sock=10 [16:09: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 39 33 0F 01 00 00 CF 1B 07 01 5F BE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B2 75 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7F 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FE 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7F 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 00 00 00 F4 03 04 00 B2 02 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 2B 95 01 00 35 04 06 00 11 03 BD 81 37 F2 81 1C F3 2F 35 C8 F9 8E [16:09: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 39 33 4F 00 00 00 25 32 47 00 14 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 39 33 10 04 04 00 2B 95 01 00 F4 03 04 00 3A A9 72 66 B6 04 01 00 00 CD 83 54 D1 45 E3 16 C7 [16:09:11]CommunicateWithHost err = 0 [16:09:11]CheckOFDResponse [16:09:11]1017 (14) - 77093643461234 [16:09:11]1041 (16) - 0000000000875093 [16:09:11]1040 (4) - 103723 [16:09:11]1012 (4) - 19.06.2024 09:47 [16:09:11]1206 (1) - 0 [16:09:11]OFD Sender: Remove packet 103723 [16:09:11]ProducePacketName [16:09:11]name=ofd_packets/00103723 [16:09:11]NVStorageDeleteData [16:09:11]Write to MH i2c: 01 00 00 A0 BB 5B [16:09:11]Write i2c OK [16:09:11]MH_I2C_Read... [16:09:11]Read from MH i2c: 01 [16:09:11]MH_I2C_Read... [16:09:11]Read from MH i2c: 01 07 00 [16:09:11]MH_I2C_Read... [16:09:11]Read from MH i2c: 01 07 00 A0 BB 00 00 00 00 00 F8 0C 66 [16:09:11]RasterBufferAndPrint [16:09:11]line [16:09:11]line [16:09:11]line [16:09:11]line [16:09:11]line [16:09:11]written 0, free lines is 3328 [16:09:11]MH_Cut [16:09:11]Write to MH i2c: D1 01 00 A7 BB 01 34 [16:09:11]Write i2c OK [16:09:11]MH_I2C_Read... [16:09:11]Read from MH i2c: D1 [16:09:11]MH_I2C_Read... [16:09:11]Read from MH i2c: D1 01 00 [16:09:11]MH_I2C_Read... [16:09:11]Read from MH i2c: D1 01 00 A7 BB 00 33 [16:09:11]Write to MH i2c: 01 00 00 A8 BB 63 [16:09:11]Write i2c OK [16:09:11]MH_I2C_Read... [16:09:11]OFD Sender: No OFD packet to send [16:09:12]*** Cut start [16:09:12]*** Partial cut [16:09:12]*** CUTSNS_PIN = 1 [16:09:12]*** CUTSNS_PIN = 0 [16:09:12]*** Brake cut motor [16:09:12]Read from MH i2c: 01 [16:09:12]MH_I2C_Read... [16:09:12]*** Stop cut motor [16:09:12]*** Cut end [16:09:12]Read from MH i2c: 01 07 00 [16:09:12]MH_I2C_Read... [16:09:12]Read from MH i2c: 01 07 00 A8 BB 00 00 00 00 00 FF 0F 78 [16:09:12]process_action close_receipt done [16:09:12]requested_data is exist [16:09:12]produce_requested_data [16:09:12]requested_item fm.sn is exist - process it [16:09:12]wFMCommunicate request_size=4 [16:09:12]MH_SAM_APDU [16:09:12]CAPDU: 80 11 00 00 [16:09:12]Write to MH i2c: E2 08 00 A9 BB 80 11 00 00 00 00 00 00 DE [16:09:12]Write i2c OK [16:09:12]MH_I2C_Read... [16:09:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:09:12]Read from MH i2c: E2 [16:09:12]MH_I2C_Read... [16:09:12]Read from MH i2c: E2 17 00 [16:09:12]MH_I2C_Read... [16:09:12]Read from MH i2c: E2 17 00 A9 BB 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 31 [16:09:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [16:09:12]wFMCommunicate OK [16:09:12]requested_item fd.num is exist - process it [16:09:12]SAM_PROTO_GetFieldsCounters [16:09:12]wFMCommunicate request_size=4 [16:09:12]MH_SAM_APDU [16:09:12]CAPDU: 80 13 00 00 [16:09:12]Write to MH i2c: E2 08 00 AA BB 80 13 00 00 00 00 00 00 E1 [16:09:12]Write i2c OK [16:09:12]MH_I2C_Read... [16:09:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:09:12]Read from MH i2c: E2 [16:09:12]MH_I2C_Read... [16:09:12]Read from MH i2c: E2 62 00 [16:09:12]MH_I2C_Read... [16:09:12]Read from MH i2c: E2 62 00 AA BB 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 2B 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 99 00 00 00 5E 04 04 00 99 00 00 00 57 04 04 00 9A 00 00 00 19 04 04 00 00 00 00 00 90 00 F6 [16:09: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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 2B 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 99 00 00 00 5E 04 04 00 99 00 00 00 57 04 04 00 9A 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:09:12]wFMCommunicate OK [16:09:12]SAM_PROTO_GetFieldsCounters done [16:09:12]requested_item shift.num is exist - process it [16:09:12]requested_item shift.opened is exist - process it [16:09:12]req_shift_opened [16:09:12]FM_GetShiftState [16:09:12]SAM_PROTO_GetShiftState [16:09:12]wFMCommunicate request_size=4 [16:09:12]MH_SAM_APDU [16:09:12]CAPDU: 80 13 01 00 [16:09:12]Write to MH i2c: E2 08 00 AB BB 80 13 01 00 00 00 00 00 E3 [16:09:12]Write i2c OK [16:09:12]MH_I2C_Read... [16:09:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:09:12]Read from MH i2c: E2 [16:09:12]MH_I2C_Read... [16:09:12]Read from MH i2c: E2 0E 00 [16:09:12]MH_I2C_Read... [16:09:12]Read from MH i2c: E2 0E 00 AB BB 00 09 00 01 04 26 72 66 00 00 00 00 90 00 F1 [16:09:12]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [16:09:12]wFMCommunicate OK [16:09:12]SAM_PROTO_GetShiftState done [16:09:12]FM_GetShiftState done [16:09:12]req_shift_opened done [16:09:12]requested_item shift.open_date is exist - process it [16:09:12]req_shift_open_date [16:09:12]req_shift_open_date done [16:09:12]produce_requested_data done [16:09:12]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103723,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [16:09:12]process_action_free close_receipt [16:09:12]json_value_free [16:09:12]json_value_free done [16:09:12]process_json_proto returns [16:09:12]Send response to host [16:09:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103723,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [16:09:12]free response buf [16:09:12]execute_script done [16:09:12]execute_script returns [16:09:12]free content buf [16:09:12]Sock 7.Close socket [16:09:12]Sock 7.Thread stoped [16:09:16]OFD Sender: No OFD packet to send [16:09:21]OFD Sender: No OFD packet to send [16:09:26]OFD Sender: No OFD packet to send [16:09:31]OFD Sender: No OFD packet to send [16:09:36]OFD Sender: No OFD packet to send [16:09:41]OFD Sender: No OFD packet to send [16:09:46]OFD Sender: No OFD packet to send [16:09:49]accept exits with 9 [16:09:49]New connection [16:09:49]New thread 3067084132 created [16:09:49]Thread 3067227492 joined [16:09:49]Waiting for new connection... [16:09:49] Sock 9.Parse request [16:09:49]Sock 9.Check first char [16:09:49]Sock 9.First char is OK [16:09:49]request: POST /json_proto HTTP/1.0 [16:09:49]Method: POST [16:09:49]URL: /json_proto [16:09:49]Method is POST - this is cgi request [16:09:49]url: /json_proto [16:09:49]query_string will be loaded in cgi processing [16:09:49]execute_cgi json_proto POST (null) [16:09:49]execute_cgi path=json_proto method=POST [16:09:49]POST find Content-Length [16:09:49]Host: 172.17.38.133:8080 [16:09:49]Content-Length: 1169 [16:09:49]Content-Type: application/json [16:09:49] [16:09:49]POST finish read [16:09:49]Found Content-Length = 1169 [16:09:49]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 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. \u000A\u0421\u0447\u0435\u0442 N : (1)673001\u000A19.06.2024 15:47\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 32\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 26.000 x 66.40\u000A\u0418\u0422\u041E\u0413: 1726.40\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30101531\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:09:49]execute_script... [16:09:49]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 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. \u000A\u0421\u0447\u0435\u0442 N : (1)673001\u000A19.06.2024 15:47\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 32\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 26.000 x 66.40\u000A\u0418\u0422\u041E\u0413: 1726.40\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30101531\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:09:49]POST & json_proto [16:09:49]process_json_proto [16:09:49]json parsed OK: [16:09:49]protocol is kg_v1.0 [16:09:49]action value=print_text [16:09:49]process_action print_text [16:09:49]cmd_print_text [16:09:49]ExternCall_PrintAddStr [16:09:49]wPrintStart [16:09:49]Write to MH i2c: 01 00 00 AC BB 67 [16:09:49]Write i2c OK [16:09:49]MH_I2C_Read... [16:09:49]Read from MH i2c: 01 [16:09:49]MH_I2C_Read... [16:09:49]Read from MH i2c: 01 07 00 [16:09:49]MH_I2C_Read... [16:09:49]Read from MH i2c: 01 07 00 AC BB 00 00 00 00 00 FF 0F 7C [16:09:49]RasterBufferAndPrint [16:09:49]line *****ТОВАРНЫЙ ЧЕК***** [16:09:49]line АЗС 120 [16:09:49]line Партнер нефть [16:09:49]line 02508201610067 [16:09:49]line Кассир : Байбугуева Г. [16:09:49]line Счет N : (1)673001 [16:09:49]line 19.06.2024 15:47 [16:09:49]line ПРОДАЖА [16:09:49]line ТРК (МРК, ГНК): 32 [16:09:49]line Вид ГСМ : 2710124130 [16:09:49]line Аи-92-К-5 [16:09:49]line 26.000 x 66.40 [16:09:49]line ИТОГ: 1726.40 [16:09:49]line Тип оплаты: Талоны: ТК ГПНА Online [16:09:49]line 30101531 [16:09:49]line ______________________ [16:09:49]line (подпись) [16:09:49]written 0, free lines is 4095 [16:09:49]Write to MH i2c: 01 00 00 C0 BB 7B [16:09:49]Write i2c OK [16:09:49]MH_I2C_Read... [16:09:49]Read from MH i2c: 01 [16:09:49]MH_I2C_Read... [16:09:49]Read from MH i2c: 01 07 00 [16:09:49]MH_I2C_Read... [16:09:49]Read from MH i2c: 01 07 00 C0 BB 00 00 00 00 00 12 0E A2 [16:09:49]RasterBufferAndPrint [16:09:49]line [16:09:49]line [16:09:49]line [16:09:49]line [16:09:49]line [16:09:49]written 0, free lines is 3603 [16:09:49]MH_Cut [16:09:49]Write to MH i2c: D1 01 00 C7 BB 01 54 [16:09:49]Write i2c OK [16:09:49]MH_I2C_Read... [16:09:49]Read from MH i2c: D1 [16:09:49]MH_I2C_Read... [16:09:49]Read from MH i2c: D1 01 00 [16:09:49]MH_I2C_Read... [16:09:49]Read from MH i2c: D1 01 00 C7 BB 00 53 [16:09:49]Write to MH i2c: 01 00 00 C8 BB 83 [16:09:49]Write i2c OK [16:09:49]MH_I2C_Read... [16:09:49]*** Cut start [16:09:49]*** Partial cut [16:09:49]*** CUTSNS_PIN = 1 [16:09:50]*** CUTSNS_PIN = 0 [16:09:50]*** Brake cut motor [16:09:50]Read from MH i2c: 01 [16:09:50]MH_I2C_Read... [16:09:50]*** Stop cut motor [16:09:50]*** Cut end [16:09:50]Read from MH i2c: 01 07 00 [16:09:50]MH_I2C_Read... [16:09:50]Read from MH i2c: 01 07 00 C8 BB 00 00 00 00 00 FF 0F 98 [16:09:50]process_action print_text done [16:09:50]requested_data is exist [16:09:50]produce_requested_data [16:09:50]requested_item fm.sn is exist - process it [16:09:50]wFMCommunicate request_size=4 [16:09:50]MH_SAM_APDU [16:09:50]CAPDU: 80 11 00 00 [16:09:50]Write to MH i2c: E2 08 00 C9 BB 80 11 00 00 00 00 00 00 FE [16:09:50]Write i2c OK [16:09:50]MH_I2C_Read... [16:09:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:09:50]Read from MH i2c: E2 [16:09:50]MH_I2C_Read... [16:09:50]Read from MH i2c: E2 17 00 [16:09:50]MH_I2C_Read... [16:09:50]Read from MH i2c: E2 17 00 C9 BB 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 51 [16:09:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [16:09:50]wFMCommunicate OK [16:09:50]requested_item fd.num is exist - process it [16:09:50]SAM_PROTO_GetFieldsCounters [16:09:50]wFMCommunicate request_size=4 [16:09:50]MH_SAM_APDU [16:09:50]CAPDU: 80 13 00 00 [16:09:50]Write to MH i2c: E2 08 00 CA BB 80 13 00 00 00 00 00 00 01 [16:09:50]Write i2c OK [16:09:50]MH_I2C_Read... [16:09:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:09:50]Read from MH i2c: E2 [16:09:50]MH_I2C_Read... [16:09:50]Read from MH i2c: E2 62 00 [16:09:50]MH_I2C_Read... [16:09:50]Read from MH i2c: E2 62 00 CA BB 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 2B 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 99 00 00 00 5E 04 04 00 99 00 00 00 57 04 04 00 9A 00 00 00 19 04 04 00 00 00 00 00 90 00 16 [16:09: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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 2B 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 99 00 00 00 5E 04 04 00 99 00 00 00 57 04 04 00 9A 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:09:50]wFMCommunicate OK [16:09:50]SAM_PROTO_GetFieldsCounters done [16:09:50]requested_item shift.num is exist - process it [16:09:50]requested_item shift.opened is exist - process it [16:09:50]req_shift_opened [16:09:50]FM_GetShiftState [16:09:50]SAM_PROTO_GetShiftState [16:09:50]wFMCommunicate request_size=4 [16:09:50]MH_SAM_APDU [16:09:50]CAPDU: 80 13 01 00 [16:09:50]Write to MH i2c: E2 08 00 CB BB 80 13 01 00 00 00 00 00 03 [16:09:50]Write i2c OK [16:09:50]MH_I2C_Read... [16:09:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:09:50]Read from MH i2c: E2 [16:09:50]MH_I2C_Read... [16:09:50]Read from MH i2c: E2 0E 00 [16:09:50]MH_I2C_Read... [16:09:50]Read from MH i2c: E2 0E 00 CB BB 00 09 00 01 04 26 72 66 00 00 00 00 90 00 11 [16:09:50]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [16:09:50]wFMCommunicate OK [16:09:50]SAM_PROTO_GetShiftState done [16:09:50]FM_GetShiftState done [16:09:50]req_shift_opened done [16:09:50]requested_item shift.open_date is exist - process it [16:09:50]req_shift_open_date [16:09:50]req_shift_open_date done [16:09:50]produce_requested_data done [16:09:50]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103723,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [16:09:50]process_action_free print_text [16:09:50]json_value_free [16:09:50]json_value_free done [16:09:50]process_json_proto returns [16:09:50]Send response to host [16:09:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103723,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [16:09:50]free response buf [16:09:50]execute_script done [16:09:50]execute_script returns [16:09:50]free content buf [16:09:50]Sock 9.Close socket [16:09:50]Sock 9.Thread stoped [16:09:51]OFD Sender: No OFD packet to send [16:09:56]OFD Sender: No OFD packet to send [16:10:01]OFD Sender: No OFD packet to send [16:10:06]OFD Sender: No OFD packet to send [16:10:11]OFD Sender: No OFD packet to send [16:10:16]OFD Sender: No OFD packet to send [16:10:21]OFD Sender: No OFD packet to send [16:10:26]OFD Sender: No OFD packet to send [16:10:31]OFD Sender: No OFD packet to send [16:10:36]OFD Sender: No OFD packet to send [16:10:41]OFD Sender: No OFD packet to send [16:10:46]OFD Sender: No OFD packet to send [16:10:51]OFD Sender: No OFD packet to send [16:10:56]OFD Sender: No OFD packet to send [16:11:01]OFD Sender: No OFD packet to send [16:11:06]OFD Sender: No OFD packet to send [16:11:11]OFD Sender: No OFD packet to send [16:11:16]OFD Sender: No OFD packet to send [16:11:21]OFD Sender: No OFD packet to send [16:11:26]OFD Sender: No OFD packet to send [16:11:32]OFD Sender: No OFD packet to send [16:11:37]OFD Sender: No OFD packet to send [16:11:42]OFD Sender: No OFD packet to send [16:11:47]OFD Sender: No OFD packet to send [16:11:52]OFD Sender: No OFD packet to send [16:11:57]OFD Sender: No OFD packet to send [16:12:02]OFD Sender: No OFD packet to send [16:12:07]OFD Sender: No OFD packet to send [16:12:12]OFD Sender: No OFD packet to send [16:12:17]OFD Sender: No OFD packet to send [16:12:22]OFD Sender: No OFD packet to send [16:12:27]OFD Sender: No OFD packet to send [16:12:32]OFD Sender: No OFD packet to send [16:12:37]OFD Sender: No OFD packet to send [16:12:42]OFD Sender: No OFD packet to send [16:12:47]OFD Sender: No OFD packet to send [16:12:52]OFD Sender: No OFD packet to send [16:12:57]OFD Sender: No OFD packet to send [16:13:02]OFD Sender: No OFD packet to send [16:13:07]OFD Sender: No OFD packet to send [16:13:12]OFD Sender: No OFD packet to send [16:13:17]OFD Sender: No OFD packet to send [16:13:17]accept exits with 7 [16:13:17]New connection [16:13:17]New thread 3067227492 created [16:13:17]Thread 3067084132 joined [16:13:17]Waiting for new connection... [16:13:17] Sock 7.Parse request [16:13:17]Sock 7.Check first char [16:13:17]Sock 7.First char is OK [16:13:17]request: POST /json_proto HTTP/1.0 [16:13:17]Method: POST [16:13:17]URL: /json_proto [16:13:17]Method is POST - this is cgi request [16:13:17]url: /json_proto [16:13:17]query_string will be loaded in cgi processing [16:13:17]execute_cgi json_proto POST (null) [16:13:17]execute_cgi path=json_proto method=POST [16:13:17]POST find Content-Length [16:13:17]Host: 172.17.38.133:8080 [16:13:17]Content-Length: 683 [16:13:17]Content-Type: application/json [16:13:17] [16:13:17]POST finish read [16:13:17]Found Content-Length = 683 [16:13:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673002", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 42.170, "sum" : 2800.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 15000.00, "total" : 2800.00, "payments": [ { "type": 0, "sum" : 2800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:13:17]execute_script... [16:13: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)673002", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 42.170, "sum" : 2800.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 15000.00, "total" : 2800.00, "payments": [ { "type": 0, "sum" : 2800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:13:17]POST & json_proto [16:13:17]process_json_proto [16:13:17]json parsed OK: [16:13:17]protocol is kg_v1.0 [16:13:17]action value=close_receipt [16:13:17]process_action close_receipt [16:13:17]cmd_close_receipt [16:13:17]MH_GetDate [16:13:17]Write to MH i2c: F0 00 00 CC BB 76 [16:13:17]Write i2c OK [16:13:17]MH_I2C_Read... [16:13:17]Read from MH i2c: F0 [16:13:17]MH_I2C_Read... [16:13:17]Read from MH i2c: F0 09 00 [16:13:17]MH_I2C_Read... [16:13:17]Read from MH i2c: F0 09 00 CC BB 00 AA 03 73 66 BD 8F 7C 64 31 [16:13:17]GetLastDocTimeStamp 1718813362 [16:13:17]current date 1718813610 [16:13:17]FM_GetShiftState [16:13:17]SAM_PROTO_GetShiftState [16:13:17]wFMCommunicate request_size=4 [16:13:17]MH_SAM_APDU [16:13:17]CAPDU: 80 13 01 00 [16:13:17]Write to MH i2c: E2 08 00 CD BB 80 13 01 00 00 00 00 00 05 [16:13:17]Write i2c OK [16:13:17]MH_I2C_Read... [16:13:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:13:17]Read from MH i2c: E2 [16:13:17]MH_I2C_Read... [16:13:17]Read from MH i2c: E2 0E 00 [16:13:17]MH_I2C_Read... [16:13:17]Read from MH i2c: E2 0E 00 CD BB 00 09 00 01 04 26 72 66 00 00 00 00 90 00 13 [16:13:17]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [16:13:17]wFMCommunicate OK [16:13:17]SAM_PROTO_GetShiftState done [16:13:17]FM_GetShiftState done [16:13:17]opened in 1718756868 [16:13:17]opened+sec_in_day 1718843268 [16:13:17]quantity*price = 280008 [16:13:17]sum+1 = 280010 [16:13:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 2800.00 Внесено: 15000.00 СДАЧА: 12200.00 НСП 1% : 24.78 НДС 12% : 297.35 Наличными: 2800.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 154 19.06.2024 16:13 Смена: 353 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103724 ФПД: 190386137033702 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T161330&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103724&fm=190386137033702&tin=02508201610067®Number=0000000000092785&sum=280000 [16:13:18]StoreToDocumentArchive [16:13:18]shift 353 fd 103724 [16:13:18]save to /storage/0353/doc_00103724 [16:13:18]save last doc name /storage/0353/doc_00103724 to /storage/kkm_last_doc_name [16:13:18]save OK [16:13:18]Clear old archive folders... [16:13:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:13:18]tlvbuf is 01636E60 [16:13:18]SAM_PROTO_ClearQueue [16:13:18]wFMCommunicate request_size=4 [16:13:18]MH_SAM_APDU [16:13:18]CAPDU: 80 09 00 00 [16:13:18]Write to MH i2c: E2 08 00 DA BB 80 09 00 00 00 00 00 00 07 [16:13:18]Write i2c OK [16:13:18]MH_I2C_Read... [16:13:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:13:18]Read from MH i2c: E2 [16:13:18]MH_I2C_Read... [16:13:18]Read from MH i2c: E2 03 00 [16:13:18]MH_I2C_Read... [16:13:18]Read from MH i2c: E2 03 00 DA BB 00 90 00 09 [16:13:18]RAPDU: 90 00 [16:13:18]wFMCommunicate OK [16:13:18]SAM_PROTO_ClearQueue done [16:13:18]KKMCreateOFDPacket [16:13:18]OFDProtocolAddRootSTLVToBuf [16:13:18]FM_MakeSignedData [16:13:18]FM_MakeSignedData [16:13:18]SAM_PROTO_SignData [16:13:18]wFMCommunicate request_size=4 [16:13:18]MH_SAM_APDU [16:13:18]CAPDU: 80 0D 01 02 [16:13:18]Write to MH i2c: E2 08 00 DB BB 80 0D 01 02 00 00 00 00 0F [16:13:18]Write i2c OK [16:13:18]MH_I2C_Read... [16:13:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:13:19]Read from MH i2c: E2 [16:13:19]MH_I2C_Read... [16:13:19]Read from MH i2c: E2 03 00 [16:13:19]MH_I2C_Read... [16:13:19]Read from MH i2c: E2 03 00 DB BB 00 90 00 0A [16:13:19]RAPDU: 90 00 [16:13:19]wFMCommunicate OK [16:13:19]wFMCommunicate request_size=255 [16:13:19]MH_SAM_APDU [16:13: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 BA A4 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 C9 45 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 45 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AE 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 27 74 00 00 00 00 07 04 06 00 C0 45 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 00 00 00 F4 03 04 00 AA 03 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 2C 95 01 00 35 04 06 00 AD [16:13:19]Write to MH i2c: E2 02 01 DC BB 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 A4 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 C9 45 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 45 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AE 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 27 74 00 00 00 00 07 04 06 00 C0 45 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 00 00 00 F4 03 04 00 AA 03 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 2C 95 01 00 35 04 06 00 AD 00 00 ED [16:13:19]Write i2c OK [16:13:19]MH_I2C_Read... [16:13:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:13:19]Read from MH i2c: E2 [16:13:19]MH_I2C_Read... [16:13:19]Read from MH i2c: E2 03 00 [16:13:19]MH_I2C_Read... [16:13:19]Read from MH i2c: E2 03 00 DC BB 00 90 00 0B [16:13:19]RAPDU: 90 00 [16:13:19]wFMCommunicate OK [16:13:19]wFMCommunicate request_size=10 [16:13:19]MH_SAM_APDU [16:13:19]CAPDU: 80 0D 02 02 05 27 BA 11 6B E6 [16:13:19]Write to MH i2c: E2 0D 00 DD BB 80 0D 02 02 05 00 27 BA 11 6B E6 00 00 5F [16:13:19]Write i2c OK [16:13:19]MH_I2C_Read... [16:13:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:13:19]Read from MH i2c: E2 [16:13:19]MH_I2C_Read... [16:13:19]Read from MH i2c: E2 03 00 [16:13:19]MH_I2C_Read... [16:13:19]Read from MH i2c: E2 03 00 DD BB 00 90 00 0C [16:13:19]RAPDU: 90 00 [16:13:19]wFMCommunicate OK [16:13:19]wFMCommunicate request_size=4 [16:13:19]MH_SAM_APDU [16:13:19]CAPDU: 80 0D 03 02 [16:13:19]Write to MH i2c: E2 08 00 DE BB 80 0D 03 02 00 00 00 00 14 [16:13:19]Write i2c OK [16:13:19]MH_I2C_Read... [16:13:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:13:19]Read from MH i2c: E2 [16:13:19]MH_I2C_Read... [16:13:19]Read from MH i2c: E2 0B 00 [16:13:19]MH_I2C_Read... [16:13:19]Read from MH i2c: E2 0B 00 DE BB 00 CB AE BB CF 51 28 82 39 90 00 4C [16:13:19]RAPDU: CB AE BB CF 51 28 82 39 90 00 [16:13:19]wFMCommunicate OK [16:13:19]SAM_PROTO_SignData done [16:13:19]FM_MakeSignedData done [16:13:19]CreateOFDProtocolMessage [16:13:19]wFMCommunicate request_size=4 [16:13:19]MH_SAM_APDU [16:13:19]CAPDU: 80 11 00 00 [16:13:19]Write to MH i2c: E2 08 00 DF BB 80 11 00 00 00 00 00 00 14 [16:13:19]Write i2c OK [16:13:19]MH_I2C_Read... [16:13:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:13:19]Read from MH i2c: E2 [16:13:19]MH_I2C_Read... [16:13:19]Read from MH i2c: E2 17 00 [16:13:19]MH_I2C_Read... [16:13:19]Read from MH i2c: E2 17 00 DF BB 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 67 [16:13:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [16:13:19]wFMCommunicate OK [16:13:19]CreateOFDProtocolMessage done [16:13:19]OFDSenderStorePacket 103724 [16:13:19]StoreOFDPacket docnum=103724 [16:13:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 EA 75 07 01 2D 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 BA A4 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 C9 45 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 45 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AE 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 27 74 00 00 00 00 07 04 06 00 C0 45 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 00 00 00 F4 03 04 00 AA 03 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 2C 95 01 00 35 04 06 00 AD 27 BA 11 6B E6 CB AE BB CF 51 28 82 39 [16:13:19]CheckFolder [16:13:19]dirname=/storage/ofd_packets [16:13:19]CheckFolder done [16:13:19]ProducePacketName [16:13:19]name=ofd_packets/00103724 [16:13:19]NVStorageSaveData ofd_packets/00103724 [16:13:19]File name is /storage/ofd_packets/00103724 [16:13:19]Write 301 bytes [16:13:19]NVStorageSaveData done [16:13:19]OFDSenderStorePacket done [16:13:19]KKMCreateOFDPacket done [16:13:19]NVStorageSaveData kkm_last_timestamp [16:13:19]File name is /storage/kkm_last_timestamp [16:13:19]Write 4 bytes [16:13:19]NVStorageSaveData done [16:13:19]ExternCall_PrintAddStr [16:13:19]wPrintStart [16:13:19]Write to MH i2c: 01 00 00 E0 BB 9B [16:13:19]Write i2c OK [16:13:19]MH_I2C_Read... [16:13:19]Read from MH i2c: 01 [16:13:19]MH_I2C_Read... [16:13:19]Read from MH i2c: 01 07 00 [16:13:19]MH_I2C_Read... [16:13:19]Read from MH i2c: 01 07 00 E0 BB 00 00 00 00 00 FF 0F B0 [16:13:19]RasterBufferAndPrint [16:13:19]line Счет N : (1)673002 [16:13:19]line ИНН: 02508201610067 [16:13:19]line Контрольно-Кассовый Чек [16:13:19]line ПРОДАЖА [16:13:19]line ТРК (МРК, ГНК) : 42 [16:13:19]line Товар: 2710124130 [16:13:19]line Аи-92-К-5 [16:13:19]line 42.170 * 66.40 [16:13:19]line = 2800.09 [16:13:19]line НДС 12% НСП 1% [16:13:19]line > о реализуемом товаре [16:13:19]line ОКРУГЛЕНИЕ: -0.09 [16:13:19]line ИТОГО: 2800.00 [16:13:19]line Внесено: 15000.00 [16:13:19]line СДАЧА: 12200.00 [16:13:19]line НСП 1% : 24.78 [16:13:19]line НДС 12% : 297.35 [16:13:19]line Наличными: 2800.00 [16:13:19]line Безнал.: 0.00 [16:13:19]line Место: АЗС № 120 "Партнер Нефть" [16:13:19]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [16:13:19]line СНО: Общий режим [16:13:19]line Чек 154 19.06.2024 16:13 [16:13:19]line Смена: 353 ФФД: 1.0 [16:13:19]line ЗНМ: 0300000164 [16:13:19]line РНМ: 0000000000092785 [16:13:19]line Версия ККМ: 001 [16:13:19]line ФМ: 0000000000875093 [16:13:19]line ФД: 103724 [16:13:19]line ФПД: 190386137033702 [16:13:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T161330&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103724&fm=190386137033702&tin=02508201610067®Number=0000000000092785&sum=280000 [16:13:19]OFD Sender: Processing packet 103724 [packets to send 17, broken 16] [16:13:19]ProducePacketName [16:13:19]name=ofd_packets/00103724 [16:13:19]OFD Sender: To server: pG, [16:13:19]CommunicateWithHost lk.salyk.kg:30040 [16:13:19]ConnectInit lk.salyk.kg [16:13:19]written 0, free lines is 4095 [16:13:19]Connected sock=10 [16:13:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 EA 75 07 01 2D 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 BA A4 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 C9 45 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 45 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AE 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 27 74 00 00 00 00 07 04 06 00 C0 45 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 00 00 00 F4 03 04 00 AA 03 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 2C 95 01 00 35 04 06 00 AD 27 BA 11 6B E6 CB AE BB CF 51 28 82 39 [16:13: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 39 33 4F 00 00 00 5C A0 47 00 A3 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 39 33 10 04 04 00 2C 95 01 00 F4 03 04 00 33 AA 72 66 B6 04 01 00 00 38 B4 BD 78 98 1D 86 E5 [16:13:20]CommunicateWithHost err = 0 [16:13:20]CheckOFDResponse [16:13:20]1017 (14) - 77093643461234 [16:13:20]1041 (16) - 0000000000875093 [16:13:20]1040 (4) - 103724 [16:13:20]1012 (4) - 19.06.2024 09:51 [16:13:20]1206 (1) - 0 [16:13:20]OFD Sender: Remove packet 103724 [16:13:20]ProducePacketName [16:13:20]name=ofd_packets/00103724 [16:13:20]NVStorageDeleteData [16:13:20]Write to MH i2c: 01 00 00 0B BC C7 [16:13:20]Write i2c OK [16:13:20]MH_I2C_Read... [16:13:20]Read from MH i2c: 01 [16:13:20]MH_I2C_Read... [16:13:20]Read from MH i2c: 01 07 00 [16:13:20]MH_I2C_Read... [16:13:20]Read from MH i2c: 01 07 00 0B BC 00 00 00 00 00 00 0D DB [16:13:20]RasterBufferAndPrint [16:13:20]line [16:13:20]line [16:13:20]line [16:13:20]line [16:13:20]line [16:13:20]written 0, free lines is 3337 [16:13:20]MH_Cut [16:13:20]Write to MH i2c: D1 01 00 12 BC 01 A0 [16:13:20]Write i2c OK [16:13:20]MH_I2C_Read... [16:13:20]Read from MH i2c: D1 [16:13:20]MH_I2C_Read... [16:13:20]Read from MH i2c: D1 01 00 [16:13:20]MH_I2C_Read... [16:13:20]Read from MH i2c: D1 01 00 12 BC 00 9F [16:13:20]Write to MH i2c: 01 00 00 13 BC CF [16:13:20]Write i2c OK [16:13:20]MH_I2C_Read... [16:13:20]OFD Sender: No OFD packet to send [16:13:21]*** Cut start [16:13:21]*** Partial cut [16:13:21]*** CUTSNS_PIN = 1 [16:13:21]*** CUTSNS_PIN = 0 [16:13:21]*** Brake cut motor [16:13:21]Read from MH i2c: 01 [16:13:21]MH_I2C_Read... [16:13:21]*** Stop cut motor [16:13:21]*** Cut end [16:13:21]Read from MH i2c: 01 07 00 [16:13:21]MH_I2C_Read... [16:13:21]Read from MH i2c: 01 07 00 13 BC 00 00 00 00 00 FF 0F E4 [16:13:21]process_action close_receipt done [16:13:21]requested_data is exist [16:13:21]produce_requested_data [16:13:21]requested_item fm.sn is exist - process it [16:13:21]wFMCommunicate request_size=4 [16:13:21]MH_SAM_APDU [16:13:21]CAPDU: 80 11 00 00 [16:13:21]Write to MH i2c: E2 08 00 14 BC 80 11 00 00 00 00 00 00 4A [16:13:21]Write i2c OK [16:13:21]MH_I2C_Read... [16:13:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:13:21]Read from MH i2c: E2 [16:13:21]MH_I2C_Read... [16:13:21]Read from MH i2c: E2 17 00 [16:13:21]MH_I2C_Read... [16:13:21]Read from MH i2c: E2 17 00 14 BC 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 9D [16:13:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [16:13:21]wFMCommunicate OK [16:13:21]requested_item fd.num is exist - process it [16:13:21]SAM_PROTO_GetFieldsCounters [16:13:21]wFMCommunicate request_size=4 [16:13:21]MH_SAM_APDU [16:13:21]CAPDU: 80 13 00 00 [16:13:21]Write to MH i2c: E2 08 00 15 BC 80 13 00 00 00 00 00 00 4D [16:13:21]Write i2c OK [16:13:21]MH_I2C_Read... [16:13:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:13:21]Read from MH i2c: E2 [16:13:21]MH_I2C_Read... [16:13:21]Read from MH i2c: E2 62 00 [16:13:21]MH_I2C_Read... [16:13:21]Read from MH i2c: E2 62 00 15 BC 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 2C 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 9A 00 00 00 5E 04 04 00 9A 00 00 00 57 04 04 00 9B 00 00 00 19 04 04 00 00 00 00 00 90 00 66 [16:13: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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 2C 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 9A 00 00 00 5E 04 04 00 9A 00 00 00 57 04 04 00 9B 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:13:21]wFMCommunicate OK [16:13:21]SAM_PROTO_GetFieldsCounters done [16:13:21]requested_item shift.num is exist - process it [16:13:21]requested_item shift.opened is exist - process it [16:13:21]req_shift_opened [16:13:21]FM_GetShiftState [16:13:21]SAM_PROTO_GetShiftState [16:13:21]wFMCommunicate request_size=4 [16:13:21]MH_SAM_APDU [16:13:21]CAPDU: 80 13 01 00 [16:13:21]Write to MH i2c: E2 08 00 16 BC 80 13 01 00 00 00 00 00 4F [16:13:21]Write i2c OK [16:13:21]MH_I2C_Read... [16:13:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:13:21]Read from MH i2c: E2 [16:13:21]MH_I2C_Read... [16:13:21]Read from MH i2c: E2 0E 00 [16:13:21]MH_I2C_Read... [16:13:21]Read from MH i2c: E2 0E 00 16 BC 00 09 00 01 04 26 72 66 00 00 00 00 90 00 5D [16:13:21]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [16:13:21]wFMCommunicate OK [16:13:21]SAM_PROTO_GetShiftState done [16:13:21]FM_GetShiftState done [16:13:21]req_shift_opened done [16:13:21]requested_item shift.open_date is exist - process it [16:13:21]req_shift_open_date [16:13:21]req_shift_open_date done [16:13:21]produce_requested_data done [16:13:21]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103724,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [16:13:21]process_action_free close_receipt [16:13:21]json_value_free [16:13:21]json_value_free done [16:13:21]process_json_proto returns [16:13:21]Send response to host [16:13:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103724,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [16:13:21]free response buf [16:13:21]execute_script done [16:13:21]execute_script returns [16:13:21]free content buf [16:13:21]Sock 7.Close socket [16:13:21]Sock 7.Thread stoped [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:05]OFD Sender: No OFD packet to send [16:14:10]OFD Sender: No OFD packet to send [16:14:15]OFD Sender: No OFD packet to send [16:14:20]OFD Sender: No OFD packet to send [16:14:25]OFD Sender: No OFD packet to send [16:14:30]OFD Sender: No OFD packet to send [16:14:35]OFD Sender: No OFD packet to send [16:14:40]OFD Sender: No OFD packet to send [16:14:45]OFD Sender: No OFD packet to send [16:14:50]OFD Sender: No OFD packet to send [16:14:55]OFD Sender: No OFD packet to send [16:15:00]OFD Sender: No OFD packet to send [16:15:05]OFD Sender: No OFD packet to send [16:15:10]OFD Sender: No OFD packet to send [16:15:15]OFD Sender: No OFD packet to send [16:15:20]OFD Sender: No OFD packet to send [16:15:25]OFD Sender: No OFD packet to send [16:15:30]OFD Sender: No OFD packet to send [16:15:35]OFD Sender: No OFD packet to send [16:15:40]OFD Sender: No OFD packet to send [16:15:45]OFD Sender: No OFD packet to send [16:15:50]OFD Sender: No OFD packet to send [16:15:52]accept exits with 9 [16:15:52]New connection [16:15:52]New thread 3067084132 created [16:15:52]Thread 3067227492 joined [16:15:52]Waiting for new connection... [16:15:52] Sock 9.Parse request [16:15:52]Sock 9.Check first char [16:15:52]Sock 9.First char is OK [16:15:52]request: POST /json_proto HTTP/1.0 [16:15:52]Method: POST [16:15:52]URL: /json_proto [16:15:52]Method is POST - this is cgi request [16:15:52]url: /json_proto [16:15:52]query_string will be loaded in cgi processing [16:15:52]execute_cgi json_proto POST (null) [16:15:52]execute_cgi path=json_proto method=POST [16:15:52]POST find Content-Length [16:15:52]Host: 172.17.38.133:8080 [16:15:52]Content-Length: 682 [16:15:52]Content-Type: application/json [16:15:52] [16:15:52]POST finish read [16:15:52]Found Content-Length = 682 [16:15:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673003", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 41.430, "sum" : 2750.95, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 5000.00, "total" : 2750.00, "payments": [ { "type": 0, "sum" : 2750.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:15:52]execute_script... [16:15: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)673003", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 41.430, "sum" : 2750.95, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 5000.00, "total" : 2750.00, "payments": [ { "type": 0, "sum" : 2750.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:15:52]POST & json_proto [16:15:52]process_json_proto [16:15:52]json parsed OK: [16:15:52]protocol is kg_v1.0 [16:15:52]action value=close_receipt [16:15:52]process_action close_receipt [16:15:52]cmd_close_receipt [16:15:52]MH_GetDate [16:15:52]Write to MH i2c: F0 00 00 17 BC C2 [16:15:52]Write i2c OK [16:15:52]MH_I2C_Read... [16:15:52]Read from MH i2c: F0 [16:15:52]MH_I2C_Read... [16:15:52]Read from MH i2c: F0 09 00 [16:15:52]MH_I2C_Read... [16:15:52]Read from MH i2c: F0 09 00 17 BC 00 46 04 73 66 BD 8F 7C 64 1A [16:15:52]GetLastDocTimeStamp 1718813610 [16:15:52]current date 1718813766 [16:15:52]FM_GetShiftState [16:15:52]SAM_PROTO_GetShiftState [16:15:52]wFMCommunicate request_size=4 [16:15:52]MH_SAM_APDU [16:15:52]CAPDU: 80 13 01 00 [16:15:52]Write to MH i2c: E2 08 00 18 BC 80 13 01 00 00 00 00 00 51 [16:15:52]Write i2c OK [16:15:52]MH_I2C_Read... [16:15:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:15:52]Read from MH i2c: E2 [16:15:52]MH_I2C_Read... [16:15:52]Read from MH i2c: E2 0E 00 [16:15:52]MH_I2C_Read... [16:15:52]Read from MH i2c: E2 0E 00 18 BC 00 09 00 01 04 26 72 66 00 00 00 00 90 00 5F [16:15:52]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [16:15:52]wFMCommunicate OK [16:15:52]SAM_PROTO_GetShiftState done [16:15:52]FM_GetShiftState done [16:15:52]opened in 1718756868 [16:15:52]opened+sec_in_day 1718843268 [16:15:52]quantity*price = 275095 [16:15:52]sum+1 = 275096 [16:15:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.95 ИТОГО: 2750.00 Внесено: 5000.00 СДАЧА: 2250.00 НСП 1% : 24.34 НДС 12% : 292.14 Наличными: 2750.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 155 19.06.2024 16:16 Смена: 353 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103725 ФПД: 16316295956560 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T161606&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103725&fm=16316295956560&tin=02508201610067®Number=0000000000092785&sum=275000 [16:15:54]StoreToDocumentArchive [16:15:54]shift 353 fd 103725 [16:15:54]save to /storage/0353/doc_00103725 [16:15:54]save last doc name /storage/0353/doc_00103725 to /storage/kkm_last_doc_name [16:15:54]save OK [16:15:54]Clear old archive folders... [16:15:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:15:54]tlvbuf is 016367D0 [16:15:54]SAM_PROTO_ClearQueue [16:15:54]wFMCommunicate request_size=4 [16:15:54]MH_SAM_APDU [16:15:54]CAPDU: 80 09 00 00 [16:15:54]Write to MH i2c: E2 08 00 25 BC 80 09 00 00 00 00 00 00 53 [16:15:54]Write i2c OK [16:15:54]MH_I2C_Read... [16:15:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:15:54]Read from MH i2c: E2 [16:15:54]MH_I2C_Read... [16:15:54]Read from MH i2c: E2 03 00 [16:15:54]MH_I2C_Read... [16:15:54]Read from MH i2c: E2 03 00 25 BC 00 90 00 55 [16:15:54]RAPDU: 90 00 [16:15:54]wFMCommunicate OK [16:15:54]SAM_PROTO_ClearQueue done [16:15:54]KKMCreateOFDPacket [16:15:54]OFDProtocolAddRootSTLVToBuf [16:15:54]FM_MakeSignedData [16:15:54]FM_MakeSignedData [16:15:54]SAM_PROTO_SignData [16:15:54]wFMCommunicate request_size=4 [16:15:54]MH_SAM_APDU [16:15:54]CAPDU: 80 0D 01 02 [16:15:54]Write to MH i2c: E2 08 00 26 BC 80 0D 01 02 00 00 00 00 5B [16:15:54]Write i2c OK [16:15:54]MH_I2C_Read... [16:15:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:15:54]Read from MH i2c: E2 [16:15:54]MH_I2C_Read... [16:15:54]Read from MH i2c: E2 03 00 [16:15:54]MH_I2C_Read... [16:15:54]Read from MH i2c: E2 03 00 26 BC 00 90 00 56 [16:15:54]RAPDU: 90 00 [16:15:54]wFMCommunicate OK [16:15:54]wFMCommunicate request_size=255 [16:15:54]MH_SAM_APDU [16:15: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 D6 A1 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 97 32 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 32 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 82 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1E 72 00 00 00 00 07 04 06 00 38 32 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 00 00 00 F4 03 04 00 46 04 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 2D 95 01 00 35 04 06 00 0E [16:15:54]Write to MH i2c: E2 02 01 27 BC 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D6 A1 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 97 32 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 32 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 82 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1E 72 00 00 00 00 07 04 06 00 38 32 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 00 00 00 F4 03 04 00 46 04 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 2D 95 01 00 35 04 06 00 0E 00 00 A0 [16:15:54]Write i2c OK [16:15:54]MH_I2C_Read... [16:15:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:15:54]Read from MH i2c: E2 [16:15:54]MH_I2C_Read... [16:15:54]Read from MH i2c: E2 03 00 [16:15:54]MH_I2C_Read... [16:15:54]Read from MH i2c: E2 03 00 27 BC 00 90 00 57 [16:15:54]RAPDU: 90 00 [16:15:54]wFMCommunicate OK [16:15:54]wFMCommunicate request_size=10 [16:15:54]MH_SAM_APDU [16:15:54]CAPDU: 80 0D 02 02 05 D6 EF 06 48 50 [16:15:54]Write to MH i2c: E2 0D 00 28 BC 80 0D 02 02 05 00 D6 EF 06 48 50 00 00 CB [16:15:54]Write i2c OK [16:15:54]MH_I2C_Read... [16:15:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:15:54]Read from MH i2c: E2 [16:15:54]MH_I2C_Read... [16:15:54]Read from MH i2c: E2 03 00 [16:15:54]MH_I2C_Read... [16:15:54]Read from MH i2c: E2 03 00 28 BC 00 90 00 58 [16:15:54]RAPDU: 90 00 [16:15:54]wFMCommunicate OK [16:15:54]wFMCommunicate request_size=4 [16:15:54]MH_SAM_APDU [16:15:54]CAPDU: 80 0D 03 02 [16:15:54]Write to MH i2c: E2 08 00 29 BC 80 0D 03 02 00 00 00 00 60 [16:15:54]Write i2c OK [16:15:54]MH_I2C_Read... [16:15:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:15:54]Read from MH i2c: E2 [16:15:54]MH_I2C_Read... [16:15:54]Read from MH i2c: E2 0B 00 [16:15:54]MH_I2C_Read... [16:15:54]Read from MH i2c: E2 0B 00 29 BC 00 34 9C 1F 9B 1B 41 3B C0 90 00 42 [16:15:54]RAPDU: 34 9C 1F 9B 1B 41 3B C0 90 00 [16:15:54]wFMCommunicate OK [16:15:54]SAM_PROTO_SignData done [16:15:54]FM_MakeSignedData done [16:15:54]CreateOFDProtocolMessage [16:15:54]wFMCommunicate request_size=4 [16:15:54]MH_SAM_APDU [16:15:54]CAPDU: 80 11 00 00 [16:15:54]Write to MH i2c: E2 08 00 2A BC 80 11 00 00 00 00 00 00 60 [16:15:54]Write i2c OK [16:15:54]MH_I2C_Read... [16:15:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:15:54]Read from MH i2c: E2 [16:15:54]MH_I2C_Read... [16:15:54]Read from MH i2c: E2 17 00 [16:15:54]MH_I2C_Read... [16:15:54]Read from MH i2c: E2 17 00 2A BC 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 B3 [16:15:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [16:15:54]wFMCommunicate OK [16:15:54]CreateOFDProtocolMessage done [16:15:54]OFDSenderStorePacket 103725 [16:15:54]StoreOFDPacket docnum=103725 [16:15:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 92 E0 07 01 DC 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 D6 A1 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 97 32 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 32 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 82 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1E 72 00 00 00 00 07 04 06 00 38 32 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 00 00 00 F4 03 04 00 46 04 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 2D 95 01 00 35 04 06 00 0E D6 EF 06 48 50 34 9C 1F 9B 1B 41 3B C0 [16:15:54]CheckFolder [16:15:54]dirname=/storage/ofd_packets [16:15:54]CheckFolder done [16:15:54]ProducePacketName [16:15:54]name=ofd_packets/00103725 [16:15:54]NVStorageSaveData ofd_packets/00103725 [16:15:54]File name is /storage/ofd_packets/00103725 [16:15:54]Write 301 bytes [16:15:54]NVStorageSaveData done [16:15:54]OFDSenderStorePacket done [16:15:54]KKMCreateOFDPacket done [16:15:54]NVStorageSaveData kkm_last_timestamp [16:15:54]File name is /storage/kkm_last_timestamp [16:15:54]Write 4 bytes [16:15:54]NVStorageSaveData done [16:15:54]ExternCall_PrintAddStr [16:15:54]wPrintStart [16:15:54]Write to MH i2c: 01 00 00 2B BC E7 [16:15:54]Write i2c OK [16:15:54]MH_I2C_Read... [16:15:54]Read from MH i2c: 01 [16:15:54]MH_I2C_Read... [16:15:54]Read from MH i2c: 01 07 00 [16:15:54]MH_I2C_Read... [16:15:54]Read from MH i2c: 01 07 00 2B BC 00 00 00 00 00 FF 0F FC [16:15:54]RasterBufferAndPrint [16:15:54]line Счет N : (1)673003 [16:15:54]line ИНН: 02508201610067 [16:15:54]line Контрольно-Кассовый Чек [16:15:54]line ПРОДАЖА [16:15:54]line ТРК (МРК, ГНК) : 42 [16:15:54]line Товар: 2710124130 [16:15:54]line Аи-92-К-5 [16:15:54]line 41.430 * 66.40 [16:15:54]line = 2750.95 [16:15:54]line НДС 12% НСП 1% [16:15:54]line > о реализуемом товаре [16:15:54]line ОКРУГЛЕНИЕ: -0.95 [16:15:54]line ИТОГО: 2750.00 [16:15:54]line Внесено: 5000.00 [16:15:54]line СДАЧА: 2250.00 [16:15:54]line НСП 1% : 24.34 [16:15:54]line НДС 12% : 292.14 [16:15:54]line Наличными: 2750.00 [16:15:54]line Безнал.: 0.00 [16:15:54]line Место: АЗС № 120 "Партнер Нефть" [16:15:54]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [16:15:54]line СНО: Общий режим [16:15:54]line Чек 155 19.06.2024 16:16 [16:15:54]line Смена: 353 ФФД: 1.0 [16:15:54]line ЗНМ: 0300000164 [16:15:54]line РНМ: 0000000000092785 [16:15:54]line Версия ККМ: 001 [16:15:54]line ФМ: 0000000000875093 [16:15:54]line ФД: 103725 [16:15:54]line ФПД: 16316295956560 [16:15:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T161606&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103725&fm=16316295956560&tin=02508201610067®Number=0000000000092785&sum=275000 [16:15:54]OFD Sender: Processing packet 103725 [packets to send 17, broken 16] [16:15:54]ProducePacketName [16:15:54]name=ofd_packets/00103725 [16:15:54]OFD Sender: To server: pG, [16:15:54]CommunicateWithHost lk.salyk.kg:30040 [16:15:54]ConnectInit lk.salyk.kg [16:15:54]written 0, free lines is 4095 [16:15:55]Connected sock=10 [16:15: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 39 33 0F 01 00 00 92 E0 07 01 DC 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 D6 A1 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 97 32 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 32 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 82 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1E 72 00 00 00 00 07 04 06 00 38 32 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 00 00 00 F4 03 04 00 46 04 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 2D 95 01 00 35 04 06 00 0E D6 EF 06 48 50 34 9C 1F 9B 1B 41 3B C0 [16:15:55]Write to MH i2c: 01 00 00 56 BC 12 [16:15:55]Write i2c OK [16:15:55]MH_I2C_Read... [16:15:55]Read from MH i2c: 01 [16:15:55]MH_I2C_Read... [16:15:55]Read from MH i2c: 01 07 00 [16:15:55]MH_I2C_Read... [16:15:55]Read from MH i2c: 01 07 00 56 BC 00 00 00 00 00 F4 0C 19 [16:15:55]RasterBufferAndPrint [16:15:55]line [16:15:55]line [16:15:55]line [16:15:55]line [16:15:55]line [16:15:55]written 0, free lines is 3323 [16:15:55]MH_Cut [16:15:55]Write to MH i2c: D1 01 00 5D BC 01 EB [16:15:55]Write i2c OK [16:15:55]MH_I2C_Read... [16:15:55]Read from MH i2c: D1 [16:15:55]MH_I2C_Read... [16:15:55]Read from MH i2c: D1 01 00 [16:15:55]MH_I2C_Read... [16:15:55]Read from MH i2c: D1 01 00 5D BC 00 EA [16:15:55]Write to MH i2c: 01 00 00 5E BC 1A [16:15:55]Write i2c OK [16:15:55]MH_I2C_Read... [16:15: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 39 33 4F 00 00 00 6B D9 47 00 0E 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 39 33 10 04 04 00 2D 95 01 00 F4 03 04 00 CE AA 72 66 B6 04 01 00 00 75 DE B8 E2 75 E7 3A 1C [16:15:55]CommunicateWithHost err = 0 [16:15:55]CheckOFDResponse [16:15:55]1017 (14) - 77093643461234 [16:15:55]1041 (16) - 0000000000875093 [16:15:55]1040 (4) - 103725 [16:15:55]1012 (4) - 19.06.2024 09:54 [16:15:55]1206 (1) - 0 [16:15:55]OFD Sender: Remove packet 103725 [16:15:55]ProducePacketName [16:15:55]name=ofd_packets/00103725 [16:15:55]NVStorageDeleteData [16:15:56]OFD Sender: No OFD packet to send [16:15:56]*** Cut start [16:15:56]*** Partial cut [16:15:56]*** CUTSNS_PIN = 1 [16:15:56]*** CUTSNS_PIN = 0 [16:15:56]*** Brake cut motor [16:15:56]Read from MH i2c: 01 [16:15:56]MH_I2C_Read... [16:15:56]*** Stop cut motor [16:15:56]*** Cut end [16:15:56]Read from MH i2c: 01 07 00 [16:15:56]MH_I2C_Read... [16:15:56]Read from MH i2c: 01 07 00 5E BC 00 00 00 00 00 FF 0F 2F [16:15:56]process_action close_receipt done [16:15:56]requested_data is exist [16:15:56]produce_requested_data [16:15:56]requested_item fm.sn is exist - process it [16:15:56]wFMCommunicate request_size=4 [16:15:56]MH_SAM_APDU [16:15:56]CAPDU: 80 11 00 00 [16:15:56]Write to MH i2c: E2 08 00 5F BC 80 11 00 00 00 00 00 00 95 [16:15:56]Write i2c OK [16:15:56]MH_I2C_Read... [16:15:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:15:56]Read from MH i2c: E2 [16:15:56]MH_I2C_Read... [16:15:56]Read from MH i2c: E2 17 00 [16:15:56]MH_I2C_Read... [16:15:56]Read from MH i2c: E2 17 00 5F BC 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 E8 [16:15:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [16:15:56]wFMCommunicate OK [16:15:56]requested_item fd.num is exist - process it [16:15:56]SAM_PROTO_GetFieldsCounters [16:15:56]wFMCommunicate request_size=4 [16:15:56]MH_SAM_APDU [16:15:56]CAPDU: 80 13 00 00 [16:15:56]Write to MH i2c: E2 08 00 60 BC 80 13 00 00 00 00 00 00 98 [16:15:56]Write i2c OK [16:15:56]MH_I2C_Read... [16:15:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:15:56]Read from MH i2c: E2 [16:15:56]MH_I2C_Read... [16:15:56]Read from MH i2c: E2 62 00 [16:15:56]MH_I2C_Read... [16:15:56]Read from MH i2c: E2 62 00 60 BC 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 2D 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 9B 00 00 00 5E 04 04 00 9B 00 00 00 57 04 04 00 9C 00 00 00 19 04 04 00 00 00 00 00 90 00 B5 [16:15: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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 2D 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 9B 00 00 00 5E 04 04 00 9B 00 00 00 57 04 04 00 9C 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:15:56]wFMCommunicate OK [16:15:56]SAM_PROTO_GetFieldsCounters done [16:15:56]requested_item shift.num is exist - process it [16:15:56]requested_item shift.opened is exist - process it [16:15:56]req_shift_opened [16:15:56]FM_GetShiftState [16:15:56]SAM_PROTO_GetShiftState [16:15:56]wFMCommunicate request_size=4 [16:15:56]MH_SAM_APDU [16:15:56]CAPDU: 80 13 01 00 [16:15:56]Write to MH i2c: E2 08 00 61 BC 80 13 01 00 00 00 00 00 9A [16:15:56]Write i2c OK [16:15:56]MH_I2C_Read... [16:15:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:15:56]Read from MH i2c: E2 [16:15:56]MH_I2C_Read... [16:15:56]Read from MH i2c: E2 0E 00 [16:15:56]MH_I2C_Read... [16:15:56]Read from MH i2c: E2 0E 00 61 BC 00 09 00 01 04 26 72 66 00 00 00 00 90 00 A8 [16:15:56]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [16:15:56]wFMCommunicate OK [16:15:56]SAM_PROTO_GetShiftState done [16:15:56]FM_GetShiftState done [16:15:56]req_shift_opened done [16:15:56]requested_item shift.open_date is exist - process it [16:15:56]req_shift_open_date [16:15:56]req_shift_open_date done [16:15:56]produce_requested_data done [16:15:56]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103725,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [16:15:56]process_action_free close_receipt [16:15:56]json_value_free [16:15:56]json_value_free done [16:15:56]process_json_proto returns [16:15:56]Send response to host [16:15:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103725,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [16:15:56]free response buf [16:15:56]execute_script done [16:15:56]execute_script returns [16:15:56]free content buf [16:15:56]Sock 9.Close socket [16:15:56]Sock 9.Thread stoped [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:16:57]accept exits with 7 [16:16:57]New connection [16:16:57]New thread 3067227492 created [16:16:57]Thread 3067084132 joined [16:16:57]Waiting for new connection... [16:16:57] Sock 7.Parse request [16:16:57]Sock 7.Check first char [16:16:57]Sock 7.First char is OK [16:16:57]request: POST /json_proto HTTP/1.0 [16:16:57]Method: POST [16:16:57]URL: /json_proto [16:16:57]Method is POST - this is cgi request [16:16:57]url: /json_proto [16:16:57]query_string will be loaded in cgi processing [16:16:57]execute_cgi json_proto POST (null) [16:16:57]execute_cgi path=json_proto method=POST [16:16:57]POST find Content-Length [16:16:57]Host: 172.17.38.133:8080 [16:16:57]Content-Length: 682 [16:16:57]Content-Type: application/json [16:16:57] [16:16:57]POST finish read [16:16:57]Found Content-Length = 682 [16:16:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673004", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 30.130, "sum" : 2000.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:16:57]execute_script... [16:16: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)673004", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 30.130, "sum" : 2000.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:16:57]POST & json_proto [16:16:57]process_json_proto [16:16:57]json parsed OK: [16:16:57]protocol is kg_v1.0 [16:16:57]action value=close_receipt [16:16:57]process_action close_receipt [16:16:57]cmd_close_receipt [16:16:57]MH_GetDate [16:16:57]Write to MH i2c: F0 00 00 62 BC 0D [16:16:57]Write i2c OK [16:16:57]MH_I2C_Read... [16:16:57]Read from MH i2c: F0 [16:16:57]MH_I2C_Read... [16:16:57]Read from MH i2c: F0 09 00 [16:16:57]MH_I2C_Read... [16:16:57]Read from MH i2c: F0 09 00 62 BC 00 86 04 73 66 BD 8F 7C 64 A5 [16:16:57]GetLastDocTimeStamp 1718813766 [16:16:57]current date 1718813830 [16:16:57]FM_GetShiftState [16:16:57]SAM_PROTO_GetShiftState [16:16:57]wFMCommunicate request_size=4 [16:16:57]MH_SAM_APDU [16:16:57]CAPDU: 80 13 01 00 [16:16:57]Write to MH i2c: E2 08 00 63 BC 80 13 01 00 00 00 00 00 9C [16:16:57]Write i2c OK [16:16:57]MH_I2C_Read... [16:16:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:16:57]Read from MH i2c: E2 [16:16:57]MH_I2C_Read... [16:16:57]Read from MH i2c: E2 0E 00 [16:16:57]MH_I2C_Read... [16:16:57]Read from MH i2c: E2 0E 00 63 BC 00 09 00 01 04 26 72 66 00 00 00 00 90 00 AA [16:16:57]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [16:16:57]wFMCommunicate OK [16:16:57]SAM_PROTO_GetShiftState done [16:16:57]FM_GetShiftState done [16:16:57]opened in 1718756868 [16:16:57]opened+sec_in_day 1718843268 [16:16:57]quantity*price = 200063 [16:16:57]sum+1 = 200064 [16:16:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.46 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 156 19.06.2024 16:17 Смена: 353 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103726 ФПД: 272589091910944 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T161710&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103726&fm=272589091910944&tin=02508201610067®Number=0000000000092785&sum=200000 [16:16:58]StoreToDocumentArchive [16:16:58]shift 353 fd 103726 [16:16:58]save to /storage/0353/doc_00103726 [16:16:58]save last doc name /storage/0353/doc_00103726 to /storage/kkm_last_doc_name [16:16:58]save OK [16:16:58]Clear old archive folders... [16:16:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:16:58]tlvbuf is 0153DBB0 [16:16:58]SAM_PROTO_ClearQueue [16:16:58]wFMCommunicate request_size=4 [16:16:58]MH_SAM_APDU [16:16:58]CAPDU: 80 09 00 00 [16:16:58]Write to MH i2c: E2 08 00 70 BC 80 09 00 00 00 00 00 00 9E [16:16:58]Write i2c OK [16:16:58]MH_I2C_Read... [16:16:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:16:58]Read from MH i2c: E2 [16:16:58]MH_I2C_Read... [16:16:58]Read from MH i2c: E2 03 00 [16:16:58]MH_I2C_Read... [16:16:58]Read from MH i2c: E2 03 00 70 BC 00 90 00 A0 [16:16:58]RAPDU: 90 00 [16:16:58]wFMCommunicate OK [16:16:58]SAM_PROTO_ClearQueue done [16:16:58]KKMCreateOFDPacket [16:16:58]OFDProtocolAddRootSTLVToBuf [16:16:58]FM_MakeSignedData [16:16:58]FM_MakeSignedData [16:16:58]SAM_PROTO_SignData [16:16:58]wFMCommunicate request_size=4 [16:16:58]MH_SAM_APDU [16:16:58]CAPDU: 80 0D 01 02 [16:16:58]Write to MH i2c: E2 08 00 71 BC 80 0D 01 02 00 00 00 00 A6 [16:16:58]Write i2c OK [16:16:58]MH_I2C_Read... [16:16:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:16:58]Read from MH i2c: E2 [16:16:58]MH_I2C_Read... [16:16:58]Read from MH i2c: E2 03 00 [16:16:58]MH_I2C_Read... [16:16:58]Read from MH i2c: E2 03 00 71 BC 00 90 00 A1 [16:16:58]RAPDU: 90 00 [16:16:58]wFMCommunicate OK [16:16:58]wFMCommunicate request_size=255 [16:16:58]MH_SAM_APDU [16:16: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 B2 75 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FE 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 00 00 00 F4 03 04 00 86 04 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 2E 95 01 00 35 04 06 00 F7 [16:16:58]Write to MH i2c: E2 02 01 72 BC 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B2 75 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FE 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 00 00 00 F4 03 04 00 86 04 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 2E 95 01 00 35 04 06 00 F7 00 00 71 [16:16:58]Write i2c OK [16:16:58]MH_I2C_Read... [16:16:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:16:58]Read from MH i2c: E2 [16:16:58]MH_I2C_Read... [16:16:58]Read from MH i2c: E2 03 00 [16:16:58]MH_I2C_Read... [16:16:58]Read from MH i2c: E2 03 00 72 BC 00 90 00 A2 [16:16:58]RAPDU: 90 00 [16:16:58]wFMCommunicate OK [16:16:58]wFMCommunicate request_size=10 [16:16:58]MH_SAM_APDU [16:16:58]CAPDU: 80 0D 02 02 05 EB 17 FE 35 20 [16:16:58]Write to MH i2c: E2 0D 00 73 BC 80 0D 02 02 05 00 EB 17 FE 35 20 00 00 08 [16:16:58]Write i2c OK [16:16:58]MH_I2C_Read... [16:16:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:16:58]Read from MH i2c: E2 [16:16:58]MH_I2C_Read... [16:16:58]Read from MH i2c: E2 03 00 [16:16:58]MH_I2C_Read... [16:16:58]Read from MH i2c: E2 03 00 73 BC 00 90 00 A3 [16:16:58]RAPDU: 90 00 [16:16:58]wFMCommunicate OK [16:16:58]wFMCommunicate request_size=4 [16:16:58]MH_SAM_APDU [16:16:58]CAPDU: 80 0D 03 02 [16:16:58]Write to MH i2c: E2 08 00 74 BC 80 0D 03 02 00 00 00 00 AB [16:16:58]Write i2c OK [16:16:58]MH_I2C_Read... [16:16:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:16:59]Read from MH i2c: E2 [16:16:59]MH_I2C_Read... [16:16:59]Read from MH i2c: E2 0B 00 [16:16:59]MH_I2C_Read... [16:16:59]Read from MH i2c: E2 0B 00 74 BC 00 86 AE AC 59 42 68 AD 3F 90 00 7B [16:16:59]RAPDU: 86 AE AC 59 42 68 AD 3F 90 00 [16:16:59]wFMCommunicate OK [16:16:59]SAM_PROTO_SignData done [16:16:59]FM_MakeSignedData done [16:16:59]CreateOFDProtocolMessage [16:16:59]wFMCommunicate request_size=4 [16:16:59]MH_SAM_APDU [16:16:59]CAPDU: 80 11 00 00 [16:16:59]Write to MH i2c: E2 08 00 75 BC 80 11 00 00 00 00 00 00 AB [16:16:59]Write i2c OK [16:16:59]MH_I2C_Read... [16:16:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:16:59]Read from MH i2c: E2 [16:16:59]MH_I2C_Read... [16:16:59]Read from MH i2c: E2 17 00 [16:16:59]MH_I2C_Read... [16:16:59]Read from MH i2c: E2 17 00 75 BC 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 FE [16:16:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [16:16:59]wFMCommunicate OK [16:16:59]CreateOFDProtocolMessage done [16:16:59]OFDSenderStorePacket 103726 [16:16:59]StoreOFDPacket docnum=103726 [16:16:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 80 C8 07 01 75 B8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B2 75 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FE 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 00 00 00 F4 03 04 00 86 04 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 2E 95 01 00 35 04 06 00 F7 EB 17 FE 35 20 86 AE AC 59 42 68 AD 3F [16:16:59]CheckFolder [16:16:59]dirname=/storage/ofd_packets [16:16:59]CheckFolder done [16:16:59]ProducePacketName [16:16:59]name=ofd_packets/00103726 [16:16:59]NVStorageSaveData ofd_packets/00103726 [16:16:59]File name is /storage/ofd_packets/00103726 [16:16:59]Write 301 bytes [16:16:59]NVStorageSaveData done [16:16:59]OFDSenderStorePacket done [16:16:59]KKMCreateOFDPacket done [16:16:59]NVStorageSaveData kkm_last_timestamp [16:16:59]File name is /storage/kkm_last_timestamp [16:16:59]Write 4 bytes [16:16:59]NVStorageSaveData done [16:16:59]ExternCall_PrintAddStr [16:16:59]wPrintStart [16:16:59]Write to MH i2c: 01 00 00 76 BC 32 [16:16:59]Write i2c OK [16:16:59]MH_I2C_Read... [16:16:59]Read from MH i2c: 01 [16:16:59]MH_I2C_Read... [16:16:59]Read from MH i2c: 01 07 00 [16:16:59]MH_I2C_Read... [16:16:59]Read from MH i2c: 01 07 00 76 BC 00 00 00 00 00 FF 0F 47 [16:16:59]RasterBufferAndPrint [16:16:59]line Счет N : (1)673004 [16:16:59]line ИНН: 02508201610067 [16:16:59]line Контрольно-Кассовый Чек [16:16:59]line ПРОДАЖА [16:16:59]line ТРК (МРК, ГНК) : 32 [16:16:59]line Товар: 2710124130 [16:16:59]line Аи-92-К-5 [16:16:59]line 30.130 * 66.40 [16:16:59]line = 2000.63 [16:16:59]line НДС 12% НСП 1% [16:16:59]line > о реализуемом товаре [16:16:59]line ОКРУГЛЕНИЕ: -0.63 [16:16:59]line ИТОГО: 2000.00 [16:16:59]line Внесено: 2000.00 [16:16:59]line СДАЧА: 0.00 [16:16:59]line НСП 1% : 17.70 [16:16:59]line НДС 12% : 212.46 [16:16:59]line Наличными: 2000.00 [16:16:59]line Безнал.: 0.00 [16:16:59]line Место: АЗС № 120 "Партнер Нефть" [16:16:59]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [16:16:59]line СНО: Общий режим [16:16:59]line Чек 156 19.06.2024 16:17 [16:16:59]line Смена: 353 ФФД: 1.0 [16:16:59]line ЗНМ: 0300000164 [16:16:59]line РНМ: 0000000000092785 [16:16:59]line Версия ККМ: 001 [16:16:59]line ФМ: 0000000000875093 [16:16:59]line ФД: 103726 [16:16:59]line ФПД: 272589091910944 [16:16:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T161710&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103726&fm=272589091910944&tin=02508201610067®Number=0000000000092785&sum=200000 [16:16:59]OFD Sender: Processing packet 103726 [packets to send 17, broken 16] [16:16:59]ProducePacketName [16:16:59]name=ofd_packets/00103726 [16:16:59]OFD Sender: To server: pG, [16:16:59]CommunicateWithHost lk.salyk.kg:30040 [16:16:59]ConnectInit lk.salyk.kg [16:16:59]written 0, free lines is 4095 [16:16:59]Write to MH i2c: 01 00 00 A1 BC 5D [16:16:59]Write i2c OK [16:16:59]MH_I2C_Read... [16:16:59]Read from MH i2c: 01 [16:16:59]MH_I2C_Read... [16:16:59]Read from MH i2c: 01 07 00 [16:16:59]MH_I2C_Read... [16:16:59]Read from MH i2c: 01 07 00 A1 BC 00 00 00 00 00 DD 0C 4D [16:16:59]RasterBufferAndPrint [16:16:59]line [16:16:59]line [16:16:59]line [16:16:59]line [16:16:59]line [16:16:59]written 0, free lines is 3299 [16:16:59]MH_Cut [16:16:59]Write to MH i2c: D1 01 00 A8 BC 01 36 [16:16:59]Write i2c OK [16:16:59]MH_I2C_Read... [16:16:59]Read from MH i2c: D1 [16:16:59]MH_I2C_Read... [16:16:59]Read from MH i2c: D1 01 00 [16:16:59]MH_I2C_Read... [16:16:59]Read from MH i2c: D1 01 00 A8 BC 00 35 [16:16:59]Write to MH i2c: 01 00 00 A9 BC 65 [16:16:59]Write i2c OK [16:16:59]MH_I2C_Read... [16:16:59]Connected sock=10 [16:16: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 39 33 0F 01 00 00 80 C8 07 01 75 B8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B2 75 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FE 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 00 00 00 F4 03 04 00 86 04 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 2E 95 01 00 35 04 06 00 F7 EB 17 FE 35 20 86 AE AC 59 42 68 AD 3F [16:17: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 39 33 4F 00 00 00 6D F4 47 00 00 44 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 2E 95 01 00 F4 03 04 00 0F AB 72 66 B6 04 01 00 00 A8 DF D4 AF F7 7C 99 3A [16:17:00]CommunicateWithHost err = 0 [16:17:00]CheckOFDResponse [16:17:00]1017 (14) - 77093643461234 [16:17:00]1041 (16) - 0000000000875093 [16:17:00]1040 (4) - 103726 [16:17:00]1012 (4) - 19.06.2024 09:55 [16:17:00]1206 (1) - 0 [16:17:00]OFD Sender: Remove packet 103726 [16:17:00]ProducePacketName [16:17:00]name=ofd_packets/00103726 [16:17:00]NVStorageDeleteData [16:17:00]*** Cut start [16:17:00]*** Partial cut [16:17:00]*** CUTSNS_PIN = 1 [16:17:00]*** CUTSNS_PIN = 0 [16:17:00]OFD Sender: No OFD packet to send [16:17:00]*** Brake cut motor [16:17:01]Read from MH i2c: 01 [16:17:01]MH_I2C_Read... [16:17:01]*** Stop cut motor [16:17:01]Read from MH i2c: *** Cut end [16:17:01]01 07 00 [16:17:01]MH_I2C_Read... [16:17:01]Read from MH i2c: 01 07 00 A9 BC 00 00 00 00 00 FF 0F 7A [16:17:01]process_action close_receipt done [16:17:01]requested_data is exist [16:17:01]produce_requested_data [16:17:01]requested_item fm.sn is exist - process it [16:17:01]wFMCommunicate request_size=4 [16:17:01]MH_SAM_APDU [16:17:01]CAPDU: 80 11 00 00 [16:17:01]Write to MH i2c: E2 08 00 AA BC 80 11 00 00 00 00 00 00 E0 [16:17:01]Write i2c OK [16:17:01]MH_I2C_Read... [16:17:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:17:01]Read from MH i2c: E2 [16:17:01]MH_I2C_Read... [16:17:01]Read from MH i2c: E2 17 00 [16:17:01]MH_I2C_Read... [16:17:01]Read from MH i2c: E2 17 00 AA BC 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 33 [16:17:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [16:17:01]wFMCommunicate OK [16:17:01]requested_item fd.num is exist - process it [16:17:01]SAM_PROTO_GetFieldsCounters [16:17:01]wFMCommunicate request_size=4 [16:17:01]MH_SAM_APDU [16:17:01]CAPDU: 80 13 00 00 [16:17:01]Write to MH i2c: E2 08 00 AB BC 80 13 00 00 00 00 00 00 E3 [16:17:01]Write i2c OK [16:17:01]MH_I2C_Read... [16:17:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:17:01]Read from MH i2c: E2 [16:17:01]MH_I2C_Read... [16:17:01]Read from MH i2c: E2 62 00 [16:17:01]MH_I2C_Read... [16:17:01]Read from MH i2c: E2 62 00 AB BC 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 2E 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 9C 00 00 00 5E 04 04 00 9C 00 00 00 57 04 04 00 9D 00 00 00 19 04 04 00 00 00 00 00 90 00 04 [16:17: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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 2E 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 9C 00 00 00 5E 04 04 00 9C 00 00 00 57 04 04 00 9D 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:17:01]wFMCommunicate OK [16:17:01]SAM_PROTO_GetFieldsCounters done [16:17:01]requested_item shift.num is exist - process it [16:17:01]requested_item shift.opened is exist - process it [16:17:01]req_shift_opened [16:17:01]FM_GetShiftState [16:17:01]SAM_PROTO_GetShiftState [16:17:01]wFMCommunicate request_size=4 [16:17:01]MH_SAM_APDU [16:17:01]CAPDU: 80 13 01 00 [16:17:01]Write to MH i2c: E2 08 00 AC BC 80 13 01 00 00 00 00 00 E5 [16:17:01]Write i2c OK [16:17:01]MH_I2C_Read... [16:17:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:17:01]Read from MH i2c: E2 [16:17:01]MH_I2C_Read... [16:17:01]Read from MH i2c: E2 0E 00 [16:17:01]MH_I2C_Read... [16:17:01]Read from MH i2c: E2 0E 00 AC BC 00 09 00 01 04 26 72 66 00 00 00 00 90 00 F3 [16:17:01]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [16:17:01]wFMCommunicate OK [16:17:01]SAM_PROTO_GetShiftState done [16:17:01]FM_GetShiftState done [16:17:01]req_shift_opened done [16:17:01]requested_item shift.open_date is exist - process it [16:17:01]req_shift_open_date [16:17:01]req_shift_open_date done [16:17:01]produce_requested_data done [16:17:01]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103726,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [16:17:01]process_action_free close_receipt [16:17:01]json_value_free [16:17:01]json_value_free done [16:17:01]process_json_proto returns [16:17:01]Send response to host [16:17:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103726,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [16:17:01]free response buf [16:17:01]execute_script done [16:17:01]execute_script returns [16:17:01]free content buf [16:17:01]Sock 7.Close socket [16:17:01]Sock 7.Thread stoped [16:17:05]OFD Sender: No OFD packet to send [16:17:10]OFD Sender: No OFD packet to send [16:17:14]accept exits with 9 [16:17:14]New connection [16:17:14]New thread 3067084132 created [16:17:14]Thread 3067227492 joined [16:17:14]Waiting for new connection... [16:17:14] Sock 9.Parse request [16:17:14]Sock 9.Check first char [16:17:14]Sock 9.First char is OK [16:17:14]request: POST /json_proto HTTP/1.0 [16:17:14]Method: POST [16:17:14]URL: /json_proto [16:17:14]Method is POST - this is cgi request [16:17:14]url: /json_proto [16:17:14]query_string will be loaded in cgi processing [16:17:14]execute_cgi json_proto POST (null) [16:17:14]execute_cgi path=json_proto method=POST [16:17:14]POST find Content-Length [16:17:14]Host: 172.17.38.133:8080 [16:17:14]Content-Length: 682 [16:17:14]Content-Type: application/json [16:17:14] [16:17:14]POST finish read [16:17:14]Found Content-Length = 682 [16:17:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673005", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:17:14]execute_script... [16:17: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)673005", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:17:14]POST & json_proto [16:17:14]process_json_proto [16:17:14]json parsed OK: [16:17:14]protocol is kg_v1.0 [16:17:14]action value=close_receipt [16:17:14]process_action close_receipt [16:17:14]cmd_close_receipt [16:17:14]MH_GetDate [16:17:14]Write to MH i2c: F0 00 00 AD BC 58 [16:17:14]Write i2c OK [16:17:14]MH_I2C_Read... [16:17:14]Read from MH i2c: F0 [16:17:14]MH_I2C_Read... [16:17:14]Read from MH i2c: F0 09 00 [16:17:14]MH_I2C_Read... [16:17:14]Read from MH i2c: F0 09 00 AD BC 00 97 04 73 66 BD 8F 7C 64 01 [16:17:14]GetLastDocTimeStamp 1718813830 [16:17:14]current date 1718813847 [16:17:14]FM_GetShiftState [16:17:14]SAM_PROTO_GetShiftState [16:17:14]wFMCommunicate request_size=4 [16:17:14]MH_SAM_APDU [16:17:14]CAPDU: 80 13 01 00 [16:17:14]Write to MH i2c: E2 08 00 AE BC 80 13 01 00 00 00 00 00 E7 [16:17:14]Write i2c OK [16:17:14]MH_I2C_Read... [16:17:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:17:14]Read from MH i2c: E2 [16:17:14]MH_I2C_Read... [16:17:14]Read from MH i2c: E2 0E 00 [16:17:14]MH_I2C_Read... [16:17:14]Read from MH i2c: E2 0E 00 AE BC 00 09 00 01 04 26 72 66 00 00 00 00 90 00 F5 [16:17:14]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [16:17:14]wFMCommunicate OK [16:17:14]SAM_PROTO_GetShiftState done [16:17:14]FM_GetShiftState done [16:17:14]opened in 1718756868 [16:17:14]opened+sec_in_day 1718843268 [16:17:14]quantity*price = 100064 [16:17:14]sum+1 = 100066 [16:17:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.65 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 157 19.06.2024 16:17 Смена: 353 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103727 ФПД: 213260094501934 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T161727&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103727&fm=213260094501934&tin=02508201610067®Number=0000000000092785&sum=100000 [16:17:15]StoreToDocumentArchive [16:17:15]shift 353 fd 103727 [16:17:15]save to /storage/0353/doc_00103727 [16:17:15]save last doc name /storage/0353/doc_00103727 to /storage/kkm_last_doc_name [16:17:15]save OK [16:17:15]Clear old archive folders... [16:17:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:17:15]tlvbuf is 014CC3D0 [16:17:15]SAM_PROTO_ClearQueue [16:17:15]wFMCommunicate request_size=4 [16:17:15]MH_SAM_APDU [16:17:15]CAPDU: 80 09 00 00 [16:17:15]Write to MH i2c: E2 08 00 BB BC 80 09 00 00 00 00 00 00 E9 [16:17:15]Write i2c OK [16:17:15]MH_I2C_Read... [16:17:15]Read from MH i2c: E2 [16:17:15]MH_I2C_Read... [16:17:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:17:15]Read from MH i2c: E2 03 00 [16:17:15]MH_I2C_Read... [16:17:15]Read from MH i2c: E2 03 00 BB BC 00 90 00 EB [16:17:15]RAPDU: 90 00 [16:17:15]wFMCommunicate OK [16:17:15]SAM_PROTO_ClearQueue done [16:17:15]KKMCreateOFDPacket [16:17:15]OFDProtocolAddRootSTLVToBuf [16:17:15]FM_MakeSignedData [16:17:15]FM_MakeSignedData [16:17:15]SAM_PROTO_SignData [16:17:15]wFMCommunicate request_size=4 [16:17:15]MH_SAM_APDU [16:17:15]CAPDU: 80 0D 01 02 [16:17:15]Write to MH i2c: E2 08 00 BC BC 80 0D 01 02 00 00 00 00 F1 [16:17:15]Write i2c OK [16:17:15]MH_I2C_Read... [16:17:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:17:15]Read from MH i2c: E2 [16:17:15]MH_I2C_Read... [16:17:15]Read from MH i2c: E2 03 00 [16:17:15]MH_I2C_Read... [16:17:15]Read from MH i2c: E2 03 00 BC BC 00 90 00 EC [16:17:15]RAPDU: 90 00 [16:17:15]wFMCommunicate OK [16:17:15]wFMCommunicate request_size=255 [16:17:15]MH_SAM_APDU [16:17: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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9D 00 00 00 F4 03 04 00 97 04 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 2F 95 01 00 35 04 06 00 C1 [16:17:15]Write to MH i2c: E2 02 01 BD BC 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9D 00 00 00 F4 03 04 00 97 04 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 2F 95 01 00 35 04 06 00 C1 00 00 F4 [16:17:15]Write i2c OK [16:17:15]MH_I2C_Read... [16:17:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:17:16]Read from MH i2c: E2 [16:17:16]MH_I2C_Read... [16:17:16]Read from MH i2c: E2 03 00 [16:17:16]MH_I2C_Read... [16:17:16]Read from MH i2c: E2 03 00 BD BC 00 90 00 ED [16:17:16]RAPDU: 90 00 [16:17:16]wFMCommunicate OK [16:17:16]wFMCommunicate request_size=10 [16:17:16]MH_SAM_APDU [16:17:16]CAPDU: 80 0D 02 02 05 F5 7C 2D 74 2E [16:17:16]Write to MH i2c: E2 0D 00 BE BC 80 0D 02 02 05 00 F5 7C 2D 74 2E 00 00 3E [16:17:16]Write i2c OK [16:17:16]MH_I2C_Read... [16:17:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:17:16]Read from MH i2c: E2 [16:17:16]MH_I2C_Read... [16:17:16]Read from MH i2c: E2 03 00 [16:17:16]MH_I2C_Read... [16:17:16]Read from MH i2c: E2 03 00 BE BC 00 90 00 EE [16:17:16]RAPDU: 90 00 [16:17:16]wFMCommunicate OK [16:17:16]wFMCommunicate request_size=4 [16:17:16]MH_SAM_APDU [16:17:16]CAPDU: 80 0D 03 02 [16:17:16]Write to MH i2c: E2 08 00 BF BC 80 0D 03 02 00 00 00 00 F6 [16:17:16]Write i2c OK [16:17:16]MH_I2C_Read... [16:17:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:17:16]Read from MH i2c: E2 [16:17:16]MH_I2C_Read... [16:17:16]Read from MH i2c: E2 0B 00 [16:17:16]MH_I2C_Read... [16:17:16]Read from MH i2c: E2 0B 00 BF BC 00 37 81 E7 BD 7E 58 C0 11 90 00 FA [16:17:16]RAPDU: 37 81 E7 BD 7E 58 C0 11 90 00 [16:17:16]wFMCommunicate OK [16:17:16]SAM_PROTO_SignData done [16:17:16]FM_MakeSignedData done [16:17:16]CreateOFDProtocolMessage [16:17:16]wFMCommunicate request_size=4 [16:17:16]MH_SAM_APDU [16:17:16]CAPDU: 80 11 00 00 [16:17:16]Write to MH i2c: E2 08 00 C0 BC 80 11 00 00 00 00 00 00 F6 [16:17:16]Write i2c OK [16:17:16]MH_I2C_Read... [16:17:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:17:16]Read from MH i2c: E2 [16:17:16]MH_I2C_Read... [16:17:16]Read from MH i2c: E2 17 00 [16:17:16]MH_I2C_Read... [16:17:16]Read from MH i2c: E2 17 00 C0 BC 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 49 [16:17:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [16:17:16]wFMCommunicate OK [16:17:16]CreateOFDProtocolMessage done [16:17:16]OFDSenderStorePacket 103727 [16:17:16]StoreOFDPacket docnum=103727 [16:17:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 57 DC 07 01 2C 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9D 00 00 00 F4 03 04 00 97 04 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 2F 95 01 00 35 04 06 00 C1 F5 7C 2D 74 2E 37 81 E7 BD 7E 58 C0 11 [16:17:16]CheckFolder [16:17:16]dirname=/storage/ofd_packets [16:17:16]CheckFolder done [16:17:16]ProducePacketName [16:17:16]name=ofd_packets/00103727 [16:17:16]NVStorageSaveData ofd_packets/00103727 [16:17:16]File name is /storage/ofd_packets/00103727 [16:17:16]Write 301 bytes [16:17:16]NVStorageSaveData done [16:17:16]OFDSenderStorePacket done [16:17:16]KKMCreateOFDPacket done [16:17:16]NVStorageSaveData kkm_last_timestamp [16:17:16]File name is /storage/kkm_last_timestamp [16:17:16]Write 4 bytes [16:17:16]NVStorageSaveData done [16:17:16]ExternCall_PrintAddStr [16:17:16]wPrintStart [16:17:16]Write to MH i2c: 01 00 00 C1 BC 7D [16:17:16]Write i2c OK [16:17:16]MH_I2C_Read... [16:17:16]Read from MH i2c: 01 [16:17:16]MH_I2C_Read... [16:17:16]Read from MH i2c: 01 07 00 [16:17:16]MH_I2C_Read... [16:17:16]Read from MH i2c: 01 07 00 C1 BC 00 00 00 00 00 FF 0F 92 [16:17:16]RasterBufferAndPrint [16:17:16]line Счет N : (1)673005 [16:17:16]line ИНН: 02508201610067 [16:17:16]line Контрольно-Кассовый Чек [16:17:16]line ПРОДАЖА [16:17:16]line ТРК (МРК, ГНК) : 42 [16:17:16]line Товар: 2710124130 [16:17:16]line Аи-92-К-5 [16:17:16]line 15.070 * 66.40 [16:17:16]line = 1000.65 [16:17:16]line НДС 12% НСП 1% [16:17:16]line > о реализуемом товаре [16:17:16]line ОКРУГЛЕНИЕ: -0.65 [16:17:16]line ИТОГО: 1000.00 [16:17:16]line Внесено: 1000.00 [16:17:16]line СДАЧА: 0.00 [16:17:16]line НСП 1% : 8.85 [16:17:16]line НДС 12% : 106.26 [16:17:16]line Наличными: 1000.00 [16:17:16]line Безнал.: 0.00 [16:17:16]line Место: АЗС № 120 "Партнер Нефть" [16:17:16]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [16:17:16]line СНО: Общий режим [16:17:16]line Чек 157 19.06.2024 16:17 [16:17:16]line Смена: 353 ФФД: 1.0 [16:17:16]line ЗНМ: 0300000164 [16:17:16]line РНМ: 0000000000092785 [16:17:16]line Версия ККМ: 001 [16:17:16]line ФМ: 0000000000875093 [16:17:16]line ФД: 103727 [16:17:16]line ФПД: 213260094501934 [16:17:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T161727&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103727&fm=213260094501934&tin=02508201610067®Number=0000000000092785&sum=100000 [16:17:16]OFD Sender: Processing packet 103727 [packets to send 17, broken 16] [16:17:16]ProducePacketName [16:17:16]name=ofd_packets/00103727 [16:17:16]OFD Sender: To server: pG, [16:17:16]CommunicateWithHost lk.salyk.kg:30040 [16:17:16]ConnectInit lk.salyk.kg [16:17:16]written 0, free lines is 4095 [16:17:16]Connected sock=10 [16:17: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 39 33 0F 01 00 00 57 DC 07 01 2C 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9D 00 00 00 F4 03 04 00 97 04 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 2F 95 01 00 35 04 06 00 C1 F5 7C 2D 74 2E 37 81 E7 BD 7E 58 C0 11 [16:17: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 39 33 4F 00 00 00 88 82 47 00 09 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 39 33 10 04 04 00 2F 95 01 00 F4 03 04 00 20 AB 72 66 B6 04 01 00 00 34 8F DA E2 EF 7C 30 F1 [16:17:17]CommunicateWithHost err = 0 [16:17:17]CheckOFDResponse [16:17:17]1017 (14) - 77093643461234 [16:17:17]1041 (16) - 0000000000875093 [16:17:17]1040 (4) - 103727 [16:17:17]1012 (4) - 19.06.2024 09:55 [16:17:17]1206 (1) - 0 [16:17:17]OFD Sender: Remove packet 103727 [16:17:17]ProducePacketName [16:17:17]name=ofd_packets/00103727 [16:17:17]NVStorageDeleteData [16:17:17]Write to MH i2c: 01 00 00 EC BC A8 [16:17:17]Write i2c OK [16:17:17]MH_I2C_Read... [16:17:17]Read from MH i2c: 01 [16:17:17]MH_I2C_Read... [16:17:17]Read from MH i2c: 01 07 00 [16:17:17]MH_I2C_Read... [16:17:17]Read from MH i2c: 01 07 00 EC BC 00 00 00 00 00 EF 0C AA [16:17:17]RasterBufferAndPrint [16:17:17]line [16:17:17]line [16:17:17]line [16:17:17]line [16:17:17]line [16:17:17]written 0, free lines is 3317 [16:17:17]MH_Cut [16:17:17]Write to MH i2c: D1 01 00 F3 BC 01 81 [16:17:17]Write i2c OK [16:17:17]MH_I2C_Read... [16:17:17]Read from MH i2c: D1 [16:17:17]MH_I2C_Read... [16:17:17]Read from MH i2c: D1 01 00 [16:17:17]MH_I2C_Read... [16:17:17]Read from MH i2c: D1 01 00 F3 BC 00 80 [16:17:17]Write to MH i2c: 01 00 00 F4 BC B0 [16:17:17]Write i2c OK [16:17:17]MH_I2C_Read... [16:17:17]OFD Sender: No OFD packet to send [16:17:17]*** Cut start [16:17:17]*** Partial cut [16:17:17]*** CUTSNS_PIN = 1 [16:17:17]*** CUTSNS_PIN = 0 [16:17:18]*** Brake cut motor [16:17:18]Read from MH i2c: 01 [16:17:18]MH_I2C_Read... [16:17:18]*** Stop cut motor [16:17:18]*** Cut end [16:17:18]Read from MH i2c: 01 07 00 [16:17:18]MH_I2C_Read... [16:17:18]Read from MH i2c: 01 07 00 F4 BC 00 00 00 00 00 FF 0F C5 [16:17:18]process_action close_receipt done [16:17:18]requested_data is exist [16:17:18]produce_requested_data [16:17:18]requested_item fm.sn is exist - process it [16:17:18]wFMCommunicate request_size=4 [16:17:18]MH_SAM_APDU [16:17:18]CAPDU: 80 11 00 00 [16:17:18]Write to MH i2c: E2 08 00 F5 BC 80 11 00 00 00 00 00 00 2B [16:17:18]Write i2c OK [16:17:18]MH_I2C_Read... [16:17:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:17:18]Read from MH i2c: E2 [16:17:18]MH_I2C_Read... [16:17:18]Read from MH i2c: E2 17 00 [16:17:18]MH_I2C_Read... [16:17:18]Read from MH i2c: E2 17 00 F5 BC 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 7E [16:17:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [16:17:18]wFMCommunicate OK [16:17:18]requested_item fd.num is exist - process it [16:17:18]SAM_PROTO_GetFieldsCounters [16:17:18]wFMCommunicate request_size=4 [16:17:18]MH_SAM_APDU [16:17:18]CAPDU: 80 13 00 00 [16:17:18]Write to MH i2c: E2 08 00 F6 BC 80 13 00 00 00 00 00 00 2E [16:17:18]Write i2c OK [16:17:18]MH_I2C_Read... [16:17:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:17:18]Read from MH i2c: E2 [16:17:18]MH_I2C_Read... [16:17:18]Read from MH i2c: E2 62 00 [16:17:18]MH_I2C_Read... [16:17:18]Read from MH i2c: E2 62 00 F6 BC 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 2F 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 9D 00 00 00 5E 04 04 00 9D 00 00 00 57 04 04 00 9E 00 00 00 19 04 04 00 00 00 00 00 90 00 53 [16:17: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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 2F 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 9D 00 00 00 5E 04 04 00 9D 00 00 00 57 04 04 00 9E 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:17:18]wFMCommunicate OK [16:17:18]SAM_PROTO_GetFieldsCounters done [16:17:18]requested_item shift.num is exist - process it [16:17:18]requested_item shift.opened is exist - process it [16:17:18]req_shift_opened [16:17:18]FM_GetShiftState [16:17:18]SAM_PROTO_GetShiftState [16:17:18]wFMCommunicate request_size=4 [16:17:18]MH_SAM_APDU [16:17:18]CAPDU: 80 13 01 00 [16:17:18]Write to MH i2c: E2 08 00 F7 BC 80 13 01 00 00 00 00 00 30 [16:17:18]Write i2c OK [16:17:18]MH_I2C_Read... [16:17:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:17:18]Read from MH i2c: E2 [16:17:18]MH_I2C_Read... [16:17:18]Read from MH i2c: E2 0E 00 [16:17:18]MH_I2C_Read... [16:17:18]Read from MH i2c: E2 0E 00 F7 BC 00 09 00 01 04 26 72 66 00 00 00 00 90 00 3E [16:17:18]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [16:17:18]wFMCommunicate OK [16:17:18]SAM_PROTO_GetShiftState done [16:17:18]FM_GetShiftState done [16:17:18]req_shift_opened done [16:17:18]requested_item shift.open_date is exist - process it [16:17:18]req_shift_open_date [16:17:18]req_shift_open_date done [16:17:18]produce_requested_data done [16:17:18]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103727,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [16:17:18]process_action_free close_receipt [16:17:18]json_value_free [16:17:18]json_value_free done [16:17:18]process_json_proto returns [16:17:18]Send response to host [16:17:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103727,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [16:17:18]free response buf [16:17:18]execute_script done [16:17:18]execute_script returns [16:17:18]free content buf [16:17:18]Sock 9.Close socket [16:17:18]Sock 9.Thread stoped [16:17:22]OFD Sender: No OFD packet to send [16:17:27]OFD Sender: No OFD packet to send [16:17:32]OFD Sender: No OFD packet to send [16:17:37]OFD Sender: No OFD packet to send [16:17:42]OFD Sender: No OFD packet to send [16:17:47]OFD Sender: No OFD packet to send [16:17:52]OFD Sender: No OFD packet to send [16:17:57]OFD Sender: No OFD packet to send [16:18:02]OFD Sender: No OFD packet to send [16:18:07]OFD Sender: No OFD packet to send [16:18:12]OFD Sender: No OFD packet to send [16:18:17]OFD Sender: No OFD packet to send [16:18:22]OFD Sender: No OFD packet to send [16:18:27]OFD Sender: No OFD packet to send [16:18:32]OFD Sender: No OFD packet to send [16:18:37]OFD Sender: No OFD packet to send [16:18:42]OFD Sender: No OFD packet to send [16:18:47]OFD Sender: No OFD packet to send [16:18:52]OFD Sender: No OFD packet to send [16:18:57]OFD Sender: No OFD packet to send [16:19:02]OFD Sender: No OFD packet to send [16:19:07]OFD Sender: No OFD packet to send [16:19:12]OFD Sender: No OFD packet to send [16:19:17]OFD Sender: No OFD packet to send [16:19:22]OFD Sender: No OFD packet to send [16:19:26]accept exits with 7 [16:19:26]New connection [16:19:26]New thread 3067227492 created [16:19:26]Thread 3067084132 joined [16:19:26]Waiting for new connection... [16:19:26] Sock 7.Parse request [16:19:26]Sock 7.Check first char [16:19:26]Sock 7.First char is OK [16:19:26]request: POST /json_proto HTTP/1.0 [16:19:26]Method: POST [16:19:26]URL: /json_proto [16:19:26]Method is POST - this is cgi request [16:19:26]url: /json_proto [16:19:26]query_string will be loaded in cgi processing [16:19:26]execute_cgi json_proto POST (null) [16:19:26]execute_cgi path=json_proto method=POST [16:19:26]POST find Content-Length [16:19:26]Host: 172.17.38.133:8080 [16:19:26]Content-Length: 808 [16:19:26]Content-Type: application/json [16:19:26] [16:19:26]POST finish read [16:19:26]Found Content-Length = 808 [16:19:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673006", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 18.660, "sum" : 1360.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1360.31 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:19:26]execute_script... [16:19: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)673006", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 18.660, "sum" : 1360.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1360.31 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:19:26]POST & json_proto [16:19:26]process_json_proto [16:19:26]json parsed OK: [16:19:26]protocol is kg_v1.0 [16:19:26]action value=close_receipt [16:19:26]process_action close_receipt [16:19:26]cmd_close_receipt [16:19:26]MH_GetDate [16:19:26]Write to MH i2c: F0 00 00 F8 BC A3 [16:19:26]Write i2c OK [16:19:26]MH_I2C_Read... [16:19:26]Read from MH i2c: F0 [16:19:26]MH_I2C_Read... [16:19:26]Read from MH i2c: F0 09 00 [16:19:26]MH_I2C_Read... [16:19:26]Read from MH i2c: F0 09 00 F8 BC 00 1C 05 73 66 BD 8F 7C 64 D2 [16:19:26]GetLastDocTimeStamp 1718813847 [16:19:26]current date 1718813980 [16:19:26]FM_GetShiftState [16:19:26]SAM_PROTO_GetShiftState [16:19:26]wFMCommunicate request_size=4 [16:19:26]MH_SAM_APDU [16:19:26]CAPDU: 80 13 01 00 [16:19:26]Write to MH i2c: E2 08 00 F9 BC 80 13 01 00 00 00 00 00 32 [16:19:26]Write i2c OK [16:19:26]MH_I2C_Read... [16:19:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:19:26]Read from MH i2c: E2 [16:19:26]MH_I2C_Read... [16:19:26]Read from MH i2c: E2 0E 00 [16:19:26]MH_I2C_Read... [16:19:26]Read from MH i2c: E2 0E 00 F9 BC 00 09 00 01 04 26 72 66 00 00 00 00 90 00 40 [16:19:26]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [16:19:26]wFMCommunicate OK [16:19:26]SAM_PROTO_GetShiftState done [16:19:26]FM_GetShiftState done [16:19:26]opened in 1718756868 [16:19:26]opened+sec_in_day 1718843268 [16:19:26]quantity*price = 136031 [16:19:26]sum+1 = 136032 [16:19:26]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1360.31 НСП 1% : 12.04 НДС 12% : 144.46 Наличными: 0.00 Безнал.: 1360.31 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 158 19.06.2024 16:19 Смена: 353 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000875093 ФД: 103728 ФПД: 79156731125279 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T161940&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103728&fm=79156731125279&tin=02508201610067®Number=0000000000092785&sum=136031 [16:19:28]StoreToDocumentArchive [16:19:28]shift 353 fd 103728 [16:19:28]save to /storage/0353/doc_00103728 [16:19:28]save last doc name /storage/0353/doc_00103728 to /storage/kkm_last_doc_name [16:19:28]save OK [16:19:28]Clear old archive folders... [16:19:28]ProcessDocumentItem done err = 0, tmpTLVsize=252 [16:19:28]tlvbuf is 015E0F70 [16:19:28]SAM_PROTO_ClearQueue [16:19:28]wFMCommunicate request_size=4 [16:19:28]MH_SAM_APDU [16:19:28]CAPDU: 80 09 00 00 [16:19:28]Write to MH i2c: E2 08 00 06 BD 80 09 00 00 00 00 00 00 35 [16:19:28]Write i2c OK [16:19:28]MH_I2C_Read... [16:19:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:19:28]Read from MH i2c: E2 [16:19:28]MH_I2C_Read... [16:19:28]Read from MH i2c: E2 03 00 [16:19:28]MH_I2C_Read... [16:19:28]Read from MH i2c: E2 03 00 06 BD 00 90 00 37 [16:19:28]RAPDU: 90 00 [16:19:28]wFMCommunicate OK [16:19:28]SAM_PROTO_ClearQueue done [16:19:28]KKMCreateOFDPacket [16:19:28]OFDProtocolAddRootSTLVToBuf [16:19:28]FM_MakeSignedData [16:19:28]FM_MakeSignedData [16:19:28]SAM_PROTO_SignData [16:19:28]wFMCommunicate request_size=4 [16:19:28]MH_SAM_APDU [16:19:28]CAPDU: 80 0D 01 02 [16:19:28]Write to MH i2c: E2 08 00 07 BD 80 0D 01 02 00 00 00 00 3D [16:19:28]Write i2c OK [16:19:28]MH_I2C_Read... [16:19:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:19:28]Read from MH i2c: E2 [16:19:28]MH_I2C_Read... [16:19:28]Read from MH i2c: E2 03 00 [16:19:28]MH_I2C_Read... [16:19:28]Read from MH i2c: E2 03 00 07 BD 00 90 00 38 [16:19:28]RAPDU: 90 00 [16:19:28]wFMCommunicate OK [16:19:28]wFMCommunicate request_size=255 [16:19:28]MH_SAM_APDU [16:19: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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 E4 48 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 5F 13 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5F 13 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B4 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 38 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5F 13 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 00 00 00 F4 03 04 00 1C 05 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 30 95 01 00 35 04 06 00 [16:19:28]Write to MH i2c: E2 02 01 08 BD 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 E4 48 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 5F 13 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5F 13 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B4 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 38 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5F 13 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 00 00 00 F4 03 04 00 1C 05 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 30 95 01 00 35 04 06 00 00 00 C4 [16:19:28]Write i2c OK [16:19:28]MH_I2C_Read... [16:19:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:19:28]Read from MH i2c: E2 [16:19:28]MH_I2C_Read... [16:19:28]Read from MH i2c: E2 03 00 [16:19:28]MH_I2C_Read... [16:19:28]Read from MH i2c: E2 03 00 08 BD 00 90 00 39 [16:19:28]RAPDU: 90 00 [16:19:28]wFMCommunicate OK [16:19:28]wFMCommunicate request_size=11 [16:19:28]MH_SAM_APDU [16:19:28]CAPDU: 80 0D 02 02 06 47 FE 1C D7 1E 1F [16:19:28]Write to MH i2c: E2 0E 00 09 BD 80 0D 02 02 06 00 47 FE 1C D7 1E 1F 00 00 C1 [16:19:28]Write i2c OK [16:19:28]MH_I2C_Read... [16:19:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:19:28]Read from MH i2c: E2 [16:19:28]MH_I2C_Read... [16:19:28]Read from MH i2c: E2 03 00 [16:19:28]MH_I2C_Read... [16:19:28]Read from MH i2c: E2 03 00 09 BD 00 90 00 3A [16:19:28]RAPDU: 90 00 [16:19:28]wFMCommunicate OK [16:19:28]wFMCommunicate request_size=4 [16:19:28]MH_SAM_APDU [16:19:28]CAPDU: 80 0D 03 02 [16:19:28]Write to MH i2c: E2 08 00 0A BD 80 0D 03 02 00 00 00 00 42 [16:19:28]Write i2c OK [16:19:28]MH_I2C_Read... [16:19:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:19:28]Read from MH i2c: E2 [16:19:28]MH_I2C_Read... [16:19:28]Read from MH i2c: E2 0B 00 [16:19:28]MH_I2C_Read... [16:19:28]Read from MH i2c: E2 0B 00 0A BD 00 9E 90 B7 27 C1 D0 04 3D 90 00 21 [16:19:28]RAPDU: 9E 90 B7 27 C1 D0 04 3D 90 00 [16:19:28]wFMCommunicate OK [16:19:28]SAM_PROTO_SignData done [16:19:28]FM_MakeSignedData done [16:19:28]CreateOFDProtocolMessage [16:19:28]wFMCommunicate request_size=4 [16:19:28]MH_SAM_APDU [16:19:28]CAPDU: 80 11 00 00 [16:19:28]Write to MH i2c: E2 08 00 0B BD 80 11 00 00 00 00 00 00 42 [16:19:28]Write i2c OK [16:19:28]MH_I2C_Read... [16:19:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:19:28]Read from MH i2c: E2 [16:19:28]MH_I2C_Read... [16:19:28]Read from MH i2c: E2 17 00 [16:19:28]MH_I2C_Read... [16:19:28]Read from MH i2c: E2 17 00 0B BD 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 95 [16:19:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [16:19:28]wFMCommunicate OK [16:19:28]CreateOFDProtocolMessage done [16:19:28]OFDSenderStorePacket 103728 [16:19:28]StoreOFDPacket docnum=103728 [16:19:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 F7 C0 08 01 37 09 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 E4 48 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 5F 13 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5F 13 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B4 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 38 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5F 13 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 00 00 00 F4 03 04 00 1C 05 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 30 95 01 00 35 04 06 00 47 FE 1C D7 1E 1F 9E 90 B7 27 C1 D0 04 3D [16:19:28]CheckFolder [16:19:28]dirname=/storage/ofd_packets [16:19:28]CheckFolder done [16:19:28]ProducePacketName [16:19:28]name=ofd_packets/00103728 [16:19:28]NVStorageSaveData ofd_packets/00103728 [16:19:28]File name is /storage/ofd_packets/00103728 [16:19:28]Write 302 bytes [16:19:28]NVStorageSaveData done [16:19:28]OFDSenderStorePacket done [16:19:28]KKMCreateOFDPacket done [16:19:28]NVStorageSaveData kkm_last_timestamp [16:19:28]File name is /storage/kkm_last_timestamp [16:19:28]Write 4 bytes [16:19:28]NVStorageSaveData done [16:19:28]ExternCall_PrintAddStr [16:19:28]wPrintStart [16:19:28]Write to MH i2c: 01 00 00 0C BD C9 [16:19:28]Write i2c OK [16:19:28]MH_I2C_Read... [16:19:28]Read from MH i2c: 01 [16:19:28]MH_I2C_Read... [16:19:28]Read from MH i2c: 01 07 00 [16:19:28]MH_I2C_Read... [16:19:28]Read from MH i2c: 01 07 00 0C BD 00 00 00 00 00 FF 0F DE [16:19:28]RasterBufferAndPrint [16:19:28]line Счет N : (1)673006 [16:19:28]line ИНН: 02508201610067 [16:19:28]line Контрольно-Кассовый Чек [16:19:28]line ПРОДАЖА [16:19:28]line ТРК (МРК, ГНК) : 11 [16:19:28]line Товар: 2710194210 [16:19:28]line ДТ(л)-К-5 [16:19:28]line 18.660 * 72.90 [16:19:28]line = 1360.31 [16:19:28]line НДС 12% НСП 1% [16:19:28]line > о реализуемом товаре [16:19:28]line ИТОГО: 1360.31 [16:19:28]line НСП 1% : 12.04 [16:19:28]line НДС 12% : 144.46 [16:19:28]line Наличными: 0.00 [16:19:28]line Безнал.: 1360.31 [16:19:28]line Место: АЗС № 120 "Партнер Нефть" [16:19:28]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [16:19:28]line СНО: Общий режим [16:19:28]line Чек 158 19.06.2024 16:19 [16:19:28]line Смена: 353 ФФД: 1.0 [16:19:28]line ЗНМ: 0300000164 [16:19:28]line РНМ: 0000000000092785 [16:19:28]line Версия ККМ: 001 [16:19:28]line Платежная система: O! деньги [16:19:28]line ФМ: 0000000000875093 [16:19:28]line ФД: 103728 [16:19:28]line ФПД: 79156731125279 [16:19:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T161940&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103728&fm=79156731125279&tin=02508201610067®Number=0000000000092785&sum=136031 [16:19:28]OFD Sender: Processing packet 103728 [packets to send 17, broken 16] [16:19:28]ProducePacketName [16:19:28]name=ofd_packets/00103728 [16:19:28]OFD Sender: To server: pG, [16:19:28]CommunicateWithHost lk.salyk.kg:30040 [16:19:28]ConnectInit lk.salyk.kg [16:19:28]written 0, free lines is 4095 [16:19:29]Connected sock=10 [16:19: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 39 33 10 01 00 00 F7 C0 08 01 37 09 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 E4 48 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 5F 13 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5F 13 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B4 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 38 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5F 13 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 00 00 00 F4 03 04 00 1C 05 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 30 95 01 00 35 04 06 00 47 FE 1C D7 1E 1F 9E 90 B7 27 C1 D0 04 3D [16:19: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 39 33 4F 00 00 00 B2 FF 47 00 19 CD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 30 95 01 00 F4 03 04 00 A4 AB 72 66 B6 04 01 00 00 75 52 7F 64 93 52 E8 BB [16:19:29]CommunicateWithHost err = 0 [16:19:29]CheckOFDResponse [16:19:29]1017 (14) - 77093643461234 [16:19:29]1041 (16) - 0000000000875093 [16:19:29]1040 (4) - 103728 [16:19:29]1012 (4) - 19.06.2024 09:57 [16:19:29]1206 (1) - 0 [16:19:29]OFD Sender: Remove packet 103728 [16:19:29]ProducePacketName [16:19:29]name=ofd_packets/00103728 [16:19:29]NVStorageDeleteData [16:19:29]Write to MH i2c: 01 00 00 36 BD F3 [16:19:29]Write i2c OK [16:19:29]MH_I2C_Read... [16:19:29]Read from MH i2c: 01 [16:19:29]MH_I2C_Read... [16:19:29]Read from MH i2c: 01 07 00 [16:19:29]MH_I2C_Read... [16:19:29]Read from MH i2c: 01 07 00 36 BD 00 00 00 00 00 01 0D 08 [16:19:29]RasterBufferAndPrint [16:19:29]line [16:19:29]line [16:19:29]line [16:19:29]line [16:19:29]line [16:19:29]written 0, free lines is 3338 [16:19:29]MH_Cut [16:19:29]Write to MH i2c: D1 01 00 3D BD 01 CC [16:19:29]Write i2c OK [16:19:29]MH_I2C_Read... [16:19:29]Read from MH i2c: D1 [16:19:29]MH_I2C_Read... [16:19:29]Read from MH i2c: D1 01 00 [16:19:29]MH_I2C_Read... [16:19:29]Read from MH i2c: D1 01 00 3D BD 00 CB [16:19:29]Write to MH i2c: 01 00 00 3E BD FB [16:19:29]Write i2c OK [16:19:29]MH_I2C_Read... [16:19:29]OFD Sender: No OFD packet to send [16:19:30]*** Cut start [16:19:30]*** Partial cut [16:19:30]*** CUTSNS_PIN = 1 [16:19:30]*** CUTSNS_PIN = 0 [16:19:30]*** Brake cut motor [16:19:30]Read from MH i2c: 01 [16:19:30]MH_I2C_Read... [16:19:30]*** Stop cut motor [16:19:30]*** Cut end [16:19:30]Read from MH i2c: 01 07 00 [16:19:30]MH_I2C_Read... [16:19:30]Read from MH i2c: 01 07 00 3E BD 00 00 00 00 00 FF 0F 10 [16:19:30]process_action close_receipt done [16:19:30]requested_data is exist [16:19:30]produce_requested_data [16:19:30]requested_item fm.sn is exist - process it [16:19:30]wFMCommunicate request_size=4 [16:19:30]MH_SAM_APDU [16:19:30]CAPDU: 80 11 00 00 [16:19:30]Write to MH i2c: E2 08 00 3F BD 80 11 00 00 00 00 00 00 76 [16:19:30]Write i2c OK [16:19:30]MH_I2C_Read... [16:19:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:19:30]Read from MH i2c: E2 [16:19:30]MH_I2C_Read... [16:19:30]Read from MH i2c: E2 17 00 [16:19:30]MH_I2C_Read... [16:19:30]Read from MH i2c: E2 17 00 3F BD 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 C9 [16:19:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [16:19:30]wFMCommunicate OK [16:19:30]requested_item fd.num is exist - process it [16:19:30]SAM_PROTO_GetFieldsCounters [16:19:30]wFMCommunicate request_size=4 [16:19:30]MH_SAM_APDU [16:19:30]CAPDU: 80 13 00 00 [16:19:30]Write to MH i2c: E2 08 00 40 BD 80 13 00 00 00 00 00 00 79 [16:19:30]Write i2c OK [16:19:30]MH_I2C_Read... [16:19:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:19:30]Read from MH i2c: E2 [16:19:30]MH_I2C_Read... [16:19:30]Read from MH i2c: E2 62 00 [16:19:30]MH_I2C_Read... [16:19:30]Read from MH i2c: E2 62 00 40 BD 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 30 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 9E 00 00 00 5E 04 04 00 9E 00 00 00 57 04 04 00 9F 00 00 00 19 04 04 00 00 00 00 00 90 00 A2 [16:19:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 30 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 9E 00 00 00 5E 04 04 00 9E 00 00 00 57 04 04 00 9F 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:19:30]wFMCommunicate OK [16:19:30]SAM_PROTO_GetFieldsCounters done [16:19:30]requested_item shift.num is exist - process it [16:19:30]requested_item shift.opened is exist - process it [16:19:30]req_shift_opened [16:19:30]FM_GetShiftState [16:19:30]SAM_PROTO_GetShiftState [16:19:30]wFMCommunicate request_size=4 [16:19:30]MH_SAM_APDU [16:19:30]CAPDU: 80 13 01 00 [16:19:30]Write to MH i2c: E2 08 00 41 BD 80 13 01 00 00 00 00 00 7B [16:19:30]Write i2c OK [16:19:30]MH_I2C_Read... [16:19:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:19:30]Read from MH i2c: E2 [16:19:30]MH_I2C_Read... [16:19:30]Read from MH i2c: E2 0E 00 [16:19:30]MH_I2C_Read... [16:19:30]Read from MH i2c: E2 0E 00 41 BD 00 09 00 01 04 26 72 66 00 00 00 00 90 00 89 [16:19:30]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [16:19:30]wFMCommunicate OK [16:19:30]SAM_PROTO_GetShiftState done [16:19:30]FM_GetShiftState done [16:19:30]req_shift_opened done [16:19:30]requested_item shift.open_date is exist - process it [16:19:30]req_shift_open_date [16:19:30]req_shift_open_date done [16:19:30]produce_requested_data done [16:19:30]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103728,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [16:19:30]process_action_free close_receipt [16:19:30]json_value_free [16:19:30]json_value_free done [16:19:30]process_json_proto returns [16:19:30]Send response to host [16:19:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103728,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [16:19:31]free response buf [16:19:31]execute_script done [16:19:31]execute_script returns [16:19:31]free content buf [16:19:31]Sock 7.Close socket [16:19:31]Sock 7.Thread stoped [16:19:34]OFD Sender: No OFD packet to send [16:19:39]OFD Sender: No OFD packet to send [16:19:44]OFD Sender: No OFD packet to send [16:19:49]OFD Sender: No OFD packet to send [16:19:54]OFD Sender: No OFD packet to send [16:19:59]OFD Sender: No OFD packet to send [16:20:04]OFD Sender: No OFD packet to send [16:20:09]OFD Sender: No OFD packet to send [16:20:14]OFD Sender: No OFD packet to send [16:20:19]OFD Sender: No OFD packet to send [16:20:24]OFD Sender: No OFD packet to send [16:20:29]OFD Sender: No OFD packet to send [16:20:34]OFD Sender: No OFD packet to send [16:20:39]OFD Sender: No OFD packet to send [16:20:44]OFD Sender: No OFD packet to send [16:20:49]OFD Sender: No OFD packet to send [16:20:54]OFD Sender: No OFD packet to send [16:20:59]OFD Sender: No OFD packet to send [16:21:04]OFD Sender: No OFD packet to send [16:21:09]OFD Sender: No OFD packet to send [16:21:14]OFD Sender: No OFD packet to send [16:21:19]OFD Sender: No OFD packet to send [16:21:24]OFD Sender: No OFD packet to send [16:21:29]OFD Sender: No OFD packet to send [16:21:34]OFD Sender: No OFD packet to send [16:21:39]OFD Sender: No OFD packet to send [16:21:44]OFD Sender: No OFD packet to send [16:21:49]OFD Sender: No OFD packet to send [16:21:54]OFD Sender: No OFD packet to send [16:21:59]OFD Sender: No OFD packet to send [16:22:04]OFD Sender: No OFD packet to send [16:22:10]OFD Sender: No OFD packet to send [16:22:13]accept exits with 9 [16:22:13]New connection [16:22:13]New thread 3067084132 created [16:22:13]Thread 3067227492 joined [16:22:13]Waiting for new connection... [16:22:13] Sock 9.Parse request [16:22:13]Sock 9.Check first char [16:22:13]Sock 9.First char is OK [16:22:13]request: POST /json_proto HTTP/1.0 [16:22:13]Method: POST [16:22:13]URL: /json_proto [16:22:13]Method is POST - this is cgi request [16:22:13]url: /json_proto [16:22:13]query_string will be loaded in cgi processing [16:22:13]execute_cgi json_proto POST (null) [16:22:13]execute_cgi path=json_proto method=POST [16:22:13]POST find Content-Length [16:22:13]Host: 172.17.38.133:8080 [16:22:13]Content-Length: 677 [16:22:13]Content-Type: application/json [16:22:13] [16:22:13]POST finish read [16:22:13]Found Content-Length = 677 [16:22:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673007", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:22:13]execute_script... [16:22:13]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673007", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:22:13]POST & json_proto [16:22:13]process_json_proto [16:22:13]json parsed OK: [16:22:13]protocol is kg_v1.0 [16:22:13]action value=close_receipt [16:22:13]process_action close_receipt [16:22:13]cmd_close_receipt [16:22:13]MH_GetDate [16:22:13]Write to MH i2c: F0 00 00 42 BD EE [16:22:13]Write i2c OK [16:22:13]MH_I2C_Read... [16:22:13]Read from MH i2c: F0 [16:22:13]MH_I2C_Read... [16:22:13]Read from MH i2c: F0 09 00 [16:22:13]MH_I2C_Read... [16:22:13]Read from MH i2c: F0 09 00 42 BD 00 C2 05 73 66 BD 8F 7C 64 C3 [16:22:13]GetLastDocTimeStamp 1718813980 [16:22:13]current date 1718814146 [16:22:13]FM_GetShiftState [16:22:13]SAM_PROTO_GetShiftState [16:22:13]wFMCommunicate request_size=4 [16:22:13]MH_SAM_APDU [16:22:13]CAPDU: 80 13 01 00 [16:22:13]Write to MH i2c: E2 08 00 43 BD 80 13 01 00 00 00 00 00 7D [16:22:13]Write i2c OK [16:22:13]MH_I2C_Read... [16:22:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:22:13]Read from MH i2c: E2 [16:22:13]MH_I2C_Read... [16:22:13]Read from MH i2c: E2 0E 00 [16:22:13]MH_I2C_Read... [16:22:13]Read from MH i2c: E2 0E 00 43 BD 00 09 00 01 04 26 72 66 00 00 00 00 90 00 8B [16:22:13]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [16:22:13]wFMCommunicate OK [16:22:13]SAM_PROTO_GetShiftState done [16:22:13]FM_GetShiftState done [16:22:13]opened in 1718756868 [16:22:13]opened+sec_in_day 1718843268 [16:22:13]quantity*price = 50065 [16:22:13]sum+1 = 50067 [16:22:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.17 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 159 19.06.2024 16:22 Смена: 353 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103729 ФПД: 256853096844251 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T162226&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103729&fm=256853096844251&tin=02508201610067®Number=0000000000092785&sum=50000 [16:22:14]StoreToDocumentArchive [16:22:14]shift 353 fd 103729 [16:22:14]save to /storage/0353/doc_00103729 [16:22:14]save last doc name /storage/0353/doc_00103729 to /storage/kkm_last_doc_name [16:22:14]save OK [16:22:14]Clear old archive folders... [16:22:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:22:14]tlvbuf is 01636FC0 [16:22:14]SAM_PROTO_ClearQueue [16:22:14]wFMCommunicate request_size=4 [16:22:14]MH_SAM_APDU [16:22:14]CAPDU: 80 09 00 00 [16:22:14]Write to MH i2c: E2 08 00 50 BD 80 09 00 00 00 00 00 00 7F [16:22:14]Write i2c OK [16:22:14]MH_I2C_Read... [16:22:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:22:14]Read from MH i2c: E2 [16:22:14]MH_I2C_Read... [16:22:14]Read from MH i2c: E2 03 00 [16:22:14]MH_I2C_Read... [16:22:14]Read from MH i2c: E2 03 00 50 BD 00 90 00 81 [16:22:14]RAPDU: 90 00 [16:22:14]wFMCommunicate OK [16:22:14]SAM_PROTO_ClearQueue done [16:22:14]KKMCreateOFDPacket [16:22:14]OFDProtocolAddRootSTLVToBuf [16:22:14]FM_MakeSignedData [16:22:14]FM_MakeSignedData [16:22:14]SAM_PROTO_SignData [16:22:14]wFMCommunicate request_size=4 [16:22:14]MH_SAM_APDU [16:22:14]CAPDU: 80 0D 01 02 [16:22:14]Write to MH i2c: E2 08 00 51 BD 80 0D 01 02 00 00 00 00 87 [16:22:14]Write i2c OK [16:22:14]MH_I2C_Read... [16:22:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:22:14]Read from MH i2c: E2 [16:22:14]MH_I2C_Read... [16:22:14]Read from MH i2c: E2 03 00 [16:22:14]MH_I2C_Read... [16:22:14]Read from MH i2c: E2 03 00 51 BD 00 90 00 82 [16:22:14]RAPDU: 90 00 [16:22:14]wFMCommunicate OK [16:22:14]wFMCommunicate request_size=255 [16:22:14]MH_SAM_APDU [16:22: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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 00 00 00 F4 03 04 00 C2 05 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 31 95 01 00 35 04 06 00 E9 [16:22:14]Write to MH i2c: E2 02 01 52 BD 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 00 00 00 F4 03 04 00 C2 05 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 31 95 01 00 35 04 06 00 E9 00 00 92 [16:22:14]Write i2c OK [16:22:14]MH_I2C_Read... [16:22:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:22:14]Read from MH i2c: E2 [16:22:14]MH_I2C_Read... [16:22:14]Read from MH i2c: E2 03 00 [16:22:14]MH_I2C_Read... [16:22:14]Read from MH i2c: E2 03 00 52 BD 00 90 00 83 [16:22:14]RAPDU: 90 00 [16:22:14]wFMCommunicate OK [16:22:14]wFMCommunicate request_size=10 [16:22:14]MH_SAM_APDU [16:22:14]CAPDU: 80 0D 02 02 05 9B 45 98 CB DB [16:22:14]Write to MH i2c: E2 0D 00 53 BD 80 0D 02 02 05 00 9B 45 98 CB DB 00 00 B2 [16:22:14]Write i2c OK [16:22:14]MH_I2C_Read... [16:22:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:22:14]Read from MH i2c: E2 [16:22:14]MH_I2C_Read... [16:22:14]Read from MH i2c: E2 03 00 [16:22:14]MH_I2C_Read... [16:22:14]Read from MH i2c: E2 03 00 53 BD 00 90 00 84 [16:22:14]RAPDU: 90 00 [16:22:14]wFMCommunicate OK [16:22:14]wFMCommunicate request_size=4 [16:22:14]MH_SAM_APDU [16:22:14]CAPDU: 80 0D 03 02 [16:22:14]Write to MH i2c: E2 08 00 54 BD 80 0D 03 02 00 00 00 00 8C [16:22:14]Write i2c OK [16:22:14]MH_I2C_Read... [16:22:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:22:14]Read from MH i2c: E2 [16:22:14]MH_I2C_Read... [16:22:14]Read from MH i2c: E2 0B 00 [16:22:14]MH_I2C_Read... [16:22:14]Read from MH i2c: E2 0B 00 54 BD 00 2F 4F E8 79 98 21 B5 27 90 00 01 [16:22:14]RAPDU: 2F 4F E8 79 98 21 B5 27 90 00 [16:22:14]wFMCommunicate OK [16:22:14]SAM_PROTO_SignData done [16:22:14]FM_MakeSignedData done [16:22:14]CreateOFDProtocolMessage [16:22:14]wFMCommunicate request_size=4 [16:22:14]MH_SAM_APDU [16:22:14]CAPDU: 80 11 00 00 [16:22:14]Write to MH i2c: E2 08 00 55 BD 80 11 00 00 00 00 00 00 8C [16:22:14]Write i2c OK [16:22:14]MH_I2C_Read... [16:22:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:22:14]Read from MH i2c: E2 [16:22:14]MH_I2C_Read... [16:22:14]Read from MH i2c: E2 17 00 [16:22:14]MH_I2C_Read... [16:22:14]Read from MH i2c: E2 17 00 55 BD 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 DF [16:22:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [16:22:14]wFMCommunicate OK [16:22:14]CreateOFDProtocolMessage done [16:22:14]OFDSenderStorePacket 103729 [16:22:14]StoreOFDPacket docnum=103729 [16:22:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 95 D8 07 01 9D 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 00 00 00 F4 03 04 00 C2 05 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 31 95 01 00 35 04 06 00 E9 9B 45 98 CB DB 2F 4F E8 79 98 21 B5 27 [16:22:14]CheckFolder [16:22:14]dirname=/storage/ofd_packets [16:22:14]CheckFolder done [16:22:14]ProducePacketName [16:22:14]name=ofd_packets/00103729 [16:22:14]NVStorageSaveData ofd_packets/00103729 [16:22:14]File name is /storage/ofd_packets/00103729 [16:22:14]Write 301 bytes [16:22:14]NVStorageSaveData done [16:22:14]OFDSenderStorePacket done [16:22:14]KKMCreateOFDPacket done [16:22:14]NVStorageSaveData kkm_last_timestamp [16:22:14]File name is /storage/kkm_last_timestamp [16:22:14]Write 4 bytes [16:22:14]NVStorageSaveData done [16:22:14]ExternCall_PrintAddStr [16:22:14]wPrintStart [16:22:14]Write to MH i2c: 01 00 00 56 BD 13 [16:22:14]Write i2c OK [16:22:14]MH_I2C_Read... [16:22:14]Read from MH i2c: 01 [16:22:14]MH_I2C_Read... [16:22:14]Read from MH i2c: 01 07 00 [16:22:14]MH_I2C_Read... [16:22:14]Read from MH i2c: 01 07 00 56 BD 00 00 00 00 00 FF 0F 28 [16:22:14]RasterBufferAndPrint [16:22:14]line Счет N : (1)673007 [16:22:14]line ИНН: 02508201610067 [16:22:14]line Контрольно-Кассовый Чек [16:22:14]line ПРОДАЖА [16:22:14]line ТРК (МРК, ГНК) : 42 [16:22:14]line Товар: 2710124130 [16:22:14]line Аи-92-К-5 [16:22:14]line 7.540 * 66.40 [16:22:14]line = 500.66 [16:22:14]line НДС 12% НСП 1% [16:22:14]line > о реализуемом товаре [16:22:14]line ОКРУГЛЕНИЕ: -0.66 [16:22:14]line ИТОГО: 500.00 [16:22:14]line Внесено: 500.00 [16:22:14]line СДАЧА: 0.00 [16:22:14]line НСП 1% : 4.43 [16:22:14]line НДС 12% : 53.17 [16:22:14]line Наличными: 500.00 [16:22:14]line Безнал.: 0.00 [16:22:14]line Место: АЗС № 120 "Партнер Нефть" [16:22:14]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [16:22:14]line СНО: Общий режим [16:22:14]line Чек 159 19.06.2024 16:22 [16:22:14]line Смена: 353 ФФД: 1.0 [16:22:14]line ЗНМ: 0300000164 [16:22:14]line РНМ: 0000000000092785 [16:22:14]line Версия ККМ: 001 [16:22:14]line ФМ: 0000000000875093 [16:22:14]line ФД: 103729 [16:22:14]line ФПД: 256853096844251 [16:22:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T162226&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103729&fm=256853096844251&tin=02508201610067®Number=0000000000092785&sum=50000 [16:22:15]OFD Sender: Processing packet 103729 [packets to send 17, broken 16] [16:22:15]ProducePacketName [16:22:15]name=ofd_packets/00103729 [16:22:15]OFD Sender: To server: pG, [16:22:15]CommunicateWithHost lk.salyk.kg:30040 [16:22:15]ConnectInit lk.salyk.kg [16:22:15]written 0, free lines is 4095 [16:22:15]Connected sock=10 [16:22:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 95 D8 07 01 9D 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 00 00 00 F4 03 04 00 C2 05 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 31 95 01 00 35 04 06 00 E9 9B 45 98 CB DB 2F 4F E8 79 98 21 B5 27 [16:22: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 39 33 4F 00 00 00 D6 6B 47 00 60 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 39 33 10 04 04 00 31 95 01 00 F4 03 04 00 4A AC 72 66 B6 04 01 00 00 2A 09 12 7D FC 88 99 9B [16:22:15]CommunicateWithHost err = 0 [16:22:15]CheckOFDResponse [16:22:15]1017 (14) - 77093643461234 [16:22:15]1041 (16) - 0000000000875093 [16:22:15]1040 (4) - 103729 [16:22:15]1012 (4) - 19.06.2024 10:00 [16:22:15]1206 (1) - 0 [16:22:15]OFD Sender: Remove packet 103729 [16:22:15]ProducePacketName [16:22:15]name=ofd_packets/00103729 [16:22:15]NVStorageDeleteData [16:22:15]Write to MH i2c: 01 00 00 81 BD 3E [16:22:15]Write i2c OK [16:22:15]MH_I2C_Read... [16:22:15]Read from MH i2c: 01 [16:22:15]MH_I2C_Read... [16:22:15]Read from MH i2c: 01 07 00 [16:22:15]MH_I2C_Read... [16:22:15]Read from MH i2c: 01 07 00 81 BD 00 00 00 00 00 FE 0C 4F [16:22:15]RasterBufferAndPrint [16:22:15]line [16:22:15]line [16:22:15]line [16:22:15]line [16:22:15]line [16:22:15]written 0, free lines is 3335 [16:22:15]MH_Cut [16:22:15]Write to MH i2c: D1 01 00 88 BD 01 17 [16:22:15]Write i2c OK [16:22:15]MH_I2C_Read... [16:22:15]Read from MH i2c: D1 [16:22:15]MH_I2C_Read... [16:22:15]Read from MH i2c: D1 01 00 [16:22:15]MH_I2C_Read... [16:22:15]Read from MH i2c: D1 01 00 88 BD 00 16 [16:22:15]Write to MH i2c: 01 00 00 89 BD 46 [16:22:15]Write i2c OK [16:22:15]MH_I2C_Read... [16:22:16]OFD Sender: No OFD packet to send [16:22:16]*** Cut start [16:22:16]*** Partial cut [16:22:16]*** CUTSNS_PIN = 1 [16:22:16]*** CUTSNS_PIN = 0 [16:22:16]*** Brake cut motor [16:22:17]Read from MH i2c: 01 [16:22:17]MH_I2C_Read... [16:22:17]*** Stop cut motor [16:22:17]*** Cut end [16:22:17]Read from MH i2c: 01 07 00 [16:22:17]MH_I2C_Read... [16:22:17]Read from MH i2c: 01 07 00 89 BD 00 00 00 00 00 FF 0F 5B [16:22:17]process_action close_receipt done [16:22:17]requested_data is exist [16:22:17]produce_requested_data [16:22:17]requested_item fm.sn is exist - process it [16:22:17]wFMCommunicate request_size=4 [16:22:17]MH_SAM_APDU [16:22:17]CAPDU: 80 11 00 00 [16:22:17]Write to MH i2c: E2 08 00 8A BD 80 11 00 00 00 00 00 00 C1 [16:22:17]Write i2c OK [16:22:17]MH_I2C_Read... [16:22:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:22:17]Read from MH i2c: E2 [16:22:17]MH_I2C_Read... [16:22:17]Read from MH i2c: E2 17 00 [16:22:17]MH_I2C_Read... [16:22:17]Read from MH i2c: E2 17 00 8A BD 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 14 [16:22:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [16:22:17]wFMCommunicate OK [16:22:17]requested_item fd.num is exist - process it [16:22:17]SAM_PROTO_GetFieldsCounters [16:22:17]wFMCommunicate request_size=4 [16:22:17]MH_SAM_APDU [16:22:17]CAPDU: 80 13 00 00 [16:22:17]Write to MH i2c: E2 08 00 8B BD 80 13 00 00 00 00 00 00 C4 [16:22:17]Write i2c OK [16:22:17]MH_I2C_Read... [16:22:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:22:17]Read from MH i2c: E2 [16:22:17]MH_I2C_Read... [16:22:17]Read from MH i2c: E2 62 00 [16:22:17]MH_I2C_Read... [16:22:17]Read from MH i2c: E2 62 00 8B BD 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 31 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 9F 00 00 00 5E 04 04 00 9F 00 00 00 57 04 04 00 A0 00 00 00 19 04 04 00 00 00 00 00 90 00 F1 [16:22: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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 31 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 9F 00 00 00 5E 04 04 00 9F 00 00 00 57 04 04 00 A0 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:22:17]wFMCommunicate OK [16:22:17]SAM_PROTO_GetFieldsCounters done [16:22:17]requested_item shift.num is exist - process it [16:22:17]requested_item shift.opened is exist - process it [16:22:17]req_shift_opened [16:22:17]FM_GetShiftState [16:22:17]SAM_PROTO_GetShiftState [16:22:17]wFMCommunicate request_size=4 [16:22:17]MH_SAM_APDU [16:22:17]CAPDU: 80 13 01 00 [16:22:17]Write to MH i2c: E2 08 00 8C BD 80 13 01 00 00 00 00 00 C6 [16:22:17]Write i2c OK [16:22:17]MH_I2C_Read... [16:22:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:22:17]Read from MH i2c: E2 [16:22:17]MH_I2C_Read... [16:22:17]Read from MH i2c: E2 0E 00 [16:22:17]MH_I2C_Read... [16:22:17]Read from MH i2c: E2 0E 00 8C BD 00 09 00 01 04 26 72 66 00 00 00 00 90 00 D4 [16:22:17]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [16:22:17]wFMCommunicate OK [16:22:17]SAM_PROTO_GetShiftState done [16:22:17]FM_GetShiftState done [16:22:17]req_shift_opened done [16:22:17]requested_item shift.open_date is exist - process it [16:22:17]req_shift_open_date [16:22:17]req_shift_open_date done [16:22:17]produce_requested_data done [16:22:17]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103729,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [16:22:17]process_action_free close_receipt [16:22:17]json_value_free [16:22:17]json_value_free done [16:22:17]process_json_proto returns [16:22:17]Send response to host [16:22:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103729,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [16:22:17]free response buf [16:22:17]execute_script done [16:22:17]execute_script returns [16:22:17]free content buf [16:22:17]Sock 9.Close socket [16:22:17]Sock 9.Thread stoped [16:22:21]OFD Sender: No OFD packet to send [16:22:26]OFD Sender: No OFD packet to send [16:22:31]OFD Sender: No OFD packet to send [16:22:36]OFD Sender: No OFD packet to send [16:22:41]OFD Sender: No OFD packet to send [16:22:46]OFD Sender: No OFD packet to send [16:22:51]OFD Sender: No OFD packet to send [16:22:56]OFD Sender: No OFD packet to send [16:23:01]OFD Sender: No OFD packet to send [16:23:06]OFD Sender: No OFD packet to send [16:23:11]OFD Sender: No OFD packet to send [16:23:16]OFD Sender: No OFD packet to send [16:23:21]OFD Sender: No OFD packet to send [16:23:26]OFD Sender: No OFD packet to send [16:23:31]OFD Sender: No OFD packet to send [16:23:36]OFD Sender: No OFD packet to send [16:23:41]OFD Sender: No OFD packet to send [16:23:46]OFD Sender: No OFD packet to send [16:23:51]OFD Sender: No OFD packet to send [16:23:56]OFD Sender: No OFD packet to send [16:24:01]OFD Sender: No OFD packet to send [16:24:06]OFD Sender: No OFD packet to send [16:24:09]accept exits with 7 [16:24:09]New connection [16:24:09]New thread 3067227492 created [16:24:09]Thread 3067084132 joined [16:24:09]Waiting for new connection... [16:24:09] Sock 7.Parse request [16:24:09]Sock 7.Check first char [16:24:09]Sock 7.First char is OK [16:24:09]request: POST /json_proto HTTP/1.0 [16:24:09]Method: POST [16:24:09]URL: /json_proto [16:24:09]Method is POST - this is cgi request [16:24:09]url: /json_proto [16:24:09]query_string will be loaded in cgi processing [16:24:09]execute_cgi json_proto POST (null) [16:24:09]execute_cgi path=json_proto method=POST [16:24:09]POST find Content-Length [16:24:09]Host: 172.17.38.133:8080 [16:24:09]Content-Length: 1173 [16:24:09]Content-Type: application/json [16:24:09] [16:24:09]POST finish read [16:24:09]Found Content-Length = 1173 [16:24:09]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 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. \u000A\u0421\u0447\u0435\u0442 N : (1)673008\u000A19.06.2024 16:01\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 21\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-5\u000A 10.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 729.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30101762\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:24:09]execute_script... [16:24:09]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 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. \u000A\u0421\u0447\u0435\u0442 N : (1)673008\u000A19.06.2024 16:01\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 21\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-5\u000A 10.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 729.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30101762\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:24:09]POST & json_proto [16:24:09]process_json_proto [16:24:09]json parsed OK: [16:24:09]protocol is kg_v1.0 [16:24:09]action value=print_text [16:24:09]process_action print_text [16:24:09]cmd_print_text [16:24:09]ExternCall_PrintAddStr [16:24:09]wPrintStart [16:24:09]Write to MH i2c: 01 00 00 8D BD 4A [16:24:09]Write i2c OK [16:24:09]MH_I2C_Read... [16:24:09]Read from MH i2c: 01 [16:24:09]MH_I2C_Read... [16:24:09]Read from MH i2c: 01 07 00 [16:24:09]MH_I2C_Read... [16:24:09]Read from MH i2c: 01 07 00 8D BD 00 00 00 00 00 FF 0F 5F [16:24:09]RasterBufferAndPrint [16:24:09]line *****ТОВАРНЫЙ ЧЕК***** [16:24:09]line АЗС 120 [16:24:09]line Партнер нефть [16:24:09]line 02508201610067 [16:24:09]line Кассир : Байбугуева Г. [16:24:09]line Счет N : (1)673008 [16:24:09]line 19.06.2024 16:01 [16:24:09]line ПРОДАЖА [16:24:09]line ТРК (МРК, ГНК): 21 [16:24:09]line Вид ГСМ : 2710194210 [16:24:09]line ДТ(л)-К-5 [16:24:09]line 10.000 x 72.90 [16:24:09]line ИТОГ: 729.00 [16:24:09]line Тип оплаты: Талоны: ТК ГПНА Online [16:24:09]line 30101762 [16:24:09]line ______________________ [16:24:09]line (подпись) [16:24:09]written 0, free lines is 4095 [16:24:09]Write to MH i2c: 01 00 00 A1 BD 5E [16:24:09]Write i2c OK [16:24:09]MH_I2C_Read... [16:24:09]Read from MH i2c: 01 [16:24:09]MH_I2C_Read... [16:24:09]Read from MH i2c: 01 07 00 [16:24:09]MH_I2C_Read... [16:24:09]Read from MH i2c: 01 07 00 A1 BD 00 00 00 00 00 10 0E 83 [16:24:09]RasterBufferAndPrint [16:24:09]line [16:24:09]line [16:24:09]line [16:24:09]line [16:24:09]line [16:24:09]written 0, free lines is 3602 [16:24:09]MH_Cut [16:24:09]Write to MH i2c: D1 01 00 A8 BD 01 37 [16:24:09]Write i2c OK [16:24:09]MH_I2C_Read... [16:24:09]Read from MH i2c: D1 [16:24:09]MH_I2C_Read... [16:24:09]Read from MH i2c: D1 01 00 [16:24:09]MH_I2C_Read... [16:24:09]Read from MH i2c: D1 01 00 A8 BD 00 36 [16:24:09]Write to MH i2c: 01 00 00 A9 BD 66 [16:24:09]Write i2c OK [16:24:09]MH_I2C_Read... [16:24:10]*** Cut start [16:24:10]*** Partial cut [16:24:10]*** CUTSNS_PIN = 1 [16:24:10]*** CUTSNS_PIN = 0 [16:24:10]*** Brake cut motor [16:24:11]Read from MH i2c: 01 [16:24:11]MH_I2C_Read... [16:24:11]Read from MH i2c: 01 07 00 [16:24:11]MH_I2C_Read... [16:24:11]*** Stop cut motor [16:24:11]*** Cut end [16:24:11]Read from MH i2c: 01 07 00 A9 BD 00 00 00 00 00 FF 0F 7B [16:24:11]process_action print_text done [16:24:11]requested_data is exist [16:24:11]produce_requested_data [16:24:11]requested_item fm.sn is exist - process it [16:24:11]wFMCommunicate request_size=4 [16:24:11]MH_SAM_APDU [16:24:11]CAPDU: 80 11 00 00 [16:24:11]Write to MH i2c: E2 08 00 AA BD 80 11 00 00 00 00 00 00 E1 [16:24:11]Write i2c OK [16:24:11]MH_I2C_Read... [16:24:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:24:11]Read from MH i2c: E2 [16:24:11]MH_I2C_Read... [16:24:11]Read from MH i2c: E2 17 00 [16:24:11]MH_I2C_Read... [16:24:11]Read from MH i2c: E2 17 00 AA BD 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 34 [16:24:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [16:24:11]wFMCommunicate OK [16:24:11]requested_item fd.num is exist - process it [16:24:11]SAM_PROTO_GetFieldsCounters [16:24:11]wFMCommunicate request_size=4 [16:24:11]MH_SAM_APDU [16:24:11]CAPDU: 80 13 00 00 [16:24:11]Write to MH i2c: E2 08 00 AB BD 80 13 00 00 00 00 00 00 E4 [16:24:11]Write i2c OK [16:24:11]MH_I2C_Read... [16:24:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:24:11]Read from MH i2c: E2 [16:24:11]MH_I2C_Read... [16:24:11]Read from MH i2c: E2 62 00 [16:24:11]MH_I2C_Read... [16:24:11]Read from MH i2c: E2 62 00 AB BD 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 31 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 9F 00 00 00 5E 04 04 00 9F 00 00 00 57 04 04 00 A0 00 00 00 19 04 04 00 00 00 00 00 90 00 11 [16:24: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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 31 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 9F 00 00 00 5E 04 04 00 9F 00 00 00 57 04 04 00 A0 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:24:11]wFMCommunicate OK [16:24:11]SAM_PROTO_GetFieldsCounters done [16:24:11]requested_item shift.num is exist - process it [16:24:11]requested_item shift.opened is exist - process it [16:24:11]req_shift_opened [16:24:11]FM_GetShiftState [16:24:11]SAM_PROTO_GetShiftState [16:24:11]wFMCommunicate request_size=4 [16:24:11]MH_SAM_APDU [16:24:11]CAPDU: 80 13 01 00 [16:24:11]Write to MH i2c: E2 08 00 AC BD 80 13 01 00 00 00 00 00 E6 [16:24:11]Write i2c OK [16:24:11]MH_I2C_Read... [16:24:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:24:11]Read from MH i2c: E2 [16:24:11]MH_I2C_Read... [16:24:11]Read from MH i2c: E2 0E 00 [16:24:11]MH_I2C_Read... [16:24:11]Read from MH i2c: E2 0E 00 AC BD 00 09 00 01 04 26 72 66 00 00 00 00 90 00 F4 [16:24:11]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [16:24:11]wFMCommunicate OK [16:24:11]SAM_PROTO_GetShiftState done [16:24:11]FM_GetShiftState done [16:24:11]req_shift_opened done [16:24:11]requested_item shift.open_date is exist - process it [16:24:11]req_shift_open_date [16:24:11]req_shift_open_date done [16:24:11]produce_requested_data done [16:24:11]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103729,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [16:24:11]process_action_free print_text [16:24:11]json_value_free [16:24:11]json_value_free done [16:24:11]process_json_proto returns [16:24:11]Send response to host [16:24:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103729,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [16:24:11]free response buf [16:24:11]execute_script done [16:24:11]execute_script returns [16:24:11]free content buf [16:24:11]Sock 7.Close socket [16:24:11]Sock 7.Thread stoped [16:24:11]OFD Sender: No OFD packet to send [16:24:16]OFD Sender: No OFD packet to send [16:24:21]OFD Sender: No OFD packet to send [16:24:26]OFD Sender: No OFD packet to send [16:24:31]OFD Sender: No OFD packet to send [16:24:36]OFD Sender: No OFD packet to send [16:24:41]OFD Sender: No OFD packet to send [16:24:46]OFD Sender: No OFD packet to send [16:24:51]OFD Sender: No OFD packet to send [16:24:56]OFD Sender: No OFD packet to send [16:25:01]OFD Sender: No OFD packet to send [16:25:06]OFD Sender: No OFD packet to send [16:25:11]OFD Sender: No OFD packet to send [16:25:15]accept exits with 9 [16:25:15]New connection [16:25:15]New thread 3067084132 created [16:25:15]Thread 3067227492 joined [16:25:15]Waiting for new connection... [16:25:15] Sock 9.Parse request [16:25:15]Sock 9.Check first char [16:25:15]Sock 9.First char is OK [16:25:15]request: POST /json_proto HTTP/1.0 [16:25:15]Method: POST [16:25:15]URL: /json_proto [16:25:15]Method is POST - this is cgi request [16:25:15]url: /json_proto [16:25:15]query_string will be loaded in cgi processing [16:25:15]execute_cgi json_proto POST (null) [16:25:15]execute_cgi path=json_proto method=POST [16:25:15]POST find Content-Length [16:25:15]Host: 172.17.38.133:8080 [16:25:15]Content-Length: 682 [16:25:15]Content-Type: application/json [16:25:15] [16:25:15]POST finish read [16:25:15]Found Content-Length = 682 [16:25:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673010", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:25:15]execute_script... [16:25: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)673010", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:25:15]POST & json_proto [16:25:15]process_json_proto [16:25:15]json parsed OK: [16:25:15]protocol is kg_v1.0 [16:25:15]action value=close_receipt [16:25:15]process_action close_receipt [16:25:15]cmd_close_receipt [16:25:15]MH_GetDate [16:25:15]Write to MH i2c: F0 00 00 AD BD 59 [16:25:15]Write i2c OK [16:25:15]MH_I2C_Read... [16:25:15]Read from MH i2c: F0 [16:25:15]MH_I2C_Read... [16:25:15]Read from MH i2c: F0 09 00 [16:25:15]MH_I2C_Read... [16:25:15]Read from MH i2c: F0 09 00 AD BD 00 78 06 73 66 BD 8F 7C 64 E5 [16:25:15]GetLastDocTimeStamp 1718814146 [16:25:15]current date 1718814328 [16:25:15]FM_GetShiftState [16:25:15]SAM_PROTO_GetShiftState [16:25:15]wFMCommunicate request_size=4 [16:25:15]MH_SAM_APDU [16:25:15]CAPDU: 80 13 01 00 [16:25:15]Write to MH i2c: E2 08 00 AE BD 80 13 01 00 00 00 00 00 E8 [16:25:15]Write i2c OK [16:25:15]MH_I2C_Read... [16:25:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:25:15]Read from MH i2c: E2 [16:25:15]MH_I2C_Read... [16:25:15]Read from MH i2c: E2 0E 00 [16:25:15]MH_I2C_Read... [16:25:15]Read from MH i2c: E2 0E 00 AE BD 00 09 00 01 04 26 72 66 00 00 00 00 90 00 F6 [16:25:15]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [16:25:15]wFMCommunicate OK [16:25:15]SAM_PROTO_GetShiftState done [16:25:15]FM_GetShiftState done [16:25:15]opened in 1718756868 [16:25:15]opened+sec_in_day 1718843268 [16:25:15]quantity*price = 100064 [16:25:15]sum+1 = 100066 [16:25:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.65 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 160 19.06.2024 16:25 Смена: 353 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103730 ФПД: 180828161744636 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T162528&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103730&fm=180828161744636&tin=02508201610067®Number=0000000000092785&sum=100000 [16:25:16]StoreToDocumentArchive [16:25:16]shift 353 fd 103730 [16:25:16]save to /storage/0353/doc_00103730 [16:25:16]save last doc name /storage/0353/doc_00103730 to /storage/kkm_last_doc_name [16:25:16]save OK [16:25:16]Clear old archive folders... [16:25:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:25:16]tlvbuf is 013846B0 [16:25:16]SAM_PROTO_ClearQueue [16:25:16]wFMCommunicate request_size=4 [16:25:16]MH_SAM_APDU [16:25:16]CAPDU: 80 09 00 00 [16:25:16]Write to MH i2c: E2 08 00 BB BD 80 09 00 00 00 00 00 00 EA [16:25:16]Write i2c OK [16:25:16]MH_I2C_Read... [16:25:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:25:16]Read from MH i2c: E2 [16:25:16]MH_I2C_Read... [16:25:16]Read from MH i2c: E2 03 00 [16:25:16]MH_I2C_Read... [16:25:16]Read from MH i2c: E2 03 00 BB BD 00 90 00 EC [16:25:16]RAPDU: 90 00 [16:25:16]wFMCommunicate OK [16:25:16]SAM_PROTO_ClearQueue done [16:25:16]KKMCreateOFDPacket [16:25:16]OFDProtocolAddRootSTLVToBuf [16:25:16]FM_MakeSignedData [16:25:16]FM_MakeSignedData [16:25:16]SAM_PROTO_SignData [16:25:16]wFMCommunicate request_size=4 [16:25:16]MH_SAM_APDU [16:25:16]CAPDU: 80 0D 01 02 [16:25:16]Write to MH i2c: E2 08 00 BC BD 80 0D 01 02 00 00 00 00 F2 [16:25:16]Write i2c OK [16:25:16]MH_I2C_Read... [16:25:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:25:16]Read from MH i2c: E2 [16:25:16]MH_I2C_Read... [16:25:16]Read from MH i2c: E2 03 00 [16:25:16]MH_I2C_Read... [16:25:16]Read from MH i2c: E2 03 00 BC BD 00 90 00 ED [16:25:16]RAPDU: 90 00 [16:25:16]wFMCommunicate OK [16:25:16]wFMCommunicate request_size=255 [16:25:16]MH_SAM_APDU [16:25: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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A0 00 00 00 F4 03 04 00 78 06 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 32 95 01 00 35 04 06 00 A4 [16:25:16]Write to MH i2c: E2 02 01 BD BD 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A0 00 00 00 F4 03 04 00 78 06 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 32 95 01 00 35 04 06 00 A4 00 00 C1 [16:25:16]Write i2c OK [16:25:16]MH_I2C_Read... [16:25:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:25:17]Read from MH i2c: E2 [16:25:17]MH_I2C_Read... [16:25:17]Read from MH i2c: E2 03 00 [16:25:17]MH_I2C_Read... [16:25:17]Read from MH i2c: E2 03 00 BD BD 00 90 00 EE [16:25:17]RAPDU: 90 00 [16:25:17]wFMCommunicate OK [16:25:17]wFMCommunicate request_size=10 [16:25:17]MH_SAM_APDU [16:25:17]CAPDU: 80 0D 02 02 05 76 56 58 9E FC [16:25:17]Write to MH i2c: E2 0D 00 BE BD 80 0D 02 02 05 00 76 56 58 9E FC 00 00 BD [16:25:17]Write i2c OK [16:25:17]MH_I2C_Read... [16:25:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:25:17]Read from MH i2c: E2 [16:25:17]MH_I2C_Read... [16:25:17]Read from MH i2c: E2 03 00 [16:25:17]MH_I2C_Read... [16:25:17]Read from MH i2c: E2 03 00 BE BD 00 90 00 EF [16:25:17]RAPDU: 90 00 [16:25:17]wFMCommunicate OK [16:25:17]wFMCommunicate request_size=4 [16:25:17]MH_SAM_APDU [16:25:17]CAPDU: 80 0D 03 02 [16:25:17]Write to MH i2c: E2 08 00 BF BD 80 0D 03 02 00 00 00 00 F7 [16:25:17]Write i2c OK [16:25:17]MH_I2C_Read... [16:25:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:25:17]Read from MH i2c: E2 [16:25:17]MH_I2C_Read... [16:25:17]Read from MH i2c: E2 0B 00 [16:25:17]MH_I2C_Read... [16:25:17]Read from MH i2c: E2 0B 00 BF BD 00 F5 6E 1F 47 11 46 A9 C9 90 00 8A [16:25:17]RAPDU: F5 6E 1F 47 11 46 A9 C9 90 00 [16:25:17]wFMCommunicate OK [16:25:17]SAM_PROTO_SignData done [16:25:17]FM_MakeSignedData done [16:25:17]CreateOFDProtocolMessage [16:25:17]wFMCommunicate request_size=4 [16:25:17]MH_SAM_APDU [16:25:17]CAPDU: 80 11 00 00 [16:25:17]Write to MH i2c: E2 08 00 C0 BD 80 11 00 00 00 00 00 00 F7 [16:25:17]Write i2c OK [16:25:17]MH_I2C_Read... [16:25:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:25:17]Read from MH i2c: E2 [16:25:17]MH_I2C_Read... [16:25:17]Read from MH i2c: E2 17 00 [16:25:17]MH_I2C_Read... [16:25:17]Read from MH i2c: E2 17 00 C0 BD 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 4A [16:25:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [16:25:17]wFMCommunicate OK [16:25:17]CreateOFDProtocolMessage done [16:25:17]OFDSenderStorePacket 103730 [16:25:17]StoreOFDPacket docnum=103730 [16:25:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 43 F8 07 01 29 C2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A0 00 00 00 F4 03 04 00 78 06 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 32 95 01 00 35 04 06 00 A4 76 56 58 9E FC F5 6E 1F 47 11 46 A9 C9 [16:25:17]CheckFolder [16:25:17]dirname=/storage/ofd_packets [16:25:17]CheckFolder done [16:25:17]ProducePacketName [16:25:17]name=ofd_packets/00103730 [16:25:17]NVStorageSaveData ofd_packets/00103730 [16:25:17]File name is /storage/ofd_packets/00103730 [16:25:17]Write 301 bytes [16:25:17]NVStorageSaveData done [16:25:17]OFDSenderStorePacket done [16:25:17]KKMCreateOFDPacket done [16:25:17]NVStorageSaveData kkm_last_timestamp [16:25:17]File name is /storage/kkm_last_timestamp [16:25:17]Write 4 bytes [16:25:17]NVStorageSaveData done [16:25:17]ExternCall_PrintAddStr [16:25:17]wPrintStart [16:25:17]Write to MH i2c: 01 00 00 C1 BD 7E [16:25:17]Write i2c OK [16:25:17]MH_I2C_Read... [16:25:17]Read from MH i2c: 01 [16:25:17]MH_I2C_Read... [16:25:17]Read from MH i2c: 01 07 00 [16:25:17]MH_I2C_Read... [16:25:17]Read from MH i2c: 01 07 00 C1 BD 00 00 00 00 00 FF 0F 93 [16:25:17]RasterBufferAndPrint [16:25:17]line Счет N : (1)673010 [16:25:17]line ИНН: 02508201610067 [16:25:17]line Контрольно-Кассовый Чек [16:25:17]line ПРОДАЖА [16:25:17]line ТРК (МРК, ГНК) : 42 [16:25:17]line Товар: 2710124130 [16:25:17]line Аи-92-К-5 [16:25:17]line 15.070 * 66.40 [16:25:17]line = 1000.65 [16:25:17]line НДС 12% НСП 1% [16:25:17]line > о реализуемом товаре [16:25:17]line ОКРУГЛЕНИЕ: -0.65 [16:25:17]line ИТОГО: 1000.00 [16:25:17]line Внесено: 1000.00 [16:25:17]line СДАЧА: 0.00 [16:25:17]line НСП 1% : 8.85 [16:25:17]line НДС 12% : 106.26 [16:25:17]line Наличными: 1000.00 [16:25:17]line Безнал.: 0.00 [16:25:17]line Место: АЗС № 120 "Партнер Нефть" [16:25:17]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [16:25:17]line СНО: Общий режим [16:25:17]line Чек 160 19.06.2024 16:25 [16:25:17]line Смена: 353 ФФД: 1.0 [16:25:17]line ЗНМ: 0300000164 [16:25:17]line РНМ: 0000000000092785 [16:25:17]line Версия ККМ: 001 [16:25:17]line ФМ: 0000000000875093 [16:25:17]line ФД: 103730 [16:25:17]line ФПД: 180828161744636 [16:25:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T162528&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103730&fm=180828161744636&tin=02508201610067®Number=0000000000092785&sum=100000 [16:25:17]OFD Sender: Processing packet 103730 [packets to send 17, broken 16] [16:25:17]ProducePacketName [16:25:17]name=ofd_packets/00103730 [16:25:17]OFD Sender: To server: pG, [16:25:17]CommunicateWithHost lk.salyk.kg:30040 [16:25:17]ConnectInit lk.salyk.kg [16:25:17]written 0, free lines is 4095 [16:25:17]Connected sock=10 [16:25: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 39 33 0F 01 00 00 43 F8 07 01 29 C2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A0 00 00 00 F4 03 04 00 78 06 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 32 95 01 00 35 04 06 00 A4 76 56 58 9E FC F5 6E 1F 47 11 46 A9 C9 [16:25: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 39 33 4F 00 00 00 2F 97 47 00 B9 54 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 32 95 01 00 F4 03 04 00 01 AD 72 66 B6 04 01 00 00 E9 21 59 DE 15 28 8B E4 [16:25:17]CommunicateWithHost err = 0 [16:25:17]CheckOFDResponse [16:25:17]1017 (14) - 77093643461234 [16:25:17]1041 (16) - 0000000000875093 [16:25:17]1040 (4) - 103730 [16:25:17]1012 (4) - 19.06.2024 10:03 [16:25:17]1206 (1) - 0 [16:25:17]OFD Sender: Remove packet 103730 [16:25:17]ProducePacketName [16:25:17]name=ofd_packets/00103730 [16:25:17]NVStorageDeleteData [16:25:18]Write to MH i2c: 01 00 00 EC BD A9 [16:25:18]Write i2c OK [16:25:18]MH_I2C_Read... [16:25:18]Read from MH i2c: 01 [16:25:18]MH_I2C_Read... [16:25:18]Read from MH i2c: 01 07 00 [16:25:18]MH_I2C_Read... [16:25:18]Read from MH i2c: 01 07 00 EC BD 00 00 00 00 00 E9 0C A5 [16:25:18]RasterBufferAndPrint [16:25:18]line [16:25:18]line [16:25:18]line [16:25:18]line [16:25:18]line [16:25:18]written 0, free lines is 3311 [16:25:18]MH_Cut [16:25:18]Write to MH i2c: D1 01 00 F3 BD 01 82 [16:25:18]Write i2c OK [16:25:18]MH_I2C_Read... [16:25:18]Read from MH i2c: D1 [16:25:18]MH_I2C_Read... [16:25:18]Read from MH i2c: D1 01 00 [16:25:18]MH_I2C_Read... [16:25:18]Read from MH i2c: D1 01 00 F3 BD 00 81 [16:25:18]Write to MH i2c: 01 00 00 F4 BD B1 [16:25:18]Write i2c OK [16:25:18]MH_I2C_Read... [16:25:18]OFD Sender: No OFD packet to send [16:25:18]*** Cut start [16:25:18]*** Partial cut [16:25:18]*** CUTSNS_PIN = 1 [16:25:18]*** CUTSNS_PIN = 0 [16:25:18]*** Brake cut motor [16:25:19]Read from MH i2c: 01 [16:25:19]MH_I2C_Read... [16:25:19]*** Stop cut motor [16:25:19]*** Cut end [16:25:19]Read from MH i2c: 01 07 00 [16:25:19]MH_I2C_Read... [16:25:19]Read from MH i2c: 01 07 00 F4 BD 00 00 00 00 00 FF 0F C6 [16:25:19]process_action close_receipt done [16:25:19]requested_data is exist [16:25:19]produce_requested_data [16:25:19]requested_item fm.sn is exist - process it [16:25:19]wFMCommunicate request_size=4 [16:25:19]MH_SAM_APDU [16:25:19]CAPDU: 80 11 00 00 [16:25:19]Write to MH i2c: E2 08 00 F5 BD 80 11 00 00 00 00 00 00 2C [16:25:19]Write i2c OK [16:25:19]MH_I2C_Read... [16:25:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:25:19]Read from MH i2c: E2 [16:25:19]MH_I2C_Read... [16:25:19]Read from MH i2c: E2 17 00 [16:25:19]MH_I2C_Read... [16:25:19]Read from MH i2c: E2 17 00 F5 BD 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 7F [16:25:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [16:25:19]wFMCommunicate OK [16:25:19]requested_item fd.num is exist - process it [16:25:19]SAM_PROTO_GetFieldsCounters [16:25:19]wFMCommunicate request_size=4 [16:25:19]MH_SAM_APDU [16:25:19]CAPDU: 80 13 00 00 [16:25:19]Write to MH i2c: E2 08 00 F6 BD 80 13 00 00 00 00 00 00 2F [16:25:19]Write i2c OK [16:25:19]MH_I2C_Read... [16:25:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:25:19]Read from MH i2c: E2 [16:25:19]MH_I2C_Read... [16:25:19]Read from MH i2c: E2 62 00 [16:25:19]MH_I2C_Read... [16:25:19]Read from MH i2c: E2 62 00 F6 BD 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 32 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 A0 00 00 00 5E 04 04 00 A0 00 00 00 57 04 04 00 A1 00 00 00 19 04 04 00 00 00 00 00 90 00 60 [16:25: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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 32 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 A0 00 00 00 5E 04 04 00 A0 00 00 00 57 04 04 00 A1 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:25:19]wFMCommunicate OK [16:25:19]SAM_PROTO_GetFieldsCounters done [16:25:19]requested_item shift.num is exist - process it [16:25:19]requested_item shift.opened is exist - process it [16:25:19]req_shift_opened [16:25:19]FM_GetShiftState [16:25:19]SAM_PROTO_GetShiftState [16:25:19]wFMCommunicate request_size=4 [16:25:19]MH_SAM_APDU [16:25:19]CAPDU: 80 13 01 00 [16:25:19]Write to MH i2c: E2 08 00 F7 BD 80 13 01 00 00 00 00 00 31 [16:25:19]Write i2c OK [16:25:19]MH_I2C_Read... [16:25:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:25:19]Read from MH i2c: E2 [16:25:19]MH_I2C_Read... [16:25:19]Read from MH i2c: E2 0E 00 [16:25:19]MH_I2C_Read... [16:25:19]Read from MH i2c: E2 0E 00 F7 BD 00 09 00 01 04 26 72 66 00 00 00 00 90 00 3F [16:25:19]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [16:25:19]wFMCommunicate OK [16:25:19]SAM_PROTO_GetShiftState done [16:25:19]FM_GetShiftState done [16:25:19]req_shift_opened done [16:25:19]requested_item shift.open_date is exist - process it [16:25:19]req_shift_open_date [16:25:19]req_shift_open_date done [16:25:19]produce_requested_data done [16:25:19]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103730,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [16:25:19]process_action_free close_receipt [16:25:19]json_value_free [16:25:19]json_value_free done [16:25:19]process_json_proto returns [16:25:19]Send response to host [16:25:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103730,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [16:25:19]free response buf [16:25:19]execute_script done [16:25:19]execute_script returns [16:25:19]free content buf [16:25:19]Sock 9.Close socket [16:25:19]Sock 9.Thread stoped [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:03]OFD Sender: No OFD packet to send [16:28:08]OFD Sender: No OFD packet to send [16:28:13]OFD Sender: No OFD packet to send [16:28:18]OFD Sender: No OFD packet to send [16:28:23]OFD Sender: No OFD packet to send [16:28:28]OFD Sender: No OFD packet to send [16:28:33]OFD Sender: No OFD packet to send [16:28:38]OFD Sender: No OFD packet to send [16:28:43]OFD Sender: No OFD packet to send [16:28:48]OFD Sender: No OFD packet to send [16:28:53]OFD Sender: No OFD packet to send [16:28:58]OFD Sender: No OFD packet to send [16:29:03]OFD Sender: No OFD packet to send [16:29:08]OFD Sender: No OFD packet to send [16:29:13]OFD Sender: No OFD packet to send [16:29:18]OFD Sender: No OFD packet to send [16:29:23]OFD Sender: No OFD packet to send [16:29:28]OFD Sender: No OFD packet to send [16:29:33]OFD Sender: No OFD packet to send [16:29:38]OFD Sender: No OFD packet to send [16:29:43]OFD Sender: No OFD packet to send [16:29:48]OFD Sender: No OFD packet to send [16:29:53]OFD Sender: No OFD packet to send [16:29:58]OFD Sender: No OFD packet to send [16:30:03]OFD Sender: No OFD packet to send [16:30:08]OFD Sender: No OFD packet to send [16:30:13]OFD Sender: No OFD packet to send [16:30:18]OFD Sender: No OFD packet to send [16:30:23]OFD Sender: No OFD packet to send [16:30:28]OFD Sender: No OFD packet to send [16:30:33]OFD Sender: No OFD packet to send [16:30:38]OFD Sender: No OFD packet to send [16:30:43]OFD Sender: No OFD packet to send [16:30:48]OFD Sender: No OFD packet to send [16:30:53]OFD Sender: No OFD packet to send [16:30:58]OFD Sender: No OFD packet to send [16:31:03]OFD Sender: No OFD packet to send [16:31:08]OFD Sender: No OFD packet to send [16:31:13]OFD Sender: No OFD packet to send [16:31:18]OFD Sender: No OFD packet to send [16:31:23]OFD Sender: No OFD packet to send [16:31:28]OFD Sender: No OFD packet to send [16:31:33]OFD Sender: No OFD packet to send [16:31:38]OFD Sender: No OFD packet to send [16:31:43]OFD Sender: No OFD packet to send [16:31:48]OFD Sender: No OFD packet to send [16:31:53]OFD Sender: No OFD packet to send [16:31:57]accept exits with 7 [16:31:57]New connection [16:31:57]New thread 3067227492 created [16:31:57]Thread 3067084132 joined [16:31:57]Waiting for new connection... [16:31:57] Sock 7.Parse request [16:31:57]Sock 7.Check first char [16:31:57]Sock 7.First char is OK [16:31:57]request: POST /json_proto HTTP/1.0 [16:31:57]Method: POST [16:31:57]URL: /json_proto [16:31:57]Method is POST - this is cgi request [16:31:57]url: /json_proto [16:31:57]query_string will be loaded in cgi processing [16:31:57]execute_cgi json_proto POST (null) [16:31:57]execute_cgi path=json_proto method=POST [16:31:57]POST find Content-Length [16:31:57]Host: 172.17.38.133:8080 [16:31:57]Content-Length: 682 [16:31:57]Content-Type: application/json [16:31:57] [16:31:57]POST finish read [16:31:57]Found Content-Length = 682 [16:31:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673012", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:31:57]execute_script... [16:31: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)673012", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:31:57]POST & json_proto [16:31:57]process_json_proto [16:31:57]json parsed OK: [16:31:57]protocol is kg_v1.0 [16:31:57]action value=close_receipt [16:31:57]process_action close_receipt [16:31:57]cmd_close_receipt [16:31:57]MH_GetDate [16:31:57]Write to MH i2c: F0 00 00 F8 BD A4 [16:31:57]Write i2c OK [16:31:57]MH_I2C_Read... [16:31:57]Read from MH i2c: F0 [16:31:57]MH_I2C_Read... [16:31:57]Read from MH i2c: F0 09 00 [16:31:57]MH_I2C_Read... [16:31:57]Read from MH i2c: F0 09 00 F8 BD 00 0A 08 73 66 BD 8F 7C 64 C4 [16:31:57]GetLastDocTimeStamp 1718814328 [16:31:57]current date 1718814730 [16:31:57]FM_GetShiftState [16:31:57]SAM_PROTO_GetShiftState [16:31:57]wFMCommunicate request_size=4 [16:31:57]MH_SAM_APDU [16:31:57]CAPDU: 80 13 01 00 [16:31:57]Write to MH i2c: E2 08 00 F9 BD 80 13 01 00 00 00 00 00 33 [16:31:57]Write i2c OK [16:31:57]MH_I2C_Read... [16:31:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:31:57]Read from MH i2c: E2 [16:31:57]MH_I2C_Read... [16:31:57]Read from MH i2c: E2 0E 00 [16:31:57]MH_I2C_Read... [16:31:57]Read from MH i2c: E2 0E 00 F9 BD 00 09 00 01 04 26 72 66 00 00 00 00 90 00 41 [16:31:57]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [16:31:57]wFMCommunicate OK [16:31:57]SAM_PROTO_GetShiftState done [16:31:57]FM_GetShiftState done [16:31:57]opened in 1718756868 [16:31:57]opened+sec_in_day 1718843268 [16:31:57]quantity*price = 100064 [16:31:57]sum+1 = 100066 [16:31:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.65 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 161 19.06.2024 16:32 Смена: 353 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103731 ФПД: 252814256623046 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T163210&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103731&fm=252814256623046&tin=02508201610067®Number=0000000000092785&sum=100000 [16:31:58]StoreToDocumentArchive [16:31:58]shift 353 fd 103731 [16:31:58]save to /storage/0353/doc_00103731 [16:31:58]save last doc name /storage/0353/doc_00103731 to /storage/kkm_last_doc_name [16:31:58]save OK [16:31:58]Clear old archive folders... [16:31:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:31:58]tlvbuf is 0135E710 [16:31:58]SAM_PROTO_ClearQueue [16:31:58]wFMCommunicate request_size=4 [16:31:58]MH_SAM_APDU [16:31:58]CAPDU: 80 09 00 00 [16:31:58]Write to MH i2c: E2 08 00 06 BE 80 09 00 00 00 00 00 00 36 [16:31:58]Write i2c OK [16:31:58]MH_I2C_Read... [16:31:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:31:58]Read from MH i2c: E2 [16:31:58]MH_I2C_Read... [16:31:58]Read from MH i2c: E2 03 00 [16:31:58]MH_I2C_Read... [16:31:58]Read from MH i2c: E2 03 00 06 BE 00 90 00 38 [16:31:58]RAPDU: 90 00 [16:31:58]wFMCommunicate OK [16:31:58]SAM_PROTO_ClearQueue done [16:31:58]KKMCreateOFDPacket [16:31:58]OFDProtocolAddRootSTLVToBuf [16:31:58]FM_MakeSignedData [16:31:58]FM_MakeSignedData [16:31:58]SAM_PROTO_SignData [16:31:58]wFMCommunicate request_size=4 [16:31:58]MH_SAM_APDU [16:31:58]CAPDU: 80 0D 01 02 [16:31:58]Write to MH i2c: E2 08 00 07 BE 80 0D 01 02 00 00 00 00 3E [16:31:58]Write i2c OK [16:31:58]MH_I2C_Read... [16:31:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:31:58]Read from MH i2c: E2 [16:31:58]MH_I2C_Read... [16:31:58]Read from MH i2c: E2 03 00 [16:31:58]MH_I2C_Read... [16:31:58]Read from MH i2c: E2 03 00 07 BE 00 90 00 39 [16:31:58]RAPDU: 90 00 [16:31:58]wFMCommunicate OK [16:31:58]wFMCommunicate request_size=255 [16:31:58]MH_SAM_APDU [16:31: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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A1 00 00 00 F4 03 04 00 0A 08 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 33 95 01 00 35 04 06 00 E5 [16:31:58]Write to MH i2c: E2 02 01 08 BE 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A1 00 00 00 F4 03 04 00 0A 08 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 33 95 01 00 35 04 06 00 E5 00 00 E4 [16:31:58]Write i2c OK [16:31:58]MH_I2C_Read... [16:31:59]Read from MH i2c: E2 [16:31:59]MH_I2C_Read... [16:31:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:31:59]Read from MH i2c: E2 03 00 [16:31:59]MH_I2C_Read... [16:31:59]Read from MH i2c: E2 03 00 08 BE 00 90 00 3A [16:31:59]RAPDU: 90 00 [16:31:59]wFMCommunicate OK [16:31:59]wFMCommunicate request_size=10 [16:31:59]MH_SAM_APDU [16:31:59]CAPDU: 80 0D 02 02 05 EE E7 F5 CD C6 [16:31:59]Write to MH i2c: E2 0D 00 09 BE 80 0D 02 02 05 00 EE E7 F5 CD C6 00 00 A8 [16:31:59]Write i2c OK [16:31:59]MH_I2C_Read... [16:31:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:31:59]Read from MH i2c: E2 [16:31:59]MH_I2C_Read... [16:31:59]Read from MH i2c: E2 03 00 [16:31:59]MH_I2C_Read... [16:31:59]Read from MH i2c: E2 03 00 09 BE 00 90 00 3B [16:31:59]RAPDU: 90 00 [16:31:59]wFMCommunicate OK [16:31:59]wFMCommunicate request_size=4 [16:31:59]MH_SAM_APDU [16:31:59]CAPDU: 80 0D 03 02 [16:31:59]Write to MH i2c: E2 08 00 0A BE 80 0D 03 02 00 00 00 00 43 [16:31:59]Write i2c OK [16:31:59]MH_I2C_Read... [16:31:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:31:59]Read from MH i2c: E2 [16:31:59]MH_I2C_Read... [16:31:59]Read from MH i2c: E2 0B 00 [16:31:59]MH_I2C_Read... [16:31:59]Read from MH i2c: E2 0B 00 0A BE 00 35 53 F3 32 28 64 43 2F 90 00 EF [16:31:59]RAPDU: 35 53 F3 32 28 64 43 2F 90 00 [16:31:59]wFMCommunicate OK [16:31:59]SAM_PROTO_SignData done [16:31:59]FM_MakeSignedData done [16:31:59]CreateOFDProtocolMessage [16:31:59]wFMCommunicate request_size=4 [16:31:59]MH_SAM_APDU [16:31:59]CAPDU: 80 11 00 00 [16:31:59]Write to MH i2c: E2 08 00 0B BE 80 11 00 00 00 00 00 00 43 [16:31:59]Write i2c OK [16:31:59]MH_I2C_Read... [16:31:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:31:59]Read from MH i2c: E2 [16:31:59]MH_I2C_Read... [16:31:59]Read from MH i2c: E2 17 00 [16:31:59]MH_I2C_Read... [16:31:59]Read from MH i2c: E2 17 00 0B BE 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 96 [16:31:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [16:31:59]wFMCommunicate OK [16:31:59]CreateOFDProtocolMessage done [16:31:59]OFDSenderStorePacket 103731 [16:31:59]StoreOFDPacket docnum=103731 [16:31:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 E7 77 07 01 F7 5D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A1 00 00 00 F4 03 04 00 0A 08 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 33 95 01 00 35 04 06 00 E5 EE E7 F5 CD C6 35 53 F3 32 28 64 43 2F [16:31:59]CheckFolder [16:31:59]dirname=/storage/ofd_packets [16:31:59]CheckFolder done [16:31:59]ProducePacketName [16:31:59]name=ofd_packets/00103731 [16:31:59]NVStorageSaveData ofd_packets/00103731 [16:31:59]File name is /storage/ofd_packets/00103731 [16:31:59]Write 301 bytes [16:31:59]NVStorageSaveData done [16:31:59]OFDSenderStorePacket done [16:31:59]KKMCreateOFDPacket done [16:31:59]NVStorageSaveData kkm_last_timestamp [16:31:59]File name is /storage/kkm_last_timestamp [16:31:59]Write 4 bytes [16:31:59]NVStorageSaveData done [16:31:59]ExternCall_PrintAddStr [16:31:59]wPrintStart [16:31:59]Write to MH i2c: 01 00 00 0C BE CA [16:31:59]Write i2c OK [16:31:59]MH_I2C_Read... [16:31:59]Read from MH i2c: 01 [16:31:59]MH_I2C_Read... [16:31:59]Read from MH i2c: 01 07 00 [16:31:59]MH_I2C_Read... [16:31:59]Read from MH i2c: 01 07 00 0C BE 00 00 00 00 00 FF 0F DF [16:31:59]RasterBufferAndPrint [16:31:59]line Счет N : (1)673012 [16:31:59]line ИНН: 02508201610067 [16:31:59]line Контрольно-Кассовый Чек [16:31:59]line ПРОДАЖА [16:31:59]line ТРК (МРК, ГНК) : 42 [16:31:59]line Товар: 2710124130 [16:31:59]line Аи-92-К-5 [16:31:59]line 15.070 * 66.40 [16:31:59]line = 1000.65 [16:31:59]line НДС 12% НСП 1% [16:31:59]line > о реализуемом товаре [16:31:59]line ОКРУГЛЕНИЕ: -0.65 [16:31:59]line ИТОГО: 1000.00 [16:31:59]line Внесено: 1000.00 [16:31:59]line СДАЧА: 0.00 [16:31:59]line НСП 1% : 8.85 [16:31:59]line НДС 12% : 106.26 [16:31:59]line Наличными: 1000.00 [16:31:59]line Безнал.: 0.00 [16:31:59]line Место: АЗС № 120 "Партнер Нефть" [16:31:59]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [16:31:59]line СНО: Общий режим [16:31:59]line Чек 161 19.06.2024 16:32 [16:31:59]line Смена: 353 ФФД: 1.0 [16:31:59]line ЗНМ: 0300000164 [16:31:59]line РНМ: 0000000000092785 [16:31:59]line Версия ККМ: 001 [16:31:59]line ФМ: 0000000000875093 [16:31:59]line ФД: 103731 [16:31:59]line ФПД: 252814256623046 [16:31:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T163210&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103731&fm=252814256623046&tin=02508201610067®Number=0000000000092785&sum=100000 [16:31:59]OFD Sender: Processing packet 103731 [packets to send 17, broken 16] [16:31:59]ProducePacketName [16:31:59]name=ofd_packets/00103731 [16:31:59]OFD Sender: To server: pG, [16:31:59]CommunicateWithHost lk.salyk.kg:30040 [16:31:59]ConnectInit lk.salyk.kg [16:31:59]written 0, free lines is 4095 [16:31:59]Connected sock=10 [16:31: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 39 33 0F 01 00 00 E7 77 07 01 F7 5D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A1 00 00 00 F4 03 04 00 0A 08 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 33 95 01 00 35 04 06 00 E5 EE E7 F5 CD C6 35 53 F3 32 28 64 43 2F [16:32: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 39 33 4F 00 00 00 24 99 47 00 BF E9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 33 95 01 00 F4 03 04 00 93 AE 72 66 B6 04 01 00 00 D5 5F 13 C0 67 61 48 59 [16:32:00]CommunicateWithHost err = 0 [16:32:00]CheckOFDResponse [16:32:00]1017 (14) - 77093643461234 [16:32:00]1041 (16) - 0000000000875093 [16:32:00]1040 (4) - 103731 [16:32:00]1012 (4) - 19.06.2024 10:10 [16:32:00]1206 (1) - 0 [16:32:00]OFD Sender: Remove packet 103731 [16:32:00]ProducePacketName [16:32:00]name=ofd_packets/00103731 [16:32:00]NVStorageDeleteData [16:32:00]Write to MH i2c: 01 00 00 37 BE F5 [16:32:00]Write i2c OK [16:32:00]MH_I2C_Read... [16:32:00]Read from MH i2c: 01 [16:32:00]MH_I2C_Read... [16:32:00]Read from MH i2c: 01 07 00 [16:32:00]MH_I2C_Read... [16:32:00]Read from MH i2c: 01 07 00 37 BE 00 00 00 00 00 F1 0C F9 [16:32:00]RasterBufferAndPrint [16:32:00]line [16:32:00]line [16:32:00]line [16:32:00]line [16:32:00]line [16:32:00]written 0, free lines is 3319 [16:32:00]MH_Cut [16:32:00]Write to MH i2c: D1 01 00 3E BE 01 CE [16:32:00]Write i2c OK [16:32:00]MH_I2C_Read... [16:32:00]Read from MH i2c: D1 [16:32:00]MH_I2C_Read... [16:32:00]Read from MH i2c: D1 01 00 [16:32:00]MH_I2C_Read... [16:32:00]Read from MH i2c: D1 01 00 3E BE 00 CD [16:32:00]Write to MH i2c: 01 00 00 3F BE FD [16:32:00]Write i2c OK [16:32:00]MH_I2C_Read... [16:32:00]OFD Sender: No OFD packet to send [16:32:00]*** Cut start [16:32:00]*** Partial cut [16:32:00]*** CUTSNS_PIN = 1 [16:32:00]*** CUTSNS_PIN = 0 [16:32:01]*** Brake cut motor [16:32:01]Read from MH i2c: 01 [16:32:01]MH_I2C_Read... [16:32:01]*** Stop cut motor [16:32:01]*** Cut end [16:32:01]Read from MH i2c: 01 07 00 [16:32:01]MH_I2C_Read... [16:32:01]Read from MH i2c: 01 07 00 3F BE 00 00 00 00 00 FF 0F 12 [16:32:01]process_action close_receipt done [16:32:01]requested_data is exist [16:32:01]produce_requested_data [16:32:01]requested_item fm.sn is exist - process it [16:32:01]wFMCommunicate request_size=4 [16:32:01]MH_SAM_APDU [16:32:01]CAPDU: 80 11 00 00 [16:32:01]Write to MH i2c: E2 08 00 40 BE 80 11 00 00 00 00 00 00 78 [16:32:01]Write i2c OK [16:32:01]MH_I2C_Read... [16:32:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:32:01]Read from MH i2c: E2 [16:32:01]MH_I2C_Read... [16:32:01]Read from MH i2c: E2 17 00 [16:32:01]MH_I2C_Read... [16:32:01]Read from MH i2c: E2 17 00 40 BE 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 CB [16:32:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [16:32:01]wFMCommunicate OK [16:32:01]requested_item fd.num is exist - process it [16:32:01]SAM_PROTO_GetFieldsCounters [16:32:01]wFMCommunicate request_size=4 [16:32:01]MH_SAM_APDU [16:32:01]CAPDU: 80 13 00 00 [16:32:01]Write to MH i2c: E2 08 00 41 BE 80 13 00 00 00 00 00 00 7B [16:32:01]Write i2c OK [16:32:01]MH_I2C_Read... [16:32:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:32:01]Read from MH i2c: E2 [16:32:01]MH_I2C_Read... [16:32:01]Read from MH i2c: E2 62 00 [16:32:01]MH_I2C_Read... [16:32:01]Read from MH i2c: E2 62 00 41 BE 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 33 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 A1 00 00 00 5E 04 04 00 A1 00 00 00 57 04 04 00 A2 00 00 00 19 04 04 00 00 00 00 00 90 00 B0 [16:32: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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 33 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 A1 00 00 00 5E 04 04 00 A1 00 00 00 57 04 04 00 A2 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:32:01]wFMCommunicate OK [16:32:01]SAM_PROTO_GetFieldsCounters done [16:32:01]requested_item shift.num is exist - process it [16:32:01]requested_item shift.opened is exist - process it [16:32:01]req_shift_opened [16:32:01]FM_GetShiftState [16:32:01]SAM_PROTO_GetShiftState [16:32:01]wFMCommunicate request_size=4 [16:32:01]MH_SAM_APDU [16:32:01]CAPDU: 80 13 01 00 [16:32:01]Write to MH i2c: E2 08 00 42 BE 80 13 01 00 00 00 00 00 7D [16:32:01]Write i2c OK [16:32:01]MH_I2C_Read... [16:32:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:32:01]Read from MH i2c: E2 [16:32:01]MH_I2C_Read... [16:32:01]Read from MH i2c: E2 0E 00 [16:32:01]MH_I2C_Read... [16:32:01]Read from MH i2c: E2 0E 00 42 BE 00 09 00 01 04 26 72 66 00 00 00 00 90 00 8B [16:32:01]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [16:32:01]wFMCommunicate OK [16:32:01]SAM_PROTO_GetShiftState done [16:32:01]FM_GetShiftState done [16:32:01]req_shift_opened done [16:32:01]requested_item shift.open_date is exist - process it [16:32:01]req_shift_open_date [16:32:01]req_shift_open_date done [16:32:01]produce_requested_data done [16:32:01]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103731,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [16:32:01]process_action_free close_receipt [16:32:01]json_value_free [16:32:01]json_value_free done [16:32:01]process_json_proto returns [16:32:01]Send response to host [16:32:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103731,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [16:32:01]free response buf [16:32:01]execute_script done [16:32:01]execute_script returns [16:32:01]free content buf [16:32:01]Sock 7.Close socket [16:32:01]Sock 7.Thread stoped [16:32:05]OFD Sender: No OFD packet to send [16:32:10]OFD Sender: No OFD packet to send [16:32:15]OFD Sender: No OFD packet to send [16:32:20]OFD Sender: No OFD packet to send [16:32:25]OFD Sender: No OFD packet to send [16:32:30]OFD Sender: No OFD packet to send [16:32:35]OFD Sender: No OFD packet to send [16:32:40]OFD Sender: No OFD packet to send [16:32:45]OFD Sender: No OFD packet to send [16:32:50]OFD Sender: No OFD packet to send [16:32:55]OFD Sender: No OFD packet to send [16:33:00]OFD Sender: No OFD packet to send [16:33:05]OFD Sender: No OFD packet to send [16:33:10]OFD Sender: No OFD packet to send [16:33:15]OFD Sender: No OFD packet to send [16:33:20]OFD Sender: No OFD packet to send [16:33:25]OFD Sender: No OFD packet to send [16:33:30]OFD Sender: No OFD packet to send [16:33:35]OFD Sender: No OFD packet to send [16:33:40]OFD Sender: No OFD packet to send [16:33:45]OFD Sender: No OFD packet to send [16:33:50]OFD Sender: No OFD packet to send [16:33:55]OFD Sender: No OFD packet to send [16:34:00]OFD Sender: No OFD packet to send [16:34:05]OFD Sender: No OFD packet to send [16:34:06]accept exits with 9 [16:34:06]New connection [16:34:06]New thread 3067084132 created [16:34:06]Thread 3067227492 joined [16:34:06]Waiting for new connection... [16:34:06] Sock 9.Parse request [16:34:06]Sock 9.Check first char [16:34:06]Sock 9.First char is OK [16:34:06]request: POST /json_proto HTTP/1.0 [16:34:06]Method: POST [16:34:06]URL: /json_proto [16:34:06]Method is POST - this is cgi request [16:34:06]url: /json_proto [16:34:06]query_string will be loaded in cgi processing [16:34:06]execute_cgi json_proto POST (null) [16:34:06]execute_cgi path=json_proto method=POST [16:34:06]POST find Content-Length [16:34:06]Host: 172.17.38.133:8080 [16:34:06]Content-Length: 682 [16:34:06]Content-Type: application/json [16:34:06] [16:34:06]POST finish read [16:34:06]Found Content-Length = 682 [16:34:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673013", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:34:06]execute_script... [16:34:06]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673013", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:34:06]POST & json_proto [16:34:06]process_json_proto [16:34:06]json parsed OK: [16:34:06]protocol is kg_v1.0 [16:34:06]action value=close_receipt [16:34:06]process_action close_receipt [16:34:06]cmd_close_receipt [16:34:06]MH_GetDate [16:34:06]Write to MH i2c: F0 00 00 43 BE F0 [16:34:06]Write i2c OK [16:34:06]MH_I2C_Read... [16:34:06]Read from MH i2c: F0 [16:34:06]MH_I2C_Read... [16:34:06]Read from MH i2c: F0 09 00 [16:34:06]MH_I2C_Read... [16:34:06]Read from MH i2c: F0 09 00 43 BE 00 8B 08 73 66 BD 8F 7C 64 91 [16:34:06]GetLastDocTimeStamp 1718814730 [16:34:06]current date 1718814859 [16:34:06]FM_GetShiftState [16:34:06]SAM_PROTO_GetShiftState [16:34:06]wFMCommunicate request_size=4 [16:34:06]MH_SAM_APDU [16:34:06]CAPDU: 80 13 01 00 [16:34:06]Write to MH i2c: E2 08 00 44 BE 80 13 01 00 00 00 00 00 7F [16:34:06]Write i2c OK [16:34:06]MH_I2C_Read... [16:34:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:34:06]Read from MH i2c: E2 [16:34:06]MH_I2C_Read... [16:34:06]Read from MH i2c: E2 0E 00 [16:34:06]MH_I2C_Read... [16:34:06]Read from MH i2c: E2 0E 00 44 BE 00 09 00 01 04 26 72 66 00 00 00 00 90 00 8D [16:34:06]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [16:34:06]wFMCommunicate OK [16:34:06]SAM_PROTO_GetShiftState done [16:34:06]FM_GetShiftState done [16:34:06]opened in 1718756868 [16:34:06]opened+sec_in_day 1718843268 [16:34:06]quantity*price = 100064 [16:34:06]sum+1 = 100066 [16:34:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.65 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 162 19.06.2024 16:34 Смена: 353 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103732 ФПД: 121050915099664 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T163419&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103732&fm=121050915099664&tin=02508201610067®Number=0000000000092785&sum=100000 [16:34:07]StoreToDocumentArchive [16:34:07]shift 353 fd 103732 [16:34:07]save to /storage/0353/doc_00103732 [16:34:07]save last doc name /storage/0353/doc_00103732 to /storage/kkm_last_doc_name [16:34:07]save OK [16:34:07]Clear old archive folders... [16:34:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:34:07]tlvbuf is 01709FD0 [16:34:07]SAM_PROTO_ClearQueue [16:34:07]wFMCommunicate request_size=4 [16:34:07]MH_SAM_APDU [16:34:07]CAPDU: 80 09 00 00 [16:34:07]Write to MH i2c: E2 08 00 51 BE 80 09 00 00 00 00 00 00 81 [16:34:07]Write i2c OK [16:34:07]MH_I2C_Read... [16:34:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:34:07]Read from MH i2c: E2 [16:34:07]MH_I2C_Read... [16:34:07]Read from MH i2c: E2 03 00 [16:34:07]MH_I2C_Read... [16:34:07]Read from MH i2c: E2 03 00 51 BE 00 90 00 83 [16:34:07]RAPDU: 90 00 [16:34:07]wFMCommunicate OK [16:34:07]SAM_PROTO_ClearQueue done [16:34:07]KKMCreateOFDPacket [16:34:07]OFDProtocolAddRootSTLVToBuf [16:34:07]FM_MakeSignedData [16:34:07]FM_MakeSignedData [16:34:07]SAM_PROTO_SignData [16:34:07]wFMCommunicate request_size=4 [16:34:07]MH_SAM_APDU [16:34:07]CAPDU: 80 0D 01 02 [16:34:07]Write to MH i2c: E2 08 00 52 BE 80 0D 01 02 00 00 00 00 89 [16:34:07]Write i2c OK [16:34:07]MH_I2C_Read... [16:34:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:34:07]Read from MH i2c: E2 [16:34:07]MH_I2C_Read... [16:34:07]Read from MH i2c: E2 03 00 [16:34:07]MH_I2C_Read... [16:34:07]Read from MH i2c: E2 03 00 52 BE 00 90 00 84 [16:34:07]RAPDU: 90 00 [16:34:07]wFMCommunicate OK [16:34:07]wFMCommunicate request_size=255 [16:34:07]MH_SAM_APDU [16:34:07]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 00 00 00 F4 03 04 00 8B 08 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 34 95 01 00 35 04 06 00 6E [16:34:07]Write to MH i2c: E2 02 01 53 BE 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 00 00 00 F4 03 04 00 8B 08 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 34 95 01 00 35 04 06 00 6E 00 00 3B [16:34:07]Write i2c OK [16:34:07]MH_I2C_Read... [16:34:08]Read from MH i2c: E2 [16:34:08]MH_I2C_Read... [16:34:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:34:08]Read from MH i2c: E2 03 00 [16:34:08]MH_I2C_Read... [16:34:08]Read from MH i2c: E2 03 00 53 BE 00 90 00 85 [16:34:08]RAPDU: 90 00 [16:34:08]wFMCommunicate OK [16:34:08]wFMCommunicate request_size=10 [16:34:08]MH_SAM_APDU [16:34:08]CAPDU: 80 0D 02 02 05 18 5C CB 54 10 [16:34:08]Write to MH i2c: E2 0D 00 54 BE 80 0D 02 02 05 00 18 5C CB 54 10 00 00 39 [16:34:08]Write i2c OK [16:34:08]MH_I2C_Read... [16:34:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:34:08]Read from MH i2c: E2 [16:34:08]MH_I2C_Read... [16:34:08]Read from MH i2c: E2 03 00 [16:34:08]MH_I2C_Read... [16:34:08]Read from MH i2c: E2 03 00 54 BE 00 90 00 86 [16:34:08]RAPDU: 90 00 [16:34:08]wFMCommunicate OK [16:34:08]wFMCommunicate request_size=4 [16:34:08]MH_SAM_APDU [16:34:08]CAPDU: 80 0D 03 02 [16:34:08]Write to MH i2c: E2 08 00 55 BE 80 0D 03 02 00 00 00 00 8E [16:34:08]Write i2c OK [16:34:08]MH_I2C_Read... [16:34:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:34:08]Read from MH i2c: E2 [16:34:08]MH_I2C_Read... [16:34:08]Read from MH i2c: E2 0B 00 [16:34:08]MH_I2C_Read... [16:34:08]Read from MH i2c: E2 0B 00 55 BE 00 34 2B 1E C4 35 4D 5E A0 90 00 50 [16:34:08]RAPDU: 34 2B 1E C4 35 4D 5E A0 90 00 [16:34:08]wFMCommunicate OK [16:34:08]SAM_PROTO_SignData done [16:34:08]FM_MakeSignedData done [16:34:08]CreateOFDProtocolMessage [16:34:08]wFMCommunicate request_size=4 [16:34:08]MH_SAM_APDU [16:34:08]CAPDU: 80 11 00 00 [16:34:08]Write to MH i2c: E2 08 00 56 BE 80 11 00 00 00 00 00 00 8E [16:34:08]Write i2c OK [16:34:08]MH_I2C_Read... [16:34:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:34:08]Read from MH i2c: E2 [16:34:08]MH_I2C_Read... [16:34:08]Read from MH i2c: E2 17 00 [16:34:08]MH_I2C_Read... [16:34:08]Read from MH i2c: E2 17 00 56 BE 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 E1 [16:34:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [16:34:08]wFMCommunicate OK [16:34:08]CreateOFDProtocolMessage done [16:34:08]OFDSenderStorePacket 103732 [16:34:08]StoreOFDPacket docnum=103732 [16:34:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 41 63 07 01 0F 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 00 00 00 F4 03 04 00 8B 08 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 34 95 01 00 35 04 06 00 6E 18 5C CB 54 10 34 2B 1E C4 35 4D 5E A0 [16:34:08]CheckFolder [16:34:08]dirname=/storage/ofd_packets [16:34:08]CheckFolder done [16:34:08]ProducePacketName [16:34:08]name=ofd_packets/00103732 [16:34:08]NVStorageSaveData ofd_packets/00103732 [16:34:08]File name is /storage/ofd_packets/00103732 [16:34:08]Write 301 bytes [16:34:08]NVStorageSaveData done [16:34:08]OFDSenderStorePacket done [16:34:08]KKMCreateOFDPacket done [16:34:08]NVStorageSaveData kkm_last_timestamp [16:34:08]File name is /storage/kkm_last_timestamp [16:34:08]Write 4 bytes [16:34:08]NVStorageSaveData done [16:34:08]ExternCall_PrintAddStr [16:34:08]wPrintStart [16:34:08]Write to MH i2c: 01 00 00 57 BE 15 [16:34:08]Write i2c OK [16:34:08]MH_I2C_Read... [16:34:08]Read from MH i2c: 01 [16:34:08]MH_I2C_Read... [16:34:08]Read from MH i2c: 01 07 00 [16:34:08]MH_I2C_Read... [16:34:08]Read from MH i2c: 01 07 00 57 BE 00 00 00 00 00 FF 0F 2A [16:34:08]RasterBufferAndPrint [16:34:08]line Счет N : (1)673013 [16:34:08]line ИНН: 02508201610067 [16:34:08]line Контрольно-Кассовый Чек [16:34:08]line ПРОДАЖА [16:34:08]line ТРК (МРК, ГНК) : 42 [16:34:08]line Товар: 2710124130 [16:34:08]line Аи-92-К-5 [16:34:08]line 15.070 * 66.40 [16:34:08]line = 1000.65 [16:34:08]line НДС 12% НСП 1% [16:34:08]line > о реализуемом товаре [16:34:08]line ОКРУГЛЕНИЕ: -0.65 [16:34:08]line ИТОГО: 1000.00 [16:34:08]line Внесено: 1000.00 [16:34:08]line СДАЧА: 0.00 [16:34:08]line НСП 1% : 8.85 [16:34:08]line НДС 12% : 106.26 [16:34:08]line Наличными: 1000.00 [16:34:08]line Безнал.: 0.00 [16:34:08]line Место: АЗС № 120 "Партнер Нефть" [16:34:08]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [16:34:08]line СНО: Общий режим [16:34:08]line Чек 162 19.06.2024 16:34 [16:34:08]line Смена: 353 ФФД: 1.0 [16:34:08]line ЗНМ: 0300000164 [16:34:08]line РНМ: 0000000000092785 [16:34:08]line Версия ККМ: 001 [16:34:08]line ФМ: 0000000000875093 [16:34:08]line ФД: 103732 [16:34:08]line ФПД: 121050915099664 [16:34:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T163419&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103732&fm=121050915099664&tin=02508201610067®Number=0000000000092785&sum=100000 [16:34:08]OFD Sender: Processing packet 103732 [packets to send 17, broken 16] [16:34:08]ProducePacketName [16:34:08]name=ofd_packets/00103732 [16:34:08]OFD Sender: To server: pG, [16:34:08]CommunicateWithHost lk.salyk.kg:30040 [16:34:08]ConnectInit lk.salyk.kg [16:34:08]written 0, free lines is 4095 [16:34:08]Connected sock=10 [16:34:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 41 63 07 01 0F 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 00 00 00 F4 03 04 00 8B 08 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 34 95 01 00 35 04 06 00 6E 18 5C CB 54 10 34 2B 1E C4 35 4D 5E A0 [16:34: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 39 33 4F 00 00 00 3A 11 47 00 0F 76 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 34 95 01 00 F4 03 04 00 14 AF 72 66 B6 04 01 00 00 55 CD 3A BF 51 05 92 AB [16:34:08]CommunicateWithHost err = 0 [16:34:08]CheckOFDResponse [16:34:08]1017 (14) - 77093643461234 [16:34:08]1041 (16) - 0000000000875093 [16:34:08]1040 (4) - 103732 [16:34:08]1012 (4) - 19.06.2024 10:12 [16:34:08]1206 (1) - 0 [16:34:08]OFD Sender: Remove packet 103732 [16:34:08]ProducePacketName [16:34:08]name=ofd_packets/00103732 [16:34:08]NVStorageDeleteData [16:34:09]Write to MH i2c: 01 00 00 82 BE 40 [16:34:09]Write i2c OK [16:34:09]MH_I2C_Read... [16:34:09]Read from MH i2c: 01 [16:34:09]MH_I2C_Read... [16:34:09]Read from MH i2c: 01 07 00 [16:34:09]MH_I2C_Read... [16:34:09]Read from MH i2c: 01 07 00 82 BE 00 00 00 00 00 E4 0C 37 [16:34:09]RasterBufferAndPrint [16:34:09]line [16:34:09]line [16:34:09]line [16:34:09]line [16:34:09]line [16:34:09]written 0, free lines is 3306 [16:34:09]MH_Cut [16:34:09]Write to MH i2c: D1 01 00 89 BE 01 19 [16:34:09]Write i2c OK [16:34:09]MH_I2C_Read... [16:34:09]Read from MH i2c: D1 [16:34:09]MH_I2C_Read... [16:34:09]Read from MH i2c: D1 01 00 [16:34:09]MH_I2C_Read... [16:34:09]Read from MH i2c: D1 01 00 89 BE 00 18 [16:34:09]Write to MH i2c: 01 00 00 8A BE 48 [16:34:09]Write i2c OK [16:34:09]MH_I2C_Read... [16:34:09]OFD Sender: No OFD packet to send [16:34:09]*** Cut start [16:34:09]*** Partial cut [16:34:09]*** CUTSNS_PIN = 1 [16:34:09]*** CUTSNS_PIN = 0 [16:34:09]*** Brake cut motor [16:34:10]Read from MH i2c: 01 [16:34:10]MH_I2C_Read... [16:34:10]*** Stop cut motor [16:34:10]*** Cut end [16:34:10]Read from MH i2c: 01 07 00 [16:34:10]MH_I2C_Read... [16:34:10]Read from MH i2c: 01 07 00 8A BE 00 00 00 00 00 FF 0F 5D [16:34:10]process_action close_receipt done [16:34:10]requested_data is exist [16:34:10]produce_requested_data [16:34:10]requested_item fm.sn is exist - process it [16:34:10]wFMCommunicate request_size=4 [16:34:10]MH_SAM_APDU [16:34:10]CAPDU: 80 11 00 00 [16:34:10]Write to MH i2c: E2 08 00 8B BE 80 11 00 00 00 00 00 00 C3 [16:34:10]Write i2c OK [16:34:10]MH_I2C_Read... [16:34:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:34:10]Read from MH i2c: E2 [16:34:10]MH_I2C_Read... [16:34:10]Read from MH i2c: E2 17 00 [16:34:10]MH_I2C_Read... [16:34:10]Read from MH i2c: E2 17 00 8B BE 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 16 [16:34:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [16:34:10]wFMCommunicate OK [16:34:10]requested_item fd.num is exist - process it [16:34:10]SAM_PROTO_GetFieldsCounters [16:34:10]wFMCommunicate request_size=4 [16:34:10]MH_SAM_APDU [16:34:10]CAPDU: 80 13 00 00 [16:34:10]Write to MH i2c: E2 08 00 8C BE 80 13 00 00 00 00 00 00 C6 [16:34:10]Write i2c OK [16:34:10]MH_I2C_Read... [16:34:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:34:10]Read from MH i2c: E2 [16:34:10]MH_I2C_Read... [16:34:10]Read from MH i2c: E2 62 00 [16:34:10]MH_I2C_Read... [16:34:10]Read from MH i2c: E2 62 00 8C BE 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 34 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 A2 00 00 00 5E 04 04 00 A2 00 00 00 57 04 04 00 A3 00 00 00 19 04 04 00 00 00 00 00 90 00 FF [16:34:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 34 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 A2 00 00 00 5E 04 04 00 A2 00 00 00 57 04 04 00 A3 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:34:10]wFMCommunicate OK [16:34:10]SAM_PROTO_GetFieldsCounters done [16:34:10]requested_item shift.num is exist - process it [16:34:10]requested_item shift.opened is exist - process it [16:34:10]req_shift_opened [16:34:10]FM_GetShiftState [16:34:10]SAM_PROTO_GetShiftState [16:34:10]wFMCommunicate request_size=4 [16:34:10]MH_SAM_APDU [16:34:10]CAPDU: 80 13 01 00 [16:34:10]Write to MH i2c: E2 08 00 8D BE 80 13 01 00 00 00 00 00 C8 [16:34:10]Write i2c OK [16:34:10]MH_I2C_Read... [16:34:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:34:10]Read from MH i2c: E2 [16:34:10]MH_I2C_Read... [16:34:10]Read from MH i2c: E2 0E 00 [16:34:10]MH_I2C_Read... [16:34:10]Read from MH i2c: E2 0E 00 8D BE 00 09 00 01 04 26 72 66 00 00 00 00 90 00 D6 [16:34:10]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [16:34:10]wFMCommunicate OK [16:34:10]SAM_PROTO_GetShiftState done [16:34:10]FM_GetShiftState done [16:34:10]req_shift_opened done [16:34:10]requested_item shift.open_date is exist - process it [16:34:10]req_shift_open_date [16:34:10]req_shift_open_date done [16:34:10]produce_requested_data done [16:34:10]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103732,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [16:34:10]process_action_free close_receipt [16:34:10]json_value_free [16:34:10]json_value_free done [16:34:10]process_json_proto returns [16:34:10]Send response to host [16:34:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103732,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [16:34:10]free response buf [16:34:10]execute_script done [16:34:10]execute_script returns [16:34:10]free content buf [16:34:10]Sock 9.Close socket [16:34:10]Sock 9.Thread stoped [16:34:14]OFD Sender: No OFD packet to send [16:34:19]OFD Sender: No OFD packet to send [16:34:24]OFD Sender: No OFD packet to send [16:34:29]OFD Sender: No OFD packet to send [16:34:34]OFD Sender: No OFD packet to send [16:34:39]OFD Sender: No OFD packet to send [16:34:43]accept exits with 7 [16:34:43]New connection [16:34:43]New thread 3067227492 created [16:34:43]Thread 3067084132 joined [16:34:43]Waiting for new connection... [16:34:43] Sock 7.Parse request [16:34:43]Sock 7.Check first char [16:34:43]Sock 7.First char is OK [16:34:43]request: POST /json_proto HTTP/1.0 [16:34:43]Method: POST [16:34:43]URL: /json_proto [16:34:43]Method is POST - this is cgi request [16:34:43]url: /json_proto [16:34:43]query_string will be loaded in cgi processing [16:34:43]execute_cgi json_proto POST (null) [16:34:43]execute_cgi path=json_proto method=POST [16:34:43]POST find Content-Length [16:34:43]Host: 172.17.38.133:8080 [16:34:43]Content-Length: 819 [16:34:43]Content-Type: application/json [16:34:43] [16:34:43]POST finish read [16:34:43]Found Content-Length = 819 [16:34:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673011", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 39.580, "sum" : 2924.96, "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" : 2924.96 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:34:43]execute_script... [16:34:43]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673011", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 39.580, "sum" : 2924.96, "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" : 2924.96 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:34:43]POST & json_proto [16:34:43]process_json_proto [16:34:43]json parsed OK: [16:34:43]protocol is kg_v1.0 [16:34:43]action value=close_receipt [16:34:43]process_action close_receipt [16:34:43]cmd_close_receipt [16:34:43]MH_GetDate [16:34:43]Write to MH i2c: F0 00 00 8E BE 3B [16:34:43]Write i2c OK [16:34:43]MH_I2C_Read... [16:34:43]Read from MH i2c: F0 [16:34:43]MH_I2C_Read... [16:34:43]Read from MH i2c: F0 09 00 [16:34:43]MH_I2C_Read... [16:34:43]Read from MH i2c: F0 09 00 8E BE 00 B0 08 73 66 BD 8F 7C 64 01 [16:34:43]GetLastDocTimeStamp 1718814859 [16:34:43]current date 1718814896 [16:34:43]FM_GetShiftState [16:34:43]SAM_PROTO_GetShiftState [16:34:43]wFMCommunicate request_size=4 [16:34:43]MH_SAM_APDU [16:34:43]CAPDU: 80 13 01 00 [16:34:43]Write to MH i2c: E2 08 00 8F BE 80 13 01 00 00 00 00 00 CA [16:34:43]Write i2c OK [16:34:43]MH_I2C_Read... [16:34:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:34:43]Read from MH i2c: E2 [16:34:43]MH_I2C_Read... [16:34:43]Read from MH i2c: E2 0E 00 [16:34:43]MH_I2C_Read... [16:34:43]Read from MH i2c: E2 0E 00 8F BE 00 09 00 01 04 26 72 66 00 00 00 00 90 00 D8 [16:34:43]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [16:34:43]wFMCommunicate OK [16:34:43]SAM_PROTO_GetShiftState done [16:34:43]FM_GetShiftState done [16:34:43]opened in 1718756868 [16:34:43]opened+sec_in_day 1718843268 [16:34:43]quantity*price = 292496 [16:34:43]sum+1 = 292497 [16:34:43]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2924.96 НСП 1% : 25.88 НДС 12% : 310.61 Наличными: 0.00 Безнал.: 2924.96 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 163 19.06.2024 16:34 Смена: 353 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000875093 ФД: 103733 ФПД: 94182598899499 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T163456&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103733&fm=94182598899499&tin=02508201610067®Number=0000000000092785&sum=292496 [16:34:44]StoreToDocumentArchive [16:34:44]shift 353 fd 103733 [16:34:44]save to /storage/0353/doc_00103733 [16:34:44]save last doc name /storage/0353/doc_00103733 to /storage/kkm_last_doc_name [16:34:44]save OK [16:34:44]Clear old archive folders... [16:34:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:34:44]tlvbuf is 013584B0 [16:34:44]SAM_PROTO_ClearQueue [16:34:44]wFMCommunicate request_size=4 [16:34:44]MH_SAM_APDU [16:34:44]CAPDU: 80 09 00 00 [16:34:44]Write to MH i2c: E2 08 00 9C BE 80 09 00 00 00 00 00 00 CC [16:34:44]Write i2c OK [16:34:44]MH_I2C_Read... [16:34:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:34:44]Read from MH i2c: E2 [16:34:44]MH_I2C_Read... [16:34:44]Read from MH i2c: E2 03 00 [16:34:44]MH_I2C_Read... [16:34:44]Read from MH i2c: E2 03 00 9C BE 00 90 00 CE [16:34:44]RAPDU: 90 00 [16:34:44]wFMCommunicate OK [16:34:44]SAM_PROTO_ClearQueue done [16:34:44]KKMCreateOFDPacket [16:34:44]OFDProtocolAddRootSTLVToBuf [16:34:44]FM_MakeSignedData [16:34:44]FM_MakeSignedData [16:34:44]SAM_PROTO_SignData [16:34:44]wFMCommunicate request_size=4 [16:34:44]MH_SAM_APDU [16:34:44]CAPDU: 80 0D 01 02 [16:34:44]Write to MH i2c: E2 08 00 9D BE 80 0D 01 02 00 00 00 00 D4 [16:34:44]Write i2c OK [16:34:44]MH_I2C_Read... [16:34:44]OFD Sender: No OFD packet to send [16:34:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:34:44]Read from MH i2c: E2 [16:34:44]MH_I2C_Read... [16:34:44]Read from MH i2c: E2 03 00 [16:34:44]MH_I2C_Read... [16:34:44]Read from MH i2c: E2 03 00 9D BE 00 90 00 CF [16:34:44]RAPDU: 90 00 [16:34:44]wFMCommunicate OK [16:34:44]wFMCommunicate request_size=255 [16:34:44]MH_SAM_APDU [16:34:44]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 9C 9A 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 90 76 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 76 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 55 79 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 90 76 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 00 00 00 F4 03 04 00 B0 08 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 35 95 01 00 35 04 06 00 55 [16:34:44]Write to MH i2c: E2 02 01 9E BE 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 9C 9A 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 90 76 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 76 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 55 79 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 90 76 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 00 00 00 F4 03 04 00 B0 08 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 35 95 01 00 35 04 06 00 55 00 00 E0 [16:34:44]Write i2c OK [16:34:44]MH_I2C_Read... [16:34:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:34:44]Read from MH i2c: E2 [16:34:44]MH_I2C_Read... [16:34:44]Read from MH i2c: E2 03 00 [16:34:44]MH_I2C_Read... [16:34:44]Read from MH i2c: E2 03 00 9E BE 00 90 00 D0 [16:34:44]RAPDU: 90 00 [16:34:44]wFMCommunicate OK [16:34:44]wFMCommunicate request_size=10 [16:34:44]MH_SAM_APDU [16:34:44]CAPDU: 80 0D 02 02 05 A8 98 59 F7 2B [16:34:44]Write to MH i2c: E2 0D 00 9F BE 80 0D 02 02 05 00 A8 98 59 F7 2B 00 00 9C [16:34:44]Write i2c OK [16:34:44]MH_I2C_Read... [16:34:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:34:44]Read from MH i2c: E2 [16:34:44]MH_I2C_Read... [16:34:44]Read from MH i2c: E2 03 00 [16:34:44]MH_I2C_Read... [16:34:44]Read from MH i2c: E2 03 00 9F BE 00 90 00 D1 [16:34:44]RAPDU: 90 00 [16:34:44]wFMCommunicate OK [16:34:44]wFMCommunicate request_size=4 [16:34:44]MH_SAM_APDU [16:34:44]CAPDU: 80 0D 03 02 [16:34:44]Write to MH i2c: E2 08 00 A0 BE 80 0D 03 02 00 00 00 00 D9 [16:34:44]Write i2c OK [16:34:44]MH_I2C_Read... [16:34:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:34:44]Read from MH i2c: E2 [16:34:44]MH_I2C_Read... [16:34:44]Read from MH i2c: E2 0B 00 [16:34:44]MH_I2C_Read... [16:34:44]Read from MH i2c: E2 0B 00 A0 BE 00 16 1C 16 D1 68 9E 02 B9 90 00 B4 [16:34:44]RAPDU: 16 1C 16 D1 68 9E 02 B9 90 00 [16:34:44]wFMCommunicate OK [16:34:44]SAM_PROTO_SignData done [16:34:44]FM_MakeSignedData done [16:34:44]CreateOFDProtocolMessage [16:34:44]wFMCommunicate request_size=4 [16:34:44]MH_SAM_APDU [16:34:44]CAPDU: 80 11 00 00 [16:34:44]Write to MH i2c: E2 08 00 A1 BE 80 11 00 00 00 00 00 00 D9 [16:34:44]Write i2c OK [16:34:44]MH_I2C_Read... [16:34:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:34:44]Read from MH i2c: E2 [16:34:44]MH_I2C_Read... [16:34:44]Read from MH i2c: E2 17 00 [16:34:44]MH_I2C_Read... [16:34:44]Read from MH i2c: E2 17 00 A1 BE 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 2C [16:34:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [16:34:44]wFMCommunicate OK [16:34:44]CreateOFDProtocolMessage done [16:34:44]OFDSenderStorePacket 103733 [16:34:44]StoreOFDPacket docnum=103733 [16:34:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 4A CD 07 01 03 BE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 9C 9A 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 90 76 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 76 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 55 79 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 90 76 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 00 00 00 F4 03 04 00 B0 08 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 35 95 01 00 35 04 06 00 55 A8 98 59 F7 2B 16 1C 16 D1 68 9E 02 B9 [16:34:44]CheckFolder [16:34:44]dirname=/storage/ofd_packets [16:34:44]CheckFolder done [16:34:44]ProducePacketName [16:34:44]name=ofd_packets/00103733 [16:34:44]NVStorageSaveData ofd_packets/00103733 [16:34:44]File name is /storage/ofd_packets/00103733 [16:34:44]Write 301 bytes [16:34:44]NVStorageSaveData done [16:34:44]OFDSenderStorePacket done [16:34:44]KKMCreateOFDPacket done [16:34:44]NVStorageSaveData kkm_last_timestamp [16:34:44]File name is /storage/kkm_last_timestamp [16:34:44]Write 4 bytes [16:34:44]NVStorageSaveData done [16:34:44]ExternCall_PrintAddStr [16:34:44]wPrintStart [16:34:44]Write to MH i2c: 01 00 00 A2 BE 60 [16:34:44]Write i2c OK [16:34:44]MH_I2C_Read... [16:34:44]Read from MH i2c: 01 [16:34:44]MH_I2C_Read... [16:34:44]Read from MH i2c: 01 07 00 [16:34:44]MH_I2C_Read... [16:34:44]Read from MH i2c: 01 07 00 A2 BE 00 00 00 00 00 FF 0F 75 [16:34:44]RasterBufferAndPrint [16:34:44]line Счет N : (1)673011 [16:34:44]line ИНН: 02508201610067 [16:34:44]line Контрольно-Кассовый Чек [16:34:44]line ПРОДАЖА [16:34:44]line ТРК (МРК, ГНК) : 31 [16:34:44]line Товар: 2710124500 [16:34:44]line Аи-95-К-5 [16:34:44]line 39.580 * 73.90 [16:34:44]line = 2924.96 [16:34:44]line НДС 12% НСП 1% [16:34:44]line > о реализуемом товаре [16:34:44]line ИТОГО: 2924.96 [16:34:44]line НСП 1% : 25.88 [16:34:44]line НДС 12% : 310.61 [16:34:44]line Наличными: 0.00 [16:34:44]line Безнал.: 2924.96 [16:34:44]line Место: АЗС № 120 "Партнер Нефть" [16:34:44]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [16:34:44]line СНО: Общий режим [16:34:44]line Чек 163 19.06.2024 16:34 [16:34:44]line Смена: 353 ФФД: 1.0 [16:34:44]line ЗНМ: 0300000164 [16:34:44]line РНМ: 0000000000092785 [16:34:44]line Версия ККМ: 001 [16:34:44]line Платежная система: Бакай Банк [16:34:44]line ФМ: 0000000000875093 [16:34:44]line ФД: 103733 [16:34:44]line ФПД: 94182598899499 [16:34:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T163456&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103733&fm=94182598899499&tin=02508201610067®Number=0000000000092785&sum=292496 [16:34:45]OFD Sender: Processing packet 103733 [packets to send 17, broken 16] [16:34:45]ProducePacketName [16:34:45]name=ofd_packets/00103733 [16:34:45]OFD Sender: To server: pG, [16:34:45]CommunicateWithHost lk.salyk.kg:30040 [16:34:45]ConnectInit lk.salyk.kg [16:34:45]written 0, free lines is 4095 [16:34:45]Connected sock=10 [16:34:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 4A CD 07 01 03 BE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 9C 9A 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 90 76 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 76 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 55 79 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 90 76 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 00 00 00 F4 03 04 00 B0 08 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 35 95 01 00 35 04 06 00 55 A8 98 59 F7 2B 16 1C 16 D1 68 9E 02 B9 [16:34:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 01 D3 47 00 99 40 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 35 95 01 00 F4 03 04 00 38 AF 72 66 B6 04 01 00 00 B4 A6 54 89 DF 23 CC CE [16:34:45]CommunicateWithHost err = 0 [16:34:45]CheckOFDResponse [16:34:45]1017 (14) - 77093643461234 [16:34:45]1041 (16) - 0000000000875093 [16:34:45]1040 (4) - 103733 [16:34:45]1012 (4) - 19.06.2024 10:13 [16:34:45]1206 (1) - 0 [16:34:45]OFD Sender: Remove packet 103733 [16:34:45]ProducePacketName [16:34:45]name=ofd_packets/00103733 [16:34:45]NVStorageDeleteData [16:34:45]Write to MH i2c: 01 00 00 CC BE 8A [16:34:45]Write i2c OK [16:34:45]MH_I2C_Read... [16:34:45]Read from MH i2c: 01 [16:34:45]MH_I2C_Read... [16:34:45]Read from MH i2c: 01 07 00 [16:34:45]MH_I2C_Read... [16:34:45]Read from MH i2c: 01 07 00 CC BE 00 00 00 00 00 08 0D A6 [16:34:45]RasterBufferAndPrint [16:34:45]line [16:34:45]line [16:34:45]line [16:34:45]line [16:34:45]line [16:34:45]written 0, free lines is 3342 [16:34:45]MH_Cut [16:34:45]Write to MH i2c: D1 01 00 D3 BE 01 63 [16:34:45]Write i2c OK [16:34:45]MH_I2C_Read... [16:34:45]Read from MH i2c: D1 [16:34:45]MH_I2C_Read... [16:34:45]Read from MH i2c: D1 01 00 [16:34:45]MH_I2C_Read... [16:34:45]Read from MH i2c: D1 01 00 D3 BE 00 62 [16:34:45]Write to MH i2c: 01 00 00 D4 BE 92 [16:34:45]Write i2c OK [16:34:45]MH_I2C_Read... [16:34:46]OFD Sender: No OFD packet to send [16:34:46]*** Cut start [16:34:46]*** Partial cut [16:34:46]*** CUTSNS_PIN = 1 [16:34:46]*** CUTSNS_PIN = 0 [16:34:46]*** Brake cut motor [16:34:47]Read from MH i2c: 01 [16:34:47]MH_I2C_Read... [16:34:47]*** Stop cut motor [16:34:47]*** Cut end [16:34:47]Read from MH i2c: 01 07 00 [16:34:47]MH_I2C_Read... [16:34:47]Read from MH i2c: 01 07 00 D4 BE 00 00 00 00 00 FF 0F A7 [16:34:47]process_action close_receipt done [16:34:47]requested_data is exist [16:34:47]produce_requested_data [16:34:47]requested_item fm.sn is exist - process it [16:34:47]wFMCommunicate request_size=4 [16:34:47]MH_SAM_APDU [16:34:47]CAPDU: 80 11 00 00 [16:34:47]Write to MH i2c: E2 08 00 D5 BE 80 11 00 00 00 00 00 00 0D [16:34:47]Write i2c OK [16:34:47]MH_I2C_Read... [16:34:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:34:47]Read from MH i2c: E2 [16:34:47]MH_I2C_Read... [16:34:47]Read from MH i2c: E2 17 00 [16:34:47]MH_I2C_Read... [16:34:47]Read from MH i2c: E2 17 00 D5 BE 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 60 [16:34:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [16:34:47]wFMCommunicate OK [16:34:47]requested_item fd.num is exist - process it [16:34:47]SAM_PROTO_GetFieldsCounters [16:34:47]wFMCommunicate request_size=4 [16:34:47]MH_SAM_APDU [16:34:47]CAPDU: 80 13 00 00 [16:34:47]Write to MH i2c: E2 08 00 D6 BE 80 13 00 00 00 00 00 00 10 [16:34:47]Write i2c OK [16:34:47]MH_I2C_Read... [16:34:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:34:47]Read from MH i2c: E2 [16:34:47]MH_I2C_Read... [16:34:47]Read from MH i2c: E2 62 00 [16:34:47]MH_I2C_Read... [16:34:47]Read from MH i2c: E2 62 00 D6 BE 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 35 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 A3 00 00 00 5E 04 04 00 A3 00 00 00 57 04 04 00 A4 00 00 00 19 04 04 00 00 00 00 00 90 00 4D [16:34:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 35 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 A3 00 00 00 5E 04 04 00 A3 00 00 00 57 04 04 00 A4 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:34:47]wFMCommunicate OK [16:34:47]SAM_PROTO_GetFieldsCounters done [16:34:47]requested_item shift.num is exist - process it [16:34:47]requested_item shift.opened is exist - process it [16:34:47]req_shift_opened [16:34:47]FM_GetShiftState [16:34:47]SAM_PROTO_GetShiftState [16:34:47]wFMCommunicate request_size=4 [16:34:47]MH_SAM_APDU [16:34:47]CAPDU: 80 13 01 00 [16:34:47]Write to MH i2c: E2 08 00 D7 BE 80 13 01 00 00 00 00 00 12 [16:34:47]Write i2c OK [16:34:47]MH_I2C_Read... [16:34:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:34:47]Read from MH i2c: E2 [16:34:47]MH_I2C_Read... [16:34:47]Read from MH i2c: E2 0E 00 [16:34:47]MH_I2C_Read... [16:34:47]Read from MH i2c: E2 0E 00 D7 BE 00 09 00 01 04 26 72 66 00 00 00 00 90 00 20 [16:34:47]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [16:34:47]wFMCommunicate OK [16:34:47]SAM_PROTO_GetShiftState done [16:34:47]FM_GetShiftState done [16:34:47]req_shift_opened done [16:34:47]requested_item shift.open_date is exist - process it [16:34:47]req_shift_open_date [16:34:47]req_shift_open_date done [16:34:47]produce_requested_data done [16:34:47]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103733,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [16:34:47]process_action_free close_receipt [16:34:47]json_value_free [16:34:47]json_value_free done [16:34:47]process_json_proto returns [16:34:47]Send response to host [16:34:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103733,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [16:34:47]free response buf [16:34:47]execute_script done [16:34:47]execute_script returns [16:34:47]free content buf [16:34:47]Sock 7.Close socket [16:34:47]Sock 7.Thread stoped [16:34:51]OFD Sender: No OFD packet to send [16:34:56]OFD Sender: No OFD packet to send [16:35:01]OFD Sender: No OFD packet to send [16:35:06]OFD Sender: No OFD packet to send [16:35:11]OFD Sender: No OFD packet to send [16:35:16]OFD Sender: No OFD packet to send [16:35:21]OFD Sender: No OFD packet to send [16:35:26]OFD Sender: No OFD packet to send [16:35:31]OFD Sender: No OFD packet to send [16:35:36]OFD Sender: No OFD packet to send [16:35:41]OFD Sender: No OFD packet to send [16:35:46]OFD Sender: No OFD packet to send [16:35:51]OFD Sender: No OFD packet to send [16:35:56]OFD Sender: No OFD packet to send [16:36:01]OFD Sender: No OFD packet to send [16:36:06]OFD Sender: No OFD packet to send [16:36:11]OFD Sender: No OFD packet to send [16:36:16]OFD Sender: No OFD packet to send [16:36:21]OFD Sender: No OFD packet to send [16:36:26]OFD Sender: No OFD packet to send [16:36:31]OFD Sender: No OFD packet to send [16:36:36]OFD Sender: No OFD packet to send [16:36:41]OFD Sender: No OFD packet to send [16:36:46]OFD Sender: No OFD packet to send [16:36:51]OFD Sender: No OFD packet to send [16:36:56]OFD Sender: No OFD packet to send [16:37:01]OFD Sender: No OFD packet to send [16:37:06]OFD Sender: No OFD packet to send [16:37:11]OFD Sender: No OFD packet to send [16:37:16]OFD Sender: No OFD packet to send [16:37:21]OFD Sender: No OFD packet to send [16:37:26]OFD Sender: No OFD packet to send [16:37:31]OFD Sender: No OFD packet to send [16:37:36]OFD Sender: No OFD packet to send [16:37:41]OFD Sender: No OFD packet to send [16:37:46]OFD Sender: No OFD packet to send [16:37:51]OFD Sender: No OFD packet to send [16:37:56]OFD Sender: No OFD packet to send [16:38:01]OFD Sender: No OFD packet to send [16:38:06]OFD Sender: No OFD packet to send [16:38:11]OFD Sender: No OFD packet to send [16:38:16]OFD Sender: No OFD packet to send [16:38:21]OFD Sender: No OFD packet to send [16:38:26]OFD Sender: No OFD packet to send [16:38:31]OFD Sender: No OFD packet to send [16:38:36]OFD Sender: No OFD packet to send [16:38:41]OFD Sender: No OFD packet to send [16:38:46]OFD Sender: No OFD packet to send [16:38:51]OFD Sender: No OFD packet to send [16:38:56]OFD Sender: No OFD packet to send [16:39:01]OFD Sender: No OFD packet to send [16:39:06]OFD Sender: No OFD packet to send [16:39:11]OFD Sender: No OFD packet to send [16:39:16]OFD Sender: No OFD packet to send [16:39: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:35]accept exits with 9 [16:39:35]New connection [16:39:35]New thread 3067084132 created [16:39:35]Thread 3067227492 joined [16:39:35]Waiting for new connection... [16:39:35] Sock 9.Parse request [16:39:35]Sock 9.Check first char [16:39:35]Sock 9.First char is OK [16:39:35]request: POST /json_proto HTTP/1.0 [16:39:35]Method: POST [16:39:35]URL: /json_proto [16:39:35]Method is POST - this is cgi request [16:39:35]url: /json_proto [16:39:35]query_string will be loaded in cgi processing [16:39:35]execute_cgi json_proto POST (null) [16:39:35]execute_cgi path=json_proto method=POST [16:39:35]POST find Content-Length [16:39:35]Host: 172.17.38.133:8080 [16:39:35]Content-Length: 677 [16:39:35]Content-Type: application/json [16:39:35] [16:39:35]POST finish read [16:39:35]Found Content-Length = 677 [16:39:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673014", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:39:35]execute_script... [16:39:35]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673014", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:39:35]POST & json_proto [16:39:35]process_json_proto [16:39:35]json parsed OK: [16:39:35]protocol is kg_v1.0 [16:39:35]action value=close_receipt [16:39:35]process_action close_receipt [16:39:35]cmd_close_receipt [16:39:35]MH_GetDate [16:39:35]Write to MH i2c: F0 00 00 D8 BE 85 [16:39:35]Write i2c OK [16:39:35]MH_I2C_Read... [16:39:35]Read from MH i2c: F0 [16:39:35]MH_I2C_Read... [16:39:35]Read from MH i2c: F0 09 00 [16:39:35]MH_I2C_Read... [16:39:35]Read from MH i2c: F0 09 00 D8 BE 00 D4 09 73 66 BD 8F 7C 64 70 [16:39:35]GetLastDocTimeStamp 1718814896 [16:39:35]current date 1718815188 [16:39:35]FM_GetShiftState [16:39:35]SAM_PROTO_GetShiftState [16:39:35]wFMCommunicate request_size=4 [16:39:35]MH_SAM_APDU [16:39:35]CAPDU: 80 13 01 00 [16:39:35]Write to MH i2c: E2 08 00 D9 BE 80 13 01 00 00 00 00 00 14 [16:39:35]Write i2c OK [16:39:35]MH_I2C_Read... [16:39:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:39:35]Read from MH i2c: E2 [16:39:35]MH_I2C_Read... [16:39:35]Read from MH i2c: E2 0E 00 [16:39:35]MH_I2C_Read... [16:39:35]Read from MH i2c: E2 0E 00 D9 BE 00 09 00 01 04 26 72 66 00 00 00 00 90 00 22 [16:39:35]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [16:39:35]wFMCommunicate OK [16:39:35]SAM_PROTO_GetShiftState done [16:39:35]FM_GetShiftState done [16:39:35]opened in 1718756868 [16:39:35]opened+sec_in_day 1718843268 [16:39:35]quantity*price = 50065 [16:39:35]sum+1 = 50067 [16:39:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.17 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 164 19.06.2024 16:39 Смена: 353 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103734 ФПД: 18414856947200 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T163948&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103734&fm=18414856947200&tin=02508201610067®Number=0000000000092785&sum=50000 [16:39:36]StoreToDocumentArchive [16:39:36]shift 353 fd 103734 [16:39:36]save to /storage/0353/doc_00103734 [16:39:36]save last doc name /storage/0353/doc_00103734 to /storage/kkm_last_doc_name [16:39:36]save OK [16:39:36]Clear old archive folders... [16:39:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:39:36]tlvbuf is 0169C660 [16:39:36]SAM_PROTO_ClearQueue [16:39:36]wFMCommunicate request_size=4 [16:39:36]MH_SAM_APDU [16:39:36]CAPDU: 80 09 00 00 [16:39:36]Write to MH i2c: E2 08 00 E6 BE 80 09 00 00 00 00 00 00 16 [16:39:36]Write i2c OK [16:39:36]MH_I2C_Read... [16:39:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:39:36]Read from MH i2c: E2 [16:39:36]MH_I2C_Read... [16:39:36]Read from MH i2c: E2 03 00 [16:39:36]MH_I2C_Read... [16:39:36]Read from MH i2c: E2 03 00 E6 BE 00 90 00 18 [16:39:36]RAPDU: 90 00 [16:39:36]wFMCommunicate OK [16:39:36]SAM_PROTO_ClearQueue done [16:39:36]KKMCreateOFDPacket [16:39:36]OFDProtocolAddRootSTLVToBuf [16:39:36]FM_MakeSignedData [16:39:36]FM_MakeSignedData [16:39:36]SAM_PROTO_SignData [16:39:36]wFMCommunicate request_size=4 [16:39:36]MH_SAM_APDU [16:39:36]CAPDU: 80 0D 01 02 [16:39:36]Write to MH i2c: E2 08 00 E7 BE 80 0D 01 02 00 00 00 00 1E [16:39:36]Write i2c OK [16:39:36]MH_I2C_Read... [16:39:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:39:36]Read from MH i2c: E2 [16:39:36]MH_I2C_Read... [16:39:36]Read from MH i2c: E2 03 00 [16:39:36]MH_I2C_Read... [16:39:36]Read from MH i2c: E2 03 00 E7 BE 00 90 00 19 [16:39:36]RAPDU: 90 00 [16:39:36]wFMCommunicate OK [16:39:36]wFMCommunicate request_size=255 [16:39:36]MH_SAM_APDU [16:39:36]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 00 00 00 F4 03 04 00 D4 09 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 36 95 01 00 35 04 06 00 10 [16:39:36]Write to MH i2c: E2 02 01 E8 BE 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 00 00 00 F4 03 04 00 D4 09 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 36 95 01 00 35 04 06 00 10 00 00 70 [16:39:36]Write i2c OK [16:39:36]MH_I2C_Read... [16:39:36]OFD Sender: No OFD packet to send [16:39:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:39:36]Read from MH i2c: E2 [16:39:36]MH_I2C_Read... [16:39:36]Read from MH i2c: E2 03 00 [16:39:36]MH_I2C_Read... [16:39:36]Read from MH i2c: E2 03 00 E8 BE 00 90 00 1A [16:39:36]RAPDU: 90 00 [16:39:36]wFMCommunicate OK [16:39:36]wFMCommunicate request_size=10 [16:39:36]MH_SAM_APDU [16:39:36]CAPDU: 80 0D 02 02 05 BF 8B 01 C6 00 [16:39:36]Write to MH i2c: E2 0D 00 E9 BE 80 0D 02 02 05 00 BF 8B 01 C6 00 00 00 3C [16:39:36]Write i2c OK [16:39:36]MH_I2C_Read... [16:39:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:39:36]Read from MH i2c: E2 [16:39:36]MH_I2C_Read... [16:39:36]Read from MH i2c: E2 03 00 [16:39:36]MH_I2C_Read... [16:39:36]Read from MH i2c: E2 03 00 E9 BE 00 90 00 1B [16:39:36]RAPDU: 90 00 [16:39:36]wFMCommunicate OK [16:39:36]wFMCommunicate request_size=4 [16:39:36]MH_SAM_APDU [16:39:36]CAPDU: 80 0D 03 02 [16:39:36]Write to MH i2c: E2 08 00 EA BE 80 0D 03 02 00 00 00 00 23 [16:39:36]Write i2c OK [16:39:36]MH_I2C_Read... [16:39:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:39:36]Read from MH i2c: E2 [16:39:36]MH_I2C_Read... [16:39:36]Read from MH i2c: E2 0B 00 [16:39:36]MH_I2C_Read... [16:39:36]Read from MH i2c: E2 0B 00 EA BE 00 72 A6 2A 6B 55 D7 82 8A 90 00 09 [16:39:36]RAPDU: 72 A6 2A 6B 55 D7 82 8A 90 00 [16:39:36]wFMCommunicate OK [16:39:36]SAM_PROTO_SignData done [16:39:36]FM_MakeSignedData done [16:39:36]CreateOFDProtocolMessage [16:39:36]wFMCommunicate request_size=4 [16:39:36]MH_SAM_APDU [16:39:36]CAPDU: 80 11 00 00 [16:39:36]Write to MH i2c: E2 08 00 EB BE 80 11 00 00 00 00 00 00 23 [16:39:36]Write i2c OK [16:39:36]MH_I2C_Read... [16:39:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:39:36]Read from MH i2c: E2 [16:39:36]MH_I2C_Read... [16:39:36]Read from MH i2c: E2 17 00 [16:39:36]MH_I2C_Read... [16:39:36]Read from MH i2c: E2 17 00 EB BE 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 76 [16:39:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [16:39:36]wFMCommunicate OK [16:39:36]CreateOFDProtocolMessage done [16:39:36]OFDSenderStorePacket 103734 [16:39:36]StoreOFDPacket docnum=103734 [16:39:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 F9 56 07 01 D6 1B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 00 00 00 F4 03 04 00 D4 09 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 36 95 01 00 35 04 06 00 10 BF 8B 01 C6 00 72 A6 2A 6B 55 D7 82 8A [16:39:36]CheckFolder [16:39:36]dirname=/storage/ofd_packets [16:39:36]CheckFolder done [16:39:36]ProducePacketName [16:39:36]name=ofd_packets/00103734 [16:39:36]NVStorageSaveData ofd_packets/00103734 [16:39:36]File name is /storage/ofd_packets/00103734 [16:39:36]Write 301 bytes [16:39:36]NVStorageSaveData done [16:39:36]OFDSenderStorePacket done [16:39:36]KKMCreateOFDPacket done [16:39:36]NVStorageSaveData kkm_last_timestamp [16:39:36]File name is /storage/kkm_last_timestamp [16:39:36]Write 4 bytes [16:39:36]NVStorageSaveData done [16:39:36]ExternCall_PrintAddStr [16:39:36]wPrintStart [16:39:36]Write to MH i2c: 01 00 00 EC BE AA [16:39:36]Write i2c OK [16:39:36]MH_I2C_Read... [16:39:36]Read from MH i2c: 01 [16:39:36]MH_I2C_Read... [16:39:36]Read from MH i2c: 01 07 00 [16:39:36]MH_I2C_Read... [16:39:36]Read from MH i2c: 01 07 00 EC BE 00 00 00 00 00 FF 0F BF [16:39:36]RasterBufferAndPrint [16:39:36]line Счет N : (1)673014 [16:39:36]line ИНН: 02508201610067 [16:39:36]line Контрольно-Кассовый Чек [16:39:36]line ПРОДАЖА [16:39:36]line ТРК (МРК, ГНК) : 42 [16:39:36]line Товар: 2710124130 [16:39:36]line Аи-92-К-5 [16:39:36]line 7.540 * 66.40 [16:39:36]line = 500.66 [16:39:36]line НДС 12% НСП 1% [16:39:36]line > о реализуемом товаре [16:39:36]line ОКРУГЛЕНИЕ: -0.66 [16:39:36]line ИТОГО: 500.00 [16:39:36]line Внесено: 500.00 [16:39:36]line СДАЧА: 0.00 [16:39:36]line НСП 1% : 4.43 [16:39:36]line НДС 12% : 53.17 [16:39:36]line Наличными: 500.00 [16:39:36]line Безнал.: 0.00 [16:39:36]line Место: АЗС № 120 "Партнер Нефть" [16:39:36]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [16:39:36]line СНО: Общий режим [16:39:36]line Чек 164 19.06.2024 16:39 [16:39:36]line Смена: 353 ФФД: 1.0 [16:39:36]line ЗНМ: 0300000164 [16:39:36]line РНМ: 0000000000092785 [16:39:36]line Версия ККМ: 001 [16:39:36]line ФМ: 0000000000875093 [16:39:36]line ФД: 103734 [16:39:36]line ФПД: 18414856947200 [16:39:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T163948&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103734&fm=18414856947200&tin=02508201610067®Number=0000000000092785&sum=50000 [16:39:37]OFD Sender: Processing packet 103734 [packets to send 17, broken 16] [16:39:37]ProducePacketName [16:39:37]name=ofd_packets/00103734 [16:39:37]OFD Sender: To server: pG, [16:39:37]CommunicateWithHost lk.salyk.kg:30040 [16:39:37]ConnectInit lk.salyk.kg [16:39:37]written 0, free lines is 4095 [16:39:37]Connected sock=7 [16:39:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 F9 56 07 01 D6 1B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 00 00 00 F4 03 04 00 D4 09 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 36 95 01 00 35 04 06 00 10 BF 8B 01 C6 00 72 A6 2A 6B 55 D7 82 8A [16:39:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 CA 24 47 00 5A 18 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 36 95 01 00 F4 03 04 00 5C B0 72 66 B6 04 01 00 00 E6 68 3E E5 44 02 C9 75 [16:39:37]CommunicateWithHost err = 0 [16:39:37]CheckOFDResponse [16:39:37]1017 (14) - 77093643461234 [16:39:37]1041 (16) - 0000000000875093 [16:39:37]1040 (4) - 103734 [16:39:37]1012 (4) - 19.06.2024 10:18 [16:39:37]1206 (1) - 0 [16:39:37]OFD Sender: Remove packet 103734 [16:39:37]ProducePacketName [16:39:37]name=ofd_packets/00103734 [16:39:37]NVStorageDeleteData [16:39:37]Write to MH i2c: 01 00 00 17 BF D6 [16:39:37]Write i2c OK [16:39:37]MH_I2C_Read... [16:39:37]Read from MH i2c: 01 [16:39:37]MH_I2C_Read... [16:39:37]Read from MH i2c: 01 07 00 [16:39:37]MH_I2C_Read... [16:39:37]Read from MH i2c: 01 07 00 17 BF 00 00 00 00 00 D9 0C C2 [16:39:37]RasterBufferAndPrint [16:39:37]line [16:39:37]line [16:39:37]line [16:39:37]line [16:39:37]line [16:39:37]written 0, free lines is 3297 [16:39:37]MH_Cut [16:39:37]Write to MH i2c: D1 01 00 1E BF 01 AF [16:39:37]Write i2c OK [16:39:37]MH_I2C_Read... [16:39:37]Read from MH i2c: D1 [16:39:37]MH_I2C_Read... [16:39:37]Read from MH i2c: D1 01 00 [16:39:37]MH_I2C_Read... [16:39:37]Read from MH i2c: D1 01 00 1E BF 00 AE [16:39:37]Write to MH i2c: 01 00 00 1F BF DE [16:39:37]Write i2c OK [16:39:37]MH_I2C_Read... [16:39:38]OFD Sender: No OFD packet to send [16:39:38]*** Cut start [16:39:38]*** Partial cut [16:39:38]*** CUTSNS_PIN = 1 [16:39:38]*** CUTSNS_PIN = 0 [16:39:38]*** Brake cut motor [16:39:38]Read from MH i2c: 01 [16:39:38]MH_I2C_Read... [16:39:38]*** Stop cut motor [16:39:38]*** Cut end [16:39:38]Read from MH i2c: 01 07 00 [16:39:38]MH_I2C_Read... [16:39:38]Read from MH i2c: 01 07 00 1F BF 00 00 00 00 00 FF 0F F3 [16:39:38]process_action close_receipt done [16:39:38]requested_data is exist [16:39:38]produce_requested_data [16:39:38]requested_item fm.sn is exist - process it [16:39:38]wFMCommunicate request_size=4 [16:39:38]MH_SAM_APDU [16:39:38]CAPDU: 80 11 00 00 [16:39:38]Write to MH i2c: E2 08 00 20 BF 80 11 00 00 00 00 00 00 59 [16:39:38]Write i2c OK [16:39:38]MH_I2C_Read... [16:39:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:39:39]Read from MH i2c: E2 [16:39:39]MH_I2C_Read... [16:39:39]Read from MH i2c: E2 17 00 [16:39:39]MH_I2C_Read... [16:39:39]Read from MH i2c: E2 17 00 20 BF 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 AC [16:39:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [16:39:39]wFMCommunicate OK [16:39:39]requested_item fd.num is exist - process it [16:39:39]SAM_PROTO_GetFieldsCounters [16:39:39]wFMCommunicate request_size=4 [16:39:39]MH_SAM_APDU [16:39:39]CAPDU: 80 13 00 00 [16:39:39]Write to MH i2c: E2 08 00 21 BF 80 13 00 00 00 00 00 00 5C [16:39:39]Write i2c OK [16:39:39]MH_I2C_Read... [16:39:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:39:39]Read from MH i2c: E2 [16:39:39]MH_I2C_Read... [16:39:39]Read from MH i2c: E2 62 00 [16:39:39]MH_I2C_Read... [16:39:39]Read from MH i2c: E2 62 00 21 BF 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 36 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 A4 00 00 00 5E 04 04 00 A4 00 00 00 57 04 04 00 A5 00 00 00 19 04 04 00 00 00 00 00 90 00 9D [16:39:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 36 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 A4 00 00 00 5E 04 04 00 A4 00 00 00 57 04 04 00 A5 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:39:39]wFMCommunicate OK [16:39:39]SAM_PROTO_GetFieldsCounters done [16:39:39]requested_item shift.num is exist - process it [16:39:39]requested_item shift.opened is exist - process it [16:39:39]req_shift_opened [16:39:39]FM_GetShiftState [16:39:39]SAM_PROTO_GetShiftState [16:39:39]wFMCommunicate request_size=4 [16:39:39]MH_SAM_APDU [16:39:39]CAPDU: 80 13 01 00 [16:39:39]Write to MH i2c: E2 08 00 22 BF 80 13 01 00 00 00 00 00 5E [16:39:39]Write i2c OK [16:39:39]MH_I2C_Read... [16:39:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:39:39]Read from MH i2c: E2 [16:39:39]MH_I2C_Read... [16:39:39]Read from MH i2c: E2 0E 00 [16:39:39]MH_I2C_Read... [16:39:39]Read from MH i2c: E2 0E 00 22 BF 00 09 00 01 04 26 72 66 00 00 00 00 90 00 6C [16:39:39]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [16:39:39]wFMCommunicate OK [16:39:39]SAM_PROTO_GetShiftState done [16:39:39]FM_GetShiftState done [16:39:39]req_shift_opened done [16:39:39]requested_item shift.open_date is exist - process it [16:39:39]req_shift_open_date [16:39:39]req_shift_open_date done [16:39:39]produce_requested_data done [16:39:39]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103734,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [16:39:39]process_action_free close_receipt [16:39:39]json_value_free [16:39:39]json_value_free done [16:39:39]process_json_proto returns [16:39:39]Send response to host [16:39:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103734,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [16:39:39]free response buf [16:39:39]execute_script done [16:39:39]execute_script returns [16:39:39]free content buf [16:39:39]Sock 9.Close socket [16:39:39]Sock 9.Thread stoped [16:39:43]OFD Sender: No OFD packet to send [16:39:48]OFD Sender: No OFD packet to send [16:39:53]OFD Sender: No OFD packet to send [16:39:58]OFD Sender: No OFD packet to send [16:40:03]OFD Sender: No OFD packet to send [16:40:08]OFD Sender: No OFD packet to send [16:40:13]OFD Sender: No OFD packet to send [16:40:16]accept exits with 10 [16:40:16]New connection [16:40:16]New thread 3067227492 created [16:40:16]Thread 3067084132 joined [16:40:16]Waiting for new connection... [16:40:16] Sock 10.Parse request [16:40:16]Sock 10.Check first char [16:40:16]Sock 10.First char is OK [16:40:16]request: POST /json_proto HTTP/1.0 [16:40:16]Method: POST [16:40:16]URL: /json_proto [16:40:16]Method is POST - this is cgi request [16:40:16]url: /json_proto [16:40:16]query_string will be loaded in cgi processing [16:40:16]execute_cgi json_proto POST (null) [16:40:16]execute_cgi path=json_proto method=POST [16:40:16]POST find Content-Length [16:40:16]Host: 172.17.38.133:8080 [16:40:16]Content-Length: 677 [16:40:16]Content-Type: application/json [16:40:16] [16:40:16]POST finish read [16:40:16]Found Content-Length = 677 [16:40:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673015", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:40:16]execute_script... [16:40: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)673015", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:40:16]POST & json_proto [16:40:16]process_json_proto [16:40:16]json parsed OK: [16:40:16]protocol is kg_v1.0 [16:40:16]action value=close_receipt [16:40:16]process_action close_receipt [16:40:16]cmd_close_receipt [16:40:16]MH_GetDate [16:40:16]Write to MH i2c: F0 00 00 23 BF D1 [16:40:16]Write i2c OK [16:40:16]MH_I2C_Read... [16:40:16]Read from MH i2c: F0 [16:40:16]MH_I2C_Read... [16:40:16]Read from MH i2c: F0 09 00 [16:40:16]MH_I2C_Read... [16:40:16]Read from MH i2c: F0 09 00 23 BF 00 FD 09 73 66 BD 8F 7C 64 E5 [16:40:16]GetLastDocTimeStamp 1718815188 [16:40:16]current date 1718815229 [16:40:16]FM_GetShiftState [16:40:16]SAM_PROTO_GetShiftState [16:40:16]wFMCommunicate request_size=4 [16:40:16]MH_SAM_APDU [16:40:16]CAPDU: 80 13 01 00 [16:40:16]Write to MH i2c: E2 08 00 24 BF 80 13 01 00 00 00 00 00 60 [16:40:16]Write i2c OK [16:40:16]MH_I2C_Read... [16:40:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:40:16]Read from MH i2c: E2 [16:40:16]MH_I2C_Read... [16:40:16]Read from MH i2c: E2 0E 00 [16:40:16]MH_I2C_Read... [16:40:16]Read from MH i2c: E2 0E 00 24 BF 00 09 00 01 04 26 72 66 00 00 00 00 90 00 6E [16:40:16]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [16:40:16]wFMCommunicate OK [16:40:16]SAM_PROTO_GetShiftState done [16:40:16]FM_GetShiftState done [16:40:16]opened in 1718756868 [16:40:16]opened+sec_in_day 1718843268 [16:40:16]quantity*price = 50065 [16:40:16]sum+1 = 50067 [16:40:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.17 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 165 19.06.2024 16:40 Смена: 353 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103735 ФПД: 35330937464181 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T164029&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103735&fm=35330937464181&tin=02508201610067®Number=0000000000092785&sum=50000 [16:40:17]StoreToDocumentArchive [16:40:17]shift 353 fd 103735 [16:40:17]save to /storage/0353/doc_00103735 [16:40:17]save last doc name /storage/0353/doc_00103735 to /storage/kkm_last_doc_name [16:40:17]save OK [16:40:17]Clear old archive folders... [16:40:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:40:17]tlvbuf is 0147C2F0 [16:40:17]SAM_PROTO_ClearQueue [16:40:17]wFMCommunicate request_size=4 [16:40:17]MH_SAM_APDU [16:40:17]CAPDU: 80 09 00 00 [16:40:17]Write to MH i2c: E2 08 00 31 BF 80 09 00 00 00 00 00 00 62 [16:40:17]Write i2c OK [16:40:17]MH_I2C_Read... [16:40:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:40:17]Read from MH i2c: E2 [16:40:17]MH_I2C_Read... [16:40:17]Read from MH i2c: E2 03 00 [16:40:17]MH_I2C_Read... [16:40:17]Read from MH i2c: E2 03 00 31 BF 00 90 00 64 [16:40:17]RAPDU: 90 00 [16:40:17]wFMCommunicate OK [16:40:17]SAM_PROTO_ClearQueue done [16:40:17]KKMCreateOFDPacket [16:40:17]OFDProtocolAddRootSTLVToBuf [16:40:17]FM_MakeSignedData [16:40:17]FM_MakeSignedData [16:40:17]SAM_PROTO_SignData [16:40:17]wFMCommunicate request_size=4 [16:40:17]MH_SAM_APDU [16:40:17]CAPDU: 80 0D 01 02 [16:40:17]Write to MH i2c: E2 08 00 32 BF 80 0D 01 02 00 00 00 00 6A [16:40:17]Write i2c OK [16:40:17]MH_I2C_Read... [16:40:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:40:17]Read from MH i2c: E2 [16:40:17]MH_I2C_Read... [16:40:17]Read from MH i2c: E2 03 00 [16:40:17]MH_I2C_Read... [16:40:17]Read from MH i2c: E2 03 00 32 BF 00 90 00 65 [16:40:17]RAPDU: 90 00 [16:40:17]wFMCommunicate OK [16:40:17]wFMCommunicate request_size=255 [16:40:17]MH_SAM_APDU [16:40:17]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 00 00 00 F4 03 04 00 FD 09 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 37 95 01 00 35 04 06 00 20 [16:40:17]Write to MH i2c: E2 02 01 33 BF 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 00 00 00 F4 03 04 00 FD 09 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 37 95 01 00 35 04 06 00 20 00 00 F7 [16:40:17]Write i2c OK [16:40:17]MH_I2C_Read... [16:40:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:40:17]Read from MH i2c: E2 [16:40:17]MH_I2C_Read... [16:40:17]Read from MH i2c: E2 03 00 [16:40:17]MH_I2C_Read... [16:40:17]Read from MH i2c: E2 03 00 33 BF 00 90 00 66 [16:40:17]RAPDU: 90 00 [16:40:17]wFMCommunicate OK [16:40:17]wFMCommunicate request_size=10 [16:40:17]MH_SAM_APDU [16:40:17]CAPDU: 80 0D 02 02 05 22 1F FA 25 75 [16:40:17]Write to MH i2c: E2 0D 00 34 BF 80 0D 02 02 05 00 22 1F FA 25 75 00 00 4C [16:40:17]Write i2c OK [16:40:17]MH_I2C_Read... [16:40:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:40:17]Read from MH i2c: E2 [16:40:17]MH_I2C_Read... [16:40:17]Read from MH i2c: E2 03 00 [16:40:17]MH_I2C_Read... [16:40:17]Read from MH i2c: E2 03 00 34 BF 00 90 00 67 [16:40:17]RAPDU: 90 00 [16:40:17]wFMCommunicate OK [16:40:17]wFMCommunicate request_size=4 [16:40:17]MH_SAM_APDU [16:40:17]CAPDU: 80 0D 03 02 [16:40:17]Write to MH i2c: E2 08 00 35 BF 80 0D 03 02 00 00 00 00 6F [16:40:17]Write i2c OK [16:40:17]MH_I2C_Read... [16:40:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:40:17]Read from MH i2c: E2 [16:40:17]MH_I2C_Read... [16:40:17]Read from MH i2c: E2 0B 00 [16:40:17]MH_I2C_Read... [16:40:17]Read from MH i2c: E2 0B 00 35 BF 00 BF B7 7D A4 8B F3 2E 34 90 00 E7 [16:40:17]RAPDU: BF B7 7D A4 8B F3 2E 34 90 00 [16:40:17]wFMCommunicate OK [16:40:17]SAM_PROTO_SignData done [16:40:17]FM_MakeSignedData done [16:40:17]CreateOFDProtocolMessage [16:40:17]wFMCommunicate request_size=4 [16:40:17]MH_SAM_APDU [16:40:17]CAPDU: 80 11 00 00 [16:40:17]Write to MH i2c: E2 08 00 36 BF 80 11 00 00 00 00 00 00 6F [16:40:17]Write i2c OK [16:40:17]MH_I2C_Read... [16:40:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:40:18]Read from MH i2c: E2 [16:40:18]MH_I2C_Read... [16:40:18]Read from MH i2c: E2 17 00 [16:40:18]MH_I2C_Read... [16:40:18]Read from MH i2c: E2 17 00 36 BF 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 C2 [16:40:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [16:40:18]wFMCommunicate OK [16:40:18]CreateOFDProtocolMessage done [16:40:18]OFDSenderStorePacket 103735 [16:40:18]StoreOFDPacket docnum=103735 [16:40:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 12 CF 07 01 B2 D3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 00 00 00 F4 03 04 00 FD 09 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 37 95 01 00 35 04 06 00 20 22 1F FA 25 75 BF B7 7D A4 8B F3 2E 34 [16:40:18]CheckFolder [16:40:18]dirname=/storage/ofd_packets [16:40:18]CheckFolder done [16:40:18]ProducePacketName [16:40:18]name=ofd_packets/00103735 [16:40:18]NVStorageSaveData ofd_packets/00103735 [16:40:18]File name is /storage/ofd_packets/00103735 [16:40:18]Write 301 bytes [16:40:18]NVStorageSaveData done [16:40:18]OFDSenderStorePacket done [16:40:18]KKMCreateOFDPacket done [16:40:18]NVStorageSaveData kkm_last_timestamp [16:40:18]File name is /storage/kkm_last_timestamp [16:40:18]Write 4 bytes [16:40:18]NVStorageSaveData done [16:40:18]ExternCall_PrintAddStr [16:40:18]wPrintStart [16:40:18]Write to MH i2c: 01 00 00 37 BF F6 [16:40:18]Write i2c OK [16:40:18]MH_I2C_Read... [16:40:18]Read from MH i2c: 01 [16:40:18]MH_I2C_Read... [16:40:18]Read from MH i2c: 01 07 00 [16:40:18]MH_I2C_Read... [16:40:18]Read from MH i2c: 01 07 00 37 BF 00 00 00 00 00 FF 0F 0B [16:40:18]RasterBufferAndPrint [16:40:18]line Счет N : (1)673015 [16:40:18]line ИНН: 02508201610067 [16:40:18]line Контрольно-Кассовый Чек [16:40:18]line ПРОДАЖА [16:40:18]line ТРК (МРК, ГНК) : 32 [16:40:18]line Товар: 2710124130 [16:40:18]line Аи-92-К-5 [16:40:18]line 7.540 * 66.40 [16:40:18]line = 500.66 [16:40:18]line НДС 12% НСП 1% [16:40:18]line > о реализуемом товаре [16:40:18]line ОКРУГЛЕНИЕ: -0.66 [16:40:18]line ИТОГО: 500.00 [16:40:18]line Внесено: 500.00 [16:40:18]line СДАЧА: 0.00 [16:40:18]line НСП 1% : 4.43 [16:40:18]line НДС 12% : 53.17 [16:40:18]line Наличными: 500.00 [16:40:18]line Безнал.: 0.00 [16:40:18]line Место: АЗС № 120 "Партнер Нефть" [16:40:18]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [16:40:18]line СНО: Общий режим [16:40:18]line Чек 165 19.06.2024 16:40 [16:40:18]line Смена: 353 ФФД: 1.0 [16:40:18]line ЗНМ: 0300000164 [16:40:18]line РНМ: 0000000000092785 [16:40:18]line Версия ККМ: 001 [16:40:18]line ФМ: 0000000000875093 [16:40:18]line ФД: 103735 [16:40:18]line ФПД: 35330937464181 [16:40:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T164029&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103735&fm=35330937464181&tin=02508201610067®Number=0000000000092785&sum=50000 [16:40:18]written 0, free lines is 4095 [16:40:18]OFD Sender: Processing packet 103735 [packets to send 17, broken 16] [16:40:18]ProducePacketName [16:40:18]name=ofd_packets/00103735 [16:40:18]OFD Sender: To server: pG, [16:40:18]CommunicateWithHost lk.salyk.kg:30040 [16:40:18]ConnectInit lk.salyk.kg [16:40:18]Connected sock=11 [16:40: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 39 33 0F 01 00 00 12 CF 07 01 B2 D3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 00 00 00 F4 03 04 00 FD 09 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 37 95 01 00 35 04 06 00 20 22 1F FA 25 75 BF B7 7D A4 8B F3 2E 34 [16:40:18]Write to MH i2c: 01 00 00 62 BF 21 [16:40:18]Write i2c OK [16:40:18]MH_I2C_Read... [16:40:18]Read from MH i2c: 01 [16:40:18]MH_I2C_Read... [16:40:18]Read from MH i2c: 01 07 00 [16:40:18]MH_I2C_Read... [16:40:18]Read from MH i2c: 01 07 00 62 BF 00 00 00 00 00 E0 0C 14 [16:40:18]RasterBufferAndPrint [16:40:18]line [16:40:18]line [16:40:18]line [16:40:18]line [16:40:18]line [16:40:18]written 0, free lines is 3301 [16:40:18]MH_Cut [16:40:18]Write to MH i2c: D1 01 00 69 BF 01 FA [16:40:18]Write i2c OK [16:40:18]MH_I2C_Read... [16:40:18]Read from MH i2c: D1 [16:40:18]MH_I2C_Read... [16:40:18]Read from MH i2c: D1 01 00 [16:40:18]MH_I2C_Read... [16:40:18]Read from MH i2c: D1 01 00 69 BF 00 F9 [16:40:18]Write to MH i2c: 01 00 00 6A BF 29 [16:40:18]Write i2c OK [16:40:18]MH_I2C_Read... [16:40:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 7F F8 47 00 2B 24 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 37 95 01 00 F4 03 04 00 86 B0 72 66 B6 04 01 00 00 FD C5 C8 E7 6D BF D0 DF [16:40:18]CommunicateWithHost err = 0 [16:40:18]CheckOFDResponse [16:40:18]1017 (14) - 77093643461234 [16:40:18]1041 (16) - 0000000000875093 [16:40:18]1040 (4) - 103735 [16:40:18]1012 (4) - 19.06.2024 10:18 [16:40:18]1206 (1) - 0 [16:40:18]OFD Sender: Remove packet 103735 [16:40:18]ProducePacketName [16:40:18]name=ofd_packets/00103735 [16:40:18]NVStorageDeleteData [16:40:19]OFD Sender: No OFD packet to send [16:40:19]*** Cut start [16:40:19]*** Partial cut [16:40:19]*** CUTSNS_PIN = 1 [16:40:19]*** CUTSNS_PIN = 0 [16:40:19]*** Brake cut motor [16:40:20]Read from MH i2c: 01 [16:40:20]MH_I2C_Read... [16:40:20]*** Stop cut motor [16:40:20]*** Cut end [16:40:20]Read from MH i2c: 01 07 00 [16:40:20]MH_I2C_Read... [16:40:20]Read from MH i2c: 01 07 00 6A BF 00 00 00 00 00 FF 0F 3E [16:40:20]process_action close_receipt done [16:40:20]requested_data is exist [16:40:20]produce_requested_data [16:40:20]requested_item fm.sn is exist - process it [16:40:20]wFMCommunicate request_size=4 [16:40:20]MH_SAM_APDU [16:40:20]CAPDU: 80 11 00 00 [16:40:20]Write to MH i2c: E2 08 00 6B BF 80 11 00 00 00 00 00 00 A4 [16:40:20]Write i2c OK [16:40:20]MH_I2C_Read... [16:40:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:40:20]Read from MH i2c: E2 [16:40:20]MH_I2C_Read... [16:40:20]Read from MH i2c: E2 17 00 [16:40:20]MH_I2C_Read... [16:40:20]Read from MH i2c: E2 17 00 6B BF 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 F7 [16:40:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [16:40:20]wFMCommunicate OK [16:40:20]requested_item fd.num is exist - process it [16:40:20]SAM_PROTO_GetFieldsCounters [16:40:20]wFMCommunicate request_size=4 [16:40:20]MH_SAM_APDU [16:40:20]CAPDU: 80 13 00 00 [16:40:20]Write to MH i2c: E2 08 00 6C BF 80 13 00 00 00 00 00 00 A7 [16:40:20]Write i2c OK [16:40:20]MH_I2C_Read... [16:40:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:40:20]Read from MH i2c: E2 [16:40:20]MH_I2C_Read... [16:40:20]Read from MH i2c: E2 62 00 [16:40:20]MH_I2C_Read... [16:40:20]Read from MH i2c: E2 62 00 6C BF 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 37 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 A5 00 00 00 5E 04 04 00 A5 00 00 00 57 04 04 00 A6 00 00 00 19 04 04 00 00 00 00 00 90 00 EC [16:40: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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 37 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 A5 00 00 00 5E 04 04 00 A5 00 00 00 57 04 04 00 A6 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:40:20]wFMCommunicate OK [16:40:20]SAM_PROTO_GetFieldsCounters done [16:40:20]requested_item shift.num is exist - process it [16:40:20]requested_item shift.opened is exist - process it [16:40:20]req_shift_opened [16:40:20]FM_GetShiftState [16:40:20]SAM_PROTO_GetShiftState [16:40:20]wFMCommunicate request_size=4 [16:40:20]MH_SAM_APDU [16:40:20]CAPDU: 80 13 01 00 [16:40:20]Write to MH i2c: E2 08 00 6D BF 80 13 01 00 00 00 00 00 A9 [16:40:20]Write i2c OK [16:40:20]MH_I2C_Read... [16:40:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:40:20]Read from MH i2c: E2 [16:40:20]MH_I2C_Read... [16:40:20]Read from MH i2c: E2 0E 00 [16:40:20]MH_I2C_Read... [16:40:20]Read from MH i2c: E2 0E 00 6D BF 00 09 00 01 04 26 72 66 00 00 00 00 90 00 B7 [16:40:20]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [16:40:20]wFMCommunicate OK [16:40:20]SAM_PROTO_GetShiftState done [16:40:20]FM_GetShiftState done [16:40:20]req_shift_opened done [16:40:20]requested_item shift.open_date is exist - process it [16:40:20]req_shift_open_date [16:40:20]req_shift_open_date done [16:40:20]produce_requested_data done [16:40:20]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103735,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [16:40:20]process_action_free close_receipt [16:40:20]json_value_free [16:40:20]json_value_free done [16:40:20]process_json_proto returns [16:40:20]Send response to host [16:40:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103735,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [16:40:20]free response buf [16:40:20]execute_script done [16:40:20]execute_script returns [16:40:20]free content buf [16:40:20]Sock 10.Close socket [16:40:20]Sock 10.Thread stoped [16:40:24]OFD Sender: No OFD packet to send [16:40:29]OFD Sender: No OFD packet to send [16:40:34]OFD Sender: No OFD packet to send [16:40:39]OFD Sender: No OFD packet to send [16:40:44]OFD Sender: No OFD packet to send [16:40:49]OFD Sender: No OFD packet to send [16:40:54]OFD Sender: No OFD packet to send [16:40:59]OFD Sender: No OFD packet to send [16:41:04]OFD Sender: No OFD packet to send [16:41:09]OFD Sender: No OFD packet to send [16:41:14]OFD Sender: No OFD packet to send [16:41:19]OFD Sender: No OFD packet to send [16:41:24]OFD Sender: No OFD packet to send [16:41:29]OFD Sender: No OFD packet to send [16:41:34]OFD Sender: No OFD packet to send [16:41:39]OFD Sender: No OFD packet to send [16:41:44]OFD Sender: No OFD packet to send [16:41:49]OFD Sender: No OFD packet to send [16:41:54]OFD Sender: No OFD packet to send [16:41:59]OFD Sender: No OFD packet to send [16:42:04]OFD Sender: No OFD packet to send [16:42:08]accept exits with 7 [16:42:08]New connection [16:42:08]New thread 3067084132 created [16:42:08]Thread 3067227492 joined [16:42:08]Waiting for new connection... [16:42:08] Sock 7.Parse request [16:42:08]Sock 7.Check first char [16:42:08]Sock 7.First char is OK [16:42:08]request: POST /json_proto HTTP/1.0 [16:42:08]Method: POST [16:42:08]URL: /json_proto [16:42:08]Method is POST - this is cgi request [16:42:08]url: /json_proto [16:42:08]query_string will be loaded in cgi processing [16:42:08]execute_cgi json_proto POST (null) [16:42:08]execute_cgi path=json_proto method=POST [16:42:08]POST find Content-Length [16:42:08]Host: 172.17.38.133:8080 [16:42:08]Content-Length: 677 [16:42:08]Content-Type: application/json [16:42:08] [16:42:08]POST finish read [16:42:08]Found Content-Length = 677 [16:42:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673016", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:42:08]execute_script... [16:42: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)673016", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:42:08]POST & json_proto [16:42:08]process_json_proto [16:42:08]json parsed OK: [16:42:08]protocol is kg_v1.0 [16:42:08]action value=close_receipt [16:42:08]process_action close_receipt [16:42:08]cmd_close_receipt [16:42:08]MH_GetDate [16:42:08]Write to MH i2c: F0 00 00 6E BF 1C [16:42:08]Write i2c OK [16:42:08]MH_I2C_Read... [16:42:08]Read from MH i2c: F0 [16:42:08]MH_I2C_Read... [16:42:08]Read from MH i2c: F0 09 00 [16:42:08]MH_I2C_Read... [16:42:08]Read from MH i2c: F0 09 00 6E BF 00 6E 0A 73 66 BD 8F 7C 64 A2 [16:42:08]GetLastDocTimeStamp 1718815229 [16:42:08]current date 1718815342 [16:42:08]FM_GetShiftState [16:42:08]SAM_PROTO_GetShiftState [16:42:08]wFMCommunicate request_size=4 [16:42:08]MH_SAM_APDU [16:42:08]CAPDU: 80 13 01 00 [16:42:08]Write to MH i2c: E2 08 00 6F BF 80 13 01 00 00 00 00 00 AB [16:42:08]Write i2c OK [16:42:08]MH_I2C_Read... [16:42:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:42:08]Read from MH i2c: E2 [16:42:08]MH_I2C_Read... [16:42:08]Read from MH i2c: E2 0E 00 [16:42:08]MH_I2C_Read... [16:42:08]Read from MH i2c: E2 0E 00 6F BF 00 09 00 01 04 26 72 66 00 00 00 00 90 00 B9 [16:42:08]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [16:42:08]wFMCommunicate OK [16:42:08]SAM_PROTO_GetShiftState done [16:42:08]FM_GetShiftState done [16:42:08]opened in 1718756868 [16:42:08]opened+sec_in_day 1718843268 [16:42:08]quantity*price = 50065 [16:42:08]sum+1 = 50067 [16:42:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.17 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 166 19.06.2024 16:42 Смена: 353 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103736 ФПД: 29034312413340 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T164222&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103736&fm=29034312413340&tin=02508201610067®Number=0000000000092785&sum=50000 [16:42:10]StoreToDocumentArchive [16:42:10]shift 353 fd 103736 [16:42:10]save to /storage/0353/doc_00103736 [16:42:10]save last doc name /storage/0353/doc_00103736 to /storage/kkm_last_doc_name [16:42:10]save OK [16:42:10]Clear old archive folders... [16:42:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:42:10]tlvbuf is 013E1AE0 [16:42:10]SAM_PROTO_ClearQueue [16:42:10]wFMCommunicate request_size=4 [16:42:10]MH_SAM_APDU [16:42:10]CAPDU: 80 09 00 00 [16:42:10]Write to MH i2c: E2 08 00 7C BF 80 09 00 00 00 00 00 00 AD [16:42:10]Write i2c OK [16:42:10]MH_I2C_Read... [16:42:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:42:10]Read from MH i2c: E2 [16:42:10]MH_I2C_Read... [16:42:10]Read from MH i2c: E2 03 00 [16:42:10]MH_I2C_Read... [16:42:10]Read from MH i2c: E2 03 00 7C BF 00 90 00 AF [16:42:10]RAPDU: 90 00 [16:42:10]wFMCommunicate OK [16:42:10]SAM_PROTO_ClearQueue done [16:42:10]KKMCreateOFDPacket [16:42:10]OFDProtocolAddRootSTLVToBuf [16:42:10]FM_MakeSignedData [16:42:10]FM_MakeSignedData [16:42:10]SAM_PROTO_SignData [16:42:10]wFMCommunicate request_size=4 [16:42:10]MH_SAM_APDU [16:42:10]CAPDU: 80 0D 01 02 [16:42:10]Write to MH i2c: E2 08 00 7D BF 80 0D 01 02 00 00 00 00 B5 [16:42:10]Write i2c OK [16:42:10]MH_I2C_Read... [16:42:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:42:10]Read from MH i2c: E2 [16:42:10]MH_I2C_Read... [16:42:10]Read from MH i2c: E2 03 00 [16:42:10]MH_I2C_Read... [16:42:10]Read from MH i2c: E2 03 00 7D BF 00 90 00 B0 [16:42:10]RAPDU: 90 00 [16:42:10]wFMCommunicate OK [16:42:10]wFMCommunicate request_size=255 [16:42:10]MH_SAM_APDU [16:42:10]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 6E 0A 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 38 95 01 00 35 04 06 00 1A [16:42:10]Write to MH i2c: E2 02 01 7E BF 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 6E 0A 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 38 95 01 00 35 04 06 00 1A 00 00 B0 [16:42:10]Write i2c OK [16:42:10]MH_I2C_Read... [16:42:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:42:10]Read from MH i2c: E2 [16:42:10]MH_I2C_Read... [16:42:10]Read from MH i2c: E2 03 00 [16:42:10]MH_I2C_Read... [16:42:10]Read from MH i2c: E2 03 00 7E BF 00 90 00 B1 [16:42:10]RAPDU: 90 00 [16:42:10]wFMCommunicate OK [16:42:10]wFMCommunicate request_size=10 [16:42:10]MH_SAM_APDU [16:42:10]CAPDU: 80 0D 02 02 05 68 13 E0 B0 9C [16:42:10]Write to MH i2c: E2 0D 00 7F BF 80 0D 02 02 05 00 68 13 E0 B0 9C 00 00 69 [16:42:10]Write i2c OK [16:42:10]MH_I2C_Read... [16:42:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:42:10]Read from MH i2c: E2 [16:42:10]MH_I2C_Read... [16:42:10]Read from MH i2c: E2 03 00 [16:42:10]MH_I2C_Read... [16:42:10]Read from MH i2c: E2 03 00 7F BF 00 90 00 B2 [16:42:10]RAPDU: 90 00 [16:42:10]wFMCommunicate OK [16:42:10]wFMCommunicate request_size=4 [16:42:10]MH_SAM_APDU [16:42:10]CAPDU: 80 0D 03 02 [16:42:10]Write to MH i2c: E2 08 00 80 BF 80 0D 03 02 00 00 00 00 BA [16:42:10]Write i2c OK [16:42:10]MH_I2C_Read... [16:42:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:42:10]Read from MH i2c: E2 [16:42:10]MH_I2C_Read... [16:42:10]Read from MH i2c: E2 0B 00 [16:42:10]MH_I2C_Read... [16:42:10]Read from MH i2c: E2 0B 00 80 BF 00 2F 17 0D 68 89 21 86 65 90 00 0B [16:42:10]RAPDU: 2F 17 0D 68 89 21 86 65 90 00 [16:42:10]wFMCommunicate OK [16:42:10]SAM_PROTO_SignData done [16:42:10]FM_MakeSignedData done [16:42:10]CreateOFDProtocolMessage [16:42:10]wFMCommunicate request_size=4 [16:42:10]MH_SAM_APDU [16:42:10]CAPDU: 80 11 00 00 [16:42:10]Write to MH i2c: E2 08 00 81 BF 80 11 00 00 00 00 00 00 BA [16:42:10]Write i2c OK [16:42:10]MH_I2C_Read... [16:42:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:42:10]Read from MH i2c: E2 [16:42:10]MH_I2C_Read... [16:42:10]Read from MH i2c: E2 17 00 [16:42:10]MH_I2C_Read... [16:42:10]Read from MH i2c: E2 17 00 81 BF 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 0D [16:42:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [16:42:10]wFMCommunicate OK [16:42:10]CreateOFDProtocolMessage done [16:42:10]OFDSenderStorePacket 103736 [16:42:10]StoreOFDPacket docnum=103736 [16:42:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 9D 97 07 01 F3 7E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 6E 0A 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 38 95 01 00 35 04 06 00 1A 68 13 E0 B0 9C 2F 17 0D 68 89 21 86 65 [16:42:10]CheckFolder [16:42:10]dirname=/storage/ofd_packets [16:42:10]CheckFolder done [16:42:10]ProducePacketName [16:42:10]name=ofd_packets/00103736 [16:42:10]NVStorageSaveData ofd_packets/00103736 [16:42:10]File name is /storage/ofd_packets/00103736 [16:42:10]Write 301 bytes [16:42:10]NVStorageSaveData done [16:42:10]OFDSenderStorePacket done [16:42:10]KKMCreateOFDPacket done [16:42:10]NVStorageSaveData kkm_last_timestamp [16:42:10]File name is /storage/kkm_last_timestamp [16:42:10]Write 4 bytes [16:42:10]NVStorageSaveData done [16:42:10]ExternCall_PrintAddStr [16:42:10]wPrintStart [16:42:10]Write to MH i2c: 01 00 00 82 BF 41 [16:42:10]Write i2c OK [16:42:10]MH_I2C_Read... [16:42:10]Read from MH i2c: 01 [16:42:10]MH_I2C_Read... [16:42:10]Read from MH i2c: 01 07 00 [16:42:10]MH_I2C_Read... [16:42:10]Read from MH i2c: 01 07 00 82 BF 00 00 00 00 00 FF 0F 56 [16:42:10]RasterBufferAndPrint [16:42:10]line Счет N : (1)673016 [16:42:10]line ИНН: 02508201610067 [16:42:10]line Контрольно-Кассовый Чек [16:42:10]line ПРОДАЖА [16:42:10]line ТРК (МРК, ГНК) : 32 [16:42:10]line Товар: 2710124130 [16:42:10]line Аи-92-К-5 [16:42:10]line 7.540 * 66.40 [16:42:10]line = 500.66 [16:42:10]line НДС 12% НСП 1% [16:42:10]line > о реализуемом товаре [16:42:10]line ОКРУГЛЕНИЕ: -0.66 [16:42:10]line ИТОГО: 500.00 [16:42:10]line Внесено: 500.00 [16:42:10]line СДАЧА: 0.00 [16:42:10]line НСП 1% : 4.43 [16:42:10]line НДС 12% : 53.17 [16:42:10]line Наличными: 500.00 [16:42:10]line Безнал.: 0.00 [16:42:10]line Место: АЗС № 120 "Партнер Нефть" [16:42:10]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [16:42:10]line СНО: Общий режим [16:42:10]line Чек 166 19.06.2024 16:42 [16:42:10]line Смена: 353 ФФД: 1.0 [16:42:10]line ЗНМ: 0300000164 [16:42:10]line РНМ: 0000000000092785 [16:42:10]line Версия ККМ: 001 [16:42:10]line ФМ: 0000000000875093 [16:42:10]line ФД: 103736 [16:42:10]line ФПД: 29034312413340 [16:42:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T164222&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103736&fm=29034312413340&tin=02508201610067®Number=0000000000092785&sum=50000 [16:42:10]written 0, free lines is 4095 [16:42:10]OFD Sender: Processing packet 103736 [packets to send 17, broken 16] [16:42:10]ProducePacketName [16:42:10]name=ofd_packets/00103736 [16:42:10]OFD Sender: To server: pG, [16:42:10]CommunicateWithHost lk.salyk.kg:30040 [16:42:10]ConnectInit lk.salyk.kg [16:42:11]Connected sock=10 [16:42: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 39 33 0F 01 00 00 9D 97 07 01 F3 7E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 6E 0A 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 38 95 01 00 35 04 06 00 1A 68 13 E0 B0 9C 2F 17 0D 68 89 21 86 65 [16:42: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 39 33 4F 00 00 00 E9 23 47 00 89 BA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 38 95 01 00 F4 03 04 00 F6 B0 72 66 B6 04 01 00 00 29 5B 76 48 18 EE C2 DA [16:42:11]CommunicateWithHost err = 0 [16:42:11]CheckOFDResponse [16:42:11]1017 (14) - 77093643461234 [16:42:11]1041 (16) - 0000000000875093 [16:42:11]1040 (4) - 103736 [16:42:11]1012 (4) - 19.06.2024 10:20 [16:42:11]1206 (1) - 0 [16:42:11]OFD Sender: Remove packet 103736 [16:42:11]ProducePacketName [16:42:11]name=ofd_packets/00103736 [16:42:11]NVStorageDeleteData [16:42:11]Write to MH i2c: 01 00 00 AD BF 6C [16:42:11]Write i2c OK [16:42:11]MH_I2C_Read... [16:42:11]Read from MH i2c: 01 [16:42:11]MH_I2C_Read... [16:42:11]Read from MH i2c: 01 07 00 [16:42:11]MH_I2C_Read... [16:42:11]Read from MH i2c: 01 07 00 AD BF 00 00 00 00 00 E9 0C 68 [16:42:11]RasterBufferAndPrint [16:42:11]line [16:42:11]line [16:42:11]line [16:42:11]line [16:42:11]line [16:42:11]written 0, free lines is 3311 [16:42:11]MH_Cut [16:42:11]Write to MH i2c: D1 01 00 B4 BF 01 45 [16:42:11]Write i2c OK [16:42:11]MH_I2C_Read... [16:42:11]Read from MH i2c: D1 [16:42:11]MH_I2C_Read... [16:42:11]Read from MH i2c: D1 01 00 [16:42:11]MH_I2C_Read... [16:42:11]Read from MH i2c: D1 01 00 B4 BF 00 44 [16:42:11]Write to MH i2c: 01 00 00 B5 BF 74 [16:42:11]Write i2c OK [16:42:11]MH_I2C_Read... [16:42:11]OFD Sender: No OFD packet to send [16:42:12]*** Cut start [16:42:12]*** Partial cut [16:42:12]*** CUTSNS_PIN = 1 [16:42:12]*** CUTSNS_PIN = 0 [16:42:12]*** Brake cut motor [16:42:12]Read from MH i2c: 01 [16:42:12]MH_I2C_Read... [16:42:12]*** Stop cut motor [16:42:12]*** Cut end [16:42:12]Read from MH i2c: 01 07 00 [16:42:12]MH_I2C_Read... [16:42:12]Read from MH i2c: 01 07 00 B5 BF 00 00 00 00 00 FF 0F 89 [16:42:12]process_action close_receipt done [16:42:12]requested_data is exist [16:42:12]produce_requested_data [16:42:12]requested_item fm.sn is exist - process it [16:42:12]wFMCommunicate request_size=4 [16:42:12]MH_SAM_APDU [16:42:12]CAPDU: 80 11 00 00 [16:42:12]Write to MH i2c: E2 08 00 B6 BF 80 11 00 00 00 00 00 00 EF [16:42:12]Write i2c OK [16:42:12]MH_I2C_Read... [16:42:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:42:12]Read from MH i2c: E2 [16:42:12]MH_I2C_Read... [16:42:12]Read from MH i2c: E2 17 00 [16:42:12]MH_I2C_Read... [16:42:12]Read from MH i2c: E2 17 00 B6 BF 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 42 [16:42:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [16:42:12]wFMCommunicate OK [16:42:12]requested_item fd.num is exist - process it [16:42:12]SAM_PROTO_GetFieldsCounters [16:42:12]wFMCommunicate request_size=4 [16:42:12]MH_SAM_APDU [16:42:12]CAPDU: 80 13 00 00 [16:42:12]Write to MH i2c: E2 08 00 B7 BF 80 13 00 00 00 00 00 00 F2 [16:42:12]Write i2c OK [16:42:12]MH_I2C_Read... [16:42:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:42:12]Read from MH i2c: E2 [16:42:12]MH_I2C_Read... [16:42:12]Read from MH i2c: E2 62 00 [16:42:12]MH_I2C_Read... [16:42:12]Read from MH i2c: E2 62 00 B7 BF 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 38 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 A6 00 00 00 5E 04 04 00 A6 00 00 00 57 04 04 00 A7 00 00 00 19 04 04 00 00 00 00 00 90 00 3B [16:42: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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 38 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 A6 00 00 00 5E 04 04 00 A6 00 00 00 57 04 04 00 A7 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:42:12]wFMCommunicate OK [16:42:12]SAM_PROTO_GetFieldsCounters done [16:42:12]requested_item shift.num is exist - process it [16:42:12]requested_item shift.opened is exist - process it [16:42:12]req_shift_opened [16:42:12]FM_GetShiftState [16:42:12]SAM_PROTO_GetShiftState [16:42:12]wFMCommunicate request_size=4 [16:42:12]MH_SAM_APDU [16:42:12]CAPDU: 80 13 01 00 [16:42:12]Write to MH i2c: E2 08 00 B8 BF 80 13 01 00 00 00 00 00 F4 [16:42:12]Write i2c OK [16:42:12]MH_I2C_Read... [16:42:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:42:12]Read from MH i2c: E2 [16:42:12]MH_I2C_Read... [16:42:12]Read from MH i2c: E2 0E 00 [16:42:12]MH_I2C_Read... [16:42:12]Read from MH i2c: E2 0E 00 B8 BF 00 09 00 01 04 26 72 66 00 00 00 00 90 00 02 [16:42:12]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [16:42:12]wFMCommunicate OK [16:42:12]SAM_PROTO_GetShiftState done [16:42:12]FM_GetShiftState done [16:42:12]req_shift_opened done [16:42:12]requested_item shift.open_date is exist - process it [16:42:12]req_shift_open_date [16:42:12]req_shift_open_date done [16:42:12]produce_requested_data done [16:42:12]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103736,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [16:42:12]process_action_free close_receipt [16:42:12]json_value_free [16:42:12]json_value_free done [16:42:12]process_json_proto returns [16:42:12]Send response to host [16:42:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103736,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [16:42:12]free response buf [16:42:12]execute_script done [16:42:12]execute_script returns [16:42:12]free content buf [16:42:12]Sock 7.Close socket [16:42:12]Sock 7.Thread stoped [16:42:16]OFD Sender: No OFD packet to send [16:42:21]OFD Sender: No OFD packet to send [16:42:26]OFD Sender: No OFD packet to send [16:42:31]OFD Sender: No OFD packet to send [16:42:36]OFD Sender: No OFD packet to send [16:42:41]OFD Sender: No OFD packet to send [16:42:46]OFD Sender: No OFD packet to send [16:42:51]OFD Sender: No OFD packet to send [16:42:56]OFD Sender: No OFD packet to send [16:43:01]OFD Sender: No OFD packet to send [16:43:06]OFD Sender: No OFD packet to send [16:43:11]OFD Sender: No OFD packet to send [16:43:13]accept exits with 9 [16:43:13]New connection [16:43:13]New thread 3067227492 created [16:43:13]Thread 3067084132 joined [16:43:13]Waiting for new connection... [16:43:13] Sock 9.Parse request [16:43:13]Sock 9.Check first char [16:43:13]Sock 9.First char is OK [16:43:13]request: POST /json_proto HTTP/1.0 [16:43:13]Method: POST [16:43:13]URL: /json_proto [16:43:13]Method is POST - this is cgi request [16:43:13]url: /json_proto [16:43:13]query_string will be loaded in cgi processing [16:43:13]execute_cgi json_proto POST (null) [16:43:13]execute_cgi path=json_proto method=POST [16:43:13]POST find Content-Length [16:43:13]Host: 172.17.38.133:8080 [16:43:13]Content-Length: 678 [16:43:13]Content-Type: application/json [16:43:13] [16:43:13]POST finish read [16:43:13]Found Content-Length = 678 [16:43:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673017", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 10.550, "sum" : 700.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:43:13]execute_script... [16:43:13]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673017", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 10.550, "sum" : 700.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:43:13]POST & json_proto [16:43:13]process_json_proto [16:43:13]json parsed OK: [16:43:13]protocol is kg_v1.0 [16:43:13]action value=close_receipt [16:43:13]process_action close_receipt [16:43:13]cmd_close_receipt [16:43:13]MH_GetDate [16:43:13]Write to MH i2c: F0 00 00 B9 BF 67 [16:43:13]Write i2c OK [16:43:13]MH_I2C_Read... [16:43:13]Read from MH i2c: F0 [16:43:13]MH_I2C_Read... [16:43:13]Read from MH i2c: F0 09 00 [16:43:13]MH_I2C_Read... [16:43:13]Read from MH i2c: F0 09 00 B9 BF 00 AE 0A 73 66 BD 8F 7C 64 2D [16:43:13]GetLastDocTimeStamp 1718815342 [16:43:13]current date 1718815406 [16:43:13]FM_GetShiftState [16:43:13]SAM_PROTO_GetShiftState [16:43:13]wFMCommunicate request_size=4 [16:43:13]MH_SAM_APDU [16:43:13]CAPDU: 80 13 01 00 [16:43:13]Write to MH i2c: E2 08 00 BA BF 80 13 01 00 00 00 00 00 F6 [16:43:13]Write i2c OK [16:43:13]MH_I2C_Read... [16:43:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:43:13]Read from MH i2c: E2 [16:43:13]MH_I2C_Read... [16:43:13]Read from MH i2c: E2 0E 00 [16:43:13]MH_I2C_Read... [16:43:13]Read from MH i2c: E2 0E 00 BA BF 00 09 00 01 04 26 72 66 00 00 00 00 90 00 04 [16:43:13]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [16:43:13]wFMCommunicate OK [16:43:13]SAM_PROTO_GetShiftState done [16:43:13]FM_GetShiftState done [16:43:13]opened in 1718756868 [16:43:13]opened+sec_in_day 1718843268 [16:43:13]quantity*price = 70052 [16:43:13]sum+1 = 70053 [16:43:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.52 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.39 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 167 19.06.2024 16:43 Смена: 353 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103737 ФПД: 212085550450286 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T164326&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103737&fm=212085550450286&tin=02508201610067®Number=0000000000092785&sum=70000 [16:43:14]StoreToDocumentArchive [16:43:14]shift 353 fd 103737 [16:43:14]save to /storage/0353/doc_00103737 [16:43:14]save last doc name /storage/0353/doc_00103737 to /storage/kkm_last_doc_name [16:43:14]save OK [16:43:14]Clear old archive folders... [16:43:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:43:14]tlvbuf is 0147BF80 [16:43:14]SAM_PROTO_ClearQueue [16:43:14]wFMCommunicate request_size=4 [16:43:14]MH_SAM_APDU [16:43:14]CAPDU: 80 09 00 00 [16:43:14]Write to MH i2c: E2 08 00 C7 BF 80 09 00 00 00 00 00 00 F8 [16:43:14]Write i2c OK [16:43:14]MH_I2C_Read... [16:43:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:43:14]Read from MH i2c: E2 [16:43:14]MH_I2C_Read... [16:43:14]Read from MH i2c: E2 03 00 [16:43:14]MH_I2C_Read... [16:43:14]Read from MH i2c: E2 03 00 C7 BF 00 90 00 FA [16:43:14]RAPDU: 90 00 [16:43:14]wFMCommunicate OK [16:43:14]SAM_PROTO_ClearQueue done [16:43:14]KKMCreateOFDPacket [16:43:14]OFDProtocolAddRootSTLVToBuf [16:43:14]FM_MakeSignedData [16:43:14]FM_MakeSignedData [16:43:14]SAM_PROTO_SignData [16:43:14]wFMCommunicate request_size=4 [16:43:14]MH_SAM_APDU [16:43:14]CAPDU: 80 0D 01 02 [16:43:14]Write to MH i2c: E2 08 00 C8 BF 80 0D 01 02 00 00 00 00 00 [16:43:14]Write i2c OK [16:43:14]MH_I2C_Read... [16:43:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:43:14]Read from MH i2c: E2 [16:43:14]MH_I2C_Read... [16:43:14]Read from MH i2c: E2 03 00 [16:43:14]MH_I2C_Read... [16:43:14]Read from MH i2c: E2 03 00 C8 BF 00 90 00 FB [16:43:14]RAPDU: 90 00 [16:43:14]wFMCommunicate OK [16:43:14]wFMCommunicate request_size=255 [16:43:14]MH_SAM_APDU [16:43: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 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 AE 0A 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 39 95 01 00 35 04 06 00 C0 [16:43:14]Write to MH i2c: E2 02 01 C9 BF 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 AE 0A 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 39 95 01 00 35 04 06 00 C0 00 00 F5 [16:43:14]Write i2c OK [16:43:14]MH_I2C_Read... [16:43:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:43:15]Read from MH i2c: E2 [16:43:15]MH_I2C_Read... [16:43:15]Read from MH i2c: E2 03 00 [16:43:15]MH_I2C_Read... [16:43:15]Read from MH i2c: E2 03 00 C9 BF 00 90 00 FC [16:43:15]RAPDU: 90 00 [16:43:15]wFMCommunicate OK [16:43:15]wFMCommunicate request_size=10 [16:43:15]MH_SAM_APDU [16:43:15]CAPDU: 80 0D 02 02 05 E4 03 E5 86 6E [16:43:15]Write to MH i2c: E2 0D 00 CA BF 80 0D 02 02 05 00 E4 03 E5 86 6E 00 00 CD [16:43:15]Write i2c OK [16:43:15]MH_I2C_Read... [16:43:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:43:15]Read from MH i2c: E2 [16:43:15]MH_I2C_Read... [16:43:15]Read from MH i2c: E2 03 00 [16:43:15]MH_I2C_Read... [16:43:15]Read from MH i2c: E2 03 00 CA BF 00 90 00 FD [16:43:15]RAPDU: 90 00 [16:43:15]wFMCommunicate OK [16:43:15]wFMCommunicate request_size=4 [16:43:15]MH_SAM_APDU [16:43:15]CAPDU: 80 0D 03 02 [16:43:15]Write to MH i2c: E2 08 00 CB BF 80 0D 03 02 00 00 00 00 05 [16:43:15]Write i2c OK [16:43:15]MH_I2C_Read... [16:43:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:43:15]Read from MH i2c: E2 [16:43:15]MH_I2C_Read... [16:43:15]Read from MH i2c: E2 0B 00 [16:43:15]MH_I2C_Read... [16:43:15]Read from MH i2c: E2 0B 00 CB BF 00 02 41 F2 5F FD 9A 00 5F 90 00 90 [16:43:15]RAPDU: 02 41 F2 5F FD 9A 00 5F 90 00 [16:43:15]wFMCommunicate OK [16:43:15]SAM_PROTO_SignData done [16:43:15]FM_MakeSignedData done [16:43:15]CreateOFDProtocolMessage [16:43:15]wFMCommunicate request_size=4 [16:43:15]MH_SAM_APDU [16:43:15]CAPDU: 80 11 00 00 [16:43:15]Write to MH i2c: E2 08 00 CC BF 80 11 00 00 00 00 00 00 05 [16:43:15]Write i2c OK [16:43:15]MH_I2C_Read... [16:43:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:43:15]Read from MH i2c: E2 [16:43:15]MH_I2C_Read... [16:43:15]Read from MH i2c: E2 17 00 [16:43:15]MH_I2C_Read... [16:43:15]Read from MH i2c: E2 17 00 CC BF 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 58 [16:43:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [16:43:15]wFMCommunicate OK [16:43:15]CreateOFDProtocolMessage done [16:43:15]OFDSenderStorePacket 103737 [16:43:15]StoreOFDPacket docnum=103737 [16:43:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 47 6A 07 01 81 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 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 AE 0A 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 39 95 01 00 35 04 06 00 C0 E4 03 E5 86 6E 02 41 F2 5F FD 9A 00 5F [16:43:15]CheckFolder [16:43:15]dirname=/storage/ofd_packets [16:43:15]CheckFolder done [16:43:15]ProducePacketName [16:43:15]name=ofd_packets/00103737 [16:43:15]NVStorageSaveData ofd_packets/00103737 [16:43:15]File name is /storage/ofd_packets/00103737 [16:43:15]Write 301 bytes [16:43:15]NVStorageSaveData done [16:43:15]OFDSenderStorePacket done [16:43:15]KKMCreateOFDPacket done [16:43:15]NVStorageSaveData kkm_last_timestamp [16:43:15]File name is /storage/kkm_last_timestamp [16:43:15]Write 4 bytes [16:43:15]NVStorageSaveData done [16:43:15]ExternCall_PrintAddStr [16:43:15]wPrintStart [16:43:15]Write to MH i2c: 01 00 00 CD BF 8C [16:43:15]Write i2c OK [16:43:15]MH_I2C_Read... [16:43:15]Read from MH i2c: 01 [16:43:15]MH_I2C_Read... [16:43:15]Read from MH i2c: 01 07 00 [16:43:15]MH_I2C_Read... [16:43:15]Read from MH i2c: 01 07 00 CD BF 00 00 00 00 00 FF 0F A1 [16:43:15]RasterBufferAndPrint [16:43:15]line Счет N : (1)673017 [16:43:15]line ИНН: 02508201610067 [16:43:15]line Контрольно-Кассовый Чек [16:43:15]line ПРОДАЖА [16:43:15]line ТРК (МРК, ГНК) : 42 [16:43:15]line Товар: 2710124130 [16:43:15]line Аи-92-К-5 [16:43:15]line 10.550 * 66.40 [16:43:15]line = 700.52 [16:43:15]line НДС 12% НСП 1% [16:43:15]line > о реализуемом товаре [16:43:15]line ОКРУГЛЕНИЕ: -0.52 [16:43:15]line ИТОГО: 700.00 [16:43:15]line Внесено: 700.00 [16:43:15]line СДАЧА: 0.00 [16:43:15]line НСП 1% : 6.20 [16:43:15]line НДС 12% : 74.39 [16:43:15]line Наличными: 700.00 [16:43:15]line Безнал.: 0.00 [16:43:15]line Место: АЗС № 120 "Партнер Нефть" [16:43:15]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [16:43:15]line СНО: Общий режим [16:43:15]line Чек 167 19.06.2024 16:43 [16:43:15]line Смена: 353 ФФД: 1.0 [16:43:15]line ЗНМ: 0300000164 [16:43:15]line РНМ: 0000000000092785 [16:43:15]line Версия ККМ: 001 [16:43:15]line ФМ: 0000000000875093 [16:43:15]line ФД: 103737 [16:43:15]line ФПД: 212085550450286 [16:43:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T164326&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103737&fm=212085550450286&tin=02508201610067®Number=0000000000092785&sum=70000 [16:43:15]OFD Sender: Processing packet 103737 [packets to send 17, broken 16] [16:43:15]ProducePacketName [16:43:15]name=ofd_packets/00103737 [16:43:15]OFD Sender: To server: pG, [16:43:15]CommunicateWithHost lk.salyk.kg:30040 [16:43:15]ConnectInit lk.salyk.kg [16:43:15]written 0, free lines is 4095 [16:43:16]Write to MH i2c: 01 00 00 F8 BF B7 [16:43:16]Write i2c OK [16:43:16]MH_I2C_Read... [16:43:16]Read from MH i2c: 01 [16:43:16]MH_I2C_Read... [16:43:16]Read from MH i2c: 01 07 00 [16:43:16]MH_I2C_Read... [16:43:16]Read from MH i2c: 01 07 00 F8 BF 00 00 00 00 00 D8 0C A2 [16:43:16]RasterBufferAndPrint [16:43:16]line [16:43:16]line [16:43:16]line [16:43:16]line [16:43:16]line [16:43:16]written 0, free lines is 3296 [16:43:16]MH_Cut [16:43:16]Write to MH i2c: D1 01 00 FF BF 01 90 [16:43:16]Write i2c OK [16:43:16]MH_I2C_Read... [16:43:16]Read from MH i2c: D1 [16:43:16]MH_I2C_Read... [16:43:16]Read from MH i2c: D1 01 00 [16:43:16]MH_I2C_Read... [16:43:16]Read from MH i2c: D1 01 00 FF BF 00 8F [16:43:16]Write to MH i2c: 01 00 00 00 C0 C0 [16:43:16]Write i2c OK [16:43:16]MH_I2C_Read... [16:43:16]*** Cut start [16:43:16]*** Partial cut [16:43:16]*** CUTSNS_PIN = 1 [16:43:16]*** CUTSNS_PIN = 0 [16:43:17]*** Brake cut motor [16:43:17]Read from MH i2c: 01 [16:43:17]MH_I2C_Read... [16:43:17]*** Stop cut motor [16:43:17]*** Cut end [16:43:17]Read from MH i2c: 01 07 00 [16:43:17]MH_I2C_Read... [16:43:17]Read from MH i2c: 01 07 00 00 C0 00 00 00 00 00 FF 0F D5 [16:43:17]process_action close_receipt done [16:43:17]requested_data is exist [16:43:17]produce_requested_data [16:43:17]requested_item fm.sn is exist - process it [16:43:17]wFMCommunicate request_size=4 [16:43:17]MH_SAM_APDU [16:43:17]CAPDU: 80 11 00 00 [16:43:17]Write to MH i2c: E2 08 00 01 C0 80 11 00 00 00 00 00 00 3B [16:43:17]Write i2c OK [16:43:17]MH_I2C_Read... [16:43:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:43:17]Read from MH i2c: E2 [16:43:17]MH_I2C_Read... [16:43:17]Read from MH i2c: E2 17 00 [16:43:17]MH_I2C_Read... [16:43:17]Read from MH i2c: E2 17 00 01 C0 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 8E [16:43:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [16:43:17]wFMCommunicate OK [16:43:17]requested_item fd.num is exist - process it [16:43:17]SAM_PROTO_GetFieldsCounters [16:43:17]wFMCommunicate request_size=4 [16:43:17]MH_SAM_APDU [16:43:17]CAPDU: 80 13 00 00 [16:43:17]Write to MH i2c: E2 08 00 02 C0 80 13 00 00 00 00 00 00 3E [16:43:17]Write i2c OK [16:43:17]MH_I2C_Read... [16:43:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:43:17]Read from MH i2c: E2 [16:43:17]MH_I2C_Read... [16:43:17]Read from MH i2c: E2 62 00 [16:43:17]MH_I2C_Read... [16:43:17]Read from MH i2c: E2 62 00 02 C0 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 39 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 A7 00 00 00 5E 04 04 00 A7 00 00 00 57 04 04 00 A8 00 00 00 19 04 04 00 00 00 00 00 90 00 8B [16:43: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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 39 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 A7 00 00 00 5E 04 04 00 A7 00 00 00 57 04 04 00 A8 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:43:17]wFMCommunicate OK [16:43:17]SAM_PROTO_GetFieldsCounters done [16:43:17]requested_item shift.num is exist - process it [16:43:17]requested_item shift.opened is exist - process it [16:43:17]req_shift_opened [16:43:17]FM_GetShiftState [16:43:17]SAM_PROTO_GetShiftState [16:43:17]wFMCommunicate request_size=4 [16:43:17]MH_SAM_APDU [16:43:17]CAPDU: 80 13 01 00 [16:43:17]Write to MH i2c: E2 08 00 03 C0 80 13 01 00 00 00 00 00 40 [16:43:17]Write i2c OK [16:43:17]MH_I2C_Read... [16:43:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:43:17]Read from MH i2c: E2 [16:43:17]MH_I2C_Read... [16:43:17]Read from MH i2c: E2 0E 00 [16:43:17]MH_I2C_Read... [16:43:17]Read from MH i2c: E2 0E 00 03 C0 00 09 00 01 04 26 72 66 00 00 00 00 90 00 4E [16:43:17]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [16:43:17]wFMCommunicate OK [16:43:17]SAM_PROTO_GetShiftState done [16:43:17]FM_GetShiftState done [16:43:17]req_shift_opened done [16:43:17]requested_item shift.open_date is exist - process it [16:43:17]req_shift_open_date [16:43:17]req_shift_open_date done [16:43:17]produce_requested_data done [16:43:17]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103737,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [16:43:17]process_action_free close_receipt [16:43:17]json_value_free [16:43:17]json_value_free done [16:43:17]process_json_proto returns [16:43:17]Send response to host [16:43:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103737,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [16:43:17]free response buf [16:43:17]execute_script done [16:43:17]execute_script returns [16:43:17]free content buf [16:43:17]Sock 9.Close socket [16:43:17]Sock 9.Thread stoped [16:45:29]ConnectInit Can't connect to host [16:45:29]CommunicateWithHost connect error [16:45:29]CommunicateWithHost err = -1 [16:45:29]OFD Sender: Server communicate error [16:45:34]OFD Sender: Processing packet 103737 [packets to send 17, broken 16] [16:45:34]ProducePacketName [16:45:34]name=ofd_packets/00103737 [16:45:34]OFD Sender: To server: pG, [16:45:34]CommunicateWithHost lk.salyk.kg:30040 [16:45:34]ConnectInit lk.salyk.kg [16:45:34]Connected sock=9 [16:45: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 39 33 0F 01 00 00 47 6A 07 01 81 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 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 AE 0A 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 39 95 01 00 35 04 06 00 C0 E4 03 E5 86 6E 02 41 F2 5F FD 9A 00 5F [16:45: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 39 33 4F 00 00 00 88 18 47 00 DD FF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 39 95 01 00 F4 03 04 00 C1 B1 72 66 B6 04 01 00 00 80 51 1A A8 7E 55 69 06 [16:45:34]CommunicateWithHost err = 0 [16:45:34]CheckOFDResponse [16:45:34]1017 (14) - 77093643461234 [16:45:34]1041 (16) - 0000000000875093 [16:45:34]1040 (4) - 103737 [16:45:34]1012 (4) - 19.06.2024 10:24 [16:45:34]1206 (1) - 0 [16:45:34]OFD Sender: Remove packet 103737 [16:45:34]ProducePacketName [16:45:34]name=ofd_packets/00103737 [16:45:34]NVStorageDeleteData [16:45:35]OFD Sender: No OFD packet to send [16:45:40]OFD Sender: No OFD packet to send [16:45:45]OFD Sender: No OFD packet to send [16:45:50]OFD Sender: No OFD packet to send [16:45:55]OFD Sender: No OFD packet to send [16:46:00]OFD Sender: No OFD packet to send [16:46:05]OFD Sender: No OFD packet to send [16:46:10]OFD Sender: No OFD packet to send [16:46:15]OFD Sender: No OFD packet to send [16:46:20]OFD Sender: No OFD packet to send [16:46:25]OFD Sender: No OFD packet to send [16:46:30]OFD Sender: No OFD packet to send [16:46:35]OFD Sender: No OFD packet to send [16:46:40]OFD Sender: No OFD packet to send [16:46:45]OFD Sender: No OFD packet to send [16:46:50]OFD Sender: No OFD packet to send [16:46:55]OFD Sender: No OFD packet to send [16:47:00]OFD Sender: No OFD packet to send [16:47:05]OFD Sender: No OFD packet to send [16:47:10]OFD Sender: No OFD packet to send [16:47:15]OFD Sender: No OFD packet to send [16:47:20]OFD Sender: No OFD packet to send [16:47:25]OFD Sender: No OFD packet to send [16:47:30]OFD Sender: No OFD packet to send [16:47:35]OFD Sender: No OFD packet to send [16:47:40]OFD Sender: No OFD packet to send [16:47:45]OFD Sender: No OFD packet to send [16:47:50]OFD Sender: No OFD packet to send [16:47:55]OFD Sender: No OFD packet to send [16:48:00]OFD Sender: No OFD packet to send [16:48:05]OFD Sender: No OFD packet to send [16:48:10]OFD Sender: No OFD packet to send [16:48:15]OFD Sender: No OFD packet to send [16:48:20]OFD Sender: No OFD packet to send [16:48:25]OFD Sender: No OFD packet to send [16:48:30]OFD Sender: No OFD packet to send [16:48:35]OFD Sender: No OFD packet to send [16:48:40]OFD Sender: No OFD packet to send [16:48:45]OFD Sender: No OFD packet to send [16:48:50]OFD Sender: No OFD packet to send [16:48:55]OFD Sender: No OFD packet to send [16:49:00]OFD Sender: No OFD packet to send [16:49:05]OFD Sender: No OFD packet to send [16:49:10]OFD Sender: No OFD packet to send [16:49:15]OFD Sender: No OFD packet to send [16:49:20]OFD Sender: No OFD packet to send [16:49:25]OFD Sender: No OFD packet to send [16:49:30]OFD Sender: No OFD packet to send [16:49:35]OFD Sender: No OFD packet to send [16:49:40]OFD Sender: No OFD packet to send [16:49:45]OFD Sender: No OFD packet to send [16:49:50]OFD Sender: No OFD packet to send [16:49:55]OFD Sender: No OFD packet to send [16:50:00]OFD Sender: No OFD packet to send [16:50:05]OFD Sender: No OFD packet to send [16:50:10]OFD Sender: No OFD packet to send [16:50:15]OFD Sender: No OFD packet to send [16:50:19]accept exits with 7 [16:50:19]New connection [16:50:19]New thread 3067084132 created [16:50:19]Thread 3067227492 joined [16:50:19]Waiting for new connection... [16:50:19] Sock 7.Parse request [16:50:19]Sock 7.Check first char [16:50:19]Sock 7.First char is OK [16:50:19]request: POST /json_proto HTTP/1.0 [16:50:19]Method: POST [16:50:19]URL: /json_proto [16:50:19]Method is POST - this is cgi request [16:50:19]url: /json_proto [16:50:19]query_string will be loaded in cgi processing [16:50:19]execute_cgi json_proto POST (null) [16:50:19]execute_cgi path=json_proto method=POST [16:50:19]POST find Content-Length [16:50:19]Host: 172.17.38.133:8080 [16:50:19]Content-Length: 682 [16:50:19]Content-Type: application/json [16:50:19] [16:50:19]POST finish read [16:50:19]Found Content-Length = 682 [16:50:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673018", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 30.130, "sum" : 2000.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:50:19]execute_script... [16:50: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)673018", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 30.130, "sum" : 2000.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:50:19]POST & json_proto [16:50:19]process_json_proto [16:50:19]json parsed OK: [16:50:19]protocol is kg_v1.0 [16:50:19]action value=close_receipt [16:50:19]process_action close_receipt [16:50:19]cmd_close_receipt [16:50:19]MH_GetDate [16:50:19]Write to MH i2c: F0 00 00 04 C0 B3 [16:50:19]Write i2c OK [16:50:19]MH_I2C_Read... [16:50:19]Read from MH i2c: F0 [16:50:19]MH_I2C_Read... [16:50:19]Read from MH i2c: F0 09 00 [16:50:19]MH_I2C_Read... [16:50:19]Read from MH i2c: F0 09 00 04 C0 00 59 0C 73 66 BD 8F 7C 64 26 [16:50:19]GetLastDocTimeStamp 1718815406 [16:50:19]current date 1718815833 [16:50:19]FM_GetShiftState [16:50:19]SAM_PROTO_GetShiftState [16:50:19]wFMCommunicate request_size=4 [16:50:19]MH_SAM_APDU [16:50:19]CAPDU: 80 13 01 00 [16:50:19]Write to MH i2c: E2 08 00 05 C0 80 13 01 00 00 00 00 00 42 [16:50:19]Write i2c OK [16:50:19]MH_I2C_Read... [16:50:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:50:19]Read from MH i2c: E2 [16:50:19]MH_I2C_Read... [16:50:19]Read from MH i2c: E2 0E 00 [16:50:19]MH_I2C_Read... [16:50:19]Read from MH i2c: E2 0E 00 05 C0 00 09 00 01 04 26 72 66 00 00 00 00 90 00 50 [16:50:19]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [16:50:19]wFMCommunicate OK [16:50:19]SAM_PROTO_GetShiftState done [16:50:19]FM_GetShiftState done [16:50:19]opened in 1718756868 [16:50:19]opened+sec_in_day 1718843268 [16:50:19]quantity*price = 200063 [16:50:19]sum+1 = 200064 [16:50:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.46 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 168 19.06.2024 16:50 Смена: 353 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103738 ФПД: 97316263670912 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T165033&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103738&fm=97316263670912&tin=02508201610067®Number=0000000000092785&sum=200000 [16:50:20]StoreToDocumentArchive [16:50:20]shift 353 fd 103738 [16:50:20]save to /storage/0353/doc_00103738 [16:50:20]save last doc name /storage/0353/doc_00103738 to /storage/kkm_last_doc_name [16:50:20]save OK [16:50:20]Clear old archive folders... [16:50:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:50:20]tlvbuf is 0136FEB0 [16:50:20]SAM_PROTO_ClearQueue [16:50:20]wFMCommunicate request_size=4 [16:50:20]MH_SAM_APDU [16:50:20]CAPDU: 80 09 00 00 [16:50:20]Write to MH i2c: E2 08 00 12 C0 80 09 00 00 00 00 00 00 44 [16:50:20]Write i2c OK [16:50:20]MH_I2C_Read... [16:50:20]Read from MH i2c: E2 [16:50:20]MH_I2C_Read... [16:50:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:50:20]Read from MH i2c: E2 03 00 [16:50:20]MH_I2C_Read... [16:50:20]Read from MH i2c: E2 03 00 12 C0 00 90 00 46 [16:50:20]RAPDU: 90 00 [16:50:20]wFMCommunicate OK [16:50:20]SAM_PROTO_ClearQueue done [16:50:20]KKMCreateOFDPacket [16:50:20]OFDProtocolAddRootSTLVToBuf [16:50:20]FM_MakeSignedData [16:50:20]FM_MakeSignedData [16:50:20]SAM_PROTO_SignData [16:50:20]wFMCommunicate request_size=4 [16:50:20]MH_SAM_APDU [16:50:20]CAPDU: 80 0D 01 02 [16:50:20]Write to MH i2c: E2 08 00 13 C0 80 0D 01 02 00 00 00 00 4C [16:50:20]Write i2c OK [16:50:20]MH_I2C_Read... [16:50:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:50:21]Read from MH i2c: E2 [16:50:21]MH_I2C_Read... [16:50:21]Read from MH i2c: E2 03 00 [16:50:21]MH_I2C_Read... [16:50:21]Read from MH i2c: E2 03 00 13 C0 00 90 00 47 [16:50:21]RAPDU: 90 00 [16:50:21]wFMCommunicate OK [16:50:21]wFMCommunicate request_size=255 [16:50:21]MH_SAM_APDU [16:50:21]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B2 75 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FE 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 00 00 00 F4 03 04 00 59 0C 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 3A 95 01 00 35 04 06 00 58 [16:50:21]Write to MH i2c: E2 02 01 14 C0 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B2 75 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FE 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 00 00 00 F4 03 04 00 59 0C 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 3A 95 01 00 35 04 06 00 58 00 00 6B [16:50:21]Write i2c OK [16:50:21]MH_I2C_Read... [16:50:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:50:21]Read from MH i2c: E2 [16:50:21]MH_I2C_Read... [16:50:21]Read from MH i2c: E2 03 00 [16:50:21]MH_I2C_Read... [16:50:21]Read from MH i2c: E2 03 00 14 C0 00 90 00 48 [16:50:21]RAPDU: 90 00 [16:50:21]wFMCommunicate OK [16:50:21]wFMCommunicate request_size=10 [16:50:21]MH_SAM_APDU [16:50:21]CAPDU: 80 0D 02 02 05 82 35 53 B4 80 [16:50:21]Write to MH i2c: E2 0D 00 15 C0 80 0D 02 02 05 00 82 35 53 B4 80 00 00 97 [16:50:21]Write i2c OK [16:50:21]MH_I2C_Read... [16:50:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:50:21]Read from MH i2c: E2 [16:50:21]MH_I2C_Read... [16:50:21]Read from MH i2c: E2 03 00 [16:50:21]MH_I2C_Read... [16:50:21]Read from MH i2c: E2 03 00 15 C0 00 90 00 49 [16:50:21]RAPDU: 90 00 [16:50:21]wFMCommunicate OK [16:50:21]wFMCommunicate request_size=4 [16:50:21]MH_SAM_APDU [16:50:21]CAPDU: 80 0D 03 02 [16:50:21]Write to MH i2c: E2 08 00 16 C0 80 0D 03 02 00 00 00 00 51 [16:50:21]Write i2c OK [16:50:21]MH_I2C_Read... [16:50:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:50:21]Read from MH i2c: E2 [16:50:21]MH_I2C_Read... [16:50:21]Read from MH i2c: E2 0B 00 [16:50:21]MH_I2C_Read... [16:50:21]Read from MH i2c: E2 0B 00 16 C0 00 3F C3 10 BE 58 20 96 17 90 00 47 [16:50:21]RAPDU: 3F C3 10 BE 58 20 96 17 90 00 [16:50:21]wFMCommunicate OK [16:50:21]SAM_PROTO_SignData done [16:50:21]FM_MakeSignedData done [16:50:21]CreateOFDProtocolMessage [16:50:21]wFMCommunicate request_size=4 [16:50:21]MH_SAM_APDU [16:50:21]CAPDU: 80 11 00 00 [16:50:21]Write to MH i2c: E2 08 00 17 C0 80 11 00 00 00 00 00 00 51 [16:50:21]Write i2c OK [16:50:21]MH_I2C_Read... [16:50:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:50:21]Read from MH i2c: E2 [16:50:21]MH_I2C_Read... [16:50:21]Read from MH i2c: E2 17 00 [16:50:21]MH_I2C_Read... [16:50:21]Read from MH i2c: E2 17 00 17 C0 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 A4 [16:50:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [16:50:21]wFMCommunicate OK [16:50:21]CreateOFDProtocolMessage done [16:50:21]OFDSenderStorePacket 103738 [16:50:21]StoreOFDPacket docnum=103738 [00:00:10] *** EcrCore started. Build 196 *** [00:00:10]/dev/ttyS4 opened [00:00:10]MH_InterfaceInit /dev/i2c-1 [00:00:10]Malloc ok [00:00:10]MH_GetMetrics [00:00:10]Write to MH i2c: 00 00 00 01 00 00 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 01 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 24 B7 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 5B [00:00:10]Are we in boot? [00:00:10]We are in boot - try to switch [00:00:10]Write to MH i2c: A0 00 00 02 00 A1 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 01 00 [00:00:10]MH_I2C_Read... [00:00:10]*** Check firmware version 30620, crc_r 49A1A6DB, crc_c: 49A1A6DB, size: 53248 [00:00:10]Read from MH i2c: *** [00:00:10]A0 01 00 02 00 00 A2 [00:00:10]*** Starting fw at address 01020100 (2007E328 010249C5) [00:00:10]*** Waiting for read because exit forced [00:00:10]*** 10 ms more... [00:00:10]*** MH1903S init start (LINUX_LIGHT) [00:00:10]*** Compilation Date Jun 20 2023 Time 12:36:20 [00:00:10]*** Serial: 3139303353513838 54000000005724B7 (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: 32931324+1685884861=1718816185 [00:00:10]*** BPK Status Register BPK_RDY = 0x0 [00:00:10]*** SEN State Register SEN_STATE = 0x200ff [00:00:10]*** 32K Frequency Sensor Enable SEN_XTAL32_EN = 0x80000055 [00:00:10]*** Analog Control Register 0 SEN_ANA0 = 0x33530624 [00:00:10]*** Is cutter blocked? [00:00:11]MH_GetMetrics [00:00:11]Write to MH i2c: 00 00 00 03 00 02 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 03 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 24 B7 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 5C [00:00:11]Are we in boot? [00:00:11]We are not in boot now [00:00:11]Write to MH i2c: 01 00 00 04 00 04 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 07 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 07 00 04 00 00 00 00 00 00 FF 0F 19 [00:00:11]Model is 3 [00:00:11]MH firmware is 30620 [00:00:11]MH boot firmware is 3 [00:00:11]MH_SetPrinterDots 448 [00:00:11]HeadWidthInBytes 56 [00:00:11]maxmasksize 7 [00:00:11]Write to MH i2c: D6 06 00 05 00 41 00 40 00 FF FF 5F [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 01 00 05 00 00 DB [00:00:11]Write to MH i2c: D5 00 00 06 00 DA [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 01 00 06 00 00 DB [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]ExternCall_SetCallbacks [00:00:11]NVStorageInit [00:00:11]MH_GetDate [00:00:11]Write to MH i2c: F0 00 00 07 00 F6 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 09 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 09 00 07 00 00 BA 0D 73 66 BD 8F 7C 64 CB [16:56:26]Current date/time: 19.06.2024 16:56 [16:56:26]FM_Init [16:56:26]wFMConnect [16:56:26]MH_SAM_On [16:56:26]Write to MH i2c: E0 00 00 08 00 E7 [16:56:26]Write i2c OK [16:56:26]MH_I2C_Read... [16:56:26]*** iso7816_init finished! [16:56:26]*** atr: [16:56:26]*** 0F 3B D5 18 FF 81 91 FE [16:56:26]*** 1F C3 80 73 C8 21 10 0A [16:56:26]*** 00 00 00 00 00 00 00 00 [16:56:26]*** 00 00 00 00 00 00 00 00 [16:56:26]*** 00 00 00 00 00 00 00 00 [16:56:26]*** 00 00 00 00 00 00 00 00 [16:56:26]*** 00 00 00 00 00 00 00 00 [16:56:26]*** 00 00 00 00 00 00 00 00 [16:56:26]Read from MH i2c: E0 [16:56:26]MH_I2C_Read... [16:56:26]Read from MH i2c: E0 10 00 [16:56:26]MH_I2C_Read... [16:56:26]Read from MH i2c: E0 10 00 08 00 00 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A 06 [16:56:26]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [16:56:26]wFMCommunicate request_size=10 [16:56:26]MH_SAM_APDU [16:56:26]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [16:56:26]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [16:56:26]Write i2c OK [16:56:26]MH_I2C_Read... [16:56:26]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [16:56:26]Read from MH i2c: E2 [16:56:26]MH_I2C_Read... [16:56:26]Read from MH i2c: E2 03 00 [16:56:26]MH_I2C_Read... [16:56:26]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [16:56:26]RAPDU: 90 00 [16:56:26]wFMCommunicate OK [16:56:26]wFMCommunicate request_size=4 [16:56:26]MH_SAM_APDU [16:56:26]CAPDU: 80 11 00 00 [16:56:26]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [16:56:26]Write i2c OK [16:56:26]MH_I2C_Read... [16:56:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:56:26]Read from MH i2c: E2 [16:56:26]MH_I2C_Read... [16:56:26]Read from MH i2c: E2 17 00 [16:56:26]MH_I2C_Read... [16:56:26]Read from MH i2c: E2 17 00 0A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 D7 [16:56:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [16:56:26]wFMCommunicate OK [16:56:26]Detected FM SN is 0000000000875093 [16:56:26]Stored FM SN is 0000000000875093 [16:56:26]wFMCommunicate request_size=9 [16:56:26]MH_SAM_APDU [16:56:26]CAPDU: 80 16 00 00 04 D4 80 01 00 [16:56:26]Write to MH i2c: E2 0C 00 0B 00 80 16 00 00 04 00 D4 80 01 00 00 00 E7 [16:56:26]Write i2c OK [16:56:26]MH_I2C_Read... [16:56:26]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [16:56:26]Read from MH i2c: E2 [16:56:26]MH_I2C_Read... [16:56:26]Read from MH i2c: E2 03 00 [16:56:26]MH_I2C_Read... [16:56:26]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [16:56:26]RAPDU: 90 00 [16:56:26]wFMCommunicate OK [16:56:26]FM PIN OK [16:56:26]wFMCommunicate request_size=8 [16:56:26]MH_SAM_APDU [16:56:26]CAPDU: 80 14 04 00 03 02 00 01 [16:56:26]Write to MH i2c: E2 0B 00 0C 00 80 14 04 00 03 00 02 00 01 00 00 96 [16:56:26]Write i2c OK [16:56:26]MH_I2C_Read... [16:56:26]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [16:56:26]Read from MH i2c: E2 [16:56:26]MH_I2C_Read... [16:56:26]Read from MH i2c: E2 03 00 [16:56:26]MH_I2C_Read... [16:56:26]Read from MH i2c: E2 03 00 0C 00 00 90 00 80 [16:56:26]RAPDU: 90 00 [16:56:26]wFMCommunicate OK [16:56:26]wFMCommunicate request_size=13 [16:56:26]MH_SAM_APDU [16:56:26]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [16:56:26]Write to MH i2c: E2 10 00 0D 00 80 14 04 01 08 00 07 00 01 02 03 04 05 06 00 00 BB [16:56:26]Write i2c OK [16:56:26]MH_I2C_Read... [16:56:26]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [16:56:26]Read from MH i2c: E2 [16:56:26]MH_I2C_Read... [16:56:26]Read from MH i2c: E2 03 00 [16:56:26]MH_I2C_Read... [16:56:26]Read from MH i2c: E2 03 00 0D 00 00 90 00 81 [16:56:26]RAPDU: 90 00 [16:56:26]wFMCommunicate OK [16:56:26]wFMCommunicate request_size=4 [16:56:26]MH_SAM_APDU [16:56:26]CAPDU: 80 11 00 00 [16:56:26]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [16:56:26]Write i2c OK [16:56:26]MH_I2C_Read... [16:56:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:56:26]Read from MH i2c: E2 [16:56:26]MH_I2C_Read... [16:56:26]Read from MH i2c: E2 17 00 [16:56:26]MH_I2C_Read... [16:56:26]Read from MH i2c: E2 17 00 0E 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 DB [16:56:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [16:56:26]wFMCommunicate OK [16:56:26]DocumentArchiveInit [16:56:26]Start Httpd... [16:56:26]Httpd thread 3067227492 created [16:56:26]Write to MH i2c: 01 00 00 0F 00 0F [16:56:26]Write i2c OK [16:56:26]MH_I2C_Read... [16:56:26]Read from MH i2c: 01 [16:56:26]MH_I2C_Read... [16:56:26]Read from MH i2c: 01 07 00 [16:56:26]MH_I2C_Read... [16:56:26]Read from MH i2c: 01 07 00 0F 00 00 00 00 00 00 FF 0F 24 [16:56:26]MH Int Process started [16:56:26]Allocated Socket 7 [16:56:26]Bind OK [16:56:26]Listen OK [16:56:26]httpd running on port 8080 [16:56:26]Waiting for new connection... [16:56:26]OFD Sender: Processing packet 103738 [packets to send 17, broken 16] [16:56:26]ProducePacketName [16:56:26]name=ofd_packets/00103738 [16:56:26]OFD Sender: To server: pG, [16:56:26]CommunicateWithHost lk.salyk.kg:30040 [16:56:26]ConnectInit lk.salyk.kg [16:56:26]Connected sock=6 [16:56: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 39 33 0F 01 00 00 FF F3 07 01 F1 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 B2 75 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FE 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 00 00 00 F4 03 04 00 59 0C 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 3A 95 01 00 35 04 06 00 58 82 35 53 B4 80 3F C3 10 BE 58 20 96 17 [16:56: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 39 33 4F 00 00 00 BF 83 47 00 0C 0C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 3A 95 01 00 F4 03 04 00 41 B4 72 66 B6 04 01 00 00 29 C1 FE 56 38 66 D4 BA [16:56:26]CommunicateWithHost err = 0 [16:56:26]CheckOFDResponse [16:56:26]1017 (14) - 77093643461234 [16:56:26]1041 (16) - 0000000000875093 [16:56:26]1040 (4) - 103738 [16:56:26]1012 (4) - 19.06.2024 10:34 [16:56:26]1206 (1) - 0 [16:56:26]OFD Sender: Remove packet 103738 [16:56:26]ProducePacketName [16:56:26]name=ofd_packets/00103738 [16:56:26]NVStorageDeleteData [16:56:27]OFD Sender: No OFD packet to send [16:56:32]OFD Sender: No OFD packet to send [16:56:36]accept exits with 8 [16:56:36]New connection [16:56:36]New thread 3066940772 created [16:56:36]Waiting for new connection... [16:56:36] Sock 8.Parse request [16:56:36]Sock 8.Check first char [16:56:36]Sock 8.First char is OK [16:56:36]request: POST /json_proto HTTP/1.0 [16:56:36]Method: POST [16:56:36]URL: /json_proto [16:56:36]Method is POST - this is cgi request [16:56:36]url: /json_proto [16:56:36]query_string will be loaded in cgi processing [16:56:36]execute_cgi json_proto POST (null) [16:56:36]execute_cgi path=json_proto method=POST [16:56:36]POST find Content-Length [16:56:36]Host: 172.17.38.133:8080 [16:56:36]Content-Length: 215 [16:56:36]Content-Type: application/json [16:56:36] [16:56:36]POST finish read [16:56:36]Found Content-Length = 215 [16:56:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:56:36]execute_script... [16:56:36]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:56:36]POST & json_proto [16:56:36]process_json_proto [16:56:36]json parsed OK: [16:56:36]protocol is kg_v1.0 [16:56:36]action value=get_value [16:56:36]process_action get_value [16:56:36]cmd_get_value [16:56:36]process_action get_value done [16:56:36]requested_data is exist [16:56:36]produce_requested_data [16:56:36]requested_item kkm.sn is exist - process it [16:56:36]requested_item kkm.ver is exist - process it [16:56:36]requested_item fm.sn is exist - process it [16:56:36]wFMCommunicate request_size=4 [16:56:36]MH_SAM_APDU [16:56:36]CAPDU: 80 11 00 00 [16:56:36]Write to MH i2c: E2 08 00 10 00 80 11 00 00 00 00 00 00 8A [16:56:36]Write i2c OK [16:56:36]MH_I2C_Read... [16:56:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:56:36]Read from MH i2c: E2 [16:56:36]MH_I2C_Read... [16:56:36]Read from MH i2c: E2 17 00 [16:56:36]MH_I2C_Read... [16:56:36]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 39 33 90 00 DD [16:56:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [16:56:36]wFMCommunicate OK [16:56:36]requested_item fd.num is exist - process it [16:56:36]SAM_PROTO_GetFieldsCounters [16:56:36]wFMCommunicate request_size=4 [16:56:36]MH_SAM_APDU [16:56:36]CAPDU: 80 13 00 00 [16:56:36]Write to MH i2c: E2 08 00 11 00 80 13 00 00 00 00 00 00 8D [16:56:36]Write i2c OK [16:56:36]MH_I2C_Read... [16:56:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:56:37]Read from MH i2c: E2 [16:56:37]MH_I2C_Read... [16:56:37]Read from MH i2c: E2 62 00 [16:56:37]MH_I2C_Read... [16:56:37]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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 3A 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 A8 00 00 00 5E 04 04 00 A8 00 00 00 57 04 04 00 A9 00 00 00 19 04 04 00 00 00 00 00 90 00 DE [16:56:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 3A 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 A8 00 00 00 5E 04 04 00 A8 00 00 00 57 04 04 00 A9 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:56:37]wFMCommunicate OK [16:56:37]SAM_PROTO_GetFieldsCounters done [16:56:37]requested_item shift.num is exist - process it [16:56:37]requested_item shift.opened is exist - process it [16:56:37]req_shift_opened [16:56:37]FM_GetShiftState [16:56:37]SAM_PROTO_GetShiftState [16:56:37]wFMCommunicate request_size=4 [16:56:37]MH_SAM_APDU [16:56:37]CAPDU: 80 13 01 00 [16:56:37]Write to MH i2c: E2 08 00 12 00 80 13 01 00 00 00 00 00 8F [16:56:37]Write i2c OK [16:56:37]MH_I2C_Read... [16:56:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:56:37]Read from MH i2c: E2 [16:56:37]MH_I2C_Read... [16:56:37]Read from MH i2c: E2 0E 00 [16:56:37]MH_I2C_Read... [16:56:37]Read from MH i2c: E2 0E 00 12 00 00 09 00 01 04 26 72 66 00 00 00 00 90 00 9D [16:56:37]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [16:56:37]wFMCommunicate OK [16:56:37]SAM_PROTO_GetShiftState done [16:56:37]FM_GetShiftState done [16:56:37]req_shift_opened done [16:56:37]requested_item shift.open_date is exist - process it [16:56:37]req_shift_open_date [16:56:37]req_shift_open_date done [16:56:37]produce_requested_data done [16:56:37]produce_requested_data return {"kkm.sn":"0300000164","kkm.ver":"001","fm.sn":"0000000000875093","fd.num":103738,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [16:56:37]process_action_free get_value [16:56:37]json_value_free [16:56:37]json_value_free done [16:56:37]process_json_proto returns [16:56:37]Send response to host [16:56:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000164","kkm.ver":"001","fm.sn":"0000000000875093","fd.num":103738,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [16:56:37]free response buf [16:56:37]execute_script done [16:56:37]execute_script returns [16:56:37]free content buf [16:56:37]Sock 8.Close socket [16:56:37]Sock 8.Thread stoped [16:56:37]accept exits with 9 [16:56:37]New connection [16:56:37]New thread 3066797412 created [16:56:37]Thread 3066940772 joined [16:56:37]Waiting for new connection... [16:56:37] Sock 9.Parse request [16:56:37]Sock 9.Check first char [16:56:37]Sock 9.First char is OK [16:56:37]request: POST /json_proto HTTP/1.0 [16:56:37]Method: POST [16:56:37]URL: /json_proto [16:56:37]Method is POST - this is cgi request [16:56:37]url: /json_proto [16:56:37]query_string will be loaded in cgi processing [16:56:37]execute_cgi json_proto POST (null) [16:56:37]execute_cgi path=json_proto method=POST [16:56:37]POST find Content-Length [16:56:37]Host: 172.17.38.133:8080 [16:56:37]Content-Length: 331 [16:56:37]Content-Type: application/json [16:56:37] [16:56:37]POST finish read [16:56:37]Found Content-Length = 331 [16:56:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [16:56:37]execute_script... [16:56:37]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [16:56:37]POST & json_proto [16:56:37]process_json_proto [16:56:37]json parsed OK: [16:56:37]protocol is kg_v1.0 [16:56:37]action value=get_value [16:56:37]process_action get_value [16:56:37]cmd_get_value [16:56:37]process_action get_value done [16:56:37]requested_data is exist [16:56:37]produce_requested_data [16:56:37]requested_item fm.sale.total is exist - process it [16:56:37]SAM_PROTO_GetFMData [16:56:37]wFMCommunicate request_size=4 [16:56:37]MH_SAM_APDU [16:56:37]CAPDU: 80 13 03 00 [16:56:37]Write to MH i2c: E2 08 00 13 00 80 13 03 00 00 00 00 00 92 [16:56:37]Write i2c OK [16:56:37]MH_I2C_Read... [16:56:37]OFD Sender: No OFD packet to send [16:56:37]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [16:56:37]Read from MH i2c: E2 [16:56:37]MH_I2C_Read... [16:56:37]Read from MH i2c: E2 FD 00 [16:56:37]MH_I2C_Read... [16:56:37]Read from MH i2c: E2 FD 00 13 00 00 C5 04 85 04 C1 04 6E 04 04 00 78 92 01 00 69 04 A3 00 6F 04 04 00 25 8E 01 00 B1 04 05 00 4D E1 23 3C 04 70 04 05 00 70 4E B8 58 03 72 04 04 00 DD 92 6B E3 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 4D 3E 25 73 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 69 4E 98 09 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9C 00 6F 04 04 00 53 04 00 00 B1 04 04 00 38 F9 06 18 70 04 04 00 38 F9 06 18 72 04 00 00 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 94 3E 8D 02 EF 03 09 90 00 65 [16:56:37]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 78 92 01 00 69 04 A3 00 6F 04 04 00 25 8E 01 00 B1 04 05 00 4D E1 23 3C 04 70 04 05 00 70 4E B8 58 03 72 04 04 00 DD 92 6B E3 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 4D 3E 25 73 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 69 4E 98 09 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9C 00 6F 04 04 00 53 04 00 00 B1 04 04 00 38 F9 06 18 70 04 04 00 38 F9 06 18 72 04 00 00 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 94 3E 8D 02 EF 03 09 90 00 [16:56:37]wFMCommunicate OK [16:56:37]wFMCommunicate request_size=4 [16:56:37]MH_SAM_APDU [16:56:37]CAPDU: 80 17 00 00 [16:56:37]Write to MH i2c: E2 08 00 14 00 80 17 00 00 00 00 00 00 94 [16:56:37]Write i2c OK [16:56:37]MH_I2C_Read... [16:56:38]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:56:38]Read from MH i2c: E2 [16:56:38]MH_I2C_Read... [16:56:38]Read from MH i2c: E2 FD 00 [16:56:38]MH_I2C_Read... [16:56:38]Read from MH i2c: E2 FD 00 14 00 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 92 6F 36 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 81 [16:56:38]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 92 6F 36 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [16:56:38]wFMCommunicate OK [16:56:38]wFMCommunicate request_size=4 [16:56:38]MH_SAM_APDU [16:56:38]CAPDU: 80 17 00 00 [16:56:38]Write to MH i2c: E2 08 00 15 00 80 17 00 00 00 00 00 00 95 [16:56:38]Write i2c OK [16:56:38]MH_I2C_Read... [16:56:38]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:56:38]Read from MH i2c: E2 [16:56:38]MH_I2C_Read... [16:56:38]Read from MH i2c: E2 FD 00 [16:56:38]MH_I2C_Read... [16:56:38]Read from MH i2c: E2 FD 00 15 00 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 A7 [16:56:38]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [16:56:38]wFMCommunicate OK [16:56:38]wFMCommunicate request_size=4 [16:56:38]MH_SAM_APDU [16:56:38]CAPDU: 80 17 00 00 [16:56:38]Write to MH i2c: E2 08 00 16 00 80 17 00 00 00 00 00 00 96 [16:56:38]Write i2c OK [16:56:38]MH_I2C_Read... [16:56:38]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:56:38]Read from MH i2c: E2 [16:56:38]MH_I2C_Read... [16:56:38]Read from MH i2c: E2 FD 00 [16:56:38]MH_I2C_Read... [16:56:38]Read from MH i2c: E2 FD 00 16 00 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 22 [16:56:38]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [16:56:38]wFMCommunicate OK [16:56:38]wFMCommunicate request_size=4 [16:56:38]MH_SAM_APDU [16:56:38]CAPDU: 80 17 00 00 [16:56:38]Write to MH i2c: E2 08 00 17 00 80 17 00 00 00 00 00 00 97 [16:56:38]Write i2c OK [16:56:38]MH_I2C_Read... [16:56:38]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [16:56:38]Read from MH i2c: E2 [16:56:38]MH_I2C_Read... [16:56:38]Read from MH i2c: E2 E2 00 [16:56:38]MH_I2C_Read... [16:56:38]Read from MH i2c: E2 E2 00 17 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 75 [16:56:38]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [16:56:38]wFMCommunicate OK [16:56:38]SAM_PROTO_GetFMData done [16:56:38]requested_item fm.sale_refund.total is exist - process it [16:56:38]requested_item fm.buy.total is exist - process it [16:56:38]requested_item shift.sale.total is exist - process it [16:56:38]SAM_PROTO_GetShiftData [16:56:38]wFMCommunicate request_size=4 [16:56:38]MH_SAM_APDU [16:56:38]CAPDU: 80 13 02 00 [16:56:38]Write to MH i2c: E2 08 00 18 00 80 13 02 00 00 00 00 00 96 [16:56:38]Write i2c OK [16:56:38]MH_I2C_Read... [16:56:39]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [16:56:39]Read from MH i2c: E2 [16:56:39]MH_I2C_Read... [16:56:39]Read from MH i2c: E2 FD 00 [16:56:39]MH_I2C_Read... [16:56:39]Read from MH i2c: E2 FD 00 18 00 00 BB 04 AA 04 B7 04 6E 04 04 00 A8 00 00 00 69 04 9E 00 6F 04 04 00 A7 00 00 00 B1 04 04 00 1F 0F D8 01 70 04 04 00 A0 B7 5B 01 72 04 03 00 7F 57 7C 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 AD 23 32 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 8C 2D 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 01 00 00 00 B1 04 03 00 AC 20 01 70 04 03 00 AC 20 01 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 A8 1E EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 1F [16:56:39]RAPDU: BB 04 AA 04 B7 04 6E 04 04 00 A8 00 00 00 69 04 9E 00 6F 04 04 00 A7 00 00 00 B1 04 04 00 1F 0F D8 01 70 04 04 00 A0 B7 5B 01 72 04 03 00 7F 57 7C 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 AD 23 32 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 8C 2D 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 01 00 00 00 B1 04 03 00 AC 20 01 70 04 03 00 AC 20 01 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 A8 1E EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 [16:56:39]wFMCommunicate OK [16:56:39]wFMCommunicate request_size=4 [16:56:39]MH_SAM_APDU [16:56:39]CAPDU: 80 17 00 00 [16:56:39]Write to MH i2c: E2 08 00 19 00 80 17 00 00 00 00 00 00 99 [16:56:39]Write i2c OK [16:56:39]MH_I2C_Read... [16:56:39]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:56:39]Read from MH i2c: E2 [16:56:39]MH_I2C_Read... [16:56:39]Read from MH i2c: E2 FD 00 [16:56:39]MH_I2C_Read... [16:56:39]Read from MH i2c: E2 FD 00 19 00 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 8E 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 90 00 D3 [16:56:39]RAPDU: 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 8E 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 90 00 [16:56:39]wFMCommunicate OK [16:56:39]wFMCommunicate request_size=4 [16:56:39]MH_SAM_APDU [16:56:39]CAPDU: 80 17 00 00 [16:56:39]Write to MH i2c: E2 08 00 1A 00 80 17 00 00 00 00 00 00 9A [16:56:39]Write i2c OK [16:56:39]MH_I2C_Read... [16:56:39]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:56:39]Read from MH i2c: E2 [16:56:39]MH_I2C_Read... [16:56:39]Read from MH i2c: E2 FD 00 [16:56:39]MH_I2C_Read... [16:56:39]Read from MH i2c: E2 FD 00 1A 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 C6 [16:56:39]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 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 90 00 [16:56:39]wFMCommunicate OK [16:56:39]wFMCommunicate request_size=4 [16:56:39]MH_SAM_APDU [16:56:39]CAPDU: 80 17 00 00 [16:56:39]Write to MH i2c: E2 08 00 1B 00 80 17 00 00 00 00 00 00 9B [16:56:39]Write i2c OK [16:56:39]MH_I2C_Read... [16:56:40]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:56:40]Read from MH i2c: E2 [16:56:40]MH_I2C_Read... [16:56:40]Read from MH i2c: E2 FD 00 [16:56:40]MH_I2C_Read... [16:56:40]Read from MH i2c: E2 FD 00 1B 00 00 00 00 EF 03 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 90 00 10 [16:56:40]RAPDU: 00 00 EF 03 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 90 00 [16:56:40]wFMCommunicate OK [16:56:40]wFMCommunicate request_size=4 [16:56:40]MH_SAM_APDU [16:56:40]CAPDU: 80 17 00 00 [16:56:40]Write to MH i2c: E2 08 00 1C 00 80 17 00 00 00 00 00 00 9C [16:56:40]Write i2c OK [16:56:40]MH_I2C_Read... [16:56:40]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 213! [16:56:40]Read from MH i2c: E2 [16:56:40]MH_I2C_Read... [16:56:40]Read from MH i2c: E2 D8 00 [16:56:40]MH_I2C_Read... [16:56:40]Read from MH i2c: E2 D8 00 1C 00 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 83 [16:56:40]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [16:56:40]wFMCommunicate OK [16:56:40]SAM_PROTO_GetShiftData done [16:56:40]requested_item shift.sale.total_cash is exist - process it [16:56:40]requested_item shift.sale_refund.total is exist - process it [16:56:40]requested_item shift.sale_refund.total_cash is exist - process it [16:56:40]requested_item shift.buy.total is exist - process it [16:56:40]requested_item shift.buy.total_cash is exist - process it [16:56:40]produce_requested_data done [16:56:40]produce_requested_data return {"fm.sale.total":181888535.81,"fm.sale_refund.total":4031102.00,"fm.buy.total":0.00,"shift.sale.total":309368.63,"shift.sale.total_cash":227880.00,"shift.sale_refund.total":739.00,"shift.sale_refund.total_cash":739.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [16:56:40]process_action_free get_value [16:56:40]json_value_free [16:56:40]json_value_free done [16:56:40]process_json_proto returns [16:56:40]Send response to host [16:56:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":181888535.81,"fm.sale_refund.total":4031102.00,"fm.buy.total":0.00,"shift.sale.total":309368.63,"shift.sale.total_cash":227880.00,"shift.sale_refund.total":739.00,"shift.sale_refund.total_cash":739.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [16:56:40]free response buf [16:56:40]execute_script done [16:56:40]execute_script returns [16:56:40]free content buf [16:56:40]Sock 9.Close socket [16:56:40]Sock 9.Thread stoped [16:56:40]accept exits with 8 [16:56:40]New connection [16:56:40]New thread 3066940772 created [16:56:40]Thread 3066797412 joined [16:56:40]Waiting for new connection... [16:56:40] Sock 8.Parse request [16:56:40]Sock 8.Check first char [16:56:40]Sock 8.First char is OK [16:56:40]request: POST /json_proto HTTP/1.0 [16:56:40]Method: POST [16:56:40]URL: /json_proto [16:56:40]Method is POST - this is cgi request [16:56:40]url: /json_proto [16:56:40]query_string will be loaded in cgi processing [16:56:40]execute_cgi json_proto POST (null) [16:56:40]execute_cgi path=json_proto method=POST [16:56:40]POST find Content-Length [16:56:40]Host: 172.17.38.133:8080 [16:56:40]Content-Length: 331 [16:56:40]Content-Type: application/json [16:56:40] [16:56:40]POST finish read [16:56:40]Found Content-Length = 331 [16:56:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [16:56:40]execute_script... [16:56:40]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [16:56:40]POST & json_proto [16:56:40]process_json_proto [16:56:40]json parsed OK: [16:56:40]protocol is kg_v1.0 [16:56:40]action value=get_value [16:56:40]process_action get_value [16:56:40]cmd_get_value [16:56:40]process_action get_value done [16:56:40]requested_data is exist [16:56:40]produce_requested_data [16:56:40]requested_item fm.sale.total is exist - process it [16:56:40]SAM_PROTO_GetFMData [16:56:40]wFMCommunicate request_size=4 [16:56:40]MH_SAM_APDU [16:56:40]CAPDU: 80 13 03 00 [16:56:40]Write to MH i2c: E2 08 00 1D 00 80 13 03 00 00 00 00 00 9C [16:56:40]Write i2c OK [16:56:40]MH_I2C_Read... [16:56:41]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [16:56:41]Read from MH i2c: E2 [16:56:41]MH_I2C_Read... [16:56:41]Read from MH i2c: E2 FD 00 [16:56:41]MH_I2C_Read... [16:56:41]Read from MH i2c: E2 FD 00 1D 00 00 C5 04 85 04 C1 04 6E 04 04 00 78 92 01 00 69 04 A3 00 6F 04 04 00 25 8E 01 00 B1 04 05 00 4D E1 23 3C 04 70 04 05 00 70 4E B8 58 03 72 04 04 00 DD 92 6B E3 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 4D 3E 25 73 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 69 4E 98 09 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9C 00 6F 04 04 00 53 04 00 00 B1 04 04 00 38 F9 06 18 70 04 04 00 38 F9 06 18 72 04 00 00 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 94 3E 8D 02 EF 03 09 90 00 6F [16:56:41]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 78 92 01 00 69 04 A3 00 6F 04 04 00 25 8E 01 00 B1 04 05 00 4D E1 23 3C 04 70 04 05 00 70 4E B8 58 03 72 04 04 00 DD 92 6B E3 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 4D 3E 25 73 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 69 4E 98 09 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9C 00 6F 04 04 00 53 04 00 00 B1 04 04 00 38 F9 06 18 70 04 04 00 38 F9 06 18 72 04 00 00 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 94 3E 8D 02 EF 03 09 90 00 [16:56:41]wFMCommunicate OK [16:56:41]wFMCommunicate request_size=4 [16:56:41]MH_SAM_APDU [16:56:41]CAPDU: 80 17 00 00 [16:56:41]Write to MH i2c: E2 08 00 1E 00 80 17 00 00 00 00 00 00 9E [16:56:41]Write i2c OK [16:56:41]MH_I2C_Read... [16:56:41]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:56:41]Read from MH i2c: E2 [16:56:41]MH_I2C_Read... [16:56:41]Read from MH i2c: E2 FD 00 [16:56:41]MH_I2C_Read... [16:56:41]Read from MH i2c: E2 FD 00 1E 00 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 92 6F 36 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 8B [16:56:41]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 92 6F 36 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [16:56:41]wFMCommunicate OK [16:56:41]wFMCommunicate request_size=4 [16:56:41]MH_SAM_APDU [16:56:41]CAPDU: 80 17 00 00 [16:56:41]Write to MH i2c: E2 08 00 1F 00 80 17 00 00 00 00 00 00 9F [16:56:41]Write i2c OK [16:56:41]MH_I2C_Read... [16:56:41]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:56:41]Read from MH i2c: E2 [16:56:41]MH_I2C_Read... [16:56:41]Read from MH i2c: E2 FD 00 [16:56:41]MH_I2C_Read... [16:56:41]Read from MH i2c: E2 FD 00 1F 00 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 B1 [16:56:41]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [16:56:41]wFMCommunicate OK [16:56:41]wFMCommunicate request_size=4 [16:56:41]MH_SAM_APDU [16:56:41]CAPDU: 80 17 00 00 [16:56:41]Write to MH i2c: E2 08 00 20 00 80 17 00 00 00 00 00 00 A0 [16:56:41]Write i2c OK [16:56:41]MH_I2C_Read... [16:56:41]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:56:42]Read from MH i2c: E2 [16:56:42]MH_I2C_Read... [16:56:42]Read from MH i2c: E2 FD 00 [16:56:42]MH_I2C_Read... [16:56:42]Read from MH i2c: E2 FD 00 20 00 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 2C [16:56:42]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [16:56:42]wFMCommunicate OK [16:56:42]wFMCommunicate request_size=4 [16:56:42]MH_SAM_APDU [16:56:42]CAPDU: 80 17 00 00 [16:56:42]Write to MH i2c: E2 08 00 21 00 80 17 00 00 00 00 00 00 A1 [16:56:42]Write i2c OK [16:56:42]MH_I2C_Read... [16:56:42]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [16:56:42]Read from MH i2c: E2 [16:56:42]MH_I2C_Read... [16:56:42]Read from MH i2c: E2 E2 00 [16:56:42]MH_I2C_Read... [16:56:42]Read from MH i2c: E2 E2 00 21 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [16:56:42]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [16:56:42]wFMCommunicate OK [16:56:42]SAM_PROTO_GetFMData done [16:56:42]requested_item fm.sale_refund.total is exist - process it [16:56:42]requested_item fm.buy.total is exist - process it [16:56:42]requested_item shift.sale.total is exist - process it [16:56:42]SAM_PROTO_GetShiftData [16:56:42]wFMCommunicate request_size=4 [16:56:42]MH_SAM_APDU [16:56:42]CAPDU: 80 13 02 00 [16:56:42]Write to MH i2c: E2 08 00 22 00 80 13 02 00 00 00 00 00 A0 [16:56:42]Write i2c OK [16:56:42]MH_I2C_Read... [16:56:42]OFD Sender: No OFD packet to send [16:56:42]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [16:56:42]Read from MH i2c: E2 [16:56:42]MH_I2C_Read... [16:56:42]Read from MH i2c: E2 FD 00 [16:56:42]MH_I2C_Read... [16:56:42]Read from MH i2c: E2 FD 00 22 00 00 BB 04 AA 04 B7 04 6E 04 04 00 A8 00 00 00 69 04 9E 00 6F 04 04 00 A7 00 00 00 B1 04 04 00 1F 0F D8 01 70 04 04 00 A0 B7 5B 01 72 04 03 00 7F 57 7C 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 AD 23 32 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 8C 2D 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 01 00 00 00 B1 04 03 00 AC 20 01 70 04 03 00 AC 20 01 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 A8 1E EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 29 [16:56:42]RAPDU: BB 04 AA 04 B7 04 6E 04 04 00 A8 00 00 00 69 04 9E 00 6F 04 04 00 A7 00 00 00 B1 04 04 00 1F 0F D8 01 70 04 04 00 A0 B7 5B 01 72 04 03 00 7F 57 7C 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 AD 23 32 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 8C 2D 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 01 00 00 00 B1 04 03 00 AC 20 01 70 04 03 00 AC 20 01 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 A8 1E EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 [16:56:43]wFMCommunicate OK [16:56:43]wFMCommunicate request_size=4 [16:56:43]MH_SAM_APDU [16:56:43]CAPDU: 80 17 00 00 [16:56:43]Write to MH i2c: E2 08 00 23 00 80 17 00 00 00 00 00 00 A3 [16:56:43]Write i2c OK [16:56:43]MH_I2C_Read... [16:56:43]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:56:43]Read from MH i2c: E2 [16:56:43]MH_I2C_Read... [16:56:43]Read from MH i2c: E2 FD 00 [16:56:43]MH_I2C_Read... [16:56:43]Read from MH i2c: E2 FD 00 23 00 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 8E 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 90 00 DD [16:56:43]RAPDU: 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 8E 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 90 00 [16:56:43]wFMCommunicate OK [16:56:43]wFMCommunicate request_size=4 [16:56:43]MH_SAM_APDU [16:56:43]CAPDU: 80 17 00 00 [16:56:43]Write to MH i2c: E2 08 00 24 00 80 17 00 00 00 00 00 00 A4 [16:56:43]Write i2c OK [16:56:43]MH_I2C_Read... [16:56:43]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:56:43]Read from MH i2c: E2 [16:56:43]MH_I2C_Read... [16:56:43]Read from MH i2c: E2 FD 00 [16:56:43]MH_I2C_Read... [16:56:43]Read from MH i2c: E2 FD 00 24 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 D0 [16:56:43]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 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 90 00 [16:56:43]wFMCommunicate OK [16:56:43]wFMCommunicate request_size=4 [16:56:43]MH_SAM_APDU [16:56:43]CAPDU: 80 17 00 00 [16:56:43]Write to MH i2c: E2 08 00 25 00 80 17 00 00 00 00 00 00 A5 [16:56:43]Write i2c OK [16:56:43]MH_I2C_Read... [16:56:44]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:56:44]Read from MH i2c: E2 [16:56:44]MH_I2C_Read... [16:56:44]Read from MH i2c: E2 FD 00 [16:56:44]MH_I2C_Read... [16:56:44]Read from MH i2c: E2 FD 00 25 00 00 00 00 EF 03 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 90 00 1A [16:56:44]RAPDU: 00 00 EF 03 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 90 00 [16:56:44]wFMCommunicate OK [16:56:44]wFMCommunicate request_size=4 [16:56:44]MH_SAM_APDU [16:56:44]CAPDU: 80 17 00 00 [16:56:44]Write to MH i2c: E2 08 00 26 00 80 17 00 00 00 00 00 00 A6 [16:56:44]Write i2c OK [16:56:44]MH_I2C_Read... [16:56:44]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 213! [16:56:44]Read from MH i2c: E2 [16:56:44]MH_I2C_Read... [16:56:44]Read from MH i2c: E2 D8 00 [16:56:44]MH_I2C_Read... [16:56:44]Read from MH i2c: E2 D8 00 26 00 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 [16:56:44]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [16:56:44]wFMCommunicate OK [16:56:44]SAM_PROTO_GetShiftData done [16:56:44]requested_item shift.sale.total_cash is exist - process it [16:56:44]requested_item shift.sale_refund.total is exist - process it [16:56:44]requested_item shift.sale_refund.total_cash is exist - process it [16:56:44]requested_item shift.buy.total is exist - process it [16:56:44]requested_item shift.buy.total_cash is exist - process it [16:56:44]produce_requested_data done [16:56:44]produce_requested_data return {"fm.sale.total":181888535.81,"fm.sale_refund.total":4031102.00,"fm.buy.total":0.00,"shift.sale.total":309368.63,"shift.sale.total_cash":227880.00,"shift.sale_refund.total":739.00,"shift.sale_refund.total_cash":739.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [16:56:44]process_action_free get_value [16:56:44]json_value_free [16:56:44]json_value_free done [16:56:44]process_json_proto returns [16:56:44]Send response to host [16:56:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":181888535.81,"fm.sale_refund.total":4031102.00,"fm.buy.total":0.00,"shift.sale.total":309368.63,"shift.sale.total_cash":227880.00,"shift.sale_refund.total":739.00,"shift.sale_refund.total_cash":739.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [16:56:44]free response buf [16:56:44]execute_script done [16:56:44]execute_script returns [16:56:44]free content buf [16:56:44]Sock 8.Close socket [16:56:44]Sock 8.Thread stoped [16:56:44]accept exits with 9 [16:56:44]New connection [16:56:44]New thread 3066797412 created [16:56:44]Thread 3066940772 joined [16:56:44]Waiting for new connection... [16:56:44] Sock 9.Parse request [16:56:44]Sock 9.Check first char [16:56:44]Sock 9.First char is OK [16:56:44]request: POST /json_proto HTTP/1.0 [16:56:44]Method: POST [16:56:44]URL: /json_proto [16:56:44]Method is POST - this is cgi request [16:56:44]url: /json_proto [16:56:44]query_string will be loaded in cgi processing [16:56:44]execute_cgi json_proto POST (null) [16:56:44]execute_cgi path=json_proto method=POST [16:56:44]POST find Content-Length [16:56:44]Host: 172.17.38.133:8080 [16:56:44]Content-Length: 269 [16:56:44]Content-Type: application/json [16:56:44] [16:56:44]POST finish read [16:56:44]Found Content-Length = 269 [16:56:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:56:44]execute_script... [16:56:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:56:44]POST & json_proto [16:56:44]process_json_proto [16:56:44]json parsed OK: [16:56:44]protocol is kg_v1.0 [16:56:44]action value=x_report [16:56:44]process_action x_report [16:56:44]cmd_x_report [16:56:44]MH_GetDate [16:56:44]Write to MH i2c: F0 00 00 27 00 16 [16:56:44]Write i2c OK [16:56:44]MH_I2C_Read... [16:56:44]Read from MH i2c: F0 [16:56:44]MH_I2C_Read... [16:56:44]Read from MH i2c: F0 09 00 [16:56:44]MH_I2C_Read... [16:56:44]Read from MH i2c: F0 09 00 27 00 00 CD 0D 73 66 BD 8F 7C 64 FE [16:56:44]GetLastDocTimeStamp 1718815833 [16:56:44]current date 1718816205 [16:56:44]FM_GetShiftState [16:56:44]SAM_PROTO_GetShiftState [16:56:44]wFMCommunicate request_size=4 [16:56:44]MH_SAM_APDU [16:56:44]CAPDU: 80 13 01 00 [16:56:44]Write to MH i2c: E2 08 00 28 00 80 13 01 00 00 00 00 00 A5 [16:56:44]Write i2c OK [16:56:44]MH_I2C_Read... [16:56:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:56:44]Read from MH i2c: E2 [16:56:44]MH_I2C_Read... [16:56:44]Read from MH i2c: E2 0E 00 [16:56:44]MH_I2C_Read... [16:56:44]Read from MH i2c: E2 0E 00 28 00 00 09 00 01 04 26 72 66 00 00 00 00 90 00 B3 [16:56:44]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [16:56:44]wFMCommunicate OK [16:56:44]SAM_PROTO_GetShiftState done [16:56:44]FM_GetShiftState done [16:56:44]KKMCreateXReportDocument [16:56:44]Load OK [16:56:44]Malloc new data [16:56:44]MH_GetDate [16:56:44]Write to MH i2c: F0 00 00 29 00 18 [16:56:44]Write i2c OK [16:56:44]MH_I2C_Read... [16:56:44]Read from MH i2c: F0 [16:56:44]MH_I2C_Read... [16:56:44]Read from MH i2c: F0 09 00 [16:56:44]MH_I2C_Read... [16:56:44]Read from MH i2c: F0 09 00 29 00 00 CD 0D 73 66 BD 8F 7C 64 00 [16:56:44]Malloc new data [16:56:44]Malloc new data [16:56:44]wFMCommunicate request_size=4 [16:56:44]MH_SAM_APDU [16:56:44]CAPDU: 80 11 00 00 [16:56:44]Write to MH i2c: E2 08 00 2A 00 80 11 00 00 00 00 00 00 A4 [16:56:44]Write i2c OK [16:56:44]MH_I2C_Read... [16:56:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:56:44]Read from MH i2c: E2 [16:56:44]MH_I2C_Read... [16:56:44]Read from MH i2c: E2 17 00 [16:56:44]MH_I2C_Read... [16:56:44]Read from MH i2c: E2 17 00 2A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 F7 [16:56:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [16:56:44]wFMCommunicate OK [16:56:44]SAM_PROTO_GetFieldsCounters [16:56:44]wFMCommunicate request_size=4 [16:56:44]MH_SAM_APDU [16:56:44]CAPDU: 80 13 00 00 [16:56:44]Write to MH i2c: E2 08 00 2B 00 80 13 00 00 00 00 00 00 A7 [16:56:44]Write i2c OK [16:56:44]MH_I2C_Read... [16:56:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:56:44]Read from MH i2c: E2 [16:56:44]MH_I2C_Read... [16:56:44]Read from MH i2c: E2 62 00 [16:56:44]MH_I2C_Read... [16:56:44]Read from MH i2c: E2 62 00 2B 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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 3A 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 A8 00 00 00 5E 04 04 00 A8 00 00 00 57 04 04 00 A9 00 00 00 19 04 04 00 00 00 00 00 90 00 F8 [16:56: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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 3A 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 A8 00 00 00 5E 04 04 00 A8 00 00 00 57 04 04 00 A9 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:56:45]wFMCommunicate OK [16:56:45]SAM_PROTO_GetFieldsCounters done [16:56:45]Malloc new data [16:56:45]Malloc new data [16:56:45]Malloc new data [16:56:45]KKMCreateXReportDocument OK [16:56:45]KKMSetXReportData OK [16:56:45]KKMPrepareXReportFMData [16:56:45]SAM_PROTO_GetShiftData [16:56:45]wFMCommunicate request_size=4 [16:56:45]MH_SAM_APDU [16:56:45]CAPDU: 80 13 02 00 [16:56:45]Write to MH i2c: E2 08 00 2C 00 80 13 02 00 00 00 00 00 AA [16:56:45]Write i2c OK [16:56:45]MH_I2C_Read... [16:56:45]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [16:56:45]Read from MH i2c: E2 [16:56:45]MH_I2C_Read... [16:56:45]Read from MH i2c: E2 FD 00 [16:56:45]MH_I2C_Read... [16:56:45]Read from MH i2c: E2 FD 00 2C 00 00 BB 04 AA 04 B7 04 6E 04 04 00 A8 00 00 00 69 04 9E 00 6F 04 04 00 A7 00 00 00 B1 04 04 00 1F 0F D8 01 70 04 04 00 A0 B7 5B 01 72 04 03 00 7F 57 7C 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 AD 23 32 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 8C 2D 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 01 00 00 00 B1 04 03 00 AC 20 01 70 04 03 00 AC 20 01 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 A8 1E EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 33 [16:56:45]RAPDU: BB 04 AA 04 B7 04 6E 04 04 00 A8 00 00 00 69 04 9E 00 6F 04 04 00 A7 00 00 00 B1 04 04 00 1F 0F D8 01 70 04 04 00 A0 B7 5B 01 72 04 03 00 7F 57 7C 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 AD 23 32 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 8C 2D 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 01 00 00 00 B1 04 03 00 AC 20 01 70 04 03 00 AC 20 01 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 A8 1E EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 [16:56:45]wFMCommunicate OK [16:56:45]wFMCommunicate request_size=4 [16:56:45]MH_SAM_APDU [16:56:45]CAPDU: 80 17 00 00 [16:56:45]Write to MH i2c: E2 08 00 2D 00 80 17 00 00 00 00 00 00 AD [16:56:45]Write i2c OK [16:56:45]MH_I2C_Read... [16:56:45]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:56:45]Read from MH i2c: E2 [16:56:45]MH_I2C_Read... [16:56:45]Read from MH i2c: E2 FD 00 [16:56:45]MH_I2C_Read... [16:56:45]Read from MH i2c: E2 FD 00 2D 00 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 8E 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 90 00 E7 [16:56:46]RAPDU: 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 8E 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 90 00 [16:56:46]wFMCommunicate OK [16:56:46]wFMCommunicate request_size=4 [16:56:46]MH_SAM_APDU [16:56:46]CAPDU: 80 17 00 00 [16:56:46]Write to MH i2c: E2 08 00 2E 00 80 17 00 00 00 00 00 00 AE [16:56:46]Write i2c OK [16:56:46]MH_I2C_Read... [16:56:46]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:56:46]Read from MH i2c: E2 [16:56:46]MH_I2C_Read... [16:56:46]Read from MH i2c: E2 FD 00 [16:56:46]MH_I2C_Read... [16:56:46]Read from MH i2c: E2 FD 00 2E 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 DA [16:56:46]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 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 90 00 [16:56:46]wFMCommunicate OK [16:56:46]wFMCommunicate request_size=4 [16:56:46]MH_SAM_APDU [16:56:46]CAPDU: 80 17 00 00 [16:56:46]Write to MH i2c: E2 08 00 2F 00 80 17 00 00 00 00 00 00 AF [16:56:46]Write i2c OK [16:56:46]MH_I2C_Read... [16:56:46]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:56:46]Read from MH i2c: E2 [16:56:46]MH_I2C_Read... [16:56:46]Read from MH i2c: E2 FD 00 [16:56:46]MH_I2C_Read... [16:56:46]Read from MH i2c: E2 FD 00 2F 00 00 00 00 EF 03 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 90 00 24 [16:56:46]RAPDU: 00 00 EF 03 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 90 00 [16:56:47]wFMCommunicate OK [16:56:47]wFMCommunicate request_size=4 [16:56:47]MH_SAM_APDU [16:56:47]CAPDU: 80 17 00 00 [16:56:47]Write to MH i2c: E2 08 00 30 00 80 17 00 00 00 00 00 00 B0 [16:56:47]Write i2c OK [16:56:47]MH_I2C_Read... [16:56:47]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 213! [16:56:47]Read from MH i2c: E2 [16:56:47]MH_I2C_Read... [16:56:47]Read from MH i2c: E2 D8 00 [16:56:47]MH_I2C_Read... [16:56:47]Read from MH i2c: E2 D8 00 30 00 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 97 [16:56:47]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [16:56:47]wFMCommunicate OK [16:56:47]SAM_PROTO_GetShiftData done [16:56:47]1194 (1207) - счетчики итогов смены [16:56:47] 1134 (4) - 168 - количество чеков со всеми признаками расчетов [16:56:47] 1129 (158) - счетчики операций «приход» [16:56:47] 1135 (4) - 167 - количество чеков по признаку расчетов [16:56:47] 1201 (4) - 309368.63 - общая итоговая сумма в чеках [16:56:47] 1136 (4) - 227880.00 - итоговая сумма в чеках наличными [16:56:47] 1138 (3) - 81488.63 - итоговая сумма в чеках безналичными [16:56:47] 1024 (123) - суммы налогов [16:56:47] 1006 (9) - суммы НДС [16:56:47] 1010 (1) - 0% - код ставки НДС [16:56:47] 1011 (0) - 0.00 - сумма НДС по ставке [16:56:47] 1006 (12) - суммы НДС [16:56:47] 1010 (1) - 12% - код ставки НДС [16:56:47] 1011 (3) - 32859.33 - сумма НДС по ставке [16:56:47] 1007 (9) - суммы НСП [16:56:47] 1014 (1) - 0% - код ставки НСП [16:56:47] 1015 (0) - 0.00 - сумма НСП по ставке [16:56:47] 1007 (12) - суммы НСП [16:56:47] 1014 (1) - 1% - код ставки НСП [16:56:47] 1015 (3) - 2738.04 - сумма НСП по ставке [16:56:47] 1007 (9) - суммы НСП [16:56:47] 1014 (1) - 2% - код ставки НСП [16:56:47] 1015 (0) - 0.00 - сумма НСП по ставке [16:56:47] 1007 (9) - суммы НСП [16:56:47] 1014 (1) - 3% - код ставки НСП [16:56:47] 1015 (0) - 0.00 - сумма НСП по ставке [16:56:47] 1007 (9) - суммы НСП [16:56:47] 1014 (1) - 5% - код ставки НСП [16:56:47] 1015 (0) - 0.00 - сумма НСП по ставке [16:56:47] 1007 (9) - суммы НСП [16:56:47] 1014 (1) - 0,50% - код ставки НСП [16:56:47] 1015 (0) - 0.00 - сумма НСП по ставке [16:56:47] 1007 (9) - суммы НСП [16:56:47] 1014 (1) - 1,50% - код ставки НСП [16:56:47] 1015 (0) - 0.00 - сумма НСП по ставке [16:56:47] 1130 (151) - счетчики операций «возврат прихода» [16:56:47] 1135 (4) - 1 - количество чеков по признаку расчетов [16:56:47] 1201 (3) - 739.00 - общая итоговая сумма в чеках [16:56:47] 1136 (3) - 739.00 - итоговая сумма в чеках наличными [16:56:47] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [16:56:47] 1024 (121) - суммы налогов [16:56:47] 1006 (9) - суммы НДС [16:56:47] 1010 (1) - 0% - код ставки НДС [16:56:47] 1011 (0) - 0.00 - сумма НДС по ставке [16:56:47] 1006 (11) - суммы НДС [16:56:47] 1010 (1) - 12% - код ставки НДС [16:56:47] 1011 (2) - 78.48 - сумма НДС по ставке [16:56:47] 1007 (9) - суммы НСП [16:56:47] 1014 (1) - 0% - код ставки НСП [16:56:47] 1015 (0) - 0.00 - сумма НСП по ставке [16:56:47] 1007 (11) - суммы НСП [16:56:47] 1014 (1) - 1% - код ставки НСП [16:56:47] 1015 (2) - 6.54 - сумма НСП по ставке [16:56:47] 1007 (9) - суммы НСП [16:56:47] 1014 (1) - 2% - код ставки НСП [16:56:47] 1015 (0) - 0.00 - сумма НСП по ставке [16:56:47] 1007 (9) - суммы НСП [16:56:47] 1014 (1) - 3% - код ставки НСП [16:56:47] 1015 (0) - 0.00 - сумма НСП по ставке [16:56:47] 1007 (9) - суммы НСП [16:56:47] 1014 (1) - 5% - код ставки НСП [16:56:47] 1015 (0) - 0.00 - сумма НСП по ставке [16:56:47] 1007 (9) - суммы НСП [16:56:47] 1014 (1) - 0,50% - код ставки НСП [16:56:47] 1015 (0) - 0.00 - сумма НСП по ставке [16:56:47] 1007 (9) - суммы НСП [16:56:47] 1014 (1) - 1,50% - код ставки НСП [16:56:47] 1015 (0) - 0.00 - сумма НСП по ставке [16:56:47] 1131 (141) - счетчики операций «расход» [16:56:47] 1135 (4) - 0 - количество чеков по признаку расчетов [16:56:47] 1201 (0) - 0.00 - общая итоговая сумма в чеках [16:56:47] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [16:56:47] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [16:56:47] 1024 (117) - суммы налогов [16:56:47] 1006 (9) - суммы НДС [16:56:47] 1010 (1) - 0% - код ставки НДС [16:56:47] 1011 (0) - 0.00 - сумма НДС по ставке [16:56:47] 1006 (9) - суммы НДС [16:56:47] 1010 (1) - 12% - код ставки НДС [16:56:47] 1011 (0) - 0.00 - сумма НДС по ставке [16:56:47] 1007 (9) - суммы НСП [16:56:47] 1014 (1) - 0% - код ставки НСП [16:56:47] 1015 (0) - 0.00 - сумма НСП по ставке [16:56:47] 1007 (9) - суммы НСП [16:56:47] 1014 (1) - 1% - код ставки НСП [16:56:47] 1015 (0) - 0.00 - сумма НСП по ставке [16:56:47] 1007 (9) - суммы НСП [16:56:47] 1014 (1) - 2% - код ставки НСП [16:56:47] 1015 (0) - 0.00 - сумма НСП по ставке [16:56:47] 1007 (9) - суммы НСП [16:56:47] 1014 (1) - 3% - код ставки НСП [16:56:47] 1015 (0) - 0.00 - сумма НСП по ставке [16:56:47] 1007 (9) - суммы НСП [16:56:47] 1014 (1) - 5% - код ставки НСП [16:56:47] 1015 (0) - 0.00 - сумма НСП по ставке [16:56:47] 1007 (9) - суммы НСП [16:56:47] 1014 (1) - 0,50% - код ставки НСП [16:56:47] 1015 (0) - 0.00 - сумма НСП по ставке [16:56:47] 1007 (9) - суммы НСП [16:56:47] 1014 (1) - 1,50% - код ставки НСП [16:56:47] 1015 (0) - 0.00 - сумма НСП по ставке [16:56:47] 1132 (141) - счетчики операций «возврат расхода» [16:56:47] 1135 (4) - 0 - количество чеков по признаку расчетов [16:56:47] 1201 (0) - 0.00 - общая итоговая сумма в чеках [16:56:47] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [16:56:47] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [16:56:47] 1024 (117) - суммы налогов [16:56:47] 1006 (9) - суммы НДС [16:56:47] 1010 (1) - 0% - код ставки НДС [16:56:47] 1011 (0) - 0.00 - сумма НДС по ставке [16:56:47] 1006 (9) - суммы НДС [16:56:47] 1010 (1) - 12% - код ставки НДС [16:56:47] 1011 (0) - 0.00 - сумма НДС по ставке [16:56:47] 1007 (9) - суммы НСП [16:56:47] 1014 (1) - 0% - код ставки НСП [16:56:47] 1015 (0) - 0.00 - сумма НСП по ставке [16:56:47] 1007 (9) - суммы НСП [16:56:47] 1014 (1) - 1% - код ставки НСП [16:56:47] 1015 (0) - 0.00 - сумма НСП по ставке [16:56:47] 1007 (9) - суммы НСП [16:56:47] 1014 (1) - 2% - код ставки НСП [16:56:47] 1015 (0) - 0.00 - сумма НСП по ставке [16:56:47] 1007 (9) - суммы НСП [16:56:47] 1014 (1) - 3% - код ставки НСП [16:56:47] 1015 (0) - 0.00 - сумма НСП по ставке [16:56:47] 1007 (9) - суммы НСП [16:56:47] 1014 (1) - 5% - код ставки НСП [16:56:47] 1015 (0) - 0.00 - сумма НСП по ставке [16:56:47] 1007 (9) - суммы НСП [16:56:47] 1014 (1) - 0,50% - код ставки НСП [16:56:47] 1015 (0) - 0.00 - сумма НСП по ставке [16:56:47] 1007 (9) - суммы НСП [16:56:47] OFD Sender: No OFD packet to send [16:56:47] 1014 (1) - 1,50% - код ставки НСП [16:56:47] 1015 (0) - 0.00 - сумма НСП по ставке [16:56:47] 1133 (588) - - счетчики коррекции - не используются [16:56:47]SetTLVBufToDocument [16:56:47]Processing tag 1194 (04AA) [16:56:47]Load OK [16:56:47]SetTLVBufToDocument [16:56:47]Processing tag 1134 (046E) [16:56:47]Malloc new data [16:56:47]Processing tag 1129 (0469) [16:56:47]Load OK [16:56:47]SetTLVBufToDocument [16:56:47]Processing tag 1135 (046F) [16:56:47]Malloc new data [16:56:47]Processing tag 1201 (04B1) [16:56:47]Malloc new data [16:56:48]Processing tag 1136 (0470) [16:56:48]Malloc new data [16:56:48]Processing tag 1138 (0472) [16:56:48]Malloc new data [16:56:48]Processing tag 1024 (0400) [16:56:48]Load OK [16:56:48]SetTLVBufToDocument [16:56:48]Processing tag 1006 (03EE) [16:56:48]Load OK [16:56:48]SetTLVBufToDocument [16:56:48]Processing tag 1010 (03F2) [16:56:48]Malloc new data [16:56:48]Processing tag 1011 (03F3) [16:56:48]Malloc new data [16:56:48]SetTLVBufToDocument err=0 [16:56:48]Processing tag 1006 (03EE) [16:56:48]Load OK [16:56:48]SetTLVBufToDocument [16:56:48]Processing tag 1010 (03F2) [16:56:48]Malloc new data [16:56:48]Processing tag 1011 (03F3) [16:56:48]Malloc new data [16:56:48]SetTLVBufToDocument err=0 [16:56:48]Processing tag 1007 (03EF) [16:56:48]Load OK [16:56:48]SetTLVBufToDocument [16:56:48]Processing tag 1014 (03F6) [16:56:48]Malloc new data [16:56:48]Processing tag 1015 (03F7) [16:56:48]Malloc new data [16:56:48]SetTLVBufToDocument err=0 [16:56:48]Processing tag 1007 (03EF) [16:56:48]Load OK [16:56:48]SetTLVBufToDocument [16:56:48]Processing tag 1014 (03F6) [16:56:48]Malloc new data [16:56:48]Processing tag 1015 (03F7) [16:56:48]Malloc new data [16:56:48]SetTLVBufToDocument err=0 [16:56:48]Processing tag 1007 (03EF) [16:56:48]Load OK [16:56:48]SetTLVBufToDocument [16:56:48]Processing tag 1014 (03F6) [16:56:48]Malloc new data [16:56:48]Processing tag 1015 (03F7) [16:56:48]Malloc new data [16:56:48]SetTLVBufToDocument err=0 [16:56:48]Processing tag 1007 (03EF) [16:56:48]Load OK [16:56:48]SetTLVBufToDocument [16:56:48]Processing tag 1014 (03F6) [16:56:48]Malloc new data [16:56:48]Processing tag 1015 (03F7) [16:56:48]Malloc new data [16:56:48]SetTLVBufToDocument err=0 [16:56:48]Processing tag 1007 (03EF) [16:56:48]Load OK [16:56:48]SetTLVBufToDocument [16:56:48]Processing tag 1014 (03F6) [16:56:48]Malloc new data [16:56:48]Processing tag 1015 (03F7) [16:56:48]Malloc new data [16:56:48]SetTLVBufToDocument err=0 [16:56:48]Processing tag 1007 (03EF) [16:56:48]Load OK [16:56:48]SetTLVBufToDocument [16:56:48]Processing tag 1014 (03F6) [16:56:48]Malloc new data [16:56:48]Processing tag 1015 (03F7) [16:56:48]Malloc new data [16:56:48]SetTLVBufToDocument err=0 [16:56:48]Processing tag 1007 (03EF) [16:56:48]Load OK [16:56:48]SetTLVBufToDocument [16:56:48]Processing tag 1014 (03F6) [16:56:48]Malloc new data [16:56:48]Processing tag 1015 (03F7) [16:56:48]Malloc new data [16:56:48]SetTLVBufToDocument err=0 [16:56:48]SetTLVBufToDocument err=0 [16:56:48]SetTLVBufToDocument err=0 [16:56:48]Processing tag 1130 (046A) [16:56:48]Load OK [16:56:48]SetTLVBufToDocument [16:56:48]Processing tag 1135 (046F) [16:56:48]Malloc new data [16:56:48]Processing tag 1201 (04B1) [16:56:48]Malloc new data [16:56:48]Processing tag 1136 (0470) [16:56:48]Malloc new data [16:56:48]Processing tag 1138 (0472) [16:56:48]Malloc new data [16:56:48]Processing tag 1024 (0400) [16:56:48]Load OK [16:56:48]SetTLVBufToDocument [16:56:48]Processing tag 1006 (03EE) [16:56:48]Load OK [16:56:48]SetTLVBufToDocument [16:56:48]Processing tag 1010 (03F2) [16:56:48]Malloc new data [16:56:48]Processing tag 1011 (03F3) [16:56:48]Malloc new data [16:56:48]SetTLVBufToDocument err=0 [16:56:48]Processing tag 1006 (03EE) [16:56:48]Load OK [16:56:48]SetTLVBufToDocument [16:56:48]Processing tag 1010 (03F2) [16:56:48]Malloc new data [16:56:48]Processing tag 1011 (03F3) [16:56:48]Malloc new data [16:56:48]SetTLVBufToDocument err=0 [16:56:48]Processing tag 1007 (03EF) [16:56:48]Load OK [16:56:48]SetTLVBufToDocument [16:56:48]Processing tag 1014 (03F6) [16:56:48]Malloc new data [16:56:48]Processing tag 1015 (03F7) [16:56:48]Malloc new data [16:56:48]SetTLVBufToDocument err=0 [16:56:48]Processing tag 1007 (03EF) [16:56:48]Load OK [16:56:48]SetTLVBufToDocument [16:56:48]Processing tag 1014 (03F6) [16:56:48]Malloc new data [16:56:48]Processing tag 1015 (03F7) [16:56:48]Malloc new data [16:56:48]SetTLVBufToDocument err=0 [16:56:48]Processing tag 1007 (03EF) [16:56:48]Load OK [16:56:48]SetTLVBufToDocument [16:56:48]Processing tag 1014 (03F6) [16:56:48]Malloc new data [16:56:48]Processing tag 1015 (03F7) [16:56:48]Malloc new data [16:56:48]SetTLVBufToDocument err=0 [16:56:48]Processing tag 1007 (03EF) [16:56:48]Load OK [16:56:48]SetTLVBufToDocument [16:56:48]Processing tag 1014 (03F6) [16:56:48]Malloc new data [16:56:48]Processing tag 1015 (03F7) [16:56:48]Malloc new data [16:56:48]SetTLVBufToDocument err=0 [16:56:48]Processing tag 1007 (03EF) [16:56:48]Load OK [16:56:48]SetTLVBufToDocument [16:56:48]Processing tag 1014 (03F6) [16:56:48]Malloc new data [16:56:48]Processing tag 1015 (03F7) [16:56:48]Malloc new data [16:56:48]SetTLVBufToDocument err=0 [16:56:48]Processing tag 1007 (03EF) [16:56:48]Load OK [16:56:48]SetTLVBufToDocument [16:56:48]Processing tag 1014 (03F6) [16:56:48]Malloc new data [16:56:48]Processing tag 1015 (03F7) [16:56:48]Malloc new data [16:56:48]SetTLVBufToDocument err=0 [16:56:48]Processing tag 1007 (03EF) [16:56:48]Load OK [16:56:48]SetTLVBufToDocument [16:56:48]Processing tag 1014 (03F6) [16:56:48]Malloc new data [16:56:48]Processing tag 1015 (03F7) [16:56:48]Malloc new data [16:56:48]SetTLVBufToDocument err=0 [16:56:48]SetTLVBufToDocument err=0 [16:56:48]SetTLVBufToDocument err=0 [16:56:48]Processing tag 1131 (046B) [16:56:48]Load OK [16:56:48]SetTLVBufToDocument [16:56:48]Processing tag 1135 (046F) [16:56:48]Malloc new data [16:56:48]Processing tag 1201 (04B1) [16:56:48]Malloc new data [16:56:48]Processing tag 1136 (0470) [16:56:48]Malloc new data [16:56:48]Processing tag 1138 (0472) [16:56:48]Malloc new data [16:56:48]Processing tag 1024 (0400) [16:56:48]Load OK [16:56:48]SetTLVBufToDocument [16:56:48]Processing tag 1006 (03EE) [16:56:48]Load OK [16:56:48]SetTLVBufToDocument [16:56:48]Processing tag 1010 (03F2) [16:56:48]Malloc new data [16:56:48]Processing tag 1011 (03F3) [16:56:48]Malloc new data [16:56:48]SetTLVBufToDocument err=0 [16:56:48]Processing tag 1006 (03EE) [16:56:48]Load OK [16:56:48]SetTLVBufToDocument [16:56:48]Processing tag 1010 (03F2) [16:56:48]Malloc new data [16:56:48]Processing tag 1011 (03F3) [16:56:48]Malloc new data [16:56:48]SetTLVBufToDocument err=0 [16:56:48]Processing tag 1007 (03EF) [16:56:48]Load OK [16:56:48]SetTLVBufToDocument [16:56:48]Processing tag 1014 (03F6) [16:56:48]Malloc new data [16:56:48]Processing tag 1015 (03F7) [16:56:48]Malloc new data [16:56:48]SetTLVBufToDocument err=0 [16:56:48]Processing tag 1007 (03EF) [16:56:48]Load OK [16:56:48]SetTLVBufToDocument [16:56:48]Processing tag 1014 (03F6) [16:56:48]Malloc new data [16:56:48]Processing tag 1015 (03F7) [16:56:48]Malloc new data [16:56:48]SetTLVBufToDocument err=0 [16:56:48]Processing tag 1007 (03EF) [16:56:48]Load OK [16:56:48]SetTLVBufToDocument [16:56:48]Processing tag 1014 (03F6) [16:56:48]Malloc new data [16:56:48]Processing tag 1015 (03F7) [16:56:48]Malloc new data [16:56:48]SetTLVBufToDocument err=0 [16:56:48]Processing tag 1007 (03EF) [16:56:48]Load OK [16:56:48]SetTLVBufToDocument [16:56:48]Processing tag 1014 (03F6) [16:56:48]Malloc new data [16:56:48]Processing tag 1015 (03F7) [16:56:48]Malloc new data [16:56:48]SetTLVBufToDocument err=0 [16:56:48]Processing tag 1007 (03EF) [16:56:48]Load OK [16:56:48]SetTLVBufToDocument [16:56:48]Processing tag 1014 (03F6) [16:56:48]Malloc new data [16:56:48]Processing tag 1015 (03F7) [16:56:48]Malloc new data [16:56:48]SetTLVBufToDocument err=0 [16:56:48]Processing tag 1007 (03EF) [16:56:48]Load OK [16:56:48]SetTLVBufToDocument [16:56:48]Processing tag 1014 (03F6) [16:56:48]Malloc new data [16:56:48]Processing tag 1015 (03F7) [16:56:48]Malloc new data [16:56:48]SetTLVBufToDocument err=0 [16:56:48]Processing tag 1007 (03EF) [16:56:48]Load OK [16:56:48]SetTLVBufToDocument [16:56:48]Processing tag 1014 (03F6) [16:56:48]Malloc new data [16:56:48]Processing tag 1015 (03F7) [16:56:48]Malloc new data [16:56:48]SetTLVBufToDocument err=0 [16:56:48]SetTLVBufToDocument err=0 [16:56:48]SetTLVBufToDocument err=0 [16:56:48]Processing tag 1132 (046C) [16:56:48]Load OK [16:56:48]SetTLVBufToDocument [16:56:48]Processing tag 1135 (046F) [16:56:48]Malloc new data [16:56:48]Processing tag 1201 (04B1) [16:56:48]Malloc new data [16:56:48]Processing tag 1136 (0470) [16:56:48]Malloc new data [16:56:48]Processing tag 1138 (0472) [16:56:48]Malloc new data [16:56:48]Processing tag 1024 (0400) [16:56:48]Load OK [16:56:48]SetTLVBufToDocument [16:56:48]Processing tag 1006 (03EE) [16:56:48]Load OK [16:56:48]SetTLVBufToDocument [16:56:48]Processing tag 1010 (03F2) [16:56:48]Malloc new data [16:56:48]Processing tag 1011 (03F3) [16:56:48]Malloc new data [16:56:48]SetTLVBufToDocument err=0 [16:56:48]Processing tag 1006 (03EE) [16:56:48]Load OK [16:56:48]SetTLVBufToDocument [16:56:48]Processing tag 1010 (03F2) [16:56:48]Malloc new data [16:56:48]Processing tag 1011 (03F3) [16:56:48]Malloc new data [16:56:48]SetTLVBufToDocument err=0 [16:56:48]Processing tag 1007 (03EF) [16:56:48]Load OK [16:56:48]SetTLVBufToDocument [16:56:48]Processing tag 1014 (03F6) [16:56:48]Malloc new data [16:56:48]Processing tag 1015 (03F7) [16:56:48]Malloc new data [16:56:48]SetTLVBufToDocument err=0 [16:56:48]Processing tag 1007 (03EF) [16:56:48]Load OK [16:56:48]SetTLVBufToDocument [16:56:48]Processing tag 1014 (03F6) [16:56:48]Malloc new data [16:56:48]Processing tag 1015 (03F7) [16:56:48]Malloc new data [16:56:48]SetTLVBufToDocument err=0 [16:56:48]Processing tag 1007 (03EF) [16:56:48]Load OK [16:56:48]SetTLVBufToDocument [16:56:48]Processing tag 1014 (03F6) [16:56:48]Malloc new data [16:56:48]Processing tag 1015 (03F7) [16:56:48]Malloc new data [16:56:48]SetTLVBufToDocument err=0 [16:56:48]Processing tag 1007 (03EF) [16:56:48]Load OK [16:56:48]SetTLVBufToDocument [16:56:48]Processing tag 1014 (03F6) [16:56:48]Malloc new data [16:56:48]Processing tag 1015 (03F7) [16:56:48]Malloc new data [16:56:48]SetTLVBufToDocument err=0 [16:56:48]Processing tag 1007 (03EF) [16:56:48]Load OK [16:56:48]SetTLVBufToDocument [16:56:48]Processing tag 1014 (03F6) [16:56:48]Malloc new data [16:56:48]Processing tag 1015 (03F7) [16:56:48]Malloc new data [16:56:48]SetTLVBufToDocument err=0 [16:56:48]Processing tag 1007 (03EF) [16:56:48]Load OK [16:56:48]SetTLVBufToDocument [16:56:48]Processing tag 1014 (03F6) [16:56:48]Malloc new data [16:56:48]Processing tag 1015 (03F7) [16:56:48]Malloc new data [16:56:48]SetTLVBufToDocument err=0 [16:56:48]Processing tag 1007 (03EF) [16:56:48]Load OK [16:56:48]SetTLVBufToDocument [16:56:48]Processing tag 1014 (03F6) [16:56:48]Malloc new data [16:56:48]Processing tag 1015 (03F7) [16:56:48]Malloc new data [16:56:48]SetTLVBufToDocument err=0 [16:56:48]SetTLVBufToDocument err=0 [16:56:48]SetTLVBufToDocument err=0 [16:56:48]Processing tag 1133 (046D) [16:56:48]Malloc new data [16:56:48]SetTLVBufToDocument err=0 [16:56:48]SetTLVBufToDocument err=0 [16:56:48]Malloc new data [16:56:48]SAM_PROTO_GetFMData [16:56:48]wFMCommunicate request_size=4 [16:56:48]MH_SAM_APDU [16:56:48]CAPDU: 80 13 03 00 [16:56:48]Write to MH i2c: E2 08 00 31 00 80 13 03 00 00 00 00 00 B0 [16:56:48]Write i2c OK [16:56:48]MH_I2C_Read... [16:56:48]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [16:56:49]Read from MH i2c: E2 [16:56:49]MH_I2C_Read... [16:56:49]Read from MH i2c: E2 FD 00 [16:56:49]MH_I2C_Read... [16:56:49]Read from MH i2c: E2 FD 00 31 00 00 C5 04 85 04 C1 04 6E 04 04 00 78 92 01 00 69 04 A3 00 6F 04 04 00 25 8E 01 00 B1 04 05 00 4D E1 23 3C 04 70 04 05 00 70 4E B8 58 03 72 04 04 00 DD 92 6B E3 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 4D 3E 25 73 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 69 4E 98 09 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9C 00 6F 04 04 00 53 04 00 00 B1 04 04 00 38 F9 06 18 70 04 04 00 38 F9 06 18 72 04 00 00 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 94 3E 8D 02 EF 03 09 90 00 83 [16:56:49]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 78 92 01 00 69 04 A3 00 6F 04 04 00 25 8E 01 00 B1 04 05 00 4D E1 23 3C 04 70 04 05 00 70 4E B8 58 03 72 04 04 00 DD 92 6B E3 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 4D 3E 25 73 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 69 4E 98 09 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9C 00 6F 04 04 00 53 04 00 00 B1 04 04 00 38 F9 06 18 70 04 04 00 38 F9 06 18 72 04 00 00 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 94 3E 8D 02 EF 03 09 90 00 [16:56:49]wFMCommunicate OK [16:56:49]wFMCommunicate request_size=4 [16:56:49]MH_SAM_APDU [16:56:49]CAPDU: 80 17 00 00 [16:56:49]Write to MH i2c: E2 08 00 32 00 80 17 00 00 00 00 00 00 B2 [16:56:49]Write i2c OK [16:56:49]MH_I2C_Read... [16:56:49]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:56:49]Read from MH i2c: E2 [16:56:49]MH_I2C_Read... [16:56:49]Read from MH i2c: E2 FD 00 [16:56:49]MH_I2C_Read... [16:56:49]Read from MH i2c: E2 FD 00 32 00 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 92 6F 36 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 9F [16:56:49]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 92 6F 36 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [16:56:49]wFMCommunicate OK [16:56:49]wFMCommunicate request_size=4 [16:56:49]MH_SAM_APDU [16:56:49]CAPDU: 80 17 00 00 [16:56:49]Write to MH i2c: E2 08 00 33 00 80 17 00 00 00 00 00 00 B3 [16:56:49]Write i2c OK [16:56:49]MH_I2C_Read... [16:56:50]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:56:50]Read from MH i2c: E2 [16:56:50]MH_I2C_Read... [16:56:50]Read from MH i2c: E2 FD 00 [16:56:50]MH_I2C_Read... [16:56:50]Read from MH i2c: E2 FD 00 33 00 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 C5 [16:56:50]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [16:56:50]wFMCommunicate OK [16:56:50]wFMCommunicate request_size=4 [16:56:50]MH_SAM_APDU [16:56:50]CAPDU: 80 17 00 00 [16:56:50]Write to MH i2c: E2 08 00 34 00 80 17 00 00 00 00 00 00 B4 [16:56:50]Write i2c OK [16:56:50]MH_I2C_Read... [16:56:50]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:56:50]Read from MH i2c: E2 [16:56:50]MH_I2C_Read... [16:56:50]Read from MH i2c: E2 FD 00 [16:56:50]MH_I2C_Read... [16:56:50]Read from MH i2c: E2 FD 00 34 00 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 40 [16:56:50]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [16:56:50]wFMCommunicate OK [16:56:50]wFMCommunicate request_size=4 [16:56:50]MH_SAM_APDU [16:56:50]CAPDU: 80 17 00 00 [16:56:50]Write to MH i2c: E2 08 00 35 00 80 17 00 00 00 00 00 00 B5 [16:56:50]Write i2c OK [16:56:50]MH_I2C_Read... [16:56:51]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [16:56:51]Read from MH i2c: E2 [16:56:51]MH_I2C_Read... [16:56:51]Read from MH i2c: E2 E2 00 [16:56:51]MH_I2C_Read... [16:56:51]Read from MH i2c: E2 E2 00 35 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 93 [16:56:51]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [16:56:51]wFMCommunicate OK [16:56:51]SAM_PROTO_GetFMData done [16:56:51]FM_GetFMData:85 04 C1 04 6E 04 04 00 78 92 01 00 69 04 A3 00 6F 04 04 00 25 8E 01 00 B1 04 05 00 4D E1 23 3C 04 70 04 05 00 70 4E B8 58 03 72 04 04 00 DD 92 6B E3 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 4D 3E 25 73 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 69 4E 98 09 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9C 00 6F 04 04 00 53 04 00 00 B1 04 04 00 38 F9 06 18 70 04 04 00 38 F9 06 18 72 04 00 00 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 94 3E 8D 02 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 92 6F 36 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [16:56:52]oper:6F 04 04 00 25 8E 01 00 B1 04 05 00 4D E1 23 3C 04 70 04 05 00 70 4E B8 58 03 72 04 04 00 DD 92 6B E3 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 4D 3E 25 73 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 69 4E 98 09 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [16:56:52]total:4D E1 23 3C 04 [16:56:52]Malloc new data [16:56:52]oper:6F 04 04 00 53 04 00 00 B1 04 04 00 38 F9 06 18 70 04 04 00 38 F9 06 18 72 04 00 00 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 94 3E 8D 02 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 92 6F 36 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [16:56:52]total:38 F9 06 18 [16:56:52]Malloc new data [16:56:52]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 [16:56:52]total: [16:56:52]Malloc new data [16:56:52]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 [16:56:52]total: [16:56:52]Malloc new data [16:56:52]KKMPrepareXReportFMData err=0 [16:56:52]Х отчет ИНН: 02508201610067 Кассир: Байбугуева Г. 19.06.2024 16:56 Смена: 266 РНМ: 0000000000092785 ЗНМ: 0300000164 СНО: Общий режим Всего чеков: 168 ИТОГИ ПРИХОД Чеков: 167 Общий итог: 309368.63 Итого наличными: 227880.00 Итого безнал.: 81488.63 НДС 0% : 0.00 НДС 12% : 32859.33 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 2738.04 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 1 Общий итог: 739.00 Итого наличными: 739.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 78.48 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 6.54 ИТОГИ РАСХОД Чеков: 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 Нал. в кассе: 227141.00 НС Приход: 181888535.81 НС Возвр.Прихода: 4031102.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФМ: 0000000000875093 [16:56:52]StoreToDocumentArchive [16:56:52]MH_GetDate [16:56:52]Write to MH i2c: F0 00 00 36 00 25 [16:56:52]Write i2c OK [16:56:52]MH_I2C_Read... [16:56:52]Read from MH i2c: F0 [16:56:52]MH_I2C_Read... [16:56:52]Read from MH i2c: F0 09 00 [16:56:52]MH_I2C_Read... [16:56:52]Read from MH i2c: F0 09 00 36 00 00 D4 0D 73 66 BD 8F 7C 64 14 [16:56:52]shift 266 fd 1718816212 [16:56:52]Create dir for shift 0266 [16:56:52]save to /storage/0266/doc_1718816212 [16:56:52]save last doc name /storage/0266/doc_1718816212 to /storage/kkm_last_doc_name [16:56:52]save OK [16:56:52]Clear old archive folders... [16:56:52]NVStorageSaveData kkm_last_timestamp [16:56:52]File name is /storage/kkm_last_timestamp [16:56:52]Write 4 bytes [16:56:52]NVStorageSaveData done [16:56:52]ExternCall_PrintAddStr [16:56:52]wPrintStart [16:56:52]Write to MH i2c: 01 00 00 37 00 37 [16:56:52]Write i2c OK [16:56:52]MH_I2C_Read... [16:56:52]Read from MH i2c: 01 [16:56:52]MH_I2C_Read... [16:56:52]Read from MH i2c: 01 07 00 [16:56:52]MH_I2C_Read... [16:56:52]Read from MH i2c: 01 07 00 37 00 00 00 00 00 00 FF 0F 4C [16:56:52]RasterBufferAndPrint [16:56:52]line Х отчет [16:56:52]line ИНН: 02508201610067 [16:56:52]line Кассир: Байбугуева Г. [16:56:52]line 19.06.2024 16:56 [16:56:52]line Смена: 266 [16:56:52]line РНМ: 0000000000092785 [16:56:52]line ЗНМ: 0300000164 [16:56:52]line СНО: Общий режим [16:56:52]line Всего чеков: 168 [16:56:52]line ИТОГИ ПРИХОД [16:56:52]line Чеков: 167 [16:56:52]line Общий итог: 309368.63 [16:56:52]line Итого наличными: 227880.00 [16:56:52]line Итого безнал.: 81488.63 [16:56:52]line НДС 0% : 0.00 [16:56:52]line НДС 12% : 32859.33 [16:56:52]line НСП 0% : 0.00 [16:56:52]line НСП 1,50% : 0.00 [16:56:52]line НСП 0,50% : 0.00 [16:56:52]line НСП 5% : 0.00 [16:56:52]line НСП 3% : 0.00 [16:56:52]line НСП 2% : 0.00 [16:56:52]line НСП 1% : 2738.04 [16:56:52]line ИТОГИ ВОЗВРАТ ПРИХОДА [16:56:52]line Чеков: 1 [16:56:52]line Общий итог: 739.00 [16:56:52]line Итого наличными: 739.00 [16:56:52]line Итого безнал.: 0.00 [16:56:52]line НДС 0% : 0.00 [16:56:52]line НДС 12% : 78.48 [16:56:52]line НСП 0% : 0.00 [16:56:52]line НСП 1,50% : 0.00 [16:56:52]line НСП 0,50% : 0.00 [16:56:52]line НСП 5% : 0.00 [16:56:52]line НСП 3% : 0.00 [16:56:52]line НСП 2% : 0.00 [16:56:52]line НСП 1% : 6.54 [16:56:52]line ИТОГИ РАСХОД [16:56:52]line Чеков: 0 [16:56:52]line Общий итог: 0.00 [16:56:52]line Итого наличными: 0.00 [16:56:52]line Итого безнал.: 0.00 [16:56:52]line НДС 0% : 0.00 [16:56:52]line НДС 12% : 0.00 [16:56:52]line НСП 0% : 0.00 [16:56:52]line НСП 1,50% : 0.00 [16:56:52]line НСП 0,50% : 0.00 [16:56:52]line НСП 5% : 0.00 [16:56:52]line НСП 3% : 0.00 [16:56:52]line НСП 2% : 0.00 [16:56:52]line НСП 1% : 0.00 [16:56:52]line ИТОГИ ВОЗВРАТ РАСХОДА [16:56:52]line Чеков: 0 [16:56:52]line Общий итог: 0.00 [16:56:52]line Итого наличными: 0.00 [16:56:52]line Итого безнал.: 0.00 [16:56:52]line НДС 0% : 0.00 [16:56:52]line НДС 12% : 0.00 [16:56:52]line НСП 0% : 0.00 [16:56:52]line НСП 1,50% : 0.00 [16:56:52]line НСП 0,50% : 0.00 [16:56:52]line НСП 5% : 0.00 [16:56:52]line НСП 3% : 0.00 [16:56:52]line НСП 2% : 0.00 [16:56:52]line НСП 1% : 0.00 [16:56:52]line Сумма внесений: 0.00 [16:56:52]line Сумма выплат: 0.00 [16:56:52]line Нал. в кассе: 227141.00 [16:56:52]line НС Приход: 181888535.81 [16:56:52]line НС Возвр.Прихода: 4031102.00 [16:56:52]line НС Расход: 0.00 [16:56:52]line НС Возвр.Расхода: 0.00 [16:56:52]line ФМ: 0000000000875093 [16:56:52]written 0, free lines is 4095 [16:56:52]OFD Sender: No OFD packet to send [16:56:53]Write to MH i2c: 01 00 00 82 00 82 [16:56:53]Write i2c OK [16:56:53]MH_I2C_Read... [16:56:53]Read from MH i2c: 01 [16:56:53]MH_I2C_Read... [16:56:53]Read from MH i2c: 01 07 00 [16:56:53]MH_I2C_Read... [16:56:53]Read from MH i2c: 01 07 00 82 00 00 00 00 00 00 D1 0A 64 [16:56:53]RasterBufferAndPrint [16:56:53]line [16:56:53]line [16:56:53]line [16:56:53]line [16:56:53]line [16:56:53]written 0, free lines is 2806 [16:56:53]MH_Cut [16:56:53]Write to MH i2c: D1 01 00 89 00 01 5B [16:56:53]Write i2c OK [16:56:53]MH_I2C_Read... [16:56:53]Read from MH i2c: D1 [16:56:53]MH_I2C_Read... [16:56:53]Read from MH i2c: D1 01 00 [16:56:53]MH_I2C_Read... [16:56:53]Read from MH i2c: D1 01 00 89 00 00 5A [16:56:53]Write to MH i2c: 01 00 00 8A 00 8A [16:56:53]Write i2c OK [16:56:53]MH_I2C_Read... [16:56:54]*** Cut start [16:56:54]*** Partial cut [16:56:54]*** CUTSNS_PIN = 1 [16:56:54]*** CUTSNS_PIN = 0 [16:56:54]*** Brake cut motor [16:56:55]Read from MH i2c: 01 [16:56:55]MH_I2C_Read... [16:56:55]*** Stop cut motor [16:56:55]*** Cut end [16:56:55]Read from MH i2c: 01 07 00 [16:56:55]MH_I2C_Read... [16:56:55]Read from MH i2c: 01 07 00 8A 00 00 00 00 00 00 FF 0F 9F [16:56:55]process_action x_report done [16:56:55]requested_data is exist [16:56:55]produce_requested_data [16:56:55]requested_item fd.num is exist - process it [16:56:55]SAM_PROTO_GetFieldsCounters [16:56:55]wFMCommunicate request_size=4 [16:56:55]MH_SAM_APDU [16:56:55]CAPDU: 80 13 00 00 [16:56:55]Write to MH i2c: E2 08 00 8B 00 80 13 00 00 00 00 00 00 07 [16:56:55]Write i2c OK [16:56:55]MH_I2C_Read... [16:56:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:56:55]Read from MH i2c: E2 [16:56:55]MH_I2C_Read... [16:56:55]Read from MH i2c: E2 62 00 [16:56:55]MH_I2C_Read... [16:56:55]Read from MH i2c: E2 62 00 8B 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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 3A 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 A8 00 00 00 5E 04 04 00 A8 00 00 00 57 04 04 00 A9 00 00 00 19 04 04 00 00 00 00 00 90 00 58 [16:56: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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 3A 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 A8 00 00 00 5E 04 04 00 A8 00 00 00 57 04 04 00 A9 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:56:55]wFMCommunicate OK [16:56:55]SAM_PROTO_GetFieldsCounters done [16:56:55]requested_item shift.num is exist - process it [16:56:55]requested_item shift.opened is exist - process it [16:56:55]req_shift_opened [16:56:55]FM_GetShiftState [16:56:55]SAM_PROTO_GetShiftState [16:56:55]wFMCommunicate request_size=4 [16:56:55]MH_SAM_APDU [16:56:55]CAPDU: 80 13 01 00 [16:56:55]Write to MH i2c: E2 08 00 8C 00 80 13 01 00 00 00 00 00 09 [16:56:55]Write i2c OK [16:56:55]MH_I2C_Read... [16:56:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:56:55]Read from MH i2c: E2 [16:56:55]MH_I2C_Read... [16:56:55]Read from MH i2c: E2 0E 00 [16:56:55]MH_I2C_Read... [16:56:55]Read from MH i2c: E2 0E 00 8C 00 00 09 00 01 04 26 72 66 00 00 00 00 90 00 17 [16:56:55]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [16:56:55]wFMCommunicate OK [16:56:55]SAM_PROTO_GetShiftState done [16:56:55]FM_GetShiftState done [16:56:55]req_shift_opened done [16:56:55]requested_item shift.open_date is exist - process it [16:56:55]req_shift_open_date [16:56:55]req_shift_open_date done [16:56:55]produce_requested_data done [16:56:55]produce_requested_data return {"fd.num":103738,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [16:56:55]process_action_free x_report [16:56:55]json_value_free [16:56:55]json_value_free done [16:56:55]process_json_proto returns [16:56:55]Send response to host [16:56:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":103738,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [16:56:55]free response buf [16:56:55]execute_script done [16:56:55]execute_script returns [16:56:55]free content buf [16:56:55]Sock 9.Close socket [16:56:55]Sock 9.Thread stoped [16:56:55]accept exits with 8 [16:56:55]New connection [16:56:55]New thread 3066940772 created [16:56:55]Thread 3066797412 joined [16:56:55]Waiting for new connection... [16:56:55] Sock 8.Parse request [16:56:55]Sock 8.Check first char [16:56:55]Sock 8.First char is OK [16:56:55]request: POST /json_proto HTTP/1.0 [16:56:55]Method: POST [16:56:55]URL: /json_proto [16:56:55]Method is POST - this is cgi request [16:56:55]url: /json_proto [16:56:55]query_string will be loaded in cgi processing [16:56:55]execute_cgi json_proto POST (null) [16:56:55]execute_cgi path=json_proto method=POST [16:56:55]POST find Content-Length [16:56:55]Host: 172.17.38.133:8080 [16:56:55]Content-Length: 683 [16:56:55]Content-Type: application/json [16:56:55] [16:56:55]POST finish read [16:56:55]Found Content-Length = 683 [16:56:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673019", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 67.660, "sum" : 5000.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 10000.00, "total" : 5000.00, "payments": [ { "type": 0, "sum" : 5000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:56:55]execute_script... [16:56: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)673019", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 67.660, "sum" : 5000.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 10000.00, "total" : 5000.00, "payments": [ { "type": 0, "sum" : 5000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:56:55]POST & json_proto [16:56:55]process_json_proto [16:56:55]json parsed OK: [16:56:55]protocol is kg_v1.0 [16:56:55]action value=close_receipt [16:56:55]process_action close_receipt [16:56:55]cmd_close_receipt [16:56:55]MH_GetDate [16:56:55]Write to MH i2c: F0 00 00 8D 00 7C [16:56:55]Write i2c OK [16:56:55]MH_I2C_Read... [16:56:55]Read from MH i2c: F0 [16:56:55]MH_I2C_Read... [16:56:55]Read from MH i2c: F0 09 00 [16:56:55]MH_I2C_Read... [16:56:55]Read from MH i2c: F0 09 00 8D 00 00 D8 0D 73 66 BD 8F 7C 64 6F [16:56:55]GetLastDocTimeStamp 1718816205 [16:56:55]current date 1718816216 [16:56:55]FM_GetShiftState [16:56:55]SAM_PROTO_GetShiftState [16:56:55]wFMCommunicate request_size=4 [16:56:55]MH_SAM_APDU [16:56:55]CAPDU: 80 13 01 00 [16:56:55]Write to MH i2c: E2 08 00 8E 00 80 13 01 00 00 00 00 00 0B [16:56:55]Write i2c OK [16:56:55]MH_I2C_Read... [16:56:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:56:55]Read from MH i2c: E2 [16:56:55]MH_I2C_Read... [16:56:55]Read from MH i2c: E2 0E 00 [16:56:55]MH_I2C_Read... [16:56:55]Read from MH i2c: E2 0E 00 8E 00 00 09 00 01 04 26 72 66 00 00 00 00 90 00 19 [16:56:55]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [16:56:55]wFMCommunicate OK [16:56:55]SAM_PROTO_GetShiftState done [16:56:55]FM_GetShiftState done [16:56:55]opened in 1718756868 [16:56:55]opened+sec_in_day 1718843268 [16:56:55]quantity*price = 500007 [16:56:55]sum+1 = 500008 [16:56:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.07 ИТОГО: 5000.00 Внесено: 10000.00 СДАЧА: 5000.00 НСП 1% : 44.25 НДС 12% : 530.98 Наличными: 5000.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 169 19.06.2024 16:56 Смена: 353 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103739 ФПД: 220142618689672 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T165656&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103739&fm=220142618689672&tin=02508201610067®Number=0000000000092785&sum=500000 [16:56:57]StoreToDocumentArchive [16:56:57]shift 353 fd 103739 [16:56:57]save to /storage/0353/doc_00103739 [16:56:57]save last doc name /storage/0353/doc_00103739 to /storage/kkm_last_doc_name [16:56:57]save OK [16:56:57]Clear old archive folders... [16:56:57]Remove dir /storage/0266 [16:56:57]opendir ok [16:56:57]file . [16:56:57]file .. [16:56:57]file doc_1718816212 [16:56:57]remove file /storage/0266/doc_1718816212 [16:56:57]remove dir /storage/0266 [16:56:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:56:57]tlvbuf is 01757F10 [16:56:57]SAM_PROTO_ClearQueue [16:56:57]wFMCommunicate request_size=4 [16:56:57]MH_SAM_APDU [16:56:57]CAPDU: 80 09 00 00 [16:56:57]Write to MH i2c: E2 08 00 9B 00 80 09 00 00 00 00 00 00 0D [16:56:57]Write i2c OK [16:56:57]MH_I2C_Read... [16:56:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:56:57]Read from MH i2c: E2 [16:56:57]MH_I2C_Read... [16:56:57]Read from MH i2c: E2 03 00 [16:56:57]MH_I2C_Read... [16:56:57]Read from MH i2c: E2 03 00 9B 00 00 90 00 0F [16:56:57]RAPDU: 90 00 [16:56:57]wFMCommunicate OK [16:56:57]SAM_PROTO_ClearQueue done [16:56:57]KKMCreateOFDPacket [16:56:57]OFDProtocolAddRootSTLVToBuf [16:56:57]FM_MakeSignedData [16:56:57]FM_MakeSignedData [16:56:57]SAM_PROTO_SignData [16:56:57]wFMCommunicate request_size=4 [16:56:57]MH_SAM_APDU [16:56:57]CAPDU: 80 0D 01 02 [16:56:57]Write to MH i2c: E2 08 00 9C 00 80 0D 01 02 00 00 00 00 15 [16:56:57]Write i2c OK [16:56:57]MH_I2C_Read... [16:56:57]OFD Sender: No OFD packet to send [16:56:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:56:57]Read from MH i2c: E2 [16:56:57]MH_I2C_Read... [16:56:57]Read from MH i2c: E2 03 00 [16:56:57]MH_I2C_Read... [16:56:57]Read from MH i2c: E2 03 00 9C 00 00 90 00 10 [16:56:57]RAPDU: 90 00 [16:56:57]wFMCommunicate OK [16:56:57]wFMCommunicate request_size=255 [16:56:57]MH_SAM_APDU [16:56:57]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 4C 08 01 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 27 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6A CF 00 00 00 00 07 04 06 00 20 A1 07 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 00 00 00 F4 03 04 00 D8 0D 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 3B 95 01 00 35 04 06 00 C8 [16:56:58]Write to MH i2c: E2 02 01 9D 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 4C 08 01 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 27 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6A CF 00 00 00 00 07 04 06 00 20 A1 07 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 00 00 00 F4 03 04 00 D8 0D 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 3B 95 01 00 35 04 06 00 C8 00 00 CC [16:56:58]Write i2c OK [16:56:58]MH_I2C_Read... [16:56:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:56:58]Read from MH i2c: E2 [16:56:58]MH_I2C_Read... [16:56:58]Read from MH i2c: E2 03 00 [16:56:58]MH_I2C_Read... [16:56:58]Read from MH i2c: E2 03 00 9D 00 00 90 00 11 [16:56:58]RAPDU: 90 00 [16:56:58]wFMCommunicate OK [16:56:58]wFMCommunicate request_size=10 [16:56:58]MH_SAM_APDU [16:56:58]CAPDU: 80 0D 02 02 05 37 F2 96 40 88 [16:56:58]Write to MH i2c: E2 0D 00 9E 00 80 0D 02 02 05 00 37 F2 96 40 88 00 00 A9 [16:56:58]Write i2c OK [16:56:58]MH_I2C_Read... [16:56:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:56:58]Read from MH i2c: E2 [16:56:58]MH_I2C_Read... [16:56:58]Read from MH i2c: E2 03 00 [16:56:58]MH_I2C_Read... [16:56:58]Read from MH i2c: E2 03 00 9E 00 00 90 00 12 [16:56:58]RAPDU: 90 00 [16:56:58]wFMCommunicate OK [16:56:58]wFMCommunicate request_size=4 [16:56:58]MH_SAM_APDU [16:56:58]CAPDU: 80 0D 03 02 [16:56:58]Write to MH i2c: E2 08 00 9F 00 80 0D 03 02 00 00 00 00 1A [16:56:58]Write i2c OK [16:56:58]MH_I2C_Read... [16:56:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:56:58]Read from MH i2c: E2 [16:56:58]MH_I2C_Read... [16:56:58]Read from MH i2c: E2 0B 00 [16:56:58]MH_I2C_Read... [16:56:58]Read from MH i2c: E2 0B 00 9F 00 00 67 35 8C 53 E8 ED AF 55 90 00 6F [16:56:58]RAPDU: 67 35 8C 53 E8 ED AF 55 90 00 [16:56:58]wFMCommunicate OK [16:56:58]SAM_PROTO_SignData done [16:56:58]FM_MakeSignedData done [16:56:58]CreateOFDProtocolMessage [16:56:58]wFMCommunicate request_size=4 [16:56:58]MH_SAM_APDU [16:56:58]CAPDU: 80 11 00 00 [16:56:58]Write to MH i2c: E2 08 00 A0 00 80 11 00 00 00 00 00 00 1A [16:56:58]Write i2c OK [16:56:58]MH_I2C_Read... [16:56:58]Read from MH i2c: E2 [16:56:58]MH_I2C_Read... [16:56:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:56:58]Read from MH i2c: E2 17 00 [16:56:58]MH_I2C_Read... [16:56:58]Read from MH i2c: E2 17 00 A0 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 6D [16:56:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [16:56:58]wFMCommunicate OK [16:56:58]CreateOFDProtocolMessage done [16:56:58]OFDSenderStorePacket 103739 [16:56:58]StoreOFDPacket docnum=103739 [16:56:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 D1 99 07 01 9D EA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 4C 08 01 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 27 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6A CF 00 00 00 00 07 04 06 00 20 A1 07 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 00 00 00 F4 03 04 00 D8 0D 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 3B 95 01 00 35 04 06 00 C8 37 F2 96 40 88 67 35 8C 53 E8 ED AF 55 [16:56:58]CheckFolder [16:56:58]dirname=/storage/ofd_packets [16:56:58]CheckFolder done [16:56:58]ProducePacketName [16:56:58]name=ofd_packets/00103739 [16:56:58]NVStorageSaveData ofd_packets/00103739 [16:56:58]File name is /storage/ofd_packets/00103739 [16:56:58]Write 301 bytes [16:56:58]NVStorageSaveData done [16:56:58]OFDSenderStorePacket done [16:56:58]KKMCreateOFDPacket done [16:56:58]NVStorageSaveData kkm_last_timestamp [16:56:58]File name is /storage/kkm_last_timestamp [16:56:58]Write 4 bytes [16:56:58]NVStorageSaveData done [16:56:58]ExternCall_PrintAddStr [16:56:58]wPrintStart [16:56:58]Write to MH i2c: 01 00 00 A1 00 A1 [16:56:58]Write i2c OK [16:56:58]MH_I2C_Read... [16:56:58]Read from MH i2c: 01 [16:56:58]MH_I2C_Read... [16:56:58]Read from MH i2c: 01 07 00 [16:56:58]MH_I2C_Read... [16:56:58]Read from MH i2c: 01 07 00 A1 00 00 00 00 00 00 FF 0F B6 [16:56:58]RasterBufferAndPrint [16:56:58]line Счет N : (1)673019 [16:56:58]line ИНН: 02508201610067 [16:56:58]line Контрольно-Кассовый Чек [16:56:58]line ПРОДАЖА [16:56:58]line ТРК (МРК, ГНК) : 41 [16:56:58]line Товар: 2710124500 [16:56:58]line Аи-95-К-5 [16:56:58]line 67.660 * 73.90 [16:56:58]line = 5000.07 [16:56:58]line НДС 12% НСП 1% [16:56:58]line > о реализуемом товаре [16:56:58]line ОКРУГЛЕНИЕ: -0.07 [16:56:58]line ИТОГО: 5000.00 [16:56:58]line Внесено: 10000.00 [16:56:58]line СДАЧА: 5000.00 [16:56:58]line НСП 1% : 44.25 [16:56:58]line НДС 12% : 530.98 [16:56:58]line Наличными: 5000.00 [16:56:58]line Безнал.: 0.00 [16:56:58]line Место: АЗС № 120 "Партнер Нефть" [16:56:58]OFD Sender: Processing packet 103739 [packets to send 17, broken 16] [16:56:58]ProducePacketName [16:56:58]name=ofd_packets/00103739 [16:56:58]OFD Sender: To server: pG, [16:56:58]CommunicateWithHost lk.salyk.kg:30040 [16:56:58]ConnectInit lk.salyk.kg [16:56:58]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [16:56:58]line СНО: Общий режим [16:56:58]line Чек 169 19.06.2024 16:56 [16:56:58]line Смена: 353 ФФД: 1.0 [16:56:58]line ЗНМ: 0300000164 [16:56:58]line РНМ: 0000000000092785 [16:56:58]line Версия ККМ: 001 [16:56:58]line ФМ: 0000000000875093 [16:56:58]line ФД: 103739 [16:56:58]line ФПД: 220142618689672 [16:56:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T165656&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103739&fm=220142618689672&tin=02508201610067®Number=0000000000092785&sum=500000 [16:56:58]written 0, free lines is 4095 [16:56:58]Connected sock=10 [16:56: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 39 33 0F 01 00 00 D1 99 07 01 9D EA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 4C 08 01 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 27 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6A CF 00 00 00 00 07 04 06 00 20 A1 07 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 00 00 00 F4 03 04 00 D8 0D 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 3B 95 01 00 35 04 06 00 C8 37 F2 96 40 88 67 35 8C 53 E8 ED AF 55 [16:56:59]Write to MH i2c: 01 00 00 CC 00 CC [16:56:59]Write i2c OK [16:56:59]MH_I2C_Read... [16:56:59]Read from MH i2c: 01 [16:56:59]MH_I2C_Read... [16:56:59]Read from MH i2c: 01 07 00 [16:56:59]MH_I2C_Read... [16:56:59]Read from MH i2c: 01 07 00 CC 00 00 00 00 00 00 FA 0C D9 [16:56:59]RasterBufferAndPrint [16:56:59]line [16:56:59]line [16:56:59]line [16:56:59]line [16:56:59]line [16:56:59]written 0, free lines is 3362 [16:56:59]MH_Cut [16:56:59]Write to MH i2c: D1 01 00 D3 00 01 A5 [16:56:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 D1 9A 47 00 E7 CD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 3B 95 01 00 F4 03 04 00 61 B4 72 66 B6 04 01 00 00 44 61 DF E1 BB 34 7F FC [16:56:59]CommunicateWithHost err = 0 [16:56:59]CheckOFDResponse [16:56:59]1017 (14) - 77093643461234 [16:56:59]1041 (16) - 0000000000875093 [16:56:59]1040 (4) - 103739 [16:56:59]1012 (4) - 19.06.2024 10:35 [16:56:59]1206 (1) - 0 [16:56:59]OFD Sender: Remove packet 103739 [16:56:59]ProducePacketName [16:56:59]name=ofd_packets/00103739 [16:56:59]NVStorageDeleteData [16:56:59]Write i2c OK [16:56:59]MH_I2C_Read... [16:56:59]Read from MH i2c: D1 [16:56:59]MH_I2C_Read... [16:56:59]Read from MH i2c: D1 01 00 [16:56:59]MH_I2C_Read... [16:56:59]Read from MH i2c: D1 01 00 D3 00 00 A4 [16:56:59]Write to MH i2c: 01 00 00 D4 00 D4 [16:56:59]Write i2c OK [16:56:59]MH_I2C_Read... [16:57:00]*** Cut start [16:57:00]*** Partial cut [16:57:00]*** CUTSNS_PIN = 1 [16:57:00]OFD Sender: No OFD packet to send [16:57:00]*** CUTSNS_PIN = 0 [16:57:00]*** Brake cut motor [16:57:00]Read from MH i2c: 01 [16:57:00]MH_I2C_Read... [16:57:00]*** Stop cut motor [16:57:00]*** Cut end [16:57:00]Read from MH i2c: 01 07 00 [16:57:00]MH_I2C_Read... [16:57:00]Read from MH i2c: 01 07 00 D4 00 00 00 00 00 00 FF 0F E9 [16:57:00]process_action close_receipt done [16:57:00]requested_data is exist [16:57:00]produce_requested_data [16:57:00]requested_item fm.sn is exist - process it [16:57:00]wFMCommunicate request_size=4 [16:57:00]MH_SAM_APDU [16:57:00]CAPDU: 80 11 00 00 [16:57:00]Write to MH i2c: E2 08 00 D5 00 80 11 00 00 00 00 00 00 4F [16:57:00]Write i2c OK [16:57:00]MH_I2C_Read... [16:57:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:57:00]Read from MH i2c: E2 [16:57:00]MH_I2C_Read... [16:57:00]Read from MH i2c: E2 17 00 [16:57:00]MH_I2C_Read... [16:57:00]Read from MH i2c: E2 17 00 D5 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 A2 [16:57:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [16:57:00]wFMCommunicate OK [16:57:00]requested_item fd.num is exist - process it [16:57:00]SAM_PROTO_GetFieldsCounters [16:57:00]wFMCommunicate request_size=4 [16:57:00]MH_SAM_APDU [16:57:00]CAPDU: 80 13 00 00 [16:57:00]Write to MH i2c: E2 08 00 D6 00 80 13 00 00 00 00 00 00 52 [16:57:00]Write i2c OK [16:57:00]MH_I2C_Read... [16:57:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:57:00]Read from MH i2c: E2 [16:57:00]MH_I2C_Read... [16:57:00]Read from MH i2c: E2 62 00 [16:57:00]MH_I2C_Read... [16:57:00]Read from MH i2c: E2 62 00 D6 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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 3B 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 A9 00 00 00 5E 04 04 00 A9 00 00 00 57 04 04 00 AA 00 00 00 19 04 04 00 00 00 00 00 90 00 A7 [16:57: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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 3B 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 A9 00 00 00 5E 04 04 00 A9 00 00 00 57 04 04 00 AA 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:57:01]wFMCommunicate OK [16:57:01]SAM_PROTO_GetFieldsCounters done [16:57:01]requested_item shift.num is exist - process it [16:57:01]requested_item shift.opened is exist - process it [16:57:01]req_shift_opened [16:57:01]FM_GetShiftState [16:57:01]SAM_PROTO_GetShiftState [16:57:01]wFMCommunicate request_size=4 [16:57:01]MH_SAM_APDU [16:57:01]CAPDU: 80 13 01 00 [16:57:01]Write to MH i2c: E2 08 00 D7 00 80 13 01 00 00 00 00 00 54 [16:57:01]Write i2c OK [16:57:01]MH_I2C_Read... [16:57:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:57:01]Read from MH i2c: E2 [16:57:01]MH_I2C_Read... [16:57:01]Read from MH i2c: E2 0E 00 [16:57:01]MH_I2C_Read... [16:57:01]Read from MH i2c: E2 0E 00 D7 00 00 09 00 01 04 26 72 66 00 00 00 00 90 00 62 [16:57:01]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [16:57:01]wFMCommunicate OK [16:57:01]SAM_PROTO_GetShiftState done [16:57:01]FM_GetShiftState done [16:57:01]req_shift_opened done [16:57:01]requested_item shift.open_date is exist - process it [16:57:01]req_shift_open_date [16:57:01]req_shift_open_date done [16:57:01]produce_requested_data done [16:57:01]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103739,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [16:57:01]process_action_free close_receipt [16:57:01]json_value_free [16:57:01]json_value_free done [16:57:01]process_json_proto returns [16:57:01]Send response to host [16:57:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103739,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [16:57:01]free response buf [16:57:01]execute_script done [16:57:01]execute_script returns [16:57:01]free content buf [16:57:01]Sock 8.Close socket [16:57:01]Sock 8.Thread stoped [16:57:05]OFD Sender: No OFD packet to send [16:57:10]OFD Sender: No OFD packet to send [16:57:15]OFD Sender: No OFD packet to send [16:57:20]OFD Sender: No OFD packet to send [16:57:25]OFD Sender: No OFD packet to send [16:57:30]OFD Sender: No OFD packet to send [16:57:35]OFD Sender: No OFD packet to send [16:57:40]OFD Sender: No OFD packet to send [16:57:45]OFD Sender: No OFD packet to send [16:57:50]OFD Sender: No OFD packet to send [16:57:55]OFD Sender: No OFD packet to send [16:58:00]OFD Sender: No OFD packet to send [16:58:05]OFD Sender: No OFD packet to send [16:58:10]OFD Sender: No OFD packet to send [16:58:15]OFD Sender: No OFD packet to send [16:58:20]OFD Sender: No OFD packet to send [16:58:25]OFD Sender: No OFD packet to send [16:58:30]OFD Sender: No OFD packet to send [16:58:35]OFD Sender: No OFD packet to send [16:58:40]OFD Sender: No OFD packet to send [16:58:45]OFD Sender: No OFD packet to send [16:58:50]OFD Sender: No OFD packet to send [16:58:55]OFD Sender: No OFD packet to send [16:59:00]OFD Sender: No OFD packet to send [16:59:00]accept exits with 9 [16:59:00]New connection [16:59:00]New thread 3066797412 created [16:59:00]Thread 3066940772 joined [16:59:00]Waiting for new connection... [16:59:00] Sock 9.Parse request [16:59:00]Sock 9.Check first char [16:59:00]Sock 9.First char is OK [16:59:00]request: POST /json_proto HTTP/1.0 [16:59:00]Method: POST [16:59:00]URL: /json_proto [16:59:00]Method is POST - this is cgi request [16:59:00]url: /json_proto [16:59:00]query_string will be loaded in cgi processing [16:59:00]execute_cgi json_proto POST (null) [16:59:00]execute_cgi path=json_proto method=POST [16:59:00]POST find Content-Length [16:59:00]Host: 172.17.38.133:8080 [16:59:00]Content-Length: 1205 [16:59:00]Content-Type: application/json [16:59:00] [16:59:00]POST finish read [16:59:00]Found Content-Length = 1205 [16:59:00]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 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. \u000A\u0421\u0447\u0435\u0442 N : (1)673020\u000A19.06.2024 16:36\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 32\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 66.40\u000A\u0418\u0422\u041E\u0413: 1328.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\u000A3545288:3545286\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:59:00]execute_script... [16:59:00]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 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. \u000A\u0421\u0447\u0435\u0442 N : (1)673020\u000A19.06.2024 16:36\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 32\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 66.40\u000A\u0418\u0422\u041E\u0413: 1328.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\u000A3545288:3545286\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:59:00]POST & json_proto [16:59:00]process_json_proto [16:59:00]json parsed OK: [16:59:00]protocol is kg_v1.0 [16:59:00]action value=print_text [16:59:00]process_action print_text [16:59:00]cmd_print_text [16:59:00]ExternCall_PrintAddStr [16:59:00]wPrintStart [16:59:00]Write to MH i2c: 01 00 00 D8 00 D8 [16:59:00]Write i2c OK [16:59:00]MH_I2C_Read... [16:59:00]Read from MH i2c: 01 [16:59:00]MH_I2C_Read... [16:59:00]Read from MH i2c: 01 07 00 [16:59:00]MH_I2C_Read... [16:59:00]Read from MH i2c: 01 07 00 D8 00 00 00 00 00 00 FF 0F ED [16:59:00]RasterBufferAndPrint [16:59:00]line *****ТОВАРНЫЙ ЧЕК***** [16:59:00]line АЗС 120 [16:59:00]line Партнер нефть [16:59:00]line 02508201610067 [16:59:00]line Кассир : Байбугуева Г. [16:59:00]line Счет N : (1)673020 [16:59:00]line 19.06.2024 16:36 [16:59:00]line ПРОДАЖА [16:59:00]line ТРК (МРК, ГНК): 32 [16:59:00]line Вид ГСМ : 2710124130 [16:59:00]line Аи-92-К-5 [16:59:00]line 20.000 x 66.40 [16:59:00]line ИТОГ: 1328.00 [16:59:00]line Тип оплаты: Талоны: Партнер нефть [16:59:00]line 3545288:3545286 [16:59:00]line ______________________ [16:59:00]line (подпись) [16:59:00]written 0, free lines is 4095 [16:59:00]Write to MH i2c: 01 00 00 EC 00 EC [16:59:00]Write i2c OK [16:59:00]MH_I2C_Read... [16:59:00]Read from MH i2c: 01 [16:59:00]MH_I2C_Read... [16:59:00]Read from MH i2c: 01 07 00 [16:59:00]MH_I2C_Read... [16:59:00]Read from MH i2c: 01 07 00 EC 00 00 00 00 00 00 17 0E 18 [16:59:00]RasterBufferAndPrint [16:59:00]line [16:59:00]line [16:59:00]line [16:59:00]line [16:59:00]line [16:59:00]written 0, free lines is 3609 [16:59:00]MH_Cut [16:59:00]Write to MH i2c: D1 01 00 F3 00 01 C5 [16:59:00]Write i2c OK [16:59:00]MH_I2C_Read... [16:59:00]Read from MH i2c: D1 [16:59:00]MH_I2C_Read... [16:59:00]Read from MH i2c: D1 01 00 [16:59:00]MH_I2C_Read... [16:59:00]Read from MH i2c: D1 01 00 F3 00 00 C4 [16:59:00]Write to MH i2c: 01 00 00 F4 00 F4 [16:59:00]Write i2c OK [16:59:00]MH_I2C_Read... [16:59:01]*** Cut start [16:59:01]*** Partial cut [16:59:01]*** CUTSNS_PIN = 1 [16:59:01]*** CUTSNS_PIN = 0 [16:59:01]*** Brake cut motor [16:59:01]Read from MH i2c: 01 [16:59:01]MH_I2C_Read... [16:59:01]*** Stop cut motor [16:59:01]*** Cut end [16:59:01]Read from MH i2c: 01 07 00 [16:59:01]MH_I2C_Read... [16:59:01]Read from MH i2c: 01 07 00 F4 00 00 00 00 00 00 FF 0F 09 [16:59:01]process_action print_text done [16:59:01]requested_data is exist [16:59:01]produce_requested_data [16:59:01]requested_item fm.sn is exist - process it [16:59:01]wFMCommunicate request_size=4 [16:59:01]MH_SAM_APDU [16:59:01]CAPDU: 80 11 00 00 [16:59:01]Write to MH i2c: E2 08 00 F5 00 80 11 00 00 00 00 00 00 6F [16:59:01]Write i2c OK [16:59:01]MH_I2C_Read... [16:59:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:59:01]Read from MH i2c: E2 [16:59:01]MH_I2C_Read... [16:59:01]Read from MH i2c: E2 17 00 [16:59:01]MH_I2C_Read... [16:59:01]Read from MH i2c: E2 17 00 F5 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 C2 [16:59:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [16:59:01]wFMCommunicate OK [16:59:01]requested_item fd.num is exist - process it [16:59:01]SAM_PROTO_GetFieldsCounters [16:59:01]wFMCommunicate request_size=4 [16:59:01]MH_SAM_APDU [16:59:01]CAPDU: 80 13 00 00 [16:59:01]Write to MH i2c: E2 08 00 F6 00 80 13 00 00 00 00 00 00 72 [16:59:01]Write i2c OK [16:59:01]MH_I2C_Read... [16:59:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:59:01]Read from MH i2c: E2 [16:59:01]MH_I2C_Read... [16:59:01]Read from MH i2c: E2 62 00 [16:59:01]MH_I2C_Read... [16:59:01]Read from MH i2c: E2 62 00 F6 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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 3B 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 A9 00 00 00 5E 04 04 00 A9 00 00 00 57 04 04 00 AA 00 00 00 19 04 04 00 00 00 00 00 90 00 C7 [16:59: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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 3B 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 A9 00 00 00 5E 04 04 00 A9 00 00 00 57 04 04 00 AA 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:59:01]wFMCommunicate OK [16:59:01]SAM_PROTO_GetFieldsCounters done [16:59:01]requested_item shift.num is exist - process it [16:59:01]requested_item shift.opened is exist - process it [16:59:01]req_shift_opened [16:59:01]FM_GetShiftState [16:59:01]SAM_PROTO_GetShiftState [16:59:01]wFMCommunicate request_size=4 [16:59:01]MH_SAM_APDU [16:59:01]CAPDU: 80 13 01 00 [16:59:01]Write to MH i2c: E2 08 00 F7 00 80 13 01 00 00 00 00 00 74 [16:59:01]Write i2c OK [16:59:01]MH_I2C_Read... [16:59:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:59:02]Read from MH i2c: E2 [16:59:02]MH_I2C_Read... [16:59:02]Read from MH i2c: E2 0E 00 [16:59:02]MH_I2C_Read... [16:59:02]Read from MH i2c: E2 0E 00 F7 00 00 09 00 01 04 26 72 66 00 00 00 00 90 00 82 [16:59:02]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [16:59:02]wFMCommunicate OK [16:59:02]SAM_PROTO_GetShiftState done [16:59:02]FM_GetShiftState done [16:59:02]req_shift_opened done [16:59:02]requested_item shift.open_date is exist - process it [16:59:02]req_shift_open_date [16:59:02]req_shift_open_date done [16:59:02]produce_requested_data done [16:59:02]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103739,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [16:59:02]process_action_free print_text [16:59:02]json_value_free [16:59:02]json_value_free done [16:59:02]process_json_proto returns [16:59:02]Send response to host [16:59:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103739,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [16:59:02]free response buf [16:59:02]execute_script done [16:59:02]execute_script returns [16:59:02]free content buf [16:59:02]Sock 9.Close socket [16:59:02]Sock 9.Thread stoped [16:59:05]OFD Sender: No OFD packet to send [16:59:10]OFD Sender: No OFD packet to send [16:59:15]OFD Sender: No OFD packet to send [16:59:20]OFD Sender: No OFD packet to send [16:59:25]OFD Sender: No OFD packet to send [16:59:30]OFD Sender: No OFD packet to send [16:59:35]OFD Sender: No OFD packet to send [16:59:40]OFD Sender: No OFD packet to send [16:59:45]OFD Sender: No OFD packet to send [16:59:50]OFD Sender: No OFD packet to send [16:59:55]OFD Sender: No OFD packet to send [17:00:00]OFD Sender: No OFD packet to send [17:00:05]OFD Sender: No OFD packet to send [17:00:10]OFD Sender: No OFD packet to send [17:00:15]OFD Sender: No OFD packet to send [17:00:20]OFD Sender: No OFD packet to send [17:00:25]OFD Sender: No OFD packet to send [17:00:30]OFD Sender: No OFD packet to send [17:00:35]OFD Sender: No OFD packet to send [17:00:40]OFD Sender: No OFD packet to send [17:00:45]OFD Sender: No OFD packet to send [17:00:50]OFD Sender: No OFD packet to send [17:00:55]OFD Sender: No OFD packet to send [17:01:00]OFD Sender: No OFD packet to send [17:01:05]OFD Sender: No OFD packet to send [17:01:07]accept exits with 8 [17:01:07]New connection [17:01:07]New thread 3066940772 created [17:01:07]Thread 3066797412 joined [17:01:07]Waiting for new connection... [17:01:07] Sock 8.Parse request [17:01:07]Sock 8.Check first char [17:01:07]Sock 8.First char is OK [17:01:07]request: POST /json_proto HTTP/1.0 [17:01:07]Method: POST [17:01:07]URL: /json_proto [17:01:07]Method is POST - this is cgi request [17:01:07]url: /json_proto [17:01:07]query_string will be loaded in cgi processing [17:01:07]execute_cgi json_proto POST (null) [17:01:07]execute_cgi path=json_proto method=POST [17:01:07]POST find Content-Length [17:01:07]Host: 172.17.38.133:8080 [17:01:07]Content-Length: 682 [17:01:07]Content-Type: application/json [17:01:07] [17:01:07]POST finish read [17:01:07]Found Content-Length = 682 [17:01:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673021", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 22.600, "sum" : 1500.64, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:01:07]execute_script... [17:01: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)673021", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 22.600, "sum" : 1500.64, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:01:07]POST & json_proto [17:01:07]process_json_proto [17:01:07]json parsed OK: [17:01:07]protocol is kg_v1.0 [17:01:07]action value=close_receipt [17:01:07]process_action close_receipt [17:01:07]cmd_close_receipt [17:01:07]MH_GetDate [17:01:07]Write to MH i2c: F0 00 00 F8 00 E7 [17:01:07]Write i2c OK [17:01:07]MH_I2C_Read... [17:01:07]Read from MH i2c: F0 [17:01:07]MH_I2C_Read... [17:01:07]Read from MH i2c: F0 09 00 [17:01:07]MH_I2C_Read... [17:01:07]Read from MH i2c: F0 09 00 F8 00 00 D4 0E 73 66 BD 8F 7C 64 D7 [17:01:07]GetLastDocTimeStamp 1718816216 [17:01:07]current date 1718816468 [17:01:07]FM_GetShiftState [17:01:07]SAM_PROTO_GetShiftState [17:01:07]wFMCommunicate request_size=4 [17:01:07]MH_SAM_APDU [17:01:07]CAPDU: 80 13 01 00 [17:01:07]Write to MH i2c: E2 08 00 F9 00 80 13 01 00 00 00 00 00 76 [17:01:07]Write i2c OK [17:01:07]MH_I2C_Read... [17:01:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:01:07]Read from MH i2c: E2 [17:01:07]MH_I2C_Read... [17:01:07]Read from MH i2c: E2 0E 00 [17:01:07]MH_I2C_Read... [17:01:07]Read from MH i2c: E2 0E 00 F9 00 00 09 00 01 04 26 72 66 00 00 00 00 90 00 84 [17:01:07]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [17:01:07]wFMCommunicate OK [17:01:07]SAM_PROTO_GetShiftState done [17:01:07]FM_GetShiftState done [17:01:07]opened in 1718756868 [17:01:07]opened+sec_in_day 1718843268 [17:01:07]quantity*price = 150064 [17:01:07]sum+1 = 150065 [17:01:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.64 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.36 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 170 19.06.2024 17:01 Смена: 353 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103740 ФПД: 206597844640878 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T170108&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103740&fm=206597844640878&tin=02508201610067®Number=0000000000092785&sum=150000 [17:01:09]StoreToDocumentArchive [17:01:09]shift 353 fd 103740 [17:01:09]save to /storage/0353/doc_00103740 [17:01:09]save last doc name /storage/0353/doc_00103740 to /storage/kkm_last_doc_name [17:01:09]save OK [17:01:09]Clear old archive folders... [17:01:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:01:09]tlvbuf is 01761270 [17:01:09]SAM_PROTO_ClearQueue [17:01:09]wFMCommunicate request_size=4 [17:01:09]MH_SAM_APDU [17:01:09]CAPDU: 80 09 00 00 [17:01:09]Write to MH i2c: E2 08 00 06 01 80 09 00 00 00 00 00 00 79 [17:01:09]Write i2c OK [17:01:09]MH_I2C_Read... [17:01:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:01:09]Read from MH i2c: E2 [17:01:09]MH_I2C_Read... [17:01:09]Read from MH i2c: E2 03 00 [17:01:09]MH_I2C_Read... [17:01:09]Read from MH i2c: E2 03 00 06 01 00 90 00 7B [17:01:09]RAPDU: 90 00 [17:01:09]wFMCommunicate OK [17:01:09]SAM_PROTO_ClearQueue done [17:01:09]KKMCreateOFDPacket [17:01:09]OFDProtocolAddRootSTLVToBuf [17:01:09]FM_MakeSignedData [17:01:09]FM_MakeSignedData [17:01:09]SAM_PROTO_SignData [17:01:09]wFMCommunicate request_size=4 [17:01:09]MH_SAM_APDU [17:01:09]CAPDU: 80 0D 01 02 [17:01:09]Write to MH i2c: E2 08 00 07 01 80 0D 01 02 00 00 00 00 81 [17:01:09]Write i2c OK [17:01:09]MH_I2C_Read... [17:01:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:01:09]Read from MH i2c: E2 [17:01:09]MH_I2C_Read... [17:01:09]Read from MH i2c: E2 03 00 [17:01:09]MH_I2C_Read... [17:01:09]Read from MH i2c: E2 03 00 07 01 00 90 00 7C [17:01:09]RAPDU: 90 00 [17:01:09]wFMCommunicate OK [17:01:09]wFMCommunicate request_size=255 [17:01:09]MH_SAM_APDU [17:01:09]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 48 58 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 30 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 40 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 00 00 00 F4 03 04 00 D4 0E 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 3C 95 01 00 35 04 06 00 BB [17:01:09]Write to MH i2c: E2 02 01 08 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 48 58 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 30 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 40 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 00 00 00 F4 03 04 00 D4 0E 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 3C 95 01 00 35 04 06 00 BB 00 00 33 [17:01:09]Write i2c OK [17:01:09]MH_I2C_Read... [17:01:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:01:09]Read from MH i2c: E2 [17:01:09]MH_I2C_Read... [17:01:09]Read from MH i2c: E2 03 00 [17:01:09]MH_I2C_Read... [17:01:09]Read from MH i2c: E2 03 00 08 01 00 90 00 7D [17:01:09]RAPDU: 90 00 [17:01:09]wFMCommunicate OK [17:01:09]wFMCommunicate request_size=10 [17:01:09]MH_SAM_APDU [17:01:09]CAPDU: 80 0D 02 02 05 E6 4F 24 24 6E [17:01:09]Write to MH i2c: E2 0D 00 09 01 80 0D 02 02 05 00 E6 4F 24 24 6E 00 00 79 [17:01:09]Write i2c OK [17:01:09]MH_I2C_Read... [17:01:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:01:09]Read from MH i2c: E2 [17:01:09]MH_I2C_Read... [17:01:09]Read from MH i2c: E2 03 00 [17:01:09]MH_I2C_Read... [17:01:09]Read from MH i2c: E2 03 00 09 01 00 90 00 7E [17:01:09]RAPDU: 90 00 [17:01:09]wFMCommunicate OK [17:01:09]wFMCommunicate request_size=4 [17:01:09]MH_SAM_APDU [17:01:09]CAPDU: 80 0D 03 02 [17:01:09]Write to MH i2c: E2 08 00 0A 01 80 0D 03 02 00 00 00 00 86 [17:01:09]Write i2c OK [17:01:09]MH_I2C_Read... [17:01:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:01:09]Read from MH i2c: E2 [17:01:09]MH_I2C_Read... [17:01:09]Read from MH i2c: E2 0B 00 [17:01:09]MH_I2C_Read... [17:01:09]Read from MH i2c: E2 0B 00 0A 01 00 BF 48 11 45 88 E4 E2 CC 90 00 FE [17:01:09]RAPDU: BF 48 11 45 88 E4 E2 CC 90 00 [17:01:09]wFMCommunicate OK [17:01:09]SAM_PROTO_SignData done [17:01:09]FM_MakeSignedData done [17:01:09]CreateOFDProtocolMessage [17:01:09]wFMCommunicate request_size=4 [17:01:09]MH_SAM_APDU [17:01:09]CAPDU: 80 11 00 00 [17:01:09]Write to MH i2c: E2 08 00 0B 01 80 11 00 00 00 00 00 00 86 [17:01:09]Write i2c OK [17:01:09]MH_I2C_Read... [17:01:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:01:09]Read from MH i2c: E2 [17:01:09]MH_I2C_Read... [17:01:09]Read from MH i2c: E2 17 00 [17:01:09]MH_I2C_Read... [17:01:09]Read from MH i2c: E2 17 00 0B 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 D9 [17:01:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [17:01:09]wFMCommunicate OK [17:01:09]CreateOFDProtocolMessage done [17:01:09]OFDSenderStorePacket 103740 [17:01:09]StoreOFDPacket docnum=103740 [17:01:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 DB F6 07 01 19 44 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 48 58 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 30 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 40 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 00 00 00 F4 03 04 00 D4 0E 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 3C 95 01 00 35 04 06 00 BB E6 4F 24 24 6E BF 48 11 45 88 E4 E2 CC [17:01:09]CheckFolder [17:01:09]dirname=/storage/ofd_packets [17:01:09]CheckFolder done [17:01:09]ProducePacketName [17:01:09]name=ofd_packets/00103740 [17:01:09]NVStorageSaveData ofd_packets/00103740 [17:01:09]File name is /storage/ofd_packets/00103740 [17:01:09]Write 301 bytes [17:01:09]NVStorageSaveData done [17:01:09]OFDSenderStorePacket done [17:01:09]KKMCreateOFDPacket done [17:01:09]NVStorageSaveData kkm_last_timestamp [17:01:09]File name is /storage/kkm_last_timestamp [17:01:09]Write 4 bytes [17:01:09]NVStorageSaveData done [17:01:09]ExternCall_PrintAddStr [17:01:09]wPrintStart [17:01:09]Write to MH i2c: 01 00 00 0C 01 0D [17:01:09]Write i2c OK [17:01:09]MH_I2C_Read... [17:01:09]Read from MH i2c: 01 [17:01:09]MH_I2C_Read... [17:01:09]Read from MH i2c: 01 07 00 [17:01:09]MH_I2C_Read... [17:01:09]Read from MH i2c: 01 07 00 0C 01 00 00 00 00 00 FF 0F 22 [17:01:09]RasterBufferAndPrint [17:01:09]line Счет N : (1)673021 [17:01:09]line ИНН: 02508201610067 [17:01:09]line Контрольно-Кассовый Чек [17:01:09]line ПРОДАЖА [17:01:09]line ТРК (МРК, ГНК) : 42 [17:01:09]line Товар: 2710124130 [17:01:09]line Аи-92-К-5 [17:01:09]line 22.600 * 66.40 [17:01:09]line = 1500.64 [17:01:09]line НДС 12% НСП 1% [17:01:09]line > о реализуемом товаре [17:01:09]line ОКРУГЛЕНИЕ: -0.64 [17:01:09]line ИТОГО: 1500.00 [17:01:09]line Внесено: 1500.00 [17:01:09]line СДАЧА: 0.00 [17:01:09]line НСП 1% : 13.28 [17:01:09]line НДС 12% : 159.36 [17:01:09]line Наличными: 1500.00 [17:01:09]line Безнал.: 0.00 [17:01:09]line Место: АЗС № 120 "Партнер Нефть" [17:01:09]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [17:01:09]line СНО: Общий режим [17:01:09]line Чек 170 19.06.2024 17:01 [17:01:09]line Смена: 353 ФФД: 1.0 [17:01:09]line ЗНМ: 0300000164 [17:01:09]line РНМ: 0000000000092785 [17:01:09]line Версия ККМ: 001 [17:01:09]line ФМ: 0000000000875093 [17:01:09]line ФД: 103740 [17:01:09]line ФПД: 206597844640878 [17:01:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T170108&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103740&fm=206597844640878&tin=02508201610067®Number=0000000000092785&sum=150000 [17:01:09]OFD Sender: Processing packet 103740 [packets to send 17, broken 16] [17:01:09]ProducePacketName [17:01:09]name=ofd_packets/00103740 [17:01:09]OFD Sender: To server: pG, [17:01:09]CommunicateWithHost lk.salyk.kg:30040 [17:01:09]ConnectInit lk.salyk.kg [17:01:09]written 0, free lines is 4095 [17:01:10]Connected sock=10 [17: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 39 33 0F 01 00 00 DB F6 07 01 19 44 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 48 58 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 30 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 40 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 00 00 00 F4 03 04 00 D4 0E 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 3C 95 01 00 35 04 06 00 BB E6 4F 24 24 6E BF 48 11 45 88 E4 E2 CC [17: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 39 33 4F 00 00 00 B4 B1 47 00 3B 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 39 33 10 04 04 00 3C 95 01 00 F4 03 04 00 5C B5 72 66 B6 04 01 00 00 59 1B 60 3B 91 B9 79 0B [17:01:10]CommunicateWithHost err = 0 [17:01:10]CheckOFDResponse [17:01:10]1017 (14) - 77093643461234 [17:01:10]1041 (16) - 0000000000875093 [17:01:10]1040 (4) - 103740 [17:01:10]1012 (4) - 19.06.2024 10:39 [17:01:10]1206 (1) - 0 [17:01:10]OFD Sender: Remove packet 103740 [17:01:10]ProducePacketName [17:01:10]name=ofd_packets/00103740 [17:01:10]NVStorageDeleteData [17:01:10]Write to MH i2c: 01 00 00 37 01 38 [17:01:10]Write i2c OK [17:01:10]MH_I2C_Read... [17:01:10]Read from MH i2c: 01 [17:01:10]MH_I2C_Read... [17:01:10]Read from MH i2c: 01 07 00 [17:01:10]MH_I2C_Read... [17:01:10]Read from MH i2c: 01 07 00 37 01 00 00 00 00 00 E5 0C 30 [17:01:10]RasterBufferAndPrint [17:01:10]line [17:01:10]line [17:01:10]line [17:01:10]line [17:01:10]line [17:01:10]written 0, free lines is 3307 [17:01:10]MH_Cut [17:01:10]Write to MH i2c: D1 01 00 3E 01 01 11 [17:01:10]Write i2c OK [17:01:10]MH_I2C_Read... [17:01:10]Read from MH i2c: D1 [17:01:10]MH_I2C_Read... [17:01:10]Read from MH i2c: D1 01 00 [17:01:10]MH_I2C_Read... [17:01:10]Read from MH i2c: D1 01 00 3E 01 00 10 [17:01:10]Write to MH i2c: 01 00 00 3F 01 40 [17:01:10]Write i2c OK [17:01:10]MH_I2C_Read... [17:01:10]OFD Sender: No OFD packet to send [17:01:11]*** Cut start [17:01:11]*** Partial cut [17:01:11]*** CUTSNS_PIN = 1 [17:01:11]*** CUTSNS_PIN = 0 [17:01:11]*** Brake cut motor [17:01:11]Read from MH i2c: 01 [17:01:11]MH_I2C_Read... [17:01:11]*** Stop cut motor [17:01:11]*** Cut end [17:01:11]Read from MH i2c: 01 07 00 [17:01:11]MH_I2C_Read... [17:01:11]Read from MH i2c: 01 07 00 3F 01 00 00 00 00 00 FF 0F 55 [17:01:11]process_action close_receipt done [17:01:11]requested_data is exist [17:01:11]produce_requested_data [17:01:11]requested_item fm.sn is exist - process it [17:01:11]wFMCommunicate request_size=4 [17:01:11]MH_SAM_APDU [17:01:11]CAPDU: 80 11 00 00 [17:01:11]Write to MH i2c: E2 08 00 40 01 80 11 00 00 00 00 00 00 BB [17:01:11]Write i2c OK [17:01:11]MH_I2C_Read... [17:01:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:01:11]Read from MH i2c: E2 [17:01:11]MH_I2C_Read... [17:01:11]Read from MH i2c: E2 17 00 [17:01:11]MH_I2C_Read... [17:01:11]Read from MH i2c: E2 17 00 40 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 0E [17:01:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [17:01:11]wFMCommunicate OK [17:01:11]requested_item fd.num is exist - process it [17:01:11]SAM_PROTO_GetFieldsCounters [17:01:11]wFMCommunicate request_size=4 [17:01:11]MH_SAM_APDU [17:01:11]CAPDU: 80 13 00 00 [17:01:11]Write to MH i2c: E2 08 00 41 01 80 13 00 00 00 00 00 00 BE [17:01:11]Write i2c OK [17:01:11]MH_I2C_Read... [17:01:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:01:11]Read from MH i2c: E2 [17:01:11]MH_I2C_Read... [17:01:11]Read from MH i2c: E2 62 00 [17:01:11]MH_I2C_Read... [17:01:11]Read from MH i2c: E2 62 00 41 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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 3C 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 AA 00 00 00 5E 04 04 00 AA 00 00 00 57 04 04 00 AB 00 00 00 19 04 04 00 00 00 00 00 90 00 17 [17: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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 3C 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 AA 00 00 00 5E 04 04 00 AA 00 00 00 57 04 04 00 AB 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:01:11]wFMCommunicate OK [17:01:11]SAM_PROTO_GetFieldsCounters done [17:01:11]requested_item shift.num is exist - process it [17:01:11]requested_item shift.opened is exist - process it [17:01:11]req_shift_opened [17:01:11]FM_GetShiftState [17:01:11]SAM_PROTO_GetShiftState [17:01:11]wFMCommunicate request_size=4 [17:01:11]MH_SAM_APDU [17:01:11]CAPDU: 80 13 01 00 [17:01:11]Write to MH i2c: E2 08 00 42 01 80 13 01 00 00 00 00 00 C0 [17:01:11]Write i2c OK [17:01:11]MH_I2C_Read... [17:01:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:01:11]Read from MH i2c: E2 [17:01:11]MH_I2C_Read... [17:01:11]Read from MH i2c: E2 0E 00 [17:01:11]MH_I2C_Read... [17:01:11]Read from MH i2c: E2 0E 00 42 01 00 09 00 01 04 26 72 66 00 00 00 00 90 00 CE [17:01:11]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [17:01:11]wFMCommunicate OK [17:01:11]SAM_PROTO_GetShiftState done [17:01:11]FM_GetShiftState done [17:01:11]req_shift_opened done [17:01:11]requested_item shift.open_date is exist - process it [17:01:11]req_shift_open_date [17:01:11]req_shift_open_date done [17:01:11]produce_requested_data done [17:01:11]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103740,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [17:01:11]process_action_free close_receipt [17:01:11]json_value_free [17:01:11]json_value_free done [17:01:11]process_json_proto returns [17:01:11]Send response to host [17:01:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103740,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [17:01:11]free response buf [17:01:11]execute_script done [17:01:11]execute_script returns [17:01:11]free content buf [17:01:11]Sock 8.Close socket [17:01:11]Sock 8.Thread stoped [17:01:15]OFD Sender: No OFD packet to send [17:01:20]OFD Sender: No OFD packet to send [17:01:25]OFD Sender: No OFD packet to send [17:01:30]OFD Sender: No OFD packet to send [17:01:35]OFD Sender: No OFD packet to send [17:01:40]OFD Sender: No OFD packet to send [17:01:45]OFD Sender: No OFD packet to send [17:01:50]OFD Sender: No OFD packet to send [17:01:55]OFD Sender: No OFD packet to send [17:02:00]OFD Sender: No OFD packet to send [17:02:05]OFD Sender: No OFD packet to send [17:02:10]OFD Sender: No OFD packet to send [17:02:15]OFD Sender: No OFD packet to send [17:02:20]OFD Sender: No OFD packet to send [17:02:25]OFD Sender: No OFD packet to send [17:02:30]OFD Sender: No OFD packet to send [17:02:35]OFD Sender: No OFD packet to send [17:02:40]OFD Sender: No OFD packet to send [17:02:45]OFD Sender: No OFD packet to send [17:02:50]OFD Sender: No OFD packet to send [17:02:55]OFD Sender: No OFD packet to send [17:03:00]OFD Sender: No OFD packet to send [17:03:05]OFD Sender: No OFD packet to send [17:03:10]OFD Sender: No OFD packet to send [17:03:15]OFD Sender: No OFD packet to send [17:03:20]OFD Sender: No OFD packet to send [17:03:25]OFD Sender: No OFD packet to send [17:03:30]OFD Sender: No OFD packet to send [17:03:35]OFD Sender: No OFD packet to send [17:03:40]OFD Sender: No OFD packet to send [17:03:45]OFD Sender: No OFD packet to send [17:03:51]OFD Sender: No OFD packet to send [17:03:56]OFD Sender: No OFD packet to send [17:04:01]OFD Sender: No OFD packet to send [17:04:06]OFD Sender: No OFD packet to send [17:04:11]OFD Sender: No OFD packet to send [17:04:16]OFD Sender: No OFD packet to send [17:04:21]OFD Sender: No OFD packet to send [17:04:26]OFD Sender: No OFD packet to send [17:04:31]OFD Sender: No OFD packet to send [17:04:36]OFD Sender: No OFD packet to send [17:04:41]OFD Sender: No OFD packet to send [17:04:46]OFD Sender: No OFD packet to send [17:04:51]OFD Sender: No OFD packet to send [17:04:56]OFD Sender: No OFD packet to send [17:05:01]OFD Sender: No OFD packet to send [17:05:06]OFD Sender: No OFD packet to send [17:05:11]OFD Sender: No OFD packet to send [17:05:16]OFD Sender: No OFD packet to send [17:05:20]accept exits with 9 [17:05:20]New connection [17:05:20]New thread 3066797412 created [17:05:20]Thread 3066940772 joined [17:05:20]Waiting for new connection... [17:05:20] Sock 9.Parse request [17:05:20]Sock 9.Check first char [17:05:20]Sock 9.First char is OK [17:05:20]request: POST /json_proto HTTP/1.0 [17:05:20]Method: POST [17:05:20]URL: /json_proto [17:05:20]Method is POST - this is cgi request [17:05:20]url: /json_proto [17:05:20]query_string will be loaded in cgi processing [17:05:20]execute_cgi json_proto POST (null) [17:05:20]execute_cgi path=json_proto method=POST [17:05:20]POST find Content-Length [17:05:20]Host: 172.17.38.133:8080 [17:05:20]Content-Length: 808 [17:05:20]Content-Type: application/json [17:05:20] [17:05:20]POST finish read [17:05:20]Found Content-Length = 808 [17:05:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673022", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 41.160, "sum" : 3000.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 3000.56 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:05:20]execute_script... [17:05: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)673022", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 41.160, "sum" : 3000.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 3000.56 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:05:20]POST & json_proto [17:05:20]process_json_proto [17:05:20]json parsed OK: [17:05:20]protocol is kg_v1.0 [17:05:20]action value=close_receipt [17:05:20]process_action close_receipt [17:05:20]cmd_close_receipt [17:05:20]MH_GetDate [17:05:20]Write to MH i2c: F0 00 00 43 01 33 [17:05:20]Write i2c OK [17:05:20]MH_I2C_Read... [17:05:20]Read from MH i2c: F0 [17:05:20]MH_I2C_Read... [17:05:20]Read from MH i2c: F0 09 00 [17:05:20]MH_I2C_Read... [17:05:20]Read from MH i2c: F0 09 00 43 01 00 D0 0F 73 66 BD 8F 7C 64 20 [17:05:20]GetLastDocTimeStamp 1718816468 [17:05:20]current date 1718816720 [17:05:20]FM_GetShiftState [17:05:20]SAM_PROTO_GetShiftState [17:05:20]wFMCommunicate request_size=4 [17:05:20]MH_SAM_APDU [17:05:20]CAPDU: 80 13 01 00 [17:05:20]Write to MH i2c: E2 08 00 44 01 80 13 01 00 00 00 00 00 C2 [17:05:20]Write i2c OK [17:05:20]MH_I2C_Read... [17:05:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:05:20]Read from MH i2c: E2 [17:05:20]MH_I2C_Read... [17:05:20]Read from MH i2c: E2 0E 00 [17:05:20]MH_I2C_Read... [17:05:20]Read from MH i2c: E2 0E 00 44 01 00 09 00 01 04 26 72 66 00 00 00 00 90 00 D0 [17:05:20]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [17:05:20]wFMCommunicate OK [17:05:20]SAM_PROTO_GetShiftState done [17:05:20]FM_GetShiftState done [17:05:20]opened in 1718756868 [17:05:20]opened+sec_in_day 1718843268 [17:05:20]quantity*price = 300056 [17:05:20]sum+1 = 300057 [17:05:20]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 3000.56 НСП 1% : 26.55 НДС 12% : 318.64 Наличными: 0.00 Безнал.: 3000.56 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 171 19.06.2024 17:05 Смена: 353 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000875093 ФД: 103741 ФПД: 44733274931053 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T170520&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103741&fm=44733274931053&tin=02508201610067®Number=0000000000092785&sum=300056 [17:05:21]StoreToDocumentArchive [17:05:21]shift 353 fd 103741 [17:05:21]save to /storage/0353/doc_00103741 [17:05:21]save last doc name /storage/0353/doc_00103741 to /storage/kkm_last_doc_name [17:05:21]save OK [17:05:21]Clear old archive folders... [17:05:21]ProcessDocumentItem done err = 0, tmpTLVsize=252 [17:05:21]tlvbuf is 0169ED80 [17:05:21]SAM_PROTO_ClearQueue [17:05:21]wFMCommunicate request_size=4 [17:05:21]MH_SAM_APDU [17:05:21]CAPDU: 80 09 00 00 [17:05:21]Write to MH i2c: E2 08 00 51 01 80 09 00 00 00 00 00 00 C4 [17:05:21]Write i2c OK [17:05:21]MH_I2C_Read... [17:05:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:05:21]Read from MH i2c: E2 [17:05:21]MH_I2C_Read... [17:05:21]Read from MH i2c: E2 03 00 [17:05:21]MH_I2C_Read... [17:05:21]Read from MH i2c: E2 03 00 51 01 00 90 00 C6 [17:05:21]RAPDU: 90 00 [17:05:21]wFMCommunicate OK [17:05:21]SAM_PROTO_ClearQueue done [17:05:21]KKMCreateOFDPacket [17:05:21]OFDProtocolAddRootSTLVToBuf [17:05:21]FM_MakeSignedData [17:05:21]FM_MakeSignedData [17:05:21]SAM_PROTO_SignData [17:05:21]wFMCommunicate request_size=4 [17:05:21]MH_SAM_APDU [17:05:21]CAPDU: 80 0D 01 02 [17:05:21]Write to MH i2c: E2 08 00 52 01 80 0D 01 02 00 00 00 00 CC [17:05:21]Write i2c OK [17:05:21]MH_I2C_Read... [17:05:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:05:21]Read from MH i2c: E2 [17:05:21]MH_I2C_Read... [17:05:21]Read from MH i2c: E2 03 00 [17:05:21]MH_I2C_Read... [17:05:21]Read from MH i2c: E2 03 00 52 01 00 90 00 C7 [17:05:21]RAPDU: 90 00 [17:05:21]wFMCommunicate OK [17:05:21]wFMCommunicate request_size=255 [17:05:21]MH_SAM_APDU [17:05:21]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 C8 A0 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 18 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 18 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 00 00 00 F4 03 04 00 D0 0F 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 3D 95 01 00 35 04 06 00 [17:05:21]Write to MH i2c: E2 02 01 53 01 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 C8 A0 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 18 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 18 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 00 00 00 F4 03 04 00 D0 0F 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 3D 95 01 00 35 04 06 00 00 00 1A [17:05:21]Write i2c OK [17:05:21]MH_I2C_Read... [17:05:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:05:22]Read from MH i2c: E2 [17:05:22]MH_I2C_Read... [17:05:22]Read from MH i2c: E2 03 00 [17:05:22]MH_I2C_Read... [17:05:22]Read from MH i2c: E2 03 00 53 01 00 90 00 C8 [17:05:22]RAPDU: 90 00 [17:05:22]wFMCommunicate OK [17:05:22]wFMCommunicate request_size=11 [17:05:22]MH_SAM_APDU [17:05:22]CAPDU: 80 0D 02 02 06 28 AF 46 F6 3F 6D [17:05:22]Write to MH i2c: E2 0E 00 54 01 80 0D 02 02 06 00 28 AF 46 F6 3F 6D 00 00 9A [17:05:22]Write i2c OK [17:05:22]MH_I2C_Read... [17:05:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:05:22]Read from MH i2c: E2 [17:05:22]MH_I2C_Read... [17:05:22]Read from MH i2c: E2 03 00 [17:05:22]MH_I2C_Read... [17:05:22]Read from MH i2c: E2 03 00 54 01 00 90 00 C9 [17:05:22]RAPDU: 90 00 [17:05:22]wFMCommunicate OK [17:05:22]wFMCommunicate request_size=4 [17:05:22]MH_SAM_APDU [17:05:22]CAPDU: 80 0D 03 02 [17:05:22]Write to MH i2c: E2 08 00 55 01 80 0D 03 02 00 00 00 00 D1 [17:05:22]Write i2c OK [17:05:22]MH_I2C_Read... [17:05:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:05:22]Read from MH i2c: E2 [17:05:22]MH_I2C_Read... [17:05:22]Read from MH i2c: E2 0B 00 [17:05:22]MH_I2C_Read... [17:05:22]Read from MH i2c: E2 0B 00 55 01 00 15 49 72 AC E1 6D BE EE 90 00 48 [17:05:22]RAPDU: 15 49 72 AC E1 6D BE EE 90 00 [17:05:22]wFMCommunicate OK [17:05:22]SAM_PROTO_SignData done [17:05:22]FM_MakeSignedData done [17:05:22]CreateOFDProtocolMessage [17:05:22]wFMCommunicate request_size=4 [17:05:22]MH_SAM_APDU [17:05:22]CAPDU: 80 11 00 00 [17:05:22]Write to MH i2c: E2 08 00 56 01 80 11 00 00 00 00 00 00 D1 [17:05:22]Write i2c OK [17:05:22]MH_I2C_Read... [17:05:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:05:22]Read from MH i2c: E2 [17:05:22]MH_I2C_Read... [17:05:22]Read from MH i2c: E2 17 00 [17:05:22]MH_I2C_Read... [17:05:22]Read from MH i2c: E2 17 00 56 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 24 [17:05:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [17:05:22]wFMCommunicate OK [17:05:22]CreateOFDProtocolMessage done [17:05:22]OFDSenderStorePacket 103741 [17:05:22]StoreOFDPacket docnum=103741 [17:05:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 AC CD 08 01 0E 75 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 C8 A0 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 18 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 18 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 00 00 00 F4 03 04 00 D0 0F 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 3D 95 01 00 35 04 06 00 28 AF 46 F6 3F 6D 15 49 72 AC E1 6D BE EE [17:05:22]CheckFolder [17:05:22]dirname=/storage/ofd_packets [17:05:22]CheckFolder done [17:05:22]ProducePacketName [17:05:22]name=ofd_packets/00103741 [17:05:22]NVStorageSaveData ofd_packets/00103741 [17:05:22]File name is /storage/ofd_packets/00103741 [17:05:22]Write 302 bytes [17:05:22]NVStorageSaveData done [17:05:22]OFDSenderStorePacket done [17:05:22]KKMCreateOFDPacket done [17:05:22]NVStorageSaveData kkm_last_timestamp [17:05:22]File name is /storage/kkm_last_timestamp [17:05:22]Write 4 bytes [17:05:22]NVStorageSaveData done [17:05:22]ExternCall_PrintAddStr [17:05:22]wPrintStart [17:05:22]Write to MH i2c: 01 00 00 57 01 58 [17:05:22]Write i2c OK [17:05:22]MH_I2C_Read... [17:05:22]Read from MH i2c: 01 [17:05:22]MH_I2C_Read... [17:05:22]Read from MH i2c: 01 07 00 [17:05:22]MH_I2C_Read... [17:05:22]Read from MH i2c: 01 07 00 57 01 00 00 00 00 00 FF 0F 6D [17:05:22]RasterBufferAndPrint [17:05:22]line Счет N : (1)673022 [17:05:22]line ИНН: 02508201610067 [17:05:22]line Контрольно-Кассовый Чек [17:05:22]line ПРОДАЖА [17:05:22]line ТРК (МРК, ГНК) : 11 [17:05:22]line Товар: 2710194210 [17:05:22]line ДТ(л)-К-5 [17:05:22]line 41.160 * 72.90 [17:05:22]line = 3000.56 [17:05:22]line НДС 12% НСП 1% [17:05:22]line > о реализуемом товаре [17:05:22]line ИТОГО: 3000.56 [17:05:22]line НСП 1% : 26.55 [17:05:22]line НДС 12% : 318.64 [17:05:22]line Наличными: 0.00 [17:05:22]line Безнал.: 3000.56 [17:05:22]line Место: АЗС № 120 "Партнер Нефть" [17:05:22]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [17:05:22]line СНО: Общий режим [17:05:22]line Чек 171 19.06.2024 17:05 [17:05:22]line Смена: 353 ФФД: 1.0 [17:05:22]line ЗНМ: 0300000164 [17:05:22]line РНМ: 0000000000092785 [17:05:22]line Версия ККМ: 001 [17:05:22]line Платежная система: O! деньги [17:05:22]line ФМ: 0000000000875093 [17:05:22]line ФД: 103741 [17:05:22]line ФПД: 44733274931053 [17:05:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T170520&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103741&fm=44733274931053&tin=02508201610067®Number=0000000000092785&sum=300056 [17:05:22]OFD Sender: Processing packet 103741 [packets to send 17, broken 16] [17:05:22]ProducePacketName [17:05:22]name=ofd_packets/00103741 [17:05:22]OFD Sender: To server: pG, [17:05:22]CommunicateWithHost lk.salyk.kg:30040 [17:05:22]ConnectInit lk.salyk.kg [17:05:22]written 0, free lines is 4095 [17:05:22]Connected sock=10 [17:05: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 39 33 10 01 00 00 AC CD 08 01 0E 75 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 C8 A0 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 18 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 18 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 00 00 00 F4 03 04 00 D0 0F 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 3D 95 01 00 35 04 06 00 28 AF 46 F6 3F 6D 15 49 72 AC E1 6D BE EE [17:05: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 39 33 4F 00 00 00 CD D6 47 00 4C 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 39 33 10 04 04 00 3D 95 01 00 F4 03 04 00 59 B6 72 66 B6 04 01 00 00 2F 00 4D 71 20 D2 2C AE [17:05:22]CommunicateWithHost err = 0 [17:05:22]CheckOFDResponse [17:05:22]1017 (14) - 77093643461234 [17:05:22]1041 (16) - 0000000000875093 [17:05:22]1040 (4) - 103741 [17:05:22]1012 (4) - 19.06.2024 10:43 [17:05:22]1206 (1) - 0 [17:05:22]OFD Sender: Remove packet 103741 [17:05:22]ProducePacketName [17:05:22]name=ofd_packets/00103741 [17:05:22]NVStorageDeleteData [17:05:22]Write to MH i2c: 01 00 00 81 01 82 [17:05:22]Write i2c OK [17:05:22]MH_I2C_Read... [17:05:22]Read from MH i2c: 01 [17:05:22]MH_I2C_Read... [17:05:22]Read from MH i2c: 01 07 00 [17:05:22]MH_I2C_Read... [17:05:22]Read from MH i2c: 01 07 00 81 01 00 00 00 00 00 EE 0C 83 [17:05:22]RasterBufferAndPrint [17:05:22]line [17:05:22]line [17:05:22]line [17:05:22]line [17:05:22]line [17:05:22]written 0, free lines is 3317 [17:05:23]MH_Cut [17:05:23]Write to MH i2c: D1 01 00 88 01 01 5B [17:05:23]Write i2c OK [17:05:23]MH_I2C_Read... [17:05:23]Read from MH i2c: D1 [17:05:23]MH_I2C_Read... [17:05:23]Read from MH i2c: D1 01 00 [17:05:23]MH_I2C_Read... [17:05:23]Read from MH i2c: D1 01 00 88 01 00 5A [17:05:23]Write to MH i2c: 01 00 00 89 01 8A [17:05:23]Write i2c OK [17:05:23]MH_I2C_Read... [17:05:23]OFD Sender: No OFD packet to send [17:05:23]*** Cut start [17:05:23]*** Partial cut [17:05:23]*** CUTSNS_PIN = 1 [17:05:23]*** CUTSNS_PIN = 0 [17:05:23]*** Brake cut motor [17:05:24]Read from MH i2c: 01 [17:05:24]MH_I2C_Read... [17:05:24]*** Stop cut motor [17:05:24]*** Cut end [17:05:24]Read from MH i2c: 01 07 00 [17:05:24]MH_I2C_Read... [17:05:24]Read from MH i2c: 01 07 00 89 01 00 00 00 00 00 FF 0F 9F [17:05:24]process_action close_receipt done [17:05:24]requested_data is exist [17:05:24]produce_requested_data [17:05:24]requested_item fm.sn is exist - process it [17:05:24]wFMCommunicate request_size=4 [17:05:24]MH_SAM_APDU [17:05:24]CAPDU: 80 11 00 00 [17:05:24]Write to MH i2c: E2 08 00 8A 01 80 11 00 00 00 00 00 00 05 [17:05:24]Write i2c OK [17:05:24]MH_I2C_Read... [17:05:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:05:24]Read from MH i2c: E2 [17:05:24]MH_I2C_Read... [17:05:24]Read from MH i2c: E2 17 00 [17:05:24]MH_I2C_Read... [17:05:24]Read from MH i2c: E2 17 00 8A 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 58 [17:05:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [17:05:24]wFMCommunicate OK [17:05:24]requested_item fd.num is exist - process it [17:05:24]SAM_PROTO_GetFieldsCounters [17:05:24]wFMCommunicate request_size=4 [17:05:24]MH_SAM_APDU [17:05:24]CAPDU: 80 13 00 00 [17:05:24]Write to MH i2c: E2 08 00 8B 01 80 13 00 00 00 00 00 00 08 [17:05:24]Write i2c OK [17:05:24]MH_I2C_Read... [17:05:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:05:24]Read from MH i2c: E2 [17:05:24]MH_I2C_Read... [17:05:24]Read from MH i2c: E2 62 00 [17:05:24]MH_I2C_Read... [17:05:24]Read from MH i2c: E2 62 00 8B 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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 3D 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 AB 00 00 00 5E 04 04 00 AB 00 00 00 57 04 04 00 AC 00 00 00 19 04 04 00 00 00 00 00 90 00 65 [17:05: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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 3D 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 AB 00 00 00 5E 04 04 00 AB 00 00 00 57 04 04 00 AC 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:05:24]wFMCommunicate OK [17:05:24]SAM_PROTO_GetFieldsCounters done [17:05:24]requested_item shift.num is exist - process it [17:05:24]requested_item shift.opened is exist - process it [17:05:24]req_shift_opened [17:05:24]FM_GetShiftState [17:05:24]SAM_PROTO_GetShiftState [17:05:24]wFMCommunicate request_size=4 [17:05:24]MH_SAM_APDU [17:05:24]CAPDU: 80 13 01 00 [17:05:24]Write to MH i2c: E2 08 00 8C 01 80 13 01 00 00 00 00 00 0A [17:05:24]Write i2c OK [17:05:24]MH_I2C_Read... [17:05:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:05:24]Read from MH i2c: E2 [17:05:24]MH_I2C_Read... [17:05:24]Read from MH i2c: E2 0E 00 [17:05:24]MH_I2C_Read... [17:05:24]Read from MH i2c: E2 0E 00 8C 01 00 09 00 01 04 26 72 66 00 00 00 00 90 00 18 [17:05:24]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [17:05:24]wFMCommunicate OK [17:05:24]SAM_PROTO_GetShiftState done [17:05:24]FM_GetShiftState done [17:05:24]req_shift_opened done [17:05:24]requested_item shift.open_date is exist - process it [17:05:24]req_shift_open_date [17:05:24]req_shift_open_date done [17:05:24]produce_requested_data done [17:05:24]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103741,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [17:05:24]process_action_free close_receipt [17:05:24]json_value_free [17:05:24]json_value_free done [17:05:24]process_json_proto returns [17:05:24]Send response to host [17:05:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103741,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [17:05:24]free response buf [17:05:24]execute_script done [17:05:24]execute_script returns [17:05:24]free content buf [17:05:24]Sock 9.Close socket [17:05:24]Sock 9.Thread stoped [17:05:28]OFD Sender: No OFD packet to send [17:05:33]OFD Sender: No OFD packet to send [17:05:38]OFD Sender: No OFD packet to send [17:05:43]OFD Sender: No OFD packet to send [17:05:48]OFD Sender: No OFD packet to send [17:05:53]OFD Sender: No OFD packet to send [17:05:58]OFD Sender: No OFD packet to send [17:06:03]OFD Sender: No OFD packet to send [17:06:08]OFD Sender: No OFD packet to send [17:06:13]OFD Sender: No OFD packet to send [17:06:18]OFD Sender: No OFD packet to send [17:06:23]OFD Sender: No OFD packet to send [17:06:28]OFD Sender: No OFD packet to send [17:06:33]OFD Sender: No OFD packet to send [17:06:38]OFD Sender: No OFD packet to send [17:06:43]OFD Sender: No OFD packet to send [17:06:44]accept exits with 8 [17:06:44]New connection [17:06:44]New thread 3066940772 created [17:06:44]Thread 3066797412 joined [17:06:44]Waiting for new connection... [17:06:44] Sock 8.Parse request [17:06:44]Sock 8.Check first char [17:06:44]Sock 8.First char is OK [17:06:44]request: POST /json_proto HTTP/1.0 [17:06:44]Method: POST [17:06:44]URL: /json_proto [17:06:44]Method is POST - this is cgi request [17:06:44]url: /json_proto [17:06:44]query_string will be loaded in cgi processing [17:06:44]execute_cgi json_proto POST (null) [17:06:44]execute_cgi path=json_proto method=POST [17:06:44]POST find Content-Length [17:06:44]Host: 172.17.38.133:8080 [17:06:44]Content-Length: 677 [17:06:44]Content-Type: application/json [17:06:44] [17:06:44]POST finish read [17:06:44]Found Content-Length = 677 [17:06:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673023", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 9.040, "sum" : 600.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:06:44]execute_script... [17:06: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)673023", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 9.040, "sum" : 600.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:06:44]POST & json_proto [17:06:44]process_json_proto [17:06:44]json parsed OK: [17:06:44]protocol is kg_v1.0 [17:06:44]action value=close_receipt [17:06:44]process_action close_receipt [17:06:44]cmd_close_receipt [17:06:44]MH_GetDate [17:06:44]Write to MH i2c: F0 00 00 8D 01 7D [17:06:44]Write i2c OK [17:06:44]MH_I2C_Read... [17:06:44]Read from MH i2c: F0 [17:06:44]MH_I2C_Read... [17:06:44]Read from MH i2c: F0 09 00 [17:06:44]MH_I2C_Read... [17:06:44]Read from MH i2c: F0 09 00 8D 01 00 24 10 73 66 BD 8F 7C 64 BF [17:06:44]GetLastDocTimeStamp 1718816720 [17:06:44]current date 1718816804 [17:06:44]FM_GetShiftState [17:06:44]SAM_PROTO_GetShiftState [17:06:44]wFMCommunicate request_size=4 [17:06:44]MH_SAM_APDU [17:06:44]CAPDU: 80 13 01 00 [17:06:44]Write to MH i2c: E2 08 00 8E 01 80 13 01 00 00 00 00 00 0C [17:06:44]Write i2c OK [17:06:44]MH_I2C_Read... [17:06:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:06:44]Read from MH i2c: E2 [17:06:44]MH_I2C_Read... [17:06:44]Read from MH i2c: E2 0E 00 [17:06:44]MH_I2C_Read... [17:06:44]Read from MH i2c: E2 0E 00 8E 01 00 09 00 01 04 26 72 66 00 00 00 00 90 00 1A [17:06:44]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [17:06:44]wFMCommunicate OK [17:06:44]SAM_PROTO_GetShiftState done [17:06:44]FM_GetShiftState done [17:06:44]opened in 1718756868 [17:06:44]opened+sec_in_day 1718843268 [17:06:44]quantity*price = 60025 [17:06:44]sum+1 = 60027 [17:06:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.26 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.74 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 172 19.06.2024 17:06 Смена: 353 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103742 ФПД: 230061339225912 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T170644&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103742&fm=230061339225912&tin=02508201610067®Number=0000000000092785&sum=60000 [17:06:45]StoreToDocumentArchive [17:06:45]shift 353 fd 103742 [17:06:45]save to /storage/0353/doc_00103742 [17:06:45]save last doc name /storage/0353/doc_00103742 to /storage/kkm_last_doc_name [17:06:45]save OK [17:06:45]Clear old archive folders... [17:06:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:06:45]tlvbuf is 016E1560 [17:06:45]SAM_PROTO_ClearQueue [17:06:45]wFMCommunicate request_size=4 [17:06:45]MH_SAM_APDU [17:06:45]CAPDU: 80 09 00 00 [17:06:45]Write to MH i2c: E2 08 00 9B 01 80 09 00 00 00 00 00 00 0E [17:06:45]Write i2c OK [17:06:45]MH_I2C_Read... [17:06:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:06:45]Read from MH i2c: E2 [17:06:45]MH_I2C_Read... [17:06:45]Read from MH i2c: E2 03 00 [17:06:45]MH_I2C_Read... [17:06:45]Read from MH i2c: E2 03 00 9B 01 00 90 00 10 [17:06:45]RAPDU: 90 00 [17:06:45]wFMCommunicate OK [17:06:45]SAM_PROTO_ClearQueue done [17:06:45]KKMCreateOFDPacket [17:06:45]OFDProtocolAddRootSTLVToBuf [17:06:45]FM_MakeSignedData [17:06:45]FM_MakeSignedData [17:06:45]SAM_PROTO_SignData [17:06:45]wFMCommunicate request_size=4 [17:06:45]MH_SAM_APDU [17:06:45]CAPDU: 80 0D 01 02 [17:06:45]Write to MH i2c: E2 08 00 9C 01 80 0D 01 02 00 00 00 00 16 [17:06:45]Write i2c OK [17:06:45]MH_I2C_Read... [17:06:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:06:45]Read from MH i2c: E2 [17:06:45]MH_I2C_Read... [17:06:45]Read from MH i2c: E2 03 00 [17:06:45]MH_I2C_Read... [17:06:45]Read from MH i2c: E2 03 00 9C 01 00 90 00 11 [17:06:45]RAPDU: 90 00 [17:06:45]wFMCommunicate OK [17:06:45]wFMCommunicate request_size=255 [17:06:45]MH_SAM_APDU [17:06:45]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 50 23 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AC 00 00 00 F4 03 04 00 24 10 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 3E 95 01 00 35 04 06 00 D1 [17:06:45]Write to MH i2c: E2 02 01 9D 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 50 23 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AC 00 00 00 F4 03 04 00 24 10 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 3E 95 01 00 35 04 06 00 D1 00 00 6D [17:06:45]Write i2c OK [17:06:45]MH_I2C_Read... [17:06:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:06:45]Read from MH i2c: E2 [17:06:45]MH_I2C_Read... [17:06:45]Read from MH i2c: E2 03 00 [17:06:45]MH_I2C_Read... [17:06:45]Read from MH i2c: E2 03 00 9D 01 00 90 00 12 [17:06:45]RAPDU: 90 00 [17:06:45]wFMCommunicate OK [17:06:45]wFMCommunicate request_size=10 [17:06:45]MH_SAM_APDU [17:06:45]CAPDU: 80 0D 02 02 05 3D 54 66 AF 38 [17:06:45]Write to MH i2c: E2 0D 00 9E 01 80 0D 02 02 05 00 3D 54 66 AF 38 00 00 01 [17:06:45]Write i2c OK [17:06:45]MH_I2C_Read... [17:06:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:06:45]Read from MH i2c: E2 [17:06:45]MH_I2C_Read... [17:06:45]Read from MH i2c: E2 03 00 [17:06:45]MH_I2C_Read... [17:06:45]Read from MH i2c: E2 03 00 9E 01 00 90 00 13 [17:06:45]RAPDU: 90 00 [17:06:45]wFMCommunicate OK [17:06:45]wFMCommunicate request_size=4 [17:06:45]MH_SAM_APDU [17:06:45]CAPDU: 80 0D 03 02 [17:06:45]Write to MH i2c: E2 08 00 9F 01 80 0D 03 02 00 00 00 00 1B [17:06:45]Write i2c OK [17:06:45]MH_I2C_Read... [17:06:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:06:45]Read from MH i2c: E2 [17:06:45]MH_I2C_Read... [17:06:45]Read from MH i2c: E2 0B 00 [17:06:45]MH_I2C_Read... [17:06:45]Read from MH i2c: E2 0B 00 9F 01 00 F5 81 DD B1 89 FC A6 D4 90 00 1F [17:06:45]RAPDU: F5 81 DD B1 89 FC A6 D4 90 00 [17:06:45]wFMCommunicate OK [17:06:45]SAM_PROTO_SignData done [17:06:45]FM_MakeSignedData done [17:06:45]CreateOFDProtocolMessage [17:06:45]wFMCommunicate request_size=4 [17:06:45]MH_SAM_APDU [17:06:45]CAPDU: 80 11 00 00 [17:06:45]Write to MH i2c: E2 08 00 A0 01 80 11 00 00 00 00 00 00 1B [17:06:45]Write i2c OK [17:06:45]MH_I2C_Read... [17:06:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:06:45]Read from MH i2c: E2 [17:06:45]MH_I2C_Read... [17:06:45]Read from MH i2c: E2 17 00 [17:06:45]MH_I2C_Read... [17:06:45]Read from MH i2c: E2 17 00 A0 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 6E [17:06:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [17:06:45]wFMCommunicate OK [17:06:45]CreateOFDProtocolMessage done [17:06:45]OFDSenderStorePacket 103742 [17:06:45]StoreOFDPacket docnum=103742 [17:06:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 9C 30 07 01 8F 08 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 50 23 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AC 00 00 00 F4 03 04 00 24 10 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 3E 95 01 00 35 04 06 00 D1 3D 54 66 AF 38 F5 81 DD B1 89 FC A6 D4 [17:06:45]CheckFolder [17:06:45]dirname=/storage/ofd_packets [17:06:45]CheckFolder done [17:06:45]ProducePacketName [17:06:45]name=ofd_packets/00103742 [17:06:45]NVStorageSaveData ofd_packets/00103742 [17:06:45]File name is /storage/ofd_packets/00103742 [17:06:45]Write 301 bytes [17:06:45]NVStorageSaveData done [17:06:45]OFDSenderStorePacket done [17:06:45]KKMCreateOFDPacket done [17:06:45]NVStorageSaveData kkm_last_timestamp [17:06:45]File name is /storage/kkm_last_timestamp [17:06:45]Write 4 bytes [17:06:45]NVStorageSaveData done [17:06:45]ExternCall_PrintAddStr [17:06:45]wPrintStart [17:06:45]Write to MH i2c: 01 00 00 A1 01 A2 [17:06:45]Write i2c OK [17:06:45]MH_I2C_Read... [17:06:45]Read from MH i2c: 01 [17:06:45]MH_I2C_Read... [17:06:45]Read from MH i2c: 01 07 00 [17:06:45]MH_I2C_Read... [17:06:45]Read from MH i2c: 01 07 00 A1 01 00 00 00 00 00 FF 0F B7 [17:06:45]RasterBufferAndPrint [17:06:45]line Счет N : (1)673023 [17:06:45]line ИНН: 02508201610067 [17:06:45]line Контрольно-Кассовый Чек [17:06:45]line ПРОДАЖА [17:06:45]line ТРК (МРК, ГНК) : 32 [17:06:45]line Товар: 2710124130 [17:06:45]line Аи-92-К-5 [17:06:45]line 9.040 * 66.40 [17:06:45]line = 600.26 [17:06:45]line НДС 12% НСП 1% [17:06:45]line > о реализуемом товаре [17:06:45]line ОКРУГЛЕНИЕ: -0.26 [17:06:45]line ИТОГО: 600.00 [17:06:45]line Внесено: 600.00 [17:06:45]line СДАЧА: 0.00 [17:06:45]line НСП 1% : 5.31 [17:06:45]line НДС 12% : 63.74 [17:06:45]line Наличными: 600.00 [17:06:45]line Безнал.: 0.00 [17:06:45]line Место: АЗС № 120 "Партнер Нефть" [17:06:45]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [17:06:45]line СНО: Общий режим [17:06:45]line Чек 172 19.06.2024 17:06 [17:06:45]line Смена: 353 ФФД: 1.0 [17:06:45]line ЗНМ: 0300000164 [17:06:45]line РНМ: 0000000000092785 [17:06:45]line Версия ККМ: 001 [17:06:45]line ФМ: 0000000000875093 [17:06:45]line ФД: 103742 [17:06:46]line ФПД: 230061339225912 [17:06:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T170644&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103742&fm=230061339225912&tin=02508201610067®Number=0000000000092785&sum=60000 [17:06:46]OFD Sender: Processing packet 103742 [packets to send 17, broken 16] [17:06:46]ProducePacketName [17:06:46]name=ofd_packets/00103742 [17:06:46]OFD Sender: To server: pG, [17:06:46]CommunicateWithHost lk.salyk.kg:30040 [17:06:46]ConnectInit lk.salyk.kg [17:06:46]written 0, free lines is 4095 [17:06:46]Connected sock=10 [17:06: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 39 33 0F 01 00 00 9C 30 07 01 8F 08 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 50 23 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AC 00 00 00 F4 03 04 00 24 10 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 3E 95 01 00 35 04 06 00 D1 3D 54 66 AF 38 F5 81 DD B1 89 FC A6 D4 [17:06: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 39 33 4F 00 00 00 C8 D0 47 00 2D 77 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 3E 95 01 00 F4 03 04 00 AC B6 72 66 B6 04 01 00 00 F0 D1 01 84 7E F5 E0 2A [17:06:46]CommunicateWithHost err = 0 [17:06:46]CheckOFDResponse [17:06:46]1017 (14) - 77093643461234 [17:06:46]1041 (16) - 0000000000875093 [17:06:46]1040 (4) - 103742 [17:06:46]1012 (4) - 19.06.2024 10:45 [17:06:46]1206 (1) - 0 [17:06:46]OFD Sender: Remove packet 103742 [17:06:46]ProducePacketName [17:06:46]name=ofd_packets/00103742 [17:06:46]NVStorageDeleteData [17:06:46]Write to MH i2c: 01 00 00 CC 01 CD [17:06:46]Write i2c OK [17:06:46]MH_I2C_Read... [17:06:46]Read from MH i2c: 01 [17:06:46]MH_I2C_Read... [17:06:46]Read from MH i2c: 01 07 00 [17:06:46]MH_I2C_Read... [17:06:46]Read from MH i2c: 01 07 00 CC 01 00 00 00 00 00 D8 0C B8 [17:06:46]RasterBufferAndPrint [17:06:46]line [17:06:46]line [17:06:46]line [17:06:46]line [17:06:46]line [17:06:46]written 0, free lines is 3295 [17:06:46]MH_Cut [17:06:46]Write to MH i2c: D1 01 00 D3 01 01 A6 [17:06:46]Write i2c OK [17:06:46]MH_I2C_Read... [17:06:46]Read from MH i2c: D1 [17:06:46]MH_I2C_Read... [17:06:46]Read from MH i2c: D1 01 00 [17:06:46]MH_I2C_Read... [17:06:46]Read from MH i2c: D1 01 00 D3 01 00 A5 [17:06:46]Write to MH i2c: 01 00 00 D4 01 D5 [17:06:46]Write i2c OK [17:06:46]MH_I2C_Read... [17:06:47]OFD Sender: No OFD packet to send [17:06:47]*** Cut start [17:06:47]*** Partial cut [17:06:47]*** CUTSNS_PIN = 1 [17:06:47]*** CUTSNS_PIN = 0 [17:06:47]*** Brake cut motor [17:06:48]Read from MH i2c: 01 [17:06:48]MH_I2C_Read... [17:06:48]*** Stop cut motor [17:06:48]*** Cut end [17:06:48]Read from MH i2c: 01 07 00 [17:06:48]MH_I2C_Read... [17:06:48]Read from MH i2c: 01 07 00 D4 01 00 00 00 00 00 FF 0F EA [17:06:48]process_action close_receipt done [17:06:48]requested_data is exist [17:06:48]produce_requested_data [17:06:48]requested_item fm.sn is exist - process it [17:06:48]wFMCommunicate request_size=4 [17:06:48]MH_SAM_APDU [17:06:48]CAPDU: 80 11 00 00 [17:06:48]Write to MH i2c: E2 08 00 D5 01 80 11 00 00 00 00 00 00 50 [17:06:48]Write i2c OK [17:06:48]MH_I2C_Read... [17:06:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:06:48]Read from MH i2c: E2 [17:06:48]MH_I2C_Read... [17:06:48]Read from MH i2c: E2 17 00 [17:06:48]MH_I2C_Read... [17:06:48]Read from MH i2c: E2 17 00 D5 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 A3 [17:06:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [17:06:48]wFMCommunicate OK [17:06:48]requested_item fd.num is exist - process it [17:06:48]SAM_PROTO_GetFieldsCounters [17:06:48]wFMCommunicate request_size=4 [17:06:48]MH_SAM_APDU [17:06:48]CAPDU: 80 13 00 00 [17:06:48]Write to MH i2c: E2 08 00 D6 01 80 13 00 00 00 00 00 00 53 [17:06:48]Write i2c OK [17:06:48]MH_I2C_Read... [17:06:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:06:48]Read from MH i2c: E2 [17:06:48]MH_I2C_Read... [17:06:48]Read from MH i2c: E2 62 00 [17:06:48]MH_I2C_Read... [17:06:48]Read from MH i2c: E2 62 00 D6 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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 3E 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 AC 00 00 00 5E 04 04 00 AC 00 00 00 57 04 04 00 AD 00 00 00 19 04 04 00 00 00 00 00 90 00 B4 [17:06: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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 3E 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 AC 00 00 00 5E 04 04 00 AC 00 00 00 57 04 04 00 AD 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:06:48]wFMCommunicate OK [17:06:48]SAM_PROTO_GetFieldsCounters done [17:06:48]requested_item shift.num is exist - process it [17:06:48]requested_item shift.opened is exist - process it [17:06:48]req_shift_opened [17:06:48]FM_GetShiftState [17:06:48]SAM_PROTO_GetShiftState [17:06:48]wFMCommunicate request_size=4 [17:06:48]MH_SAM_APDU [17:06:48]CAPDU: 80 13 01 00 [17:06:48]Write to MH i2c: E2 08 00 D7 01 80 13 01 00 00 00 00 00 55 [17:06:48]Write i2c OK [17:06:48]MH_I2C_Read... [17:06:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:06:48]Read from MH i2c: E2 [17:06:48]MH_I2C_Read... [17:06:48]Read from MH i2c: E2 0E 00 [17:06:48]MH_I2C_Read... [17:06:48]Read from MH i2c: E2 0E 00 D7 01 00 09 00 01 04 26 72 66 00 00 00 00 90 00 63 [17:06:48]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [17:06:48]wFMCommunicate OK [17:06:48]SAM_PROTO_GetShiftState done [17:06:48]FM_GetShiftState done [17:06:48]req_shift_opened done [17:06:48]requested_item shift.open_date is exist - process it [17:06:48]req_shift_open_date [17:06:48]req_shift_open_date done [17:06:48]produce_requested_data done [17:06:48]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103742,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [17:06:48]process_action_free close_receipt [17:06:48]json_value_free [17:06:48]json_value_free done [17:06:48]process_json_proto returns [17:06:48]Send response to host [17:06:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103742,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [17:06:48]free response buf [17:06:48]execute_script done [17:06:48]execute_script returns [17:06:48]free content buf [17:06:48]Sock 8.Close socket [17:06:48]Sock 8.Thread stoped [17:06:52]OFD Sender: No OFD packet to send [17:06:57]OFD Sender: No OFD packet to send [17:07:02]OFD Sender: No OFD packet to send [17:07:07]OFD Sender: No OFD packet to send [17:07:12]OFD Sender: No OFD packet to send [17:07:17]OFD Sender: No OFD packet to send [17:07:22]OFD Sender: No OFD packet to send [17:07:27]OFD Sender: No OFD packet to send [17:07:32]OFD Sender: No OFD packet to send [17:07:37]OFD Sender: No OFD packet to send [17:07:42]OFD Sender: No OFD packet to send [17:07:47]OFD Sender: No OFD packet to send [17:07:52]OFD Sender: No OFD packet to send [17:07:57]OFD Sender: No OFD packet to send [17:08:02]OFD Sender: No OFD packet to send [17:08:07]OFD Sender: No OFD packet to send [17:08:12]OFD Sender: No OFD packet to send [17:08:17]OFD Sender: No OFD packet to send [17:08:22]OFD Sender: No OFD packet to send [17:08:27]OFD Sender: No OFD packet to send [17:08:32]OFD Sender: No OFD packet to send [17:08:37]OFD Sender: No OFD packet to send [17:08:42]OFD Sender: No OFD packet to send [17:08:47]OFD Sender: No OFD packet to send [17:08:52]OFD Sender: No OFD packet to send [17:08:57]OFD Sender: No OFD packet to send [17:09:02]OFD Sender: No OFD packet to send [17:09:07]OFD Sender: No OFD packet to send [17:09:12]OFD Sender: No OFD packet to send [17:09:17]OFD Sender: No OFD packet to send [17:09:22]OFD Sender: No OFD packet to send [17:09:23]accept exits with 9 [17:09:23]New connection [17:09:23]New thread 3066797412 created [17:09:23]Thread 3066940772 joined [17:09:23]Waiting for new connection... [17:09:23] Sock 9.Parse request [17:09:23]Sock 9.Check first char [17:09:23]Sock 9.First char is OK [17:09:23]request: POST /json_proto HTTP/1.0 [17:09:23]Method: POST [17:09:23]URL: /json_proto [17:09:23]Method is POST - this is cgi request [17:09:23]url: /json_proto [17:09:23]query_string will be loaded in cgi processing [17:09:23]execute_cgi json_proto POST (null) [17:09:23]execute_cgi path=json_proto method=POST [17:09:23]POST find Content-Length [17:09:23]Host: 172.17.38.133:8080 [17:09:23]Content-Length: 677 [17:09:23]Content-Type: application/json [17:09:23] [17:09:23]POST finish read [17:09:23]Found Content-Length = 677 [17:09:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673024", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:09:23]execute_script... [17:09: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)673024", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:09:23]POST & json_proto [17:09:23]process_json_proto [17:09:23]json parsed OK: [17:09:23]protocol is kg_v1.0 [17:09:23]action value=close_receipt [17:09:23]process_action close_receipt [17:09:23]cmd_close_receipt [17:09:23]MH_GetDate [17:09:23]Write to MH i2c: F0 00 00 D8 01 C8 [17:09:23]Write i2c OK [17:09:23]MH_I2C_Read... [17:09:23]Read from MH i2c: F0 [17:09:23]MH_I2C_Read... [17:09:23]Read from MH i2c: F0 09 00 [17:09:23]MH_I2C_Read... [17:09:23]Read from MH i2c: F0 09 00 D8 01 00 C3 10 73 66 BD 8F 7C 64 A9 [17:09:23]GetLastDocTimeStamp 1718816804 [17:09:23]current date 1718816963 [17:09:23]FM_GetShiftState [17:09:23]SAM_PROTO_GetShiftState [17:09:23]wFMCommunicate request_size=4 [17:09:23]MH_SAM_APDU [17:09:23]CAPDU: 80 13 01 00 [17:09:23]Write to MH i2c: E2 08 00 D9 01 80 13 01 00 00 00 00 00 57 [17:09:23]Write i2c OK [17:09:23]MH_I2C_Read... [17:09:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:09:23]Read from MH i2c: E2 [17:09:23]MH_I2C_Read... [17:09:23]Read from MH i2c: E2 0E 00 [17:09:23]MH_I2C_Read... [17:09:23]Read from MH i2c: E2 0E 00 D9 01 00 09 00 01 04 26 72 66 00 00 00 00 90 00 65 [17:09:23]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [17:09:23]wFMCommunicate OK [17:09:23]SAM_PROTO_GetShiftState done [17:09:23]FM_GetShiftState done [17:09:23]opened in 1718756868 [17:09:23]opened+sec_in_day 1718843268 [17:09:23]quantity*price = 50065 [17:09:23]sum+1 = 50067 [17:09:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.17 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 173 19.06.2024 17:09 Смена: 353 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103743 ФПД: 18432902148550 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T170923&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103743&fm=18432902148550&tin=02508201610067®Number=0000000000092785&sum=50000 [17:09:24]StoreToDocumentArchive [17:09:24]shift 353 fd 103743 [17:09:24]save to /storage/0353/doc_00103743 [17:09:24]save last doc name /storage/0353/doc_00103743 to /storage/kkm_last_doc_name [17:09:24]save OK [17:09:24]Clear old archive folders... [17:09:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:09:24]tlvbuf is 016DE190 [17:09:24]SAM_PROTO_ClearQueue [17:09:24]wFMCommunicate request_size=4 [17:09:24]MH_SAM_APDU [17:09:24]CAPDU: 80 09 00 00 [17:09:24]Write to MH i2c: E2 08 00 E6 01 80 09 00 00 00 00 00 00 59 [17:09:24]Write i2c OK [17:09:24]MH_I2C_Read... [17:09:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:09:24]Read from MH i2c: E2 [17:09:24]MH_I2C_Read... [17:09:24]Read from MH i2c: E2 03 00 [17:09:24]MH_I2C_Read... [17:09:24]Read from MH i2c: E2 03 00 E6 01 00 90 00 5B [17:09:24]RAPDU: 90 00 [17:09:24]wFMCommunicate OK [17:09:24]SAM_PROTO_ClearQueue done [17:09:24]KKMCreateOFDPacket [17:09:24]OFDProtocolAddRootSTLVToBuf [17:09:24]FM_MakeSignedData [17:09:24]FM_MakeSignedData [17:09:24]SAM_PROTO_SignData [17:09:24]wFMCommunicate request_size=4 [17:09:24]MH_SAM_APDU [17:09:24]CAPDU: 80 0D 01 02 [17:09:24]Write to MH i2c: E2 08 00 E7 01 80 0D 01 02 00 00 00 00 61 [17:09:24]Write i2c OK [17:09:24]MH_I2C_Read... [17:09:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:09:24]Read from MH i2c: E2 [17:09:24]MH_I2C_Read... [17:09:24]Read from MH i2c: E2 03 00 [17:09:24]MH_I2C_Read... [17:09:24]Read from MH i2c: E2 03 00 E7 01 00 90 00 5C [17:09:24]RAPDU: 90 00 [17:09:24]wFMCommunicate OK [17:09:24]wFMCommunicate request_size=255 [17:09:24]MH_SAM_APDU [17:09: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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AD 00 00 00 F4 03 04 00 C3 10 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 3F 95 01 00 35 04 06 00 10 [17:09:24]Write to MH i2c: E2 02 01 E8 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AD 00 00 00 F4 03 04 00 C3 10 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 3F 95 01 00 35 04 06 00 10 00 00 BB [17:09:24]Write i2c OK [17:09:24]MH_I2C_Read... [17:09:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:09:24]Read from MH i2c: E2 [17:09:24]MH_I2C_Read... [17:09:24]Read from MH i2c: E2 03 00 [17:09:24]MH_I2C_Read... [17:09:24]Read from MH i2c: E2 03 00 E8 01 00 90 00 5D [17:09:24]RAPDU: 90 00 [17:09:24]wFMCommunicate OK [17:09:24]wFMCommunicate request_size=10 [17:09:24]MH_SAM_APDU [17:09:24]CAPDU: 80 0D 02 02 05 C3 BE 95 B1 C6 [17:09:24]Write to MH i2c: E2 0D 00 E9 01 80 0D 02 02 05 00 C3 BE 95 B1 C6 00 00 FB [17:09:24]Write i2c OK [17:09:24]MH_I2C_Read... [17:09:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:09:24]Read from MH i2c: E2 [17:09:24]MH_I2C_Read... [17:09:24]Read from MH i2c: E2 03 00 [17:09:24]MH_I2C_Read... [17:09:24]Read from MH i2c: E2 03 00 E9 01 00 90 00 5E [17:09:24]RAPDU: 90 00 [17:09:24]wFMCommunicate OK [17:09:24]wFMCommunicate request_size=4 [17:09:24]MH_SAM_APDU [17:09:24]CAPDU: 80 0D 03 02 [17:09:24]Write to MH i2c: E2 08 00 EA 01 80 0D 03 02 00 00 00 00 66 [17:09:24]Write i2c OK [17:09:24]MH_I2C_Read... [17:09:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:09:24]Read from MH i2c: E2 [17:09:24]MH_I2C_Read... [17:09:24]Read from MH i2c: E2 0B 00 [17:09:24]MH_I2C_Read... [17:09:24]Read from MH i2c: E2 0B 00 EA 01 00 10 10 39 10 75 07 57 32 90 00 D5 [17:09:24]RAPDU: 10 10 39 10 75 07 57 32 90 00 [17:09:24]wFMCommunicate OK [17:09:24]SAM_PROTO_SignData done [17:09:24]FM_MakeSignedData done [17:09:24]CreateOFDProtocolMessage [17:09:24]wFMCommunicate request_size=4 [17:09:24]MH_SAM_APDU [17:09:24]CAPDU: 80 11 00 00 [17:09:24]Write to MH i2c: E2 08 00 EB 01 80 11 00 00 00 00 00 00 66 [17:09:24]Write i2c OK [17:09:24]MH_I2C_Read... [17:09:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:09:24]Read from MH i2c: E2 [17:09:24]MH_I2C_Read... [17:09:24]Read from MH i2c: E2 17 00 [17:09:24]MH_I2C_Read... [17:09:24]Read from MH i2c: E2 17 00 EB 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 B9 [17:09:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [17:09:24]wFMCommunicate OK [17:09:24]CreateOFDProtocolMessage done [17:09:24]OFDSenderStorePacket 103743 [17:09:24]StoreOFDPacket docnum=103743 [17:09:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 93 BD 07 01 08 A4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AD 00 00 00 F4 03 04 00 C3 10 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 3F 95 01 00 35 04 06 00 10 C3 BE 95 B1 C6 10 10 39 10 75 07 57 32 [17:09:24]CheckFolder [17:09:24]dirname=/storage/ofd_packets [17:09:24]CheckFolder done [17:09:24]ProducePacketName [17:09:24]name=ofd_packets/00103743 [17:09:24]NVStorageSaveData ofd_packets/00103743 [17:09:24]File name is /storage/ofd_packets/00103743 [17:09:24]Write 301 bytes [17:09:24]NVStorageSaveData done [17:09:24]OFDSenderStorePacket done [17:09:24]KKMCreateOFDPacket done [17:09:24]NVStorageSaveData kkm_last_timestamp [17:09:24]File name is /storage/kkm_last_timestamp [17:09:24]Write 4 bytes [17:09:24]NVStorageSaveData done [17:09:24]ExternCall_PrintAddStr [17:09:24]wPrintStart [17:09:24]Write to MH i2c: 01 00 00 EC 01 ED [17:09:24]Write i2c OK [17:09:24]MH_I2C_Read... [17:09:24]Read from MH i2c: 01 [17:09:24]MH_I2C_Read... [17:09:24]Read from MH i2c: 01 07 00 [17:09:24]MH_I2C_Read... [17:09:24]Read from MH i2c: 01 07 00 EC 01 00 00 00 00 00 FF 0F 02 [17:09:24]RasterBufferAndPrint [17:09:24]line Счет N : (1)673024 [17:09:24]line ИНН: 02508201610067 [17:09:24]line Контрольно-Кассовый Чек [17:09:24]line ПРОДАЖА [17:09:24]line ТРК (МРК, ГНК) : 32 [17:09:24]line Товар: 2710124130 [17:09:24]line Аи-92-К-5 [17:09:24]line 7.540 * 66.40 [17:09:24]line = 500.66 [17:09:24]line НДС 12% НСП 1% [17:09:24]line > о реализуемом товаре [17:09:24]line ОКРУГЛЕНИЕ: -0.66 [17:09:24]line ИТОГО: 500.00 [17:09:24]line Внесено: 500.00 [17:09:24]line СДАЧА: 0.00 [17:09:24]line НСП 1% : 4.43 [17:09:24]line НДС 12% : 53.17 [17:09:24]line Наличными: 500.00 [17:09:24]line Безнал.: 0.00 [17:09:24]line Место: АЗС № 120 "Партнер Нефть" [17:09:24]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [17:09:24]line СНО: Общий режим [17:09:24]line Чек 173 19.06.2024 17:09 [17:09:24]line Смена: 353 ФФД: 1.0 [17:09:24]line ЗНМ: 0300000164 [17:09:24]line РНМ: 0000000000092785 [17:09:24]line Версия ККМ: 001 [17:09:24]line ФМ: 0000000000875093 [17:09:24]line ФД: 103743 [17:09:24]line ФПД: 18432902148550 [17:09:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T170923&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103743&fm=18432902148550&tin=02508201610067®Number=0000000000092785&sum=50000 [17:09:24]written 0, free lines is 4095 [17:09:24]OFD Sender: Processing packet 103743 [packets to send 17, broken 16] [17:09:24]ProducePacketName [17:09:24]name=ofd_packets/00103743 [17:09:24]OFD Sender: To server: pG, [17:09:24]CommunicateWithHost lk.salyk.kg:30040 [17:09:24]ConnectInit lk.salyk.kg [17:09:24]Connected sock=10 [17:09: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 39 33 0F 01 00 00 93 BD 07 01 08 A4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AD 00 00 00 F4 03 04 00 C3 10 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 3F 95 01 00 35 04 06 00 10 C3 BE 95 B1 C6 10 10 39 10 75 07 57 32 [17:09: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 39 33 4F 00 00 00 54 91 47 00 C4 FA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 3F 95 01 00 F4 03 04 00 4B B7 72 66 B6 04 01 00 00 E4 D8 51 DA B8 87 8F C7 [17:09:25]CommunicateWithHost err = 0 [17:09:25]CheckOFDResponse [17:09:25]1017 (14) - 77093643461234 [17:09:25]1041 (16) - 0000000000875093 [17:09:25]1040 (4) - 103743 [17:09:25]1012 (4) - 19.06.2024 10:47 [17:09:25]1206 (1) - 0 [17:09:25]OFD Sender: Remove packet 103743 [17:09:25]ProducePacketName [17:09:25]name=ofd_packets/00103743 [17:09:25]NVStorageDeleteData [17:09:25]Write to MH i2c: 01 00 00 17 02 19 [17:09:25]Write i2c OK [17:09:25]MH_I2C_Read... [17:09:25]Read from MH i2c: 01 [17:09:25]MH_I2C_Read... [17:09:25]Read from MH i2c: 01 07 00 [17:09:25]MH_I2C_Read... [17:09:25]Read from MH i2c: 01 07 00 17 02 00 00 00 00 00 E0 0C 0C [17:09:25]RasterBufferAndPrint [17:09:25]line [17:09:25]line [17:09:25]line [17:09:25]line [17:09:25]line [17:09:25]written 0, free lines is 3302 [17:09:25]MH_Cut [17:09:25]Write to MH i2c: D1 01 00 1E 02 01 F2 [17:09:25]Write i2c OK [17:09:25]MH_I2C_Read... [17:09:25]Read from MH i2c: D1 [17:09:25]MH_I2C_Read... [17:09:25]Read from MH i2c: D1 01 00 [17:09:25]MH_I2C_Read... [17:09:25]Read from MH i2c: D1 01 00 1E 02 00 F1 [17:09:25]Write to MH i2c: 01 00 00 1F 02 21 [17:09:25]Write i2c OK [17:09:25]MH_I2C_Read... [17:09:25]OFD Sender: No OFD packet to send [17:09:25]*** Cut start [17:09:25]*** Partial cut [17:09:25]*** CUTSNS_PIN = 1 [17:09:25]*** CUTSNS_PIN = 0 [17:09:26]*** Brake cut motor [17:09:26]Read from MH i2c: 01 [17:09:26]MH_I2C_Read... [17:09:26]*** Stop cut motor [17:09:26]*** Cut end [17:09:26]Read from MH i2c: 01 07 00 [17:09:26]MH_I2C_Read... [17:09:26]Read from MH i2c: 01 07 00 1F 02 00 00 00 00 00 FF 0F 36 [17:09:26]process_action close_receipt done [17:09:26]requested_data is exist [17:09:26]produce_requested_data [17:09:26]requested_item fm.sn is exist - process it [17:09:26]wFMCommunicate request_size=4 [17:09:26]MH_SAM_APDU [17:09:26]CAPDU: 80 11 00 00 [17:09:26]Write to MH i2c: E2 08 00 20 02 80 11 00 00 00 00 00 00 9C [17:09:26]Write i2c OK [17:09:26]MH_I2C_Read... [17:09:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:09:26]Read from MH i2c: E2 [17:09:26]MH_I2C_Read... [17:09:26]Read from MH i2c: E2 17 00 [17:09:26]MH_I2C_Read... [17:09:26]Read from MH i2c: E2 17 00 20 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 EF [17:09:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [17:09:26]wFMCommunicate OK [17:09:26]requested_item fd.num is exist - process it [17:09:26]SAM_PROTO_GetFieldsCounters [17:09:26]wFMCommunicate request_size=4 [17:09:26]MH_SAM_APDU [17:09:26]CAPDU: 80 13 00 00 [17:09:26]Write to MH i2c: E2 08 00 21 02 80 13 00 00 00 00 00 00 9F [17:09:26]Write i2c OK [17:09:26]MH_I2C_Read... [17:09:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:09:26]Read from MH i2c: E2 [17:09:26]MH_I2C_Read... [17:09:26]Read from MH i2c: E2 62 00 [17:09:26]MH_I2C_Read... [17:09:26]Read from MH i2c: E2 62 00 21 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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 3F 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 AD 00 00 00 5E 04 04 00 AD 00 00 00 57 04 04 00 AE 00 00 00 19 04 04 00 00 00 00 00 90 00 04 [17:09: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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 3F 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 AD 00 00 00 5E 04 04 00 AD 00 00 00 57 04 04 00 AE 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:09:26]wFMCommunicate OK [17:09:26]SAM_PROTO_GetFieldsCounters done [17:09:26]requested_item shift.num is exist - process it [17:09:26]requested_item shift.opened is exist - process it [17:09:26]req_shift_opened [17:09:26]FM_GetShiftState [17:09:26]SAM_PROTO_GetShiftState [17:09:26]wFMCommunicate request_size=4 [17:09:26]MH_SAM_APDU [17:09:26]CAPDU: 80 13 01 00 [17:09:26]Write to MH i2c: E2 08 00 22 02 80 13 01 00 00 00 00 00 A1 [17:09:26]Write i2c OK [17:09:26]MH_I2C_Read... [17:09:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:09:26]Read from MH i2c: E2 [17:09:26]MH_I2C_Read... [17:09:26]Read from MH i2c: E2 0E 00 [17:09:26]MH_I2C_Read... [17:09:26]Read from MH i2c: E2 0E 00 22 02 00 09 00 01 04 26 72 66 00 00 00 00 90 00 AF [17:09:26]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [17:09:26]wFMCommunicate OK [17:09:26]SAM_PROTO_GetShiftState done [17:09:26]FM_GetShiftState done [17:09:26]req_shift_opened done [17:09:26]requested_item shift.open_date is exist - process it [17:09:26]req_shift_open_date [17:09:26]req_shift_open_date done [17:09:26]produce_requested_data done [17:09:26]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103743,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [17:09:26]process_action_free close_receipt [17:09:26]json_value_free [17:09:26]json_value_free done [17:09:26]process_json_proto returns [17:09:26]Send response to host [17:09:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103743,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [17:09:26]free response buf [17:09:26]execute_script done [17:09:26]execute_script returns [17:09:26]free content buf [17:09:26]Sock 9.Close socket [17:09:26]Sock 9.Thread stoped [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:10]OFD Sender: No OFD packet to send [17:12:15]OFD Sender: No OFD packet to send [17:12:20]OFD Sender: No OFD packet to send [17:12:25]OFD Sender: No OFD packet to send [17:12:30]OFD Sender: No OFD packet to send [17:12:35]OFD Sender: No OFD packet to send [17:12:40]OFD Sender: No OFD packet to send [17:12:45]OFD Sender: No OFD packet to send [17:12:50]OFD Sender: No OFD packet to send [17:12:55]OFD Sender: No OFD packet to send [17:13:00]OFD Sender: No OFD packet to send [17:13:05]OFD Sender: No OFD packet to send [17:13:10]OFD Sender: No OFD packet to send [17:13:15]OFD Sender: No OFD packet to send [17:13:20]OFD Sender: No OFD packet to send [17:13:25]OFD Sender: No OFD packet to send [17:13:30]OFD Sender: No OFD packet to send [17:13:35]OFD Sender: No OFD packet to send [17:13:40]OFD Sender: No OFD packet to send [17:13:45]OFD Sender: No OFD packet to send [17:13:50]OFD Sender: No OFD packet to send [17:13:55]OFD Sender: No OFD packet to send [17:14:00]OFD Sender: No OFD packet to send [17:14:05]OFD Sender: No OFD packet to send [17:14:10]OFD Sender: No OFD packet to send [17:14:15]OFD Sender: No OFD packet to send [17:14:20]OFD Sender: No OFD packet to send [17:14:25]OFD Sender: No OFD packet to send [17:14:30]OFD Sender: No OFD packet to send [17:14:35]OFD Sender: No OFD packet to send [17:14:40]OFD Sender: No OFD packet to send [17:14:45]OFD Sender: No OFD packet to send [17:14:50]OFD Sender: No OFD packet to send [17:14:55]OFD Sender: No OFD packet to send [17:15:00]OFD Sender: No OFD packet to send [17:15:05]OFD Sender: No OFD packet to send [17:15:10]OFD Sender: No OFD packet to send [17:15:15]OFD Sender: No OFD packet to send [17:15:20]OFD Sender: No OFD packet to send [17:15:25]OFD Sender: No OFD packet to send [17:15:30]OFD Sender: No OFD packet to send [17:15:31]accept exits with 8 [17:15:31]New connection [17:15:31]New thread 3066940772 created [17:15:31]Thread 3066797412 joined [17:15:31]Waiting for new connection... [17:15:31] Sock 8.Parse request [17:15:31]Sock 8.Check first char [17:15:31]Sock 8.First char is OK [17:15:31]request: POST /json_proto HTTP/1.0 [17:15:31]Method: POST [17:15:31]URL: /json_proto [17:15:31]Method is POST - this is cgi request [17:15:31]url: /json_proto [17:15:31]query_string will be loaded in cgi processing [17:15:31]execute_cgi json_proto POST (null) [17:15:31]execute_cgi path=json_proto method=POST [17:15:31]POST find Content-Length [17:15:31]Host: 172.17.38.133:8080 [17:15:31]Content-Length: 1196 [17:15:31]Content-Type: application/json [17:15:31] [17:15:31]POST finish read [17:15:31]Found Content-Length = 1196 [17:15:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. \u000A\u0421\u0447\u0435\u0442 N : (1)673025\u000A19.06.2024 16:52\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 42\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 10.000 x 66.40\u000A\u0418\u0422\u041E\u0413: 664.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A4104030\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:15:31]execute_script... [17:15:31]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. \u000A\u0421\u0447\u0435\u0442 N : (1)673025\u000A19.06.2024 16:52\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 42\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 10.000 x 66.40\u000A\u0418\u0422\u041E\u0413: 664.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A4104030\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:15:31]POST & json_proto [17:15:31]process_json_proto [17:15:31]json parsed OK: [17:15:31]protocol is kg_v1.0 [17:15:31]action value=print_text [17:15:31]process_action print_text [17:15:31]cmd_print_text [17:15:31]ExternCall_PrintAddStr [17:15:31]wPrintStart [17:15:31]Write to MH i2c: 01 00 00 23 02 25 [17:15:31]Write i2c OK [17:15:31]MH_I2C_Read... [17:15:31]Read from MH i2c: 01 [17:15:31]MH_I2C_Read... [17:15:31]Read from MH i2c: 01 07 00 [17:15:31]MH_I2C_Read... [17:15:31]Read from MH i2c: 01 07 00 23 02 00 00 00 00 00 FF 0F 3A [17:15:31]RasterBufferAndPrint [17:15:31]line *****ТОВАРНЫЙ ЧЕК***** [17:15:31]line АЗС 120 [17:15:31]line Партнер нефть [17:15:31]line 02508201610067 [17:15:31]line Кассир : Байбугуева Г. [17:15:31]line Счет N : (1)673025 [17:15:31]line 19.06.2024 16:52 [17:15:31]line ПРОДАЖА [17:15:31]line ТРК (МРК, ГНК): 42 [17:15:31]line Вид ГСМ : 2710124130 [17:15:31]line Аи-92-К-5 [17:15:31]line 10.000 x 66.40 [17:15:31]line ИТОГ: 664.00 [17:15:31]line Тип оплаты: Талоны: Партнер нефть [17:15:31]line 4104030 [17:15:31]line ______________________ [17:15:31]line (подпись) [17:15:31]written 0, free lines is 4095 [17:15:31]Write to MH i2c: 01 00 00 37 02 39 [17:15:31]Write i2c OK [17:15:31]MH_I2C_Read... [17:15:31]Read from MH i2c: 01 [17:15:31]MH_I2C_Read... [17:15:31]Read from MH i2c: 01 07 00 [17:15:31]MH_I2C_Read... [17:15:31]Read from MH i2c: 01 07 00 37 02 00 00 00 00 00 11 0E 5F [17:15:31]RasterBufferAndPrint [17:15:31]line [17:15:31]line [17:15:31]line [17:15:31]line [17:15:31]line [17:15:31]written 0, free lines is 3603 [17:15:31]MH_Cut [17:15:31]Write to MH i2c: D1 01 00 3E 02 01 12 [17:15:31]Write i2c OK [17:15:31]MH_I2C_Read... [17:15:31]Read from MH i2c: D1 [17:15:31]MH_I2C_Read... [17:15:31]Read from MH i2c: D1 01 00 [17:15:31]MH_I2C_Read... [17:15:31]Read from MH i2c: D1 01 00 3E 02 00 11 [17:15:31]Write to MH i2c: 01 00 00 3F 02 41 [17:15:31]Write i2c OK [17:15:31]MH_I2C_Read... [17:15:32]*** Cut start [17:15:32]*** Partial cut [17:15:32]*** CUTSNS_PIN = 1 [17:15:32]*** CUTSNS_PIN = 0 [17:15:32]*** Brake cut motor [17:15:32]Read from MH i2c: 01 [17:15:32]MH_I2C_Read... [17:15:32]Read from MH i2c: 01 07 00 [17:15:32]MH_I2C_Read... [17:15:32]*** Stop cut motor [17:15:32]*** Cut end [17:15:32]Read from MH i2c: 01 07 00 3F 02 00 00 00 00 00 FF 0F 56 [17:15:32]process_action print_text done [17:15:32]requested_data is exist [17:15:32]produce_requested_data [17:15:32]requested_item fm.sn is exist - process it [17:15:32]wFMCommunicate request_size=4 [17:15:32]MH_SAM_APDU [17:15:32]CAPDU: 80 11 00 00 [17:15:32]Write to MH i2c: E2 08 00 40 02 80 11 00 00 00 00 00 00 BC [17:15:32]Write i2c OK [17:15:32]MH_I2C_Read... [17:15:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:15:32]Read from MH i2c: E2 [17:15:32]MH_I2C_Read... [17:15:32]Read from MH i2c: E2 17 00 [17:15:32]MH_I2C_Read... [17:15:32]Read from MH i2c: E2 17 00 40 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 0F [17:15:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [17:15:32]wFMCommunicate OK [17:15:32]requested_item fd.num is exist - process it [17:15:32]SAM_PROTO_GetFieldsCounters [17:15:32]wFMCommunicate request_size=4 [17:15:32]MH_SAM_APDU [17:15:32]CAPDU: 80 13 00 00 [17:15:32]Write to MH i2c: E2 08 00 41 02 80 13 00 00 00 00 00 00 BF [17:15:32]Write i2c OK [17:15:32]MH_I2C_Read... [17:15:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:15:33]Read from MH i2c: E2 [17:15:33]MH_I2C_Read... [17:15:33]Read from MH i2c: E2 62 00 [17:15:33]MH_I2C_Read... [17:15:33]Read from MH i2c: E2 62 00 41 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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 3F 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 AD 00 00 00 5E 04 04 00 AD 00 00 00 57 04 04 00 AE 00 00 00 19 04 04 00 00 00 00 00 90 00 24 [17:15: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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 3F 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 AD 00 00 00 5E 04 04 00 AD 00 00 00 57 04 04 00 AE 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:15:33]wFMCommunicate OK [17:15:33]SAM_PROTO_GetFieldsCounters done [17:15:33]requested_item shift.num is exist - process it [17:15:33]requested_item shift.opened is exist - process it [17:15:33]req_shift_opened [17:15:33]FM_GetShiftState [17:15:33]SAM_PROTO_GetShiftState [17:15:33]wFMCommunicate request_size=4 [17:15:33]MH_SAM_APDU [17:15:33]CAPDU: 80 13 01 00 [17:15:33]Write to MH i2c: E2 08 00 42 02 80 13 01 00 00 00 00 00 C1 [17:15:33]Write i2c OK [17:15:33]MH_I2C_Read... [17:15:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:15:33]Read from MH i2c: E2 [17:15:33]MH_I2C_Read... [17:15:33]Read from MH i2c: E2 0E 00 [17:15:33]MH_I2C_Read... [17:15:33]Read from MH i2c: E2 0E 00 42 02 00 09 00 01 04 26 72 66 00 00 00 00 90 00 CF [17:15:33]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [17:15:33]wFMCommunicate OK [17:15:33]SAM_PROTO_GetShiftState done [17:15:33]FM_GetShiftState done [17:15:33]req_shift_opened done [17:15:33]requested_item shift.open_date is exist - process it [17:15:33]req_shift_open_date [17:15:33]req_shift_open_date done [17:15:33]produce_requested_data done [17:15:33]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103743,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [17:15:33]process_action_free print_text [17:15:33]json_value_free [17:15:33]json_value_free done [17:15:33]process_json_proto returns [17:15:33]Send response to host [17:15:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103743,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [17:15:33]free response buf [17:15:33]execute_script done [17:15:33]execute_script returns [17:15:33]free content buf [17:15:33]Sock 8.Close socket [17:15:33]Sock 8.Thread stoped [17:15:35]OFD Sender: No OFD packet to send [17:15:40]OFD Sender: No OFD packet to send [17:15:45]OFD Sender: No OFD packet to send [17:15:50]OFD Sender: No OFD packet to send [17:15: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:46]OFD Sender: No OFD packet to send [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:22]accept exits with 9 [17:17:22]New connection [17:17:22]New thread 3066797412 created [17:17:22]Thread 3066940772 joined [17:17:22]Waiting for new connection... [17:17:22] Sock 9.Parse request [17:17:22]Sock 9.Check first char [17:17:22]Sock 9.First char is OK [17:17:22]request: POST /json_proto HTTP/1.0 [17:17:22]Method: POST [17:17:22]URL: /json_proto [17:17:22]Method is POST - this is cgi request [17:17:22]url: /json_proto [17:17:22]query_string will be loaded in cgi processing [17:17:22]execute_cgi json_proto POST (null) [17:17:22]execute_cgi path=json_proto method=POST [17:17:22]POST find Content-Length [17:17:22]Host: 172.17.38.133:8080 [17:17:22]Content-Length: 682 [17:17:22]Content-Type: application/json [17:17:22] [17:17:22]POST finish read [17:17:22]Found Content-Length = 682 [17:17:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673026", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 25.610, "sum" : 1700.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1700.00, "total" : 1700.00, "payments": [ { "type": 0, "sum" : 1700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:17:22]execute_script... [17:17: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)673026", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 25.610, "sum" : 1700.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1700.00, "total" : 1700.00, "payments": [ { "type": 0, "sum" : 1700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:17:22]POST & json_proto [17:17:22]process_json_proto [17:17:22]json parsed OK: [17:17:22]protocol is kg_v1.0 [17:17:22]action value=close_receipt [17:17:22]process_action close_receipt [17:17:22]cmd_close_receipt [17:17:22]MH_GetDate [17:17:22]Write to MH i2c: F0 00 00 43 02 34 [17:17:22]Write i2c OK [17:17:22]MH_I2C_Read... [17:17:22]Read from MH i2c: F0 [17:17:22]MH_I2C_Read... [17:17:22]Read from MH i2c: F0 09 00 [17:17:22]MH_I2C_Read... [17:17:22]Read from MH i2c: F0 09 00 43 02 00 A3 12 73 66 BD 8F 7C 64 F7 [17:17:22]GetLastDocTimeStamp 1718816963 [17:17:22]current date 1718817443 [17:17:22]FM_GetShiftState [17:17:22]SAM_PROTO_GetShiftState [17:17:22]wFMCommunicate request_size=4 [17:17:22]MH_SAM_APDU [17:17:22]CAPDU: 80 13 01 00 [17:17:22]Write to MH i2c: E2 08 00 44 02 80 13 01 00 00 00 00 00 C3 [17:17:22]Write i2c OK [17:17:22]MH_I2C_Read... [17:17:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:17:22]Read from MH i2c: E2 [17:17:22]MH_I2C_Read... [17:17:22]Read from MH i2c: E2 0E 00 [17:17:22]MH_I2C_Read... [17:17:22]Read from MH i2c: E2 0E 00 44 02 00 09 00 01 04 26 72 66 00 00 00 00 90 00 D1 [17:17:22]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [17:17:22]wFMCommunicate OK [17:17:22]SAM_PROTO_GetShiftState done [17:17:22]FM_GetShiftState done [17:17:22]opened in 1718756868 [17:17:22]opened+sec_in_day 1718843268 [17:17:22]quantity*price = 170050 [17:17:22]sum+1 = 170051 [17:17:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.50 ИТОГО: 1700.00 Внесено: 1700.00 СДАЧА: 0.00 НСП 1% : 15.05 НДС 12% : 180.58 Наличными: 1700.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 174 19.06.2024 17:17 Смена: 353 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103744 ФПД: 62975845782215 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T171723&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103744&fm=62975845782215&tin=02508201610067®Number=0000000000092785&sum=170000 [17:17:24]StoreToDocumentArchive [17:17:24]shift 353 fd 103744 [17:17:24]save to /storage/0353/doc_00103744 [17:17:24]save last doc name /storage/0353/doc_00103744 to /storage/kkm_last_doc_name [17:17:24]save OK [17:17:24]Clear old archive folders... [17:17:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:17:24]tlvbuf is 016DAFA0 [17:17:24]SAM_PROTO_ClearQueue [17:17:24]wFMCommunicate request_size=4 [17:17:24]MH_SAM_APDU [17:17:24]CAPDU: 80 09 00 00 [17:17:24]Write to MH i2c: E2 08 00 51 02 80 09 00 00 00 00 00 00 C5 [17:17:24]Write i2c OK [17:17:24]MH_I2C_Read... [17:17:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:17:24]Read from MH i2c: E2 [17:17:24]MH_I2C_Read... [17:17:24]Read from MH i2c: E2 03 00 [17:17:24]MH_I2C_Read... [17:17:24]Read from MH i2c: E2 03 00 51 02 00 90 00 C7 [17:17:24]RAPDU: 90 00 [17:17:24]wFMCommunicate OK [17:17:24]SAM_PROTO_ClearQueue done [17:17:24]KKMCreateOFDPacket [17:17:24]OFDProtocolAddRootSTLVToBuf [17:17:24]FM_MakeSignedData [17:17:24]FM_MakeSignedData [17:17:24]SAM_PROTO_SignData [17:17:24]wFMCommunicate request_size=4 [17:17:24]MH_SAM_APDU [17:17:24]CAPDU: 80 0D 01 02 [17:17:24]Write to MH i2c: E2 08 00 52 02 80 0D 01 02 00 00 00 00 CD [17:17:24]Write i2c OK [17:17:24]MH_I2C_Read... [17:17:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:17:24]Read from MH i2c: E2 [17:17:24]MH_I2C_Read... [17:17:24]Read from MH i2c: E2 03 00 [17:17:24]MH_I2C_Read... [17:17:24]Read from MH i2c: E2 03 00 52 02 00 90 00 C8 [17:17:24]RAPDU: 90 00 [17:17:24]wFMCommunicate OK [17:17:24]wFMCommunicate request_size=255 [17:17:24]MH_SAM_APDU [17:17: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 0A 64 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 42 98 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 98 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E1 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 46 00 00 00 00 07 04 06 00 10 98 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 00 00 00 F4 03 04 00 A3 12 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 40 95 01 00 35 04 06 00 39 [17:17:24]Write to MH i2c: E2 02 01 53 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 0A 64 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 42 98 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 98 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E1 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 46 00 00 00 00 07 04 06 00 10 98 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 00 00 00 F4 03 04 00 A3 12 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 40 95 01 00 35 04 06 00 39 00 00 E7 [17:17:24]Write i2c OK [17:17:24]MH_I2C_Read... [17:17:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:17:24]Read from MH i2c: E2 [17:17:24]MH_I2C_Read... [17:17:24]Read from MH i2c: E2 03 00 [17:17:24]MH_I2C_Read... [17:17:24]Read from MH i2c: E2 03 00 53 02 00 90 00 C9 [17:17:24]RAPDU: 90 00 [17:17:24]wFMCommunicate OK [17:17:24]wFMCommunicate request_size=10 [17:17:24]MH_SAM_APDU [17:17:24]CAPDU: 80 0D 02 02 05 46 B4 EA D2 C7 [17:17:24]Write to MH i2c: E2 0D 00 54 02 80 0D 02 02 05 00 46 B4 EA D2 C7 00 00 57 [17:17:24]Write i2c OK [17:17:24]MH_I2C_Read... [17:17:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:17:24]Read from MH i2c: E2 [17:17:24]MH_I2C_Read... [17:17:24]Read from MH i2c: E2 03 00 [17:17:24]MH_I2C_Read... [17:17:24]Read from MH i2c: E2 03 00 54 02 00 90 00 CA [17:17:24]RAPDU: 90 00 [17:17:24]wFMCommunicate OK [17:17:24]wFMCommunicate request_size=4 [17:17:24]MH_SAM_APDU [17:17:24]CAPDU: 80 0D 03 02 [17:17:24]Write to MH i2c: E2 08 00 55 02 80 0D 03 02 00 00 00 00 D2 [17:17:24]Write i2c OK [17:17:24]MH_I2C_Read... [17:17:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:17:24]Read from MH i2c: E2 [17:17:24]MH_I2C_Read... [17:17:24]Read from MH i2c: E2 0B 00 [17:17:24]MH_I2C_Read... [17:17:24]Read from MH i2c: E2 0B 00 55 02 00 93 EB 66 EF BC 70 84 92 90 00 E8 [17:17:24]RAPDU: 93 EB 66 EF BC 70 84 92 90 00 [17:17:24]wFMCommunicate OK [17:17:24]SAM_PROTO_SignData done [17:17:24]FM_MakeSignedData done [17:17:24]CreateOFDProtocolMessage [17:17:24]wFMCommunicate request_size=4 [17:17:24]MH_SAM_APDU [17:17:24]CAPDU: 80 11 00 00 [17:17:24]Write to MH i2c: E2 08 00 56 02 80 11 00 00 00 00 00 00 D2 [17:17:24]Write i2c OK [17:17:24]MH_I2C_Read... [17:17:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:17:24]Read from MH i2c: E2 [17:17:24]MH_I2C_Read... [17:17:24]Read from MH i2c: E2 17 00 [17:17:24]MH_I2C_Read... [17:17:24]Read from MH i2c: E2 17 00 56 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 25 [17:17:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [17:17:24]wFMCommunicate OK [17:17:24]CreateOFDProtocolMessage done [17:17:24]OFDSenderStorePacket 103744 [17:17:24]StoreOFDPacket docnum=103744 [17:17:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 7C F7 07 01 A0 39 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 64 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 42 98 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 98 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E1 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 46 00 00 00 00 07 04 06 00 10 98 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 00 00 00 F4 03 04 00 A3 12 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 40 95 01 00 35 04 06 00 39 46 B4 EA D2 C7 93 EB 66 EF BC 70 84 92 [17:17:24]CheckFolder [17:17:24]dirname=/storage/ofd_packets [17:17:24]CheckFolder done [17:17:24]ProducePacketName [17:17:24]name=ofd_packets/00103744 [17:17:24]NVStorageSaveData ofd_packets/00103744 [17:17:24]File name is /storage/ofd_packets/00103744 [17:17:24]Write 301 bytes [17:17:24]NVStorageSaveData done [17:17:24]OFDSenderStorePacket done [17:17:24]KKMCreateOFDPacket done [17:17:24]NVStorageSaveData kkm_last_timestamp [17:17:24]File name is /storage/kkm_last_timestamp [17:17:24]Write 4 bytes [17:17:24]NVStorageSaveData done [17:17:24]ExternCall_PrintAddStr [17:17:24]wPrintStart [17:17:24]Write to MH i2c: 01 00 00 57 02 59 [17:17:24]Write i2c OK [17:17:24]MH_I2C_Read... [17:17:24]Read from MH i2c: 01 [17:17:24]MH_I2C_Read... [17:17:24]Read from MH i2c: 01 07 00 [17:17:24]MH_I2C_Read... [17:17:24]Read from MH i2c: 01 07 00 57 02 00 00 00 00 00 FF 0F 6E [17:17:24]RasterBufferAndPrint [17:17:24]line Счет N : (1)673026 [17:17:24]line ИНН: 02508201610067 [17:17:24]line Контрольно-Кассовый Чек [17:17:24]line ПРОДАЖА [17:17:24]line ТРК (МРК, ГНК) : 32 [17:17:24]line Товар: 2710124130 [17:17:24]line Аи-92-К-5 [17:17:24]line 25.610 * 66.40 [17:17:24]line = 1700.50 [17:17:24]line НДС 12% НСП 1% [17:17:24]line > о реализуемом товаре [17:17:24]line ОКРУГЛЕНИЕ: -0.50 [17:17:24]line ИТОГО: 1700.00 [17:17:24]line Внесено: 1700.00 [17:17:24]line СДАЧА: 0.00 [17:17:24]line НСП 1% : 15.05 [17:17:24]line НДС 12% : 180.58 [17:17:24]line Наличными: 1700.00 [17:17:24]line Безнал.: 0.00 [17:17:24]line Место: АЗС № 120 "Партнер Нефть" [17:17:24]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [17:17:24]line СНО: Общий режим [17:17:24]line Чек 174 19.06.2024 17:17 [17:17:24]line Смена: 353 ФФД: 1.0 [17:17:24]line ЗНМ: 0300000164 [17:17:24]line РНМ: 0000000000092785 [17:17:24]line Версия ККМ: 001 [17:17:24]line ФМ: 0000000000875093 [17:17:24]line ФД: 103744 [17:17:24]line ФПД: 62975845782215 [17:17:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T171723&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103744&fm=62975845782215&tin=02508201610067®Number=0000000000092785&sum=170000 [17:17:24]written 0, free lines is 4095 [17:17:24]OFD Sender: Processing packet 103744 [packets to send 17, broken 16] [17:17:24]ProducePacketName [17:17:24]name=ofd_packets/00103744 [17:17:24]OFD Sender: To server: pG, [17:17:24]CommunicateWithHost lk.salyk.kg:30040 [17:17:24]ConnectInit lk.salyk.kg [17:17:24]Connected sock=11 [17:17: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 39 33 0F 01 00 00 7C F7 07 01 A0 39 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 64 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 42 98 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 98 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E1 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 46 00 00 00 00 07 04 06 00 10 98 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 00 00 00 F4 03 04 00 A3 12 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 40 95 01 00 35 04 06 00 39 46 B4 EA D2 C7 93 EB 66 EF BC 70 84 92 [17:17: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 39 33 4F 00 00 00 93 8E 47 00 7C 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 39 33 10 04 04 00 40 95 01 00 F4 03 04 00 2B B9 72 66 B6 04 01 00 00 FF D5 8C 1B 1D 9F 09 7F [17:17:25]CommunicateWithHost err = 0 [17:17:25]CheckOFDResponse [17:17:25]1017 (14) - 77093643461234 [17:17:25]1041 (16) - 0000000000875093 [17:17:25]1040 (4) - 103744 [17:17:25]1012 (4) - 19.06.2024 10:55 [17:17:25]1206 (1) - 0 [17:17:25]OFD Sender: Remove packet 103744 [17:17:25]ProducePacketName [17:17:25]name=ofd_packets/00103744 [17:17:25]NVStorageDeleteData [17:17:25]Write to MH i2c: 01 00 00 82 02 84 [17:17:25]Write i2c OK [17:17:25]MH_I2C_Read... [17:17:25]Read from MH i2c: 01 [17:17:25]MH_I2C_Read... [17:17:25]Read from MH i2c: 01 07 00 [17:17:25]MH_I2C_Read... [17:17:25]Read from MH i2c: 01 07 00 82 02 00 00 00 00 00 DC 0C 73 [17:17:25]RasterBufferAndPrint [17:17:25]line [17:17:25]line [17:17:25]line [17:17:25]line [17:17:25]line [17:17:25]written 0, free lines is 3299 [17:17:25]MH_Cut [17:17:25]Write to MH i2c: D1 01 00 89 02 01 5D [17:17:25]Write i2c OK [17:17:25]MH_I2C_Read... [17:17:25]Read from MH i2c: D1 [17:17:25]MH_I2C_Read... [17:17:25]Read from MH i2c: D1 01 00 [17:17:25]MH_I2C_Read... [17:17:25]Read from MH i2c: D1 01 00 89 02 00 5C [17:17:25]Write to MH i2c: 01 00 00 8A 02 8C [17:17:25]Write i2c OK [17:17:25]MH_I2C_Read... [17:17:25]OFD Sender: No OFD packet to send [17:17:25]*** Cut start [17:17:25]*** Partial cut [17:17:25]*** CUTSNS_PIN = 1 [17:17:25]*** CUTSNS_PIN = 0 [17:17:26]*** Brake cut motor [17:17:26]Read from MH i2c: 01 [17:17:26]MH_I2C_Read... [17:17:26]*** Stop cut motor [17:17:26]*** Cut end [17:17:26]Read from MH i2c: 01 07 00 [17:17:26]MH_I2C_Read... [17:17:26]Read from MH i2c: 01 07 00 8A 02 00 00 00 00 00 FF 0F A1 [17:17:26]process_action close_receipt done [17:17:26]requested_data is exist [17:17:26]produce_requested_data [17:17:26]requested_item fm.sn is exist - process it [17:17:26]wFMCommunicate request_size=4 [17:17:26]MH_SAM_APDU [17:17:26]CAPDU: 80 11 00 00 [17:17:26]Write to MH i2c: E2 08 00 8B 02 80 11 00 00 00 00 00 00 07 [17:17:26]Write i2c OK [17:17:26]MH_I2C_Read... [17:17:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:17:26]Read from MH i2c: E2 [17:17:26]MH_I2C_Read... [17:17:26]Read from MH i2c: E2 17 00 [17:17:26]MH_I2C_Read... [17:17:26]Read from MH i2c: E2 17 00 8B 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 5A [17:17:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [17:17:26]wFMCommunicate OK [17:17:26]requested_item fd.num is exist - process it [17:17:26]SAM_PROTO_GetFieldsCounters [17:17:26]wFMCommunicate request_size=4 [17:17:26]MH_SAM_APDU [17:17:26]CAPDU: 80 13 00 00 [17:17:26]Write to MH i2c: E2 08 00 8C 02 80 13 00 00 00 00 00 00 0A [17:17:26]Write i2c OK [17:17:26]MH_I2C_Read... [17:17:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:17:26]Read from MH i2c: E2 [17:17:26]MH_I2C_Read... [17:17:26]Read from MH i2c: E2 62 00 [17:17:26]MH_I2C_Read... [17:17:26]Read from MH i2c: E2 62 00 8C 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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 40 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 AE 00 00 00 5E 04 04 00 AE 00 00 00 57 04 04 00 AF 00 00 00 19 04 04 00 00 00 00 00 90 00 73 [17:17: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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 40 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 AE 00 00 00 5E 04 04 00 AE 00 00 00 57 04 04 00 AF 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:17:26]wFMCommunicate OK [17:17:26]SAM_PROTO_GetFieldsCounters done [17:17:26]requested_item shift.num is exist - process it [17:17:26]requested_item shift.opened is exist - process it [17:17:26]req_shift_opened [17:17:26]FM_GetShiftState [17:17:26]SAM_PROTO_GetShiftState [17:17:26]wFMCommunicate request_size=4 [17:17:26]MH_SAM_APDU [17:17:26]CAPDU: 80 13 01 00 [17:17:26]Write to MH i2c: E2 08 00 8D 02 80 13 01 00 00 00 00 00 0C [17:17:26]Write i2c OK [17:17:26]MH_I2C_Read... [17:17:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:17:26]Read from MH i2c: E2 [17:17:26]MH_I2C_Read... [17:17:26]Read from MH i2c: E2 0E 00 [17:17:26]MH_I2C_Read... [17:17:26]Read from MH i2c: E2 0E 00 8D 02 00 09 00 01 04 26 72 66 00 00 00 00 90 00 1A [17:17:26]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [17:17:26]wFMCommunicate OK [17:17:26]SAM_PROTO_GetShiftState done [17:17:26]FM_GetShiftState done [17:17:26]req_shift_opened done [17:17:26]requested_item shift.open_date is exist - process it [17:17:26]req_shift_open_date [17:17:26]req_shift_open_date done [17:17:26]produce_requested_data done [17:17:26]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103744,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [17:17:26]process_action_free close_receipt [17:17:26]json_value_free [17:17:26]json_value_free done [17:17:26]process_json_proto returns [17:17:26]Send response to host [17:17:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103744,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [17:17:26]free response buf [17:17:26]execute_script done [17:17:26]execute_script returns [17:17:26]free content buf [17:17:26]Sock 9.Close socket [17:17:26]Sock 9.Thread stoped [17:17:30]OFD Sender: No OFD packet to send [17:17:35]OFD Sender: No OFD packet to send [17:17:40]OFD Sender: No OFD packet to send [17:17:45]OFD Sender: No OFD packet to send [17:17:50]OFD Sender: No OFD packet to send [17:17:55]OFD Sender: No OFD packet to send [17:18:00]OFD Sender: No OFD packet to send [17:18:05]OFD Sender: No OFD packet to send [17:18:10]OFD Sender: No OFD packet to send [17:18:15]OFD Sender: No OFD packet to send [17:18:20]OFD Sender: No OFD packet to send [17:18:25]OFD Sender: No OFD packet to send [17:18:30]OFD Sender: No OFD packet to send [17:18:35]OFD Sender: No OFD packet to send [17:18:40]OFD Sender: No OFD packet to send [17:18:45]OFD Sender: No OFD packet to send [17:18:50]OFD Sender: No OFD packet to send [17:18:55]OFD Sender: No OFD packet to send [17:19:00]OFD Sender: No OFD packet to send [17:19:05]OFD Sender: No OFD packet to send [17:19:10]OFD Sender: No OFD packet to send [17:19:12]accept exits with 8 [17:19:12]New connection [17:19:12]New thread 3066940772 created [17:19:12]Thread 3066797412 joined [17:19:12]Waiting for new connection... [17:19:12] Sock 8.Parse request [17:19:12]Sock 8.Check first char [17:19:12]Sock 8.First char is OK [17:19:12]request: POST /json_proto HTTP/1.0 [17:19:12]Method: POST [17:19:12]URL: /json_proto [17:19:12]Method is POST - this is cgi request [17:19:12]url: /json_proto [17:19:12]query_string will be loaded in cgi processing [17:19:12]execute_cgi json_proto POST (null) [17:19:12]execute_cgi path=json_proto method=POST [17:19:12]POST find Content-Length [17:19:12]Host: 172.17.38.133:8080 [17:19:12]Content-Length: 682 [17:19:12]Content-Type: application/json [17:19:12] [17:19:12]POST finish read [17:19:12]Found Content-Length = 682 [17:19:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673028", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 13.540, "sum" : 1000.61, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:19:12]execute_script... [17:19: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)673028", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 13.540, "sum" : 1000.61, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:19:12]POST & json_proto [17:19:12]process_json_proto [17:19:12]json parsed OK: [17:19:12]protocol is kg_v1.0 [17:19:12]action value=close_receipt [17:19:12]process_action close_receipt [17:19:12]cmd_close_receipt [17:19:12]MH_GetDate [17:19:12]Write to MH i2c: F0 00 00 8E 02 7F [17:19:12]Write i2c OK [17:19:12]MH_I2C_Read... [17:19:12]Read from MH i2c: F0 [17:19:12]MH_I2C_Read... [17:19:12]Read from MH i2c: F0 09 00 [17:19:12]MH_I2C_Read... [17:19:12]Read from MH i2c: F0 09 00 8E 02 00 10 13 73 66 BD 8F 7C 64 B0 [17:19:12]GetLastDocTimeStamp 1718817443 [17:19:12]current date 1718817552 [17:19:12]FM_GetShiftState [17:19:12]SAM_PROTO_GetShiftState [17:19:12]wFMCommunicate request_size=4 [17:19:12]MH_SAM_APDU [17:19:12]CAPDU: 80 13 01 00 [17:19:12]Write to MH i2c: E2 08 00 8F 02 80 13 01 00 00 00 00 00 0E [17:19:12]Write i2c OK [17:19:12]MH_I2C_Read... [17:19:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:19:12]Read from MH i2c: E2 [17:19:12]MH_I2C_Read... [17:19:12]Read from MH i2c: E2 0E 00 [17:19:12]MH_I2C_Read... [17:19:12]Read from MH i2c: E2 0E 00 8F 02 00 09 00 01 04 26 72 66 00 00 00 00 90 00 1C [17:19:12]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [17:19:12]wFMCommunicate OK [17:19:12]SAM_PROTO_GetShiftState done [17:19:12]FM_GetShiftState done [17:19:12]opened in 1718756868 [17:19:12]opened+sec_in_day 1718843268 [17:19:12]quantity*price = 100060 [17:19:12]sum+1 = 100062 [17:19:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.61 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 175 19.06.2024 17:19 Смена: 353 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103745 ФПД: 190230796462645 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T171912&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103745&fm=190230796462645&tin=02508201610067®Number=0000000000092785&sum=100000 [17:19:13]StoreToDocumentArchive [17:19:13]shift 353 fd 103745 [17:19:13]save to /storage/0353/doc_00103745 [17:19:13]save last doc name /storage/0353/doc_00103745 to /storage/kkm_last_doc_name [17:19:13]save OK [17:19:13]Clear old archive folders... [17:19:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:19:13]tlvbuf is 016DAB60 [17:19:13]SAM_PROTO_ClearQueue [17:19:13]wFMCommunicate request_size=4 [17:19:13]MH_SAM_APDU [17:19:13]CAPDU: 80 09 00 00 [17:19:13]Write to MH i2c: E2 08 00 9C 02 80 09 00 00 00 00 00 00 10 [17:19:13]Write i2c OK [17:19:13]MH_I2C_Read... [17:19:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:19:13]Read from MH i2c: E2 [17:19:13]MH_I2C_Read... [17:19:13]Read from MH i2c: E2 03 00 [17:19:13]MH_I2C_Read... [17:19:13]Read from MH i2c: E2 03 00 9C 02 00 90 00 12 [17:19:13]RAPDU: 90 00 [17:19:13]wFMCommunicate OK [17:19:13]SAM_PROTO_ClearQueue done [17:19:13]KKMCreateOFDPacket [17:19:13]OFDProtocolAddRootSTLVToBuf [17:19:13]FM_MakeSignedData [17:19:13]FM_MakeSignedData [17:19:13]SAM_PROTO_SignData [17:19:13]wFMCommunicate request_size=4 [17:19:13]MH_SAM_APDU [17:19:13]CAPDU: 80 0D 01 02 [17:19:13]Write to MH i2c: E2 08 00 9D 02 80 0D 01 02 00 00 00 00 18 [17:19:13]Write i2c OK [17:19:13]MH_I2C_Read... [17:19:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:19:13]Read from MH i2c: E2 [17:19:13]MH_I2C_Read... [17:19:13]Read from MH i2c: E2 03 00 [17:19:13]MH_I2C_Read... [17:19:13]Read from MH i2c: E2 03 00 9D 02 00 90 00 13 [17:19:13]RAPDU: 90 00 [17:19:13]wFMCommunicate OK [17:19:13]wFMCommunicate request_size=255 [17:19:13]MH_SAM_APDU [17:19: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E4 34 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 DD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AF 00 00 00 F4 03 04 00 10 13 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 41 95 01 00 35 04 06 00 AD [17:19:13]Write to MH i2c: E2 02 01 9E 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E4 34 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 DD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AF 00 00 00 F4 03 04 00 10 13 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 41 95 01 00 35 04 06 00 AD 00 00 A4 [17:19:13]Write i2c OK [17:19:13]MH_I2C_Read... [17:19:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:19:13]Read from MH i2c: E2 [17:19:13]MH_I2C_Read... [17:19:13]Read from MH i2c: E2 03 00 [17:19:13]MH_I2C_Read... [17:19:13]Read from MH i2c: E2 03 00 9E 02 00 90 00 14 [17:19:13]RAPDU: 90 00 [17:19:13]wFMCommunicate OK [17:19:13]wFMCommunicate request_size=10 [17:19:13]MH_SAM_APDU [17:19:13]CAPDU: 80 0D 02 02 05 03 8F 0C 6A 35 [17:19:13]Write to MH i2c: E2 0D 00 9F 02 80 0D 02 02 05 00 03 8F 0C 6A 35 00 00 62 [17:19:13]Write i2c OK [17:19:13]MH_I2C_Read... [17:19:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:19:13]Read from MH i2c: E2 [17:19:13]MH_I2C_Read... [17:19:13]Read from MH i2c: E2 03 00 [17:19:13]MH_I2C_Read... [17:19:13]Read from MH i2c: E2 03 00 9F 02 00 90 00 15 [17:19:13]RAPDU: 90 00 [17:19:13]wFMCommunicate OK [17:19:13]wFMCommunicate request_size=4 [17:19:13]MH_SAM_APDU [17:19:13]CAPDU: 80 0D 03 02 [17:19:13]Write to MH i2c: E2 08 00 A0 02 80 0D 03 02 00 00 00 00 1D [17:19:13]Write i2c OK [17:19:13]MH_I2C_Read... [17:19:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:19:13]Read from MH i2c: E2 [17:19:13]MH_I2C_Read... [17:19:13]Read from MH i2c: E2 0B 00 [17:19:13]MH_I2C_Read... [17:19:13]Read from MH i2c: E2 0B 00 A0 02 00 DF 6E 88 C7 9D 83 B6 EF 90 00 7F [17:19:13]RAPDU: DF 6E 88 C7 9D 83 B6 EF 90 00 [17:19:13]wFMCommunicate OK [17:19:13]SAM_PROTO_SignData done [17:19:13]FM_MakeSignedData done [17:19:13]CreateOFDProtocolMessage [17:19:13]wFMCommunicate request_size=4 [17:19:13]MH_SAM_APDU [17:19:13]CAPDU: 80 11 00 00 [17:19:13]Write to MH i2c: E2 08 00 A1 02 80 11 00 00 00 00 00 00 1D [17:19:13]Write i2c OK [17:19:13]MH_I2C_Read... [17:19:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:19:13]Read from MH i2c: E2 [17:19:13]MH_I2C_Read... [17:19:13]Read from MH i2c: E2 17 00 [17:19:13]MH_I2C_Read... [17:19:13]Read from MH i2c: E2 17 00 A1 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 70 [17:19:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [17:19:13]wFMCommunicate OK [17:19:13]CreateOFDProtocolMessage done [17:19:13]OFDSenderStorePacket 103745 [17:19:13]StoreOFDPacket docnum=103745 [17:19:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 A1 EC 07 01 B5 B0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E4 34 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 DD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AF 00 00 00 F4 03 04 00 10 13 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 41 95 01 00 35 04 06 00 AD 03 8F 0C 6A 35 DF 6E 88 C7 9D 83 B6 EF [17:19:13]CheckFolder [17:19:13]dirname=/storage/ofd_packets [17:19:13]CheckFolder done [17:19:13]ProducePacketName [17:19:13]name=ofd_packets/00103745 [17:19:13]NVStorageSaveData ofd_packets/00103745 [17:19:13]File name is /storage/ofd_packets/00103745 [17:19:13]Write 301 bytes [17:19:13]NVStorageSaveData done [17:19:13]OFDSenderStorePacket done [17:19:13]KKMCreateOFDPacket done [17:19:13]NVStorageSaveData kkm_last_timestamp [17:19:13]File name is /storage/kkm_last_timestamp [17:19:13]Write 4 bytes [17:19:13]NVStorageSaveData done [17:19:13]ExternCall_PrintAddStr [17:19:13]wPrintStart [17:19:13]Write to MH i2c: 01 00 00 A2 02 A4 [17:19:13]Write i2c OK [17:19:13]MH_I2C_Read... [17:19:13]Read from MH i2c: 01 [17:19:13]MH_I2C_Read... [17:19:13]Read from MH i2c: 01 07 00 [17:19:13]MH_I2C_Read... [17:19:13]Read from MH i2c: 01 07 00 A2 02 00 00 00 00 00 FF 0F B9 [17:19:13]RasterBufferAndPrint [17:19:13]line Счет N : (1)673028 [17:19:13]line ИНН: 02508201610067 [17:19:13]line Контрольно-Кассовый Чек [17:19:13]line ПРОДАЖА [17:19:13]line ТРК (МРК, ГНК) : 41 [17:19:13]line Товар: 2710124500 [17:19:13]line Аи-95-К-5 [17:19:13]line 13.540 * 73.90 [17:19:13]line = 1000.61 [17:19:13]line НДС 12% НСП 1% [17:19:13]line > о реализуемом товаре [17:19:13]line ОКРУГЛЕНИЕ: -0.61 [17:19:13]line ИТОГО: 1000.00 [17:19:13]line Внесено: 1000.00 [17:19:13]line СДАЧА: 0.00 [17:19:13]line НСП 1% : 8.85 [17:19:13]line НДС 12% : 106.26 [17:19:13]line Наличными: 1000.00 [17:19:13]line Безнал.: 0.00 [17:19:13]line Место: АЗС № 120 "Партнер Нефть" [17:19:13]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [17:19:13]line СНО: Общий режим [17:19:13]line Чек 175 19.06.2024 17:19 [17:19:13]line Смена: 353 ФФД: 1.0 [17:19:13]line ЗНМ: 0300000164 [17:19:13]line РНМ: 0000000000092785 [17:19:13]line Версия ККМ: 001 [17:19:13]line ФМ: 0000000000875093 [17:19:13]line ФД: 103745 [17:19:13]line ФПД: 190230796462645 [17:19:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T171912&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103745&fm=190230796462645&tin=02508201610067®Number=0000000000092785&sum=100000 [17:19:14]OFD Sender: Processing packet 103745 [packets to send 17, broken 16] [17:19:14]ProducePacketName [17:19:14]name=ofd_packets/00103745 [17:19:14]OFD Sender: To server: pG, [17:19:14]CommunicateWithHost lk.salyk.kg:30040 [17:19:14]ConnectInit lk.salyk.kg [17:19:14]written 0, free lines is 4095 [17:19:14]Connected sock=10 [17:19: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 39 33 0F 01 00 00 A1 EC 07 01 B5 B0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E4 34 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 DD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AF 00 00 00 F4 03 04 00 10 13 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 41 95 01 00 35 04 06 00 AD 03 8F 0C 6A 35 DF 6E 88 C7 9D 83 B6 EF [17:19: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 39 33 4F 00 00 00 0C 6A 47 00 45 E6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 41 95 01 00 F4 03 04 00 98 B9 72 66 B6 04 01 00 00 28 25 16 6C 91 99 F5 A5 [17:19:14]CommunicateWithHost err = 0 [17:19:14]CheckOFDResponse [17:19:14]1017 (14) - 77093643461234 [17:19:14]1041 (16) - 0000000000875093 [17:19:14]1040 (4) - 103745 [17:19:14]1012 (4) - 19.06.2024 10:57 [17:19:14]1206 (1) - 0 [17:19:14]OFD Sender: Remove packet 103745 [17:19:14]ProducePacketName [17:19:14]name=ofd_packets/00103745 [17:19:14]NVStorageDeleteData [17:19:14]Write to MH i2c: 01 00 00 CD 02 CF [17:19:14]Write i2c OK [17:19:14]MH_I2C_Read... [17:19:14]Read from MH i2c: 01 [17:19:14]MH_I2C_Read... [17:19:14]Read from MH i2c: 01 07 00 [17:19:14]MH_I2C_Read... [17:19:14]Read from MH i2c: 01 07 00 CD 02 00 00 00 00 00 E9 0C CB [17:19:14]RasterBufferAndPrint [17:19:14]line [17:19:14]line [17:19:14]line [17:19:14]line [17:19:14]line [17:19:14]written 0, free lines is 3311 [17:19:14]MH_Cut [17:19:14]Write to MH i2c: D1 01 00 D4 02 01 A8 [17:19:14]Write i2c OK [17:19:14]MH_I2C_Read... [17:19:14]Read from MH i2c: D1 [17:19:14]MH_I2C_Read... [17:19:14]Read from MH i2c: D1 01 00 [17:19:14]MH_I2C_Read... [17:19:14]Read from MH i2c: D1 01 00 D4 02 00 A7 [17:19:14]Write to MH i2c: 01 00 00 D5 02 D7 [17:19:14]Write i2c OK [17:19:14]MH_I2C_Read... [17:19:14]OFD Sender: No OFD packet to send [17:19:15]*** Cut start [17:19:15]*** Partial cut [17:19:15]*** CUTSNS_PIN = 1 [17:19:15]*** CUTSNS_PIN = 0 [17:19:15]*** Brake cut motor [17:19:15]Read from MH i2c: 01 [17:19:15]MH_I2C_Read... [17:19:15]*** Stop cut motor [17:19:15]*** Cut end [17:19:15]Read from MH i2c: 01 07 00 [17:19:15]MH_I2C_Read... [17:19:15]Read from MH i2c: 01 07 00 D5 02 00 00 00 00 00 FF 0F EC [17:19:15]process_action close_receipt done [17:19:15]requested_data is exist [17:19:15]produce_requested_data [17:19:15]requested_item fm.sn is exist - process it [17:19:15]wFMCommunicate request_size=4 [17:19:15]MH_SAM_APDU [17:19:15]CAPDU: 80 11 00 00 [17:19:15]Write to MH i2c: E2 08 00 D6 02 80 11 00 00 00 00 00 00 52 [17:19:15]Write i2c OK [17:19:15]MH_I2C_Read... [17:19:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:19:15]Read from MH i2c: E2 [17:19:15]MH_I2C_Read... [17:19:15]Read from MH i2c: E2 17 00 [17:19:15]MH_I2C_Read... [17:19:15]Read from MH i2c: E2 17 00 D6 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 A5 [17:19:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [17:19:15]wFMCommunicate OK [17:19:15]requested_item fd.num is exist - process it [17:19:15]SAM_PROTO_GetFieldsCounters [17:19:15]wFMCommunicate request_size=4 [17:19:15]MH_SAM_APDU [17:19:15]CAPDU: 80 13 00 00 [17:19:15]Write to MH i2c: E2 08 00 D7 02 80 13 00 00 00 00 00 00 55 [17:19:15]Write i2c OK [17:19:15]MH_I2C_Read... [17:19:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:19:16]Read from MH i2c: E2 [17:19:16]MH_I2C_Read... [17:19:16]Read from MH i2c: E2 62 00 [17:19:16]MH_I2C_Read... [17:19:16]Read from MH i2c: E2 62 00 D7 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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 41 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 AF 00 00 00 5E 04 04 00 AF 00 00 00 57 04 04 00 B0 00 00 00 19 04 04 00 00 00 00 00 90 00 C2 [17:19: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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 41 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 AF 00 00 00 5E 04 04 00 AF 00 00 00 57 04 04 00 B0 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:19:16]wFMCommunicate OK [17:19:16]SAM_PROTO_GetFieldsCounters done [17:19:16]requested_item shift.num is exist - process it [17:19:16]requested_item shift.opened is exist - process it [17:19:16]req_shift_opened [17:19:16]FM_GetShiftState [17:19:16]SAM_PROTO_GetShiftState [17:19:16]wFMCommunicate request_size=4 [17:19:16]MH_SAM_APDU [17:19:16]CAPDU: 80 13 01 00 [17:19:16]Write to MH i2c: E2 08 00 D8 02 80 13 01 00 00 00 00 00 57 [17:19:16]Write i2c OK [17:19:16]MH_I2C_Read... [17:19:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:19:16]Read from MH i2c: E2 [17:19:16]MH_I2C_Read... [17:19:16]Read from MH i2c: E2 0E 00 [17:19:16]MH_I2C_Read... [17:19:16]Read from MH i2c: E2 0E 00 D8 02 00 09 00 01 04 26 72 66 00 00 00 00 90 00 65 [17:19:16]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [17:19:16]wFMCommunicate OK [17:19:16]SAM_PROTO_GetShiftState done [17:19:16]FM_GetShiftState done [17:19:16]req_shift_opened done [17:19:16]requested_item shift.open_date is exist - process it [17:19:16]req_shift_open_date [17:19:16]req_shift_open_date done [17:19:16]produce_requested_data done [17:19:16]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103745,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [17:19:16]process_action_free close_receipt [17:19:16]json_value_free [17:19:16]json_value_free done [17:19:16]process_json_proto returns [17:19:16]Send response to host [17:19:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103745,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [17:19:16]free response buf [17:19:16]execute_script done [17:19:16]execute_script returns [17:19:16]free content buf [17:19:16]Sock 8.Close socket [17:19:16]Sock 8.Thread stoped [17:19:19]OFD Sender: No OFD packet to send [17:19:25]OFD Sender: No OFD packet to send [17:19:30]OFD Sender: No OFD packet to send [17:19:35]OFD Sender: No OFD packet to send [17:19:40]OFD Sender: No OFD packet to send [17:19:45]OFD Sender: No OFD packet to send [17:19:50]OFD Sender: No OFD packet to send [17:19:55]OFD Sender: No OFD packet to send [17:20:00]OFD Sender: No OFD packet to send [17:20:05]OFD Sender: No OFD packet to send [17:20:10]OFD Sender: No OFD packet to send [17:20:15]OFD Sender: No OFD packet to send [17:20:20]OFD Sender: No OFD packet to send [17:20:25]OFD Sender: No OFD packet to send [17:20:30]OFD Sender: No OFD packet to send [17:20:35]OFD Sender: No OFD packet to send [17:20:40]OFD Sender: No OFD packet to send [17:20:45]OFD Sender: No OFD packet to send [17:20:50]OFD Sender: No OFD packet to send [17:20:55]OFD Sender: No OFD packet to send [17:21:00]OFD Sender: No OFD packet to send [17:21:05]OFD Sender: No OFD packet to send [17:21:10]OFD Sender: No OFD packet to send [17:21:11]accept exits with 9 [17:21:11]New connection [17:21:11]New thread 3066797412 created [17:21:11]Thread 3066940772 joined [17:21:11]Waiting for new connection... [17:21:11] Sock 9.Parse request [17:21:11]Sock 9.Check first char [17:21:11]Sock 9.First char is OK [17:21:11]request: POST /json_proto HTTP/1.0 [17:21:11]Method: POST [17:21:11]URL: /json_proto [17:21:11]Method is POST - this is cgi request [17:21:11]url: /json_proto [17:21:11]query_string will be loaded in cgi processing [17:21:11]execute_cgi json_proto POST (null) [17:21:11]execute_cgi path=json_proto method=POST [17:21:11]POST find Content-Length [17:21:11]Host: 172.17.38.133:8080 [17:21:11]Content-Length: 1196 [17:21:11]Content-Type: application/json [17:21:11] [17:21:11]POST finish read [17:21:11]Found Content-Length = 1196 [17:21:11]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 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. \u000A\u0421\u0447\u0435\u0442 N : (1)673029\u000A19.06.2024 16:58\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 42\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 10.000 x 66.40\u000A\u0418\u0422\u041E\u0413: 664.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A4103861\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:21:11]execute_script... [17:21:11]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 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. \u000A\u0421\u0447\u0435\u0442 N : (1)673029\u000A19.06.2024 16:58\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 42\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 10.000 x 66.40\u000A\u0418\u0422\u041E\u0413: 664.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A4103861\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:21:11]POST & json_proto [17:21:11]process_json_proto [17:21:11]json parsed OK: [17:21:11]protocol is kg_v1.0 [17:21:11]action value=print_text [17:21:11]process_action print_text [17:21:11]cmd_print_text [17:21:11]ExternCall_PrintAddStr [17:21:11]wPrintStart [17:21:11]Write to MH i2c: 01 00 00 D9 02 DB [17:21:11]Write i2c OK [17:21:11]MH_I2C_Read... [17:21:11]Read from MH i2c: 01 [17:21:11]MH_I2C_Read... [17:21:11]Read from MH i2c: 01 07 00 [17:21:11]MH_I2C_Read... [17:21:11]Read from MH i2c: 01 07 00 D9 02 00 00 00 00 00 FF 0F F0 [17:21:11]RasterBufferAndPrint [17:21:11]line *****ТОВАРНЫЙ ЧЕК***** [17:21:11]line АЗС 120 [17:21:11]line Партнер нефть [17:21:11]line 02508201610067 [17:21:11]line Кассир : Байбугуева Г. [17:21:11]line Счет N : (1)673029 [17:21:11]line 19.06.2024 16:58 [17:21:11]line ПРОДАЖА [17:21:11]line ТРК (МРК, ГНК): 42 [17:21:11]line Вид ГСМ : 2710124130 [17:21:11]line Аи-92-К-5 [17:21:11]line 10.000 x 66.40 [17:21:11]line ИТОГ: 664.00 [17:21:11]line Тип оплаты: Талоны: Партнер нефть [17:21:11]line 4103861 [17:21:11]line ______________________ [17:21:11]line (подпись) [17:21:11]written 0, free lines is 4095 [17:21:12]Write to MH i2c: 01 00 00 ED 02 EF [17:21:12]Write i2c OK [17:21:12]MH_I2C_Read... [17:21:12]Read from MH i2c: 01 [17:21:12]MH_I2C_Read... [17:21:12]Read from MH i2c: 01 07 00 [17:21:12]MH_I2C_Read... [17:21:12]Read from MH i2c: 01 07 00 ED 02 00 00 00 00 00 12 0E 16 [17:21:12]RasterBufferAndPrint [17:21:12]line [17:21:12]line [17:21:12]line [17:21:12]line [17:21:12]line [17:21:12]written 0, free lines is 3604 [17:21:12]MH_Cut [17:21:12]Write to MH i2c: D1 01 00 F4 02 01 C8 [17:21:12]Write i2c OK [17:21:12]MH_I2C_Read... [17:21:12]Read from MH i2c: D1 [17:21:12]MH_I2C_Read... [17:21:12]Read from MH i2c: D1 01 00 [17:21:12]MH_I2C_Read... [17:21:12]Read from MH i2c: D1 01 00 F4 02 00 C7 [17:21:12]Write to MH i2c: 01 00 00 F5 02 F7 [17:21:12]Write i2c OK [17:21:12]MH_I2C_Read... [17:21:12]*** Cut start [17:21:12]*** Partial cut [17:21:12]*** CUTSNS_PIN = 1 [17:21:12]*** CUTSNS_PIN = 0 [17:21:12]*** Brake cut motor [17:21:13]Read from MH i2c: 01 [17:21:13]MH_I2C_Read... [17:21:13]Read from MH i2c: 01 07 00 *** Stop cut motor [17:21:13]*** Cut end [17:21:13] [17:21:13]MH_I2C_Read... [17:21:13]Read from MH i2c: 01 07 00 F5 02 00 00 00 00 00 FF 0F 0C [17:21:13]process_action print_text done [17:21:13]requested_data is exist [17:21:13]produce_requested_data [17:21:13]requested_item fm.sn is exist - process it [17:21:13]wFMCommunicate request_size=4 [17:21:13]MH_SAM_APDU [17:21:13]CAPDU: 80 11 00 00 [17:21:13]Write to MH i2c: E2 08 00 F6 02 80 11 00 00 00 00 00 00 72 [17:21:13]Write i2c OK [17:21:13]MH_I2C_Read... [17:21:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:21:13]Read from MH i2c: E2 [17:21:13]MH_I2C_Read... [17:21:13]Read from MH i2c: E2 17 00 [17:21:13]MH_I2C_Read... [17:21:13]Read from MH i2c: E2 17 00 F6 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 C5 [17:21:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [17:21:13]wFMCommunicate OK [17:21:13]requested_item fd.num is exist - process it [17:21:13]SAM_PROTO_GetFieldsCounters [17:21:13]wFMCommunicate request_size=4 [17:21:13]MH_SAM_APDU [17:21:13]CAPDU: 80 13 00 00 [17:21:13]Write to MH i2c: E2 08 00 F7 02 80 13 00 00 00 00 00 00 75 [17:21:13]Write i2c OK [17:21:13]MH_I2C_Read... [17:21:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:21:13]Read from MH i2c: E2 [17:21:13]MH_I2C_Read... [17:21:13]Read from MH i2c: E2 62 00 [17:21:13]MH_I2C_Read... [17:21:13]Read from MH i2c: E2 62 00 F7 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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 41 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 AF 00 00 00 5E 04 04 00 AF 00 00 00 57 04 04 00 B0 00 00 00 19 04 04 00 00 00 00 00 90 00 E2 [17:21: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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 41 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 AF 00 00 00 5E 04 04 00 AF 00 00 00 57 04 04 00 B0 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:21:13]wFMCommunicate OK [17:21:13]SAM_PROTO_GetFieldsCounters done [17:21:13]requested_item shift.num is exist - process it [17:21:13]requested_item shift.opened is exist - process it [17:21:13]req_shift_opened [17:21:13]FM_GetShiftState [17:21:13]SAM_PROTO_GetShiftState [17:21:13]wFMCommunicate request_size=4 [17:21:13]MH_SAM_APDU [17:21:13]CAPDU: 80 13 01 00 [17:21:13]Write to MH i2c: E2 08 00 F8 02 80 13 01 00 00 00 00 00 77 [17:21:13]Write i2c OK [17:21:13]MH_I2C_Read... [17:21:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:21:13]Read from MH i2c: E2 [17:21:13]MH_I2C_Read... [17:21:13]Read from MH i2c: E2 0E 00 [17:21:13]MH_I2C_Read... [17:21:13]Read from MH i2c: E2 0E 00 F8 02 00 09 00 01 04 26 72 66 00 00 00 00 90 00 85 [17:21:13]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [17:21:13]wFMCommunicate OK [17:21:13]SAM_PROTO_GetShiftState done [17:21:13]FM_GetShiftState done [17:21:13]req_shift_opened done [17:21:13]requested_item shift.open_date is exist - process it [17:21:13]req_shift_open_date [17:21:13]req_shift_open_date done [17:21:13]produce_requested_data done [17:21:13]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103745,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [17:21:13]process_action_free print_text [17:21:13]json_value_free [17:21:13]json_value_free done [17:21:13]process_json_proto returns [17:21:13]Send response to host [17:21:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103745,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [17:21:13]free response buf [17:21:13]execute_script done [17:21:13]execute_script returns [17:21:13]free content buf [17:21:13]Sock 9.Close socket [17:21:13]Sock 9.Thread stoped [17:21:15]OFD Sender: No OFD packet to send [17:21:20]OFD Sender: No OFD packet to send [17:21:25]OFD Sender: No OFD packet to send [17:21:30]OFD Sender: No OFD packet to send [17:21:35]OFD Sender: No OFD packet to send [17:21:40]OFD Sender: No OFD packet to send [17:21:45]OFD Sender: No OFD packet to send [17:21:50]OFD Sender: No OFD packet to send [17:21:55]OFD Sender: No OFD packet to send [17:22:00]OFD Sender: No OFD packet to send [17:22:05]OFD Sender: No OFD packet to send [17:22:10]OFD Sender: No OFD packet to send [17:22:15]OFD Sender: No OFD packet to send [17:22:20]OFD Sender: No OFD packet to send [17:22:25]OFD Sender: No OFD packet to send [17:22:30]OFD Sender: No OFD packet to send [17:22:35]OFD Sender: No OFD packet to send [17:22:40]OFD Sender: No OFD packet to send [17:22:45]OFD Sender: No OFD packet to send [17:22:50]OFD Sender: No OFD packet to send [17:22:55]OFD Sender: No OFD packet to send [17:23:00]OFD Sender: No OFD packet to send [17:23:05]OFD Sender: No OFD packet to send [17:23:10]OFD Sender: No OFD packet to send [17:23:15]OFD Sender: No OFD packet to send [17:23:20]OFD Sender: No OFD packet to send [17:23:25]OFD Sender: No OFD packet to send [17:23:30]OFD Sender: No OFD packet to send [17:23:35]OFD Sender: No OFD packet to send [17:23:35]accept exits with 8 [17:23:35]New connection [17:23:35]New thread 3066940772 created [17:23:35]Thread 3066797412 joined [17:23:35]Waiting for new connection... [17:23:35] Sock 8.Parse request [17:23:35]Sock 8.Check first char [17:23:35]Sock 8.First char is OK [17:23:35]request: POST /json_proto HTTP/1.0 [17:23:35]Method: POST [17:23:35]URL: /json_proto [17:23:35]Method is POST - this is cgi request [17:23:35]url: /json_proto [17:23:35]query_string will be loaded in cgi processing [17:23:35]execute_cgi json_proto POST (null) [17:23:35]execute_cgi path=json_proto method=POST [17:23:35]POST find Content-Length [17:23:35]Host: 172.17.38.133:8080 [17:23:35]Content-Length: 682 [17:23:35]Content-Type: application/json [17:23:35] [17:23:35]POST finish read [17:23:35]Found Content-Length = 682 [17:23:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673030", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 13.540, "sum" : 1000.61, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:23:35]execute_script... [17:23:35]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673030", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 13.540, "sum" : 1000.61, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:23:35]POST & json_proto [17:23:35]process_json_proto [17:23:35]json parsed OK: [17:23:35]protocol is kg_v1.0 [17:23:35]action value=close_receipt [17:23:35]process_action close_receipt [17:23:35]cmd_close_receipt [17:23:35]MH_GetDate [17:23:35]Write to MH i2c: F0 00 00 F9 02 EA [17:23:35]Write i2c OK [17:23:35]MH_I2C_Read... [17:23:35]Read from MH i2c: F0 [17:23:35]MH_I2C_Read... [17:23:35]Read from MH i2c: F0 09 00 [17:23:35]MH_I2C_Read... [17:23:35]Read from MH i2c: F0 09 00 F9 02 00 18 14 73 66 BD 8F 7C 64 24 [17:23:35]GetLastDocTimeStamp 1718817552 [17:23:35]current date 1718817816 [17:23:35]FM_GetShiftState [17:23:35]SAM_PROTO_GetShiftState [17:23:35]wFMCommunicate request_size=4 [17:23:35]MH_SAM_APDU [17:23:35]CAPDU: 80 13 01 00 [17:23:35]Write to MH i2c: E2 08 00 FA 02 80 13 01 00 00 00 00 00 79 [17:23:35]Write i2c OK [17:23:35]MH_I2C_Read... [17:23:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:23:35]Read from MH i2c: E2 [17:23:35]MH_I2C_Read... [17:23:35]Read from MH i2c: E2 0E 00 [17:23:35]MH_I2C_Read... [17:23:35]Read from MH i2c: E2 0E 00 FA 02 00 09 00 01 04 26 72 66 00 00 00 00 90 00 87 [17:23:35]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [17:23:35]wFMCommunicate OK [17:23:35]SAM_PROTO_GetShiftState done [17:23:35]FM_GetShiftState done [17:23:35]opened in 1718756868 [17:23:35]opened+sec_in_day 1718843268 [17:23:35]quantity*price = 100060 [17:23:35]sum+1 = 100062 [17:23:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.61 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 176 19.06.2024 17:23 Смена: 353 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103746 ФПД: 105387505884346 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T172336&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103746&fm=105387505884346&tin=02508201610067®Number=0000000000092785&sum=100000 [17:23:36]StoreToDocumentArchive [17:23:36]shift 353 fd 103746 [17:23:36]save to /storage/0353/doc_00103746 [17:23:36]save last doc name /storage/0353/doc_00103746 to /storage/kkm_last_doc_name [17:23:36]save OK [17:23:36]Clear old archive folders... [17:23:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:23:36]tlvbuf is 016DC310 [17:23:36]SAM_PROTO_ClearQueue [17:23:36]wFMCommunicate request_size=4 [17:23:36]MH_SAM_APDU [17:23:36]CAPDU: 80 09 00 00 [17:23:36]Write to MH i2c: E2 08 00 07 03 80 09 00 00 00 00 00 00 7C [17:23:36]Write i2c OK [17:23:36]MH_I2C_Read... [17:23:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:23:36]Read from MH i2c: E2 [17:23:36]MH_I2C_Read... [17:23:36]Read from MH i2c: E2 03 00 [17:23:36]MH_I2C_Read... [17:23:36]Read from MH i2c: E2 03 00 07 03 00 90 00 7E [17:23:36]RAPDU: 90 00 [17:23:36]wFMCommunicate OK [17:23:36]SAM_PROTO_ClearQueue done [17:23:36]KKMCreateOFDPacket [17:23:36]OFDProtocolAddRootSTLVToBuf [17:23:36]FM_MakeSignedData [17:23:36]FM_MakeSignedData [17:23:36]SAM_PROTO_SignData [17:23:36]wFMCommunicate request_size=4 [17:23:36]MH_SAM_APDU [17:23:36]CAPDU: 80 0D 01 02 [17:23:36]Write to MH i2c: E2 08 00 08 03 80 0D 01 02 00 00 00 00 84 [17:23:36]Write i2c OK [17:23:36]MH_I2C_Read... [17:23:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:23:37]Read from MH i2c: E2 [17:23:37]MH_I2C_Read... [17:23:37]Read from MH i2c: E2 03 00 [17:23:37]MH_I2C_Read... [17:23:37]Read from MH i2c: E2 03 00 08 03 00 90 00 7F [17:23:37]RAPDU: 90 00 [17:23:37]wFMCommunicate OK [17:23:37]wFMCommunicate request_size=255 [17:23:37]MH_SAM_APDU [17:23:37]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E4 34 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 DD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B0 00 00 00 F4 03 04 00 18 14 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 42 95 01 00 35 04 06 00 5F [17:23:37]Write to MH i2c: E2 02 01 09 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 E4 34 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 DD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B0 00 00 00 F4 03 04 00 18 14 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 42 95 01 00 35 04 06 00 5F 00 00 CD [17:23:37]Write i2c OK [17:23:37]MH_I2C_Read... [17:23:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:23:37]Read from MH i2c: E2 [17:23:37]MH_I2C_Read... [17:23:37]Read from MH i2c: E2 03 00 [17:23:37]MH_I2C_Read... [17:23:37]Read from MH i2c: E2 03 00 09 03 00 90 00 80 [17:23:37]RAPDU: 90 00 [17:23:37]wFMCommunicate OK [17:23:37]wFMCommunicate request_size=10 [17:23:37]MH_SAM_APDU [17:23:37]CAPDU: 80 0D 02 02 05 D9 70 DA 1C BA [17:23:37]Write to MH i2c: E2 0D 00 0A 03 80 0D 02 02 05 00 D9 70 DA 1C BA 00 00 8A [17:23:37]Write i2c OK [17:23:37]MH_I2C_Read... [17:23:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:23:37]Read from MH i2c: E2 [17:23:37]MH_I2C_Read... [17:23:37]Read from MH i2c: E2 03 00 [17:23:37]MH_I2C_Read... [17:23:37]Read from MH i2c: E2 03 00 0A 03 00 90 00 81 [17:23:37]RAPDU: 90 00 [17:23:37]wFMCommunicate OK [17:23:37]wFMCommunicate request_size=4 [17:23:37]MH_SAM_APDU [17:23:37]CAPDU: 80 0D 03 02 [17:23:37]Write to MH i2c: E2 08 00 0B 03 80 0D 03 02 00 00 00 00 89 [17:23:37]Write i2c OK [17:23:37]MH_I2C_Read... [17:23:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:23:37]Read from MH i2c: E2 [17:23:37]MH_I2C_Read... [17:23:37]Read from MH i2c: E2 0B 00 [17:23:37]MH_I2C_Read... [17:23:37]Read from MH i2c: E2 0B 00 0B 03 00 07 2C 71 CA 2B 29 2B BD 90 00 34 [17:23:37]RAPDU: 07 2C 71 CA 2B 29 2B BD 90 00 [17:23:37]wFMCommunicate OK [17:23:37]SAM_PROTO_SignData done [17:23:37]FM_MakeSignedData done [17:23:37]CreateOFDProtocolMessage [17:23:37]wFMCommunicate request_size=4 [17:23:37]MH_SAM_APDU [17:23:37]CAPDU: 80 11 00 00 [17:23:37]Write to MH i2c: E2 08 00 0C 03 80 11 00 00 00 00 00 00 89 [17:23:37]Write i2c OK [17:23:37]MH_I2C_Read... [17:23:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:23:37]Read from MH i2c: E2 [17:23:37]MH_I2C_Read... [17:23:37]Read from MH i2c: E2 17 00 [17:23:37]MH_I2C_Read... [17:23:37]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 39 33 90 00 DC [17:23:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [17:23:37]wFMCommunicate OK [17:23:37]CreateOFDProtocolMessage done [17:23:37]OFDSenderStorePacket 103746 [17:23:37]StoreOFDPacket docnum=103746 [17:23:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 E0 C2 07 01 B3 3E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E4 34 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 DD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B0 00 00 00 F4 03 04 00 18 14 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 42 95 01 00 35 04 06 00 5F D9 70 DA 1C BA 07 2C 71 CA 2B 29 2B BD [17:23:37]CheckFolder [17:23:37]dirname=/storage/ofd_packets [17:23:37]CheckFolder done [17:23:37]ProducePacketName [17:23:37]name=ofd_packets/00103746 [17:23:37]NVStorageSaveData ofd_packets/00103746 [17:23:37]File name is /storage/ofd_packets/00103746 [17:23:37]Write 301 bytes [17:23:37]NVStorageSaveData done [17:23:37]OFDSenderStorePacket done [17:23:37]KKMCreateOFDPacket done [17:23:37]NVStorageSaveData kkm_last_timestamp [17:23:37]File name is /storage/kkm_last_timestamp [17:23:37]Write 4 bytes [17:23:37]NVStorageSaveData done [17:23:37]ExternCall_PrintAddStr [17:23:37]wPrintStart [17:23:37]Write to MH i2c: 01 00 00 0D 03 10 [17:23:37]Write i2c OK [17:23:37]MH_I2C_Read... [17:23:37]Read from MH i2c: 01 [17:23:37]MH_I2C_Read... [17:23:37]Read from MH i2c: 01 07 00 [17:23:37]MH_I2C_Read... [17:23:37]Read from MH i2c: 01 07 00 0D 03 00 00 00 00 00 FF 0F 25 [17:23:37]RasterBufferAndPrint [17:23:37]line Счет N : (1)673030 [17:23:37]line ИНН: 02508201610067 [17:23:37]line Контрольно-Кассовый Чек [17:23:37]line ПРОДАЖА [17:23:37]line ТРК (МРК, ГНК) : 31 [17:23:37]line Товар: 2710124500 [17:23:37]line Аи-95-К-5 [17:23:37]line 13.540 * 73.90 [17:23:37]line = 1000.61 [17:23:37]line НДС 12% НСП 1% [17:23:37]line > о реализуемом товаре [17:23:37]line ОКРУГЛЕНИЕ: -0.61 [17:23:37]line ИТОГО: 1000.00 [17:23:37]line Внесено: 1000.00 [17:23:37]line СДАЧА: 0.00 [17:23:37]line НСП 1% : 8.85 [17:23:37]line НДС 12% : 106.26 [17:23:37]line Наличными: 1000.00 [17:23:37]line Безнал.: 0.00 [17:23:37]line Место: АЗС № 120 "Партнер Нефть" [17:23:37]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [17:23:37]line СНО: Общий режим [17:23:37]line Чек 176 19.06.2024 17:23 [17:23:37]line Смена: 353 ФФД: 1.0 [17:23:37]line ЗНМ: 0300000164 [17:23:37]line РНМ: 0000000000092785 [17:23:37]line Версия ККМ: 001 [17:23:37]line ФМ: 0000000000875093 [17:23:37]line ФД: 103746 [17:23:37]line ФПД: 105387505884346 [17:23:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T172336&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103746&fm=105387505884346&tin=02508201610067®Number=0000000000092785&sum=100000 [17:23:37]OFD Sender: Processing packet 103746 [packets to send 17, broken 16] [17:23:37]ProducePacketName [17:23:37]name=ofd_packets/00103746 [17:23:37]OFD Sender: To server: pG, [17:23:37]CommunicateWithHost lk.salyk.kg:30040 [17:23:37]ConnectInit lk.salyk.kg [17:23:37]written 0, free lines is 4095 [17:23:37]Connected sock=9 [17:23:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 E0 C2 07 01 B3 3E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E4 34 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 DD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B0 00 00 00 F4 03 04 00 18 14 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 42 95 01 00 35 04 06 00 5F D9 70 DA 1C BA 07 2C 71 CA 2B 29 2B BD [17:23: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 39 33 4F 00 00 00 3B EA 47 00 10 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 39 33 10 04 04 00 42 95 01 00 F4 03 04 00 A0 BA 72 66 B6 04 01 00 00 CC FC 3A 15 83 A2 C8 85 [17:23:38]CommunicateWithHost err = 0 [17:23:38]CheckOFDResponse [17:23:38]1017 (14) - 77093643461234 [17:23:38]1041 (16) - 0000000000875093 [17:23:38]1040 (4) - 103746 [17:23:38]1012 (4) - 19.06.2024 11:01 [17:23:38]1206 (1) - 0 [17:23:38]OFD Sender: Remove packet 103746 [17:23:38]ProducePacketName [17:23:38]name=ofd_packets/00103746 [17:23:38]NVStorageDeleteData [17:23:38]Write to MH i2c: 01 00 00 38 03 3B [17:23:38]Write i2c OK [17:23:38]MH_I2C_Read... [17:23:38]Read from MH i2c: 01 [17:23:38]MH_I2C_Read... [17:23:38]Read from MH i2c: 01 07 00 [17:23:38]MH_I2C_Read... [17:23:38]Read from MH i2c: 01 07 00 38 03 00 00 00 00 00 E2 0C 30 [17:23:38]RasterBufferAndPrint [17:23:38]line [17:23:38]line [17:23:38]line [17:23:38]line [17:23:38]line [17:23:38]written 0, free lines is 3304 [17:23:38]MH_Cut [17:23:38]Write to MH i2c: D1 01 00 3F 03 01 14 [17:23:38]Write i2c OK [17:23:38]MH_I2C_Read... [17:23:38]Read from MH i2c: D1 [17:23:38]MH_I2C_Read... [17:23:38]Read from MH i2c: D1 01 00 [17:23:38]MH_I2C_Read... [17:23:38]Read from MH i2c: D1 01 00 3F 03 00 13 [17:23:38]Write to MH i2c: 01 00 00 40 03 43 [17:23:38]Write i2c OK [17:23:38]MH_I2C_Read... [17:23:38]OFD Sender: No OFD packet to send [17:23:38]*** Cut start [17:23:38]*** Partial cut [17:23:38]*** CUTSNS_PIN = 1 [17:23:39]*** CUTSNS_PIN = 0 [17:23:39]*** Brake cut motor [17:23:39]Read from MH i2c: 01 [17:23:39]MH_I2C_Read... [17:23:39]*** Stop cut motor [17:23:39]*** Cut end [17:23:39]Read from MH i2c: 01 07 00 [17:23:39]MH_I2C_Read... [17:23:39]Read from MH i2c: 01 07 00 40 03 00 00 00 00 00 FF 0F 58 [17:23:39]process_action close_receipt done [17:23:39]requested_data is exist [17:23:39]produce_requested_data [17:23:39]requested_item fm.sn is exist - process it [17:23:39]wFMCommunicate request_size=4 [17:23:39]MH_SAM_APDU [17:23:39]CAPDU: 80 11 00 00 [17:23:39]Write to MH i2c: E2 08 00 41 03 80 11 00 00 00 00 00 00 BE [17:23:39]Write i2c OK [17:23:39]MH_I2C_Read... [17:23:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:23:39]Read from MH i2c: E2 [17:23:39]MH_I2C_Read... [17:23:39]Read from MH i2c: E2 17 00 [17:23:39]MH_I2C_Read... [17:23:39]Read from MH i2c: E2 17 00 41 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 11 [17:23:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [17:23:39]wFMCommunicate OK [17:23:39]requested_item fd.num is exist - process it [17:23:39]SAM_PROTO_GetFieldsCounters [17:23:39]wFMCommunicate request_size=4 [17:23:39]MH_SAM_APDU [17:23:39]CAPDU: 80 13 00 00 [17:23:39]Write to MH i2c: E2 08 00 42 03 80 13 00 00 00 00 00 00 C1 [17:23:39]Write i2c OK [17:23:39]MH_I2C_Read... [17:23:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:23:39]Read from MH i2c: E2 [17:23:39]MH_I2C_Read... [17:23:39]Read from MH i2c: E2 62 00 [17:23:39]MH_I2C_Read... [17:23:39]Read from MH i2c: E2 62 00 42 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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 42 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 B0 00 00 00 5E 04 04 00 B0 00 00 00 57 04 04 00 B1 00 00 00 19 04 04 00 00 00 00 00 90 00 32 [17:23:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 42 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 B0 00 00 00 5E 04 04 00 B0 00 00 00 57 04 04 00 B1 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:23:39]wFMCommunicate OK [17:23:39]SAM_PROTO_GetFieldsCounters done [17:23:39]requested_item shift.num is exist - process it [17:23:39]requested_item shift.opened is exist - process it [17:23:39]req_shift_opened [17:23:39]FM_GetShiftState [17:23:39]SAM_PROTO_GetShiftState [17:23:39]wFMCommunicate request_size=4 [17:23:39]MH_SAM_APDU [17:23:39]CAPDU: 80 13 01 00 [17:23:39]Write to MH i2c: E2 08 00 43 03 80 13 01 00 00 00 00 00 C3 [17:23:39]Write i2c OK [17:23:39]MH_I2C_Read... [17:23:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:23:39]Read from MH i2c: E2 [17:23:39]MH_I2C_Read... [17:23:39]Read from MH i2c: E2 0E 00 [17:23:39]MH_I2C_Read... [17:23:39]Read from MH i2c: E2 0E 00 43 03 00 09 00 01 04 26 72 66 00 00 00 00 90 00 D1 [17:23:39]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [17:23:39]wFMCommunicate OK [17:23:39]SAM_PROTO_GetShiftState done [17:23:39]FM_GetShiftState done [17:23:39]req_shift_opened done [17:23:39]requested_item shift.open_date is exist - process it [17:23:39]req_shift_open_date [17:23:39]req_shift_open_date done [17:23:39]produce_requested_data done [17:23:39]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103746,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [17:23:39]process_action_free close_receipt [17:23:39]json_value_free [17:23:39]json_value_free done [17:23:39]process_json_proto returns [17:23:39]Send response to host [17:23:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103746,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [17:23:39]free response buf [17:23:39]execute_script done [17:23:39]execute_script returns [17:23:39]free content buf [17:23:39]Sock 8.Close socket [17:23:39]Sock 8.Thread stoped [17:23:43]OFD Sender: No OFD packet to send [17:23:48]OFD Sender: No OFD packet to send [17:23:53]OFD Sender: No OFD packet to send [17:23:58]OFD Sender: No OFD packet to send [17:24:03]OFD Sender: No OFD packet to send [17:24:08]OFD Sender: No OFD packet to send [17:24:13]OFD Sender: No OFD packet to send [17:24:18]OFD Sender: No OFD packet to send [17:24:23]OFD Sender: No OFD packet to send [17:24:28]OFD Sender: No OFD packet to send [17:24:33]OFD Sender: No OFD packet to send [17:24:38]OFD Sender: No OFD packet to send [17:24:43]OFD Sender: No OFD packet to send [17:24:48]OFD Sender: No OFD packet to send [17:24:53]OFD Sender: No OFD packet to send [17:24:58]OFD Sender: No OFD packet to send [17:25:03]OFD Sender: No OFD packet to send [17:25:08]OFD Sender: No OFD packet to send [17:25:13]OFD Sender: No OFD packet to send [17:25:18]OFD Sender: No OFD packet to send [17:25:23]OFD Sender: No OFD packet to send [17:25:24]accept exits with 10 [17:25:24]New connection [17:25:24]New thread 3066797412 created [17:25:24]Thread 3066940772 joined [17:25:24]Waiting for new connection... [17:25:24] Sock 10.Parse request [17:25:24]Sock 10.Check first char [17:25:24]Sock 10.First char is OK [17:25:24]request: POST /json_proto HTTP/1.0 [17:25:24]Method: POST [17:25:24]URL: /json_proto [17:25:24]Method is POST - this is cgi request [17:25:24]url: /json_proto [17:25:24]query_string will be loaded in cgi processing [17:25:24]execute_cgi json_proto POST (null) [17:25:24]execute_cgi path=json_proto method=POST [17:25:24]POST find Content-Length [17:25:24]Host: 172.17.38.133:8080 [17:25:24]Content-Length: 1207 [17:25:24]Content-Type: application/json [17:25:24] [17:25:24]POST finish read [17:25:24]Found Content-Length = 1207 [17:25:24]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 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. \u000A\u0421\u0447\u0435\u0442 N : (1)673031\u000A19.06.2024 17:02\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 42\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 29.820 x 66.40\u000A\u0418\u0422\u041E\u0413: 1980.05\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\u000A53374\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:25:24]execute_script... [17:25:24]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 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. \u000A\u0421\u0447\u0435\u0442 N : (1)673031\u000A19.06.2024 17:02\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 42\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 29.820 x 66.40\u000A\u0418\u0422\u041E\u0413: 1980.05\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\u000A53374\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:25:24]POST & json_proto [17:25:24]process_json_proto [17:25:24]json parsed OK: [17:25:24]protocol is kg_v1.0 [17:25:24]action value=print_text [17:25:24]process_action print_text [17:25:24]cmd_print_text [17:25:24]ExternCall_PrintAddStr [17:25:24]wPrintStart [17:25:24]Write to MH i2c: 01 00 00 44 03 47 [17:25:24]Write i2c OK [17:25:24]MH_I2C_Read... [17:25:24]Read from MH i2c: 01 [17:25:24]MH_I2C_Read... [17:25:24]Read from MH i2c: 01 07 00 [17:25:24]MH_I2C_Read... [17:25:24]Read from MH i2c: 01 07 00 44 03 00 00 00 00 00 FF 0F 5C [17:25:24]RasterBufferAndPrint [17:25:24]line *****ТОВАРНЫЙ ЧЕК***** [17:25:24]line АЗС 120 [17:25:24]line Партнер нефть [17:25:24]line 02508201610067 [17:25:24]line Кассир : Байбугуева Г. [17:25:24]line Счет N : (1)673031 [17:25:24]line 19.06.2024 17:02 [17:25:24]line ПРОДАЖА [17:25:24]line ТРК (МРК, ГНК): 42 [17:25:24]line Вид ГСМ : 2710124130 [17:25:24]line Аи-92-К-5 [17:25:24]line 29.820 x 66.40 [17:25:24]line ИТОГ: 1980.05 [17:25:24]line Тип оплаты: Талоны: Топливная Карта [17:25:24]line 53374 [17:25:24]line ______________________ [17:25:24]line (подпись) [17:25:24]written 0, free lines is 4095 [17:25:24]Write to MH i2c: 01 00 00 58 03 5B [17:25:24]Write i2c OK [17:25:24]MH_I2C_Read... [17:25:24]Read from MH i2c: 01 [17:25:24]MH_I2C_Read... [17:25:24]Read from MH i2c: 01 07 00 [17:25:24]MH_I2C_Read... [17:25:24]Read from MH i2c: 01 07 00 58 03 00 00 00 00 00 11 0E 81 [17:25:24]RasterBufferAndPrint [17:25:24]line [17:25:24]line [17:25:24]line [17:25:24]line [17:25:24]line [17:25:24]written 0, free lines is 3603 [17:25:24]MH_Cut [17:25:24]Write to MH i2c: D1 01 00 5F 03 01 34 [17:25:24]Write i2c OK [17:25:24]MH_I2C_Read... [17:25:24]Read from MH i2c: D1 [17:25:24]MH_I2C_Read... [17:25:24]Read from MH i2c: D1 01 00 [17:25:24]MH_I2C_Read... [17:25:24]Read from MH i2c: D1 01 00 5F 03 00 33 [17:25:24]Write to MH i2c: 01 00 00 60 03 63 [17:25:24]Write i2c OK [17:25:24]MH_I2C_Read... [17:25:24]*** Cut start [17:25:24]*** Partial cut [17:25:24]*** CUTSNS_PIN = 1 [17:25:24]*** CUTSNS_PIN = 0 [17:25:25]*** Brake cut motor [17:25:25]Read from MH i2c: 01 [17:25:25]MH_I2C_Read... [17:25:25]Read from MH i2c: 01 07 00 [17:25:25]MH_I2C_Read... [17:25:25]*** Stop cut motor [17:25:25]*** Cut end [17:25:25]Read from MH i2c: 01 07 00 60 03 00 00 00 00 00 FF 0F 78 [17:25:25]process_action print_text done [17:25:25]requested_data is exist [17:25:25]produce_requested_data [17:25:25]requested_item fm.sn is exist - process it [17:25:25]wFMCommunicate request_size=4 [17:25:25]MH_SAM_APDU [17:25:25]CAPDU: 80 11 00 00 [17:25:25]Write to MH i2c: E2 08 00 61 03 80 11 00 00 00 00 00 00 DE [17:25:25]Write i2c OK [17:25:25]MH_I2C_Read... [17:25:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:25:25]Read from MH i2c: E2 [17:25:25]MH_I2C_Read... [17:25:25]Read from MH i2c: E2 17 00 [17:25:25]MH_I2C_Read... [17:25:25]Read from MH i2c: E2 17 00 61 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 31 [17:25:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [17:25:25]wFMCommunicate OK [17:25:25]requested_item fd.num is exist - process it [17:25:25]SAM_PROTO_GetFieldsCounters [17:25:25]wFMCommunicate request_size=4 [17:25:25]MH_SAM_APDU [17:25:25]CAPDU: 80 13 00 00 [17:25:25]Write to MH i2c: E2 08 00 62 03 80 13 00 00 00 00 00 00 E1 [17:25:25]Write i2c OK [17:25:25]MH_I2C_Read... [17:25:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:25:25]Read from MH i2c: E2 [17:25:25]MH_I2C_Read... [17:25:25]Read from MH i2c: E2 62 00 [17:25:25]MH_I2C_Read... [17:25:25]Read from MH i2c: E2 62 00 62 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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 42 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 B0 00 00 00 5E 04 04 00 B0 00 00 00 57 04 04 00 B1 00 00 00 19 04 04 00 00 00 00 00 90 00 52 [17: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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 42 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 B0 00 00 00 5E 04 04 00 B0 00 00 00 57 04 04 00 B1 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:25:25]wFMCommunicate OK [17:25:25]SAM_PROTO_GetFieldsCounters done [17:25:25]requested_item shift.num is exist - process it [17:25:25]requested_item shift.opened is exist - process it [17:25:25]req_shift_opened [17:25:25]FM_GetShiftState [17:25:25]SAM_PROTO_GetShiftState [17:25:25]wFMCommunicate request_size=4 [17:25:25]MH_SAM_APDU [17:25:25]CAPDU: 80 13 01 00 [17:25:25]Write to MH i2c: E2 08 00 63 03 80 13 01 00 00 00 00 00 E3 [17:25:25]Write i2c OK [17:25:25]MH_I2C_Read... [17:25:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:25:25]Read from MH i2c: E2 [17:25:25]MH_I2C_Read... [17:25:25]Read from MH i2c: E2 0E 00 [17:25:25]MH_I2C_Read... [17:25:25]Read from MH i2c: E2 0E 00 63 03 00 09 00 01 04 26 72 66 00 00 00 00 90 00 F1 [17:25:25]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [17:25:25]wFMCommunicate OK [17:25:25]SAM_PROTO_GetShiftState done [17:25:25]FM_GetShiftState done [17:25:25]req_shift_opened done [17:25:25]requested_item shift.open_date is exist - process it [17:25:25]req_shift_open_date [17:25:25]req_shift_open_date done [17:25:25]produce_requested_data done [17:25:25]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103746,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [17:25:25]process_action_free print_text [17:25:25]json_value_free [17:25:25]json_value_free done [17:25:25]process_json_proto returns [17:25:25]Send response to host [17:25:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103746,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [17:25:25]free response buf [17:25:25]execute_script done [17:25:25]execute_script returns [17:25:25]free content buf [17:25:25]Sock 10.Close socket [17:25:25]Sock 10.Thread stoped [17:25:28]OFD Sender: No OFD packet to send [17:25:33]OFD Sender: No OFD packet to send [17:25:38]OFD Sender: No OFD packet to send [17:25:43]OFD Sender: No OFD packet to send [17:25:48]OFD Sender: No OFD packet to send [17:25:53]OFD Sender: No OFD packet to send [17:25:56]accept exits with 8 [17:25:56]New connection [17:25:56]New thread 3066940772 created [17:25:56]Thread 3066797412 joined [17:25:56]Waiting for new connection... [17:25:56] Sock 8.Parse request [17:25:56]Sock 8.Check first char [17:25:56]Sock 8.First char is OK [17:25:56]request: POST /json_proto HTTP/1.0 [17:25:56]Method: POST [17:25:56]URL: /json_proto [17:25:56]Method is POST - this is cgi request [17:25:56]url: /json_proto [17:25:56]query_string will be loaded in cgi processing [17:25:56]execute_cgi json_proto POST (null) [17:25:56]execute_cgi path=json_proto method=POST [17:25:56]POST find Content-Length [17:25:56]Host: 172.17.38.133:8080 [17:25:56]Content-Length: 682 [17:25:56]Content-Type: application/json [17:25:56] [17:25:56]POST finish read [17:25:56]Found Content-Length = 682 [17:25:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673032", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:25:56]execute_script... [17:25: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)673032", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:25:56]POST & json_proto [17:25:56]process_json_proto [17:25:56]json parsed OK: [17:25:56]protocol is kg_v1.0 [17:25:56]action value=close_receipt [17:25:56]process_action close_receipt [17:25:56]cmd_close_receipt [17:25:56]MH_GetDate [17:25:56]Write to MH i2c: F0 00 00 64 03 56 [17:25:56]Write i2c OK [17:25:56]MH_I2C_Read... [17:25:56]Read from MH i2c: F0 [17:25:56]MH_I2C_Read... [17:25:56]Read from MH i2c: F0 09 00 [17:25:56]MH_I2C_Read... [17:25:56]Read from MH i2c: F0 09 00 64 03 00 A4 14 73 66 BD 8F 7C 64 1C [17:25:56]GetLastDocTimeStamp 1718817816 [17:25:56]current date 1718817956 [17:25:56]FM_GetShiftState [17:25:56]SAM_PROTO_GetShiftState [17:25:56]wFMCommunicate request_size=4 [17:25:56]MH_SAM_APDU [17:25:56]CAPDU: 80 13 01 00 [17:25:56]Write to MH i2c: E2 08 00 65 03 80 13 01 00 00 00 00 00 E5 [17:25:56]Write i2c OK [17:25:56]MH_I2C_Read... [17:25:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:25:56]Read from MH i2c: E2 [17:25:56]MH_I2C_Read... [17:25:56]Read from MH i2c: E2 0E 00 [17:25:56]MH_I2C_Read... [17:25:56]Read from MH i2c: E2 0E 00 65 03 00 09 00 01 04 26 72 66 00 00 00 00 90 00 F3 [17:25:56]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [17:25:56]wFMCommunicate OK [17:25:56]SAM_PROTO_GetShiftState done [17:25:56]FM_GetShiftState done [17:25:56]opened in 1718756868 [17:25:56]opened+sec_in_day 1718843268 [17:25:56]quantity*price = 100064 [17:25:56]sum+1 = 100066 [17:25:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.65 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 177 19.06.2024 17:25 Смена: 353 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103747 ФПД: 193526430032244 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T172556&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103747&fm=193526430032244&tin=02508201610067®Number=0000000000092785&sum=100000 [17:25:57]StoreToDocumentArchive [17:25:57]shift 353 fd 103747 [17:25:57]save to /storage/0353/doc_00103747 [17:25:57]save last doc name /storage/0353/doc_00103747 to /storage/kkm_last_doc_name [17:25:57]save OK [17:25:57]Clear old archive folders... [17:25:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:25:57]tlvbuf is 016A39D0 [17:25:57]SAM_PROTO_ClearQueue [17:25:57]wFMCommunicate request_size=4 [17:25:57]MH_SAM_APDU [17:25:57]CAPDU: 80 09 00 00 [17:25:57]Write to MH i2c: E2 08 00 72 03 80 09 00 00 00 00 00 00 E7 [17:25:57]Write i2c OK [17:25:57]MH_I2C_Read... [17:25:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:25:57]Read from MH i2c: E2 [17:25:57]MH_I2C_Read... [17:25:57]Read from MH i2c: E2 03 00 [17:25:57]MH_I2C_Read... [17:25:57]Read from MH i2c: E2 03 00 72 03 00 90 00 E9 [17:25:57]RAPDU: 90 00 [17:25:57]wFMCommunicate OK [17:25:57]SAM_PROTO_ClearQueue done [17:25:57]KKMCreateOFDPacket [17:25:57]OFDProtocolAddRootSTLVToBuf [17:25:57]FM_MakeSignedData [17:25:57]FM_MakeSignedData [17:25:57]SAM_PROTO_SignData [17:25:57]wFMCommunicate request_size=4 [17:25:57]MH_SAM_APDU [17:25:57]CAPDU: 80 0D 01 02 [17:25:57]Write to MH i2c: E2 08 00 73 03 80 0D 01 02 00 00 00 00 EF [17:25:57]Write i2c OK [17:25:57]MH_I2C_Read... [17:25:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:25:57]Read from MH i2c: E2 [17:25:57]MH_I2C_Read... [17:25:57]Read from MH i2c: E2 03 00 [17:25:57]MH_I2C_Read... [17:25:57]Read from MH i2c: E2 03 00 73 03 00 90 00 EA [17:25:57]RAPDU: 90 00 [17:25:57]wFMCommunicate OK [17:25:57]wFMCommunicate request_size=255 [17:25:57]MH_SAM_APDU [17:25:57]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B1 00 00 00 F4 03 04 00 A4 14 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 43 95 01 00 35 04 06 00 B0 [17:25:57]Write to MH i2c: E2 02 01 74 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B1 00 00 00 F4 03 04 00 A4 14 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 43 95 01 00 35 04 06 00 B0 00 00 26 [17:25:57]Write i2c OK [17:25:57]MH_I2C_Read... [17:25:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:25:57]Read from MH i2c: E2 [17:25:57]MH_I2C_Read... [17:25:57]Read from MH i2c: E2 03 00 [17:25:57]MH_I2C_Read... [17:25:57]Read from MH i2c: E2 03 00 74 03 00 90 00 EB [17:25:57]RAPDU: 90 00 [17:25:57]wFMCommunicate OK [17:25:57]wFMCommunicate request_size=10 [17:25:57]MH_SAM_APDU [17:25:57]CAPDU: 80 0D 02 02 05 02 E2 1D E1 74 [17:25:57]Write to MH i2c: E2 0D 00 75 03 80 0D 02 02 05 00 02 E2 1D E1 74 00 00 52 [17:25:57]Write i2c OK [17:25:57]MH_I2C_Read... [17:25:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:25:57]Read from MH i2c: E2 [17:25:57]MH_I2C_Read... [17:25:57]Read from MH i2c: E2 03 00 [17:25:57]MH_I2C_Read... [17:25:57]Read from MH i2c: E2 03 00 75 03 00 90 00 EC [17:25:57]RAPDU: 90 00 [17:25:57]wFMCommunicate OK [17:25:57]wFMCommunicate request_size=4 [17:25:57]MH_SAM_APDU [17:25:57]CAPDU: 80 0D 03 02 [17:25:57]Write to MH i2c: E2 08 00 76 03 80 0D 03 02 00 00 00 00 F4 [17:25:57]Write i2c OK [17:25:57]MH_I2C_Read... [17:25:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:25:57]Read from MH i2c: E2 [17:25:57]MH_I2C_Read... [17:25:57]Read from MH i2c: E2 0B 00 [17:25:57]MH_I2C_Read... [17:25:57]Read from MH i2c: E2 0B 00 76 03 00 23 DF 90 BB 1F 1F B7 49 90 00 80 [17:25:57]RAPDU: 23 DF 90 BB 1F 1F B7 49 90 00 [17:25:57]wFMCommunicate OK [17:25:57]SAM_PROTO_SignData done [17:25:57]FM_MakeSignedData done [17:25:57]CreateOFDProtocolMessage [17:25:57]wFMCommunicate request_size=4 [17:25:57]MH_SAM_APDU [17:25:57]CAPDU: 80 11 00 00 [17:25:57]Write to MH i2c: E2 08 00 77 03 80 11 00 00 00 00 00 00 F4 [17:25:57]Write i2c OK [17:25:57]MH_I2C_Read... [17:25:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:25:57]Read from MH i2c: E2 [17:25:57]MH_I2C_Read... [17:25:57]Read from MH i2c: E2 17 00 [17:25:57]MH_I2C_Read... [17:25:57]Read from MH i2c: E2 17 00 77 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 47 [17:25:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [17:25:57]wFMCommunicate OK [17:25:57]CreateOFDProtocolMessage done [17:25:57]OFDSenderStorePacket 103747 [17:25:57]StoreOFDPacket docnum=103747 [17:25:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 2E DD 07 01 CD 4D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B1 00 00 00 F4 03 04 00 A4 14 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 43 95 01 00 35 04 06 00 B0 02 E2 1D E1 74 23 DF 90 BB 1F 1F B7 49 [17:25:57]CheckFolder [17:25:57]dirname=/storage/ofd_packets [17:25:57]CheckFolder done [17:25:57]ProducePacketName [17:25:57]name=ofd_packets/00103747 [17:25:57]NVStorageSaveData ofd_packets/00103747 [17:25:57]File name is /storage/ofd_packets/00103747 [17:25:57]Write 301 bytes [17:25:57]NVStorageSaveData done [17:25:57]OFDSenderStorePacket done [17:25:57]KKMCreateOFDPacket done [17:25:57]NVStorageSaveData kkm_last_timestamp [17:25:57]File name is /storage/kkm_last_timestamp [17:25:57]Write 4 bytes [17:25:57]NVStorageSaveData done [17:25:57]ExternCall_PrintAddStr [17:25:57]wPrintStart [17:25:57]Write to MH i2c: 01 00 00 78 03 7B [17:25:57]Write i2c OK [17:25:57]MH_I2C_Read... [17:25:57]Read from MH i2c: 01 [17:25:57]MH_I2C_Read... [17:25:57]Read from MH i2c: 01 07 00 [17:25:57]MH_I2C_Read... [17:25:57]Read from MH i2c: 01 07 00 78 03 00 00 00 00 00 FF 0F 90 [17:25:57]RasterBufferAndPrint [17:25:57]line Счет N : (1)673032 [17:25:57]line ИНН: 02508201610067 [17:25:57]line Контрольно-Кассовый Чек [17:25:57]line ПРОДАЖА [17:25:57]line ТРК (МРК, ГНК) : 32 [17:25:57]line Товар: 2710124130 [17:25:57]line Аи-92-К-5 [17:25:57]line 15.070 * 66.40 [17:25:57]line = 1000.65 [17:25:57]line НДС 12% НСП 1% [17:25:57]line > о реализуемом товаре [17:25:57]line ОКРУГЛЕНИЕ: -0.65 [17:25:57]line ИТОГО: 1000.00 [17:25:57]line Внесено: 1000.00 [17:25:57]line СДАЧА: 0.00 [17:25:57]line НСП 1% : 8.85 [17:25:57]line НДС 12% : 106.26 [17:25:57]line Наличными: 1000.00 [17:25:57]line Безнал.: 0.00 [17:25:57]line Место: АЗС № 120 "Партнер Нефть" [17:25:57]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [17:25:57]line СНО: Общий режим [17:25:57]line Чек 177 19.06.2024 17:25 [17:25:57]line Смена: 353 ФФД: 1.0 [17:25:57]line ЗНМ: 0300000164 [17:25:57]line РНМ: 0000000000092785 [17:25:57]line Версия ККМ: 001 [17:25:57]line ФМ: 0000000000875093 [17:25:57]line ФД: 103747 [17:25:57]line ФПД: 193526430032244 [17:25:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T172556&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103747&fm=193526430032244&tin=02508201610067®Number=0000000000092785&sum=100000 [17:25:58]OFD Sender: Processing packet 103747 [packets to send 17, broken 16] [17:25:58]ProducePacketName [17:25:58]name=ofd_packets/00103747 [17:25:58]OFD Sender: To server: pG, [17:25:58]CommunicateWithHost lk.salyk.kg:30040 [17:25:58]ConnectInit lk.salyk.kg [17:25:58]written 0, free lines is 4095 [17:25:58]Connected sock=9 [17:25: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 39 33 0F 01 00 00 2E DD 07 01 CD 4D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B1 00 00 00 F4 03 04 00 A4 14 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 43 95 01 00 35 04 06 00 B0 02 E2 1D E1 74 23 DF 90 BB 1F 1F B7 49 [17:25:58]Write to MH i2c: 01 00 00 A3 03 A6 [17:25:58]Write i2c OK [17:25:58]MH_I2C_Read... [17:25:58]Read from MH i2c: 01 [17:25:58]MH_I2C_Read... [17:25:58]Read from MH i2c: 01 07 00 [17:25:58]MH_I2C_Read... [17:25:58]Read from MH i2c: 01 07 00 A3 03 00 00 00 00 00 E4 0C 9D [17:25:58]RasterBufferAndPrint [17:25:58]line [17:25:58]line [17:25:58]line [17:25:58]line [17:25:58]line [17:25:58]written 0, free lines is 3306 [17:25:58]MH_Cut [17:25:58]Write to MH i2c: D1 01 00 AA 03 01 7F [17:25:58]Write i2c OK [17:25:58]MH_I2C_Read... [17:25:58]Read from MH i2c: D1 [17:25:58]MH_I2C_Read... [17:25:58]Read from MH i2c: D1 01 00 [17:25:58]MH_I2C_Read... [17:25:58]Read from MH i2c: D1 01 00 AA 03 00 7E [17:25:58]Write to MH i2c: 01 00 00 AB 03 AE [17:25:58]Write i2c OK [17:25:58]MH_I2C_Read... [17:25: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 39 33 4F 00 00 00 22 F3 47 00 9A B5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 43 95 01 00 F4 03 04 00 2D BB 72 66 B6 04 01 00 00 C0 B1 F5 4B 9E E5 C7 78 [17:25:58]CommunicateWithHost err = 0 [17:25:58]CheckOFDResponse [17:25:58]1017 (14) - 77093643461234 [17:25:58]1041 (16) - 0000000000875093 [17:25:58]1040 (4) - 103747 [17:25:58]1012 (4) - 19.06.2024 11:04 [17:25:58]1206 (1) - 0 [17:25:58]OFD Sender: Remove packet 103747 [17:25:58]ProducePacketName [17:25:58]name=ofd_packets/00103747 [17:25:58]NVStorageDeleteData [17:25:59]OFD Sender: No OFD packet to send [17:25:59]*** Cut start [17:25:59]*** Partial cut [17:25:59]*** CUTSNS_PIN = 1 [17:25:59]*** CUTSNS_PIN = 0 [17:25:59]*** Brake cut motor [17:25:59]Read from MH i2c: 01 [17:25:59]MH_I2C_Read... [17:25:59]*** Stop cut motor [17:25:59]*** Cut end [17:25:59]Read from MH i2c: 01 07 00 [17:25:59]MH_I2C_Read... [17:25:59]Read from MH i2c: 01 07 00 AB 03 00 00 00 00 00 FF 0F C3 [17:25:59]process_action close_receipt done [17:25:59]requested_data is exist [17:25:59]produce_requested_data [17:25:59]requested_item fm.sn is exist - process it [17:25:59]wFMCommunicate request_size=4 [17:25:59]MH_SAM_APDU [17:25:59]CAPDU: 80 11 00 00 [17:25:59]Write to MH i2c: E2 08 00 AC 03 80 11 00 00 00 00 00 00 29 [17:25:59]Write i2c OK [17:25:59]MH_I2C_Read... [17:25:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:25:59]Read from MH i2c: E2 [17:25:59]MH_I2C_Read... [17:25:59]Read from MH i2c: E2 17 00 [17:25:59]MH_I2C_Read... [17:25:59]Read from MH i2c: E2 17 00 AC 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 7C [17:25:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [17:25:59]wFMCommunicate OK [17:25:59]requested_item fd.num is exist - process it [17:25:59]SAM_PROTO_GetFieldsCounters [17:25:59]wFMCommunicate request_size=4 [17:25:59]MH_SAM_APDU [17:25:59]CAPDU: 80 13 00 00 [17:25:59]Write to MH i2c: E2 08 00 AD 03 80 13 00 00 00 00 00 00 2C [17:25:59]Write i2c OK [17:25:59]MH_I2C_Read... [17:26:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:26:00]Read from MH i2c: E2 [17:26:00]MH_I2C_Read... [17:26:00]Read from MH i2c: E2 62 00 [17:26:00]MH_I2C_Read... [17:26:00]Read from MH i2c: E2 62 00 AD 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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 43 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 B1 00 00 00 5E 04 04 00 B1 00 00 00 57 04 04 00 B2 00 00 00 19 04 04 00 00 00 00 00 90 00 A1 [17:26: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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 43 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 B1 00 00 00 5E 04 04 00 B1 00 00 00 57 04 04 00 B2 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:26:00]wFMCommunicate OK [17:26:00]SAM_PROTO_GetFieldsCounters done [17:26:00]requested_item shift.num is exist - process it [17:26:00]requested_item shift.opened is exist - process it [17:26:00]req_shift_opened [17:26:00]FM_GetShiftState [17:26:00]SAM_PROTO_GetShiftState [17:26:00]wFMCommunicate request_size=4 [17:26:00]MH_SAM_APDU [17:26:00]CAPDU: 80 13 01 00 [17:26:00]Write to MH i2c: E2 08 00 AE 03 80 13 01 00 00 00 00 00 2E [17:26:00]Write i2c OK [17:26:00]MH_I2C_Read... [17:26:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:26:00]Read from MH i2c: E2 [17:26:00]MH_I2C_Read... [17:26:00]Read from MH i2c: E2 0E 00 [17:26:00]MH_I2C_Read... [17:26:00]Read from MH i2c: E2 0E 00 AE 03 00 09 00 01 04 26 72 66 00 00 00 00 90 00 3C [17:26:00]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [17:26:00]wFMCommunicate OK [17:26:00]SAM_PROTO_GetShiftState done [17:26:00]FM_GetShiftState done [17:26:00]req_shift_opened done [17:26:00]requested_item shift.open_date is exist - process it [17:26:00]req_shift_open_date [17:26:00]req_shift_open_date done [17:26:00]produce_requested_data done [17:26:00]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103747,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [17:26:00]process_action_free close_receipt [17:26:00]json_value_free [17:26:00]json_value_free done [17:26:00]process_json_proto returns [17:26:00]Send response to host [17:26:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103747,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [17:26:00]free response buf [17:26:00]execute_script done [17:26:00]execute_script returns [17:26:00]free content buf [17:26:00]Sock 8.Close socket [17:26:00]Sock 8.Thread stoped [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:21]accept exits with 10 [17:30:21]New connection [17:30:21]New thread 3066797412 created [17:30:21]Thread 3066940772 joined [17:30:21]Waiting for new connection... [17:30:21] Sock 10.Parse request [17:30:21]Sock 10.Check first char [17:30:21]Sock 10.First char is OK [17:30:21]request: POST /json_proto HTTP/1.0 [17:30:21]Method: POST [17:30:21]URL: /json_proto [17:30:21]Method is POST - this is cgi request [17:30:21]url: /json_proto [17:30:21]query_string will be loaded in cgi processing [17:30:21]execute_cgi json_proto POST (null) [17:30:21]execute_cgi path=json_proto method=POST [17:30:21]POST find Content-Length [17:30:21]Host: 172.17.38.133:8080 [17:30:21]Content-Length: 677 [17:30:21]Content-Type: application/json [17:30:21] [17:30:21]POST finish read [17:30:21]Found Content-Length = 677 [17:30:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673034", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 6.030, "sum" : 400.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:30:21]execute_script... [17:30:21]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673034", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 6.030, "sum" : 400.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:30:21]POST & json_proto [17:30:21]process_json_proto [17:30:21]json parsed OK: [17:30:21]protocol is kg_v1.0 [17:30:21]action value=close_receipt [17:30:21]process_action close_receipt [17:30:21]cmd_close_receipt [17:30:21]MH_GetDate [17:30:21]Write to MH i2c: F0 00 00 AF 03 A1 [17:30:21]Write i2c OK [17:30:21]MH_I2C_Read... [17:30:21]Read from MH i2c: F0 [17:30:21]MH_I2C_Read... [17:30:21]Read from MH i2c: F0 09 00 [17:30:21]MH_I2C_Read... [17:30:21]Read from MH i2c: F0 09 00 AF 03 00 AE 15 73 66 BD 8F 7C 64 72 [17:30:21]GetLastDocTimeStamp 1718817956 [17:30:21]current date 1718818222 [17:30:21]FM_GetShiftState [17:30:21]SAM_PROTO_GetShiftState [17:30:21]wFMCommunicate request_size=4 [17:30:21]MH_SAM_APDU [17:30:21]CAPDU: 80 13 01 00 [17:30:21]Write to MH i2c: E2 08 00 B0 03 80 13 01 00 00 00 00 00 30 [17:30:21]Write i2c OK [17:30:21]MH_I2C_Read... [17:30:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:30:21]Read from MH i2c: E2 [17:30:21]MH_I2C_Read... [17:30:21]Read from MH i2c: E2 0E 00 [17:30:21]MH_I2C_Read... [17:30:21]Read from MH i2c: E2 0E 00 B0 03 00 09 00 01 04 26 72 66 00 00 00 00 90 00 3E [17:30:21]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [17:30:21]wFMCommunicate OK [17:30:21]SAM_PROTO_GetShiftState done [17:30:21]FM_GetShiftState done [17:30:21]opened in 1718756868 [17:30:21]opened+sec_in_day 1718843268 [17:30:21]quantity*price = 40039 [17:30:21]sum+1 = 40040 [17:30:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.39 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.52 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 178 19.06.2024 17:30 Смена: 353 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103748 ФПД: 215792255561146 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T173022&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103748&fm=215792255561146&tin=02508201610067®Number=0000000000092785&sum=40000 [17:30:23]StoreToDocumentArchive [17:30:23]shift 353 fd 103748 [17:30:23]save to /storage/0353/doc_00103748 [17:30:23]save last doc name /storage/0353/doc_00103748 to /storage/kkm_last_doc_name [17:30:23]save OK [17:30:23]Clear old archive folders... [17:30:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:30:23]tlvbuf is 016DBC20 [17:30:23]SAM_PROTO_ClearQueue [17:30:23]wFMCommunicate request_size=4 [17:30:23]MH_SAM_APDU [17:30:23]CAPDU: 80 09 00 00 [17:30:23]Write to MH i2c: E2 08 00 BD 03 80 09 00 00 00 00 00 00 32 [17:30:23]Write i2c OK [17:30:23]MH_I2C_Read... [17:30:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:30:23]Read from MH i2c: E2 [17:30:23]MH_I2C_Read... [17:30:23]Read from MH i2c: E2 03 00 [17:30:23]MH_I2C_Read... [17:30:23]Read from MH i2c: E2 03 00 BD 03 00 90 00 34 [17:30:23]RAPDU: 90 00 [17:30:23]wFMCommunicate OK [17:30:23]SAM_PROTO_ClearQueue done [17:30:23]KKMCreateOFDPacket [17:30:23]OFDProtocolAddRootSTLVToBuf [17:30:23]FM_MakeSignedData [17:30:23]FM_MakeSignedData [17:30:23]SAM_PROTO_SignData [17:30:23]wFMCommunicate request_size=4 [17:30:23]MH_SAM_APDU [17:30:23]CAPDU: 80 0D 01 02 [17:30:23]Write to MH i2c: E2 08 00 BE 03 80 0D 01 02 00 00 00 00 3A [17:30:23]Write i2c OK [17:30:23]MH_I2C_Read... [17:30:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:30:23]Read from MH i2c: E2 [17:30:23]MH_I2C_Read... [17:30:23]Read from MH i2c: E2 03 00 [17:30:23]MH_I2C_Read... [17:30:23]Read from MH i2c: E2 03 00 BE 03 00 90 00 35 [17:30:23]RAPDU: 90 00 [17:30:23]wFMCommunicate OK [17:30:23]wFMCommunicate request_size=255 [17:30:23]MH_SAM_APDU [17:30:23]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B2 00 00 00 F4 03 04 00 AE 15 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 44 95 01 00 35 04 06 00 C4 [17:30:23]Write to MH i2c: E2 02 01 BF 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 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B2 00 00 00 F4 03 04 00 AE 15 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 44 95 01 00 35 04 06 00 C4 00 00 10 [17:30:23]Write i2c OK [17:30:23]MH_I2C_Read... [17:30:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:30:23]Read from MH i2c: E2 [17:30:23]MH_I2C_Read... [17:30:23]Read from MH i2c: E2 03 00 [17:30:23]MH_I2C_Read... [17:30:23]Read from MH i2c: E2 03 00 BF 03 00 90 00 36 [17:30:23]RAPDU: 90 00 [17:30:23]wFMCommunicate OK [17:30:23]wFMCommunicate request_size=10 [17:30:23]MH_SAM_APDU [17:30:23]CAPDU: 80 0D 02 02 05 43 0C BC ED BA [17:30:23]Write to MH i2c: E2 0D 00 C0 03 80 0D 02 02 05 00 43 0C BC ED BA 00 00 F9 [17:30:23]Write i2c OK [17:30:23]MH_I2C_Read... [17:30:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:30:23]Read from MH i2c: E2 [17:30:23]MH_I2C_Read... [17:30:23]Read from MH i2c: E2 03 00 [17:30:23]MH_I2C_Read... [17:30:23]Read from MH i2c: E2 03 00 C0 03 00 90 00 37 [17:30:23]RAPDU: 90 00 [17:30:23]wFMCommunicate OK [17:30:23]wFMCommunicate request_size=4 [17:30:23]MH_SAM_APDU [17:30:23]CAPDU: 80 0D 03 02 [17:30:23]Write to MH i2c: E2 08 00 C1 03 80 0D 03 02 00 00 00 00 3F [17:30:23]Write i2c OK [17:30:23]MH_I2C_Read... [17:30:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:30:23]Read from MH i2c: E2 [17:30:23]MH_I2C_Read... [17:30:23]Read from MH i2c: E2 0B 00 [17:30:23]MH_I2C_Read... [17:30:23]Read from MH i2c: E2 0B 00 C1 03 00 BA 52 B5 12 13 05 76 E4 90 00 85 [17:30:23]RAPDU: BA 52 B5 12 13 05 76 E4 90 00 [17:30:23]wFMCommunicate OK [17:30:23]SAM_PROTO_SignData done [17:30:23]FM_MakeSignedData done [17:30:23]CreateOFDProtocolMessage [17:30:23]wFMCommunicate request_size=4 [17:30:23]MH_SAM_APDU [17:30:23]CAPDU: 80 11 00 00 [17:30:23]Write to MH i2c: E2 08 00 C2 03 80 11 00 00 00 00 00 00 3F [17:30:23]Write i2c OK [17:30:23]MH_I2C_Read... [17:30:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:30:23]Read from MH i2c: E2 [17:30:23]MH_I2C_Read... [17:30:23]Read from MH i2c: E2 17 00 [17:30:23]MH_I2C_Read... [17:30:23]Read from MH i2c: E2 17 00 C2 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 92 [17:30:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [17:30:23]wFMCommunicate OK [17:30:23]CreateOFDProtocolMessage done [17:30:23]OFDSenderStorePacket 103748 [17:30:23]StoreOFDPacket docnum=103748 [17:30:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 F4 6B 07 01 B3 11 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B2 00 00 00 F4 03 04 00 AE 15 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 44 95 01 00 35 04 06 00 C4 43 0C BC ED BA BA 52 B5 12 13 05 76 E4 [17:30:23]CheckFolder [17:30:23]dirname=/storage/ofd_packets [17:30:23]CheckFolder done [17:30:23]ProducePacketName [17:30:23]name=ofd_packets/00103748 [17:30:23]NVStorageSaveData ofd_packets/00103748 [17:30:23]File name is /storage/ofd_packets/00103748 [17:30:23]Write 301 bytes [17:30:23]NVStorageSaveData done [17:30:23]OFDSenderStorePacket done [17:30:23]KKMCreateOFDPacket done [17:30:23]NVStorageSaveData kkm_last_timestamp [17:30:23]File name is /storage/kkm_last_timestamp [17:30:23]Write 4 bytes [17:30:23]NVStorageSaveData done [17:30:23]ExternCall_PrintAddStr [17:30:23]wPrintStart [17:30:23]Write to MH i2c: 01 00 00 C3 03 C6 [17:30:23]Write i2c OK [17:30:23]MH_I2C_Read... [17:30:23]Read from MH i2c: 01 [17:30:23]MH_I2C_Read... [17:30:23]Read from MH i2c: 01 07 00 [17:30:23]MH_I2C_Read... [17:30:23]Read from MH i2c: 01 07 00 C3 03 00 00 00 00 00 FF 0F DB [17:30:23]RasterBufferAndPrint [17:30:23]line Счет N : (1)673034 [17:30:23]line ИНН: 02508201610067 [17:30:23]line Контрольно-Кассовый Чек [17:30:23]line ПРОДАЖА [17:30:23]line ТРК (МРК, ГНК) : 42 [17:30:23]line Товар: 2710124130 [17:30:23]line Аи-92-К-5 [17:30:23]line 6.030 * 66.40 [17:30:23]line = 400.39 [17:30:23]line НДС 12% НСП 1% [17:30:23]line > о реализуемом товаре [17:30:23]line ОКРУГЛЕНИЕ: -0.39 [17:30:23]line ИТОГО: 400.00 [17:30:23]line Внесено: 400.00 [17:30:23]line СДАЧА: 0.00 [17:30:23]line НСП 1% : 3.54 [17:30:23]line НДС 12% : 42.52 [17:30:23]line Наличными: 400.00 [17:30:23]line Безнал.: 0.00 [17:30:23]line Место: АЗС № 120 "Партнер Нефть" [17:30:23]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [17:30:23]line СНО: Общий режим [17:30:23]line Чек 178 19.06.2024 17:30 [17:30:23]line Смена: 353 ФФД: 1.0 [17:30:23]line ЗНМ: 0300000164 [17:30:23]line РНМ: 0000000000092785 [17:30:23]line Версия ККМ: 001 [17:30:23]line ФМ: 0000000000875093 [17:30:23]line ФД: 103748 [17:30:23]line ФПД: 215792255561146 [17:30:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T173022&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103748&fm=215792255561146&tin=02508201610067®Number=0000000000092785&sum=40000 [17:30:23]OFD Sender: Processing packet 103748 [packets to send 17, broken 16] [17:30:23]ProducePacketName [17:30:23]name=ofd_packets/00103748 [17:30:23]OFD Sender: To server: pG, [17:30:23]CommunicateWithHost lk.salyk.kg:30040 [17:30:23]ConnectInit lk.salyk.kg [17:30:23]written 0, free lines is 4095 [17:30:24]Connected sock=9 [17:30:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 F4 6B 07 01 B3 11 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B2 00 00 00 F4 03 04 00 AE 15 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 44 95 01 00 35 04 06 00 C4 43 0C BC ED BA BA 52 B5 12 13 05 76 E4 [17:30: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 39 33 4F 00 00 00 FE 7A 47 00 E6 37 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 44 95 01 00 F4 03 04 00 36 BC 72 66 B6 04 01 00 00 44 00 F1 25 4A A2 19 0D [17:30:24]CommunicateWithHost err = 0 [17:30:24]CheckOFDResponse [17:30:24]1017 (14) - 77093643461234 [17:30:24]1041 (16) - 0000000000875093 [17:30:24]1040 (4) - 103748 [17:30:24]1012 (4) - 19.06.2024 11:08 [17:30:24]1206 (1) - 0 [17:30:24]OFD Sender: Remove packet 103748 [17:30:24]ProducePacketName [17:30:24]name=ofd_packets/00103748 [17:30:24]NVStorageDeleteData [17:30:24]Write to MH i2c: 01 00 00 EE 03 F1 [17:30:24]Write i2c OK [17:30:24]MH_I2C_Read... [17:30:24]Read from MH i2c: 01 [17:30:24]MH_I2C_Read... [17:30:24]Read from MH i2c: 01 07 00 [17:30:24]MH_I2C_Read... [17:30:24]Read from MH i2c: 01 07 00 EE 03 00 00 00 00 00 D9 0C DD [17:30:24]RasterBufferAndPrint [17:30:24]line [17:30:24]line [17:30:24]line [17:30:24]line [17:30:24]line [17:30:24]written 0, free lines is 3296 [17:30:24]MH_Cut [17:30:24]Write to MH i2c: D1 01 00 F5 03 01 CA [17:30:24]Write i2c OK [17:30:24]MH_I2C_Read... [17:30:24]Read from MH i2c: D1 [17:30:24]MH_I2C_Read... [17:30:24]Read from MH i2c: D1 01 00 [17:30:24]MH_I2C_Read... [17:30:24]Read from MH i2c: D1 01 00 F5 03 00 C9 [17:30:24]Write to MH i2c: 01 00 00 F6 03 F9 [17:30:24]Write i2c OK [17:30:24]MH_I2C_Read... [17:30:24]OFD Sender: No OFD packet to send [17:30:25]*** Cut start [17:30:25]*** Partial cut [17:30:25]*** CUTSNS_PIN = 1 [17:30:25]*** CUTSNS_PIN = 0 [17:30:25]*** Brake cut motor [17:30:25]Read from MH i2c: 01 [17:30:25]MH_I2C_Read... [17:30:25]*** Stop cut motor [17:30:25]*** Cut end [17:30:25]Read from MH i2c: 01 07 00 [17:30:25]MH_I2C_Read... [17:30:25]Read from MH i2c: 01 07 00 F6 03 00 00 00 00 00 FF 0F 0E [17:30:25]process_action close_receipt done [17:30:25]requested_data is exist [17:30:25]produce_requested_data [17:30:25]requested_item fm.sn is exist - process it [17:30:25]wFMCommunicate request_size=4 [17:30:25]MH_SAM_APDU [17:30:25]CAPDU: 80 11 00 00 [17:30:25]Write to MH i2c: E2 08 00 F7 03 80 11 00 00 00 00 00 00 74 [17:30:25]Write i2c OK [17:30:25]MH_I2C_Read... [17:30:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:30:25]Read from MH i2c: E2 [17:30:25]MH_I2C_Read... [17:30:25]Read from MH i2c: E2 17 00 [17:30:25]MH_I2C_Read... [17:30:25]Read from MH i2c: E2 17 00 F7 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 C7 [17:30:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [17:30:25]wFMCommunicate OK [17:30:25]requested_item fd.num is exist - process it [17:30:25]SAM_PROTO_GetFieldsCounters [17:30:25]wFMCommunicate request_size=4 [17:30:25]MH_SAM_APDU [17:30:25]CAPDU: 80 13 00 00 [17:30:25]Write to MH i2c: E2 08 00 F8 03 80 13 00 00 00 00 00 00 77 [17:30:25]Write i2c OK [17:30:25]MH_I2C_Read... [17:30:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:30:25]Read from MH i2c: E2 [17:30:25]MH_I2C_Read... [17:30:25]Read from MH i2c: E2 62 00 [17:30:25]MH_I2C_Read... [17:30:25]Read from MH i2c: E2 62 00 F8 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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 44 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 B2 00 00 00 5E 04 04 00 B2 00 00 00 57 04 04 00 B3 00 00 00 19 04 04 00 00 00 00 00 90 00 F0 [17:30:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 44 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 B2 00 00 00 5E 04 04 00 B2 00 00 00 57 04 04 00 B3 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:30:25]wFMCommunicate OK [17:30:25]SAM_PROTO_GetFieldsCounters done [17:30:25]requested_item shift.num is exist - process it [17:30:25]requested_item shift.opened is exist - process it [17:30:25]req_shift_opened [17:30:25]FM_GetShiftState [17:30:25]SAM_PROTO_GetShiftState [17:30:25]wFMCommunicate request_size=4 [17:30:25]MH_SAM_APDU [17:30:25]CAPDU: 80 13 01 00 [17:30:25]Write to MH i2c: E2 08 00 F9 03 80 13 01 00 00 00 00 00 79 [17:30:25]Write i2c OK [17:30:25]MH_I2C_Read... [17:30:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:30:25]Read from MH i2c: E2 [17:30:25]MH_I2C_Read... [17:30:25]Read from MH i2c: E2 0E 00 [17:30:25]MH_I2C_Read... [17:30:25]Read from MH i2c: E2 0E 00 F9 03 00 09 00 01 04 26 72 66 00 00 00 00 90 00 87 [17:30:25]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [17:30:25]wFMCommunicate OK [17:30:25]SAM_PROTO_GetShiftState done [17:30:25]FM_GetShiftState done [17:30:25]req_shift_opened done [17:30:25]requested_item shift.open_date is exist - process it [17:30:25]req_shift_open_date [17:30:25]req_shift_open_date done [17:30:25]produce_requested_data done [17:30:25]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103748,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [17:30:25]process_action_free close_receipt [17:30:25]json_value_free [17:30:25]json_value_free done [17:30:25]process_json_proto returns [17:30:25]Send response to host [17:30:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103748,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [17:30:25]free response buf [17:30:25]execute_script done [17:30:25]execute_script returns [17:30:25]free content buf [17:30:25]Sock 10.Close socket [17:30:25]Sock 10.Thread stoped [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:48]accept exits with 8 [17:30:48]New connection [17:30:48]New thread 3066940772 created [17:30:48]Thread 3066797412 joined [17:30:48]Waiting for new connection... [17:30:48] Sock 8.Parse request [17:30:48]Sock 8.Check first char [17:30:48]Sock 8.First char is OK [17:30:48]request: POST /json_proto HTTP/1.0 [17:30:48]Method: POST [17:30:48]URL: /json_proto [17:30:48]Method is POST - this is cgi request [17:30:48]url: /json_proto [17:30:48]query_string will be loaded in cgi processing [17:30:48]execute_cgi json_proto POST (null) [17:30:48]execute_cgi path=json_proto method=POST [17:30:48]POST find Content-Length [17:30:48]Host: 172.17.38.133:8080 [17:30:48]Content-Length: 1169 [17:30:48]Content-Type: application/json [17:30:48] [17:30:48]POST finish read [17:30:48]Found Content-Length = 1169 [17:30:48]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 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. \u000A\u0421\u0447\u0435\u0442 N : (1)673033\u000A19.06.2024 17:08\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 32\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 66.40\u000A\u0418\u0422\u041E\u0413: 1328.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30021796\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:30:48]execute_script... [17:30:48]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 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. \u000A\u0421\u0447\u0435\u0442 N : (1)673033\u000A19.06.2024 17:08\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 32\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 66.40\u000A\u0418\u0422\u041E\u0413: 1328.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30021796\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:30:48]POST & json_proto [17:30:48]process_json_proto [17:30:48]json parsed OK: [17:30:48]protocol is kg_v1.0 [17:30:48]action value=print_text [17:30:48]process_action print_text [17:30:48]cmd_print_text [17:30:48]ExternCall_PrintAddStr [17:30:48]wPrintStart [17:30:48]Write to MH i2c: 01 00 00 FA 03 FD [17:30:48]Write i2c OK [17:30:48]MH_I2C_Read... [17:30:48]Read from MH i2c: 01 [17:30:48]MH_I2C_Read... [17:30:48]Read from MH i2c: 01 07 00 [17:30:48]MH_I2C_Read... [17:30:48]Read from MH i2c: 01 07 00 FA 03 00 00 00 00 00 FF 0F 12 [17:30:48]RasterBufferAndPrint [17:30:48]line *****ТОВАРНЫЙ ЧЕК***** [17:30:48]line АЗС 120 [17:30:48]line Партнер нефть [17:30:48]line 02508201610067 [17:30:48]line Кассир : Байбугуева Г. [17:30:48]line Счет N : (1)673033 [17:30:48]line 19.06.2024 17:08 [17:30:48]line ПРОДАЖА [17:30:48]line ТРК (МРК, ГНК): 32 [17:30:48]line Вид ГСМ : 2710124130 [17:30:48]line Аи-92-К-5 [17:30:48]line 20.000 x 66.40 [17:30:48]line ИТОГ: 1328.00 [17:30:48]line Тип оплаты: Талоны: ТК ГПНА Online [17:30:48]line 30021796 [17:30:48]line ______________________ [17:30:48]line (подпись) [17:30:48]written 0, free lines is 4095 [17:30:48]Write to MH i2c: 01 00 00 0E 04 12 [17:30:48]Write i2c OK [17:30:48]MH_I2C_Read... [17:30:48]Read from MH i2c: 01 [17:30:48]MH_I2C_Read... [17:30:48]Read from MH i2c: 01 07 00 [17:30:48]MH_I2C_Read... [17:30:48]Read from MH i2c: 01 07 00 0E 04 00 00 00 00 00 11 0E 38 [17:30:48]RasterBufferAndPrint [17:30:48]line [17:30:48]line [17:30:48]line [17:30:48]line [17:30:48]line [17:30:48]written 0, free lines is 3602 [17:30:48]MH_Cut [17:30:48]Write to MH i2c: D1 01 00 15 04 01 EB [17:30:48]Write i2c OK [17:30:48]MH_I2C_Read... [17:30:48]Read from MH i2c: D1 [17:30:48]MH_I2C_Read... [17:30:48]Read from MH i2c: D1 01 00 [17:30:48]MH_I2C_Read... [17:30:48]Read from MH i2c: D1 01 00 15 04 00 EA [17:30:48]Write to MH i2c: 01 00 00 16 04 1A [17:30:48]Write i2c OK [17:30:48]MH_I2C_Read... [17:30:48]*** Cut start [17:30:48]*** Partial cut [17:30:48]*** CUTSNS_PIN = 1 [17:30:48]*** CUTSNS_PIN = 0 [17:30:49]*** Brake cut motor [17:30:49]Read from MH i2c: 01 [17:30:49]MH_I2C_Read... [17:30:49]Read from MH i2c: 01 07 00 [17:30:49]MH_I2C_Read... [17:30:49]*** Stop cut motor [17:30:49]*** Cut end [17:30:49]Read from MH i2c: 01 07 00 16 04 00 00 00 00 00 FF 0F 2F [17:30:49]process_action print_text done [17:30:49]requested_data is exist [17:30:49]produce_requested_data [17:30:49]requested_item fm.sn is exist - process it [17:30:49]wFMCommunicate request_size=4 [17:30:49]MH_SAM_APDU [17:30:49]CAPDU: 80 11 00 00 [17:30:49]Write to MH i2c: E2 08 00 17 04 80 11 00 00 00 00 00 00 95 [17:30:49]Write i2c OK [17:30:49]MH_I2C_Read... [17:30:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:30:49]Read from MH i2c: E2 [17:30:49]MH_I2C_Read... [17:30:49]Read from MH i2c: E2 17 00 [17:30:49]MH_I2C_Read... [17:30:49]Read from MH i2c: E2 17 00 17 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 E8 [17:30:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [17:30:49]wFMCommunicate OK [17:30:49]requested_item fd.num is exist - process it [17:30:49]SAM_PROTO_GetFieldsCounters [17:30:49]wFMCommunicate request_size=4 [17:30:49]MH_SAM_APDU [17:30:49]CAPDU: 80 13 00 00 [17:30:49]Write to MH i2c: E2 08 00 18 04 80 13 00 00 00 00 00 00 98 [17:30:49]Write i2c OK [17:30:49]MH_I2C_Read... [17:30:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:30:49]Read from MH i2c: E2 [17:30:49]MH_I2C_Read... [17:30:49]Read from MH i2c: E2 62 00 [17:30:49]MH_I2C_Read... [17:30:49]Read from MH i2c: E2 62 00 18 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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 44 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 B2 00 00 00 5E 04 04 00 B2 00 00 00 57 04 04 00 B3 00 00 00 19 04 04 00 00 00 00 00 90 00 11 [17:30: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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 44 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 B2 00 00 00 5E 04 04 00 B2 00 00 00 57 04 04 00 B3 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:30:49]wFMCommunicate OK [17:30:49]SAM_PROTO_GetFieldsCounters done [17:30:49]requested_item shift.num is exist - process it [17:30:49]requested_item shift.opened is exist - process it [17:30:49]req_shift_opened [17:30:49]FM_GetShiftState [17:30:49]SAM_PROTO_GetShiftState [17:30:49]wFMCommunicate request_size=4 [17:30:49]MH_SAM_APDU [17:30:49]CAPDU: 80 13 01 00 [17:30:49]Write to MH i2c: E2 08 00 19 04 80 13 01 00 00 00 00 00 9A [17:30:49]Write i2c OK [17:30:49]MH_I2C_Read... [17:30:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:30:49]Read from MH i2c: E2 [17:30:49]MH_I2C_Read... [17:30:49]Read from MH i2c: E2 0E 00 [17:30:49]MH_I2C_Read... [17:30:49]Read from MH i2c: E2 0E 00 19 04 00 09 00 01 04 26 72 66 00 00 00 00 90 00 A8 [17:30:49]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [17:30:49]wFMCommunicate OK [17:30:49]SAM_PROTO_GetShiftState done [17:30:49]FM_GetShiftState done [17:30:49]req_shift_opened done [17:30:49]requested_item shift.open_date is exist - process it [17:30:49]req_shift_open_date [17:30:49]req_shift_open_date done [17:30:49]produce_requested_data done [17:30:49]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103748,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [17:30:49]process_action_free print_text [17:30:49]json_value_free [17:30:49]json_value_free done [17:30:49]process_json_proto returns [17:30:49]Send response to host [17:30:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103748,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [17:30:49]free response buf [17:30:49]execute_script done [17:30:49]execute_script returns [17:30:49]free content buf [17:30:49]Sock 8.Close socket [17:30:49]Sock 8.Thread stoped [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:36]accept exits with 9 [17:32:36]New connection [17:32:36]New thread 3066797412 created [17:32:36]Thread 3066940772 joined [17:32:36]Waiting for new connection... [17:32:36] Sock 9.Parse request [17:32:36]Sock 9.Check first char [17:32:36]Sock 9.First char is OK [17:32:36]request: POST /json_proto HTTP/1.0 [17:32:36]Method: POST [17:32:36]URL: /json_proto [17:32:36]Method is POST - this is cgi request [17:32:36]url: /json_proto [17:32:36]query_string will be loaded in cgi processing [17:32:36]execute_cgi json_proto POST (null) [17:32:36]execute_cgi path=json_proto method=POST [17:32:36]POST find Content-Length [17:32:36]Host: 172.17.38.133:8080 [17:32:36]Content-Length: 677 [17:32:36]Content-Type: application/json [17:32:36] [17:32:36]POST finish read [17:32:36]Found Content-Length = 677 [17:32:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673035", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:32:36]execute_script... [17:32:36]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673035", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:32:36]POST & json_proto [17:32:36]process_json_proto [17:32:36]json parsed OK: [17:32:36]protocol is kg_v1.0 [17:32:36]action value=close_receipt [17:32:36]process_action close_receipt [17:32:36]cmd_close_receipt [17:32:36]MH_GetDate [17:32:36]Write to MH i2c: F0 00 00 1A 04 0D [17:32:36]Write i2c OK [17:32:36]MH_I2C_Read... [17:32:36]Read from MH i2c: F0 [17:32:36]MH_I2C_Read... [17:32:36]Read from MH i2c: F0 09 00 [17:32:36]MH_I2C_Read... [17:32:36]Read from MH i2c: F0 09 00 1A 04 00 35 16 73 66 BD 8F 7C 64 66 [17:32:36]GetLastDocTimeStamp 1718818222 [17:32:36]current date 1718818357 [17:32:36]FM_GetShiftState [17:32:36]SAM_PROTO_GetShiftState [17:32:36]wFMCommunicate request_size=4 [17:32:36]MH_SAM_APDU [17:32:36]CAPDU: 80 13 01 00 [17:32:36]Write to MH i2c: E2 08 00 1B 04 80 13 01 00 00 00 00 00 9C [17:32:36]Write i2c OK [17:32:36]MH_I2C_Read... [17:32:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:32:36]Read from MH i2c: E2 [17:32:36]MH_I2C_Read... [17:32:36]Read from MH i2c: E2 0E 00 [17:32:36]MH_I2C_Read... [17:32:36]Read from MH i2c: E2 0E 00 1B 04 00 09 00 01 04 26 72 66 00 00 00 00 90 00 AA [17:32:36]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [17:32:36]wFMCommunicate OK [17:32:36]SAM_PROTO_GetShiftState done [17:32:36]FM_GetShiftState done [17:32:36]opened in 1718756868 [17:32:36]opened+sec_in_day 1718843268 [17:32:36]quantity*price = 50065 [17:32:36]sum+1 = 50067 [17:32:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.17 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 179 19.06.2024 17:32 Смена: 353 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103749 ФПД: 118211924795822 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T173237&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103749&fm=118211924795822&tin=02508201610067®Number=0000000000092785&sum=50000 [17:32:38]StoreToDocumentArchive [17:32:38]shift 353 fd 103749 [17:32:38]save to /storage/0353/doc_00103749 [17:32:38]save last doc name /storage/0353/doc_00103749 to /storage/kkm_last_doc_name [17:32:38]save OK [17:32:38]Clear old archive folders... [17:32:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:32:38]tlvbuf is 01696B70 [17:32:38]SAM_PROTO_ClearQueue [17:32:38]wFMCommunicate request_size=4 [17:32:38]MH_SAM_APDU [17:32:38]CAPDU: 80 09 00 00 [17:32:38]Write to MH i2c: E2 08 00 28 04 80 09 00 00 00 00 00 00 9E [17:32:38]Write i2c OK [17:32:38]MH_I2C_Read... [17:32:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:32:38]Read from MH i2c: E2 [17:32:38]MH_I2C_Read... [17:32:38]Read from MH i2c: E2 03 00 [17:32:38]MH_I2C_Read... [17:32:38]Read from MH i2c: E2 03 00 28 04 00 90 00 A0 [17:32:38]RAPDU: 90 00 [17:32:38]wFMCommunicate OK [17:32:38]SAM_PROTO_ClearQueue done [17:32:38]KKMCreateOFDPacket [17:32:38]OFDProtocolAddRootSTLVToBuf [17:32:38]FM_MakeSignedData [17:32:38]FM_MakeSignedData [17:32:38]SAM_PROTO_SignData [17:32:38]wFMCommunicate request_size=4 [17:32:38]MH_SAM_APDU [17:32:38]CAPDU: 80 0D 01 02 [17:32:38]Write to MH i2c: E2 08 00 29 04 80 0D 01 02 00 00 00 00 A6 [17:32:38]Write i2c OK [17:32:38]MH_I2C_Read... [17:32:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:32:38]Read from MH i2c: E2 [17:32:38]MH_I2C_Read... [17:32:38]Read from MH i2c: E2 03 00 [17:32:38]MH_I2C_Read... [17:32:38]Read from MH i2c: E2 03 00 29 04 00 90 00 A1 [17:32:38]RAPDU: 90 00 [17:32:38]wFMCommunicate OK [17:32:38]wFMCommunicate request_size=255 [17:32:38]MH_SAM_APDU [17:32: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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B3 00 00 00 F4 03 04 00 35 16 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 45 95 01 00 35 04 06 00 6B [17:32:38]Write to MH i2c: E2 02 01 2A 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B3 00 00 00 F4 03 04 00 35 16 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 45 95 01 00 35 04 06 00 6B 00 00 DF [17:32:38]Write i2c OK [17:32:38]MH_I2C_Read... [17:32:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:32:38]Read from MH i2c: E2 [17:32:38]MH_I2C_Read... [17:32:38]Read from MH i2c: E2 03 00 [17:32:38]MH_I2C_Read... [17:32:38]Read from MH i2c: E2 03 00 2A 04 00 90 00 A2 [17:32:38]RAPDU: 90 00 [17:32:38]wFMCommunicate OK [17:32:38]wFMCommunicate request_size=10 [17:32:38]MH_SAM_APDU [17:32:38]CAPDU: 80 0D 02 02 05 83 5B C9 21 AE [17:32:38]Write to MH i2c: E2 0D 00 2B 04 80 0D 02 02 05 00 83 5B C9 21 AE 00 00 29 [17:32:38]Write i2c OK [17:32:38]MH_I2C_Read... [17:32:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:32:38]Read from MH i2c: E2 [17:32:38]MH_I2C_Read... [17:32:38]Read from MH i2c: E2 03 00 [17:32:38]MH_I2C_Read... [17:32:38]Read from MH i2c: E2 03 00 2B 04 00 90 00 A3 [17:32:38]RAPDU: 90 00 [17:32:38]wFMCommunicate OK [17:32:38]wFMCommunicate request_size=4 [17:32:38]MH_SAM_APDU [17:32:38]CAPDU: 80 0D 03 02 [17:32:38]Write to MH i2c: E2 08 00 2C 04 80 0D 03 02 00 00 00 00 AB [17:32:38]Write i2c OK [17:32:38]MH_I2C_Read... [17:32:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:32:38]Read from MH i2c: E2 [17:32:38]MH_I2C_Read... [17:32:38]Read from MH i2c: E2 0B 00 [17:32:38]MH_I2C_Read... [17:32:38]Read from MH i2c: E2 0B 00 2C 04 00 47 93 B4 97 87 FF 09 1E 90 00 7E [17:32:38]RAPDU: 47 93 B4 97 87 FF 09 1E 90 00 [17:32:38]wFMCommunicate OK [17:32:38]SAM_PROTO_SignData done [17:32:38]FM_MakeSignedData done [17:32:38]CreateOFDProtocolMessage [17:32:38]wFMCommunicate request_size=4 [17:32:38]MH_SAM_APDU [17:32:38]CAPDU: 80 11 00 00 [17:32:38]Write to MH i2c: E2 08 00 2D 04 80 11 00 00 00 00 00 00 AB [17:32:38]Write i2c OK [17:32:38]MH_I2C_Read... [17:32:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:32:38]Read from MH i2c: E2 [17:32:38]MH_I2C_Read... [17:32:38]Read from MH i2c: E2 17 00 [17:32:38]MH_I2C_Read... [17:32:38]Read from MH i2c: E2 17 00 2D 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 FE [17:32:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [17:32:38]wFMCommunicate OK [17:32:38]CreateOFDProtocolMessage done [17:32:38]OFDSenderStorePacket 103749 [17:32:38]StoreOFDPacket docnum=103749 [17:32:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 B5 CD 07 01 92 98 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B3 00 00 00 F4 03 04 00 35 16 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 45 95 01 00 35 04 06 00 6B 83 5B C9 21 AE 47 93 B4 97 87 FF 09 1E [17:32:38]CheckFolder [17:32:38]dirname=/storage/ofd_packets [17:32:38]CheckFolder done [17:32:38]ProducePacketName [17:32:38]name=ofd_packets/00103749 [17:32:38]NVStorageSaveData ofd_packets/00103749 [17:32:38]File name is /storage/ofd_packets/00103749 [17:32:38]Write 301 bytes [17:32:38]NVStorageSaveData done [17:32:38]OFDSenderStorePacket done [17:32:38]KKMCreateOFDPacket done [17:32:38]NVStorageSaveData kkm_last_timestamp [17:32:38]File name is /storage/kkm_last_timestamp [17:32:38]Write 4 bytes [17:32:38]NVStorageSaveData done [17:32:38]ExternCall_PrintAddStr [17:32:38]wPrintStart [17:32:38]Write to MH i2c: 01 00 00 2E 04 32 [17:32:38]Write i2c OK [17:32:38]MH_I2C_Read... [17:32:38]Read from MH i2c: 01 [17:32:38]MH_I2C_Read... [17:32:38]Read from MH i2c: 01 07 00 [17:32:38]MH_I2C_Read... [17:32:38]Read from MH i2c: 01 07 00 2E 04 00 00 00 00 00 FF 0F 47 [17:32:38]RasterBufferAndPrint [17:32:38]line Счет N : (1)673035 [17:32:38]line ИНН: 02508201610067 [17:32:38]line Контрольно-Кассовый Чек [17:32:38]line ПРОДАЖА [17:32:38]line ТРК (МРК, ГНК) : 32 [17:32:38]line Товар: 2710124130 [17:32:38]line Аи-92-К-5 [17:32:38]line 7.540 * 66.40 [17:32:38]line = 500.66 [17:32:38]line НДС 12% НСП 1% [17:32:38]line > о реализуемом товаре [17:32:38]line ОКРУГЛЕНИЕ: -0.66 [17:32:38]line ИТОГО: 500.00 [17:32:38]line Внесено: 500.00 [17:32:38]line СДАЧА: 0.00 [17:32:38]line НСП 1% : 4.43 [17:32:38]line НДС 12% : 53.17 [17:32:38]line Наличными: 500.00 [17:32:38]line Безнал.: 0.00 [17:32:38]line Место: АЗС № 120 "Партнер Нефть" [17:32:38]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [17:32:38]line СНО: Общий режим [17:32:38]line Чек 179 19.06.2024 17:32 [17:32:38]line Смена: 353 ФФД: 1.0 [17:32:38]line ЗНМ: 0300000164 [17:32:38]line РНМ: 0000000000092785 [17:32:38]line Версия ККМ: 001 [17:32:38]line ФМ: 0000000000875093 [17:32:38]line ФД: 103749 [17:32:38]line ФПД: 118211924795822 [17:32:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T173237&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103749&fm=118211924795822&tin=02508201610067®Number=0000000000092785&sum=50000 [17:32:38]OFD Sender: Processing packet 103749 [packets to send 17, broken 16] [17:32:38]ProducePacketName [17:32:38]name=ofd_packets/00103749 [17:32:38]OFD Sender: To server: pG, [17:32:38]CommunicateWithHost lk.salyk.kg:30040 [17:32:38]ConnectInit lk.salyk.kg [17:32:38]written 0, free lines is 4095 [17:32:39]Connected sock=10 [17:32: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 39 33 0F 01 00 00 B5 CD 07 01 92 98 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B3 00 00 00 F4 03 04 00 35 16 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 45 95 01 00 35 04 06 00 6B 83 5B C9 21 AE 47 93 B4 97 87 FF 09 1E [17:32: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 39 33 4F 00 00 00 CE AE 47 00 06 66 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 45 95 01 00 F4 03 04 00 BD BC 72 66 B6 04 01 00 00 3C 98 60 29 2E B0 53 F9 [17:32:39]CommunicateWithHost err = 0 [17:32:39]CheckOFDResponse [17:32:39]1017 (14) - 77093643461234 [17:32:39]1041 (16) - 0000000000875093 [17:32:39]1040 (4) - 103749 [17:32:39]1012 (4) - 19.06.2024 11:10 [17:32:39]1206 (1) - 0 [17:32:39]OFD Sender: Remove packet 103749 [17:32:39]ProducePacketName [17:32:39]name=ofd_packets/00103749 [17:32:39]NVStorageDeleteData [17:32:39]Write to MH i2c: 01 00 00 59 04 5D [17:32:39]Write i2c OK [17:32:39]MH_I2C_Read... [17:32:39]Read from MH i2c: 01 [17:32:39]MH_I2C_Read... [17:32:39]Read from MH i2c: 01 07 00 [17:32:39]MH_I2C_Read... [17:32:39]Read from MH i2c: 01 07 00 59 04 00 00 00 00 00 D8 0C 48 [17:32:39]RasterBufferAndPrint [17:32:39]line [17:32:39]line [17:32:39]line [17:32:39]line [17:32:39]line [17:32:39]written 0, free lines is 3296 [17:32:39]MH_Cut [17:32:39]Write to MH i2c: D1 01 00 60 04 01 36 [17:32:39]Write i2c OK [17:32:39]MH_I2C_Read... [17:32:39]Read from MH i2c: D1 [17:32:39]MH_I2C_Read... [17:32:39]Read from MH i2c: D1 01 00 [17:32:39]MH_I2C_Read... [17:32:39]Read from MH i2c: D1 01 00 60 04 00 35 [17:32:39]Write to MH i2c: 01 00 00 61 04 65 [17:32:39]Write i2c OK [17:32:39]MH_I2C_Read... [17:32:39]OFD Sender: No OFD packet to send [17:32:40]*** Cut start [17:32:40]*** Partial cut [17:32:40]*** CUTSNS_PIN = 1 [17:32:40]*** CUTSNS_PIN = 0 [17:32:40]*** Brake cut motor [17:32:40]Read from MH i2c: 01 [17:32:40]MH_I2C_Read... [17:32:40]*** Stop cut motor [17:32:40]*** Cut end [17:32:40]Read from MH i2c: 01 07 00 [17:32:40]MH_I2C_Read... [17:32:40]Read from MH i2c: 01 07 00 61 04 00 00 00 00 00 FF 0F 7A [17:32:40]process_action close_receipt done [17:32:40]requested_data is exist [17:32:40]produce_requested_data [17:32:40]requested_item fm.sn is exist - process it [17:32:40]wFMCommunicate request_size=4 [17:32:40]MH_SAM_APDU [17:32:40]CAPDU: 80 11 00 00 [17:32:40]Write to MH i2c: E2 08 00 62 04 80 11 00 00 00 00 00 00 E0 [17:32:40]Write i2c OK [17:32:40]MH_I2C_Read... [17:32:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:32:40]Read from MH i2c: E2 [17:32:40]MH_I2C_Read... [17:32:40]Read from MH i2c: E2 17 00 [17:32:40]MH_I2C_Read... [17:32:40]Read from MH i2c: E2 17 00 62 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 33 [17:32:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [17:32:40]wFMCommunicate OK [17:32:40]requested_item fd.num is exist - process it [17:32:40]SAM_PROTO_GetFieldsCounters [17:32:40]wFMCommunicate request_size=4 [17:32:40]MH_SAM_APDU [17:32:40]CAPDU: 80 13 00 00 [17:32:40]Write to MH i2c: E2 08 00 63 04 80 13 00 00 00 00 00 00 E3 [17:32:40]Write i2c OK [17:32:40]MH_I2C_Read... [17:32:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:32:40]Read from MH i2c: E2 [17:32:40]MH_I2C_Read... [17:32:40]Read from MH i2c: E2 62 00 [17:32:40]MH_I2C_Read... [17:32:40]Read from MH i2c: E2 62 00 63 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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 45 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 B3 00 00 00 5E 04 04 00 B3 00 00 00 57 04 04 00 B4 00 00 00 19 04 04 00 00 00 00 00 90 00 60 [17:32:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 45 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 B3 00 00 00 5E 04 04 00 B3 00 00 00 57 04 04 00 B4 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:32:40]wFMCommunicate OK [17:32:40]SAM_PROTO_GetFieldsCounters done [17:32:40]requested_item shift.num is exist - process it [17:32:40]requested_item shift.opened is exist - process it [17:32:40]req_shift_opened [17:32:40]FM_GetShiftState [17:32:40]SAM_PROTO_GetShiftState [17:32:40]wFMCommunicate request_size=4 [17:32:40]MH_SAM_APDU [17:32:40]CAPDU: 80 13 01 00 [17:32:40]Write to MH i2c: E2 08 00 64 04 80 13 01 00 00 00 00 00 E5 [17:32:40]Write i2c OK [17:32:40]MH_I2C_Read... [17:32:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:32:40]Read from MH i2c: E2 [17:32:40]MH_I2C_Read... [17:32:40]Read from MH i2c: E2 0E 00 [17:32:40]MH_I2C_Read... [17:32:40]Read from MH i2c: E2 0E 00 64 04 00 09 00 01 04 26 72 66 00 00 00 00 90 00 F3 [17:32:40]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [17:32:40]wFMCommunicate OK [17:32:40]SAM_PROTO_GetShiftState done [17:32:40]FM_GetShiftState done [17:32:40]req_shift_opened done [17:32:40]requested_item shift.open_date is exist - process it [17:32:40]req_shift_open_date [17:32:40]req_shift_open_date done [17:32:40]produce_requested_data done [17:32:40]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103749,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [17:32:40]process_action_free close_receipt [17:32:40]json_value_free [17:32:40]json_value_free done [17:32:40]process_json_proto returns [17:32:40]Send response to host [17:32:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103749,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [17:32:40]free response buf [17:32:40]execute_script done [17:32:40]execute_script returns [17:32:40]free content buf [17:32:40]Sock 9.Close socket [17:32:40]Sock 9.Thread stoped [17:32:44]OFD Sender: No OFD packet to send [17:32:49]OFD Sender: No OFD packet to send [17:32:54]OFD Sender: No OFD packet to send [17:32:59]OFD Sender: No OFD packet to send [17:33:04]OFD Sender: No OFD packet to send [17:33:09]OFD Sender: No OFD packet to send [17:33:14]OFD Sender: No OFD packet to send [17:33:19]OFD Sender: No OFD packet to send [17:33:24]OFD Sender: No OFD packet to send [17:33:29]OFD Sender: No OFD packet to send [17:33:34]OFD Sender: No OFD packet to send [17:33:39]OFD Sender: No OFD packet to send [17:33:44]OFD Sender: No OFD packet to send [17:33:49]OFD Sender: No OFD packet to send [17:33:54]OFD Sender: No OFD packet to send [17:33:59]OFD Sender: No OFD packet to send [17:34:04]OFD Sender: No OFD packet to send [17:34:09]OFD Sender: No OFD packet to send [17:34:14]OFD Sender: No OFD packet to send [17:34:19]OFD Sender: No OFD packet to send [17:34:24]OFD Sender: No OFD packet to send [17:34:29]OFD Sender: No OFD packet to send [17:34:34]OFD Sender: No OFD packet to send [17:34:39]OFD Sender: No OFD packet to send [17:34:44]OFD Sender: No OFD packet to send [17:34:49]OFD Sender: No OFD packet to send [17:34:54]OFD Sender: No OFD packet to send [17:34:59]OFD Sender: No OFD packet to send [17:35:04]OFD Sender: No OFD packet to send [17:35:09]OFD Sender: No OFD packet to send [17:35:14]OFD Sender: No OFD packet to send [17:35:19]OFD Sender: No OFD packet to send [17:35:24]OFD Sender: No OFD packet to send [17:35:29]OFD Sender: No OFD packet to send [17:35:34]OFD Sender: No OFD packet to send [17:35:39]OFD Sender: No OFD packet to send [17:35:44]OFD Sender: No OFD packet to send [17:35:49]OFD Sender: No OFD packet to send [17:35:54]OFD Sender: No OFD packet to send [17:35:59]OFD Sender: No OFD packet to send [17:36:04]OFD Sender: No OFD packet to send [17:36:09]OFD Sender: No OFD packet to send [17:36:14]OFD Sender: No OFD packet to send [17:36:19]OFD Sender: No OFD packet to send [17:36:24]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:35]accept exits with 8 [17:37:35]New connection [17:37:35]New thread 3066940772 created [17:37:35]Thread 3066797412 joined [17:37:35]Waiting for new connection... [17:37:35] Sock 8.Parse request [17:37:35]Sock 8.Check first char [17:37:35]Sock 8.First char is OK [17:37:35]request: POST /json_proto HTTP/1.0 [17:37:35]Method: POST [17:37:35]URL: /json_proto [17:37:35]Method is POST - this is cgi request [17:37:35]url: /json_proto [17:37:35]query_string will be loaded in cgi processing [17:37:35]execute_cgi json_proto POST (null) [17:37:35]execute_cgi path=json_proto method=POST [17:37:35]POST find Content-Length [17:37:35]Host: 172.17.38.133:8080 [17:37:35]Content-Length: 682 [17:37:35]Content-Type: application/json [17:37:35] [17:37:35]POST finish read [17:37:35]Found Content-Length = 682 [17:37:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673036", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 45.190, "sum" : 3000.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:37:35]execute_script... [17:37:35]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673036", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 45.190, "sum" : 3000.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:37:35]POST & json_proto [17:37:35]process_json_proto [17:37:35]json parsed OK: [17:37:35]protocol is kg_v1.0 [17:37:35]action value=close_receipt [17:37:35]process_action close_receipt [17:37:35]cmd_close_receipt [17:37:35]MH_GetDate [17:37:35]Write to MH i2c: F0 00 00 65 04 58 [17:37:35]Write i2c OK [17:37:35]MH_I2C_Read... [17:37:35]Read from MH i2c: F0 [17:37:35]MH_I2C_Read... [17:37:35]Read from MH i2c: F0 09 00 [17:37:35]MH_I2C_Read... [17:37:35]Read from MH i2c: F0 09 00 65 04 00 5F 17 73 66 BD 8F 7C 64 DC [17:37:35]GetLastDocTimeStamp 1718818357 [17:37:35]current date 1718818655 [17:37:35]FM_GetShiftState [17:37:35]SAM_PROTO_GetShiftState [17:37:35]wFMCommunicate request_size=4 [17:37:35]MH_SAM_APDU [17:37:35]CAPDU: 80 13 01 00 [17:37:35]Write to MH i2c: E2 08 00 66 04 80 13 01 00 00 00 00 00 E7 [17:37:35]Write i2c OK [17:37:35]MH_I2C_Read... [17:37:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:37:35]Read from MH i2c: E2 [17:37:35]MH_I2C_Read... [17:37:35]Read from MH i2c: E2 0E 00 [17:37:35]MH_I2C_Read... [17:37:35]Read from MH i2c: E2 0E 00 66 04 00 09 00 01 04 26 72 66 00 00 00 00 90 00 F5 [17:37:35]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [17:37:35]wFMCommunicate OK [17:37:35]SAM_PROTO_GetShiftState done [17:37:35]FM_GetShiftState done [17:37:35]opened in 1718756868 [17:37:35]opened+sec_in_day 1718843268 [17:37:35]quantity*price = 300061 [17:37:35]sum+1 = 300063 [17:37:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.62 ИТОГО: 3000.00 Внесено: 3000.00 СДАЧА: 0.00 НСП 1% : 26.55 НДС 12% : 318.65 Наличными: 3000.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 180 19.06.2024 17:37 Смена: 353 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103750 ФПД: 83577440268267 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T173735&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103750&fm=83577440268267&tin=02508201610067®Number=0000000000092785&sum=300000 [17:37:36]StoreToDocumentArchive [17:37:36]shift 353 fd 103750 [17:37:36]save to /storage/0353/doc_00103750 [17:37:36]save last doc name /storage/0353/doc_00103750 to /storage/kkm_last_doc_name [17:37:36]save OK [17:37:36]Clear old archive folders... [17:37:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:37:36]tlvbuf is 016A46E0 [17:37:36]SAM_PROTO_ClearQueue [17:37:36]wFMCommunicate request_size=4 [17:37:36]MH_SAM_APDU [17:37:36]CAPDU: 80 09 00 00 [17:37:36]Write to MH i2c: E2 08 00 73 04 80 09 00 00 00 00 00 00 E9 [17:37:36]Write i2c OK [17:37:36]MH_I2C_Read... [17:37:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:37:36]Read from MH i2c: E2 [17:37:36]MH_I2C_Read... [17:37:36]Read from MH i2c: E2 03 00 [17:37:36]MH_I2C_Read... [17:37:36]Read from MH i2c: E2 03 00 73 04 00 90 00 EB [17:37:36]RAPDU: 90 00 [17:37:36]wFMCommunicate OK [17:37:36]SAM_PROTO_ClearQueue done [17:37:36]KKMCreateOFDPacket [17:37:36]OFDProtocolAddRootSTLVToBuf [17:37:36]FM_MakeSignedData [17:37:36]FM_MakeSignedData [17:37:36]SAM_PROTO_SignData [17:37:36]wFMCommunicate request_size=4 [17:37:36]MH_SAM_APDU [17:37:36]CAPDU: 80 0D 01 02 [17:37:36]Write to MH i2c: E2 08 00 74 04 80 0D 01 02 00 00 00 00 F1 [17:37:36]Write i2c OK [17:37:36]MH_I2C_Read... [17:37:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:37:36]Read from MH i2c: E2 [17:37:36]MH_I2C_Read... [17:37:36]Read from MH i2c: E2 03 00 [17:37:36]MH_I2C_Read... [17:37:36]Read from MH i2c: E2 03 00 74 04 00 90 00 EC [17:37:36]RAPDU: 90 00 [17:37:36]wFMCommunicate OK [17:37:36]wFMCommunicate request_size=255 [17:37:36]MH_SAM_APDU [17:37:36]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 86 B0 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 1E 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B4 00 00 00 F4 03 04 00 5F 17 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 46 95 01 00 35 04 06 00 4C [17:37:36]Write to MH i2c: E2 02 01 75 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 86 B0 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 1E 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B4 00 00 00 F4 03 04 00 5F 17 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 46 95 01 00 35 04 06 00 4C 00 00 CF [17:37:36]Write i2c OK [17:37:36]MH_I2C_Read... [17:37:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:37:36]Read from MH i2c: E2 [17:37:36]MH_I2C_Read... [17:37:36]Read from MH i2c: E2 03 00 [17:37:36]MH_I2C_Read... [17:37:36]Read from MH i2c: E2 03 00 75 04 00 90 00 ED [17:37:36]RAPDU: 90 00 [17:37:36]wFMCommunicate OK [17:37:36]wFMCommunicate request_size=10 [17:37:36]MH_SAM_APDU [17:37:36]CAPDU: 80 0D 02 02 05 03 63 A3 6F EB [17:37:36]Write to MH i2c: E2 0D 00 76 04 80 0D 02 02 05 00 03 63 A3 6F EB 00 00 61 [17:37:36]Write i2c OK [17:37:36]MH_I2C_Read... [17:37:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:37:36]Read from MH i2c: E2 [17:37:36]MH_I2C_Read... [17:37:36]Read from MH i2c: E2 03 00 [17:37:36]MH_I2C_Read... [17:37:36]Read from MH i2c: E2 03 00 76 04 00 90 00 EE [17:37:36]RAPDU: 90 00 [17:37:36]wFMCommunicate OK [17:37:36]wFMCommunicate request_size=4 [17:37:36]MH_SAM_APDU [17:37:36]CAPDU: 80 0D 03 02 [17:37:36]Write to MH i2c: E2 08 00 77 04 80 0D 03 02 00 00 00 00 F6 [17:37:36]Write i2c OK [17:37:36]MH_I2C_Read... [17:37:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:37:36]Read from MH i2c: E2 [17:37:36]MH_I2C_Read... [17:37:36]Read from MH i2c: E2 0B 00 [17:37:36]MH_I2C_Read... [17:37:36]Read from MH i2c: E2 0B 00 77 04 00 DF 1A 74 A6 6C 7F B3 D9 90 00 81 [17:37:36]RAPDU: DF 1A 74 A6 6C 7F B3 D9 90 00 [17:37:36]wFMCommunicate OK [17:37:36]SAM_PROTO_SignData done [17:37:36]FM_MakeSignedData done [17:37:36]CreateOFDProtocolMessage [17:37:36]wFMCommunicate request_size=4 [17:37:36]MH_SAM_APDU [17:37:36]CAPDU: 80 11 00 00 [17:37:36]Write to MH i2c: E2 08 00 78 04 80 11 00 00 00 00 00 00 F6 [17:37:36]Write i2c OK [17:37:36]MH_I2C_Read... [17:37:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:37:36]Read from MH i2c: E2 [17:37:36]MH_I2C_Read... [17:37:36]Read from MH i2c: E2 17 00 [17:37:36]MH_I2C_Read... [17:37:36]Read from MH i2c: E2 17 00 78 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 49 [17:37:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [17:37:36]wFMCommunicate OK [17:37:36]CreateOFDProtocolMessage done [17:37:36]OFDSenderStorePacket 103750 [17:37:36]StoreOFDPacket docnum=103750 [17:37:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 73 E6 07 01 FC 01 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 86 B0 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 1E 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B4 00 00 00 F4 03 04 00 5F 17 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 46 95 01 00 35 04 06 00 4C 03 63 A3 6F EB DF 1A 74 A6 6C 7F B3 D9 [17:37:36]CheckFolder [17:37:36]dirname=/storage/ofd_packets [17:37:36]CheckFolder done [17:37:36]ProducePacketName [17:37:36]name=ofd_packets/00103750 [17:37:36]NVStorageSaveData ofd_packets/00103750 [17:37:36]File name is /storage/ofd_packets/00103750 [17:37:36]Write 301 bytes [17:37:36]NVStorageSaveData done [17:37:36]OFDSenderStorePacket done [17:37:36]KKMCreateOFDPacket done [17:37:36]NVStorageSaveData kkm_last_timestamp [17:37:36]File name is /storage/kkm_last_timestamp [17:37:36]Write 4 bytes [17:37:36]NVStorageSaveData done [17:37:36]ExternCall_PrintAddStr [17:37:36]wPrintStart [17:37:36]Write to MH i2c: 01 00 00 79 04 7D [17:37:36]Write i2c OK [17:37:36]MH_I2C_Read... [17:37:36]Read from MH i2c: 01 [17:37:36]MH_I2C_Read... [17:37:36]Read from MH i2c: 01 07 00 [17:37:36]MH_I2C_Read... [17:37:36]Read from MH i2c: 01 07 00 79 04 00 00 00 00 00 FF 0F 92 [17:37:36]RasterBufferAndPrint [17:37:36]line Счет N : (1)673036 [17:37:36]line ИНН: 02508201610067 [17:37:36]line Контрольно-Кассовый Чек [17:37:36]line ПРОДАЖА [17:37:36]line ТРК (МРК, ГНК) : 42 [17:37:36]line Товар: 2710124130 [17:37:36]line Аи-92-К-5 [17:37:36]line 45.190 * 66.40 [17:37:36]line = 3000.62 [17:37:36]line НДС 12% НСП 1% [17:37:36]line > о реализуемом товаре [17:37:36]line ОКРУГЛЕНИЕ: -0.62 [17:37:36]line ИТОГО: 3000.00 [17:37:36]line Внесено: 3000.00 [17:37:36]line СДАЧА: 0.00 [17:37:36]line НСП 1% : 26.55 [17:37:36]line НДС 12% : 318.65 [17:37:36]line Наличными: 3000.00 [17:37:36]line Безнал.: 0.00 [17:37:36]line Место: АЗС № 120 "Партнер Нефть" [17:37:36]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [17:37:36]line СНО: Общий режим [17:37:36]line Чек 180 19.06.2024 17:37 [17:37:36]line Смена: 353 ФФД: 1.0 [17:37:36]line ЗНМ: 0300000164 [17:37:36]line РНМ: 0000000000092785 [17:37:36]line Версия ККМ: 001 [17:37:36]line ФМ: 0000000000875093 [17:37:36]line ФД: 103750 [17:37:36]line ФПД: 83577440268267 [17:37:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T173735&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103750&fm=83577440268267&tin=02508201610067®Number=0000000000092785&sum=300000 [17:37:37]OFD Sender: Processing packet 103750 [packets to send 17, broken 16] [17:37:37]ProducePacketName [17:37:37]name=ofd_packets/00103750 [17:37:37]OFD Sender: To server: pG, [17:37:37]CommunicateWithHost lk.salyk.kg:30040 [17:37:37]ConnectInit lk.salyk.kg [17:37:37]written 0, free lines is 4095 [17:37:37]Connected sock=10 [17:37:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 73 E6 07 01 FC 01 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 86 B0 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 1E 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B4 00 00 00 F4 03 04 00 5F 17 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 46 95 01 00 35 04 06 00 4C 03 63 A3 6F EB DF 1A 74 A6 6C 7F B3 D9 [17:37:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 DE 39 47 00 4E 24 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 46 95 01 00 F4 03 04 00 E8 BD 72 66 B6 04 01 00 00 9A 1F 36 59 C7 11 DB 27 [17:37:37]CommunicateWithHost err = 0 [17:37:37]CheckOFDResponse [17:37:37]1017 (14) - 77093643461234 [17:37:37]1041 (16) - 0000000000875093 [17:37:37]1040 (4) - 103750 [17:37:37]1012 (4) - 19.06.2024 11:15 [17:37:37]1206 (1) - 0 [17:37:37]OFD Sender: Remove packet 103750 [17:37:37]ProducePacketName [17:37:37]name=ofd_packets/00103750 [17:37:37]NVStorageDeleteData [17:37:37]Write to MH i2c: 01 00 00 A4 04 A8 [17:37:37]Write i2c OK [17:37:37]MH_I2C_Read... [17:37:37]Read from MH i2c: 01 [17:37:37]MH_I2C_Read... [17:37:37]Read from MH i2c: 01 07 00 [17:37:37]MH_I2C_Read... [17:37:37]Read from MH i2c: 01 07 00 A4 04 00 00 00 00 00 D8 0C 93 [17:37:37]RasterBufferAndPrint [17:37:37]line [17:37:37]line [17:37:37]line [17:37:37]line [17:37:37]line [17:37:37]written 0, free lines is 3297 [17:37:37]MH_Cut [17:37:37]Write to MH i2c: D1 01 00 AB 04 01 81 [17:37:37]Write i2c OK [17:37:37]MH_I2C_Read... [17:37:37]Read from MH i2c: D1 [17:37:37]MH_I2C_Read... [17:37:37]Read from MH i2c: D1 01 00 [17:37:37]MH_I2C_Read... [17:37:37]Read from MH i2c: D1 01 00 AB 04 00 80 [17:37:37]Write to MH i2c: 01 00 00 AC 04 B0 [17:37:37]Write i2c OK [17:37:37]MH_I2C_Read... [17:37:38]OFD Sender: No OFD packet to send [17:37:38]*** Cut start [17:37:38]*** Partial cut [17:37:38]*** CUTSNS_PIN = 1 [17:37:38]*** CUTSNS_PIN = 0 [17:37:38]*** Brake cut motor [17:37:39]Read from MH i2c: 01 [17:37:39]MH_I2C_Read... [17:37:39]*** Stop cut motor [17:37:39]*** Cut end [17:37:39]Read from MH i2c: 01 07 00 [17:37:39]MH_I2C_Read... [17:37:39]Read from MH i2c: 01 07 00 AC 04 00 00 00 00 00 FF 0F C5 [17:37:39]process_action close_receipt done [17:37:39]requested_data is exist [17:37:39]produce_requested_data [17:37:39]requested_item fm.sn is exist - process it [17:37:39]wFMCommunicate request_size=4 [17:37:39]MH_SAM_APDU [17:37:39]CAPDU: 80 11 00 00 [17:37:39]Write to MH i2c: E2 08 00 AD 04 80 11 00 00 00 00 00 00 2B [17:37:39]Write i2c OK [17:37:39]MH_I2C_Read... [17:37:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:37:39]Read from MH i2c: E2 [17:37:39]MH_I2C_Read... [17:37:39]Read from MH i2c: E2 17 00 [17:37:39]MH_I2C_Read... [17:37:39]Read from MH i2c: E2 17 00 AD 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 7E [17:37:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [17:37:39]wFMCommunicate OK [17:37:39]requested_item fd.num is exist - process it [17:37:39]SAM_PROTO_GetFieldsCounters [17:37:39]wFMCommunicate request_size=4 [17:37:39]MH_SAM_APDU [17:37:39]CAPDU: 80 13 00 00 [17:37:39]Write to MH i2c: E2 08 00 AE 04 80 13 00 00 00 00 00 00 2E [17:37:39]Write i2c OK [17:37:39]MH_I2C_Read... [17:37:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:37:39]Read from MH i2c: E2 [17:37:39]MH_I2C_Read... [17:37:39]Read from MH i2c: E2 62 00 [17:37:39]MH_I2C_Read... [17:37:39]Read from MH i2c: E2 62 00 AE 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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 46 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 B4 00 00 00 5E 04 04 00 B4 00 00 00 57 04 04 00 B5 00 00 00 19 04 04 00 00 00 00 00 90 00 AF [17:37: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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 46 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 B4 00 00 00 5E 04 04 00 B4 00 00 00 57 04 04 00 B5 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:37:39]wFMCommunicate OK [17:37:39]SAM_PROTO_GetFieldsCounters done [17:37:39]requested_item shift.num is exist - process it [17:37:39]requested_item shift.opened is exist - process it [17:37:39]req_shift_opened [17:37:39]FM_GetShiftState [17:37:39]SAM_PROTO_GetShiftState [17:37:39]wFMCommunicate request_size=4 [17:37:39]MH_SAM_APDU [17:37:39]CAPDU: 80 13 01 00 [17:37:39]Write to MH i2c: E2 08 00 AF 04 80 13 01 00 00 00 00 00 30 [17:37:39]Write i2c OK [17:37:39]MH_I2C_Read... [17:37:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:37:39]Read from MH i2c: E2 [17:37:39]MH_I2C_Read... [17:37:39]Read from MH i2c: E2 0E 00 [17:37:39]MH_I2C_Read... [17:37:39]Read from MH i2c: E2 0E 00 AF 04 00 09 00 01 04 26 72 66 00 00 00 00 90 00 3E [17:37:39]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [17:37:39]wFMCommunicate OK [17:37:39]SAM_PROTO_GetShiftState done [17:37:39]FM_GetShiftState done [17:37:39]req_shift_opened done [17:37:39]requested_item shift.open_date is exist - process it [17:37:39]req_shift_open_date [17:37:39]req_shift_open_date done [17:37:39]produce_requested_data done [17:37:39]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103750,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [17:37:39]process_action_free close_receipt [17:37:39]json_value_free [17:37:39]json_value_free done [17:37:39]process_json_proto returns [17:37:39]Send response to host [17:37:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103750,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [17:37:39]free response buf [17:37:39]execute_script done [17:37:39]execute_script returns [17:37:39]free content buf [17:37:39]Sock 8.Close socket [17:37:39]Sock 8.Thread stoped [17:37:43]OFD Sender: No OFD packet to send [17:37:48]OFD Sender: No OFD packet to send [17:37:53]OFD Sender: No OFD packet to send [17:37:58]OFD Sender: No OFD packet to send [17:38:03]OFD Sender: No OFD packet to send [17:38:08]OFD Sender: No OFD packet to send [17:38:13]OFD Sender: No OFD packet to send [17:38:18]OFD Sender: No OFD packet to send [17:38:23]OFD Sender: No OFD packet to send [17:38:28]OFD Sender: No OFD packet to send [17:38:33]OFD Sender: No OFD packet to send [17:38:38]OFD Sender: No OFD packet to send [17:38:43]OFD Sender: No OFD packet to send [17:38:48]OFD Sender: No OFD packet to send [17:38:53]OFD Sender: No OFD packet to send [17:38:58]OFD Sender: No OFD packet to send [17:39:03]OFD Sender: No OFD packet to send [17:39:08]OFD Sender: No OFD packet to send [17:39:13]OFD Sender: No OFD packet to send [17:39:18]OFD Sender: No OFD packet to send [17:39:23]OFD Sender: No OFD packet to send [17:39:28]OFD Sender: No OFD packet to send [17:39:33]OFD Sender: No OFD packet to send [17:39:33]accept exits with 9 [17:39:33]New connection [17:39:33]New thread 3066797412 created [17:39:33]Thread 3066940772 joined [17:39:33]Waiting for new connection... [17:39:33] Sock 9.Parse request [17:39:33]Sock 9.Check first char [17:39:33]Sock 9.First char is OK [17:39:33]request: POST /json_proto HTTP/1.0 [17:39:33]Method: POST [17:39:33]URL: /json_proto [17:39:33]Method is POST - this is cgi request [17:39:33]url: /json_proto [17:39:33]query_string will be loaded in cgi processing [17:39:33]execute_cgi json_proto POST (null) [17:39:33]execute_cgi path=json_proto method=POST [17:39:33]POST find Content-Length [17:39:33]Host: 172.17.38.133:8080 [17:39:33]Content-Length: 819 [17:39:33]Content-Type: application/json [17:39:33] [17:39:33]POST finish read [17:39:33]Found Content-Length = 819 [17:39:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673037", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 20.000, "sum" : 1328.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" : 1328.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:39:33]execute_script... [17:39:33]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673037", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 20.000, "sum" : 1328.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" : 1328.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:39:33]POST & json_proto [17:39:33]process_json_proto [17:39:33]json parsed OK: [17:39:33]protocol is kg_v1.0 [17:39:33]action value=close_receipt [17:39:33]process_action close_receipt [17:39:33]cmd_close_receipt [17:39:33]MH_GetDate [17:39:33]Write to MH i2c: F0 00 00 B0 04 A3 [17:39:33]Write i2c OK [17:39:33]MH_I2C_Read... [17:39:33]Read from MH i2c: F0 [17:39:33]MH_I2C_Read... [17:39:33]Read from MH i2c: F0 09 00 [17:39:33]MH_I2C_Read... [17:39:33]Read from MH i2c: F0 09 00 B0 04 00 D6 17 73 66 BD 8F 7C 64 9E [17:39:33]GetLastDocTimeStamp 1718818655 [17:39:33]current date 1718818774 [17:39:33]FM_GetShiftState [17:39:33]SAM_PROTO_GetShiftState [17:39:33]wFMCommunicate request_size=4 [17:39:33]MH_SAM_APDU [17:39:33]CAPDU: 80 13 01 00 [17:39:33]Write to MH i2c: E2 08 00 B1 04 80 13 01 00 00 00 00 00 32 [17:39:33]Write i2c OK [17:39:33]MH_I2C_Read... [17:39:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:39:33]Read from MH i2c: E2 [17:39:33]MH_I2C_Read... [17:39:33]Read from MH i2c: E2 0E 00 [17:39:33]MH_I2C_Read... [17:39:33]Read from MH i2c: E2 0E 00 B1 04 00 09 00 01 04 26 72 66 00 00 00 00 90 00 40 [17:39:33]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [17:39:33]wFMCommunicate OK [17:39:33]SAM_PROTO_GetShiftState done [17:39:33]FM_GetShiftState done [17:39:33]opened in 1718756868 [17:39:33]opened+sec_in_day 1718843268 [17:39:33]quantity*price = 132800 [17:39:33]sum+1 = 132801 [17:39:33]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1328.00 НСП 1% : 11.75 НДС 12% : 141.03 Наличными: 0.00 Безнал.: 1328.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 181 19.06.2024 17:39 Смена: 353 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000875093 ФД: 103751 ФПД: 150636655560397 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T173934&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103751&fm=150636655560397&tin=02508201610067®Number=0000000000092785&sum=132800 [17:39:34]StoreToDocumentArchive [17:39:34]shift 353 fd 103751 [17:39:34]save to /storage/0353/doc_00103751 [17:39:34]save last doc name /storage/0353/doc_00103751 to /storage/kkm_last_doc_name [17:39:34]save OK [17:39:34]Clear old archive folders... [17:39:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:39:34]tlvbuf is 016A6FF0 [17:39:34]SAM_PROTO_ClearQueue [17:39:34]wFMCommunicate request_size=4 [17:39:34]MH_SAM_APDU [17:39:34]CAPDU: 80 09 00 00 [17:39:34]Write to MH i2c: E2 08 00 BE 04 80 09 00 00 00 00 00 00 34 [17:39:34]Write i2c OK [17:39:34]MH_I2C_Read... [17:39:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:39:34]Read from MH i2c: E2 [17:39:34]MH_I2C_Read... [17:39:34]Read from MH i2c: E2 03 00 [17:39:34]MH_I2C_Read... [17:39:34]Read from MH i2c: E2 03 00 BE 04 00 90 00 36 [17:39:34]RAPDU: 90 00 [17:39:34]wFMCommunicate OK [17:39:34]SAM_PROTO_ClearQueue done [17:39:34]KKMCreateOFDPacket [17:39:34]OFDProtocolAddRootSTLVToBuf [17:39:34]FM_MakeSignedData [17:39:34]FM_MakeSignedData [17:39:34]SAM_PROTO_SignData [17:39:34]wFMCommunicate request_size=4 [17:39:34]MH_SAM_APDU [17:39:34]CAPDU: 80 0D 01 02 [17:39:34]Write to MH i2c: E2 08 00 BF 04 80 0D 01 02 00 00 00 00 3C [17:39:34]Write i2c OK [17:39:34]MH_I2C_Read... [17:39:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:39:34]Read from MH i2c: E2 [17:39:34]MH_I2C_Read... [17:39:34]Read from MH i2c: E2 03 00 [17:39:34]MH_I2C_Read... [17:39:34]Read from MH i2c: E2 03 00 BF 04 00 90 00 37 [17:39:34]RAPDU: 90 00 [17:39:34]wFMCommunicate OK [17:39:34]wFMCommunicate request_size=255 [17:39:34]MH_SAM_APDU [17:39:34]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 C0 06 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 06 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 97 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 17 37 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C0 06 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 B5 00 00 00 F4 03 04 00 D6 17 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 47 95 01 00 35 04 06 00 89 [17:39:34]Write to MH i2c: E2 02 01 C0 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 20 4E 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 C0 06 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 06 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 97 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 17 37 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C0 06 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 B5 00 00 00 F4 03 04 00 D6 17 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 47 95 01 00 35 04 06 00 89 00 00 47 [17:39:34]Write i2c OK [17:39:34]MH_I2C_Read... [17:39:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:39:35]Read from MH i2c: E2 [17:39:35]MH_I2C_Read... [17:39:35]Read from MH i2c: E2 03 00 [17:39:35]MH_I2C_Read... [17:39:35]Read from MH i2c: E2 03 00 C0 04 00 90 00 38 [17:39:35]RAPDU: 90 00 [17:39:35]wFMCommunicate OK [17:39:35]wFMCommunicate request_size=10 [17:39:35]MH_SAM_APDU [17:39:35]CAPDU: 80 0D 02 02 05 00 D4 58 46 CD [17:39:35]Write to MH i2c: E2 0D 00 C1 04 80 0D 02 02 05 00 00 D4 58 46 CD 00 00 88 [17:39:35]Write i2c OK [17:39:35]MH_I2C_Read... [17:39:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:39:35]Read from MH i2c: E2 [17:39:35]MH_I2C_Read... [17:39:35]Read from MH i2c: E2 03 00 [17:39:35]MH_I2C_Read... [17:39:35]Read from MH i2c: E2 03 00 C1 04 00 90 00 39 [17:39:35]RAPDU: 90 00 [17:39:35]wFMCommunicate OK [17:39:35]wFMCommunicate request_size=4 [17:39:35]MH_SAM_APDU [17:39:35]CAPDU: 80 0D 03 02 [17:39:35]Write to MH i2c: E2 08 00 C2 04 80 0D 03 02 00 00 00 00 41 [17:39:35]Write i2c OK [17:39:35]MH_I2C_Read... [17:39:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:39:35]Read from MH i2c: E2 [17:39:35]MH_I2C_Read... [17:39:35]Read from MH i2c: E2 0B 00 [17:39:35]MH_I2C_Read... [17:39:35]Read from MH i2c: E2 0B 00 C2 04 00 7C 55 42 99 32 C3 78 F3 90 00 4E [17:39:35]RAPDU: 7C 55 42 99 32 C3 78 F3 90 00 [17:39:35]wFMCommunicate OK [17:39:35]SAM_PROTO_SignData done [17:39:35]FM_MakeSignedData done [17:39:35]CreateOFDProtocolMessage [17:39:35]wFMCommunicate request_size=4 [17:39:35]MH_SAM_APDU [17:39:35]CAPDU: 80 11 00 00 [17:39:35]Write to MH i2c: E2 08 00 C3 04 80 11 00 00 00 00 00 00 41 [17:39:35]Write i2c OK [17:39:35]MH_I2C_Read... [17:39:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:39:35]Read from MH i2c: E2 [17:39:35]MH_I2C_Read... [17:39:35]Read from MH i2c: E2 17 00 [17:39:35]MH_I2C_Read... [17:39:35]Read from MH i2c: E2 17 00 C3 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 94 [17:39:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [17:39:35]wFMCommunicate OK [17:39:35]CreateOFDProtocolMessage done [17:39:35]OFDSenderStorePacket 103751 [17:39:35]StoreOFDPacket docnum=103751 [17:39:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 4B E8 07 01 30 7A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 C0 06 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 06 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 97 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 17 37 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C0 06 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 B5 00 00 00 F4 03 04 00 D6 17 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 47 95 01 00 35 04 06 00 89 00 D4 58 46 CD 7C 55 42 99 32 C3 78 F3 [17:39:35]CheckFolder [17:39:35]dirname=/storage/ofd_packets [17:39:35]CheckFolder done [17:39:35]ProducePacketName [17:39:35]name=ofd_packets/00103751 [17:39:35]NVStorageSaveData ofd_packets/00103751 [17:39:35]File name is /storage/ofd_packets/00103751 [17:39:35]Write 301 bytes [17:39:35]NVStorageSaveData done [17:39:35]OFDSenderStorePacket done [17:39:35]KKMCreateOFDPacket done [17:39:35]NVStorageSaveData kkm_last_timestamp [17:39:35]File name is /storage/kkm_last_timestamp [17:39:35]Write 4 bytes [17:39:35]NVStorageSaveData done [17:39:35]ExternCall_PrintAddStr [17:39:35]wPrintStart [17:39:35]Write to MH i2c: 01 00 00 C4 04 C8 [17:39:35]Write i2c OK [17:39:35]MH_I2C_Read... [17:39:35]Read from MH i2c: 01 [17:39:35]MH_I2C_Read... [17:39:35]Read from MH i2c: 01 07 00 [17:39:35]MH_I2C_Read... [17:39:35]Read from MH i2c: 01 07 00 C4 04 00 00 00 00 00 FF 0F DD [17:39:35]RasterBufferAndPrint [17:39:35]line Счет N : (1)673037 [17:39:35]line ИНН: 02508201610067 [17:39:35]line Контрольно-Кассовый Чек [17:39:35]line ПРОДАЖА [17:39:35]line ТРК (МРК, ГНК) : 42 [17:39:35]line Товар: 2710124130 [17:39:35]line Аи-92-К-5 [17:39:35]line 20.000 * 66.40 [17:39:35]line = 1328.00 [17:39:35]line НДС 12% НСП 1% [17:39:35]line > о реализуемом товаре [17:39:35]line ИТОГО: 1328.00 [17:39:35]line НСП 1% : 11.75 [17:39:35]line НДС 12% : 141.03 [17:39:35]line Наличными: 0.00 [17:39:35]line Безнал.: 1328.00 [17:39:35]line Место: АЗС № 120 "Партнер Нефть" [17:39:35]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [17:39:35]line СНО: Общий режим [17:39:35]line Чек 181 19.06.2024 17:39 [17:39:35]line Смена: 353 ФФД: 1.0 [17:39:35]line ЗНМ: 0300000164 [17:39:35]line РНМ: 0000000000092785 [17:39:35]line Версия ККМ: 001 [17:39:35]line Платежная система: Бакай Банк [17:39:35]line ФМ: 0000000000875093 [17:39:35]line ФД: 103751 [17:39:35]line ФПД: 150636655560397 [17:39:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T173934&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103751&fm=150636655560397&tin=02508201610067®Number=0000000000092785&sum=132800 [17:39:35]OFD Sender: Processing packet 103751 [packets to send 17, broken 16] [17:39:35]ProducePacketName [17:39:35]name=ofd_packets/00103751 [17:39:35]OFD Sender: To server: pG, [17:39:35]CommunicateWithHost lk.salyk.kg:30040 [17:39:35]ConnectInit lk.salyk.kg [17:39:35]written 0, free lines is 4095 [17:39:35]Connected sock=8 [17:39: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 39 33 0F 01 00 00 4B E8 07 01 30 7A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 C0 06 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 06 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 97 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 17 37 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C0 06 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 B5 00 00 00 F4 03 04 00 D6 17 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 47 95 01 00 35 04 06 00 89 00 D4 58 46 CD 7C 55 42 99 32 C3 78 F3 [17:39: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 39 33 4F 00 00 00 1C C2 47 00 8E 54 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 47 95 01 00 F4 03 04 00 5E BE 72 66 B6 04 01 00 00 6E 4B E4 D6 1C CD 96 2C [17:39:35]CommunicateWithHost err = 0 [17:39:35]CheckOFDResponse [17:39:35]1017 (14) - 77093643461234 [17:39:35]1041 (16) - 0000000000875093 [17:39:35]1040 (4) - 103751 [17:39:35]1012 (4) - 19.06.2024 11:17 [17:39:35]1206 (1) - 0 [17:39:35]OFD Sender: Remove packet 103751 [17:39:35]ProducePacketName [17:39:35]name=ofd_packets/00103751 [17:39:35]NVStorageDeleteData [17:39:35]Write to MH i2c: 01 00 00 EE 04 F2 [17:39:35]Write i2c OK [17:39:35]MH_I2C_Read... [17:39:35]Read from MH i2c: 01 [17:39:35]MH_I2C_Read... [17:39:35]Read from MH i2c: 01 07 00 [17:39:35]MH_I2C_Read... [17:39:35]Read from MH i2c: 01 07 00 EE 04 00 00 00 00 00 F3 0C F8 [17:39:35]RasterBufferAndPrint [17:39:35]line [17:39:35]line [17:39:35]line [17:39:35]line [17:39:35]line [17:39:35]written 0, free lines is 3321 [17:39:35]MH_Cut [17:39:35]Write to MH i2c: D1 01 00 F5 04 01 CB [17:39:35]Write i2c OK [17:39:35]MH_I2C_Read... [17:39:35]Read from MH i2c: D1 [17:39:35]MH_I2C_Read... [17:39:35]Read from MH i2c: D1 01 00 [17:39:35]MH_I2C_Read... [17:39:35]Read from MH i2c: D1 01 00 F5 04 00 CA [17:39:35]Write to MH i2c: 01 00 00 F6 04 FA [17:39:35]Write i2c OK [17:39:35]MH_I2C_Read... [17:39:36]OFD Sender: No OFD packet to send [17:39:36]*** Cut start [17:39:36]*** Partial cut [17:39:36]*** CUTSNS_PIN = 1 [17:39:36]*** CUTSNS_PIN = 0 [17:39:36]*** Brake cut motor [17:39:37]Read from MH i2c: 01 [17:39:37]MH_I2C_Read... [17:39:37]*** Stop cut motor [17:39:37]*** Cut end [17:39:37]Read from MH i2c: 01 07 00 [17:39:37]MH_I2C_Read... [17:39:37]Read from MH i2c: 01 07 00 F6 04 00 00 00 00 00 FF 0F 0F [17:39:37]process_action close_receipt done [17:39:37]requested_data is exist [17:39:37]produce_requested_data [17:39:37]requested_item fm.sn is exist - process it [17:39:37]wFMCommunicate request_size=4 [17:39:37]MH_SAM_APDU [17:39:37]CAPDU: 80 11 00 00 [17:39:37]Write to MH i2c: E2 08 00 F7 04 80 11 00 00 00 00 00 00 75 [17:39:37]Write i2c OK [17:39:37]MH_I2C_Read... [17:39:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:39:37]Read from MH i2c: E2 [17:39:37]MH_I2C_Read... [17:39:37]Read from MH i2c: E2 17 00 [17:39:37]MH_I2C_Read... [17:39:37]Read from MH i2c: E2 17 00 F7 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 C8 [17:39:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [17:39:37]wFMCommunicate OK [17:39:37]requested_item fd.num is exist - process it [17:39:37]SAM_PROTO_GetFieldsCounters [17:39:37]wFMCommunicate request_size=4 [17:39:37]MH_SAM_APDU [17:39:37]CAPDU: 80 13 00 00 [17:39:37]Write to MH i2c: E2 08 00 F8 04 80 13 00 00 00 00 00 00 78 [17:39:37]Write i2c OK [17:39:37]MH_I2C_Read... [17:39:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:39:37]Read from MH i2c: E2 [17:39:37]MH_I2C_Read... [17:39:37]Read from MH i2c: E2 62 00 [17:39:37]MH_I2C_Read... [17:39:37]Read from MH i2c: E2 62 00 F8 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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 47 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 B5 00 00 00 5E 04 04 00 B5 00 00 00 57 04 04 00 B6 00 00 00 19 04 04 00 00 00 00 00 90 00 FD [17:39:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 47 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 B5 00 00 00 5E 04 04 00 B5 00 00 00 57 04 04 00 B6 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:39:37]wFMCommunicate OK [17:39:37]SAM_PROTO_GetFieldsCounters done [17:39:37]requested_item shift.num is exist - process it [17:39:37]requested_item shift.opened is exist - process it [17:39:37]req_shift_opened [17:39:37]FM_GetShiftState [17:39:37]SAM_PROTO_GetShiftState [17:39:37]wFMCommunicate request_size=4 [17:39:37]MH_SAM_APDU [17:39:37]CAPDU: 80 13 01 00 [17:39:37]Write to MH i2c: E2 08 00 F9 04 80 13 01 00 00 00 00 00 7A [17:39:37]Write i2c OK [17:39:37]MH_I2C_Read... [17:39:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:39:37]Read from MH i2c: E2 [17:39:37]MH_I2C_Read... [17:39:37]Read from MH i2c: E2 0E 00 [17:39:37]MH_I2C_Read... [17:39:37]Read from MH i2c: E2 0E 00 F9 04 00 09 00 01 04 26 72 66 00 00 00 00 90 00 88 [17:39:37]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [17:39:37]wFMCommunicate OK [17:39:37]SAM_PROTO_GetShiftState done [17:39:37]FM_GetShiftState done [17:39:37]req_shift_opened done [17:39:37]requested_item shift.open_date is exist - process it [17:39:37]req_shift_open_date [17:39:37]req_shift_open_date done [17:39:37]produce_requested_data done [17:39:37]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103751,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [17:39:37]process_action_free close_receipt [17:39:37]json_value_free [17:39:37]json_value_free done [17:39:37]process_json_proto returns [17:39:37]Send response to host [17:39:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103751,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [17:39:37]free response buf [17:39:37]execute_script done [17:39:37]execute_script returns [17:39:37]free content buf [17:39:37]Sock 9.Close socket [17:39:37]Sock 9.Thread stoped [17:39:41]OFD Sender: No OFD packet to send [17:39:46]OFD Sender: No OFD packet to send [17:39:51]OFD Sender: No OFD packet to send [17:39:56]OFD Sender: No OFD packet to send [17:40:01]OFD Sender: No OFD packet to send [17:40:06]OFD Sender: No OFD packet to send [17:40:11]OFD Sender: No OFD packet to send [17:40:16]OFD Sender: No OFD packet to send [17:40:21]OFD Sender: No OFD packet to send [17:40:26]OFD Sender: No OFD packet to send [17:40:31]OFD Sender: No OFD packet to send [17:40:35]accept exits with 10 [17:40:35]New connection [17:40:35]New thread 3066940772 created [17:40:35]Thread 3066797412 joined [17:40:35]Waiting for new connection... [17:40:35] Sock 10.Parse request [17:40:35]Sock 10.Check first char [17:40:35]Sock 10.First char is OK [17:40:35]request: POST /json_proto HTTP/1.0 [17:40:35]Method: POST [17:40:35]URL: /json_proto [17:40:35]Method is POST - this is cgi request [17:40:35]url: /json_proto [17:40:35]query_string will be loaded in cgi processing [17:40:35]execute_cgi json_proto POST (null) [17:40:35]execute_cgi path=json_proto method=POST [17:40:35]POST find Content-Length [17:40:35]Host: 172.17.38.133:8080 [17:40:35]Content-Length: 819 [17:40:35]Content-Type: application/json [17:40:35] [17:40:35]POST finish read [17:40:35]Found Content-Length = 819 [17:40:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673038", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 30.130, "sum" : 2000.63, "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" : 2000.63 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:40:35]execute_script... [17:40:35]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673038", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 30.130, "sum" : 2000.63, "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" : 2000.63 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:40:35]POST & json_proto [17:40:35]process_json_proto [17:40:35]json parsed OK: [17:40:35]protocol is kg_v1.0 [17:40:35]action value=close_receipt [17:40:35]process_action close_receipt [17:40:35]cmd_close_receipt [17:40:35]MH_GetDate [17:40:35]Write to MH i2c: F0 00 00 FA 04 ED [17:40:35]Write i2c OK [17:40:35]MH_I2C_Read... [17:40:35]Read from MH i2c: F0 [17:40:35]MH_I2C_Read... [17:40:35]Read from MH i2c: F0 09 00 [17:40:35]MH_I2C_Read... [17:40:35]Read from MH i2c: F0 09 00 FA 04 00 13 18 73 66 BD 8F 7C 64 26 [17:40:35]GetLastDocTimeStamp 1718818774 [17:40:35]current date 1718818835 [17:40:35]FM_GetShiftState [17:40:35]SAM_PROTO_GetShiftState [17:40:35]wFMCommunicate request_size=4 [17:40:35]MH_SAM_APDU [17:40:35]CAPDU: 80 13 01 00 [17:40:35]Write to MH i2c: E2 08 00 FB 04 80 13 01 00 00 00 00 00 7C [17:40:35]Write i2c OK [17:40:35]MH_I2C_Read... [17:40:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:40:35]Read from MH i2c: E2 [17:40:35]MH_I2C_Read... [17:40:35]Read from MH i2c: E2 0E 00 [17:40:35]MH_I2C_Read... [17:40:35]Read from MH i2c: E2 0E 00 FB 04 00 09 00 01 04 26 72 66 00 00 00 00 90 00 8A [17:40:35]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [17:40:35]wFMCommunicate OK [17:40:35]SAM_PROTO_GetShiftState done [17:40:35]FM_GetShiftState done [17:40:35]opened in 1718756868 [17:40:35]opened+sec_in_day 1718843268 [17:40:35]quantity*price = 200063 [17:40:35]sum+1 = 200064 [17:40:35]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.63 НСП 1% : 17.70 НДС 12% : 212.46 Наличными: 0.00 Безнал.: 2000.63 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 182 19.06.2024 17:40 Смена: 353 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000875093 ФД: 103752 ФПД: 184551709793330 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T174036&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103752&fm=184551709793330&tin=02508201610067®Number=0000000000092785&sum=200063 [17:40:36]StoreToDocumentArchive [17:40:36]shift 353 fd 103752 [17:40:36]save to /storage/0353/doc_00103752 [17:40:36]save last doc name /storage/0353/doc_00103752 to /storage/kkm_last_doc_name [17:40:36]save OK [17:40:36]Clear old archive folders... [17:40:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:40:36]tlvbuf is 0168FD20 [17:40:36]SAM_PROTO_ClearQueue [17:40:36]wFMCommunicate request_size=4 [17:40:36]MH_SAM_APDU [17:40:36]CAPDU: 80 09 00 00 [17:40:36]Write to MH i2c: E2 08 00 08 05 80 09 00 00 00 00 00 00 7F [17:40:36]Write i2c OK [17:40:36]MH_I2C_Read... [17:40:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:40:36]Read from MH i2c: E2 [17:40:36]MH_I2C_Read... [17:40:36]Read from MH i2c: E2 03 00 [17:40:36]MH_I2C_Read... [17:40:36]Read from MH i2c: E2 03 00 08 05 00 90 00 81 [17:40:36]RAPDU: 90 00 [17:40:36]wFMCommunicate OK [17:40:36]SAM_PROTO_ClearQueue done [17:40:36]KKMCreateOFDPacket [17:40:36]OFDProtocolAddRootSTLVToBuf [17:40:36]FM_MakeSignedData [17:40:36]FM_MakeSignedData [17:40:36]SAM_PROTO_SignData [17:40:36]wFMCommunicate request_size=4 [17:40:36]MH_SAM_APDU [17:40:36]CAPDU: 80 0D 01 02 [17:40:36]Write to MH i2c: E2 08 00 09 05 80 0D 01 02 00 00 00 00 87 [17:40:36]Write i2c OK [17:40:36]MH_I2C_Read... [17:40:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:40:36]Read from MH i2c: E2 [17:40:36]MH_I2C_Read... [17:40:36]Read from MH i2c: E2 03 00 [17:40:36]MH_I2C_Read... [17:40:36]Read from MH i2c: E2 03 00 09 05 00 90 00 82 [17:40:36]RAPDU: 90 00 [17:40:36]wFMCommunicate OK [17:40:36]wFMCommunicate request_size=255 [17:40:36]MH_SAM_APDU [17:40:36]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B2 75 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7F 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FE 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7F 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 B6 00 00 00 F4 03 04 00 14 18 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 48 95 01 00 35 04 06 00 A7 [17:40:36]Write to MH i2c: E2 02 01 0A 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 B2 75 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7F 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FE 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7F 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 B6 00 00 00 F4 03 04 00 14 18 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 48 95 01 00 35 04 06 00 A7 00 00 56 [17:40:36]Write i2c OK [17:40:36]MH_I2C_Read... [17:40:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:40:36]Read from MH i2c: E2 [17:40:36]MH_I2C_Read... [17:40:36]Read from MH i2c: E2 03 00 [17:40:36]MH_I2C_Read... [17:40:36]Read from MH i2c: E2 03 00 0A 05 00 90 00 83 [17:40:36]RAPDU: 90 00 [17:40:36]wFMCommunicate OK [17:40:36]wFMCommunicate request_size=10 [17:40:36]MH_SAM_APDU [17:40:36]CAPDU: 80 0D 02 02 05 D9 4B 1A DC 32 [17:40:36]Write to MH i2c: E2 0D 00 0B 05 80 0D 02 02 05 00 D9 4B 1A DC 32 00 00 E0 [17:40:36]Write i2c OK [17:40:36]MH_I2C_Read... [17:40:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:40:36]Read from MH i2c: E2 [17:40:36]MH_I2C_Read... [17:40:36]Read from MH i2c: E2 03 00 [17:40:36]MH_I2C_Read... [17:40:36]Read from MH i2c: E2 03 00 0B 05 00 90 00 84 [17:40:36]RAPDU: 90 00 [17:40:36]wFMCommunicate OK [17:40:36]wFMCommunicate request_size=4 [17:40:36]MH_SAM_APDU [17:40:36]CAPDU: 80 0D 03 02 [17:40:36]Write to MH i2c: E2 08 00 0C 05 80 0D 03 02 00 00 00 00 8C [17:40:37]Write i2c OK [17:40:37]MH_I2C_Read... [17:40:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:40:37]Read from MH i2c: E2 [17:40:37]MH_I2C_Read... [17:40:37]Read from MH i2c: E2 0B 00 [17:40:37]MH_I2C_Read... [17:40:37]Read from MH i2c: E2 0B 00 0C 05 00 FB 18 2D 2D 1E CA FD 28 90 00 07 [17:40:37]RAPDU: FB 18 2D 2D 1E CA FD 28 90 00 [17:40:37]wFMCommunicate OK [17:40:37]SAM_PROTO_SignData done [17:40:37]FM_MakeSignedData done [17:40:37]CreateOFDProtocolMessage [17:40:37]wFMCommunicate request_size=4 [17:40:37]MH_SAM_APDU [17:40:37]CAPDU: 80 11 00 00 [17:40:37]Write to MH i2c: E2 08 00 0D 05 80 11 00 00 00 00 00 00 8C [17:40:37]Write i2c OK [17:40:37]MH_I2C_Read... [17:40:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:40:37]Read from MH i2c: E2 [17:40:37]MH_I2C_Read... [17:40:37]Read from MH i2c: E2 17 00 [17:40:37]MH_I2C_Read... [17:40:37]Read from MH i2c: E2 17 00 0D 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 DF [17:40:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [17:40:37]wFMCommunicate OK [17:40:37]CreateOFDProtocolMessage done [17:40:37]OFDSenderStorePacket 103752 [17:40:37]StoreOFDPacket docnum=103752 [17:40:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 17 59 07 01 85 91 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B2 75 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7F 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FE 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7F 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 B6 00 00 00 F4 03 04 00 14 18 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 48 95 01 00 35 04 06 00 A7 D9 4B 1A DC 32 FB 18 2D 2D 1E CA FD 28 [17:40:37]CheckFolder [17:40:37]dirname=/storage/ofd_packets [17:40:37]CheckFolder done [17:40:37]ProducePacketName [17:40:37]name=ofd_packets/00103752 [17:40:37]NVStorageSaveData ofd_packets/00103752 [17:40:37]File name is /storage/ofd_packets/00103752 [17:40:37]Write 301 bytes [17:40:37]NVStorageSaveData done [17:40:37]OFDSenderStorePacket done [17:40:37]KKMCreateOFDPacket done [17:40:37]NVStorageSaveData kkm_last_timestamp [17:40:37]File name is /storage/kkm_last_timestamp [17:40:37]Write 4 bytes [17:40:37]NVStorageSaveData done [17:40:37]ExternCall_PrintAddStr [17:40:37]wPrintStart [17:40:37]Write to MH i2c: 01 00 00 0E 05 13 [17:40:37]Write i2c OK [17:40:37]MH_I2C_Read... [17:40:37]Read from MH i2c: 01 [17:40:37]MH_I2C_Read... [17:40:37]Read from MH i2c: 01 07 00 [17:40:37]MH_I2C_Read... [17:40:37]Read from MH i2c: 01 07 00 0E 05 00 00 00 00 00 FF 0F 28 [17:40:37]RasterBufferAndPrint [17:40:37]line Счет N : (1)673038 [17:40:37]line ИНН: 02508201610067 [17:40:37]line Контрольно-Кассовый Чек [17:40:37]line ПРОДАЖА [17:40:37]line ТРК (МРК, ГНК) : 32 [17:40:37]line Товар: 2710124130 [17:40:37]line Аи-92-К-5 [17:40:37]line 30.130 * 66.40 [17:40:37]line = 2000.63 [17:40:37]line НДС 12% НСП 1% [17:40:37]line > о реализуемом товаре [17:40:37]line ИТОГО: 2000.63 [17:40:37]line НСП 1% : 17.70 [17:40:37]line НДС 12% : 212.46 [17:40:37]line Наличными: 0.00 [17:40:37]line Безнал.: 2000.63 [17:40:37]line Место: АЗС № 120 "Партнер Нефть" [17:40:37]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [17:40:37]line СНО: Общий режим [17:40:37]line Чек 182 19.06.2024 17:40 [17:40:37]line Смена: 353 ФФД: 1.0 [17:40:37]line ЗНМ: 0300000164 [17:40:37]line РНМ: 0000000000092785 [17:40:37]line Версия ККМ: 001 [17:40:37]line Платежная система: Бакай Банк [17:40:37]line ФМ: 0000000000875093 [17:40:37]line ФД: 103752 [17:40:37]line ФПД: 184551709793330 [17:40:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T174036&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103752&fm=184551709793330&tin=02508201610067®Number=0000000000092785&sum=200063 [17:40:37]OFD Sender: Processing packet 103752 [packets to send 17, broken 16] [17:40:37]ProducePacketName [17:40:37]name=ofd_packets/00103752 [17:40:37]OFD Sender: To server: pG, [17:40:37]CommunicateWithHost lk.salyk.kg:30040 [17:40:37]ConnectInit lk.salyk.kg [17:40:37]written 0, free lines is 4095 [17:40:37]Connected sock=9 [17:40:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 17 59 07 01 85 91 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B2 75 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7F 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FE 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7F 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 B6 00 00 00 F4 03 04 00 14 18 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 48 95 01 00 35 04 06 00 A7 D9 4B 1A DC 32 FB 18 2D 2D 1E CA FD 28 [17:40:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 66 95 47 00 54 4E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 48 95 01 00 F4 03 04 00 9C BE 72 66 B6 04 01 00 00 44 D4 83 5B 43 B6 47 27 [17:40:37]CommunicateWithHost err = 0 [17:40:37]CheckOFDResponse [17:40:37]1017 (14) - 77093643461234 [17:40:37]1041 (16) - 0000000000875093 [17:40:37]1040 (4) - 103752 [17:40:37]1012 (4) - 19.06.2024 11:18 [17:40:37]1206 (1) - 0 [17:40:37]OFD Sender: Remove packet 103752 [17:40:37]ProducePacketName [17:40:37]name=ofd_packets/00103752 [17:40:37]NVStorageDeleteData [17:40:37]Write to MH i2c: 01 00 00 38 05 3D [17:40:37]Write i2c OK [17:40:37]MH_I2C_Read... [17:40:37]Read from MH i2c: 01 [17:40:37]MH_I2C_Read... [17:40:37]Read from MH i2c: 01 07 00 [17:40:37]MH_I2C_Read... [17:40:37]Read from MH i2c: 01 07 00 38 05 00 00 00 00 00 EB 0C 3B [17:40:37]RasterBufferAndPrint [17:40:37]line [17:40:37]line [17:40:37]line [17:40:37]line [17:40:37]line [17:40:37]written 0, free lines is 3314 [17:40:37]MH_Cut [17:40:37]Write to MH i2c: D1 01 00 3F 05 01 16 [17:40:37]Write i2c OK [17:40:37]MH_I2C_Read... [17:40:37]Read from MH i2c: D1 [17:40:37]MH_I2C_Read... [17:40:37]Read from MH i2c: D1 01 00 [17:40:37]MH_I2C_Read... [17:40:37]Read from MH i2c: D1 01 00 3F 05 00 15 [17:40:37]Write to MH i2c: 01 00 00 40 05 45 [17:40:37]Write i2c OK [17:40:37]MH_I2C_Read... [17:40:38]OFD Sender: No OFD packet to send [17:40:38]*** Cut start [17:40:38]*** Partial cut [17:40:38]*** CUTSNS_PIN = 1 [17:40:38]*** CUTSNS_PIN = 0 [17:40:38]*** Brake cut motor [17:40:39]Read from MH i2c: 01 [17:40:39]MH_I2C_Read... [17:40:39]*** Stop cut motor [17:40:39]*** Cut end [17:40:39]Read from MH i2c: 01 07 00 [17:40:39]MH_I2C_Read... [17:40:39]Read from MH i2c: 01 07 00 40 05 00 00 00 00 00 FF 0F 5A [17:40:39]process_action close_receipt done [17:40:39]requested_data is exist [17:40:39]produce_requested_data [17:40:39]requested_item fm.sn is exist - process it [17:40:39]wFMCommunicate request_size=4 [17:40:39]MH_SAM_APDU [17:40:39]CAPDU: 80 11 00 00 [17:40:39]Write to MH i2c: E2 08 00 41 05 80 11 00 00 00 00 00 00 C0 [17:40:39]Write i2c OK [17:40:39]MH_I2C_Read... [17:40:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:40:39]Read from MH i2c: E2 [17:40:39]MH_I2C_Read... [17:40:39]Read from MH i2c: E2 17 00 [17:40:39]MH_I2C_Read... [17:40:39]Read from MH i2c: E2 17 00 41 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 13 [17:40:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [17:40:39]wFMCommunicate OK [17:40:39]requested_item fd.num is exist - process it [17:40:39]SAM_PROTO_GetFieldsCounters [17:40:39]wFMCommunicate request_size=4 [17:40:39]MH_SAM_APDU [17:40:39]CAPDU: 80 13 00 00 [17:40:39]Write to MH i2c: E2 08 00 42 05 80 13 00 00 00 00 00 00 C3 [17:40:39]Write i2c OK [17:40:39]MH_I2C_Read... [17:40:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:40:39]Read from MH i2c: E2 [17:40:39]MH_I2C_Read... [17:40:39]Read from MH i2c: E2 62 00 [17:40:39]MH_I2C_Read... [17:40:39]Read from MH i2c: E2 62 00 42 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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 48 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 B6 00 00 00 5E 04 04 00 B6 00 00 00 57 04 04 00 B7 00 00 00 19 04 04 00 00 00 00 00 90 00 4C [17:40: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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 48 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 B6 00 00 00 5E 04 04 00 B6 00 00 00 57 04 04 00 B7 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:40:39]wFMCommunicate OK [17:40:39]SAM_PROTO_GetFieldsCounters done [17:40:39]requested_item shift.num is exist - process it [17:40:39]requested_item shift.opened is exist - process it [17:40:39]req_shift_opened [17:40:39]FM_GetShiftState [17:40:39]SAM_PROTO_GetShiftState [17:40:39]wFMCommunicate request_size=4 [17:40:39]MH_SAM_APDU [17:40:39]CAPDU: 80 13 01 00 [17:40:39]Write to MH i2c: E2 08 00 43 05 80 13 01 00 00 00 00 00 C5 [17:40:39]Write i2c OK [17:40:39]MH_I2C_Read... [17:40:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:40:39]Read from MH i2c: E2 [17:40:39]MH_I2C_Read... [17:40:39]Read from MH i2c: E2 0E 00 [17:40:39]MH_I2C_Read... [17:40:39]Read from MH i2c: E2 0E 00 43 05 00 09 00 01 04 26 72 66 00 00 00 00 90 00 D3 [17:40:39]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [17:40:39]wFMCommunicate OK [17:40:39]SAM_PROTO_GetShiftState done [17:40:39]FM_GetShiftState done [17:40:39]req_shift_opened done [17:40:39]requested_item shift.open_date is exist - process it [17:40:39]req_shift_open_date [17:40:39]req_shift_open_date done [17:40:39]produce_requested_data done [17:40:39]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103752,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [17:40:39]process_action_free close_receipt [17:40:39]json_value_free [17:40:39]json_value_free done [17:40:39]process_json_proto returns [17:40:39]Send response to host [17:40:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103752,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [17:40:39]free response buf [17:40:39]execute_script done [17:40:39]execute_script returns [17:40:39]free content buf [17:40:39]Sock 10.Close socket [17:40:39]Sock 10.Thread stoped [17:40:43]OFD Sender: No OFD packet to send [17:40:48]OFD Sender: No OFD packet to send [17:40:53]OFD Sender: No OFD packet to send [17:40:58]OFD Sender: No OFD packet to send [17:41:00]accept exits with 8 [17:41:00]New connection [17:41:00]New thread 3066797412 created [17:41:00]Thread 3066940772 joined [17:41:00]Waiting for new connection... [17:41:00] Sock 8.Parse request [17:41:00]Sock 8.Check first char [17:41:00]Sock 8.First char is OK [17:41:00]request: POST /json_proto HTTP/1.0 [17:41:00]Method: POST [17:41:00]URL: /json_proto [17:41:00]Method is POST - this is cgi request [17:41:00]url: /json_proto [17:41:00]query_string will be loaded in cgi processing [17:41:00]execute_cgi json_proto POST (null) [17:41:00]execute_cgi path=json_proto method=POST [17:41:00]POST find Content-Length [17:41:00]Host: 172.17.38.133:8080 [17:41:00]Content-Length: 677 [17:41:00]Content-Type: application/json [17:41:00] [17:41:00]POST finish read [17:41:00]Found Content-Length = 677 [17:41:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673039", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:41:00]execute_script... [17:41: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)673039", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:41:00]POST & json_proto [17:41:00]process_json_proto [17:41:00]json parsed OK: [17:41:00]protocol is kg_v1.0 [17:41:00]action value=close_receipt [17:41:00]process_action close_receipt [17:41:00]cmd_close_receipt [17:41:00]MH_GetDate [17:41:00]Write to MH i2c: F0 00 00 44 05 38 [17:41:00]Write i2c OK [17:41:00]MH_I2C_Read... [17:41:00]Read from MH i2c: F0 [17:41:00]MH_I2C_Read... [17:41:00]Read from MH i2c: F0 09 00 [17:41:00]MH_I2C_Read... [17:41:00]Read from MH i2c: F0 09 00 44 05 00 2C 18 73 66 BD 8F 7C 64 8A [17:41:00]GetLastDocTimeStamp 1718818836 [17:41:00]current date 1718818860 [17:41:00]FM_GetShiftState [17:41:00]SAM_PROTO_GetShiftState [17:41:00]wFMCommunicate request_size=4 [17:41:00]MH_SAM_APDU [17:41:00]CAPDU: 80 13 01 00 [17:41:00]Write to MH i2c: E2 08 00 45 05 80 13 01 00 00 00 00 00 C7 [17:41:00]Write i2c OK [17:41:00]MH_I2C_Read... [17:41:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:41:00]Read from MH i2c: E2 [17:41:00]MH_I2C_Read... [17:41:00]Read from MH i2c: E2 0E 00 [17:41:00]MH_I2C_Read... [17:41:00]Read from MH i2c: E2 0E 00 45 05 00 09 00 01 04 26 72 66 00 00 00 00 90 00 D5 [17:41:00]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [17:41:00]wFMCommunicate OK [17:41:00]SAM_PROTO_GetShiftState done [17:41:00]FM_GetShiftState done [17:41:00]opened in 1718756868 [17:41:00]opened+sec_in_day 1718843268 [17:41:00]quantity*price = 50065 [17:41:00]sum+1 = 50067 [17:41:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.17 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 183 19.06.2024 17:41 Смена: 353 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103753 ФПД: 275107285388882 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T174101&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103753&fm=275107285388882&tin=02508201610067®Number=0000000000092785&sum=50000 [17:41:01]StoreToDocumentArchive [17:41:01]shift 353 fd 103753 [17:41:01]save to /storage/0353/doc_00103753 [17:41:01]save last doc name /storage/0353/doc_00103753 to /storage/kkm_last_doc_name [17:41:01]save OK [17:41:01]Clear old archive folders... [17:41:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:41:01]tlvbuf is 01691650 [17:41:01]SAM_PROTO_ClearQueue [17:41:01]wFMCommunicate request_size=4 [17:41:01]MH_SAM_APDU [17:41:01]CAPDU: 80 09 00 00 [17:41:01]Write to MH i2c: E2 08 00 52 05 80 09 00 00 00 00 00 00 C9 [17:41:01]Write i2c OK [17:41:01]MH_I2C_Read... [17:41:01]Read from MH i2c: E2 [17:41:01]MH_I2C_Read... [17:41:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:41:01]Read from MH i2c: E2 03 00 [17:41:01]MH_I2C_Read... [17:41:01]Read from MH i2c: E2 03 00 52 05 00 90 00 CB [17:41:01]RAPDU: 90 00 [17:41:01]wFMCommunicate OK [17:41:01]SAM_PROTO_ClearQueue done [17:41:01]KKMCreateOFDPacket [17:41:01]OFDProtocolAddRootSTLVToBuf [17:41:01]FM_MakeSignedData [17:41:01]FM_MakeSignedData [17:41:01]SAM_PROTO_SignData [17:41:01]wFMCommunicate request_size=4 [17:41:01]MH_SAM_APDU [17:41:01]CAPDU: 80 0D 01 02 [17:41:01]Write to MH i2c: E2 08 00 53 05 80 0D 01 02 00 00 00 00 D1 [17:41:01]Write i2c OK [17:41:01]MH_I2C_Read... [17:41:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:41:01]Read from MH i2c: E2 [17:41:01]MH_I2C_Read... [17:41:01]Read from MH i2c: E2 03 00 [17:41:01]MH_I2C_Read... [17:41:01]Read from MH i2c: E2 03 00 53 05 00 90 00 CC [17:41:01]RAPDU: 90 00 [17:41:01]wFMCommunicate OK [17:41:01]wFMCommunicate request_size=255 [17:41:01]MH_SAM_APDU [17:41:01]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B7 00 00 00 F4 03 04 00 2D 18 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 49 95 01 00 35 04 06 00 FA [17:41:01]Write to MH i2c: E2 02 01 54 05 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B7 00 00 00 F4 03 04 00 2D 18 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 49 95 01 00 35 04 06 00 FA 00 00 9B [17:41:01]Write i2c OK [17:41:01]MH_I2C_Read... [17:41:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:41:01]Read from MH i2c: E2 [17:41:01]MH_I2C_Read... [17:41:01]Read from MH i2c: E2 03 00 [17:41:01]MH_I2C_Read... [17:41:01]Read from MH i2c: E2 03 00 54 05 00 90 00 CD [17:41:01]RAPDU: 90 00 [17:41:01]wFMCommunicate OK [17:41:01]wFMCommunicate request_size=10 [17:41:01]MH_SAM_APDU [17:41:01]CAPDU: 80 0D 02 02 05 35 68 05 4E 52 [17:41:01]Write to MH i2c: E2 0D 00 55 05 80 0D 02 02 05 00 35 68 05 4E 52 00 00 20 [17:41:01]Write i2c OK [17:41:01]MH_I2C_Read... [17:41:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:41:01]Read from MH i2c: E2 [17:41:01]MH_I2C_Read... [17:41:01]Read from MH i2c: E2 03 00 [17:41:01]MH_I2C_Read... [17:41:01]Read from MH i2c: E2 03 00 55 05 00 90 00 CE [17:41:01]RAPDU: 90 00 [17:41:01]wFMCommunicate OK [17:41:01]wFMCommunicate request_size=4 [17:41:01]MH_SAM_APDU [17:41:01]CAPDU: 80 0D 03 02 [17:41:01]Write to MH i2c: E2 08 00 56 05 80 0D 03 02 00 00 00 00 D6 [17:41:01]Write i2c OK [17:41:01]MH_I2C_Read... [17:41:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:41:02]Read from MH i2c: E2 [17:41:02]MH_I2C_Read... [17:41:02]Read from MH i2c: E2 0B 00 [17:41:02]MH_I2C_Read... [17:41:02]Read from MH i2c: E2 0B 00 56 05 00 81 16 F3 FA 32 81 67 4A 90 00 BF [17:41:02]RAPDU: 81 16 F3 FA 32 81 67 4A 90 00 [17:41:02]wFMCommunicate OK [17:41:02]SAM_PROTO_SignData done [17:41:02]FM_MakeSignedData done [17:41:02]CreateOFDProtocolMessage [17:41:02]wFMCommunicate request_size=4 [17:41:02]MH_SAM_APDU [17:41:02]CAPDU: 80 11 00 00 [17:41:02]Write to MH i2c: E2 08 00 57 05 80 11 00 00 00 00 00 00 D6 [17:41:02]Write i2c OK [17:41:02]MH_I2C_Read... [17:41:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:41:02]Read from MH i2c: E2 [17:41:02]MH_I2C_Read... [17:41:02]Read from MH i2c: E2 17 00 [17:41:02]MH_I2C_Read... [17:41:02]Read from MH i2c: E2 17 00 57 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 29 [17:41:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [17:41:02]wFMCommunicate OK [17:41:02]CreateOFDProtocolMessage done [17:41:02]OFDSenderStorePacket 103753 [17:41:02]StoreOFDPacket docnum=103753 [17:41:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 53 5A 07 01 FF AD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B7 00 00 00 F4 03 04 00 2D 18 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 49 95 01 00 35 04 06 00 FA 35 68 05 4E 52 81 16 F3 FA 32 81 67 4A [17:41:02]CheckFolder [17:41:02]dirname=/storage/ofd_packets [17:41:02]CheckFolder done [17:41:02]ProducePacketName [17:41:02]name=ofd_packets/00103753 [17:41:02]NVStorageSaveData ofd_packets/00103753 [17:41:02]File name is /storage/ofd_packets/00103753 [17:41:02]Write 301 bytes [17:41:02]NVStorageSaveData done [17:41:02]OFDSenderStorePacket done [17:41:02]KKMCreateOFDPacket done [17:41:02]NVStorageSaveData kkm_last_timestamp [17:41:02]File name is /storage/kkm_last_timestamp [17:41:02]Write 4 bytes [17:41:02]NVStorageSaveData done [17:41:02]ExternCall_PrintAddStr [17:41:02]wPrintStart [17:41:02]Write to MH i2c: 01 00 00 58 05 5D [17:41:02]Write i2c OK [17:41:02]MH_I2C_Read... [17:41:02]Read from MH i2c: 01 [17:41:02]MH_I2C_Read... [17:41:02]Read from MH i2c: 01 07 00 [17:41:02]MH_I2C_Read... [17:41:02]Read from MH i2c: 01 07 00 58 05 00 00 00 00 00 FF 0F 72 [17:41:02]RasterBufferAndPrint [17:41:02]line Счет N : (1)673039 [17:41:02]line ИНН: 02508201610067 [17:41:02]line Контрольно-Кассовый Чек [17:41:02]line ПРОДАЖА [17:41:02]line ТРК (МРК, ГНК) : 42 [17:41:02]line Товар: 2710124130 [17:41:02]line Аи-92-К-5 [17:41:02]line 7.540 * 66.40 [17:41:02]line = 500.66 [17:41:02]line НДС 12% НСП 1% [17:41:02]line > о реализуемом товаре [17:41:02]line ОКРУГЛЕНИЕ: -0.66 [17:41:02]line ИТОГО: 500.00 [17:41:02]line Внесено: 500.00 [17:41:02]line СДАЧА: 0.00 [17:41:02]line НСП 1% : 4.43 [17:41:02]line НДС 12% : 53.17 [17:41:02]line Наличными: 500.00 [17:41:02]line Безнал.: 0.00 [17:41:02]line Место: АЗС № 120 "Партнер Нефть" [17:41:02]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [17:41:02]line СНО: Общий режим [17:41:02]line Чек 183 19.06.2024 17:41 [17:41:02]line Смена: 353 ФФД: 1.0 [17:41:02]line ЗНМ: 0300000164 [17:41:02]line РНМ: 0000000000092785 [17:41:02]line Версия ККМ: 001 [17:41:02]line ФМ: 0000000000875093 [17:41:02]line ФД: 103753 [17:41:02]line ФПД: 275107285388882 [17:41:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T174101&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103753&fm=275107285388882&tin=02508201610067®Number=0000000000092785&sum=50000 [17:41:02]OFD Sender: Processing packet 103753 [packets to send 17, broken 16] [17:41:02]ProducePacketName [17:41:02]name=ofd_packets/00103753 [17:41:02]OFD Sender: To server: pG, [17:41:02]CommunicateWithHost lk.salyk.kg:30040 [17:41:02]ConnectInit lk.salyk.kg [17:41:02]written 0, free lines is 4095 [17:41:02]Connected sock=10 [17:41: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 39 33 0F 01 00 00 53 5A 07 01 FF AD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B7 00 00 00 F4 03 04 00 2D 18 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 49 95 01 00 35 04 06 00 FA 35 68 05 4E 52 81 16 F3 FA 32 81 67 4A [17:41: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 39 33 4F 00 00 00 74 5C 47 00 95 34 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 49 95 01 00 F4 03 04 00 B5 BE 72 66 B6 04 01 00 00 AA 85 83 8D 94 28 06 13 [17:41:02]CommunicateWithHost err = 0 [17:41:02]CheckOFDResponse [17:41:02]1017 (14) - 77093643461234 [17:41:02]1041 (16) - 0000000000875093 [17:41:02]1040 (4) - 103753 [17:41:02]1012 (4) - 19.06.2024 11:19 [17:41:02]1206 (1) - 0 [17:41:02]OFD Sender: Remove packet 103753 [17:41:02]ProducePacketName [17:41:02]name=ofd_packets/00103753 [17:41:02]NVStorageDeleteData [17:41:02]Write to MH i2c: 01 00 00 83 05 88 [17:41:02]Write i2c OK [17:41:02]MH_I2C_Read... [17:41:02]Read from MH i2c: 01 [17:41:02]MH_I2C_Read... [17:41:02]Read from MH i2c: 01 07 00 [17:41:02]MH_I2C_Read... [17:41:02]Read from MH i2c: 01 07 00 83 05 00 00 00 00 00 E0 0C 7B [17:41:02]RasterBufferAndPrint [17:41:02]line [17:41:02]line [17:41:02]line [17:41:02]line [17:41:02]line [17:41:02]written 0, free lines is 3302 [17:41:02]MH_Cut [17:41:02]Write to MH i2c: D1 01 00 8A 05 01 61 [17:41:02]Write i2c OK [17:41:02]MH_I2C_Read... [17:41:02]Read from MH i2c: D1 [17:41:02]MH_I2C_Read... [17:41:02]Read from MH i2c: D1 01 00 [17:41:02]MH_I2C_Read... [17:41:02]Read from MH i2c: D1 01 00 8A 05 00 60 [17:41:02]Write to MH i2c: 01 00 00 8B 05 90 [17:41:02]Write i2c OK [17:41:02]MH_I2C_Read... [17:41:03]OFD Sender: No OFD packet to send [17:41:03]*** Cut start [17:41:03]*** Partial cut [17:41:03]*** CUTSNS_PIN = 1 [17:41:03]*** CUTSNS_PIN = 0 [17:41:03]*** Brake cut motor [17:41:04]Read from MH i2c: 01 [17:41:04]MH_I2C_Read... [17:41:04]*** Stop cut motor [17:41:04]*** Cut end [17:41:04]Read from MH i2c: 01 07 00 [17:41:04]MH_I2C_Read... [17:41:04]Read from MH i2c: 01 07 00 8B 05 00 00 00 00 00 FF 0F A5 [17:41:04]process_action close_receipt done [17:41:04]requested_data is exist [17:41:04]produce_requested_data [17:41:04]requested_item fm.sn is exist - process it [17:41:04]wFMCommunicate request_size=4 [17:41:04]MH_SAM_APDU [17:41:04]CAPDU: 80 11 00 00 [17:41:04]Write to MH i2c: E2 08 00 8C 05 80 11 00 00 00 00 00 00 0B [17:41:04]Write i2c OK [17:41:04]MH_I2C_Read... [17:41:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:41:04]Read from MH i2c: E2 [17:41:04]MH_I2C_Read... [17:41:04]Read from MH i2c: E2 17 00 [17:41:04]MH_I2C_Read... [17:41:04]Read from MH i2c: E2 17 00 8C 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 5E [17:41:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [17:41:04]wFMCommunicate OK [17:41:04]requested_item fd.num is exist - process it [17:41:04]SAM_PROTO_GetFieldsCounters [17:41:04]wFMCommunicate request_size=4 [17:41:04]MH_SAM_APDU [17:41:04]CAPDU: 80 13 00 00 [17:41:04]Write to MH i2c: E2 08 00 8D 05 80 13 00 00 00 00 00 00 0E [17:41:04]Write i2c OK [17:41:04]MH_I2C_Read... [17:41:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:41:04]Read from MH i2c: E2 [17:41:04]MH_I2C_Read... [17:41:04]Read from MH i2c: E2 62 00 [17:41:04]MH_I2C_Read... [17:41:04]Read from MH i2c: E2 62 00 8D 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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 49 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 B7 00 00 00 5E 04 04 00 B7 00 00 00 57 04 04 00 B8 00 00 00 19 04 04 00 00 00 00 00 90 00 9B [17:41: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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 49 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 B7 00 00 00 5E 04 04 00 B7 00 00 00 57 04 04 00 B8 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:41:04]wFMCommunicate OK [17:41:04]SAM_PROTO_GetFieldsCounters done [17:41:04]requested_item shift.num is exist - process it [17:41:04]requested_item shift.opened is exist - process it [17:41:04]req_shift_opened [17:41:04]FM_GetShiftState [17:41:04]SAM_PROTO_GetShiftState [17:41:04]wFMCommunicate request_size=4 [17:41:04]MH_SAM_APDU [17:41:04]CAPDU: 80 13 01 00 [17:41:04]Write to MH i2c: E2 08 00 8E 05 80 13 01 00 00 00 00 00 10 [17:41:04]Write i2c OK [17:41:04]MH_I2C_Read... [17:41:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:41:04]Read from MH i2c: E2 [17:41:04]MH_I2C_Read... [17:41:04]Read from MH i2c: E2 0E 00 [17:41:04]MH_I2C_Read... [17:41:04]Read from MH i2c: E2 0E 00 8E 05 00 09 00 01 04 26 72 66 00 00 00 00 90 00 1E [17:41:04]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [17:41:04]wFMCommunicate OK [17:41:04]SAM_PROTO_GetShiftState done [17:41:04]FM_GetShiftState done [17:41:04]req_shift_opened done [17:41:04]requested_item shift.open_date is exist - process it [17:41:04]req_shift_open_date [17:41:04]req_shift_open_date done [17:41:04]produce_requested_data done [17:41:04]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103753,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [17:41:04]process_action_free close_receipt [17:41:04]json_value_free [17:41:04]json_value_free done [17:41:04]process_json_proto returns [17:41:04]Send response to host [17:41:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103753,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [17:41:04]free response buf [17:41:04]execute_script done [17:41:04]execute_script returns [17:41:04]free content buf [17:41:04]Sock 8.Close socket [17:41:04]Sock 8.Thread stoped [17:41:08]OFD Sender: No OFD packet to send [17:41:13]OFD Sender: No OFD packet to send [17:41:18]OFD Sender: No OFD packet to send [17:41:23]OFD Sender: No OFD packet to send [17:41:28]OFD Sender: No OFD packet to send [17:41:33]OFD Sender: No OFD packet to send [17:41:38]OFD Sender: No OFD packet to send [17:41:43]OFD Sender: No OFD packet to send [17:41:48]OFD Sender: No OFD packet to send [17:41:53]OFD Sender: No OFD packet to send [17:41:58]OFD Sender: No OFD packet to send [17:42:03]OFD Sender: No OFD packet to send [17:42:08]OFD Sender: No OFD packet to send [17:42:13]OFD Sender: No OFD packet to send [17:42:18]OFD Sender: No OFD packet to send [17:42:23]OFD Sender: No OFD packet to send [17:42:27]accept exits with 9 [17:42:27]New connection [17:42:27]New thread 3066940772 created [17:42:27]Thread 3066797412 joined [17:42:27]Waiting for new connection... [17:42:27] Sock 9.Parse request [17:42:27]Sock 9.Check first char [17:42:27]Sock 9.First char is OK [17:42:27]request: POST /json_proto HTTP/1.0 [17:42:27]Method: POST [17:42:27]URL: /json_proto [17:42:27]Method is POST - this is cgi request [17:42:27]url: /json_proto [17:42:27]query_string will be loaded in cgi processing [17:42:27]execute_cgi json_proto POST (null) [17:42:27]execute_cgi path=json_proto method=POST [17:42:27]POST find Content-Length [17:42:27]Host: 172.17.38.133:8080 [17:42:27]Content-Length: 682 [17:42:27]Content-Type: application/json [17:42:27] [17:42:27]POST finish read [17:42:27]Found Content-Length = 682 [17:42:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673040", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:42:27]execute_script... [17:42: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)673040", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:42:27]POST & json_proto [17:42:27]process_json_proto [17:42:27]json parsed OK: [17:42:27]protocol is kg_v1.0 [17:42:27]action value=close_receipt [17:42:27]process_action close_receipt [17:42:27]cmd_close_receipt [17:42:27]MH_GetDate [17:42:27]Write to MH i2c: F0 00 00 8F 05 83 [17:42:27]Write i2c OK [17:42:27]MH_I2C_Read... [17:42:27]Read from MH i2c: F0 [17:42:27]MH_I2C_Read... [17:42:27]Read from MH i2c: F0 09 00 [17:42:27]MH_I2C_Read... [17:42:27]Read from MH i2c: F0 09 00 8F 05 00 83 18 73 66 BD 8F 7C 64 2C [17:42:27]GetLastDocTimeStamp 1718818861 [17:42:27]current date 1718818947 [17:42:27]FM_GetShiftState [17:42:27]SAM_PROTO_GetShiftState [17:42:27]wFMCommunicate request_size=4 [17:42:27]MH_SAM_APDU [17:42:27]CAPDU: 80 13 01 00 [17:42:27]Write to MH i2c: E2 08 00 90 05 80 13 01 00 00 00 00 00 12 [17:42:27]Write i2c OK [17:42:27]MH_I2C_Read... [17:42:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:42:27]Read from MH i2c: E2 [17:42:27]MH_I2C_Read... [17:42:27]Read from MH i2c: E2 0E 00 [17:42:27]MH_I2C_Read... [17:42:27]Read from MH i2c: E2 0E 00 90 05 00 09 00 01 04 26 72 66 00 00 00 00 90 00 20 [17:42:27]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [17:42:27]wFMCommunicate OK [17:42:27]SAM_PROTO_GetShiftState done [17:42:27]FM_GetShiftState done [17:42:27]opened in 1718756868 [17:42:27]opened+sec_in_day 1718843268 [17:42:27]quantity*price = 100064 [17:42:27]sum+1 = 100066 [17:42:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.65 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 184 19.06.2024 17:42 Смена: 353 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103754 ФПД: 28448371645849 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T174227&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103754&fm=28448371645849&tin=02508201610067®Number=0000000000092785&sum=100000 [17:42:28]StoreToDocumentArchive [17:42:28]shift 353 fd 103754 [17:42:28]save to /storage/0353/doc_00103754 [17:42:28]save last doc name /storage/0353/doc_00103754 to /storage/kkm_last_doc_name [17:42:28]save OK [17:42:28]Clear old archive folders... [17:42:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:42:28]tlvbuf is 016902A0 [17:42:28]SAM_PROTO_ClearQueue [17:42:28]wFMCommunicate request_size=4 [17:42:28]MH_SAM_APDU [17:42:28]CAPDU: 80 09 00 00 [17:42:28]Write to MH i2c: E2 08 00 9D 05 80 09 00 00 00 00 00 00 14 [17:42:28]Write i2c OK [17:42:28]MH_I2C_Read... [17:42:28]Read from MH i2c: E2 [17:42:28]MH_I2C_Read... [17:42:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:42:28]Read from MH i2c: E2 03 00 [17:42:28]MH_I2C_Read... [17:42:28]Read from MH i2c: E2 03 00 9D 05 00 90 00 16 [17:42:28]RAPDU: 90 00 [17:42:28]wFMCommunicate OK [17:42:28]SAM_PROTO_ClearQueue done [17:42:28]KKMCreateOFDPacket [17:42:28]OFDProtocolAddRootSTLVToBuf [17:42:28]FM_MakeSignedData [17:42:28]FM_MakeSignedData [17:42:28]SAM_PROTO_SignData [17:42:28]wFMCommunicate request_size=4 [17:42:28]MH_SAM_APDU [17:42:28]CAPDU: 80 0D 01 02 [17:42:28]Write to MH i2c: E2 08 00 9E 05 80 0D 01 02 00 00 00 00 1C [17:42:28]Write i2c OK [17:42:28]MH_I2C_Read... [17:42:28]Read from MH i2c: E2 [17:42:28]MH_I2C_Read... [17:42:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:42:28]Read from MH i2c: E2 03 00 [17:42:28]MH_I2C_Read... [17:42:28]Read from MH i2c: E2 03 00 9E 05 00 90 00 17 [17:42:28]RAPDU: 90 00 [17:42:28]wFMCommunicate OK [17:42:28]wFMCommunicate request_size=255 [17:42:28]MH_SAM_APDU [17:42: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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B8 00 00 00 F4 03 04 00 83 18 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 4A 95 01 00 35 04 06 00 19 [17:42:28]Write to MH i2c: E2 02 01 9F 05 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B8 00 00 00 F4 03 04 00 83 18 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 4A 95 01 00 35 04 06 00 19 00 00 AD [17:42:28]Write i2c OK [17:42:28]MH_I2C_Read... [17:42:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:42:28]Read from MH i2c: E2 [17:42:28]MH_I2C_Read... [17:42:28]Read from MH i2c: E2 03 00 [17:42:28]MH_I2C_Read... [17:42:28]Read from MH i2c: E2 03 00 9F 05 00 90 00 18 [17:42:28]RAPDU: 90 00 [17:42:28]wFMCommunicate OK [17:42:28]wFMCommunicate request_size=10 [17:42:28]MH_SAM_APDU [17:42:28]CAPDU: 80 0D 02 02 05 DF A7 16 1D 99 [17:42:28]Write to MH i2c: E2 0D 00 A0 05 80 0D 02 02 05 00 DF A7 16 1D 99 00 00 7B [17:42:28]Write i2c OK [17:42:28]MH_I2C_Read... [17:42:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:42:28]Read from MH i2c: E2 [17:42:28]MH_I2C_Read... [17:42:28]Read from MH i2c: E2 03 00 [17:42:28]MH_I2C_Read... [17:42:28]Read from MH i2c: E2 03 00 A0 05 00 90 00 19 [17:42:28]RAPDU: 90 00 [17:42:28]wFMCommunicate OK [17:42:28]wFMCommunicate request_size=4 [17:42:28]MH_SAM_APDU [17:42:28]CAPDU: 80 0D 03 02 [17:42:28]Write to MH i2c: E2 08 00 A1 05 80 0D 03 02 00 00 00 00 21 [17:42:28]Write i2c OK [17:42:28]MH_I2C_Read... [17:42:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:42:28]Read from MH i2c: E2 [17:42:28]MH_I2C_Read... [17:42:28]Read from MH i2c: E2 0B 00 [17:42:28]MH_I2C_Read... [17:42:28]Read from MH i2c: E2 0B 00 A1 05 00 2F A8 B1 B7 F1 27 DF 04 90 00 5C [17:42:28]RAPDU: 2F A8 B1 B7 F1 27 DF 04 90 00 [17:42:28]wFMCommunicate OK [17:42:28]SAM_PROTO_SignData done [17:42:28]FM_MakeSignedData done [17:42:28]CreateOFDProtocolMessage [17:42:28]wFMCommunicate request_size=4 [17:42:28]MH_SAM_APDU [17:42:28]CAPDU: 80 11 00 00 [17:42:28]Write to MH i2c: E2 08 00 A2 05 80 11 00 00 00 00 00 00 21 [17:42:28]Write i2c OK [17:42:28]MH_I2C_Read... [17:42:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:42:29]Read from MH i2c: E2 [17:42:29]MH_I2C_Read... [17:42:29]Read from MH i2c: E2 17 00 [17:42:29]MH_I2C_Read... [17:42:29]Read from MH i2c: E2 17 00 A2 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 74 [17:42:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [17:42:29]wFMCommunicate OK [17:42:29]CreateOFDProtocolMessage done [17:42:29]OFDSenderStorePacket 103754 [17:42:29]StoreOFDPacket docnum=103754 [17:42:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 4D 93 07 01 31 3F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B8 00 00 00 F4 03 04 00 83 18 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 4A 95 01 00 35 04 06 00 19 DF A7 16 1D 99 2F A8 B1 B7 F1 27 DF 04 [17:42:29]CheckFolder [17:42:29]dirname=/storage/ofd_packets [17:42:29]CheckFolder done [17:42:29]ProducePacketName [17:42:29]name=ofd_packets/00103754 [17:42:29]NVStorageSaveData ofd_packets/00103754 [17:42:29]File name is /storage/ofd_packets/00103754 [17:42:29]Write 301 bytes [17:42:29]NVStorageSaveData done [17:42:29]OFDSenderStorePacket done [17:42:29]KKMCreateOFDPacket done [17:42:29]NVStorageSaveData kkm_last_timestamp [17:42:29]File name is /storage/kkm_last_timestamp [17:42:29]Write 4 bytes [17:42:29]NVStorageSaveData done [17:42:29]ExternCall_PrintAddStr [17:42:29]wPrintStart [17:42:29]Write to MH i2c: 01 00 00 A3 05 A8 [17:42:29]Write i2c OK [17:42:29]MH_I2C_Read... [17:42:29]Read from MH i2c: 01 [17:42:29]MH_I2C_Read... [17:42:29]Read from MH i2c: 01 07 00 [17:42:29]MH_I2C_Read... [17:42:29]Read from MH i2c: 01 07 00 A3 05 00 00 00 00 00 FF 0F BD [17:42:29]RasterBufferAndPrint [17:42:29]line Счет N : (1)673040 [17:42:29]line ИНН: 02508201610067 [17:42:29]line Контрольно-Кассовый Чек [17:42:29]line ПРОДАЖА [17:42:29]line ТРК (МРК, ГНК) : 32 [17:42:29]line Товар: 2710124130 [17:42:29]line Аи-92-К-5 [17:42:29]line 15.070 * 66.40 [17:42:29]line = 1000.65 [17:42:29]line НДС 12% НСП 1% [17:42:29]line > о реализуемом товаре [17:42:29]line ОКРУГЛЕНИЕ: -0.65 [17:42:29]line ИТОГО: 1000.00 [17:42:29]line Внесено: 1000.00 [17:42:29]line СДАЧА: 0.00 [17:42:29]line НСП 1% : 8.85 [17:42:29]line НДС 12% : 106.26 [17:42:29]line Наличными: 1000.00 [17:42:29]line Безнал.: 0.00 [17:42:29]line Место: АЗС № 120 "Партнер Нефть" [17:42:29]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [17:42:29]line СНО: Общий режим [17:42:29]line Чек 184 19.06.2024 17:42 [17:42:29]line Смена: 353 ФФД: 1.0 [17:42:29]line ЗНМ: 0300000164 [17:42:29]line РНМ: 0000000000092785 [17:42:29]line Версия ККМ: 001 [17:42:29]line ФМ: 0000000000875093 [17:42:29]line ФД: 103754 [17:42:29]line ФПД: 28448371645849 [17:42:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T174227&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103754&fm=28448371645849&tin=02508201610067®Number=0000000000092785&sum=100000 [17:42:29]OFD Sender: Processing packet 103754 [packets to send 17, broken 16] [17:42:29]ProducePacketName [17:42:29]name=ofd_packets/00103754 [17:42:29]OFD Sender: To server: pG, [17:42:29]CommunicateWithHost lk.salyk.kg:30040 [17:42:29]ConnectInit lk.salyk.kg [17:42:29]written 0, free lines is 4095 [17:42:29]Connected sock=8 [17:42: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 39 33 0F 01 00 00 4D 93 07 01 31 3F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B8 00 00 00 F4 03 04 00 83 18 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 4A 95 01 00 35 04 06 00 19 DF A7 16 1D 99 2F A8 B1 B7 F1 27 DF 04 [17:42: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 39 33 4F 00 00 00 B9 38 47 00 A8 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 39 33 10 04 04 00 4A 95 01 00 F4 03 04 00 0C BF 72 66 B6 04 01 00 00 49 29 DB E8 61 0A CE 4C [17:42:29]CommunicateWithHost err = 0 [17:42:29]CheckOFDResponse [17:42:29]1017 (14) - 77093643461234 [17:42:29]1041 (16) - 0000000000875093 [17:42:29]1040 (4) - 103754 [17:42:29]1012 (4) - 19.06.2024 11:20 [17:42:29]1206 (1) - 0 [17:42:29]OFD Sender: Remove packet 103754 [17:42:29]ProducePacketName [17:42:29]name=ofd_packets/00103754 [17:42:29]NVStorageDeleteData [17:42:29]Write to MH i2c: 01 00 00 CE 05 D3 [17:42:29]Write i2c OK [17:42:29]MH_I2C_Read... [17:42:29]Read from MH i2c: 01 [17:42:29]MH_I2C_Read... [17:42:29]Read from MH i2c: 01 07 00 [17:42:29]MH_I2C_Read... [17:42:29]Read from MH i2c: 01 07 00 CE 05 00 00 00 00 00 D9 0C BF [17:42:29]RasterBufferAndPrint [17:42:29]line [17:42:29]line [17:42:29]line [17:42:29]line [17:42:29]line [17:42:29]written 0, free lines is 3296 [17:42:29]MH_Cut [17:42:29]Write to MH i2c: D1 01 00 D5 05 01 AC [17:42:29]Write i2c OK [17:42:29]MH_I2C_Read... [17:42:29]Read from MH i2c: D1 [17:42:29]MH_I2C_Read... [17:42:29]Read from MH i2c: D1 01 00 [17:42:29]MH_I2C_Read... [17:42:29]Read from MH i2c: D1 01 00 D5 05 00 AB [17:42:29]Write to MH i2c: 01 00 00 D6 05 DB [17:42:29]Write i2c OK [17:42:29]MH_I2C_Read... [17:42:30]OFD Sender: No OFD packet to send [17:42:30]*** Cut start [17:42:30]*** Partial cut [17:42:30]*** CUTSNS_PIN = 1 [17:42:30]*** CUTSNS_PIN = 0 [17:42:30]*** Brake cut motor [17:42:31]Read from MH i2c: 01 [17:42:31]MH_I2C_Read... [17:42:31]*** Stop cut motor [17:42:31]*** Cut end [17:42:31]Read from MH i2c: 01 07 00 [17:42:31]MH_I2C_Read... [17:42:31]Read from MH i2c: 01 07 00 D6 05 00 00 00 00 00 FF 0F F0 [17:42:31]process_action close_receipt done [17:42:31]requested_data is exist [17:42:31]produce_requested_data [17:42:31]requested_item fm.sn is exist - process it [17:42:31]wFMCommunicate request_size=4 [17:42:31]MH_SAM_APDU [17:42:31]CAPDU: 80 11 00 00 [17:42:31]Write to MH i2c: E2 08 00 D7 05 80 11 00 00 00 00 00 00 56 [17:42:31]Write i2c OK [17:42:31]MH_I2C_Read... [17:42:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:42:31]Read from MH i2c: E2 [17:42:31]MH_I2C_Read... [17:42:31]Read from MH i2c: E2 17 00 [17:42:31]MH_I2C_Read... [17:42:31]Read from MH i2c: E2 17 00 D7 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 A9 [17:42:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [17:42:31]wFMCommunicate OK [17:42:31]requested_item fd.num is exist - process it [17:42:31]SAM_PROTO_GetFieldsCounters [17:42:31]wFMCommunicate request_size=4 [17:42:31]MH_SAM_APDU [17:42:31]CAPDU: 80 13 00 00 [17:42:31]Write to MH i2c: E2 08 00 D8 05 80 13 00 00 00 00 00 00 59 [17:42:31]Write i2c OK [17:42:31]MH_I2C_Read... [17:42:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:42:31]Read from MH i2c: E2 [17:42:31]MH_I2C_Read... [17:42:31]Read from MH i2c: E2 62 00 [17:42:31]MH_I2C_Read... [17:42:31]Read from MH i2c: E2 62 00 D8 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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 4A 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 B8 00 00 00 5E 04 04 00 B8 00 00 00 57 04 04 00 B9 00 00 00 19 04 04 00 00 00 00 00 90 00 EA [17:42: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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 4A 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 B8 00 00 00 5E 04 04 00 B8 00 00 00 57 04 04 00 B9 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:42:31]wFMCommunicate OK [17:42:31]SAM_PROTO_GetFieldsCounters done [17:42:31]requested_item shift.num is exist - process it [17:42:31]requested_item shift.opened is exist - process it [17:42:31]req_shift_opened [17:42:31]FM_GetShiftState [17:42:31]SAM_PROTO_GetShiftState [17:42:31]wFMCommunicate request_size=4 [17:42:31]MH_SAM_APDU [17:42:31]CAPDU: 80 13 01 00 [17:42:31]Write to MH i2c: E2 08 00 D9 05 80 13 01 00 00 00 00 00 5B [17:42:31]Write i2c OK [17:42:31]MH_I2C_Read... [17:42:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:42:31]Read from MH i2c: E2 [17:42:31]MH_I2C_Read... [17:42:31]Read from MH i2c: E2 0E 00 [17:42:31]MH_I2C_Read... [17:42:31]Read from MH i2c: E2 0E 00 D9 05 00 09 00 01 04 26 72 66 00 00 00 00 90 00 69 [17:42:31]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [17:42:31]wFMCommunicate OK [17:42:31]SAM_PROTO_GetShiftState done [17:42:31]FM_GetShiftState done [17:42:31]req_shift_opened done [17:42:31]requested_item shift.open_date is exist - process it [17:42:31]req_shift_open_date [17:42:31]req_shift_open_date done [17:42:31]produce_requested_data done [17:42:31]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103754,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [17:42:31]process_action_free close_receipt [17:42:31]json_value_free [17:42:31]json_value_free done [17:42:31]process_json_proto returns [17:42:31]Send response to host [17:42:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103754,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [17:42:31]free response buf [17:42:31]execute_script done [17:42:31]execute_script returns [17:42:31]free content buf [17:42:31]Sock 9.Close socket [17:42:31]Sock 9.Thread stoped [17:42:35]OFD Sender: No OFD packet to send [17:42:40]OFD Sender: No OFD packet to send [17:42:45]OFD Sender: No OFD packet to send [17:42:50]OFD Sender: No OFD packet to send [17:42:51]accept exits with 10 [17:42:51]New connection [17:42:51]New thread 3066797412 created [17:42:51]Thread 3066940772 joined [17:42:51]Waiting for new connection... [17:42:51] Sock 10.Parse request [17:42:51]Sock 10.Check first char [17:42:51]Sock 10.First char is OK [17:42:51]request: POST /json_proto HTTP/1.0 [17:42:51]Method: POST [17:42:51]URL: /json_proto [17:42:51]Method is POST - this is cgi request [17:42:51]url: /json_proto [17:42:51]query_string will be loaded in cgi processing [17:42:51]execute_cgi json_proto POST (null) [17:42:51]execute_cgi path=json_proto method=POST [17:42:51]POST find Content-Length [17:42:51]Host: 172.17.38.133:8080 [17:42:51]Content-Length: 739 [17:42:51]Content-Type: application/json [17:42:51] [17:42:51]POST finish read [17:42:51]Found Content-Length = 739 [17:42:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 103754, "base_FM": "0000000000875093", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673040", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:42:51]execute_script... [17:42:51]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 103754, "base_FM": "0000000000875093", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673040", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:42:51]POST & json_proto [17:42:51]process_json_proto [17:42:51]json parsed OK: [17:42:51]protocol is kg_v1.0 [17:42:51]action value=close_receipt [17:42:51]process_action close_receipt [17:42:51]cmd_close_receipt [17:42:51]MH_GetDate [17:42:51]Write to MH i2c: F0 00 00 DA 05 CE [17:42:51]Write i2c OK [17:42:51]MH_I2C_Read... [17:42:51]Read from MH i2c: F0 [17:42:51]MH_I2C_Read... [17:42:51]Read from MH i2c: F0 09 00 [17:42:51]MH_I2C_Read... [17:42:51]Read from MH i2c: F0 09 00 DA 05 00 9C 18 73 66 BD 8F 7C 64 90 [17:42:51]GetLastDocTimeStamp 1718818947 [17:42:51]current date 1718818972 [17:42:51]FM_GetShiftState [17:42:51]SAM_PROTO_GetShiftState [17:42:51]wFMCommunicate request_size=4 [17:42:51]MH_SAM_APDU [17:42:51]CAPDU: 80 13 01 00 [17:42:51]Write to MH i2c: E2 08 00 DB 05 80 13 01 00 00 00 00 00 5D [17:42:51]Write i2c OK [17:42:51]MH_I2C_Read... [17:42:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:42:51]Read from MH i2c: E2 [17:42:51]MH_I2C_Read... [17:42:51]Read from MH i2c: E2 0E 00 [17:42:51]MH_I2C_Read... [17:42:51]Read from MH i2c: E2 0E 00 DB 05 00 09 00 01 04 26 72 66 00 00 00 00 90 00 6B [17:42:51]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [17:42:51]wFMCommunicate OK [17:42:51]SAM_PROTO_GetShiftState done [17:42:51]FM_GetShiftState done [17:42:51]opened in 1718756868 [17:42:51]opened+sec_in_day 1718843268 [17:42:51]quantity*price = 100064 [17:42:51]sum+1 = 100066 [17:42:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.65 ИТОГО: 1000.00 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 185 19.06.2024 17:42 Смена: 353 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФД осн.: 103754 ФМ осн.: 0000000000875093 ФМ: 0000000000875093 ФД: 103755 ФПД: 34512013508351 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T174252&type=2&operation_type=1&fn_number=0000000000875093&fd_number=103755&fm=34512013508351&tin=02508201610067®Number=0000000000092785&sum=100000 [17:42:52]StoreToDocumentArchive [17:42:52]shift 353 fd 103755 [17:42:52]save to /storage/0353/doc_00103755 [17:42:52]save last doc name /storage/0353/doc_00103755 to /storage/kkm_last_doc_name [17:42:52]save OK [17:42:52]Clear old archive folders... [17:42:52]ProcessDocumentItem done err = 0, tmpTLVsize=279 [17:42:52]tlvbuf is 016A6FD0 [17:42:52]SAM_PROTO_ClearQueue [17:42:52]wFMCommunicate request_size=4 [17:42:52]MH_SAM_APDU [17:42:52]CAPDU: 80 09 00 00 [17:42:52]Write to MH i2c: E2 08 00 EA 05 80 09 00 00 00 00 00 00 61 [17:42:52]Write i2c OK [17:42:52]MH_I2C_Read... [17:42:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:42:52]Read from MH i2c: E2 [17:42:52]MH_I2C_Read... [17:42:52]Read from MH i2c: E2 03 00 [17:42:52]MH_I2C_Read... [17:42:52]Read from MH i2c: E2 03 00 EA 05 00 90 00 63 [17:42:52]RAPDU: 90 00 [17:42:52]wFMCommunicate OK [17:42:52]SAM_PROTO_ClearQueue done [17:42:52]KKMCreateOFDPacket [17:42:52]OFDProtocolAddRootSTLVToBuf [17:42:52]FM_MakeSignedData [17:42:52]FM_MakeSignedData [17:42:52]SAM_PROTO_SignData [17:42:52]wFMCommunicate request_size=4 [17:42:52]MH_SAM_APDU [17:42:52]CAPDU: 80 0D 01 02 [17:42:52]Write to MH i2c: E2 08 00 EB 05 80 0D 01 02 00 00 00 00 69 [17:42:52]Write i2c OK [17:42:52]MH_I2C_Read... [17:42:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:42:52]Read from MH i2c: E2 [17:42:52]MH_I2C_Read... [17:42:52]Read from MH i2c: E2 03 00 [17:42:52]MH_I2C_Read... [17:42:52]Read from MH i2c: E2 03 00 EB 05 00 90 00 64 [17:42:52]RAPDU: 90 00 [17:42:52]wFMCommunicate OK [17:42:52]wFMCommunicate request_size=255 [17:42:52]MH_SAM_APDU [17:42:52]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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B9 00 00 00 F4 03 04 00 9C 18 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 27 04 04 00 4A 95 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 11 04 10 00 30 [17:42:52]Write to MH i2c: E2 02 01 EC 05 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B9 00 00 00 F4 03 04 00 9C 18 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 27 04 04 00 4A 95 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 11 04 10 00 30 00 00 5D [17:42:52]Write i2c OK [17:42:52]MH_I2C_Read... [17:42:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:42:53]Read from MH i2c: E2 [17:42:53]MH_I2C_Read... [17:42:53]Read from MH i2c: E2 03 00 [17:42:53]MH_I2C_Read... [17:42:53]Read from MH i2c: E2 03 00 EC 05 00 90 00 65 [17:42:53]RAPDU: 90 00 [17:42:53]wFMCommunicate OK [17:42:53]wFMCommunicate request_size=38 [17:42:53]MH_SAM_APDU [17:42:53]CAPDU: 80 0D 02 02 21 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 4B 95 01 00 35 04 06 00 1F 63 74 4E 3E FF [17:42:53]Write to MH i2c: E2 29 00 ED 05 80 0D 02 02 21 00 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 4B 95 01 00 35 04 06 00 1F 63 74 4E 3E FF 00 00 57 [17:42:53]Write i2c OK [17:42:53]MH_I2C_Read... [17:42:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:42:53]Read from MH i2c: E2 [17:42:53]MH_I2C_Read... [17:42:53]Read from MH i2c: E2 03 00 [17:42:53]MH_I2C_Read... [17:42:53]Read from MH i2c: E2 03 00 ED 05 00 90 00 66 [17:42:53]RAPDU: 90 00 [17:42:53]wFMCommunicate OK [17:42:53]wFMCommunicate request_size=4 [17:42:53]MH_SAM_APDU [17:42:53]CAPDU: 80 0D 03 02 [17:42:53]Write to MH i2c: E2 08 00 EE 05 80 0D 03 02 00 00 00 00 6E [17:42:53]Write i2c OK [17:42:53]MH_I2C_Read... [17:42:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:42:53]Read from MH i2c: E2 [17:42:53]MH_I2C_Read... [17:42:53]Read from MH i2c: E2 0B 00 [17:42:53]MH_I2C_Read... [17:42:53]Read from MH i2c: E2 0B 00 EE 05 00 18 83 EC 39 36 5E F4 F4 90 00 AB [17:42:53]RAPDU: 18 83 EC 39 36 5E F4 F4 90 00 [17:42:53]wFMCommunicate OK [17:42:53]SAM_PROTO_SignData done [17:42:53]FM_MakeSignedData done [17:42:53]CreateOFDProtocolMessage [17:42:53]wFMCommunicate request_size=4 [17:42:53]MH_SAM_APDU [17:42:53]CAPDU: 80 11 00 00 [17:42:53]Write to MH i2c: E2 08 00 EF 05 80 11 00 00 00 00 00 00 6E [17:42:53]Write i2c OK [17:42:53]MH_I2C_Read... [17:42:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:42:53]Read from MH i2c: E2 [17:42:53]MH_I2C_Read... [17:42:53]Read from MH i2c: E2 17 00 [17:42:53]MH_I2C_Read... [17:42:53]Read from MH i2c: E2 17 00 EF 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 C1 [17:42:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [17:42:53]wFMCommunicate OK [17:42:53]CreateOFDProtocolMessage done [17:42:53]OFDSenderStorePacket 103755 [17:42:53]StoreOFDPacket docnum=103755 [17:42:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 2B 01 00 00 16 F1 23 01 BF F4 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B9 00 00 00 F4 03 04 00 9C 18 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 27 04 04 00 4A 95 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 4B 95 01 00 35 04 06 00 1F 63 74 4E 3E FF 18 83 EC 39 36 5E F4 F4 [17:42:53]CheckFolder [17:42:53]dirname=/storage/ofd_packets [17:42:53]CheckFolder done [17:42:53]ProducePacketName [17:42:53]name=ofd_packets/00103755 [17:42:53]NVStorageSaveData ofd_packets/00103755 [17:42:53]File name is /storage/ofd_packets/00103755 [17:42:53]Write 329 bytes [17:42:53]NVStorageSaveData done [17:42:53]OFDSenderStorePacket done [17:42:53]KKMCreateOFDPacket done [17:42:53]NVStorageSaveData kkm_last_timestamp [17:42:53]File name is /storage/kkm_last_timestamp [17:42:53]Write 4 bytes [17:42:53]NVStorageSaveData done [17:42:53]ExternCall_PrintAddStr [17:42:53]wPrintStart [17:42:53]Write to MH i2c: 01 00 00 F0 05 F5 [17:42:53]Write i2c OK [17:42:53]MH_I2C_Read... [17:42:53]Read from MH i2c: 01 [17:42:53]MH_I2C_Read... [17:42:53]Read from MH i2c: 01 07 00 [17:42:53]MH_I2C_Read... [17:42:53]Read from MH i2c: 01 07 00 F0 05 00 00 00 00 00 FF 0F 0A [17:42:53]RasterBufferAndPrint [17:42:53]line Счет N : (1)673040 [17:42:53]line ИНН: 02508201610067 [17:42:53]line Контрольно-Кассовый Чек [17:42:53]line ВОЗВРАТ ПРОДАЖИ [17:42:53]line ТРК (МРК, ГНК) : 32 [17:42:53]line Товар: 2710124130 [17:42:53]line Аи-92-К-5 [17:42:53]line 15.070 * 66.40 [17:42:53]line = 1000.65 [17:42:53]line НДС 12% НСП 1% [17:42:53]line > о реализуемом товаре [17:42:53]line ОКРУГЛЕНИЕ: -0.65 [17:42:53]line ИТОГО: 1000.00 [17:42:53]line НСП 1% : 8.85 [17:42:53]line НДС 12% : 106.26 [17:42:53]line Наличными: 1000.00 [17:42:53]line Безнал.: 0.00 [17:42:53]line Место: АЗС № 120 "Партнер Нефть" [17:42:53]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [17:42:53]line СНО: Общий режим [17:42:53]line Чек 185 19.06.2024 17:42 [17:42:53]line Смена: 353 ФФД: 1.0 [17:42:53]line ЗНМ: 0300000164 [17:42:53]line РНМ: 0000000000092785 [17:42:53]line Версия ККМ: 001 [17:42:53]line ФД осн.: 103754 [17:42:53]line ФМ осн.: 0000000000875093 [17:42:53]line ФМ: 0000000000875093 [17:42:53]line ФД: 103755 [17:42:53]line ФПД: 34512013508351 [17:42:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T174252&type=2&operation_type=1&fn_number=0000000000875093&fd_number=103755&fm=34512013508351&tin=02508201610067®Number=0000000000092785&sum=100000 [17:42:53]OFD Sender: Processing packet 103755 [packets to send 17, broken 16] [17:42:53]ProducePacketName [17:42:53]name=ofd_packets/00103755 [17:42:53]OFD Sender: To server: pG, [17:42:53]CommunicateWithHost lk.salyk.kg:30040 [17:42:53]ConnectInit lk.salyk.kg [17:42:53]written 0, free lines is 4095 [17:42:53]Connected sock=9 [17:42: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 39 33 2B 01 00 00 16 F1 23 01 BF F4 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B9 00 00 00 F4 03 04 00 9C 18 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 27 04 04 00 4A 95 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 4B 95 01 00 35 04 06 00 1F 63 74 4E 3E FF 18 83 EC 39 36 5E F4 F4 [17:42: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 39 33 4F 00 00 00 BE B2 47 00 35 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 39 33 10 04 04 00 4B 95 01 00 F4 03 04 00 24 BF 72 66 B6 04 01 00 00 3B 05 A8 C3 68 35 B8 87 [17:42:54]CommunicateWithHost err = 0 [17:42:54]CheckOFDResponse [17:42:54]1017 (14) - 77093643461234 [17:42:54]1041 (16) - 0000000000875093 [17:42:54]1040 (4) - 103755 [17:42:54]1012 (4) - 19.06.2024 11:21 [17:42:54]1206 (1) - 0 [17:42:54]OFD Sender: Remove packet 103755 [17:42:54]ProducePacketName [17:42:54]name=ofd_packets/00103755 [17:42:54]NVStorageDeleteData [17:42:54]Write to MH i2c: 01 00 00 1B 06 21 [17:42:54]Write i2c OK [17:42:54]MH_I2C_Read... [17:42:54]Read from MH i2c: 01 [17:42:54]MH_I2C_Read... [17:42:54]Read from MH i2c: 01 07 00 [17:42:54]MH_I2C_Read... [17:42:54]Read from MH i2c: 01 07 00 1B 06 00 00 00 00 00 EE 0C 22 [17:42:54]RasterBufferAndPrint [17:42:54]line [17:42:54]line [17:42:54]line [17:42:54]line [17:42:54]line [17:42:54]written 0, free lines is 3317 [17:42:54]MH_Cut [17:42:54]Write to MH i2c: D1 01 00 22 06 01 FA [17:42:54]Write i2c OK [17:42:54]MH_I2C_Read... [17:42:54]Read from MH i2c: D1 [17:42:54]MH_I2C_Read... [17:42:54]Read from MH i2c: D1 01 00 [17:42:54]MH_I2C_Read... [17:42:54]Read from MH i2c: D1 01 00 22 06 00 F9 [17:42:54]Write to MH i2c: 01 00 00 23 06 29 [17:42:54]Write i2c OK [17:42:54]MH_I2C_Read... [17:42:54]OFD Sender: No OFD packet to send [17:42:54]*** Cut start [17:42:54]*** Partial cut [17:42:54]*** CUTSNS_PIN = 1 [17:42:54]*** CUTSNS_PIN = 0 [17:42:55]*** Brake cut motor [17:42:55]Read from MH i2c: 01 [17:42:55]MH_I2C_Read... [17:42:55]*** Stop cut motor [17:42:55]*** Cut end [17:42:55]Read from MH i2c: 01 07 00 [17:42:55]MH_I2C_Read... [17:42:55]Read from MH i2c: 01 07 00 23 06 00 00 00 00 00 FF 0F 3E [17:42:55]process_action close_receipt done [17:42:55]requested_data is exist [17:42:55]produce_requested_data [17:42:55]requested_item fm.sn is exist - process it [17:42:55]wFMCommunicate request_size=4 [17:42:55]MH_SAM_APDU [17:42:55]CAPDU: 80 11 00 00 [17:42:55]Write to MH i2c: E2 08 00 24 06 80 11 00 00 00 00 00 00 A4 [17:42:55]Write i2c OK [17:42:55]MH_I2C_Read... [17:42:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:42:55]Read from MH i2c: E2 [17:42:55]MH_I2C_Read... [17:42:55]Read from MH i2c: E2 17 00 [17:42:55]MH_I2C_Read... [17:42:55]Read from MH i2c: E2 17 00 24 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 F7 [17:42:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [17:42:55]wFMCommunicate OK [17:42:55]requested_item fd.num is exist - process it [17:42:55]SAM_PROTO_GetFieldsCounters [17:42:55]wFMCommunicate request_size=4 [17:42:55]MH_SAM_APDU [17:42:55]CAPDU: 80 13 00 00 [17:42:55]Write to MH i2c: E2 08 00 25 06 80 13 00 00 00 00 00 00 A7 [17:42:55]Write i2c OK [17:42:55]MH_I2C_Read... [17:42:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:42:55]Read from MH i2c: E2 [17:42:55]MH_I2C_Read... [17:42:55]Read from MH i2c: E2 62 00 [17:42:55]MH_I2C_Read... [17:42:55]Read from MH i2c: E2 62 00 25 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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 4B 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 B9 00 00 00 5E 04 04 00 B9 00 00 00 57 04 04 00 BA 00 00 00 19 04 04 00 00 00 00 00 90 00 3C [17:42: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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 4B 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 B9 00 00 00 5E 04 04 00 B9 00 00 00 57 04 04 00 BA 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:42:55]wFMCommunicate OK [17:42:55]SAM_PROTO_GetFieldsCounters done [17:42:55]requested_item shift.num is exist - process it [17:42:55]requested_item shift.opened is exist - process it [17:42:55]req_shift_opened [17:42:55]FM_GetShiftState [17:42:55]SAM_PROTO_GetShiftState [17:42:55]wFMCommunicate request_size=4 [17:42:55]MH_SAM_APDU [17:42:55]CAPDU: 80 13 01 00 [17:42:55]Write to MH i2c: E2 08 00 26 06 80 13 01 00 00 00 00 00 A9 [17:42:55]Write i2c OK [17:42:55]MH_I2C_Read... [17:42:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:42:55]Read from MH i2c: E2 [17:42:55]MH_I2C_Read... [17:42:55]Read from MH i2c: E2 0E 00 [17:42:55]MH_I2C_Read... [17:42:55]Read from MH i2c: E2 0E 00 26 06 00 09 00 01 04 26 72 66 00 00 00 00 90 00 B7 [17:42:55]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [17:42:55]wFMCommunicate OK [17:42:55]SAM_PROTO_GetShiftState done [17:42:55]FM_GetShiftState done [17:42:55]req_shift_opened done [17:42:55]requested_item shift.open_date is exist - process it [17:42:55]req_shift_open_date [17:42:55]req_shift_open_date done [17:42:55]produce_requested_data done [17:42:55]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103755,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [17:42:55]process_action_free close_receipt [17:42:55]json_value_free [17:42:55]json_value_free done [17:42:55]process_json_proto returns [17:42:55]Send response to host [17:42:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103755,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [17:42:55]free response buf [17:42:55]execute_script done [17:42:55]execute_script returns [17:42:55]free content buf [17:42:55]Sock 10.Close socket [17:42:55]Sock 10.Thread stoped [17:42:59]OFD Sender: No OFD packet to send [17:43:04]OFD Sender: No OFD packet to send [17:43:09]OFD Sender: No OFD packet to send [17:43:14]OFD Sender: No OFD packet to send [17:43:19]OFD Sender: No OFD packet to send [17:43:24]OFD Sender: No OFD packet to send [17:43:29]OFD Sender: No OFD packet to send [17:43:34]OFD Sender: No OFD packet to send [17:43:39]OFD Sender: No OFD packet to send [17:43:44]OFD Sender: No OFD packet to send [17:43:49]OFD Sender: No OFD packet to send [17:43:54]OFD Sender: No OFD packet to send [17:43:55]accept exits with 8 [17:43:55]New connection [17:43:55]New thread 3066940772 created [17:43:55]Thread 3066797412 joined [17:43:55]Waiting for new connection... [17:43:55] Sock 8.Parse request [17:43:55]Sock 8.Check first char [17:43:55]Sock 8.First char is OK [17:43:55]request: POST /json_proto HTTP/1.0 [17:43:55]Method: POST [17:43:55]URL: /json_proto [17:43:55]Method is POST - this is cgi request [17:43:55]url: /json_proto [17:43:55]query_string will be loaded in cgi processing [17:43:55]execute_cgi json_proto POST (null) [17:43:55]execute_cgi path=json_proto method=POST [17:43:55]POST find Content-Length [17:43:55]Host: 172.17.38.133:8080 [17:43:55]Content-Length: 682 [17:43:55]Content-Type: application/json [17:43:55] [17:43:55]POST finish read [17:43:55]Found Content-Length = 682 [17:43:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673041", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:43:55]execute_script... [17:43: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)673041", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:43:55]POST & json_proto [17:43:55]process_json_proto [17:43:55]json parsed OK: [17:43:55]protocol is kg_v1.0 [17:43:55]action value=close_receipt [17:43:55]process_action close_receipt [17:43:55]cmd_close_receipt [17:43:55]MH_GetDate [17:43:55]Write to MH i2c: F0 00 00 27 06 1C [17:43:55]Write i2c OK [17:43:55]MH_I2C_Read... [17:43:55]Read from MH i2c: F0 [17:43:55]MH_I2C_Read... [17:43:55]Read from MH i2c: F0 09 00 [17:43:55]MH_I2C_Read... [17:43:55]Read from MH i2c: F0 09 00 27 06 00 DB 18 73 66 BD 8F 7C 64 1D [17:43:55]GetLastDocTimeStamp 1718818972 [17:43:55]current date 1718819035 [17:43:55]FM_GetShiftState [17:43:55]SAM_PROTO_GetShiftState [17:43:55]wFMCommunicate request_size=4 [17:43:55]MH_SAM_APDU [17:43:55]CAPDU: 80 13 01 00 [17:43:55]Write to MH i2c: E2 08 00 28 06 80 13 01 00 00 00 00 00 AB [17:43:55]Write i2c OK [17:43:55]MH_I2C_Read... [17:43:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:43:55]Read from MH i2c: E2 [17:43:55]MH_I2C_Read... [17:43:55]Read from MH i2c: E2 0E 00 [17:43:55]MH_I2C_Read... [17:43:55]Read from MH i2c: E2 0E 00 28 06 00 09 00 01 04 26 72 66 00 00 00 00 90 00 B9 [17:43:55]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [17:43:55]wFMCommunicate OK [17:43:55]SAM_PROTO_GetShiftState done [17:43:55]FM_GetShiftState done [17:43:55]opened in 1718756868 [17:43:55]opened+sec_in_day 1718843268 [17:43:55]quantity*price = 100064 [17:43:55]sum+1 = 100066 [17:43:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.65 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 186 19.06.2024 17:43 Смена: 353 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103756 ФПД: 80712125924187 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T174355&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103756&fm=80712125924187&tin=02508201610067®Number=0000000000092785&sum=100000 [17:43:56]StoreToDocumentArchive [17:43:56]shift 353 fd 103756 [17:43:56]save to /storage/0353/doc_00103756 [17:43:56]save last doc name /storage/0353/doc_00103756 to /storage/kkm_last_doc_name [17:43:56]save OK [17:43:56]Clear old archive folders... [17:43:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:43:56]tlvbuf is 016A4270 [17:43:56]SAM_PROTO_ClearQueue [17:43:56]wFMCommunicate request_size=4 [17:43:56]MH_SAM_APDU [17:43:56]CAPDU: 80 09 00 00 [17:43:56]Write to MH i2c: E2 08 00 35 06 80 09 00 00 00 00 00 00 AD [17:43:56]Write i2c OK [17:43:56]MH_I2C_Read... [17:43:56]Read from MH i2c: E2 [17:43:56]MH_I2C_Read... [17:43:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:43:56]Read from MH i2c: E2 03 00 [17:43:56]MH_I2C_Read... [17:43:56]Read from MH i2c: E2 03 00 35 06 00 90 00 AF [17:43:56]RAPDU: 90 00 [17:43:56]wFMCommunicate OK [17:43:56]SAM_PROTO_ClearQueue done [17:43:56]KKMCreateOFDPacket [17:43:56]OFDProtocolAddRootSTLVToBuf [17:43:56]FM_MakeSignedData [17:43:56]FM_MakeSignedData [17:43:56]SAM_PROTO_SignData [17:43:56]wFMCommunicate request_size=4 [17:43:56]MH_SAM_APDU [17:43:56]CAPDU: 80 0D 01 02 [17:43:56]Write to MH i2c: E2 08 00 36 06 80 0D 01 02 00 00 00 00 B5 [17:43:56]Write i2c OK [17:43:56]MH_I2C_Read... [17:43:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:43:56]Read from MH i2c: E2 [17:43:56]MH_I2C_Read... [17:43:56]Read from MH i2c: E2 03 00 [17:43:56]MH_I2C_Read... [17:43:56]Read from MH i2c: E2 03 00 36 06 00 90 00 B0 [17:43:56]RAPDU: 90 00 [17:43:56]wFMCommunicate OK [17:43:56]wFMCommunicate request_size=255 [17:43:56]MH_SAM_APDU [17:43: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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BA 00 00 00 F4 03 04 00 DB 18 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 4C 95 01 00 35 04 06 00 49 [17:43:56]Write to MH i2c: E2 02 01 37 06 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BA 00 00 00 F4 03 04 00 DB 18 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 4C 95 01 00 35 04 06 00 49 00 00 D2 [17:43:56]Write i2c OK [17:43:56]MH_I2C_Read... [17:43:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:43:56]Read from MH i2c: E2 [17:43:56]MH_I2C_Read... [17:43:56]Read from MH i2c: E2 03 00 [17:43:56]MH_I2C_Read... [17:43:56]Read from MH i2c: E2 03 00 37 06 00 90 00 B1 [17:43:56]RAPDU: 90 00 [17:43:56]wFMCommunicate OK [17:43:56]wFMCommunicate request_size=10 [17:43:56]MH_SAM_APDU [17:43:56]CAPDU: 80 0D 02 02 05 68 41 98 43 5B [17:43:56]Write to MH i2c: E2 0D 00 38 06 80 0D 02 02 05 00 68 41 98 43 5B 00 00 A1 [17:43:56]Write i2c OK [17:43:56]MH_I2C_Read... [17:43:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:43:56]Read from MH i2c: E2 [17:43:56]MH_I2C_Read... [17:43:56]Read from MH i2c: E2 03 00 [17:43:56]MH_I2C_Read... [17:43:56]Read from MH i2c: E2 03 00 38 06 00 90 00 B2 [17:43:56]RAPDU: 90 00 [17:43:56]wFMCommunicate OK [17:43:56]wFMCommunicate request_size=4 [17:43:56]MH_SAM_APDU [17:43:56]CAPDU: 80 0D 03 02 [17:43:56]Write to MH i2c: E2 08 00 39 06 80 0D 03 02 00 00 00 00 BA [17:43:56]Write i2c OK [17:43:56]MH_I2C_Read... [17:43:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:43:56]Read from MH i2c: E2 [17:43:56]MH_I2C_Read... [17:43:56]Read from MH i2c: E2 0B 00 [17:43:56]MH_I2C_Read... [17:43:56]Read from MH i2c: E2 0B 00 39 06 00 AE F1 5B 1A 9C 0F 26 32 90 00 D2 [17:43:56]RAPDU: AE F1 5B 1A 9C 0F 26 32 90 00 [17:43:56]wFMCommunicate OK [17:43:56]SAM_PROTO_SignData done [17:43:56]FM_MakeSignedData done [17:43:56]CreateOFDProtocolMessage [17:43:56]wFMCommunicate request_size=4 [17:43:56]MH_SAM_APDU [17:43:56]CAPDU: 80 11 00 00 [17:43:56]Write to MH i2c: E2 08 00 3A 06 80 11 00 00 00 00 00 00 BA [17:43:56]Write i2c OK [17:43:56]MH_I2C_Read... [17:43:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:43:56]Read from MH i2c: E2 [17:43:56]MH_I2C_Read... [17:43:56]Read from MH i2c: E2 17 00 [17:43:56]MH_I2C_Read... [17:43:56]Read from MH i2c: E2 17 00 3A 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 0D [17:43:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [17:43:56]wFMCommunicate OK [17:43:56]CreateOFDProtocolMessage done [17:43:56]OFDSenderStorePacket 103756 [17:43:56]StoreOFDPacket docnum=103756 [17:43:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 92 76 07 01 E8 70 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BA 00 00 00 F4 03 04 00 DB 18 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 4C 95 01 00 35 04 06 00 49 68 41 98 43 5B AE F1 5B 1A 9C 0F 26 32 [17:43:56]CheckFolder [17:43:56]dirname=/storage/ofd_packets [17:43:56]CheckFolder done [17:43:56]ProducePacketName [17:43:56]name=ofd_packets/00103756 [17:43:56]NVStorageSaveData ofd_packets/00103756 [17:43:56]File name is /storage/ofd_packets/00103756 [17:43:56]Write 301 bytes [17:43:56]NVStorageSaveData done [17:43:56]OFDSenderStorePacket done [17:43:56]KKMCreateOFDPacket done [17:43:56]NVStorageSaveData kkm_last_timestamp [17:43:56]File name is /storage/kkm_last_timestamp [17:43:56]Write 4 bytes [17:43:56]NVStorageSaveData done [17:43:56]ExternCall_PrintAddStr [17:43:56]wPrintStart [17:43:56]Write to MH i2c: 01 00 00 3B 06 41 [17:43:56]OFD Sender: Processing packet 103756 [packets to send 17, broken 16] [17:43:56]ProducePacketName [17:43:56]name=ofd_packets/00103756 [17:43:56]OFD Sender: To server: pG, [17:43:56]CommunicateWithHost lk.salyk.kg:30040 [17:43:56]ConnectInit lk.salyk.kg [17:43:56]Write i2c OK [17:43:56]MH_I2C_Read... [17:43:56]Read from MH i2c: 01 [17:43:56]MH_I2C_Read... [17:43:56]Read from MH i2c: 01 07 00 [17:43:56]MH_I2C_Read... [17:43:56]Read from MH i2c: 01 07 00 3B 06 00 00 00 00 00 FF 0F 56 [17:43:56]RasterBufferAndPrint [17:43:56]line Счет N : (1)673041 [17:43:56]line ИНН: 02508201610067 [17:43:56]line Контрольно-Кассовый Чек [17:43:56]line ПРОДАЖА [17:43:56]line ТРК (МРК, ГНК) : 32 [17:43:56]line Товар: 2710124130 [17:43:56]line Аи-92-К-5 [17:43:56]line 15.070 * 66.40 [17:43:56]line = 1000.65 [17:43:56]line НДС 12% НСП 1% [17:43:56]line > о реализуемом товаре [17:43:56]line ОКРУГЛЕНИЕ: -0.65 [17:43:56]line ИТОГО: 1000.00 [17:43:56]line Внесено: 1000.00 [17:43:56]line СДАЧА: 0.00 [17:43:56]line НСП 1% : 8.85 [17:43:56]line НДС 12% : 106.26 [17:43:56]line Наличными: 1000.00 [17:43:56]line Безнал.: 0.00 [17:43:56]line Место: АЗС № 120 "Партнер Нефть" [17:43:56]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [17:43:56]line СНО: Общий режим [17:43:56]line Чек 186 19.06.2024 17:43 [17:43:56]line Смена: 353 ФФД: 1.0 [17:43:56]line ЗНМ: 0300000164 [17:43:56]line РНМ: 0000000000092785 [17:43:56]line Версия ККМ: 001 [17:43:56]line ФМ: 0000000000875093 [17:43:56]line ФД: 103756 [17:43:56]line ФПД: 80712125924187 [17:43:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T174355&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103756&fm=80712125924187&tin=02508201610067®Number=0000000000092785&sum=100000 [17:43:57]Connected sock=10 [17:43: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 39 33 0F 01 00 00 92 76 07 01 E8 70 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BA 00 00 00 F4 03 04 00 DB 18 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 4C 95 01 00 35 04 06 00 49 68 41 98 43 5B AE F1 5B 1A 9C 0F 26 32 [17:43:57]written 0, free lines is 4095 [17:43: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 39 33 4F 00 00 00 ED 5F 47 00 E1 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 39 33 10 04 04 00 4C 95 01 00 F4 03 04 00 63 BF 72 66 B6 04 01 00 00 D7 38 00 A5 4B F2 10 AE [17:43:57]CommunicateWithHost err = 0 [17:43:57]CheckOFDResponse [17:43:57]1017 (14) - 77093643461234 [17:43:57]1041 (16) - 0000000000875093 [17:43:57]1040 (4) - 103756 [17:43:57]1012 (4) - 19.06.2024 11:22 [17:43:57]1206 (1) - 0 [17:43:57]OFD Sender: Remove packet 103756 [17:43:57]ProducePacketName [17:43:57]name=ofd_packets/00103756 [17:43:57]NVStorageDeleteData [17:43:57]Write to MH i2c: 01 00 00 66 06 6C [17:43:57]Write i2c OK [17:43:57]MH_I2C_Read... [17:43:57]Read from MH i2c: 01 [17:43:57]MH_I2C_Read... [17:43:57]Read from MH i2c: 01 07 00 [17:43:57]MH_I2C_Read... [17:43:57]Read from MH i2c: 01 07 00 66 06 00 00 00 00 00 DD 0C 5C [17:43:57]RasterBufferAndPrint [17:43:57]line [17:43:57]line [17:43:57]line [17:43:57]line [17:43:57]line [17:43:57]written 0, free lines is 3299 [17:43:57]MH_Cut [17:43:57]Write to MH i2c: D1 01 00 6D 06 01 45 [17:43:57]Write i2c OK [17:43:57]MH_I2C_Read... [17:43:57]Read from MH i2c: D1 [17:43:57]MH_I2C_Read... [17:43:57]Read from MH i2c: D1 01 00 [17:43:57]MH_I2C_Read... [17:43:57]Read from MH i2c: D1 01 00 6D 06 00 44 [17:43:57]Write to MH i2c: 01 00 00 6E 06 74 [17:43:57]Write i2c OK [17:43:57]MH_I2C_Read... [17:43:57]OFD Sender: No OFD packet to send [17:43:58]*** Cut start [17:43:58]*** Partial cut [17:43:58]*** CUTSNS_PIN = 1 [17:43:58]*** CUTSNS_PIN = 0 [17:43:58]*** Brake cut motor [17:43:58]Read from MH i2c: 01 [17:43:58]MH_I2C_Read... [17:43:58]*** Stop cut motor [17:43:58]*** Cut end [17:43:58]Read from MH i2c: 01 07 00 [17:43:58]MH_I2C_Read... [17:43:58]Read from MH i2c: 01 07 00 6E 06 00 00 00 00 00 FF 0F 89 [17:43:58]process_action close_receipt done [17:43:58]requested_data is exist [17:43:58]produce_requested_data [17:43:58]requested_item fm.sn is exist - process it [17:43:58]wFMCommunicate request_size=4 [17:43:58]MH_SAM_APDU [17:43:58]CAPDU: 80 11 00 00 [17:43:58]Write to MH i2c: E2 08 00 6F 06 80 11 00 00 00 00 00 00 EF [17:43:58]Write i2c OK [17:43:58]MH_I2C_Read... [17:43:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:43:58]Read from MH i2c: E2 [17:43:58]MH_I2C_Read... [17:43:58]Read from MH i2c: E2 17 00 [17:43:58]MH_I2C_Read... [17:43:58]Read from MH i2c: E2 17 00 6F 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 42 [17:43:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [17:43:58]wFMCommunicate OK [17:43:58]requested_item fd.num is exist - process it [17:43:58]SAM_PROTO_GetFieldsCounters [17:43:58]wFMCommunicate request_size=4 [17:43:58]MH_SAM_APDU [17:43:58]CAPDU: 80 13 00 00 [17:43:58]Write to MH i2c: E2 08 00 70 06 80 13 00 00 00 00 00 00 F2 [17:43:58]Write i2c OK [17:43:58]MH_I2C_Read... [17:43:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:43:59]Read from MH i2c: E2 [17:43:59]MH_I2C_Read... [17:43:59]Read from MH i2c: E2 62 00 [17:43:59]MH_I2C_Read... [17:43:59]Read from MH i2c: E2 62 00 70 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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 4C 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 BA 00 00 00 5E 04 04 00 BA 00 00 00 57 04 04 00 BB 00 00 00 19 04 04 00 00 00 00 00 90 00 8B [17:43: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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 4C 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 BA 00 00 00 5E 04 04 00 BA 00 00 00 57 04 04 00 BB 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:43:59]wFMCommunicate OK [17:43:59]SAM_PROTO_GetFieldsCounters done [17:43:59]requested_item shift.num is exist - process it [17:43:59]requested_item shift.opened is exist - process it [17:43:59]req_shift_opened [17:43:59]FM_GetShiftState [17:43:59]SAM_PROTO_GetShiftState [17:43:59]wFMCommunicate request_size=4 [17:43:59]MH_SAM_APDU [17:43:59]CAPDU: 80 13 01 00 [17:43:59]Write to MH i2c: E2 08 00 71 06 80 13 01 00 00 00 00 00 F4 [17:43:59]Write i2c OK [17:43:59]MH_I2C_Read... [17:43:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:43:59]Read from MH i2c: E2 [17:43:59]MH_I2C_Read... [17:43:59]Read from MH i2c: E2 0E 00 [17:43:59]MH_I2C_Read... [17:43:59]Read from MH i2c: E2 0E 00 71 06 00 09 00 01 04 26 72 66 00 00 00 00 90 00 02 [17:43:59]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [17:43:59]wFMCommunicate OK [17:43:59]SAM_PROTO_GetShiftState done [17:43:59]FM_GetShiftState done [17:43:59]req_shift_opened done [17:43:59]requested_item shift.open_date is exist - process it [17:43:59]req_shift_open_date [17:43:59]req_shift_open_date done [17:43:59]produce_requested_data done [17:43:59]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103756,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [17:43:59]process_action_free close_receipt [17:43:59]json_value_free [17:43:59]json_value_free done [17:43:59]process_json_proto returns [17:43:59]Send response to host [17:43:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103756,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [17:43:59]free response buf [17:43:59]execute_script done [17:43:59]execute_script returns [17:43:59]free content buf [17:43:59]Sock 8.Close socket [17:43:59]Sock 8.Thread stoped [17:44:02]OFD Sender: No OFD packet to send [17:44:07]OFD Sender: No OFD packet to send [17:44:12]OFD Sender: No OFD packet to send [17:44:17]OFD Sender: No OFD packet to send [17:44:22]OFD Sender: No OFD packet to send [17:44:27]OFD Sender: No OFD packet to send [17:44:32]OFD Sender: No OFD packet to send [17:44:37]OFD Sender: No OFD packet to send [17:44:42]OFD Sender: No OFD packet to send [17:44:47]OFD Sender: No OFD packet to send [17:44:52]OFD Sender: No OFD packet to send [17:44:57]OFD Sender: No OFD packet to send [17:45:02]OFD Sender: No OFD packet to send [17:45:07]OFD Sender: No OFD packet to send [17:45:12]OFD Sender: No OFD packet to send [17:45:17]OFD Sender: No OFD packet to send [17:45:22]OFD Sender: No OFD packet to send [17:45:27]OFD Sender: No OFD packet to send [17:45:32]OFD Sender: No OFD packet to send [17:45:37]OFD Sender: No OFD packet to send [17:45:42]OFD Sender: No OFD packet to send [17:45:47]OFD Sender: No OFD packet to send [17:45:52]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:38]OFD Sender: No OFD packet to send [17:46:43]OFD Sender: No OFD packet to send [17:46:48]OFD Sender: No OFD packet to send [17:46:53]OFD Sender: No OFD packet to send [17:46:58]OFD Sender: No OFD packet to send [17:47:03]OFD Sender: No OFD packet to send [17:47:08]OFD Sender: No OFD packet to send [17:47:13]OFD Sender: No OFD packet to send [17:47:18]OFD Sender: No OFD packet to send [17:47:23]OFD Sender: No OFD packet to send [17:47:28]OFD Sender: No OFD packet to send [17:47:33]OFD Sender: No OFD packet to send [17:47:38]OFD Sender: No OFD packet to send [17:47:43]OFD Sender: No OFD packet to send [17:47:48]OFD Sender: No OFD packet to send [17:47:53]OFD Sender: No OFD packet to send [17:47:58]OFD Sender: No OFD packet to send [17:48:03]OFD Sender: No OFD packet to send [17:48:08]OFD Sender: No OFD packet to send [17:48:13]OFD Sender: No OFD packet to send [17:48:18]OFD Sender: No OFD packet to send [17:48:23]OFD Sender: No OFD packet to send [17:48:28]OFD Sender: No OFD packet to send [17:48:33]OFD Sender: No OFD packet to send [17:48:38]OFD Sender: No OFD packet to send [17:48:43]OFD Sender: No OFD packet to send [17:48:48]OFD Sender: No OFD packet to send [17:48:53]OFD Sender: No OFD packet to send [17:48:58]OFD Sender: No OFD packet to send [17:49:03]OFD Sender: No OFD packet to send [17:49:08]OFD Sender: No OFD packet to send [17:49:13]OFD Sender: No OFD packet to send [17:49:18]OFD Sender: No OFD packet to send [17:49:23]OFD Sender: No OFD packet to send [17:49:28]OFD Sender: No OFD packet to send [17:49:33]OFD Sender: No OFD packet to send [17:49:38]OFD Sender: No OFD packet to send [17:49:40]accept exits with 9 [17:49:40]New connection [17:49:40]New thread 3066797412 created [17:49:40]Thread 3066940772 joined [17:49:40]Waiting for new connection... [17:49:40] Sock 9.Parse request [17:49:40]Sock 9.Check first char [17:49:40]Sock 9.First char is OK [17:49:40]request: POST /json_proto HTTP/1.0 [17:49:40]Method: POST [17:49:40]URL: /json_proto [17:49:40]Method is POST - this is cgi request [17:49:40]url: /json_proto [17:49:40]query_string will be loaded in cgi processing [17:49:40]execute_cgi json_proto POST (null) [17:49:40]execute_cgi path=json_proto method=POST [17:49:40]POST find Content-Length [17:49:40]Host: 172.17.38.133:8080 [17:49:40]Content-Length: 677 [17:49:40]Content-Type: application/json [17:49:40] [17:49:40]POST finish read [17:49:40]Found Content-Length = 677 [17:49:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673042", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:49:40]execute_script... [17:49: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)673042", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:49:40]POST & json_proto [17:49:40]process_json_proto [17:49:40]json parsed OK: [17:49:40]protocol is kg_v1.0 [17:49:40]action value=close_receipt [17:49:40]process_action close_receipt [17:49:40]cmd_close_receipt [17:49:40]MH_GetDate [17:49:40]Write to MH i2c: F0 00 00 72 06 67 [17:49:40]Write i2c OK [17:49:40]MH_I2C_Read... [17:49:40]Read from MH i2c: F0 [17:49:40]MH_I2C_Read... [17:49:40]Read from MH i2c: F0 09 00 [17:49:40]MH_I2C_Read... [17:49:40]Read from MH i2c: F0 09 00 72 06 00 34 1A 73 66 BD 8F 7C 64 C3 [17:49:40]GetLastDocTimeStamp 1718819035 [17:49:40]current date 1718819380 [17:49:40]FM_GetShiftState [17:49:40]SAM_PROTO_GetShiftState [17:49:40]wFMCommunicate request_size=4 [17:49:40]MH_SAM_APDU [17:49:40]CAPDU: 80 13 01 00 [17:49:40]Write to MH i2c: E2 08 00 73 06 80 13 01 00 00 00 00 00 F6 [17:49:40]Write i2c OK [17:49:40]MH_I2C_Read... [17:49:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:49:40]Read from MH i2c: E2 [17:49:40]MH_I2C_Read... [17:49:40]Read from MH i2c: E2 0E 00 [17:49:40]MH_I2C_Read... [17:49:40]Read from MH i2c: E2 0E 00 73 06 00 09 00 01 04 26 72 66 00 00 00 00 90 00 04 [17:49:40]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [17:49:40]wFMCommunicate OK [17:49:40]SAM_PROTO_GetShiftState done [17:49:40]FM_GetShiftState done [17:49:40]opened in 1718756868 [17:49:40]opened+sec_in_day 1718843268 [17:49:40]quantity*price = 50065 [17:49:40]sum+1 = 50067 [17:49:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.17 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 187 19.06.2024 17:49 Смена: 353 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103757 ФПД: 33689616583164 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T174940&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103757&fm=33689616583164&tin=02508201610067®Number=0000000000092785&sum=50000 [17:49:41]StoreToDocumentArchive [17:49:41]shift 353 fd 103757 [17:49:41]save to /storage/0353/doc_00103757 [17:49:41]save last doc name /storage/0353/doc_00103757 to /storage/kkm_last_doc_name [17:49:41]save OK [17:49:41]Clear old archive folders... [17:49:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:49:41]tlvbuf is 016C8000 [17:49:41]SAM_PROTO_ClearQueue [17:49:41]wFMCommunicate request_size=4 [17:49:41]MH_SAM_APDU [17:49:41]CAPDU: 80 09 00 00 [17:49:41]Write to MH i2c: E2 08 00 80 06 80 09 00 00 00 00 00 00 F8 [17:49:41]Write i2c OK [17:49:41]MH_I2C_Read... [17:49:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:49:41]Read from MH i2c: E2 [17:49:41]MH_I2C_Read... [17:49:41]Read from MH i2c: E2 03 00 [17:49:41]MH_I2C_Read... [17:49:41]Read from MH i2c: E2 03 00 80 06 00 90 00 FA [17:49:41]RAPDU: 90 00 [17:49:41]wFMCommunicate OK [17:49:41]SAM_PROTO_ClearQueue done [17:49:41]KKMCreateOFDPacket [17:49:41]OFDProtocolAddRootSTLVToBuf [17:49:41]FM_MakeSignedData [17:49:41]FM_MakeSignedData [17:49:41]SAM_PROTO_SignData [17:49:41]wFMCommunicate request_size=4 [17:49:41]MH_SAM_APDU [17:49:41]CAPDU: 80 0D 01 02 [17:49:41]Write to MH i2c: E2 08 00 81 06 80 0D 01 02 00 00 00 00 00 [17:49:41]Write i2c OK [17:49:41]MH_I2C_Read... [17:49:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:49:41]Read from MH i2c: E2 [17:49:41]MH_I2C_Read... [17:49:41]Read from MH i2c: E2 03 00 [17:49:41]MH_I2C_Read... [17:49:41]Read from MH i2c: E2 03 00 81 06 00 90 00 FB [17:49:41]RAPDU: 90 00 [17:49:41]wFMCommunicate OK [17:49:41]wFMCommunicate request_size=255 [17:49:41]MH_SAM_APDU [17:49: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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BB 00 00 00 F4 03 04 00 34 1A 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 4D 95 01 00 35 04 06 00 1E [17:49:41]Write to MH i2c: E2 02 01 82 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BB 00 00 00 F4 03 04 00 34 1A 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 4D 95 01 00 35 04 06 00 1E 00 00 FF [17:49:41]Write i2c OK [17:49:41]MH_I2C_Read... [17:49:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:49:41]Read from MH i2c: E2 [17:49:41]MH_I2C_Read... [17:49:41]Read from MH i2c: E2 03 00 [17:49:41]MH_I2C_Read... [17:49:41]Read from MH i2c: E2 03 00 82 06 00 90 00 FC [17:49:41]RAPDU: 90 00 [17:49:41]wFMCommunicate OK [17:49:41]wFMCommunicate request_size=10 [17:49:41]MH_SAM_APDU [17:49:41]CAPDU: 80 0D 02 02 05 A3 F9 A1 09 FC [17:49:41]Write to MH i2c: E2 0D 00 83 06 80 0D 02 02 05 00 A3 F9 A1 09 FC 00 00 4F [17:49:41]Write i2c OK [17:49:41]MH_I2C_Read... [17:49:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:49:41]Read from MH i2c: E2 [17:49:41]MH_I2C_Read... [17:49:41]Read from MH i2c: E2 03 00 [17:49:41]MH_I2C_Read... [17:49:41]Read from MH i2c: E2 03 00 83 06 00 90 00 FD [17:49:41]RAPDU: 90 00 [17:49:41]wFMCommunicate OK [17:49:41]wFMCommunicate request_size=4 [17:49:41]MH_SAM_APDU [17:49:41]CAPDU: 80 0D 03 02 [17:49:41]Write to MH i2c: E2 08 00 84 06 80 0D 03 02 00 00 00 00 05 [17:49:41]Write i2c OK [17:49:41]MH_I2C_Read... [17:49:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:49:41]Read from MH i2c: E2 [17:49:41]MH_I2C_Read... [17:49:41]Read from MH i2c: E2 0B 00 [17:49:41]MH_I2C_Read... [17:49:41]Read from MH i2c: E2 0B 00 84 06 00 DB 8E 52 7C 84 D7 D6 D2 90 00 40 [17:49:41]RAPDU: DB 8E 52 7C 84 D7 D6 D2 90 00 [17:49:41]wFMCommunicate OK [17:49:41]SAM_PROTO_SignData done [17:49:41]FM_MakeSignedData done [17:49:41]CreateOFDProtocolMessage [17:49:41]wFMCommunicate request_size=4 [17:49:41]MH_SAM_APDU [17:49:41]CAPDU: 80 11 00 00 [17:49:41]Write to MH i2c: E2 08 00 85 06 80 11 00 00 00 00 00 00 05 [17:49:41]Write i2c OK [17:49:41]MH_I2C_Read... [17:49:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:49:42]Read from MH i2c: E2 [17:49:42]MH_I2C_Read... [17:49:42]Read from MH i2c: E2 17 00 [17:49:42]MH_I2C_Read... [17:49:42]Read from MH i2c: E2 17 00 85 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 58 [17:49:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [17:49:42]wFMCommunicate OK [17:49:42]CreateOFDProtocolMessage done [17:49:42]OFDSenderStorePacket 103757 [17:49:42]StoreOFDPacket docnum=103757 [17:49:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 2E 4B 07 01 7E 6C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BB 00 00 00 F4 03 04 00 34 1A 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 4D 95 01 00 35 04 06 00 1E A3 F9 A1 09 FC DB 8E 52 7C 84 D7 D6 D2 [17:49:42]CheckFolder [17:49:42]dirname=/storage/ofd_packets [17:49:42]CheckFolder done [17:49:42]ProducePacketName [17:49:42]name=ofd_packets/00103757 [17:49:42]NVStorageSaveData ofd_packets/00103757 [17:49:42]File name is /storage/ofd_packets/00103757 [17:49:42]Write 301 bytes [17:49:42]NVStorageSaveData done [17:49:42]OFDSenderStorePacket done [17:49:42]KKMCreateOFDPacket done [17:49:42]NVStorageSaveData kkm_last_timestamp [17:49:42]File name is /storage/kkm_last_timestamp [17:49:42]Write 4 bytes [17:49:42]NVStorageSaveData done [17:49:42]ExternCall_PrintAddStr [17:49:42]wPrintStart [17:49:42]Write to MH i2c: 01 00 00 86 06 8C [17:49:42]Write i2c OK [17:49:42]MH_I2C_Read... [17:49:42]Read from MH i2c: 01 [17:49:42]MH_I2C_Read... [17:49:42]Read from MH i2c: 01 07 00 [17:49:42]MH_I2C_Read... [17:49:42]Read from MH i2c: 01 07 00 86 06 00 00 00 00 00 FF 0F A1 [17:49:42]RasterBufferAndPrint [17:49:42]line Счет N : (1)673042 [17:49:42]line ИНН: 02508201610067 [17:49:42]line Контрольно-Кассовый Чек [17:49:42]line ПРОДАЖА [17:49:42]line ТРК (МРК, ГНК) : 42 [17:49:42]line Товар: 2710124130 [17:49:42]line Аи-92-К-5 [17:49:42]line 7.540 * 66.40 [17:49:42]line = 500.66 [17:49:42]line НДС 12% НСП 1% [17:49:42]line > о реализуемом товаре [17:49:42]line ОКРУГЛЕНИЕ: -0.66 [17:49:42]line ИТОГО: 500.00 [17:49:42]line Внесено: 500.00 [17:49:42]line СДАЧА: 0.00 [17:49:42]line НСП 1% : 4.43 [17:49:42]line НДС 12% : 53.17 [17:49:42]line Наличными: 500.00 [17:49:42]line Безнал.: 0.00 [17:49:42]line Место: АЗС № 120 "Партнер Нефть" [17:49:42]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [17:49:42]line СНО: Общий режим [17:49:42]line Чек 187 19.06.2024 17:49 [17:49:42]line Смена: 353 ФФД: 1.0 [17:49:42]line ЗНМ: 0300000164 [17:49:42]line РНМ: 0000000000092785 [17:49:42]line Версия ККМ: 001 [17:49:42]line ФМ: 0000000000875093 [17:49:42]line ФД: 103757 [17:49:42]line ФПД: 33689616583164 [17:49:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T174940&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103757&fm=33689616583164&tin=02508201610067®Number=0000000000092785&sum=50000 [17:49:42]OFD Sender: Processing packet 103757 [packets to send 17, broken 16] [17:49:42]ProducePacketName [17:49:42]name=ofd_packets/00103757 [17:49:42]OFD Sender: To server: pG, [17:49:42]CommunicateWithHost lk.salyk.kg:30040 [17:49:42]ConnectInit lk.salyk.kg [17:49:42]written 0, free lines is 4095 [17:49:42]Connected sock=10 [17:49: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 39 33 0F 01 00 00 2E 4B 07 01 7E 6C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BB 00 00 00 F4 03 04 00 34 1A 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 4D 95 01 00 35 04 06 00 1E A3 F9 A1 09 FC DB 8E 52 7C 84 D7 D6 D2 [17:49: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 39 33 4F 00 00 00 71 A0 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 39 33 10 04 04 00 4D 95 01 00 F4 03 04 00 BD C0 72 66 B6 04 01 00 00 7A B5 B2 AA 88 28 EA B3 [17:49:42]CommunicateWithHost err = 0 [17:49:42]CheckOFDResponse [17:49:42]1017 (14) - 77093643461234 [17:49:42]1041 (16) - 0000000000875093 [17:49:42]1040 (4) - 103757 [17:49:42]1012 (4) - 19.06.2024 11:27 [17:49:42]1206 (1) - 0 [17:49:42]OFD Sender: Remove packet 103757 [17:49:42]ProducePacketName [17:49:42]name=ofd_packets/00103757 [17:49:42]NVStorageDeleteData [17:49:42]Write to MH i2c: 01 00 00 B1 06 B7 [17:49:42]Write i2c OK [17:49:42]MH_I2C_Read... [17:49:42]Read from MH i2c: 01 [17:49:42]MH_I2C_Read... [17:49:42]Read from MH i2c: 01 07 00 [17:49:42]MH_I2C_Read... [17:49:42]Read from MH i2c: 01 07 00 B1 06 00 00 00 00 00 E1 0C AB [17:49:42]RasterBufferAndPrint [17:49:42]line [17:49:42]line [17:49:42]line [17:49:42]line [17:49:42]line [17:49:42]written 0, free lines is 3303 [17:49:42]MH_Cut [17:49:42]Write to MH i2c: D1 01 00 B8 06 01 90 [17:49:42]Write i2c OK [17:49:42]MH_I2C_Read... [17:49:42]Read from MH i2c: D1 [17:49:42]MH_I2C_Read... [17:49:42]Read from MH i2c: D1 01 00 [17:49:42]MH_I2C_Read... [17:49:42]Read from MH i2c: D1 01 00 B8 06 00 8F [17:49:42]Write to MH i2c: 01 00 00 B9 06 BF [17:49:42]Write i2c OK [17:49:42]MH_I2C_Read... [17:49:43]OFD Sender: No OFD packet to send [17:49:43]*** Cut start [17:49:43]*** Partial cut [17:49:43]*** CUTSNS_PIN = 1 [17:49:43]*** CUTSNS_PIN = 0 [17:49:43]*** Brake cut motor [17:49:44]Read from MH i2c: 01 [17:49:44]MH_I2C_Read... [17:49:44]*** Stop cut motor [17:49:44]*** Cut end [17:49:44]Read from MH i2c: 01 07 00 [17:49:44]MH_I2C_Read... [17:49:44]Read from MH i2c: 01 07 00 B9 06 00 00 00 00 00 FF 0F D4 [17:49:44]process_action close_receipt done [17:49:44]requested_data is exist [17:49:44]produce_requested_data [17:49:44]requested_item fm.sn is exist - process it [17:49:44]wFMCommunicate request_size=4 [17:49:44]MH_SAM_APDU [17:49:44]CAPDU: 80 11 00 00 [17:49:44]Write to MH i2c: E2 08 00 BA 06 80 11 00 00 00 00 00 00 3A [17:49:44]Write i2c OK [17:49:44]MH_I2C_Read... [17:49:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:49:44]Read from MH i2c: E2 [17:49:44]MH_I2C_Read... [17:49:44]Read from MH i2c: E2 17 00 [17:49:44]MH_I2C_Read... [17:49:44]Read from MH i2c: E2 17 00 BA 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 8D [17:49:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [17:49:44]wFMCommunicate OK [17:49:44]requested_item fd.num is exist - process it [17:49:44]SAM_PROTO_GetFieldsCounters [17:49:44]wFMCommunicate request_size=4 [17:49:44]MH_SAM_APDU [17:49:44]CAPDU: 80 13 00 00 [17:49:44]Write to MH i2c: E2 08 00 BB 06 80 13 00 00 00 00 00 00 3D [17:49:44]Write i2c OK [17:49:44]MH_I2C_Read... [17:49:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:49:44]Read from MH i2c: E2 [17:49:44]MH_I2C_Read... [17:49:44]Read from MH i2c: E2 62 00 [17:49:44]MH_I2C_Read... [17:49:44]Read from MH i2c: E2 62 00 BB 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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 4D 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 BB 00 00 00 5E 04 04 00 BB 00 00 00 57 04 04 00 BC 00 00 00 19 04 04 00 00 00 00 00 90 00 DA [17:49: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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 4D 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 BB 00 00 00 5E 04 04 00 BB 00 00 00 57 04 04 00 BC 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:49:44]wFMCommunicate OK [17:49:44]SAM_PROTO_GetFieldsCounters done [17:49:44]requested_item shift.num is exist - process it [17:49:44]requested_item shift.opened is exist - process it [17:49:44]req_shift_opened [17:49:44]FM_GetShiftState [17:49:44]SAM_PROTO_GetShiftState [17:49:44]wFMCommunicate request_size=4 [17:49:44]MH_SAM_APDU [17:49:44]CAPDU: 80 13 01 00 [17:49:44]Write to MH i2c: E2 08 00 BC 06 80 13 01 00 00 00 00 00 3F [17:49:44]Write i2c OK [17:49:44]MH_I2C_Read... [17:49:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:49:44]Read from MH i2c: E2 [17:49:44]MH_I2C_Read... [17:49:44]Read from MH i2c: E2 0E 00 [17:49:44]MH_I2C_Read... [17:49:44]Read from MH i2c: E2 0E 00 BC 06 00 09 00 01 04 26 72 66 00 00 00 00 90 00 4D [17:49:44]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [17:49:44]wFMCommunicate OK [17:49:44]SAM_PROTO_GetShiftState done [17:49:44]FM_GetShiftState done [17:49:44]req_shift_opened done [17:49:44]requested_item shift.open_date is exist - process it [17:49:44]req_shift_open_date [17:49:44]req_shift_open_date done [17:49:44]produce_requested_data done [17:49:44]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103757,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [17:49:44]process_action_free close_receipt [17:49:44]json_value_free [17:49:44]json_value_free done [17:49:44]process_json_proto returns [17:49:44]Send response to host [17:49:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103757,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [17:49:44]free response buf [17:49:44]execute_script done [17:49:44]execute_script returns [17:49:44]free content buf [17:49:44]Sock 9.Close socket [17:49:44]Sock 9.Thread stoped [17:49:48]OFD Sender: No OFD packet to send [17:49:53]OFD Sender: No OFD packet to send [17:49:58]OFD Sender: No OFD packet to send [17:50:03]OFD Sender: No OFD packet to send [17:50:08]OFD Sender: No OFD packet to send [17:50:13]OFD Sender: No OFD packet to send [17:50:18]OFD Sender: No OFD packet to send [17:50:23]OFD Sender: No OFD packet to send [17:50:28]OFD Sender: No OFD packet to send [17:50:33]OFD Sender: No OFD packet to send [17:50:38]OFD Sender: No OFD packet to send [17:50:43]OFD Sender: No OFD packet to send [17:50:48]OFD Sender: No OFD packet to send [17:50:53]OFD Sender: No OFD packet to send [17:50:58]OFD Sender: No OFD packet to send [17:51:03]OFD Sender: No OFD packet to send [17:51:08]OFD Sender: No OFD packet to send [17:51:13]OFD Sender: No OFD packet to send [17:51:18]OFD Sender: No OFD packet to send [17:51:23]OFD Sender: No OFD packet to send [17:51:24]accept exits with 8 [17:51:24]New connection [17:51:24]New thread 3066940772 created [17:51:24]Thread 3066797412 joined [17:51:24]Waiting for new connection... [17:51:24] Sock 8.Parse request [17:51:24]Sock 8.Check first char [17:51:24]Sock 8.First char is OK [17:51:24]request: POST /json_proto HTTP/1.0 [17:51:24]Method: POST [17:51:24]URL: /json_proto [17:51:24]Method is POST - this is cgi request [17:51:24]url: /json_proto [17:51:24]query_string will be loaded in cgi processing [17:51:24]execute_cgi json_proto POST (null) [17:51:24]execute_cgi path=json_proto method=POST [17:51:24]POST find Content-Length [17:51:24]Host: 172.17.38.133:8080 [17:51:24]Content-Length: 1196 [17:51:24]Content-Type: application/json [17:51:24] [17:51:24]POST finish read [17:51:24]Found Content-Length = 1196 [17:51:24]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 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. \u000A\u0421\u0447\u0435\u0442 N : (1)673043\u000A19.06.2024 17:28\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 42\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 10.000 x 66.40\u000A\u0418\u0422\u041E\u0413: 664.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3890288\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:51:24]execute_script... [17:51:24]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 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. \u000A\u0421\u0447\u0435\u0442 N : (1)673043\u000A19.06.2024 17:28\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 42\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 10.000 x 66.40\u000A\u0418\u0422\u041E\u0413: 664.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3890288\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:51:24]POST & json_proto [17:51:24]process_json_proto [17:51:24]json parsed OK: [17:51:24]protocol is kg_v1.0 [17:51:24]action value=print_text [17:51:24]process_action print_text [17:51:24]cmd_print_text [17:51:24]ExternCall_PrintAddStr [17:51:24]wPrintStart [17:51:24]Write to MH i2c: 01 00 00 BD 06 C3 [17:51:24]Write i2c OK [17:51:24]MH_I2C_Read... [17:51:24]Read from MH i2c: 01 [17:51:24]MH_I2C_Read... [17:51:24]Read from MH i2c: 01 07 00 [17:51:24]MH_I2C_Read... [17:51:24]Read from MH i2c: 01 07 00 BD 06 00 00 00 00 00 FF 0F D8 [17:51:24]RasterBufferAndPrint [17:51:24]line *****ТОВАРНЫЙ ЧЕК***** [17:51:24]line АЗС 120 [17:51:24]line Партнер нефть [17:51:24]line 02508201610067 [17:51:24]line Кассир : Байбугуева Г. [17:51:24]line Счет N : (1)673043 [17:51:24]line 19.06.2024 17:28 [17:51:24]line ПРОДАЖА [17:51:24]line ТРК (МРК, ГНК): 42 [17:51:24]line Вид ГСМ : 2710124130 [17:51:24]line Аи-92-К-5 [17:51:24]line 10.000 x 66.40 [17:51:24]line ИТОГ: 664.00 [17:51:24]line Тип оплаты: Талоны: Партнер нефть [17:51:24]line 3890288 [17:51:24]line ______________________ [17:51:24]line (подпись) [17:51:24]written 0, free lines is 4095 [17:51:24]Write to MH i2c: 01 00 00 D1 06 D7 [17:51:24]Write i2c OK [17:51:24]MH_I2C_Read... [17:51:24]Read from MH i2c: 01 [17:51:24]MH_I2C_Read... [17:51:24]Read from MH i2c: 01 07 00 [17:51:24]MH_I2C_Read... [17:51:24]Read from MH i2c: 01 07 00 D1 06 00 00 00 00 00 14 0E 00 [17:51:24]RasterBufferAndPrint [17:51:24]line [17:51:24]line [17:51:24]line [17:51:24]line [17:51:24]line [17:51:24]written 0, free lines is 3606 [17:51:24]MH_Cut [17:51:24]Write to MH i2c: D1 01 00 D8 06 01 B0 [17:51:24]Write i2c OK [17:51:24]MH_I2C_Read... [17:51:24]Read from MH i2c: D1 [17:51:24]MH_I2C_Read... [17:51:24]Read from MH i2c: D1 01 00 [17:51:24]MH_I2C_Read... [17:51:24]Read from MH i2c: D1 01 00 D8 06 00 AF [17:51:24]Write to MH i2c: 01 00 00 D9 06 DF [17:51:24]Write i2c OK [17:51:24]MH_I2C_Read... [17:51:25]*** Cut start [17:51:25]*** Partial cut [17:51:25]*** CUTSNS_PIN = 1 [17:51:25]*** CUTSNS_PIN = 0 [17:51:25]*** Brake cut motor [17:51:25]Read from MH i2c: 01 [17:51:25]MH_I2C_Read... [17:51:25]*** Stop cut motor [17:51:25]*** Cut end [17:51:25]Read from MH i2c: 01 07 00 [17:51:25]MH_I2C_Read... [17:51:25]Read from MH i2c: 01 07 00 D9 06 00 00 00 00 00 FF 0F F4 [17:51:25]process_action print_text done [17:51:25]requested_data is exist [17:51:25]produce_requested_data [17:51:25]requested_item fm.sn is exist - process it [17:51:25]wFMCommunicate request_size=4 [17:51:25]MH_SAM_APDU [17:51:25]CAPDU: 80 11 00 00 [17:51:25]Write to MH i2c: E2 08 00 DA 06 80 11 00 00 00 00 00 00 5A [17:51:25]Write i2c OK [17:51:25]MH_I2C_Read... [17:51:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:51:25]Read from MH i2c: E2 [17:51:25]MH_I2C_Read... [17:51:25]Read from MH i2c: E2 17 00 [17:51:25]MH_I2C_Read... [17:51:25]Read from MH i2c: E2 17 00 DA 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 AD [17:51:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [17:51:25]wFMCommunicate OK [17:51:25]requested_item fd.num is exist - process it [17:51:25]SAM_PROTO_GetFieldsCounters [17:51:25]wFMCommunicate request_size=4 [17:51:25]MH_SAM_APDU [17:51:25]CAPDU: 80 13 00 00 [17:51:25]Write to MH i2c: E2 08 00 DB 06 80 13 00 00 00 00 00 00 5D [17:51:25]Write i2c OK [17:51:25]MH_I2C_Read... [17:51:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:51:25]Read from MH i2c: E2 [17:51:25]MH_I2C_Read... [17:51:25]Read from MH i2c: E2 62 00 [17:51:25]MH_I2C_Read... [17:51:25]Read from MH i2c: E2 62 00 DB 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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 4D 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 BB 00 00 00 5E 04 04 00 BB 00 00 00 57 04 04 00 BC 00 00 00 19 04 04 00 00 00 00 00 90 00 FA [17:51:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 4D 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 BB 00 00 00 5E 04 04 00 BB 00 00 00 57 04 04 00 BC 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:51:25]wFMCommunicate OK [17:51:25]SAM_PROTO_GetFieldsCounters done [17:51:25]requested_item shift.num is exist - process it [17:51:25]requested_item shift.opened is exist - process it [17:51:25]req_shift_opened [17:51:25]FM_GetShiftState [17:51:25]SAM_PROTO_GetShiftState [17:51:25]wFMCommunicate request_size=4 [17:51:25]MH_SAM_APDU [17:51:25]CAPDU: 80 13 01 00 [17:51:25]Write to MH i2c: E2 08 00 DC 06 80 13 01 00 00 00 00 00 5F [17:51:25]Write i2c OK [17:51:25]MH_I2C_Read... [17:51:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:51:26]Read from MH i2c: E2 [17:51:26]MH_I2C_Read... [17:51:26]Read from MH i2c: E2 0E 00 [17:51:26]MH_I2C_Read... [17:51:26]Read from MH i2c: E2 0E 00 DC 06 00 09 00 01 04 26 72 66 00 00 00 00 90 00 6D [17:51:26]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [17:51:26]wFMCommunicate OK [17:51:26]SAM_PROTO_GetShiftState done [17:51:26]FM_GetShiftState done [17:51:26]req_shift_opened done [17:51:26]requested_item shift.open_date is exist - process it [17:51:26]req_shift_open_date [17:51:26]req_shift_open_date done [17:51:26]produce_requested_data done [17:51:26]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103757,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [17:51:26]process_action_free print_text [17:51:26]json_value_free [17:51:26]json_value_free done [17:51:26]process_json_proto returns [17:51:26]Send response to host [17:51:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103757,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [17:51:26]free response buf [17:51:26]execute_script done [17:51:26]execute_script returns [17:51:26]free content buf [17:51:26]Sock 8.Close socket [17:51:26]Sock 8.Thread stoped [17:51:28]OFD Sender: No OFD packet to send [17:51:33]OFD Sender: No OFD packet to send [17:51:38]OFD Sender: No OFD packet to send [17:51:43]OFD Sender: No OFD packet to send [17:51:48]OFD Sender: No OFD packet to send [17:51:53]OFD Sender: No OFD packet to send [17:51:58]OFD Sender: No OFD packet to send [17:52:03]OFD Sender: No OFD packet to send [17:52:08]OFD Sender: No OFD packet to send [17:52:13]OFD Sender: No OFD packet to send [17:52:18]OFD Sender: No OFD packet to send [17:52:23]OFD Sender: No OFD packet to send [17:52:28]OFD Sender: No OFD packet to send [17:52:33]OFD Sender: No OFD packet to send [17:52:38]OFD Sender: No OFD packet to send [17:52:43]OFD Sender: No OFD packet to send [17:52:48]OFD Sender: No OFD packet to send [17:52:53]OFD Sender: No OFD packet to send [17:52:58]OFD Sender: No OFD packet to send [17:53:03]OFD Sender: No OFD packet to send [17:53:08]OFD Sender: No OFD packet to send [17:53:13]OFD Sender: No OFD packet to send [17:53:18]OFD Sender: No OFD packet to send [17:53:23]OFD Sender: No OFD packet to send [17:53:28]OFD Sender: No OFD packet to send [17:53:33]OFD Sender: No OFD packet to send [17:53:38]OFD Sender: No OFD packet to send [17:53:43]OFD Sender: No OFD packet to send [17:53:48]OFD Sender: No OFD packet to send [17:53:53]OFD Sender: No OFD packet to send [17:53:58]OFD Sender: No OFD packet to send [17:54:03]OFD Sender: No OFD packet to send [17:54:08]OFD Sender: No OFD packet to send [17:54:13]OFD Sender: No OFD packet to send [17:54:18]OFD Sender: No OFD packet to send [17:54:23]OFD Sender: No OFD packet to send [17:54:28]OFD Sender: No OFD packet to send [17:54:33]OFD Sender: No OFD packet to send [17:54:38]OFD Sender: No OFD packet to send [17:54:43]OFD Sender: No OFD packet to send [17:54:48]OFD Sender: No OFD packet to send [17:54:53]OFD Sender: No OFD packet to send [17:54:54]accept exits with 9 [17:54:54]New connection [17:54:54]New thread 3066797412 created [17:54:54]Thread 3066940772 joined [17:54:54]Waiting for new connection... [17:54:54] Sock 9.Parse request [17:54:54]Sock 9.Check first char [17:54:54]Sock 9.First char is OK [17:54:54]request: POST /json_proto HTTP/1.0 [17:54:54]Method: POST [17:54:54]URL: /json_proto [17:54:54]Method is POST - this is cgi request [17:54:54]url: /json_proto [17:54:54]query_string will be loaded in cgi processing [17:54:54]execute_cgi json_proto POST (null) [17:54:54]execute_cgi path=json_proto method=POST [17:54:54]POST find Content-Length [17:54:54]Host: 172.17.38.133:8080 [17:54:54]Content-Length: 819 [17:54:54]Content-Type: application/json [17:54:54] [17:54:54]POST finish read [17:54:54]Found Content-Length = 819 [17:54:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673044", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.65 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:54:54]execute_script... [17:54: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)673044", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.65 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:54:54]POST & json_proto [17:54:54]process_json_proto [17:54:54]json parsed OK: [17:54:54]protocol is kg_v1.0 [17:54:54]action value=close_receipt [17:54:54]process_action close_receipt [17:54:54]cmd_close_receipt [17:54:54]MH_GetDate [17:54:54]Write to MH i2c: F0 00 00 DD 06 D2 [17:54:54]Write i2c OK [17:54:54]MH_I2C_Read... [17:54:54]Read from MH i2c: F0 [17:54:54]MH_I2C_Read... [17:54:54]Read from MH i2c: F0 09 00 [17:54:54]MH_I2C_Read... [17:54:54]Read from MH i2c: F0 09 00 DD 06 00 6F 1B 73 66 BD 8F 7C 64 6A [17:54:54]GetLastDocTimeStamp 1718819380 [17:54:54]current date 1718819695 [17:54:54]FM_GetShiftState [17:54:54]SAM_PROTO_GetShiftState [17:54:54]wFMCommunicate request_size=4 [17:54:54]MH_SAM_APDU [17:54:54]CAPDU: 80 13 01 00 [17:54:54]Write to MH i2c: E2 08 00 DE 06 80 13 01 00 00 00 00 00 61 [17:54:54]Write i2c OK [17:54:54]MH_I2C_Read... [17:54:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:54:54]Read from MH i2c: E2 [17:54:54]MH_I2C_Read... [17:54:54]Read from MH i2c: E2 0E 00 [17:54:54]MH_I2C_Read... [17:54:54]Read from MH i2c: E2 0E 00 DE 06 00 09 00 01 04 26 72 66 00 00 00 00 90 00 6F [17:54:54]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [17:54:54]wFMCommunicate OK [17:54:54]SAM_PROTO_GetShiftState done [17:54:54]FM_GetShiftState done [17:54:54]opened in 1718756868 [17:54:54]opened+sec_in_day 1718843268 [17:54:54]quantity*price = 100064 [17:54:54]sum+1 = 100066 [17:54:54]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.65 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 0.00 Безнал.: 1000.65 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 188 19.06.2024 17:54 Смена: 353 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000875093 ФД: 103758 ФПД: 229898368563150 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T175455&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103758&fm=229898368563150&tin=02508201610067®Number=0000000000092785&sum=100065 [17:54:56]StoreToDocumentArchive [17:54:56]shift 353 fd 103758 [17:54:56]save to /storage/0353/doc_00103758 [17:54:56]save last doc name /storage/0353/doc_00103758 to /storage/kkm_last_doc_name [17:54:56]save OK [17:54:56]Clear old archive folders... [17:54:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:54:56]tlvbuf is 016C80E0 [17:54:56]SAM_PROTO_ClearQueue [17:54:56]wFMCommunicate request_size=4 [17:54:56]MH_SAM_APDU [17:54:56]CAPDU: 80 09 00 00 [17:54:56]Write to MH i2c: E2 08 00 EB 06 80 09 00 00 00 00 00 00 63 [17:54:56]Write i2c OK [17:54:56]MH_I2C_Read... [17:54:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:54:56]Read from MH i2c: E2 [17:54:56]MH_I2C_Read... [17:54:56]Read from MH i2c: E2 03 00 [17:54:56]MH_I2C_Read... [17:54:56]Read from MH i2c: E2 03 00 EB 06 00 90 00 65 [17:54:56]RAPDU: 90 00 [17:54:56]wFMCommunicate OK [17:54:56]SAM_PROTO_ClearQueue done [17:54:56]KKMCreateOFDPacket [17:54:56]OFDProtocolAddRootSTLVToBuf [17:54:56]FM_MakeSignedData [17:54:56]FM_MakeSignedData [17:54:56]SAM_PROTO_SignData [17:54:56]wFMCommunicate request_size=4 [17:54:56]MH_SAM_APDU [17:54:56]CAPDU: 80 0D 01 02 [17:54:56]Write to MH i2c: E2 08 00 EC 06 80 0D 01 02 00 00 00 00 6B [17:54:56]Write i2c OK [17:54:56]MH_I2C_Read... [17:54:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:54:56]Read from MH i2c: E2 [17:54:56]MH_I2C_Read... [17:54:56]Read from MH i2c: E2 03 00 [17:54:56]MH_I2C_Read... [17:54:56]Read from MH i2c: E2 03 00 EC 06 00 90 00 66 [17:54:56]RAPDU: 90 00 [17:54:56]wFMCommunicate OK [17:54:56]wFMCommunicate request_size=255 [17:54:56]MH_SAM_APDU [17:54: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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E1 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E1 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 BC 00 00 00 F4 03 04 00 6F 1B 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 4E 95 01 00 35 04 06 00 D1 [17:54:56]Write to MH i2c: E2 02 01 ED 06 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E1 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E1 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 BC 00 00 00 F4 03 04 00 6F 1B 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 4E 95 01 00 35 04 06 00 D1 00 00 2D [17:54:56]Write i2c OK [17:54:56]MH_I2C_Read... [17:54:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:54:56]Read from MH i2c: E2 [17:54:56]MH_I2C_Read... [17:54:56]Read from MH i2c: E2 03 00 [17:54:56]MH_I2C_Read... [17:54:56]Read from MH i2c: E2 03 00 ED 06 00 90 00 67 [17:54:56]RAPDU: 90 00 [17:54:56]wFMCommunicate OK [17:54:56]wFMCommunicate request_size=10 [17:54:56]MH_SAM_APDU [17:54:56]CAPDU: 80 0D 02 02 05 17 62 97 B7 CE [17:54:56]Write to MH i2c: E2 0D 00 EE 06 80 0D 02 02 05 00 17 62 97 B7 CE 00 00 0D [17:54:56]Write i2c OK [17:54:56]MH_I2C_Read... [17:54:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:54:56]Read from MH i2c: E2 [17:54:56]MH_I2C_Read... [17:54:56]Read from MH i2c: E2 03 00 [17:54:56]MH_I2C_Read... [17:54:56]Read from MH i2c: E2 03 00 EE 06 00 90 00 68 [17:54:56]RAPDU: 90 00 [17:54:56]wFMCommunicate OK [17:54:56]wFMCommunicate request_size=4 [17:54:56]MH_SAM_APDU [17:54:56]CAPDU: 80 0D 03 02 [17:54:56]Write to MH i2c: E2 08 00 EF 06 80 0D 03 02 00 00 00 00 70 [17:54:56]Write i2c OK [17:54:56]MH_I2C_Read... [17:54:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:54:56]Read from MH i2c: E2 [17:54:56]MH_I2C_Read... [17:54:56]Read from MH i2c: E2 0B 00 [17:54:56]MH_I2C_Read... [17:54:56]Read from MH i2c: E2 0B 00 EF 06 00 57 68 7E 90 FC 89 ED F2 90 00 A2 [17:54:56]RAPDU: 57 68 7E 90 FC 89 ED F2 90 00 [17:54:56]wFMCommunicate OK [17:54:56]SAM_PROTO_SignData done [17:54:56]FM_MakeSignedData done [17:54:56]CreateOFDProtocolMessage [17:54:56]wFMCommunicate request_size=4 [17:54:56]MH_SAM_APDU [17:54:56]CAPDU: 80 11 00 00 [17:54:56]Write to MH i2c: E2 08 00 F0 06 80 11 00 00 00 00 00 00 70 [17:54:56]Write i2c OK [17:54:56]MH_I2C_Read... [17:54:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:54:56]Read from MH i2c: E2 [17:54:56]MH_I2C_Read... [17:54:56]Read from MH i2c: E2 17 00 [17:54:56]MH_I2C_Read... [17:54:56]Read from MH i2c: E2 17 00 F0 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 C3 [17:54:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [17:54:56]wFMCommunicate OK [17:54:56]CreateOFDProtocolMessage done [17:54:56]OFDSenderStorePacket 103758 [17:54:56]StoreOFDPacket docnum=103758 [17:54:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 7E DB 07 01 1E 5F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E1 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E1 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 BC 00 00 00 F4 03 04 00 6F 1B 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 4E 95 01 00 35 04 06 00 D1 17 62 97 B7 CE 57 68 7E 90 FC 89 ED F2 [17:54:56]CheckFolder [17:54:56]dirname=/storage/ofd_packets [17:54:56]CheckFolder done [17:54:56]ProducePacketName [17:54:56]name=ofd_packets/00103758 [17:54:56]NVStorageSaveData ofd_packets/00103758 [17:54:56]File name is /storage/ofd_packets/00103758 [17:54:56]Write 301 bytes [17:54:56]NVStorageSaveData done [17:54:56]OFDSenderStorePacket done [17:54:56]KKMCreateOFDPacket done [17:54:56]NVStorageSaveData kkm_last_timestamp [17:54:56]File name is /storage/kkm_last_timestamp [17:54:56]Write 4 bytes [17:54:56]NVStorageSaveData done [17:54:56]ExternCall_PrintAddStr [17:54:56]wPrintStart [17:54:56]Write to MH i2c: 01 00 00 F1 06 F7 [17:54:56]Write i2c OK [17:54:56]MH_I2C_Read... [17:54:56]Read from MH i2c: 01 [17:54:56]MH_I2C_Read... [17:54:56]Read from MH i2c: 01 07 00 [17:54:56]MH_I2C_Read... [17:54:56]Read from MH i2c: 01 07 00 F1 06 00 00 00 00 00 FF 0F 0C [17:54:56]RasterBufferAndPrint [17:54:56]line Счет N : (1)673044 [17:54:56]line ИНН: 02508201610067 [17:54:56]line Контрольно-Кассовый Чек [17:54:56]line ПРОДАЖА [17:54:56]line ТРК (МРК, ГНК) : 42 [17:54:56]line Товар: 2710124130 [17:54:56]line Аи-92-К-5 [17:54:56]line 15.070 * 66.40 [17:54:56]line = 1000.65 [17:54:56]line НДС 12% НСП 1% [17:54:56]line > о реализуемом товаре [17:54:56]line ИТОГО: 1000.65 [17:54:56]line НСП 1% : 8.85 [17:54:56]line НДС 12% : 106.26 [17:54:56]line Наличными: 0.00 [17:54:56]line Безнал.: 1000.65 [17:54:56]line Место: АЗС № 120 "Партнер Нефть" [17:54:56]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [17:54:56]line СНО: Общий режим [17:54:56]line Чек 188 19.06.2024 17:54 [17:54:56]line Смена: 353 ФФД: 1.0 [17:54:56]line ЗНМ: 0300000164 [17:54:56]line РНМ: 0000000000092785 [17:54:56]line Версия ККМ: 001 [17:54:56]line Платежная система: Бакай Банк [17:54:56]line ФМ: 0000000000875093 [17:54:56]line ФД: 103758 [17:54:56]line ФПД: 229898368563150 [17:54:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T175455&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103758&fm=229898368563150&tin=02508201610067®Number=0000000000092785&sum=100065 [17:54:56]OFD Sender: Processing packet 103758 [packets to send 17, broken 16] [17:54:56]ProducePacketName [17:54:56]name=ofd_packets/00103758 [17:54:56]OFD Sender: To server: pG, [17:54:56]CommunicateWithHost lk.salyk.kg:30040 [17:54:56]ConnectInit lk.salyk.kg [17:54:56]written 0, free lines is 4095 [17:54:57]Connected sock=10 [17:54: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 39 33 0F 01 00 00 7E DB 07 01 1E 5F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E1 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E1 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 BC 00 00 00 F4 03 04 00 6F 1B 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 4E 95 01 00 35 04 06 00 D1 17 62 97 B7 CE 57 68 7E 90 FC 89 ED F2 [17:54: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 39 33 4F 00 00 00 28 D7 47 00 67 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 39 33 10 04 04 00 4E 95 01 00 F4 03 04 00 F7 C1 72 66 B6 04 01 00 00 BA 50 66 0E B0 C7 FB AF [17:54:57]CommunicateWithHost err = 0 [17:54:57]CheckOFDResponse [17:54:57]1017 (14) - 77093643461234 [17:54:57]1041 (16) - 0000000000875093 [17:54:57]1040 (4) - 103758 [17:54:57]1012 (4) - 19.06.2024 11:33 [17:54:57]1206 (1) - 0 [17:54:57]OFD Sender: Remove packet 103758 [17:54:57]ProducePacketName [17:54:57]name=ofd_packets/00103758 [17:54:57]NVStorageDeleteData [17:54:57]Write to MH i2c: 01 00 00 1B 07 22 [17:54:57]Write i2c OK [17:54:57]MH_I2C_Read... [17:54:57]Read from MH i2c: 01 [17:54:57]MH_I2C_Read... [17:54:57]Read from MH i2c: 01 07 00 [17:54:57]MH_I2C_Read... [17:54:57]Read from MH i2c: 01 07 00 1B 07 00 00 00 00 00 06 0D 3C [17:54:57]RasterBufferAndPrint [17:54:57]line [17:54:57]line [17:54:57]line [17:54:57]line [17:54:57]line [17:54:57]written 0, free lines is 3340 [17:54:57]MH_Cut [17:54:57]Write to MH i2c: D1 01 00 22 07 01 FB [17:54:57]Write i2c OK [17:54:57]MH_I2C_Read... [17:54:57]Read from MH i2c: D1 [17:54:57]MH_I2C_Read... [17:54:57]Read from MH i2c: D1 01 00 [17:54:57]MH_I2C_Read... [17:54:57]Read from MH i2c: D1 01 00 22 07 00 FA [17:54:57]Write to MH i2c: 01 00 00 23 07 2A [17:54:57]Write i2c OK [17:54:57]MH_I2C_Read... [17:54:57]OFD Sender: No OFD packet to send [17:54:58]*** Cut start [17:54:58]*** Partial cut [17:54:58]*** CUTSNS_PIN = 1 [17:54:58]*** CUTSNS_PIN = 0 [17:54:58]*** Brake cut motor [17:54:58]Read from MH i2c: 01 [17:54:58]MH_I2C_Read... [17:54:58]*** Stop cut motor [17:54:58]*** Cut end [17:54:58]Read from MH i2c: 01 07 00 [17:54:58]MH_I2C_Read... [17:54:58]Read from MH i2c: 01 07 00 23 07 00 00 00 00 00 FF 0F 3F [17:54:58]process_action close_receipt done [17:54:58]requested_data is exist [17:54:58]produce_requested_data [17:54:58]requested_item fm.sn is exist - process it [17:54:58]wFMCommunicate request_size=4 [17:54:58]MH_SAM_APDU [17:54:58]CAPDU: 80 11 00 00 [17:54:58]Write to MH i2c: E2 08 00 24 07 80 11 00 00 00 00 00 00 A5 [17:54:58]Write i2c OK [17:54:58]MH_I2C_Read... [17:54:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:54:58]Read from MH i2c: E2 [17:54:58]MH_I2C_Read... [17:54:58]Read from MH i2c: E2 17 00 [17:54:58]MH_I2C_Read... [17:54:58]Read from MH i2c: E2 17 00 24 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 F8 [17:54:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [17:54:58]wFMCommunicate OK [17:54:58]requested_item fd.num is exist - process it [17:54:58]SAM_PROTO_GetFieldsCounters [17:54:58]wFMCommunicate request_size=4 [17:54:58]MH_SAM_APDU [17:54:58]CAPDU: 80 13 00 00 [17:54:58]Write to MH i2c: E2 08 00 25 07 80 13 00 00 00 00 00 00 A8 [17:54:58]Write i2c OK [17:54:58]MH_I2C_Read... [17:54:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:54:58]Read from MH i2c: E2 [17:54:58]MH_I2C_Read... [17:54:58]Read from MH i2c: E2 62 00 [17:54:58]MH_I2C_Read... [17:54:58]Read from MH i2c: E2 62 00 25 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 4E 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 BC 00 00 00 5E 04 04 00 BC 00 00 00 57 04 04 00 BD 00 00 00 19 04 04 00 00 00 00 00 90 00 49 [17:54: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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 4E 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 BC 00 00 00 5E 04 04 00 BC 00 00 00 57 04 04 00 BD 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:54:58]wFMCommunicate OK [17:54:58]SAM_PROTO_GetFieldsCounters done [17:54:58]requested_item shift.num is exist - process it [17:54:58]requested_item shift.opened is exist - process it [17:54:58]req_shift_opened [17:54:58]FM_GetShiftState [17:54:58]SAM_PROTO_GetShiftState [17:54:58]wFMCommunicate request_size=4 [17:54:58]MH_SAM_APDU [17:54:58]CAPDU: 80 13 01 00 [17:54:58]Write to MH i2c: E2 08 00 26 07 80 13 01 00 00 00 00 00 AA [17:54:58]Write i2c OK [17:54:58]MH_I2C_Read... [17:54:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:54:58]Read from MH i2c: E2 [17:54:58]MH_I2C_Read... [17:54:58]Read from MH i2c: E2 0E 00 [17:54:58]MH_I2C_Read... [17:54:58]Read from MH i2c: E2 0E 00 26 07 00 09 00 01 04 26 72 66 00 00 00 00 90 00 B8 [17:54:58]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [17:54:58]wFMCommunicate OK [17:54:58]SAM_PROTO_GetShiftState done [17:54:58]FM_GetShiftState done [17:54:58]req_shift_opened done [17:54:58]requested_item shift.open_date is exist - process it [17:54:58]req_shift_open_date [17:54:58]req_shift_open_date done [17:54:58]produce_requested_data done [17:54:58]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103758,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [17:54:58]process_action_free close_receipt [17:54:58]json_value_free [17:54:58]json_value_free done [17:54:58]process_json_proto returns [17:54:58]Send response to host [17:54:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103758,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [17:54:58]free response buf [17:54:58]execute_script done [17:54:58]execute_script returns [17:54:58]free content buf [17:54:58]Sock 9.Close socket [17:54:58]Sock 9.Thread stoped [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:32]OFD Sender: No OFD packet to send [17:55:37]OFD Sender: No OFD packet to send [17:55:42]OFD Sender: No OFD packet to send [17:55:47]OFD Sender: No OFD packet to send [17:55:52]OFD Sender: No OFD packet to send [17:55:57]OFD Sender: No OFD packet to send [17:56:02]OFD Sender: No OFD packet to send [17:56:07]OFD Sender: No OFD packet to send [17:56:12]OFD Sender: No OFD packet to send [17:56:17]OFD Sender: No OFD packet to send [17:56:22]OFD Sender: No OFD packet to send [17:56:27]OFD Sender: No OFD packet to send [17:56:32]OFD Sender: No OFD packet to send [17:56:37]OFD Sender: No OFD packet to send [17:56:42]OFD Sender: No OFD packet to send [17:56:47]OFD Sender: No OFD packet to send [17:56:52]OFD Sender: No OFD packet to send [17:56:57]OFD Sender: No OFD packet to send [17:57:02]OFD Sender: No OFD packet to send [17:57:07]OFD Sender: No OFD packet to send [17:57:12]OFD Sender: No OFD packet to send [17:57:17]OFD Sender: No OFD packet to send [17:57:22]OFD Sender: No OFD packet to send [17:57:27]OFD Sender: No OFD packet to send [17:57:32]OFD Sender: No OFD packet to send [17:57:37]OFD Sender: No OFD packet to send [17:57:42]OFD Sender: No OFD packet to send [17:57:47]OFD Sender: No OFD packet to send [17:57:52]OFD Sender: No OFD packet to send [17:57:57]OFD Sender: No OFD packet to send [17:58:02]OFD Sender: No OFD packet to send [17:58:07]OFD Sender: No OFD packet to send [17:58:12]OFD Sender: No OFD packet to send [17:58:18]OFD Sender: No OFD packet to send [17:58:23]OFD Sender: No OFD packet to send [17:58:28]OFD Sender: No OFD packet to send [17:58:33]OFD Sender: No OFD packet to send [17:58:34]accept exits with 8 [17:58:34]New connection [17:58:34]New thread 3066940772 created [17:58:34]Thread 3066797412 joined [17:58:34]Waiting for new connection... [17:58:34] Sock 8.Parse request [17:58:34]Sock 8.Check first char [17:58:34]Sock 8.First char is OK [17:58:34]request: POST /json_proto HTTP/1.0 [17:58:34]Method: POST [17:58:34]URL: /json_proto [17:58:34]Method is POST - this is cgi request [17:58:34]url: /json_proto [17:58:34]query_string will be loaded in cgi processing [17:58:34]execute_cgi json_proto POST (null) [17:58:34]execute_cgi path=json_proto method=POST [17:58:34]POST find Content-Length [17:58:34]Host: 172.17.38.133:8080 [17:58:34]Content-Length: 682 [17:58:34]Content-Type: application/json [17:58:34] [17:58:34]POST finish read [17:58:34]Found Content-Length = 682 [17:58:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673045", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 27.070, "sum" : 2000.47, "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:58:34]execute_script... [17:58:34]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673045", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 27.070, "sum" : 2000.47, "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:58:34]POST & json_proto [17:58:34]process_json_proto [17:58:34]json parsed OK: [17:58:34]protocol is kg_v1.0 [17:58:34]action value=close_receipt [17:58:34]process_action close_receipt [17:58:34]cmd_close_receipt [17:58:34]MH_GetDate [17:58:34]Write to MH i2c: F0 00 00 27 07 1D [17:58:34]Write i2c OK [17:58:34]MH_I2C_Read... [17:58:34]Read from MH i2c: F0 [17:58:34]MH_I2C_Read... [17:58:34]Read from MH i2c: F0 09 00 [17:58:34]MH_I2C_Read... [17:58:34]Read from MH i2c: F0 09 00 27 07 00 4B 1C 73 66 BD 8F 7C 64 92 [17:58:34]GetLastDocTimeStamp 1718819695 [17:58:34]current date 1718819915 [17:58:34]FM_GetShiftState [17:58:34]SAM_PROTO_GetShiftState [17:58:34]wFMCommunicate request_size=4 [17:58:34]MH_SAM_APDU [17:58:34]CAPDU: 80 13 01 00 [17:58:34]Write to MH i2c: E2 08 00 28 07 80 13 01 00 00 00 00 00 AC [17:58:34]Write i2c OK [17:58:34]MH_I2C_Read... [17:58:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:58:34]Read from MH i2c: E2 [17:58:34]MH_I2C_Read... [17:58:34]Read from MH i2c: E2 0E 00 [17:58:34]MH_I2C_Read... [17:58:34]Read from MH i2c: E2 0E 00 28 07 00 09 00 01 04 26 72 66 00 00 00 00 90 00 BA [17:58:34]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [17:58:34]wFMCommunicate OK [17:58:34]SAM_PROTO_GetShiftState done [17:58:34]FM_GetShiftState done [17:58:34]opened in 1718756868 [17:58:34]opened+sec_in_day 1718843268 [17:58:34]quantity*price = 200047 [17:58:34]sum+1 = 200048 [17:58:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.47 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.44 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 189 19.06.2024 17:58 Смена: 353 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103759 ФПД: 277493161384817 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T175835&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103759&fm=277493161384817&tin=02508201610067®Number=0000000000092785&sum=200000 [17:58:36]StoreToDocumentArchive [17:58:36]shift 353 fd 103759 [17:58:36]save to /storage/0353/doc_00103759 [17:58:36]save last doc name /storage/0353/doc_00103759 to /storage/kkm_last_doc_name [17:58:36]save OK [17:58:36]Clear old archive folders... [17:58:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:58:36]tlvbuf is 01690FC0 [17:58:36]SAM_PROTO_ClearQueue [17:58:36]wFMCommunicate request_size=4 [17:58:36]MH_SAM_APDU [17:58:36]CAPDU: 80 09 00 00 [17:58:36]Write to MH i2c: E2 08 00 35 07 80 09 00 00 00 00 00 00 AE [17:58:36]Write i2c OK [17:58:36]MH_I2C_Read... [17:58:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:58:36]Read from MH i2c: E2 [17:58:36]MH_I2C_Read... [17:58:36]Read from MH i2c: E2 03 00 [17:58:36]MH_I2C_Read... [17:58:36]Read from MH i2c: E2 03 00 35 07 00 90 00 B0 [17:58:36]RAPDU: 90 00 [17:58:36]wFMCommunicate OK [17:58:36]SAM_PROTO_ClearQueue done [17:58:36]KKMCreateOFDPacket [17:58:36]OFDProtocolAddRootSTLVToBuf [17:58:36]FM_MakeSignedData [17:58:36]FM_MakeSignedData [17:58:36]SAM_PROTO_SignData [17:58:36]wFMCommunicate request_size=4 [17:58:36]MH_SAM_APDU [17:58:36]CAPDU: 80 0D 01 02 [17:58:36]Write to MH i2c: E2 08 00 36 07 80 0D 01 02 00 00 00 00 B6 [17:58:36]Write i2c OK [17:58:36]MH_I2C_Read... [17:58:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:58:36]Read from MH i2c: E2 [17:58:36]MH_I2C_Read... [17:58:36]Read from MH i2c: E2 03 00 [17:58:36]MH_I2C_Read... [17:58:36]Read from MH i2c: E2 03 00 36 07 00 90 00 B1 [17:58:36]RAPDU: 90 00 [17:58:36]wFMCommunicate OK [17:58:36]wFMCommunicate request_size=255 [17:58:36]MH_SAM_APDU [17:58:36]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 BE 69 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 6F 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 FC 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 BD 00 00 00 F4 03 04 00 4B 1C 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 4F 95 01 00 35 04 06 00 FC [17:58:36]Write to MH i2c: E2 02 01 37 07 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 BE 69 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 6F 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 FC 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 BD 00 00 00 F4 03 04 00 4B 1C 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 4F 95 01 00 35 04 06 00 FC 00 00 88 [17:58:36]Write i2c OK [17:58:36]MH_I2C_Read... [17:58:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:58:36]Read from MH i2c: E2 [17:58:36]MH_I2C_Read... [17:58:36]Read from MH i2c: E2 03 00 [17:58:36]MH_I2C_Read... [17:58:36]Read from MH i2c: E2 03 00 37 07 00 90 00 B2 [17:58:36]RAPDU: 90 00 [17:58:36]wFMCommunicate OK [17:58:36]wFMCommunicate request_size=10 [17:58:36]MH_SAM_APDU [17:58:36]CAPDU: 80 0D 02 02 05 60 E9 4F DB 71 [17:58:36]Write to MH i2c: E2 0D 00 38 07 80 0D 02 02 05 00 60 E9 4F DB 71 00 00 A7 [17:58:36]Write i2c OK [17:58:36]MH_I2C_Read... [17:58:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:58:36]Read from MH i2c: E2 [17:58:36]MH_I2C_Read... [17:58:36]Read from MH i2c: E2 03 00 [17:58:36]MH_I2C_Read... [17:58:36]Read from MH i2c: E2 03 00 38 07 00 90 00 B3 [17:58:36]RAPDU: 90 00 [17:58:36]wFMCommunicate OK [17:58:36]wFMCommunicate request_size=4 [17:58:36]MH_SAM_APDU [17:58:36]CAPDU: 80 0D 03 02 [17:58:36]Write to MH i2c: E2 08 00 39 07 80 0D 03 02 00 00 00 00 BB [17:58:36]Write i2c OK [17:58:36]MH_I2C_Read... [17:58:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:58:36]Read from MH i2c: E2 [17:58:36]MH_I2C_Read... [17:58:36]Read from MH i2c: E2 0B 00 [17:58:36]MH_I2C_Read... [17:58:36]Read from MH i2c: E2 0B 00 39 07 00 02 75 10 2B F4 5F C3 01 90 00 85 [17:58:36]RAPDU: 02 75 10 2B F4 5F C3 01 90 00 [17:58:36]wFMCommunicate OK [17:58:36]SAM_PROTO_SignData done [17:58:36]FM_MakeSignedData done [17:58:36]CreateOFDProtocolMessage [17:58:36]wFMCommunicate request_size=4 [17:58:36]MH_SAM_APDU [17:58:36]CAPDU: 80 11 00 00 [17:58:36]Write to MH i2c: E2 08 00 3A 07 80 11 00 00 00 00 00 00 BB [17:58:36]Write i2c OK [17:58:36]MH_I2C_Read... [17:58:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:58:36]Read from MH i2c: E2 [17:58:36]MH_I2C_Read... [17:58:36]Read from MH i2c: E2 17 00 [17:58:36]MH_I2C_Read... [17:58:36]Read from MH i2c: E2 17 00 3A 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 0E [17:58:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [17:58:36]wFMCommunicate OK [17:58:36]CreateOFDProtocolMessage done [17:58:36]OFDSenderStorePacket 103759 [17:58:36]StoreOFDPacket docnum=103759 [17:58:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 E1 C0 07 01 10 9E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 BE 69 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 6F 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 FC 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 BD 00 00 00 F4 03 04 00 4B 1C 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 4F 95 01 00 35 04 06 00 FC 60 E9 4F DB 71 02 75 10 2B F4 5F C3 01 [17:58:36]CheckFolder [17:58:36]dirname=/storage/ofd_packets [17:58:36]CheckFolder done [17:58:36]ProducePacketName [17:58:36]name=ofd_packets/00103759 [17:58:36]NVStorageSaveData ofd_packets/00103759 [17:58:36]File name is /storage/ofd_packets/00103759 [17:58:36]Write 301 bytes [17:58:36]NVStorageSaveData done [17:58:36]OFDSenderStorePacket done [17:58:36]KKMCreateOFDPacket done [17:58:36]NVStorageSaveData kkm_last_timestamp [17:58:36]File name is /storage/kkm_last_timestamp [17:58:36]Write 4 bytes [17:58:36]NVStorageSaveData done [17:58:36]ExternCall_PrintAddStr [17:58:36]wPrintStart [17:58:36]Write to MH i2c: 01 00 00 3B 07 42 [17:58:36]Write i2c OK [17:58:36]MH_I2C_Read... [17:58:36]Read from MH i2c: 01 [17:58:36]MH_I2C_Read... [17:58:36]Read from MH i2c: 01 07 00 [17:58:36]MH_I2C_Read... [17:58:36]Read from MH i2c: 01 07 00 3B 07 00 00 00 00 00 FF 0F 57 [17:58:36]RasterBufferAndPrint [17:58:36]line Счет N : (1)673045 [17:58:36]line ИНН: 02508201610067 [17:58:36]line Контрольно-Кассовый Чек [17:58:36]line ПРОДАЖА [17:58:36]line ТРК (МРК, ГНК) : 31 [17:58:36]line Товар: 2710124500 [17:58:36]line Аи-95-К-5 [17:58:36]line 27.070 * 73.90 [17:58:36]line = 2000.47 [17:58:36]line НДС 12% НСП 1% [17:58:36]line > о реализуемом товаре [17:58:36]line ОКРУГЛЕНИЕ: -0.47 [17:58:36]line ИТОГО: 2000.00 [17:58:36]line Внесено: 2000.00 [17:58:36]line СДАЧА: 0.00 [17:58:36]line НСП 1% : 17.70 [17:58:36]line НДС 12% : 212.44 [17:58:36]line Наличными: 2000.00 [17:58:36]line Безнал.: 0.00 [17:58:36]line Место: АЗС № 120 "Партнер Нефть" [17:58:36]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [17:58:36]line СНО: Общий режим [17:58:36]line Чек 189 19.06.2024 17:58 [17:58:36]line Смена: 353 ФФД: 1.0 [17:58:36]line ЗНМ: 0300000164 [17:58:36]line РНМ: 0000000000092785 [17:58:36]line Версия ККМ: 001 [17:58:36]line ФМ: 0000000000875093 [17:58:36]line ФД: 103759 [17:58:36]line ФПД: 277493161384817 [17:58:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T175835&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103759&fm=277493161384817&tin=02508201610067®Number=0000000000092785&sum=200000 [17:58:36]OFD Sender: Processing packet 103759 [packets to send 17, broken 16] [17:58:36]ProducePacketName [17:58:36]name=ofd_packets/00103759 [17:58:36]OFD Sender: To server: pG, [17:58:36]CommunicateWithHost lk.salyk.kg:30040 [17:58:36]ConnectInit lk.salyk.kg [17:58:36]written 0, free lines is 4095 [17:58:37]Connected sock=10 [17:58:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 E1 C0 07 01 10 9E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 BE 69 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 6F 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 FC 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 BD 00 00 00 F4 03 04 00 4B 1C 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 4F 95 01 00 35 04 06 00 FC 60 E9 4F DB 71 02 75 10 2B F4 5F C3 01 [17:58:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 F8 20 47 00 8C 56 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 4F 95 01 00 F4 03 04 00 D3 C2 72 66 B6 04 01 00 00 31 D5 63 AE BB BF B9 99 [17:58:37]CommunicateWithHost err = 0 [17:58:37]CheckOFDResponse [17:58:37]1017 (14) - 77093643461234 [17:58:37]1041 (16) - 0000000000875093 [17:58:37]1040 (4) - 103759 [17:58:37]1012 (4) - 19.06.2024 11:36 [17:58:37]1206 (1) - 0 [17:58:37]OFD Sender: Remove packet 103759 [17:58:37]ProducePacketName [17:58:37]name=ofd_packets/00103759 [17:58:37]NVStorageDeleteData [17:58:37]Write to MH i2c: 01 00 00 66 07 6D [17:58:37]Write i2c OK [17:58:37]MH_I2C_Read... [17:58:37]Read from MH i2c: 01 [17:58:37]MH_I2C_Read... [17:58:37]Read from MH i2c: 01 07 00 [17:58:37]MH_I2C_Read... [17:58:37]Read from MH i2c: 01 07 00 66 07 00 00 00 00 00 F4 0C 74 [17:58:37]RasterBufferAndPrint [17:58:37]line [17:58:37]line [17:58:37]line [17:58:37]line [17:58:37]line [17:58:37]written 0, free lines is 3323 [17:58:37]MH_Cut [17:58:37]Write to MH i2c: D1 01 00 6D 07 01 46 [17:58:37]Write i2c OK [17:58:37]MH_I2C_Read... [17:58:37]Read from MH i2c: D1 [17:58:37]MH_I2C_Read... [17:58:37]Read from MH i2c: D1 01 00 [17:58:37]MH_I2C_Read... [17:58:37]Read from MH i2c: D1 01 00 6D 07 00 45 [17:58:37]Write to MH i2c: 01 00 00 6E 07 75 [17:58:37]Write i2c OK [17:58:37]MH_I2C_Read... [17:58:37]OFD Sender: No OFD packet to send [17:58:38]*** Cut start [17:58:38]*** Partial cut [17:58:38]*** CUTSNS_PIN = 1 [17:58:38]*** CUTSNS_PIN = 0 [17:58:38]*** Brake cut motor [17:58:38]Read from MH i2c: 01 [17:58:38]MH_I2C_Read... [17:58:38]*** Stop cut motor [17:58:38]*** Cut end [17:58:38]Read from MH i2c: 01 07 00 [17:58:38]MH_I2C_Read... [17:58:38]Read from MH i2c: 01 07 00 6E 07 00 00 00 00 00 FF 0F 8A [17:58:38]process_action close_receipt done [17:58:38]requested_data is exist [17:58:38]produce_requested_data [17:58:38]requested_item fm.sn is exist - process it [17:58:38]wFMCommunicate request_size=4 [17:58:38]MH_SAM_APDU [17:58:38]CAPDU: 80 11 00 00 [17:58:38]Write to MH i2c: E2 08 00 6F 07 80 11 00 00 00 00 00 00 F0 [17:58:38]Write i2c OK [17:58:38]MH_I2C_Read... [17:58:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:58:38]Read from MH i2c: E2 [17:58:38]MH_I2C_Read... [17:58:38]Read from MH i2c: E2 17 00 [17:58:38]MH_I2C_Read... [17:58:38]Read from MH i2c: E2 17 00 6F 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 43 [17:58:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [17:58:38]wFMCommunicate OK [17:58:38]requested_item fd.num is exist - process it [17:58:38]SAM_PROTO_GetFieldsCounters [17:58:38]wFMCommunicate request_size=4 [17:58:38]MH_SAM_APDU [17:58:38]CAPDU: 80 13 00 00 [17:58:38]Write to MH i2c: E2 08 00 70 07 80 13 00 00 00 00 00 00 F3 [17:58:38]Write i2c OK [17:58:38]MH_I2C_Read... [17:58:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:58:38]Read from MH i2c: E2 [17:58:38]MH_I2C_Read... [17:58:38]Read from MH i2c: E2 62 00 [17:58:38]MH_I2C_Read... [17:58:38]Read from MH i2c: E2 62 00 70 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 4F 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 BD 00 00 00 5E 04 04 00 BD 00 00 00 57 04 04 00 BE 00 00 00 19 04 04 00 00 00 00 00 90 00 98 [17:58:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 4F 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 BD 00 00 00 5E 04 04 00 BD 00 00 00 57 04 04 00 BE 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:58:38]wFMCommunicate OK [17:58:38]SAM_PROTO_GetFieldsCounters done [17:58:38]requested_item shift.num is exist - process it [17:58:38]requested_item shift.opened is exist - process it [17:58:38]req_shift_opened [17:58:38]FM_GetShiftState [17:58:38]SAM_PROTO_GetShiftState [17:58:38]wFMCommunicate request_size=4 [17:58:38]MH_SAM_APDU [17:58:38]CAPDU: 80 13 01 00 [17:58:38]Write to MH i2c: E2 08 00 71 07 80 13 01 00 00 00 00 00 F5 [17:58:38]Write i2c OK [17:58:38]MH_I2C_Read... [17:58:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:58:38]Read from MH i2c: E2 [17:58:38]MH_I2C_Read... [17:58:38]Read from MH i2c: E2 0E 00 [17:58:38]MH_I2C_Read... [17:58:38]Read from MH i2c: E2 0E 00 71 07 00 09 00 01 04 26 72 66 00 00 00 00 90 00 03 [17:58:38]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [17:58:38]wFMCommunicate OK [17:58:38]SAM_PROTO_GetShiftState done [17:58:38]FM_GetShiftState done [17:58:38]req_shift_opened done [17:58:38]requested_item shift.open_date is exist - process it [17:58:38]req_shift_open_date [17:58:38]req_shift_open_date done [17:58:38]produce_requested_data done [17:58:38]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103759,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [17:58:38]process_action_free close_receipt [17:58:38]json_value_free [17:58:38]json_value_free done [17:58:38]process_json_proto returns [17:58:38]Send response to host [17:58:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103759,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [17:58:38]free response buf [17:58:38]execute_script done [17:58:38]execute_script returns [17:58:38]free content buf [17:58:38]Sock 8.Close socket [17:58:38]Sock 8.Thread stoped [17:58:42]OFD Sender: No OFD packet to send [17:58:47]OFD Sender: No OFD packet to send [17:58:52]OFD Sender: No OFD packet to send [17:58:57]OFD Sender: No OFD packet to send [17:59:02]OFD Sender: No OFD packet to send [17:59:07]OFD Sender: No OFD packet to send [17:59:12]OFD Sender: No OFD packet to send [17:59:17]OFD Sender: No OFD packet to send [17:59:22]OFD Sender: No OFD packet to send [17:59:27]OFD Sender: No OFD packet to send [17:59:32]OFD Sender: No OFD packet to send [17:59:37]OFD Sender: No OFD packet to send [17:59:42]OFD Sender: No OFD packet to send [17:59:47]OFD Sender: No OFD packet to send [17:59:52]OFD Sender: No OFD packet to send [17:59:57]OFD Sender: No OFD packet to send [18:00:02]OFD Sender: No OFD packet to send [18:00:07]OFD Sender: No OFD packet to send [18:00:11]accept exits with 9 [18:00:11]New connection [18:00:11]New thread 3066797412 created [18:00:11]Thread 3066940772 joined [18:00:11]Waiting for new connection... [18:00:11] Sock 9.Parse request [18:00:11]Sock 9.Check first char [18:00:11]Sock 9.First char is OK [18:00:11]request: POST /json_proto HTTP/1.0 [18:00:11]Method: POST [18:00:11]URL: /json_proto [18:00:11]Method is POST - this is cgi request [18:00:11]url: /json_proto [18:00:11]query_string will be loaded in cgi processing [18:00:11]execute_cgi json_proto POST (null) [18:00:11]execute_cgi path=json_proto method=POST [18:00:11]POST find Content-Length [18:00:11]Host: 172.17.38.133:8080 [18:00:11]Content-Length: 642 [18:00:11]Content-Type: application/json [18:00:11] [18:00:11]POST finish read [18:00:11]Found Content-Length = 642 [18:00:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673046", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 20.000, "sum" : 1328.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 1328.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:00:11]execute_script... [18:00: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)673046", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 20.000, "sum" : 1328.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 1328.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:00:11]POST & json_proto [18:00:11]process_json_proto [18:00:11]json parsed OK: [18:00:11]protocol is kg_v1.0 [18:00:11]action value=close_receipt [18:00:11]process_action close_receipt [18:00:11]cmd_close_receipt [18:00:11]MH_GetDate [18:00:11]Write to MH i2c: F0 00 00 72 07 68 [18:00:11]Write i2c OK [18:00:11]MH_I2C_Read... [18:00:11]Read from MH i2c: F0 [18:00:11]MH_I2C_Read... [18:00:11]Read from MH i2c: F0 09 00 [18:00:11]MH_I2C_Read... [18:00:11]Read from MH i2c: F0 09 00 72 07 00 AC 1C 73 66 BD 8F 7C 64 3E [18:00:11]GetLastDocTimeStamp 1718819915 [18:00:11]current date 1718820012 [18:00:11]FM_GetShiftState [18:00:11]SAM_PROTO_GetShiftState [18:00:11]wFMCommunicate request_size=4 [18:00:11]MH_SAM_APDU [18:00:11]CAPDU: 80 13 01 00 [18:00:11]Write to MH i2c: E2 08 00 73 07 80 13 01 00 00 00 00 00 F7 [18:00:11]Write i2c OK [18:00:11]MH_I2C_Read... [18:00:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:00:11]Read from MH i2c: E2 [18:00:11]MH_I2C_Read... [18:00:11]Read from MH i2c: E2 0E 00 [18:00:11]MH_I2C_Read... [18:00:11]Read from MH i2c: E2 0E 00 73 07 00 09 00 01 04 26 72 66 00 00 00 00 90 00 05 [18:00:11]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [18:00:11]wFMCommunicate OK [18:00:11]SAM_PROTO_GetShiftState done [18:00:11]FM_GetShiftState done [18:00:11]opened in 1718756868 [18:00:11]opened+sec_in_day 1718843268 [18:00:11]quantity*price = 132800 [18:00:11]sum+1 = 132801 [18:00:11]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1328.00 НСП 1% : 11.75 НДС 12% : 141.03 Наличными: 1328.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 190 19.06.2024 18:00 Смена: 353 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103760 ФПД: 272896819728539 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T180012&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103760&fm=272896819728539&tin=02508201610067®Number=0000000000092785&sum=132800 [18:00:13]StoreToDocumentArchive [18:00:13]shift 353 fd 103760 [18:00:13]save to /storage/0353/doc_00103760 [18:00:13]save last doc name /storage/0353/doc_00103760 to /storage/kkm_last_doc_name [18:00:13]save OK [18:00:13]Clear old archive folders... [18:00:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:00:13]tlvbuf is 016B9F40 [18:00:13]SAM_PROTO_ClearQueue [18:00:13]wFMCommunicate request_size=4 [18:00:13]MH_SAM_APDU [18:00:13]CAPDU: 80 09 00 00 [18:00:13]Write to MH i2c: E2 08 00 80 07 80 09 00 00 00 00 00 00 F9 [18:00:13]Write i2c OK [18:00:13]MH_I2C_Read... [18:00:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:00:13]Read from MH i2c: E2 [18:00:13]MH_I2C_Read... [18:00:13]Read from MH i2c: E2 03 00 [18:00:13]MH_I2C_Read... [18:00:13]Read from MH i2c: E2 03 00 80 07 00 90 00 FB [18:00:13]RAPDU: 90 00 [18:00:13]wFMCommunicate OK [18:00:13]SAM_PROTO_ClearQueue done [18:00:13]KKMCreateOFDPacket [18:00:13]OFDProtocolAddRootSTLVToBuf [18:00:13]FM_MakeSignedData [18:00:13]FM_MakeSignedData [18:00:13]SAM_PROTO_SignData [18:00:13]wFMCommunicate request_size=4 [18:00:13]MH_SAM_APDU [18:00:13]CAPDU: 80 0D 01 02 [18:00:13]Write to MH i2c: E2 08 00 81 07 80 0D 01 02 00 00 00 00 01 [18:00:13]Write i2c OK [18:00:13]MH_I2C_Read... [18:00:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:00:13]Read from MH i2c: E2 [18:00:13]MH_I2C_Read... [18:00:13]Read from MH i2c: E2 03 00 [18:00:13]MH_I2C_Read... [18:00:13]Read from MH i2c: E2 03 00 81 07 00 90 00 FC [18:00:13]RAPDU: 90 00 [18:00:13]wFMCommunicate OK [18:00:13]wFMCommunicate request_size=255 [18:00:13]MH_SAM_APDU [18:00: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 20 4E 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 C0 06 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 06 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 97 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 17 37 00 00 00 00 07 04 06 00 C0 06 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BE 00 00 00 F4 03 04 00 AC 1C 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 50 95 01 00 35 04 06 00 F8 [18:00:13]Write to MH i2c: E2 02 01 82 07 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 C0 06 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 06 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 97 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 17 37 00 00 00 00 07 04 06 00 C0 06 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BE 00 00 00 F4 03 04 00 AC 1C 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 50 95 01 00 35 04 06 00 F8 00 00 68 [18:00:13]Write i2c OK [18:00:13]MH_I2C_Read... [18:00:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:00:13]Read from MH i2c: E2 [18:00:13]MH_I2C_Read... [18:00:13]Read from MH i2c: E2 03 00 [18:00:13]MH_I2C_Read... [18:00:13]Read from MH i2c: E2 03 00 82 07 00 90 00 FD [18:00:13]RAPDU: 90 00 [18:00:13]wFMCommunicate OK [18:00:13]wFMCommunicate request_size=10 [18:00:13]MH_SAM_APDU [18:00:13]CAPDU: 80 0D 02 02 05 32 BE 00 10 9B [18:00:13]Write to MH i2c: E2 0D 00 83 07 80 0D 02 02 05 00 32 BE 00 10 9B 00 00 A9 [18:00:13]Write i2c OK [18:00:13]MH_I2C_Read... [18:00:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:00:13]Read from MH i2c: E2 [18:00:13]MH_I2C_Read... [18:00:13]Read from MH i2c: E2 03 00 [18:00:13]MH_I2C_Read... [18:00:13]Read from MH i2c: E2 03 00 83 07 00 90 00 FE [18:00:13]RAPDU: 90 00 [18:00:13]wFMCommunicate OK [18:00:13]wFMCommunicate request_size=4 [18:00:13]MH_SAM_APDU [18:00:13]CAPDU: 80 0D 03 02 [18:00:13]Write to MH i2c: E2 08 00 84 07 80 0D 03 02 00 00 00 00 06 [18:00:13]Write i2c OK [18:00:13]MH_I2C_Read... [18:00:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:00:13]Read from MH i2c: E2 [18:00:13]MH_I2C_Read... [18:00:13]Read from MH i2c: E2 0B 00 [18:00:13]MH_I2C_Read... [18:00:13]Read from MH i2c: E2 0B 00 84 07 00 DF 62 3F 03 31 D5 79 22 90 00 2B [18:00:13]RAPDU: DF 62 3F 03 31 D5 79 22 90 00 [18:00:13]wFMCommunicate OK [18:00:13]SAM_PROTO_SignData done [18:00:13]FM_MakeSignedData done [18:00:13]CreateOFDProtocolMessage [18:00:13]wFMCommunicate request_size=4 [18:00:13]MH_SAM_APDU [18:00:13]CAPDU: 80 11 00 00 [18:00:13]Write to MH i2c: E2 08 00 85 07 80 11 00 00 00 00 00 00 06 [18:00:13]Write i2c OK [18:00:13]MH_I2C_Read... [18:00:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:00:13]Read from MH i2c: E2 [18:00:13]MH_I2C_Read... [18:00:13]Read from MH i2c: E2 17 00 [18:00:13]MH_I2C_Read... [18:00:13]Read from MH i2c: E2 17 00 85 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 59 [18:00:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [18:00:13]wFMCommunicate OK [18:00:13]CreateOFDProtocolMessage done [18:00:13]OFDSenderStorePacket 103760 [18:00:13]StoreOFDPacket docnum=103760 [18:00:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 12 F5 07 01 A8 F3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 C0 06 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 06 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 97 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 17 37 00 00 00 00 07 04 06 00 C0 06 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BE 00 00 00 F4 03 04 00 AC 1C 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 50 95 01 00 35 04 06 00 F8 32 BE 00 10 9B DF 62 3F 03 31 D5 79 22 [18:00:13]CheckFolder [18:00:13]dirname=/storage/ofd_packets [18:00:13]CheckFolder done [18:00:13]ProducePacketName [18:00:13]name=ofd_packets/00103760 [18:00:13]NVStorageSaveData ofd_packets/00103760 [18:00:13]File name is /storage/ofd_packets/00103760 [18:00:13]Write 301 bytes [18:00:13]NVStorageSaveData done [18:00:13]OFDSenderStorePacket done [18:00:13]KKMCreateOFDPacket done [18:00:13]NVStorageSaveData kkm_last_timestamp [18:00:13]File name is /storage/kkm_last_timestamp [18:00:13]Write 4 bytes [18:00:13]NVStorageSaveData done [18:00:13]ExternCall_PrintAddStr [18:00:13]wPrintStart [18:00:13]Write to MH i2c: 01 00 00 86 07 8D [18:00:13]Write i2c OK [18:00:13]MH_I2C_Read... [18:00:13]Read from MH i2c: 01 [18:00:13]MH_I2C_Read... [18:00:13]Read from MH i2c: 01 07 00 [18:00:13]MH_I2C_Read... [18:00:13]Read from MH i2c: 01 07 00 86 07 00 00 00 00 00 FF 0F A2 [18:00:13]RasterBufferAndPrint [18:00:13]line Счет N : (1)673046 [18:00:13]line ИНН: 02508201610067 [18:00:13]line Контрольно-Кассовый Чек [18:00:13]line ПРОДАЖА [18:00:13]line ТРК (МРК, ГНК) : 32 [18:00:13]line Товар: 2710124130 [18:00:13]line Аи-92-К-5 [18:00:13]line 20.000 * 66.40 [18:00:13]line = 1328.00 [18:00:13]line НДС 12% НСП 1% [18:00:13]line > о реализуемом товаре [18:00:13]line ИТОГО: 1328.00 [18:00:13]line НСП 1% : 11.75 [18:00:13]line НДС 12% : 141.03 [18:00:13]line Наличными: 1328.00 [18:00:13]line Безнал.: 0.00 [18:00:13]line Место: АЗС № 120 "Партнер Нефть" [18:00:13]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [18:00:13]line СНО: Общий режим [18:00:13]line Чек 190 19.06.2024 18:00 [18:00:13]line Смена: 353 ФФД: 1.0 [18:00:13]line ЗНМ: 0300000164 [18:00:13]line РНМ: 0000000000092785 [18:00:13]line Версия ККМ: 001 [18:00:13]line ФМ: 0000000000875093 [18:00:13]line ФД: 103760 [18:00:13]line ФПД: 272896819728539 [18:00:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T180012&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103760&fm=272896819728539&tin=02508201610067®Number=0000000000092785&sum=132800 [18:00:13]OFD Sender: Processing packet 103760 [packets to send 17, broken 16] [18:00:13]ProducePacketName [18:00:13]name=ofd_packets/00103760 [18:00:13]OFD Sender: To server: pG, [18:00:13]CommunicateWithHost lk.salyk.kg:30040 [18:00:13]ConnectInit lk.salyk.kg [18:00:13]written 0, free lines is 4095 [18:00:14]Connected sock=10 [18:00: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 39 33 0F 01 00 00 12 F5 07 01 A8 F3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 C0 06 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 06 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 97 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 17 37 00 00 00 00 07 04 06 00 C0 06 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BE 00 00 00 F4 03 04 00 AC 1C 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 50 95 01 00 35 04 06 00 F8 32 BE 00 10 9B DF 62 3F 03 31 D5 79 22 [18:00: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 39 33 4F 00 00 00 80 0D 47 00 BD 79 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 50 95 01 00 F4 03 04 00 34 C3 72 66 B6 04 01 00 00 43 AF 67 B9 BB CD 09 CD [18:00:14]CommunicateWithHost err = 0 [18:00:14]CheckOFDResponse [18:00:14]1017 (14) - 77093643461234 [18:00:14]1041 (16) - 0000000000875093 [18:00:14]1040 (4) - 103760 [18:00:14]1012 (4) - 19.06.2024 11:38 [18:00:14]1206 (1) - 0 [18:00:14]OFD Sender: Remove packet 103760 [18:00:14]ProducePacketName [18:00:14]name=ofd_packets/00103760 [18:00:14]NVStorageDeleteData [18:00:14]Write to MH i2c: 01 00 00 AE 07 B5 [18:00:14]Write i2c OK [18:00:14]MH_I2C_Read... [18:00:14]Read from MH i2c: 01 [18:00:14]MH_I2C_Read... [18:00:14]Read from MH i2c: 01 07 00 [18:00:14]MH_I2C_Read... [18:00:14]Read from MH i2c: 01 07 00 AE 07 00 00 00 00 00 13 0D DC [18:00:14]RasterBufferAndPrint [18:00:14]line [18:00:14]line [18:00:14]line [18:00:14]line [18:00:14]line [18:00:14]written 0, free lines is 3354 [18:00:14]MH_Cut [18:00:14]Write to MH i2c: D1 01 00 B5 07 01 8E [18:00:14]Write i2c OK [18:00:14]MH_I2C_Read... [18:00:14]Read from MH i2c: D1 [18:00:14]MH_I2C_Read... [18:00:14]Read from MH i2c: D1 01 00 [18:00:14]MH_I2C_Read... [18:00:14]Read from MH i2c: D1 01 00 B5 07 00 8D [18:00:14]Write to MH i2c: 01 00 00 B6 07 BD [18:00:14]Write i2c OK [18:00:14]MH_I2C_Read... [18:00:14]OFD Sender: No OFD packet to send [18:00:15]*** Cut start [18:00:15]*** Partial cut [18:00:15]*** CUTSNS_PIN = 1 [18:00:15]*** CUTSNS_PIN = 0 [18:00:15]*** Brake cut motor [18:00:15]Read from MH i2c: 01 [18:00:15]MH_I2C_Read... [18:00:15]*** Stop cut motor [18:00:15]*** Cut end [18:00:15]Read from MH i2c: 01 07 00 [18:00:15]MH_I2C_Read... [18:00:15]Read from MH i2c: 01 07 00 B6 07 00 00 00 00 00 FF 0F D2 [18:00:15]process_action close_receipt done [18:00:15]requested_data is exist [18:00:15]produce_requested_data [18:00:15]requested_item fm.sn is exist - process it [18:00:15]wFMCommunicate request_size=4 [18:00:15]MH_SAM_APDU [18:00:15]CAPDU: 80 11 00 00 [18:00:15]Write to MH i2c: E2 08 00 B7 07 80 11 00 00 00 00 00 00 38 [18:00:15]Write i2c OK [18:00:15]MH_I2C_Read... [18:00:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:00:15]Read from MH i2c: E2 [18:00:15]MH_I2C_Read... [18:00:15]Read from MH i2c: E2 17 00 [18:00:15]MH_I2C_Read... [18:00:15]Read from MH i2c: E2 17 00 B7 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 8B [18:00:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [18:00:15]wFMCommunicate OK [18:00:15]requested_item fd.num is exist - process it [18:00:15]SAM_PROTO_GetFieldsCounters [18:00:15]wFMCommunicate request_size=4 [18:00:15]MH_SAM_APDU [18:00:15]CAPDU: 80 13 00 00 [18:00:15]Write to MH i2c: E2 08 00 B8 07 80 13 00 00 00 00 00 00 3B [18:00:15]Write i2c OK [18:00:15]MH_I2C_Read... [18:00:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:00:15]Read from MH i2c: E2 [18:00:15]MH_I2C_Read... [18:00:15]Read from MH i2c: E2 62 00 [18:00:15]MH_I2C_Read... [18:00:15]Read from MH i2c: E2 62 00 B8 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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 50 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 BE 00 00 00 5E 04 04 00 BE 00 00 00 57 04 04 00 BF 00 00 00 19 04 04 00 00 00 00 00 90 00 E4 [18: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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 50 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 BE 00 00 00 5E 04 04 00 BE 00 00 00 57 04 04 00 BF 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:00:15]wFMCommunicate OK [18:00:15]SAM_PROTO_GetFieldsCounters done [18:00:15]requested_item shift.num is exist - process it [18:00:15]requested_item shift.opened is exist - process it [18:00:15]req_shift_opened [18:00:15]FM_GetShiftState [18:00:15]SAM_PROTO_GetShiftState [18:00:15]wFMCommunicate request_size=4 [18:00:15]MH_SAM_APDU [18:00:15]CAPDU: 80 13 01 00 [18:00:15]Write to MH i2c: E2 08 00 B9 07 80 13 01 00 00 00 00 00 3D [18:00:15]Write i2c OK [18:00:15]MH_I2C_Read... [18:00:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:00:15]Read from MH i2c: E2 [18:00:15]MH_I2C_Read... [18:00:15]Read from MH i2c: E2 0E 00 [18:00:15]MH_I2C_Read... [18:00:15]Read from MH i2c: E2 0E 00 B9 07 00 09 00 01 04 26 72 66 00 00 00 00 90 00 4B [18:00:15]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [18:00:15]wFMCommunicate OK [18:00:15]SAM_PROTO_GetShiftState done [18:00:15]FM_GetShiftState done [18:00:15]req_shift_opened done [18:00:15]requested_item shift.open_date is exist - process it [18:00:15]req_shift_open_date [18:00:15]req_shift_open_date done [18:00:15]produce_requested_data done [18:00:15]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103760,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [18:00:15]process_action_free close_receipt [18:00:15]json_value_free [18:00:15]json_value_free done [18:00:15]process_json_proto returns [18:00:15]Send response to host [18:00:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103760,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [18:00:15]free response buf [18:00:15]execute_script done [18:00:15]execute_script returns [18:00:15]free content buf [18:00:15]Sock 9.Close socket [18:00:15]Sock 9.Thread stoped [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:14]OFD Sender: No OFD packet to send [18:01:19]OFD Sender: No OFD packet to send [18:01:24]OFD Sender: No OFD packet to send [18:01:29]OFD Sender: No OFD packet to send [18:01:34]OFD Sender: No OFD packet to send [18:01:39]OFD Sender: No OFD packet to send [18:01:44]OFD Sender: No OFD packet to send [18:01:49]OFD Sender: No OFD packet to send [18:01:54]OFD Sender: No OFD packet to send [18:01:59]OFD Sender: No OFD packet to send [18:02:04]OFD Sender: No OFD packet to send [18:02:09]OFD Sender: No OFD packet to send [18:02:14]OFD Sender: No OFD packet to send [18:02:19]OFD Sender: No OFD packet to send [18:02:24]OFD Sender: No OFD packet to send [18:02:29]OFD Sender: No OFD packet to send [18:02:34]OFD Sender: No OFD packet to send [18:02:39]OFD Sender: No OFD packet to send [18:02:44]OFD Sender: No OFD packet to send [18:02:49]OFD Sender: No OFD packet to send [18:02:54]OFD Sender: No OFD packet to send [18:02:59]OFD Sender: No OFD packet to send [18:03:04]OFD Sender: No OFD packet to send [18:03:09]OFD Sender: No OFD packet to send [18:03:14]OFD Sender: No OFD packet to send [18:03:19]OFD Sender: No OFD packet to send [18:03:24]OFD Sender: No OFD packet to send [18:03:29]OFD Sender: No OFD packet to send [18:03:34]OFD Sender: No OFD packet to send [18:03:39]OFD Sender: No OFD packet to send [18:03:44]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]OFD Sender: No OFD packet to send [18:08:20]OFD Sender: No OFD packet to send [18:08:25]OFD Sender: No OFD packet to send [18:08:25]accept exits with 8 [18:08:25]New connection [18:08:25]New thread 3066940772 created [18:08:25]Thread 3066797412 joined [18:08:25]Waiting for new connection... [18:08:25] Sock 8.Parse request [18:08:25]Sock 8.Check first char [18:08:25]Sock 8.First char is OK [18:08:25]request: POST /json_proto HTTP/1.0 [18:08:25]Method: POST [18:08:25]URL: /json_proto [18:08:25]Method is POST - this is cgi request [18:08:25]url: /json_proto [18:08:25]query_string will be loaded in cgi processing [18:08:25]execute_cgi json_proto POST (null) [18:08:25]execute_cgi path=json_proto method=POST [18:08:25]POST find Content-Length [18:08:25]Host: 172.17.38.133:8080 [18:08:25]Content-Length: 682 [18:08:25]Content-Type: application/json [18:08:25] [18:08:25]POST finish read [18:08:25]Found Content-Length = 682 [18:08:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673047", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:08:25]execute_script... [18:08: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)673047", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:08:25]POST & json_proto [18:08:25]process_json_proto [18:08:25]json parsed OK: [18:08:25]protocol is kg_v1.0 [18:08:25]action value=close_receipt [18:08:25]process_action close_receipt [18:08:25]cmd_close_receipt [18:08:25]MH_GetDate [18:08:25]Write to MH i2c: F0 00 00 BA 07 B0 [18:08:25]Write i2c OK [18:08:25]MH_I2C_Read... [18:08:25]Read from MH i2c: F0 [18:08:25]MH_I2C_Read... [18:08:25]Read from MH i2c: F0 09 00 [18:08:25]MH_I2C_Read... [18:08:25]Read from MH i2c: F0 09 00 BA 07 00 9A 1E 73 66 BD 8F 7C 64 76 [18:08:25]GetLastDocTimeStamp 1718820012 [18:08:25]current date 1718820506 [18:08:25]FM_GetShiftState [18:08:25]SAM_PROTO_GetShiftState [18:08:25]wFMCommunicate request_size=4 [18:08:25]MH_SAM_APDU [18:08:25]CAPDU: 80 13 01 00 [18:08:25]Write to MH i2c: E2 08 00 BB 07 80 13 01 00 00 00 00 00 3F [18:08:25]Write i2c OK [18:08:25]MH_I2C_Read... [18:08:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:08:25]Read from MH i2c: E2 [18:08:25]MH_I2C_Read... [18:08:25]Read from MH i2c: E2 0E 00 [18:08:25]MH_I2C_Read... [18:08:25]Read from MH i2c: E2 0E 00 BB 07 00 09 00 01 04 26 72 66 00 00 00 00 90 00 4D [18:08:25]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [18:08:25]wFMCommunicate OK [18:08:25]SAM_PROTO_GetShiftState done [18:08:25]FM_GetShiftState done [18:08:25]opened in 1718756868 [18:08:25]opened+sec_in_day 1718843268 [18:08:25]quantity*price = 100064 [18:08:25]sum+1 = 100066 [18:08:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.65 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 191 19.06.2024 18:08 Смена: 353 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103761 ФПД: 32442448481102 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T180826&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103761&fm=32442448481102&tin=02508201610067®Number=0000000000092785&sum=100000 [18:08:26]StoreToDocumentArchive [18:08:26]shift 353 fd 103761 [18:08:26]save to /storage/0353/doc_00103761 [18:08:26]save last doc name /storage/0353/doc_00103761 to /storage/kkm_last_doc_name [18:08:26]save OK [18:08:26]Clear old archive folders... [18:08:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:08:26]tlvbuf is 016B9B90 [18:08:26]SAM_PROTO_ClearQueue [18:08:26]wFMCommunicate request_size=4 [18:08:26]MH_SAM_APDU [18:08:26]CAPDU: 80 09 00 00 [18:08:26]Write to MH i2c: E2 08 00 C8 07 80 09 00 00 00 00 00 00 41 [18:08:26]Write i2c OK [18:08:26]MH_I2C_Read... [18:08:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:08:27]Read from MH i2c: E2 [18:08:27]MH_I2C_Read... [18:08:27]Read from MH i2c: E2 03 00 [18:08:27]MH_I2C_Read... [18:08:27]Read from MH i2c: E2 03 00 C8 07 00 90 00 43 [18:08:27]RAPDU: 90 00 [18:08:27]wFMCommunicate OK [18:08:27]SAM_PROTO_ClearQueue done [18:08:27]KKMCreateOFDPacket [18:08:27]OFDProtocolAddRootSTLVToBuf [18:08:27]FM_MakeSignedData [18:08:27]FM_MakeSignedData [18:08:27]SAM_PROTO_SignData [18:08:27]wFMCommunicate request_size=4 [18:08:27]MH_SAM_APDU [18:08:27]CAPDU: 80 0D 01 02 [18:08:27]Write to MH i2c: E2 08 00 C9 07 80 0D 01 02 00 00 00 00 49 [18:08:27]Write i2c OK [18:08:27]MH_I2C_Read... [18:08:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:08:27]Read from MH i2c: E2 [18:08:27]MH_I2C_Read... [18:08:27]Read from MH i2c: E2 03 00 [18:08:27]MH_I2C_Read... [18:08:27]Read from MH i2c: E2 03 00 C9 07 00 90 00 44 [18:08:27]RAPDU: 90 00 [18:08:27]wFMCommunicate OK [18:08:27]wFMCommunicate request_size=255 [18:08:27]MH_SAM_APDU [18:08:27]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BF 00 00 00 F4 03 04 00 9A 1E 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 51 95 01 00 35 04 06 00 1D [18:08:27]Write to MH i2c: E2 02 01 CA 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BF 00 00 00 F4 03 04 00 9A 1E 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 51 95 01 00 35 04 06 00 1D 00 00 09 [18:08:27]Write i2c OK [18:08:27]MH_I2C_Read... [18:08:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:08:27]Read from MH i2c: E2 [18:08:27]MH_I2C_Read... [18:08:27]Read from MH i2c: E2 03 00 [18:08:27]MH_I2C_Read... [18:08:27]Read from MH i2c: E2 03 00 CA 07 00 90 00 45 [18:08:27]RAPDU: 90 00 [18:08:27]wFMCommunicate OK [18:08:27]wFMCommunicate request_size=10 [18:08:27]MH_SAM_APDU [18:08:27]CAPDU: 80 0D 02 02 05 81 98 9E 0B 4E [18:08:27]Write to MH i2c: E2 0D 00 CB 07 80 0D 02 02 05 00 81 98 9E 0B 4E 00 00 66 [18:08:27]Write i2c OK [18:08:27]MH_I2C_Read... [18:08:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:08:27]Read from MH i2c: E2 [18:08:27]MH_I2C_Read... [18:08:27]Read from MH i2c: E2 03 00 [18:08:27]MH_I2C_Read... [18:08:27]Read from MH i2c: E2 03 00 CB 07 00 90 00 46 [18:08:27]RAPDU: 90 00 [18:08:27]wFMCommunicate OK [18:08:27]wFMCommunicate request_size=4 [18:08:27]MH_SAM_APDU [18:08:27]CAPDU: 80 0D 03 02 [18:08:27]Write to MH i2c: E2 08 00 CC 07 80 0D 03 02 00 00 00 00 4E [18:08:27]Write i2c OK [18:08:27]MH_I2C_Read... [18:08:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:08:27]Read from MH i2c: E2 [18:08:27]MH_I2C_Read... [18:08:27]Read from MH i2c: E2 0B 00 [18:08:27]MH_I2C_Read... [18:08:27]Read from MH i2c: E2 0B 00 CC 07 00 5F 53 74 41 9C 84 11 01 90 00 E8 [18:08:27]RAPDU: 5F 53 74 41 9C 84 11 01 90 00 [18:08:27]wFMCommunicate OK [18:08:27]SAM_PROTO_SignData done [18:08:27]FM_MakeSignedData done [18:08:27]CreateOFDProtocolMessage [18:08:27]wFMCommunicate request_size=4 [18:08:27]MH_SAM_APDU [18:08:27]CAPDU: 80 11 00 00 [18:08:27]Write to MH i2c: E2 08 00 CD 07 80 11 00 00 00 00 00 00 4E [18:08:27]Write i2c OK [18:08:27]MH_I2C_Read... [18:08:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:08:27]Read from MH i2c: E2 [18:08:27]MH_I2C_Read... [18:08:27]Read from MH i2c: E2 17 00 [18:08:27]MH_I2C_Read... [18:08:27]Read from MH i2c: E2 17 00 CD 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 A1 [18:08:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [18:08:27]wFMCommunicate OK [18:08:27]CreateOFDProtocolMessage done [18:08:27]OFDSenderStorePacket 103761 [18:08:27]StoreOFDPacket docnum=103761 [18:08:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 11 4D 07 01 06 14 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BF 00 00 00 F4 03 04 00 9A 1E 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 51 95 01 00 35 04 06 00 1D 81 98 9E 0B 4E 5F 53 74 41 9C 84 11 01 [18:08:27]CheckFolder [18:08:27]dirname=/storage/ofd_packets [18:08:27]CheckFolder done [18:08:27]ProducePacketName [18:08:27]name=ofd_packets/00103761 [18:08:27]NVStorageSaveData ofd_packets/00103761 [18:08:27]File name is /storage/ofd_packets/00103761 [18:08:27]Write 301 bytes [18:08:27]NVStorageSaveData done [18:08:27]OFDSenderStorePacket done [18:08:27]KKMCreateOFDPacket done [18:08:27]NVStorageSaveData kkm_last_timestamp [18:08:27]File name is /storage/kkm_last_timestamp [18:08:27]Write 4 bytes [18:08:27]NVStorageSaveData done [18:08:27]ExternCall_PrintAddStr [18:08:27]wPrintStart [18:08:27]Write to MH i2c: 01 00 00 CE 07 D5 [18:08:27]Write i2c OK [18:08:27]MH_I2C_Read... [18:08:27]Read from MH i2c: 01 [18:08:27]MH_I2C_Read... [18:08:27]Read from MH i2c: 01 07 00 [18:08:27]MH_I2C_Read... [18:08:27]Read from MH i2c: 01 07 00 CE 07 00 00 00 00 00 FF 0F EA [18:08:27]RasterBufferAndPrint [18:08:27]line Счет N : (1)673047 [18:08:27]line ИНН: 02508201610067 [18:08:27]line Контрольно-Кассовый Чек [18:08:27]line ПРОДАЖА [18:08:27]line ТРК (МРК, ГНК) : 32 [18:08:27]line Товар: 2710124130 [18:08:27]line Аи-92-К-5 [18:08:27]line 15.070 * 66.40 [18:08:27]line = 1000.65 [18:08:27]line НДС 12% НСП 1% [18:08:27]line > о реализуемом товаре [18:08:27]line ОКРУГЛЕНИЕ: -0.65 [18:08:27]line ИТОГО: 1000.00 [18:08:27]line Внесено: 1000.00 [18:08:27]line СДАЧА: 0.00 [18:08:27]line НСП 1% : 8.85 [18:08:27]line НДС 12% : 106.26 [18:08:27]line Наличными: 1000.00 [18:08:27]line Безнал.: 0.00 [18:08:27]line Место: АЗС № 120 "Партнер Нефть" [18:08:27]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [18:08:27]line СНО: Общий режим [18:08:27]line Чек 191 19.06.2024 18:08 [18:08:27]line Смена: 353 ФФД: 1.0 [18:08:27]line ЗНМ: 0300000164 [18:08:27]line РНМ: 0000000000092785 [18:08:27]line Версия ККМ: 001 [18:08:27]line ФМ: 0000000000875093 [18:08:27]line ФД: 103761 [18:08:27]line ФПД: 32442448481102 [18:08:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T180826&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103761&fm=32442448481102&tin=02508201610067®Number=0000000000092785&sum=100000 [18:08:27]OFD Sender: Processing packet 103761 [packets to send 17, broken 16] [18:08:27]ProducePacketName [18:08:27]name=ofd_packets/00103761 [18:08:27]OFD Sender: To server: pG, [18:08:27]CommunicateWithHost lk.salyk.kg:30040 [18:08:27]ConnectInit lk.salyk.kg [18:08:27]written 0, free lines is 4095 [18:08:27]Connected sock=10 [18:08:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 11 4D 07 01 06 14 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BF 00 00 00 F4 03 04 00 9A 1E 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 51 95 01 00 35 04 06 00 1D 81 98 9E 0B 4E 5F 53 74 41 9C 84 11 01 [18:08: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 39 33 4F 00 00 00 36 7B 47 00 F3 2E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 51 95 01 00 F4 03 04 00 22 C5 72 66 B6 04 01 00 00 8E 92 71 07 9B 77 9B FA [18:08:28]CommunicateWithHost err = 0 [18:08:28]CheckOFDResponse [18:08:28]1017 (14) - 77093643461234 [18:08:28]1041 (16) - 0000000000875093 [18:08:28]1040 (4) - 103761 [18:08:28]1012 (4) - 19.06.2024 11:46 [18:08:28]1206 (1) - 0 [18:08:28]OFD Sender: Remove packet 103761 [18:08:28]ProducePacketName [18:08:28]name=ofd_packets/00103761 [18:08:28]NVStorageDeleteData [18:08:28]Write to MH i2c: 01 00 00 F9 07 00 [18:08:28]Write i2c OK [18:08:28]MH_I2C_Read... [18:08:28]Read from MH i2c: 01 [18:08:28]MH_I2C_Read... [18:08:28]Read from MH i2c: 01 07 00 [18:08:28]MH_I2C_Read... [18:08:28]Read from MH i2c: 01 07 00 F9 07 00 00 00 00 00 DD 0C F0 [18:08:28]RasterBufferAndPrint [18:08:28]line [18:08:28]line [18:08:28]line [18:08:28]line [18:08:28]line [18:08:28]written 0, free lines is 3300 [18:08:28]MH_Cut [18:08:28]Write to MH i2c: D1 01 00 00 08 01 DA [18:08:28]Write i2c OK [18:08:28]MH_I2C_Read... [18:08:28]Read from MH i2c: D1 [18:08:28]MH_I2C_Read... [18:08:28]Read from MH i2c: D1 01 00 [18:08:28]MH_I2C_Read... [18:08:28]Read from MH i2c: D1 01 00 00 08 00 D9 [18:08:28]Write to MH i2c: 01 00 00 01 08 09 [18:08:28]Write i2c OK [18:08:28]MH_I2C_Read... [18:08:28]OFD Sender: No OFD packet to send [18:08:29]*** Cut start [18:08:29]*** Partial cut [18:08:29]*** CUTSNS_PIN = 1 [18:08:29]*** CUTSNS_PIN = 0 [18:08:29]*** Brake cut motor [18:08:29]Read from MH i2c: 01 [18:08:29]MH_I2C_Read... [18:08:29]*** Stop cut motor [18:08:29]*** Cut end [18:08:29]Read from MH i2c: 01 07 00 [18:08:29]MH_I2C_Read... [18:08:29]Read from MH i2c: 01 07 00 01 08 00 00 00 00 00 FF 0F 1E [18:08:29]process_action close_receipt done [18:08:29]requested_data is exist [18:08:29]produce_requested_data [18:08:29]requested_item fm.sn is exist - process it [18:08:29]wFMCommunicate request_size=4 [18:08:29]MH_SAM_APDU [18:08:29]CAPDU: 80 11 00 00 [18:08:29]Write to MH i2c: E2 08 00 02 08 80 11 00 00 00 00 00 00 84 [18:08:29]Write i2c OK [18:08:29]MH_I2C_Read... [18:08:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:08:29]Read from MH i2c: E2 [18:08:29]MH_I2C_Read... [18:08:29]Read from MH i2c: E2 17 00 [18:08:29]MH_I2C_Read... [18:08:29]Read from MH i2c: E2 17 00 02 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 D7 [18:08:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [18:08:29]wFMCommunicate OK [18:08:29]requested_item fd.num is exist - process it [18:08:29]SAM_PROTO_GetFieldsCounters [18:08:29]wFMCommunicate request_size=4 [18:08:29]MH_SAM_APDU [18:08:29]CAPDU: 80 13 00 00 [18:08:29]Write to MH i2c: E2 08 00 03 08 80 13 00 00 00 00 00 00 87 [18:08:29]Write i2c OK [18:08:29]MH_I2C_Read... [18:08:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:08:29]Read from MH i2c: E2 [18:08:29]MH_I2C_Read... [18:08:29]Read from MH i2c: E2 62 00 [18:08:29]MH_I2C_Read... [18:08:29]Read from MH i2c: E2 62 00 03 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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 51 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 BF 00 00 00 5E 04 04 00 BF 00 00 00 57 04 04 00 C0 00 00 00 19 04 04 00 00 00 00 00 90 00 34 [18:08: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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 51 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 BF 00 00 00 5E 04 04 00 BF 00 00 00 57 04 04 00 C0 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:08:29]wFMCommunicate OK [18:08:29]SAM_PROTO_GetFieldsCounters done [18:08:29]requested_item shift.num is exist - process it [18:08:29]requested_item shift.opened is exist - process it [18:08:29]req_shift_opened [18:08:29]FM_GetShiftState [18:08:29]SAM_PROTO_GetShiftState [18:08:29]wFMCommunicate request_size=4 [18:08:29]MH_SAM_APDU [18:08:29]CAPDU: 80 13 01 00 [18:08:29]Write to MH i2c: E2 08 00 04 08 80 13 01 00 00 00 00 00 89 [18:08:29]Write i2c OK [18:08:29]MH_I2C_Read... [18:08:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:08:29]Read from MH i2c: E2 [18:08:29]MH_I2C_Read... [18:08:29]Read from MH i2c: E2 0E 00 [18:08:29]MH_I2C_Read... [18:08:29]Read from MH i2c: E2 0E 00 04 08 00 09 00 01 04 26 72 66 00 00 00 00 90 00 97 [18:08:29]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [18:08:29]wFMCommunicate OK [18:08:29]SAM_PROTO_GetShiftState done [18:08:29]FM_GetShiftState done [18:08:29]req_shift_opened done [18:08:29]requested_item shift.open_date is exist - process it [18:08:29]req_shift_open_date [18:08:29]req_shift_open_date done [18:08:29]produce_requested_data done [18:08:29]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103761,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [18:08:29]process_action_free close_receipt [18:08:29]json_value_free [18:08:29]json_value_free done [18:08:29]process_json_proto returns [18:08:29]Send response to host [18:08:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103761,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [18:08:29]free response buf [18:08:29]execute_script done [18:08:29]execute_script returns [18:08:29]free content buf [18:08:29]Sock 8.Close socket [18:08:29]Sock 8.Thread stoped [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:33]OFD Sender: No OFD packet to send [18:10:38]OFD Sender: No OFD packet to send [18:10:43]OFD Sender: No OFD packet to send [18:10:48]OFD Sender: No OFD packet to send [18:10:53]OFD Sender: No OFD packet to send [18:10:58]OFD Sender: No OFD packet to send [18:11:03]OFD Sender: No OFD packet to send [18:11:08]OFD Sender: No OFD packet to send [18:11:13]OFD Sender: No OFD packet to send [18:11:18]OFD Sender: No OFD packet to send [18:11:23]OFD Sender: No OFD packet to send [18:11:28]OFD Sender: No OFD packet to send [18:11:33]OFD Sender: No OFD packet to send [18:11:38]OFD Sender: No OFD packet to send [18:11:43]OFD Sender: No OFD packet to send [18:11:48]OFD Sender: No OFD packet to send [18:11:53]OFD Sender: No OFD packet to send [18:11:58]OFD Sender: No OFD packet to send [18:12:03]OFD Sender: No OFD packet to send [18:12:08]OFD Sender: No OFD packet to send [18:12:13]OFD Sender: No OFD packet to send [18:12:18]OFD Sender: No OFD packet to send [18:12:23]OFD Sender: No OFD packet to send [18:12:28]OFD Sender: No OFD packet to send [18:12:33]OFD Sender: No OFD packet to send [18:12:38]OFD Sender: No OFD packet to send [18:12:43]OFD Sender: No OFD packet to send [18:12:48]OFD Sender: No OFD packet to send [18:12:53]OFD Sender: No OFD packet to send [18:12:58]OFD Sender: No OFD packet to send [18:13:03]OFD Sender: No OFD packet to send [18:13:08]OFD Sender: No OFD packet to send [18:13:13]OFD Sender: No OFD packet to send [18:13:18]OFD Sender: No OFD packet to send [18:13:23]OFD Sender: No OFD packet to send [18:13:28]OFD Sender: No OFD packet to send [18:13:32]accept exits with 9 [18:13:32]New connection [18:13:32]New thread 3066797412 created [18:13:32]Thread 3066940772 joined [18:13:32]Waiting for new connection... [18:13:32] Sock 9.Parse request [18:13:32]Sock 9.Check first char [18:13:32]Sock 9.First char is OK [18:13:32]request: POST /json_proto HTTP/1.0 [18:13:32]Method: POST [18:13:32]URL: /json_proto [18:13:32]Method is POST - this is cgi request [18:13:32]url: /json_proto [18:13:32]query_string will be loaded in cgi processing [18:13:32]execute_cgi json_proto POST (null) [18:13:32]execute_cgi path=json_proto method=POST [18:13:32]POST find Content-Length [18:13:32]Host: 172.17.38.133:8080 [18:13:32]Content-Length: 642 [18:13:32]Content-Type: application/json [18:13:32] [18:13:32]POST finish read [18:13:32]Found Content-Length = 642 [18:13:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673048", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 20.000, "sum" : 1328.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 1328.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:13:32]execute_script... [18:13: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)673048", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 20.000, "sum" : 1328.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 1328.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:13:32]POST & json_proto [18:13:32]process_json_proto [18:13:32]json parsed OK: [18:13:32]protocol is kg_v1.0 [18:13:32]action value=close_receipt [18:13:32]process_action close_receipt [18:13:32]cmd_close_receipt [18:13:32]MH_GetDate [18:13:32]Write to MH i2c: F0 00 00 05 08 FC [18:13:32]Write i2c OK [18:13:32]MH_I2C_Read... [18:13:32]Read from MH i2c: F0 [18:13:32]MH_I2C_Read... [18:13:32]Read from MH i2c: F0 09 00 [18:13:32]MH_I2C_Read... [18:13:32]Read from MH i2c: F0 09 00 05 08 00 CC 1F 73 66 BD 8F 7C 64 F5 [18:13:32]GetLastDocTimeStamp 1718820506 [18:13:32]current date 1718820812 [18:13:32]FM_GetShiftState [18:13:32]SAM_PROTO_GetShiftState [18:13:32]wFMCommunicate request_size=4 [18:13:32]MH_SAM_APDU [18:13:32]CAPDU: 80 13 01 00 [18:13:32]Write to MH i2c: E2 08 00 06 08 80 13 01 00 00 00 00 00 8B [18:13:32]Write i2c OK [18:13:32]MH_I2C_Read... [18:13:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:13:32]Read from MH i2c: E2 [18:13:32]MH_I2C_Read... [18:13:32]Read from MH i2c: E2 0E 00 [18:13:32]MH_I2C_Read... [18:13:32]Read from MH i2c: E2 0E 00 06 08 00 09 00 01 04 26 72 66 00 00 00 00 90 00 99 [18:13:32]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [18:13:32]wFMCommunicate OK [18:13:32]SAM_PROTO_GetShiftState done [18:13:32]FM_GetShiftState done [18:13:32]opened in 1718756868 [18:13:32]opened+sec_in_day 1718843268 [18:13:32]quantity*price = 132800 [18:13:32]sum+1 = 132801 [18:13:32]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1328.00 НСП 1% : 11.75 НДС 12% : 141.03 Наличными: 1328.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 192 19.06.2024 18:13 Смена: 353 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103762 ФПД: 39516570069740 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T181332&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103762&fm=39516570069740&tin=02508201610067®Number=0000000000092785&sum=132800 [18:13:33]StoreToDocumentArchive [18:13:33]shift 353 fd 103762 [18:13:33]save to /storage/0353/doc_00103762 [18:13:33]save last doc name /storage/0353/doc_00103762 to /storage/kkm_last_doc_name [18:13:33]save OK [18:13:33]Clear old archive folders... [18:13:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:13:33]tlvbuf is 01691E40 [18:13:33]SAM_PROTO_ClearQueue [18:13:33]wFMCommunicate request_size=4 [18:13:33]MH_SAM_APDU [18:13:33]CAPDU: 80 09 00 00 [18:13:33]Write to MH i2c: E2 08 00 13 08 80 09 00 00 00 00 00 00 8D [18:13:33]Write i2c OK [18:13:33]MH_I2C_Read... [18:13:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:13:33]Read from MH i2c: E2 [18:13:33]MH_I2C_Read... [18:13:33]Read from MH i2c: E2 03 00 [18:13:33]MH_I2C_Read... [18:13:33]Read from MH i2c: E2 03 00 13 08 00 90 00 8F [18:13:33]RAPDU: 90 00 [18:13:33]wFMCommunicate OK [18:13:33]SAM_PROTO_ClearQueue done [18:13:33]KKMCreateOFDPacket [18:13:33]OFDProtocolAddRootSTLVToBuf [18:13:33]FM_MakeSignedData [18:13:33]FM_MakeSignedData [18:13:33]SAM_PROTO_SignData [18:13:33]wFMCommunicate request_size=4 [18:13:33]MH_SAM_APDU [18:13:33]CAPDU: 80 0D 01 02 [18:13:33]Write to MH i2c: E2 08 00 14 08 80 0D 01 02 00 00 00 00 95 [18:13:33]Write i2c OK [18:13:33]MH_I2C_Read... [18:13:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:13:33]Read from MH i2c: E2 [18:13:33]MH_I2C_Read... [18:13:33]Read from MH i2c: E2 03 00 [18:13:33]MH_I2C_Read... [18:13:33]Read from MH i2c: E2 03 00 14 08 00 90 00 90 [18:13:33]RAPDU: 90 00 [18:13:33]wFMCommunicate OK [18:13:33]wFMCommunicate request_size=255 [18:13:33]MH_SAM_APDU [18:13: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 20 4E 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 C0 06 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 06 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 97 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 17 37 00 00 00 00 07 04 06 00 C0 06 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C0 00 00 00 F4 03 04 00 CC 1F 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 52 95 01 00 35 04 06 00 23 [18:13:33]Write to MH i2c: E2 02 01 15 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 20 4E 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 C0 06 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 06 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 97 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 17 37 00 00 00 00 07 04 06 00 C0 06 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C0 00 00 00 F4 03 04 00 CC 1F 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 52 95 01 00 35 04 06 00 23 00 00 4E [18:13:33]Write i2c OK [18:13:33]MH_I2C_Read... [18:13:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:13:33]Read from MH i2c: E2 [18:13:33]MH_I2C_Read... [18:13:33]Read from MH i2c: E2 03 00 [18:13:33]MH_I2C_Read... [18:13:33]Read from MH i2c: E2 03 00 15 08 00 90 00 91 [18:13:33]RAPDU: 90 00 [18:13:33]wFMCommunicate OK [18:13:33]wFMCommunicate request_size=10 [18:13:33]MH_SAM_APDU [18:13:33]CAPDU: 80 0D 02 02 05 F0 AB 1F 2A EC [18:13:33]Write to MH i2c: E2 0D 00 16 08 80 0D 02 02 05 00 F0 AB 1F 2A EC 00 00 72 [18:13:33]Write i2c OK [18:13:33]MH_I2C_Read... [18:13:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:13:33]Read from MH i2c: E2 [18:13:33]MH_I2C_Read... [18:13:33]Read from MH i2c: E2 03 00 [18:13:33]MH_I2C_Read... [18:13:33]Read from MH i2c: E2 03 00 16 08 00 90 00 92 [18:13:33]RAPDU: 90 00 [18:13:33]wFMCommunicate OK [18:13:33]wFMCommunicate request_size=4 [18:13:33]MH_SAM_APDU [18:13:33]CAPDU: 80 0D 03 02 [18:13:33]Write to MH i2c: E2 08 00 17 08 80 0D 03 02 00 00 00 00 9A [18:13:33]Write i2c OK [18:13:33]MH_I2C_Read... [18:13:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:13:33]Read from MH i2c: E2 [18:13:33]MH_I2C_Read... [18:13:33]Read from MH i2c: E2 0B 00 [18:13:33]MH_I2C_Read... [18:13:33]Read from MH i2c: E2 0B 00 17 08 00 09 C4 BC 52 1A 83 54 F2 90 00 59 [18:13:33]RAPDU: 09 C4 BC 52 1A 83 54 F2 90 00 [18:13:33]wFMCommunicate OK [18:13:33]SAM_PROTO_SignData done [18:13:33]FM_MakeSignedData done [18:13:33]CreateOFDProtocolMessage [18:13:33]wFMCommunicate request_size=4 [18:13:33]MH_SAM_APDU [18:13:33]CAPDU: 80 11 00 00 [18:13:33]Write to MH i2c: E2 08 00 18 08 80 11 00 00 00 00 00 00 9A [18:13:33]Write i2c OK [18:13:33]MH_I2C_Read... [18:13:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:13:33]Read from MH i2c: E2 [18:13:33]MH_I2C_Read... [18:13:33]Read from MH i2c: E2 17 00 [18:13:33]MH_I2C_Read... [18:13:33]Read from MH i2c: E2 17 00 18 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 ED [18:13:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [18:13:33]wFMCommunicate OK [18:13:33]CreateOFDProtocolMessage done [18:13:33]OFDSenderStorePacket 103762 [18:13:33]StoreOFDPacket docnum=103762 [18:13:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 F4 D3 07 01 61 D7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 C0 06 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 06 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 97 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 17 37 00 00 00 00 07 04 06 00 C0 06 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C0 00 00 00 F4 03 04 00 CC 1F 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 52 95 01 00 35 04 06 00 23 F0 AB 1F 2A EC 09 C4 BC 52 1A 83 54 F2 [18:13:33]CheckFolder [18:13:33]dirname=/storage/ofd_packets [18:13:33]CheckFolder done [18:13:33]ProducePacketName [18:13:33]name=ofd_packets/00103762 [18:13:33]NVStorageSaveData ofd_packets/00103762 [18:13:33]File name is /storage/ofd_packets/00103762 [18:13:33]Write 301 bytes [18:13:33]NVStorageSaveData done [18:13:33]OFDSenderStorePacket done [18:13:33]KKMCreateOFDPacket done [18:13:33]NVStorageSaveData kkm_last_timestamp [18:13:33]File name is /storage/kkm_last_timestamp [18:13:33]Write 4 bytes [18:13:33]NVStorageSaveData done [18:13:33]ExternCall_PrintAddStr [18:13:33]wPrintStart [18:13:33]Write to MH i2c: 01 00 00 19 08 21 [18:13:33]Write i2c OK [18:13:33]MH_I2C_Read... [18:13:33]Read from MH i2c: 01 [18:13:33]MH_I2C_Read... [18:13:33]Read from MH i2c: 01 07 00 [18:13:33]MH_I2C_Read... [18:13:33]Read from MH i2c: 01 07 00 19 08 00 00 00 00 00 FF 0F 36 [18:13:33]RasterBufferAndPrint [18:13:33]line Счет N : (1)673048 [18:13:33]line ИНН: 02508201610067 [18:13:33]line Контрольно-Кассовый Чек [18:13:33]line ПРОДАЖА [18:13:33]line ТРК (МРК, ГНК) : 42 [18:13:33]line Товар: 2710124130 [18:13:33]line Аи-92-К-5 [18:13:33]line 20.000 * 66.40 [18:13:33]line = 1328.00 [18:13:33]line НДС 12% НСП 1% [18:13:33]line > о реализуемом товаре [18:13:33]line ИТОГО: 1328.00 [18:13:33]line НСП 1% : 11.75 [18:13:33]line НДС 12% : 141.03 [18:13:33]line Наличными: 1328.00 [18:13:33]line Безнал.: 0.00 [18:13:33]line Место: АЗС № 120 "Партнер Нефть" [18:13:33]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [18:13:33]line СНО: Общий режим [18:13:33]line Чек 192 19.06.2024 18:13 [18:13:33]line Смена: 353 ФФД: 1.0 [18:13:33]line ЗНМ: 0300000164 [18:13:33]line РНМ: 0000000000092785 [18:13:33]line Версия ККМ: 001 [18:13:33]line ФМ: 0000000000875093 [18:13:34]line ФД: 103762 [18:13:34]line ФПД: 39516570069740 [18:13:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T181332&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103762&fm=39516570069740&tin=02508201610067®Number=0000000000092785&sum=132800 [18:13:34]OFD Sender: Processing packet 103762 [packets to send 17, broken 16] [18:13:34]ProducePacketName [18:13:34]name=ofd_packets/00103762 [18:13:34]OFD Sender: To server: pG, [18:13:34]CommunicateWithHost lk.salyk.kg:30040 [18:13:34]ConnectInit lk.salyk.kg [18:13:34]written 0, free lines is 4095 [18:13:34]Connected sock=10 [18:13: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 39 33 0F 01 00 00 F4 D3 07 01 61 D7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 C0 06 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 06 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 97 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 17 37 00 00 00 00 07 04 06 00 C0 06 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C0 00 00 00 F4 03 04 00 CC 1F 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 52 95 01 00 35 04 06 00 23 F0 AB 1F 2A EC 09 C4 BC 52 1A 83 54 F2 [18:13: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 39 33 4F 00 00 00 70 57 47 00 99 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 39 33 10 04 04 00 52 95 01 00 F4 03 04 00 55 C6 72 66 B6 04 01 00 00 17 A6 C2 77 5F 82 73 9F [18:13:34]CommunicateWithHost err = 0 [18:13:34]CheckOFDResponse [18:13:34]1017 (14) - 77093643461234 [18:13:34]1041 (16) - 0000000000875093 [18:13:34]1040 (4) - 103762 [18:13:34]1012 (4) - 19.06.2024 11:51 [18:13:34]1206 (1) - 0 [18:13:34]OFD Sender: Remove packet 103762 [18:13:34]ProducePacketName [18:13:34]name=ofd_packets/00103762 [18:13:34]NVStorageDeleteData [18:13:34]Write to MH i2c: 01 00 00 41 08 49 [18:13:34]Write i2c OK [18:13:34]MH_I2C_Read... [18:13:34]Read from MH i2c: 01 [18:13:34]MH_I2C_Read... [18:13:34]Read from MH i2c: 01 07 00 [18:13:34]MH_I2C_Read... [18:13:34]Read from MH i2c: 01 07 00 41 08 00 00 00 00 00 16 0D 73 [18:13:34]RasterBufferAndPrint [18:13:34]line [18:13:34]line [18:13:34]line [18:13:34]line [18:13:34]line [18:13:34]written 0, free lines is 3357 [18:13:34]MH_Cut [18:13:34]Write to MH i2c: D1 01 00 48 08 01 22 [18:13:34]Write i2c OK [18:13:34]MH_I2C_Read... [18:13:34]Read from MH i2c: D1 [18:13:34]MH_I2C_Read... [18:13:34]Read from MH i2c: D1 01 00 [18:13:34]MH_I2C_Read... [18:13:34]Read from MH i2c: D1 01 00 48 08 00 21 [18:13:34]Write to MH i2c: 01 00 00 49 08 51 [18:13:34]Write i2c OK [18:13:34]MH_I2C_Read... [18:13:35]OFD Sender: No OFD packet to send [18:13:35]*** Cut start [18:13:35]*** Partial cut [18:13:35]*** CUTSNS_PIN = 1 [18:13:35]*** CUTSNS_PIN = 0 [18:13:35]*** Brake cut motor [18:13:35]Read from MH i2c: 01 [18:13:35]MH_I2C_Read... [18:13:35]*** Stop cut motor [18:13:35]*** Cut end [18:13:35]Read from MH i2c: 01 07 00 [18:13:35]MH_I2C_Read... [18:13:35]Read from MH i2c: 01 07 00 49 08 00 00 00 00 00 FF 0F 66 [18:13:35]process_action close_receipt done [18:13:35]requested_data is exist [18:13:35]produce_requested_data [18:13:35]requested_item fm.sn is exist - process it [18:13:35]wFMCommunicate request_size=4 [18:13:35]MH_SAM_APDU [18:13:35]CAPDU: 80 11 00 00 [18:13:35]Write to MH i2c: E2 08 00 4A 08 80 11 00 00 00 00 00 00 CC [18:13:35]Write i2c OK [18:13:35]MH_I2C_Read... [18:13:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:13:35]Read from MH i2c: E2 [18:13:35]MH_I2C_Read... [18:13:35]Read from MH i2c: E2 17 00 [18:13:35]MH_I2C_Read... [18:13:35]Read from MH i2c: E2 17 00 4A 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 1F [18:13:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [18:13:35]wFMCommunicate OK [18:13:35]requested_item fd.num is exist - process it [18:13:35]SAM_PROTO_GetFieldsCounters [18:13:35]wFMCommunicate request_size=4 [18:13:35]MH_SAM_APDU [18:13:35]CAPDU: 80 13 00 00 [18:13:35]Write to MH i2c: E2 08 00 4B 08 80 13 00 00 00 00 00 00 CF [18:13:35]Write i2c OK [18:13:35]MH_I2C_Read... [18:13:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:13:36]Read from MH i2c: E2 [18:13:36]MH_I2C_Read... [18:13:36]Read from MH i2c: E2 62 00 [18:13:36]MH_I2C_Read... [18:13:36]Read from MH i2c: E2 62 00 4B 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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 52 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 C0 00 00 00 5E 04 04 00 C0 00 00 00 57 04 04 00 C1 00 00 00 19 04 04 00 00 00 00 00 90 00 80 [18:13: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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 52 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 C0 00 00 00 5E 04 04 00 C0 00 00 00 57 04 04 00 C1 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:13:36]wFMCommunicate OK [18:13:36]SAM_PROTO_GetFieldsCounters done [18:13:36]requested_item shift.num is exist - process it [18:13:36]requested_item shift.opened is exist - process it [18:13:36]req_shift_opened [18:13:36]FM_GetShiftState [18:13:36]SAM_PROTO_GetShiftState [18:13:36]wFMCommunicate request_size=4 [18:13:36]MH_SAM_APDU [18:13:36]CAPDU: 80 13 01 00 [18:13:36]Write to MH i2c: E2 08 00 4C 08 80 13 01 00 00 00 00 00 D1 [18:13:36]Write i2c OK [18:13:36]MH_I2C_Read... [18:13:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:13:36]Read from MH i2c: E2 [18:13:36]MH_I2C_Read... [18:13:36]Read from MH i2c: E2 0E 00 [18:13:36]MH_I2C_Read... [18:13:36]Read from MH i2c: E2 0E 00 4C 08 00 09 00 01 04 26 72 66 00 00 00 00 90 00 DF [18:13:36]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [18:13:36]wFMCommunicate OK [18:13:36]SAM_PROTO_GetShiftState done [18:13:36]FM_GetShiftState done [18:13:36]req_shift_opened done [18:13:36]requested_item shift.open_date is exist - process it [18:13:36]req_shift_open_date [18:13:36]req_shift_open_date done [18:13:36]produce_requested_data done [18:13:36]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103762,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [18:13:36]process_action_free close_receipt [18:13:36]json_value_free [18:13:36]json_value_free done [18:13:36]process_json_proto returns [18:13:36]Send response to host [18:13:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103762,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [18:13:36]free response buf [18:13:36]execute_script done [18:13:36]execute_script returns [18:13:36]free content buf [18:13:36]Sock 9.Close socket [18:13:36]Sock 9.Thread stoped [18:13:40]OFD Sender: No OFD packet to send [18:13:45]OFD Sender: No OFD packet to send [18:13:50]OFD Sender: No OFD packet to send [18:13:55]OFD Sender: No OFD packet to send [18:14:00]OFD Sender: No OFD packet to send [18:14:05]OFD Sender: No OFD packet to send [18:14:10]OFD Sender: No OFD packet to send [18:14:15]OFD Sender: No OFD packet to send [18:14:20]OFD Sender: No OFD packet to send [18:14:25]OFD Sender: No OFD packet to send [18:14:30]OFD Sender: No OFD packet to send [18:14:35]OFD Sender: No OFD packet to send [18:14:40]OFD Sender: No OFD packet to send [18:14:45]OFD Sender: No OFD packet to send [18:14:50]OFD Sender: No OFD packet to send [18:14:55]OFD Sender: No OFD packet to send [18:15:00]OFD Sender: No OFD packet to send [18:15:05]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:02]accept exits with 8 [18:16:02]New connection [18:16:02]New thread 3066940772 created [18:16:02]Thread 3066797412 joined [18:16:02]Waiting for new connection... [18:16:02] Sock 8.Parse request [18:16:02]Sock 8.Check first char [18:16:02]Sock 8.First char is OK [18:16:02]request: POST /json_proto HTTP/1.0 [18:16:02]Method: POST [18:16:02]URL: /json_proto [18:16:02]Method is POST - this is cgi request [18:16:02]url: /json_proto [18:16:02]query_string will be loaded in cgi processing [18:16:02]execute_cgi json_proto POST (null) [18:16:02]execute_cgi path=json_proto method=POST [18:16:02]POST find Content-Length [18:16:02]Host: 172.17.38.133:8080 [18:16:02]Content-Length: 1206 [18:16:02]Content-Type: application/json [18:16:02] [18:16:02]POST finish read [18:16:02]Found Content-Length = 1206 [18:16:02]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 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. \u000A\u0421\u0447\u0435\u0442 N : (1)673049\u000A19.06.2024 17:53\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 32\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 15.000 x 66.40\u000A\u0418\u0422\u041E\u0413: 996.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\u000A53005\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:16:02]execute_script... [18:16:02]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 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. \u000A\u0421\u0447\u0435\u0442 N : (1)673049\u000A19.06.2024 17:53\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 32\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 15.000 x 66.40\u000A\u0418\u0422\u041E\u0413: 996.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\u000A53005\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:16:02]POST & json_proto [18:16:02]process_json_proto [18:16:02]json parsed OK: [18:16:02]protocol is kg_v1.0 [18:16:02]action value=print_text [18:16:02]process_action print_text [18:16:02]cmd_print_text [18:16:02]ExternCall_PrintAddStr [18:16:02]wPrintStart [18:16:02]Write to MH i2c: 01 00 00 4D 08 55 [18:16:02]Write i2c OK [18:16:02]MH_I2C_Read... [18:16:02]Read from MH i2c: 01 [18:16:02]MH_I2C_Read... [18:16:02]Read from MH i2c: 01 07 00 [18:16:02]MH_I2C_Read... [18:16:02]Read from MH i2c: 01 07 00 4D 08 00 00 00 00 00 FF 0F 6A [18:16:02]RasterBufferAndPrint [18:16:02]line *****ТОВАРНЫЙ ЧЕК***** [18:16:02]line АЗС 120 [18:16:02]line Партнер нефть [18:16:02]line 02508201610067 [18:16:02]line Кассир : Байбугуева Г. [18:16:02]line Счет N : (1)673049 [18:16:02]line 19.06.2024 17:53 [18:16:02]line ПРОДАЖА [18:16:02]line ТРК (МРК, ГНК): 32 [18:16:02]line Вид ГСМ : 2710124130 [18:16:02]line Аи-92-К-5 [18:16:02]line 15.000 x 66.40 [18:16:02]line ИТОГ: 996.00 [18:16:02]line Тип оплаты: Талоны: Топливная Карта [18:16:02]line 53005 [18:16:02]line ______________________ [18:16:02]line (подпись) [18:16:02]written 0, free lines is 4095 [18:16:02]Write to MH i2c: 01 00 00 61 08 69 [18:16:02]Write i2c OK [18:16:02]MH_I2C_Read... [18:16:02]Read from MH i2c: 01 [18:16:02]MH_I2C_Read... [18:16:02]Read from MH i2c: 01 07 00 [18:16:02]MH_I2C_Read... [18:16:02]Read from MH i2c: 01 07 00 61 08 00 00 00 00 00 12 0E 90 [18:16:02]RasterBufferAndPrint [18:16:02]line [18:16:02]line [18:16:02]line [18:16:02]line [18:16:02]line [18:16:02]written 0, free lines is 3604 [18:16:02]MH_Cut [18:16:02]Write to MH i2c: D1 01 00 68 08 01 42 [18:16:02]Write i2c OK [18:16:02]MH_I2C_Read... [18:16:02]Read from MH i2c: D1 [18:16:02]MH_I2C_Read... [18:16:02]Read from MH i2c: D1 01 00 [18:16:02]MH_I2C_Read... [18:16:02]Read from MH i2c: D1 01 00 68 08 00 41 [18:16:02]Write to MH i2c: 01 00 00 69 08 71 [18:16:02]Write i2c OK [18:16:02]MH_I2C_Read... [18:16:02]*** Cut start [18:16:02]*** Partial cut [18:16:02]*** CUTSNS_PIN = 1 [18:16:02]*** CUTSNS_PIN = 0 [18:16:03]*** Brake cut motor [18:16:03]Read from MH i2c: 01 [18:16:03]MH_I2C_Read... [18:16:03]Read from MH i2c: 01 07 00 [18:16:03]MH_I2C_Read... [18:16:03]*** Stop cut motor [18:16:03]*** Cut end [18:16:03]Read from MH i2c: 01 07 00 69 08 00 00 00 00 00 FF 0F 86 [18:16:03]process_action print_text done [18:16:03]requested_data is exist [18:16:03]produce_requested_data [18:16:03]requested_item fm.sn is exist - process it [18:16:03]wFMCommunicate request_size=4 [18:16:03]MH_SAM_APDU [18:16:03]CAPDU: 80 11 00 00 [18:16:03]Write to MH i2c: E2 08 00 6A 08 80 11 00 00 00 00 00 00 EC [18:16:03]Write i2c OK [18:16:03]MH_I2C_Read... [18:16:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:16:03]Read from MH i2c: E2 [18:16:03]MH_I2C_Read... [18:16:03]Read from MH i2c: E2 17 00 [18:16:03]MH_I2C_Read... [18:16:03]Read from MH i2c: E2 17 00 6A 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 3F [18:16:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [18:16:03]wFMCommunicate OK [18:16:03]requested_item fd.num is exist - process it [18:16:03]SAM_PROTO_GetFieldsCounters [18:16:03]wFMCommunicate request_size=4 [18:16:03]MH_SAM_APDU [18:16:03]CAPDU: 80 13 00 00 [18:16:03]Write to MH i2c: E2 08 00 6B 08 80 13 00 00 00 00 00 00 EF [18:16:03]Write i2c OK [18:16:03]MH_I2C_Read... [18:16:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:16:03]Read from MH i2c: E2 [18:16:03]MH_I2C_Read... [18:16:03]Read from MH i2c: E2 62 00 [18:16:03]MH_I2C_Read... [18:16:03]Read from MH i2c: E2 62 00 6B 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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 52 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 C0 00 00 00 5E 04 04 00 C0 00 00 00 57 04 04 00 C1 00 00 00 19 04 04 00 00 00 00 00 90 00 A0 [18:16: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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 52 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 C0 00 00 00 5E 04 04 00 C0 00 00 00 57 04 04 00 C1 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:16:03]wFMCommunicate OK [18:16:03]SAM_PROTO_GetFieldsCounters done [18:16:03]requested_item shift.num is exist - process it [18:16:03]requested_item shift.opened is exist - process it [18:16:03]req_shift_opened [18:16:03]FM_GetShiftState [18:16:03]SAM_PROTO_GetShiftState [18:16:03]wFMCommunicate request_size=4 [18:16:03]MH_SAM_APDU [18:16:03]CAPDU: 80 13 01 00 [18:16:03]Write to MH i2c: E2 08 00 6C 08 80 13 01 00 00 00 00 00 F1 [18:16:03]Write i2c OK [18:16:03]MH_I2C_Read... [18:16:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:16:03]Read from MH i2c: E2 [18:16:03]MH_I2C_Read... [18:16:03]Read from MH i2c: E2 0E 00 [18:16:03]MH_I2C_Read... [18:16:03]Read from MH i2c: E2 0E 00 6C 08 00 09 00 01 04 26 72 66 00 00 00 00 90 00 FF [18:16:03]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [18:16:03]wFMCommunicate OK [18:16:03]SAM_PROTO_GetShiftState done [18:16:03]FM_GetShiftState done [18:16:03]req_shift_opened done [18:16:03]requested_item shift.open_date is exist - process it [18:16:03]req_shift_open_date [18:16:03]req_shift_open_date done [18:16:03]produce_requested_data done [18:16:03]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103762,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [18:16:03]process_action_free print_text [18:16:03]json_value_free [18:16:03]json_value_free done [18:16:03]process_json_proto returns [18:16:03]Send response to host [18:16:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103762,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [18:16:03]free response buf [18:16:03]execute_script done [18:16:03]execute_script returns [18:16:03]free content buf [18:16:03]Sock 8.Close socket [18:16:03]Sock 8.Thread stoped [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:52]accept exits with 9 [18:17:52]New connection [18:17:52]New thread 3066797412 created [18:17:52]Thread 3066940772 joined [18:17:52]Waiting for new connection... [18:17:52] Sock 9.Parse request [18:17:52]Sock 9.Check first char [18:17:52]Sock 9.First char is OK [18:17:52]request: POST /json_proto HTTP/1.0 [18:17:52]Method: POST [18:17:52]URL: /json_proto [18:17:52]Method is POST - this is cgi request [18:17:52]url: /json_proto [18:17:52]query_string will be loaded in cgi processing [18:17:52]execute_cgi json_proto POST (null) [18:17:52]execute_cgi path=json_proto method=POST [18:17:52]POST find Content-Length [18:17:52]Host: 172.17.38.133:8080 [18:17:52]Content-Length: 1169 [18:17:52]Content-Type: application/json [18:17:52] [18:17:52]POST finish read [18:17:52]Found Content-Length = 1169 [18:17:52]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 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. \u000A\u0421\u0447\u0435\u0442 N : (1)673050\u000A19.06.2024 17:55\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 42\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 50.000 x 66.40\u000A\u0418\u0422\u041E\u0413: 3320.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30076998\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:17:52]execute_script... [18:17:52]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 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. \u000A\u0421\u0447\u0435\u0442 N : (1)673050\u000A19.06.2024 17:55\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 42\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 50.000 x 66.40\u000A\u0418\u0422\u041E\u0413: 3320.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30076998\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:17:52]POST & json_proto [18:17:52]process_json_proto [18:17:52]json parsed OK: [18:17:52]protocol is kg_v1.0 [18:17:52]action value=print_text [18:17:52]process_action print_text [18:17:52]cmd_print_text [18:17:52]ExternCall_PrintAddStr [18:17:52]wPrintStart [18:17:52]Write to MH i2c: 01 00 00 6D 08 75 [18:17:52]Write i2c OK [18:17:52]MH_I2C_Read... [18:17:52]Read from MH i2c: 01 [18:17:52]MH_I2C_Read... [18:17:52]Read from MH i2c: 01 07 00 [18:17:52]MH_I2C_Read... [18:17:52]Read from MH i2c: 01 07 00 6D 08 00 00 00 00 00 FF 0F 8A [18:17:52]RasterBufferAndPrint [18:17:52]line *****ТОВАРНЫЙ ЧЕК***** [18:17:52]line АЗС 120 [18:17:52]line Партнер нефть [18:17:52]line 02508201610067 [18:17:52]line Кассир : Байбугуева Г. [18:17:52]line Счет N : (1)673050 [18:17:52]line 19.06.2024 17:55 [18:17:52]line ПРОДАЖА [18:17:52]line ТРК (МРК, ГНК): 42 [18:17:52]line Вид ГСМ : 2710124130 [18:17:52]line Аи-92-К-5 [18:17:52]line 50.000 x 66.40 [18:17:52]line ИТОГ: 3320.00 [18:17:52]line Тип оплаты: Талоны: ТК ГПНА Online [18:17:52]line 30076998 [18:17:52]line ______________________ [18:17:52]line (подпись) [18:17:52]written 0, free lines is 4095 [18:17:53]Write to MH i2c: 01 00 00 81 08 89 [18:17:53]Write i2c OK [18:17:53]MH_I2C_Read... [18:17:53]Read from MH i2c: 01 [18:17:53]MH_I2C_Read... [18:17:53]Read from MH i2c: 01 07 00 [18:17:53]MH_I2C_Read... [18:17:53]Read from MH i2c: 01 07 00 81 08 00 00 00 00 00 12 0E B0 [18:17:53]RasterBufferAndPrint [18:17:53]line [18:17:53]line [18:17:53]line [18:17:53]line [18:17:53]line [18:17:53]written 0, free lines is 3604 [18:17:53]MH_Cut [18:17:53]Write to MH i2c: D1 01 00 88 08 01 62 [18:17:53]Write i2c OK [18:17:53]MH_I2C_Read... [18:17:53]Read from MH i2c: D1 [18:17:53]MH_I2C_Read... [18:17:53]Read from MH i2c: D1 01 00 [18:17:53]MH_I2C_Read... [18:17:53]Read from MH i2c: D1 01 00 88 08 00 61 [18:17:53]Write to MH i2c: 01 00 00 89 08 91 [18:17:53]Write i2c OK [18:17:53]MH_I2C_Read... [18:17:53]*** Cut start [18:17:53]*** Partial cut [18:17:53]*** CUTSNS_PIN = 1 [18:17:53]*** CUTSNS_PIN = 0 [18:17:53]*** Brake cut motor [18:17:54]Read from MH i2c: 01 [18:17:54]MH_I2C_Read... [18:17:54]*** Stop cut motor [18:17:54]*** Cut end [18:17:54]Read from MH i2c: 01 07 00 [18:17:54]MH_I2C_Read... [18:17:54]Read from MH i2c: 01 07 00 89 08 00 00 00 00 00 FF 0F A6 [18:17:54]process_action print_text done [18:17:54]requested_data is exist [18:17:54]produce_requested_data [18:17:54]requested_item fm.sn is exist - process it [18:17:54]wFMCommunicate request_size=4 [18:17:54]MH_SAM_APDU [18:17:54]CAPDU: 80 11 00 00 [18:17:54]Write to MH i2c: E2 08 00 8A 08 80 11 00 00 00 00 00 00 0C [18:17:54]Write i2c OK [18:17:54]MH_I2C_Read... [18:17:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:17:54]Read from MH i2c: E2 [18:17:54]MH_I2C_Read... [18:17:54]Read from MH i2c: E2 17 00 [18:17:54]MH_I2C_Read... [18:17:54]Read from MH i2c: E2 17 00 8A 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 5F [18:17:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [18:17:54]wFMCommunicate OK [18:17:54]requested_item fd.num is exist - process it [18:17:54]SAM_PROTO_GetFieldsCounters [18:17:54]wFMCommunicate request_size=4 [18:17:54]MH_SAM_APDU [18:17:54]CAPDU: 80 13 00 00 [18:17:54]Write to MH i2c: E2 08 00 8B 08 80 13 00 00 00 00 00 00 0F [18:17:54]Write i2c OK [18:17:54]MH_I2C_Read... [18:17:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:17:54]Read from MH i2c: E2 [18:17:54]MH_I2C_Read... [18:17:54]Read from MH i2c: E2 62 00 [18:17:54]MH_I2C_Read... [18:17:54]Read from MH i2c: E2 62 00 8B 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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 52 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 C0 00 00 00 5E 04 04 00 C0 00 00 00 57 04 04 00 C1 00 00 00 19 04 04 00 00 00 00 00 90 00 C0 [18:17:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 52 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 C0 00 00 00 5E 04 04 00 C0 00 00 00 57 04 04 00 C1 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:17:54]wFMCommunicate OK [18:17:54]SAM_PROTO_GetFieldsCounters done [18:17:54]requested_item shift.num is exist - process it [18:17:54]requested_item shift.opened is exist - process it [18:17:54]req_shift_opened [18:17:54]FM_GetShiftState [18:17:54]SAM_PROTO_GetShiftState [18:17:54]wFMCommunicate request_size=4 [18:17:54]MH_SAM_APDU [18:17:54]CAPDU: 80 13 01 00 [18:17:54]Write to MH i2c: E2 08 00 8C 08 80 13 01 00 00 00 00 00 11 [18:17:54]Write i2c OK [18:17:54]MH_I2C_Read... [18:17:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:17:54]Read from MH i2c: E2 [18:17:54]MH_I2C_Read... [18:17:54]Read from MH i2c: E2 0E 00 [18:17:54]MH_I2C_Read... [18:17:54]Read from MH i2c: E2 0E 00 8C 08 00 09 00 01 04 26 72 66 00 00 00 00 90 00 1F [18:17:54]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [18:17:54]wFMCommunicate OK [18:17:54]SAM_PROTO_GetShiftState done [18:17:54]FM_GetShiftState done [18:17:54]req_shift_opened done [18:17:54]requested_item shift.open_date is exist - process it [18:17:54]req_shift_open_date [18:17:54]req_shift_open_date done [18:17:54]produce_requested_data done [18:17:54]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103762,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [18:17:54]process_action_free print_text [18:17:54]json_value_free [18:17:54]json_value_free done [18:17:54]process_json_proto returns [18:17:54]Send response to host [18:17:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103762,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [18:17:54]free response buf [18:17:54]execute_script done [18:17:54]execute_script returns [18:17:54]free content buf [18:17:54]Sock 9.Close socket [18:17:54]Sock 9.Thread stoped [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]accept exits with 8 [18:20:15]New connection [18:20:15]New thread 3066940772 created [18:20:15]Thread 3066797412 joined [18:20:15]Waiting for new connection... [18:20:15] Sock 8.Parse request [18:20:15]Sock 8.Check first char [18:20:15]Sock 8.First char is OK [18:20:15]request: POST /json_proto HTTP/1.0 [18:20:15]Method: POST [18:20:15]URL: /json_proto [18:20:15]Method is POST - this is cgi request [18:20:15]url: /json_proto [18:20:15]query_string will be loaded in cgi processing [18:20:15]execute_cgi json_proto POST (null) [18:20:15]execute_cgi path=json_proto method=POST [18:20:15]POST find Content-Length [18:20:15]Host: 172.17.38.133:8080 [18:20:15]Content-Length: 678 [18:20:15]Content-Type: application/json [18:20:15] [18:20:15]POST finish read [18:20:15]Found Content-Length = 678 [18:20:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673051", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 10.100, "sum" : 670.64, "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" ] } } [18:20:15]execute_script... [18:20:15]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673051", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 10.100, "sum" : 670.64, "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" ] } } [18:20:15]POST & json_proto [18:20:15]process_json_proto [18:20:15]json parsed OK: [18:20:15]protocol is kg_v1.0 [18:20:15]action value=close_receipt [18:20:15]process_action close_receipt [18:20:15]cmd_close_receipt [18:20:15]MH_GetDate [18:20:15]Write to MH i2c: F0 00 00 8D 08 84 [18:20:15]Write i2c OK [18:20:15]MH_I2C_Read... [18:20:15]Read from MH i2c: F0 [18:20:15]MH_I2C_Read... [18:20:15]Read from MH i2c: F0 09 00 [18:20:15]MH_I2C_Read... [18:20:15]Read from MH i2c: F0 09 00 8D 08 00 60 21 73 66 BD 8F 7C 64 13 [18:20:15]GetLastDocTimeStamp 1718820812 [18:20:15]current date 1718821216 [18:20:15]FM_GetShiftState [18:20:15]SAM_PROTO_GetShiftState [18:20:15]wFMCommunicate request_size=4 [18:20:15]MH_SAM_APDU [18:20:15]CAPDU: 80 13 01 00 [18:20:15]Write to MH i2c: E2 08 00 8E 08 80 13 01 00 00 00 00 00 13 [18:20:15]Write i2c OK [18:20:15]MH_I2C_Read... [18:20:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:20:15]Read from MH i2c: E2 [18:20:15]MH_I2C_Read... [18:20:15]Read from MH i2c: E2 0E 00 [18:20:15]MH_I2C_Read... [18:20:15]Read from MH i2c: E2 0E 00 8E 08 00 09 00 01 04 26 72 66 00 00 00 00 90 00 21 [18:20:15]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [18:20:15]wFMCommunicate OK [18:20:15]SAM_PROTO_GetShiftState done [18:20:15]FM_GetShiftState done [18:20:15]opened in 1718756868 [18:20:15]opened+sec_in_day 1718843268 [18:20:15]quantity*price = 67064 [18:20:15]sum+1 = 67065 [18:20:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.64 ИТОГО: 670.00 Внесено: 670.00 СДАЧА: 0.00 НСП 1% : 5.93 НДС 12% : 71.22 Наличными: 670.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 193 19.06.2024 18:20 Смена: 353 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103763 ФПД: 157955117948766 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T182016&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103763&fm=157955117948766&tin=02508201610067®Number=0000000000092785&sum=67000 [18:20:16]StoreToDocumentArchive [18:20:16]shift 353 fd 103763 [18:20:16]save to /storage/0353/doc_00103763 [18:20:16]save last doc name /storage/0353/doc_00103763 to /storage/kkm_last_doc_name [18:20:16]save OK [18:20:16]Clear old archive folders... [18:20:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:20:16]tlvbuf is B6EBE8C0 [18:20:16]SAM_PROTO_ClearQueue [18:20:16]wFMCommunicate request_size=4 [18:20:16]MH_SAM_APDU [18:20:16]CAPDU: 80 09 00 00 [18:20:16]Write to MH i2c: E2 08 00 9B 08 80 09 00 00 00 00 00 00 15 [18:20:16]Write i2c OK [18:20:16]MH_I2C_Read... [18:20:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:20:16]Read from MH i2c: E2 [18:20:16]MH_I2C_Read... [18:20:16]Read from MH i2c: E2 03 00 [18:20:16]MH_I2C_Read... [18:20:16]Read from MH i2c: E2 03 00 9B 08 00 90 00 17 [18:20:16]RAPDU: 90 00 [18:20:16]wFMCommunicate OK [18:20:16]SAM_PROTO_ClearQueue done [18:20:16]KKMCreateOFDPacket [18:20:16]OFDProtocolAddRootSTLVToBuf [18:20:16]FM_MakeSignedData [18:20:16]FM_MakeSignedData [18:20:16]SAM_PROTO_SignData [18:20:16]wFMCommunicate request_size=4 [18:20:16]MH_SAM_APDU [18:20:16]CAPDU: 80 0D 01 02 [18:20:16]Write to MH i2c: E2 08 00 9C 08 80 0D 01 02 00 00 00 00 1D [18:20:16]Write i2c OK [18:20:16]MH_I2C_Read... [18:20:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:20:16]Read from MH i2c: E2 [18:20:16]MH_I2C_Read... [18:20:16]Read from MH i2c: E2 03 00 [18:20:16]MH_I2C_Read... [18:20:16]Read from MH i2c: E2 03 00 9C 08 00 90 00 18 [18:20:16]RAPDU: 90 00 [18:20:16]wFMCommunicate OK [18:20:16]wFMCommunicate request_size=255 [18:20:16]MH_SAM_APDU [18:20: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 74 27 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 F8 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 D2 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 C1 00 00 00 F4 03 04 00 60 21 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 53 95 01 00 35 04 06 00 8F [18:20:16]Write to MH i2c: E2 02 01 9D 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 74 27 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 F8 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 D2 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 C1 00 00 00 F4 03 04 00 60 21 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 53 95 01 00 35 04 06 00 8F 00 00 80 [18:20:16]Write i2c OK [18:20:16]MH_I2C_Read... [18:20:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:20:16]Read from MH i2c: E2 [18:20:16]MH_I2C_Read... [18:20:16]Read from MH i2c: E2 03 00 [18:20:16]MH_I2C_Read... [18:20:16]Read from MH i2c: E2 03 00 9D 08 00 90 00 19 [18:20:16]RAPDU: 90 00 [18:20:16]wFMCommunicate OK [18:20:16]wFMCommunicate request_size=10 [18:20:16]MH_SAM_APDU [18:20:16]CAPDU: 80 0D 02 02 05 A8 CA B2 1F 5E [18:20:16]Write to MH i2c: E2 0D 00 9E 08 80 0D 02 02 05 00 A8 CA B2 1F 5E 00 00 CB [18:20:16]Write i2c OK [18:20:16]MH_I2C_Read... [18:20:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:20:16]Read from MH i2c: E2 [18:20:16]MH_I2C_Read... [18:20:16]Read from MH i2c: E2 03 00 [18:20:16]MH_I2C_Read... [18:20:16]Read from MH i2c: E2 03 00 9E 08 00 90 00 1A [18:20:16]RAPDU: 90 00 [18:20:16]wFMCommunicate OK [18:20:16]wFMCommunicate request_size=4 [18:20:16]MH_SAM_APDU [18:20:16]CAPDU: 80 0D 03 02 [18:20:16]Write to MH i2c: E2 08 00 9F 08 80 0D 03 02 00 00 00 00 22 [18:20:16]Write i2c OK [18:20:16]MH_I2C_Read... [18:20:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:20:16]Read from MH i2c: E2 [18:20:16]MH_I2C_Read... [18:20:16]Read from MH i2c: E2 0B 00 [18:20:16]MH_I2C_Read... [18:20:16]Read from MH i2c: E2 0B 00 9F 08 00 5D 6B 78 E1 20 6D C2 53 90 00 E6 [18:20:16]RAPDU: 5D 6B 78 E1 20 6D C2 53 90 00 [18:20:16]wFMCommunicate OK [18:20:16]SAM_PROTO_SignData done [18:20:16]FM_MakeSignedData done [18:20:16]CreateOFDProtocolMessage [18:20:16]wFMCommunicate request_size=4 [18:20:16]MH_SAM_APDU [18:20:16]CAPDU: 80 11 00 00 [18:20:16]Write to MH i2c: E2 08 00 A0 08 80 11 00 00 00 00 00 00 22 [18:20:16]Write i2c OK [18:20:16]MH_I2C_Read... [18:20:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:20:16]Read from MH i2c: E2 [18:20:16]MH_I2C_Read... [18:20:16]Read from MH i2c: E2 17 00 [18:20:16]MH_I2C_Read... [18:20:16]Read from MH i2c: E2 17 00 A0 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 75 [18:20:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [18:20:16]wFMCommunicate OK [18:20:16]CreateOFDProtocolMessage done [18:20:16]OFDSenderStorePacket 103763 [18:20:16]StoreOFDPacket docnum=103763 [18:20:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 D3 91 07 01 AD 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 74 27 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 F8 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 D2 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 C1 00 00 00 F4 03 04 00 60 21 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 53 95 01 00 35 04 06 00 8F A8 CA B2 1F 5E 5D 6B 78 E1 20 6D C2 53 [18:20:16]CheckFolder [18:20:16]dirname=/storage/ofd_packets [18:20:16]CheckFolder done [18:20:16]ProducePacketName [18:20:16]name=ofd_packets/00103763 [18:20:16]NVStorageSaveData ofd_packets/00103763 [18:20:16]File name is /storage/ofd_packets/00103763 [18:20:16]Write 301 bytes [18:20:16]NVStorageSaveData done [18:20:16]OFDSenderStorePacket done [18:20:16]KKMCreateOFDPacket done [18:20:16]NVStorageSaveData kkm_last_timestamp [18:20:16]File name is /storage/kkm_last_timestamp [18:20:16]Write 4 bytes [18:20:16]NVStorageSaveData done [18:20:16]ExternCall_PrintAddStr [18:20:16]wPrintStart [18:20:16]Write to MH i2c: 01 00 00 A1 08 A9 [18:20:16]Write i2c OK [18:20:16]MH_I2C_Read... [18:20:16]Read from MH i2c: 01 [18:20:16]MH_I2C_Read... [18:20:16]Read from MH i2c: 01 07 00 [18:20:16]MH_I2C_Read... [18:20:16]Read from MH i2c: 01 07 00 A1 08 00 00 00 00 00 FF 0F BE [18:20:17]RasterBufferAndPrint [18:20:17]line Счет N : (1)673051 [18:20:17]line ИНН: 02508201610067 [18:20:17]line Контрольно-Кассовый Чек [18:20:17]line ПРОДАЖА [18:20:17]line ТРК (МРК, ГНК) : 32 [18:20:17]line Товар: 2710124130 [18:20:17]line Аи-92-К-5 [18:20:17]line 10.100 * 66.40 [18:20:17]line = 670.64 [18:20:17]line НДС 12% НСП 1% [18:20:17]line > о реализуемом товаре [18:20:17]line ОКРУГЛЕНИЕ: -0.64 [18:20:17]line ИТОГО: 670.00 [18:20:17]line Внесено: 670.00 [18:20:17]line СДАЧА: 0.00 [18:20:17]line НСП 1% : 5.93 [18:20:17]line НДС 12% : 71.22 [18:20:17]line Наличными: 670.00 [18:20:17]line Безнал.: 0.00 [18:20:17]line Место: АЗС № 120 "Партнер Нефть" [18:20:17]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [18:20:17]line СНО: Общий режим [18:20:17]line Чек 193 19.06.2024 18:20 [18:20:17]line Смена: 353 ФФД: 1.0 [18:20:17]line ЗНМ: 0300000164 [18:20:17]line РНМ: 0000000000092785 [18:20:17]line Версия ККМ: 001 [18:20:17]line ФМ: 0000000000875093 [18:20:17]line ФД: 103763 [18:20:17]line ФПД: 157955117948766 [18:20:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T182016&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103763&fm=157955117948766&tin=02508201610067®Number=0000000000092785&sum=67000 [18:20:17]OFD Sender: Processing packet 103763 [packets to send 17, broken 16] [18:20:17]ProducePacketName [18:20:17]name=ofd_packets/00103763 [18:20:17]OFD Sender: To server: pG, [18:20:17]CommunicateWithHost lk.salyk.kg:30040 [18:20:17]ConnectInit lk.salyk.kg [18:20:17]written 0, free lines is 4095 [18:20:17]Connected sock=10 [18:20:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 D3 91 07 01 AD 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 74 27 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 F8 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 D2 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 C1 00 00 00 F4 03 04 00 60 21 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 53 95 01 00 35 04 06 00 8F A8 CA B2 1F 5E 5D 6B 78 E1 20 6D C2 53 [18:20: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 39 33 4F 00 00 00 80 26 47 00 76 3E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 53 95 01 00 F4 03 04 00 E8 C7 72 66 B6 04 01 00 00 2E AA 0F AB 1A 09 0B 1F [18:20:17]CommunicateWithHost err = 0 [18:20:17]CheckOFDResponse [18:20:17]1017 (14) - 77093643461234 [18:20:17]1041 (16) - 0000000000875093 [18:20:17]1040 (4) - 103763 [18:20:17]1012 (4) - 19.06.2024 11:58 [18:20:17]1206 (1) - 0 [18:20:17]OFD Sender: Remove packet 103763 [18:20:17]ProducePacketName [18:20:17]name=ofd_packets/00103763 [18:20:17]NVStorageDeleteData [18:20:17]Write to MH i2c: 01 00 00 CC 08 D4 [18:20:17]Write i2c OK [18:20:17]MH_I2C_Read... [18:20:17]Read from MH i2c: 01 [18:20:17]MH_I2C_Read... [18:20:17]Read from MH i2c: 01 07 00 [18:20:17]MH_I2C_Read... [18:20:17]Read from MH i2c: 01 07 00 CC 08 00 00 00 00 00 E7 0C CE [18:20:17]RasterBufferAndPrint [18:20:17]line [18:20:17]line [18:20:17]line [18:20:17]line [18:20:17]line [18:20:17]written 0, free lines is 3309 [18:20:17]MH_Cut [18:20:17]Write to MH i2c: D1 01 00 D3 08 01 AD [18:20:17]Write i2c OK [18:20:17]MH_I2C_Read... [18:20:17]Read from MH i2c: D1 [18:20:17]MH_I2C_Read... [18:20:17]Read from MH i2c: D1 01 00 [18:20:17]MH_I2C_Read... [18:20:17]Read from MH i2c: D1 01 00 D3 08 00 AC [18:20:17]Write to MH i2c: 01 00 00 D4 08 DC [18:20:17]Write i2c OK [18:20:17]MH_I2C_Read... [18:20:18]OFD Sender: No OFD packet to send [18:20:18]*** Cut start [18:20:18]*** Partial cut [18:20:18]*** CUTSNS_PIN = 1 [18:20:18]*** CUTSNS_PIN = 0 [18:20:18]*** Brake cut motor [18:20:19]Read from MH i2c: 01 [18:20:19]MH_I2C_Read... [18:20:19]*** Stop cut motor [18:20:19]*** Cut end [18:20:19]Read from MH i2c: 01 07 00 [18:20:19]MH_I2C_Read... [18:20:19]Read from MH i2c: 01 07 00 D4 08 00 00 00 00 00 FF 0F F1 [18:20:19]process_action close_receipt done [18:20:19]requested_data is exist [18:20:19]produce_requested_data [18:20:19]requested_item fm.sn is exist - process it [18:20:19]wFMCommunicate request_size=4 [18:20:19]MH_SAM_APDU [18:20:19]CAPDU: 80 11 00 00 [18:20:19]Write to MH i2c: E2 08 00 D5 08 80 11 00 00 00 00 00 00 57 [18:20:19]Write i2c OK [18:20:19]MH_I2C_Read... [18:20:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:20:19]Read from MH i2c: E2 [18:20:19]MH_I2C_Read... [18:20:19]Read from MH i2c: E2 17 00 [18:20:19]MH_I2C_Read... [18:20:19]Read from MH i2c: E2 17 00 D5 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 AA [18:20:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [18:20:19]wFMCommunicate OK [18:20:19]requested_item fd.num is exist - process it [18:20:19]SAM_PROTO_GetFieldsCounters [18:20:19]wFMCommunicate request_size=4 [18:20:19]MH_SAM_APDU [18:20:19]CAPDU: 80 13 00 00 [18:20:19]Write to MH i2c: E2 08 00 D6 08 80 13 00 00 00 00 00 00 5A [18:20:19]Write i2c OK [18:20:19]MH_I2C_Read... [18:20:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:20:19]Read from MH i2c: E2 [18:20:19]MH_I2C_Read... [18:20:19]Read from MH i2c: E2 62 00 [18:20:19]MH_I2C_Read... [18:20:19]Read from MH i2c: E2 62 00 D6 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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 53 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 C1 00 00 00 5E 04 04 00 C1 00 00 00 57 04 04 00 C2 00 00 00 19 04 04 00 00 00 00 00 90 00 0F [18:20:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 53 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 C1 00 00 00 5E 04 04 00 C1 00 00 00 57 04 04 00 C2 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:20:19]wFMCommunicate OK [18:20:19]SAM_PROTO_GetFieldsCounters done [18:20:19]requested_item shift.num is exist - process it [18:20:19]requested_item shift.opened is exist - process it [18:20:19]req_shift_opened [18:20:19]FM_GetShiftState [18:20:19]SAM_PROTO_GetShiftState [18:20:19]wFMCommunicate request_size=4 [18:20:19]MH_SAM_APDU [18:20:19]CAPDU: 80 13 01 00 [18:20:19]Write to MH i2c: E2 08 00 D7 08 80 13 01 00 00 00 00 00 5C [18:20:19]Write i2c OK [18:20:19]MH_I2C_Read... [18:20:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:20:19]Read from MH i2c: E2 [18:20:19]MH_I2C_Read... [18:20:19]Read from MH i2c: E2 0E 00 [18:20:19]MH_I2C_Read... [18:20:19]Read from MH i2c: E2 0E 00 D7 08 00 09 00 01 04 26 72 66 00 00 00 00 90 00 6A [18:20:19]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [18:20:19]wFMCommunicate OK [18:20:19]SAM_PROTO_GetShiftState done [18:20:19]FM_GetShiftState done [18:20:19]req_shift_opened done [18:20:19]requested_item shift.open_date is exist - process it [18:20:19]req_shift_open_date [18:20:19]req_shift_open_date done [18:20:19]produce_requested_data done [18:20:19]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103763,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [18:20:19]process_action_free close_receipt [18:20:19]json_value_free [18:20:19]json_value_free done [18:20:19]process_json_proto returns [18:20:19]Send response to host [18:20:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103763,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [18:20:19]free response buf [18:20:19]execute_script done [18:20:19]execute_script returns [18:20:19]free content buf [18:20:19]Sock 8.Close socket [18:20:19]Sock 8.Thread stoped [18:20:23]OFD Sender: No OFD packet to send [18:20:28]OFD Sender: No OFD packet to send [18:20:33]OFD Sender: No OFD packet to send [18:20:38]OFD Sender: No OFD packet to send [18:20:43]OFD Sender: No OFD packet to send [18:20:48]OFD Sender: No OFD packet to send [18:20:53]OFD Sender: No OFD packet to send [18:20:58]OFD Sender: No OFD packet to send [18:21:03]OFD Sender: No OFD packet to send [18:21:08]OFD Sender: No OFD packet to send [18:21:13]OFD Sender: No OFD packet to send [18:21:18]OFD Sender: No OFD packet to send [18:21:23]OFD Sender: No OFD packet to send [18:21:28]OFD Sender: No OFD packet to send [18:21:33]OFD Sender: No OFD packet to send [18:21:38]OFD Sender: No OFD packet to send [18:21:43]OFD Sender: No OFD packet to send [18:21:48]OFD Sender: No OFD packet to send [18:21:53]OFD Sender: No OFD packet to send [18:21:58]OFD Sender: No OFD packet to send [18:22:03]OFD Sender: No OFD packet to send [18:22:08]OFD Sender: No OFD packet to send [18:22:13]OFD Sender: No OFD packet to send [18:22:18]OFD Sender: No OFD packet to send [18:22:23]OFD Sender: No OFD packet to send [18:22:28]OFD Sender: No OFD packet to send [18:22:33]OFD Sender: No OFD packet to send [18:22:38]accept exits with 9 [18:22:38]New connection [18:22:38]New thread 3066797412 created [18:22:38]Thread 3066940772 joined [18:22:38]Waiting for new connection... [18:22:38] Sock 9.Parse request [18:22:38]Sock 9.Check first char [18:22:38]Sock 9.First char is OK [18:22:38]request: POST /json_proto HTTP/1.0 [18:22:38]Method: POST [18:22:38]URL: /json_proto [18:22:38]Method is POST - this is cgi request [18:22:38]url: /json_proto [18:22:38]query_string will be loaded in cgi processing [18:22:38]execute_cgi json_proto POST (null) [18:22:38]execute_cgi path=json_proto method=POST [18:22:38]POST find Content-Length [18:22:38]Host: 172.17.38.133:8080 [18:22:38]Content-Length: 682 [18:22:38]Content-Type: application/json [18:22:38] [18:22:38]POST finish read [18:22:38]Found Content-Length = 682 [18:22:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673052", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 6.860, "sum" : 500.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:22:38]execute_script... [18:22: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)673052", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 6.860, "sum" : 500.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:22:38]POST & json_proto [18:22:38]process_json_proto [18:22:38]json parsed OK: [18:22:38]protocol is kg_v1.0 [18:22:38]action value=close_receipt [18:22:38]process_action close_receipt [18:22:38]cmd_close_receipt [18:22:38]MH_GetDate [18:22:38]Write to MH i2c: F0 00 00 D8 08 CF [18:22:38]Write i2c OK [18:22:38]MH_I2C_Read... [18:22:38]Read from MH i2c: F0 [18:22:38]MH_I2C_Read... [18:22:38]Read from MH i2c: F0 09 00 [18:22:38]MH_I2C_Read... [18:22:38]Read from MH i2c: F0 09 00 D8 08 00 EF 21 73 66 BD 8F 7C 64 ED [18:22:38]GetLastDocTimeStamp 1718821216 [18:22:38]current date 1718821359 [18:22:38]FM_GetShiftState [18:22:38]SAM_PROTO_GetShiftState [18:22:38]wFMCommunicate request_size=4 [18:22:38]MH_SAM_APDU [18:22:38]CAPDU: 80 13 01 00 [18:22:38]Write to MH i2c: E2 08 00 D9 08 80 13 01 00 00 00 00 00 5E [18:22:38]Write i2c OK [18:22:38]MH_I2C_Read... [18:22:38]OFD Sender: No OFD packet to send [18:22:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:22:38]Read from MH i2c: E2 [18:22:38]MH_I2C_Read... [18:22:38]Read from MH i2c: E2 0E 00 [18:22:38]MH_I2C_Read... [18:22:38]Read from MH i2c: E2 0E 00 D9 08 00 09 00 01 04 26 72 66 00 00 00 00 90 00 6C [18:22:38]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [18:22:38]wFMCommunicate OK [18:22:38]SAM_PROTO_GetShiftState done [18:22:38]FM_GetShiftState done [18:22:38]opened in 1718756868 [18:22:38]opened+sec_in_day 1718843268 [18:22:38]quantity*price = 50009 [18:22:38]sum+1 = 50010 [18:22:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 194 19.06.2024 18:22 Смена: 353 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103764 ФПД: 274083359502401 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T182239&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103764&fm=274083359502401&tin=02508201610067®Number=0000000000092785&sum=50000 [18:22:39]StoreToDocumentArchive [18:22:39]shift 353 fd 103764 [18:22:39]save to /storage/0353/doc_00103764 [18:22:39]save last doc name /storage/0353/doc_00103764 to /storage/kkm_last_doc_name [18:22:39]save OK [18:22:39]Clear old archive folders... [18:22:39]ProcessDocumentItem done err = 0, tmpTLVsize=252 [18:22:39]tlvbuf is 016A4C10 [18:22:39]SAM_PROTO_ClearQueue [18:22:39]wFMCommunicate request_size=4 [18:22:39]MH_SAM_APDU [18:22:39]CAPDU: 80 09 00 00 [18:22:39]Write to MH i2c: E2 08 00 E6 08 80 09 00 00 00 00 00 00 60 [18:22:39]Write i2c OK [18:22:39]MH_I2C_Read... [18:22:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:22:39]Read from MH i2c: E2 [18:22:39]MH_I2C_Read... [18:22:39]Read from MH i2c: E2 03 00 [18:22:39]MH_I2C_Read... [18:22:39]Read from MH i2c: E2 03 00 E6 08 00 90 00 62 [18:22:39]RAPDU: 90 00 [18:22:39]wFMCommunicate OK [18:22:39]SAM_PROTO_ClearQueue done [18:22:39]KKMCreateOFDPacket [18:22:39]OFDProtocolAddRootSTLVToBuf [18:22:39]FM_MakeSignedData [18:22:39]FM_MakeSignedData [18:22:39]SAM_PROTO_SignData [18:22:39]wFMCommunicate request_size=4 [18:22:39]MH_SAM_APDU [18:22:39]CAPDU: 80 0D 01 02 [18:22:39]Write to MH i2c: E2 08 00 E7 08 80 0D 01 02 00 00 00 00 68 [18:22:39]Write i2c OK [18:22:39]MH_I2C_Read... [18:22:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:22:39]Read from MH i2c: E2 [18:22:39]MH_I2C_Read... [18:22:39]Read from MH i2c: E2 03 00 [18:22:39]MH_I2C_Read... [18:22:39]Read from MH i2c: E2 03 00 E7 08 00 90 00 63 [18:22:39]RAPDU: 90 00 [18:22:39]wFMCommunicate OK [18:22:39]wFMCommunicate request_size=255 [18:22:39]MH_SAM_APDU [18:22:39]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C2 00 00 00 F4 03 04 00 EF 21 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 54 95 01 00 35 04 06 00 [18:22:39]Write to MH i2c: E2 02 01 E8 08 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C2 00 00 00 F4 03 04 00 EF 21 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 54 95 01 00 35 04 06 00 00 00 F7 [18:22:39]Write i2c OK [18:22:39]MH_I2C_Read... [18:22:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:22:39]Read from MH i2c: E2 [18:22:39]MH_I2C_Read... [18:22:39]Read from MH i2c: E2 03 00 [18:22:39]MH_I2C_Read... [18:22:39]Read from MH i2c: E2 03 00 E8 08 00 90 00 64 [18:22:39]RAPDU: 90 00 [18:22:39]wFMCommunicate OK [18:22:39]wFMCommunicate request_size=11 [18:22:39]MH_SAM_APDU [18:22:39]CAPDU: 80 0D 02 02 06 F9 47 01 48 30 41 [18:22:39]Write to MH i2c: E2 0E 00 E9 08 80 0D 02 02 06 00 F9 47 01 48 30 41 00 00 71 [18:22:39]Write i2c OK [18:22:39]MH_I2C_Read... [18:22:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:22:39]Read from MH i2c: E2 [18:22:39]MH_I2C_Read... [18:22:39]Read from MH i2c: E2 03 00 [18:22:39]MH_I2C_Read... [18:22:39]Read from MH i2c: E2 03 00 E9 08 00 90 00 65 [18:22:39]RAPDU: 90 00 [18:22:39]wFMCommunicate OK [18:22:39]wFMCommunicate request_size=4 [18:22:39]MH_SAM_APDU [18:22:39]CAPDU: 80 0D 03 02 [18:22:39]Write to MH i2c: E2 08 00 EA 08 80 0D 03 02 00 00 00 00 6D [18:22:39]Write i2c OK [18:22:39]MH_I2C_Read... [18:22:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:22:39]Read from MH i2c: E2 [18:22:39]MH_I2C_Read... [18:22:39]Read from MH i2c: E2 0B 00 [18:22:39]MH_I2C_Read... [18:22:39]Read from MH i2c: E2 0B 00 EA 08 00 1B B8 E9 6F CA 98 12 4C 90 00 59 [18:22:39]RAPDU: 1B B8 E9 6F CA 98 12 4C 90 00 [18:22:39]wFMCommunicate OK [18:22:39]SAM_PROTO_SignData done [18:22:39]FM_MakeSignedData done [18:22:39]CreateOFDProtocolMessage [18:22:39]wFMCommunicate request_size=4 [18:22:39]MH_SAM_APDU [18:22:39]CAPDU: 80 11 00 00 [18:22:39]Write to MH i2c: E2 08 00 EB 08 80 11 00 00 00 00 00 00 6D [18:22:39]Write i2c OK [18:22:39]MH_I2C_Read... [18:22:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:22:39]Read from MH i2c: E2 [18:22:39]MH_I2C_Read... [18:22:39]Read from MH i2c: E2 17 00 [18:22:39]MH_I2C_Read... [18:22:39]Read from MH i2c: E2 17 00 EB 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 C0 [18:22:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [18:22:39]wFMCommunicate OK [18:22:39]CreateOFDProtocolMessage done [18:22:39]OFDSenderStorePacket 103764 [18:22:39]StoreOFDPacket docnum=103764 [18:22:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 01 63 08 01 0F 81 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C2 00 00 00 F4 03 04 00 EF 21 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 54 95 01 00 35 04 06 00 F9 47 01 48 30 41 1B B8 E9 6F CA 98 12 4C [18:22:39]CheckFolder [18:22:39]dirname=/storage/ofd_packets [18:22:39]CheckFolder done [18:22:39]ProducePacketName [18:22:39]name=ofd_packets/00103764 [18:22:39]NVStorageSaveData ofd_packets/00103764 [18:22:39]File name is /storage/ofd_packets/00103764 [18:22:39]Write 302 bytes [18:22:39]NVStorageSaveData done [18:22:40]OFDSenderStorePacket done [18:22:40]KKMCreateOFDPacket done [18:22:40]NVStorageSaveData kkm_last_timestamp [18:22:40]File name is /storage/kkm_last_timestamp [18:22:40]Write 4 bytes [18:22:40]NVStorageSaveData done [18:22:40]ExternCall_PrintAddStr [18:22:40]wPrintStart [18:22:40]Write to MH i2c: 01 00 00 EC 08 F4 [18:22:40]Write i2c OK [18:22:40]MH_I2C_Read... [18:22:40]Read from MH i2c: 01 [18:22:40]MH_I2C_Read... [18:22:40]Read from MH i2c: 01 07 00 [18:22:40]MH_I2C_Read... [18:22:40]Read from MH i2c: 01 07 00 EC 08 00 00 00 00 00 FF 0F 09 [18:22:40]RasterBufferAndPrint [18:22:40]line Счет N : (1)673052 [18:22:40]line ИНН: 02508201610067 [18:22:40]line Контрольно-Кассовый Чек [18:22:40]line ПРОДАЖА [18:22:40]line ТРК (МРК, ГНК) : 11 [18:22:40]line Товар: 2710194210 [18:22:40]line ДТ(л)-К-5 [18:22:40]line 6.860 * 72.90 [18:22:40]line = 500.09 [18:22:40]line НДС 12% НСП 1% [18:22:40]line > о реализуемом товаре [18:22:40]line ОКРУГЛЕНИЕ: -0.09 [18:22:40]line ИТОГО: 500.00 [18:22:40]line Внесено: 500.00 [18:22:40]line СДАЧА: 0.00 [18:22:40]line НСП 1% : 4.43 [18:22:40]line НДС 12% : 53.11 [18:22:40]line Наличными: 500.00 [18:22:40]line Безнал.: 0.00 [18:22:40]line Место: АЗС № 120 "Партнер Нефть" [18:22:40]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [18:22:40]line СНО: Общий режим [18:22:40]line Чек 194 19.06.2024 18:22 [18:22:40]line Смена: 353 ФФД: 1.0 [18:22:40]line ЗНМ: 0300000164 [18:22:40]line РНМ: 0000000000092785 [18:22:40]line Версия ККМ: 001 [18:22:40]line ФМ: 0000000000875093 [18:22:40]line ФД: 103764 [18:22:40]line ФПД: 274083359502401 [18:22:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T182239&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103764&fm=274083359502401&tin=02508201610067®Number=0000000000092785&sum=50000 [18:22:40]OFD Sender: Processing packet 103764 [packets to send 17, broken 16] [18:22:40]ProducePacketName [18:22:40]name=ofd_packets/00103764 [18:22:40]OFD Sender: To server: pG, [18:22:40]CommunicateWithHost lk.salyk.kg:30040 [18:22:40]ConnectInit lk.salyk.kg [18:22:40]written 0, free lines is 4095 [18:22:40]Connected sock=10 [18:22: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 39 33 10 01 00 00 01 63 08 01 0F 81 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C2 00 00 00 F4 03 04 00 EF 21 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 54 95 01 00 35 04 06 00 F9 47 01 48 30 41 1B B8 E9 6F CA 98 12 4C [18:22: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 39 33 4F 00 00 00 13 29 47 00 C0 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 39 33 10 04 04 00 54 95 01 00 F4 03 04 00 77 C8 72 66 B6 04 01 00 00 14 71 2D 0E 36 77 1A EB [18:22:40]CommunicateWithHost err = 0 [18:22:40]CheckOFDResponse [18:22:40]1017 (14) - 77093643461234 [18:22:40]1041 (16) - 0000000000875093 [18:22:40]1040 (4) - 103764 [18:22:40]1012 (4) - 19.06.2024 12:00 [18:22:40]1206 (1) - 0 [18:22:40]OFD Sender: Remove packet 103764 [18:22:40]ProducePacketName [18:22:40]name=ofd_packets/00103764 [18:22:40]NVStorageDeleteData [18:22:40]Write to MH i2c: 01 00 00 17 09 20 [18:22:40]Write i2c OK [18:22:40]MH_I2C_Read... [18:22:40]Read from MH i2c: 01 [18:22:40]MH_I2C_Read... [18:22:40]Read from MH i2c: 01 07 00 [18:22:40]MH_I2C_Read... [18:22:40]Read from MH i2c: 01 07 00 17 09 00 00 00 00 00 DC 0C 0F [18:22:40]RasterBufferAndPrint [18:22:40]line [18:22:40]line [18:22:40]line [18:22:40]line [18:22:40]line [18:22:40]written 0, free lines is 3298 [18:22:40]MH_Cut [18:22:40]Write to MH i2c: D1 01 00 1E 09 01 F9 [18:22:40]Write i2c OK [18:22:40]MH_I2C_Read... [18:22:40]Read from MH i2c: D1 [18:22:40]MH_I2C_Read... [18:22:40]Read from MH i2c: D1 01 00 [18:22:40]MH_I2C_Read... [18:22:40]Read from MH i2c: D1 01 00 1E 09 00 F8 [18:22:40]Write to MH i2c: 01 00 00 1F 09 28 [18:22:40]Write i2c OK [18:22:40]MH_I2C_Read... [18:22:41]OFD Sender: No OFD packet to send [18:22:41]*** Cut start [18:22:41]*** Partial cut [18:22:41]*** CUTSNS_PIN = 1 [18:22:41]*** CUTSNS_PIN = 0 [18:22:41]*** Brake cut motor [18:22:42]Read from MH i2c: 01 [18:22:42]MH_I2C_Read... [18:22:42]*** Stop cut motor [18:22:42]*** Cut end [18:22:42]Read from MH i2c: 01 07 00 [18:22:42]MH_I2C_Read... [18:22:42]Read from MH i2c: 01 07 00 1F 09 00 00 00 00 00 FF 0F 3D [18:22:42]process_action close_receipt done [18:22:42]requested_data is exist [18:22:42]produce_requested_data [18:22:42]requested_item fm.sn is exist - process it [18:22:42]wFMCommunicate request_size=4 [18:22:42]MH_SAM_APDU [18:22:42]CAPDU: 80 11 00 00 [18:22:42]Write to MH i2c: E2 08 00 20 09 80 11 00 00 00 00 00 00 A3 [18:22:42]Write i2c OK [18:22:42]MH_I2C_Read... [18:22:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:22:42]Read from MH i2c: E2 [18:22:42]MH_I2C_Read... [18:22:42]Read from MH i2c: E2 17 00 [18:22:42]MH_I2C_Read... [18:22:42]Read from MH i2c: E2 17 00 20 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 F6 [18:22:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [18:22:42]wFMCommunicate OK [18:22:42]requested_item fd.num is exist - process it [18:22:42]SAM_PROTO_GetFieldsCounters [18:22:42]wFMCommunicate request_size=4 [18:22:42]MH_SAM_APDU [18:22:42]CAPDU: 80 13 00 00 [18:22:42]Write to MH i2c: E2 08 00 21 09 80 13 00 00 00 00 00 00 A6 [18:22:42]Write i2c OK [18:22:42]MH_I2C_Read... [18:22:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:22:42]Read from MH i2c: E2 [18:22:42]MH_I2C_Read... [18:22:42]Read from MH i2c: E2 62 00 [18:22:42]MH_I2C_Read... [18:22:42]Read from MH i2c: E2 62 00 21 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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 54 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 C2 00 00 00 5E 04 04 00 C2 00 00 00 57 04 04 00 C3 00 00 00 19 04 04 00 00 00 00 00 90 00 5F [18:22: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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 54 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 C2 00 00 00 5E 04 04 00 C2 00 00 00 57 04 04 00 C3 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:22:42]wFMCommunicate OK [18:22:42]SAM_PROTO_GetFieldsCounters done [18:22:42]requested_item shift.num is exist - process it [18:22:42]requested_item shift.opened is exist - process it [18:22:42]req_shift_opened [18:22:42]FM_GetShiftState [18:22:42]SAM_PROTO_GetShiftState [18:22:42]wFMCommunicate request_size=4 [18:22:42]MH_SAM_APDU [18:22:42]CAPDU: 80 13 01 00 [18:22:42]Write to MH i2c: E2 08 00 22 09 80 13 01 00 00 00 00 00 A8 [18:22:42]Write i2c OK [18:22:42]MH_I2C_Read... [18:22:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:22:42]Read from MH i2c: E2 [18:22:42]MH_I2C_Read... [18:22:42]Read from MH i2c: E2 0E 00 [18:22:42]MH_I2C_Read... [18:22:42]Read from MH i2c: E2 0E 00 22 09 00 09 00 01 04 26 72 66 00 00 00 00 90 00 B6 [18:22:42]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [18:22:42]wFMCommunicate OK [18:22:42]SAM_PROTO_GetShiftState done [18:22:42]FM_GetShiftState done [18:22:42]req_shift_opened done [18:22:42]requested_item shift.open_date is exist - process it [18:22:42]req_shift_open_date [18:22:42]req_shift_open_date done [18:22:42]produce_requested_data done [18:22:42]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103764,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [18:22:42]process_action_free close_receipt [18:22:42]json_value_free [18:22:42]json_value_free done [18:22:42]process_json_proto returns [18:22:42]Send response to host [18:22:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103764,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [18:22:42]free response buf [18:22:42]execute_script done [18:22:42]execute_script returns [18:22:42]free content buf [18:22:42]Sock 9.Close socket [18:22:42]Sock 9.Thread stoped [18:22:46]OFD Sender: No OFD packet to send [18:22:51]OFD Sender: No OFD packet to send [18:22:56]OFD Sender: No OFD packet to send [18:23:01]OFD Sender: No OFD packet to send [18:23:06]OFD Sender: No OFD packet to send [18:23:11]OFD Sender: No OFD packet to send [18:23:16]OFD Sender: No OFD packet to send [18:23:21]OFD Sender: No OFD packet to send [18:23:26]OFD Sender: No OFD packet to send [18:23:31]OFD Sender: No OFD packet to send [18:23:36]OFD Sender: No OFD packet to send [18:23:41]OFD Sender: No OFD packet to send [18:23:46]OFD Sender: No OFD packet to send [18:23:51]OFD Sender: No OFD packet to send [18:23:56]OFD Sender: No OFD packet to send [18:24:01]OFD Sender: No OFD packet to send [18:24:06]OFD Sender: No OFD packet to send [18:24:11]OFD Sender: No OFD packet to send [18:24:16]OFD Sender: No OFD packet to send [18:24:21]OFD Sender: No OFD packet to send [18:24:26]OFD Sender: No OFD packet to send [18:24:31]OFD Sender: No OFD packet to send [18:24:36]OFD Sender: No OFD packet to send [18:24:41]OFD Sender: No OFD packet to send [18:24:46]OFD Sender: No OFD packet to send [18:24:51]OFD Sender: No OFD packet to send [18:24:56]OFD Sender: No OFD packet to send [18:25:01]OFD Sender: No OFD packet to send [18:25:06]OFD Sender: No OFD packet to send [18:25:11]OFD Sender: No OFD packet to send [18:25:16]OFD Sender: No OFD packet to send [18:25:21]OFD Sender: No OFD packet to send [18:25:26]OFD Sender: No OFD packet to send [18:25:31]OFD Sender: No OFD packet to send [18:25:36]OFD Sender: No OFD packet to send [18:25:41]OFD Sender: No OFD packet to send [18:25:46]OFD Sender: No OFD packet to send [18:25:51]OFD Sender: No OFD packet to send [18:25:56]OFD Sender: No OFD packet to send [18:26:01]OFD Sender: No OFD packet to send [18:26:06]OFD Sender: No OFD packet to send [18:26:11]OFD Sender: No OFD packet to send [18:26:16]OFD Sender: No OFD packet to send [18:26:21]OFD Sender: No OFD packet to send [18:26:26]OFD Sender: No OFD packet to send [18:26:31]OFD Sender: No OFD packet to send [18:26:36]OFD Sender: No OFD packet to send [18:26:41]OFD Sender: No OFD packet to send [18:26:46]OFD Sender: No OFD packet to send [18:26:51]OFD Sender: No OFD packet to send [18:26:56]OFD Sender: No OFD packet to send [18:27:01]OFD Sender: No OFD packet to send [18:27:06]OFD Sender: No OFD packet to send [18:27:11]OFD Sender: No OFD packet to send [18:27:16]OFD Sender: No OFD packet to send [18:27:21]OFD Sender: No OFD packet to send [18:27:26]OFD Sender: No OFD packet to send [18:27:31]OFD Sender: No OFD packet to send [18:27:36]OFD Sender: No OFD packet to send [18:27:41]OFD Sender: No OFD packet to send [18:27:46]OFD Sender: No OFD packet to send [18:27:51]OFD Sender: No OFD packet to send [18:27:56]OFD Sender: No OFD packet to send [18:28:01]OFD Sender: No OFD packet to send [18:28:06]OFD Sender: No OFD packet to send [18:28:11]OFD Sender: No OFD packet to send [18:28:16]OFD Sender: No OFD packet to send [18:28:21]OFD Sender: No OFD packet to send [18:28:26]OFD Sender: No OFD packet to send [18:28:31]OFD Sender: No OFD packet to send [18:28:36]OFD Sender: No OFD packet to send [18:28:41]OFD Sender: No OFD packet to send [18:28:45]accept exits with 8 [18:28:45]New connection [18:28:45]New thread 3066940772 created [18:28:45]Thread 3066797412 joined [18:28:45]Waiting for new connection... [18:28:45] Sock 8.Parse request [18:28:45]Sock 8.Check first char [18:28:45]Sock 8.First char is OK [18:28:45]request: POST /json_proto HTTP/1.0 [18:28:45]Method: POST [18:28:45]URL: /json_proto [18:28:45]Method is POST - this is cgi request [18:28:45]url: /json_proto [18:28:45]query_string will be loaded in cgi processing [18:28:45]execute_cgi json_proto POST (null) [18:28:45]execute_cgi path=json_proto method=POST [18:28:45]POST find Content-Length [18:28:45]Host: 172.17.38.133:8080 [18:28:45]Content-Length: 647 [18:28:45]Content-Type: application/json [18:28:45] [18:28:45]POST finish read [18:28:45]Found Content-Length = 647 [18:28:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673053", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 50.000, "sum" : 3645.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 3645.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:28:45]execute_script... [18:28:45]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673053", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 50.000, "sum" : 3645.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 3645.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:28:45]POST & json_proto [18:28:45]process_json_proto [18:28:45]json parsed OK: [18:28:45]protocol is kg_v1.0 [18:28:45]action value=close_receipt [18:28:45]process_action close_receipt [18:28:45]cmd_close_receipt [18:28:45]MH_GetDate [18:28:45]Write to MH i2c: F0 00 00 23 09 1B [18:28:45]Write i2c OK [18:28:45]MH_I2C_Read... [18:28:45]Read from MH i2c: F0 [18:28:45]MH_I2C_Read... [18:28:45]Read from MH i2c: F0 09 00 [18:28:45]MH_I2C_Read... [18:28:45]Read from MH i2c: F0 09 00 23 09 00 5E 23 73 66 BD 8F 7C 64 AA [18:28:45]GetLastDocTimeStamp 1718821359 [18:28:45]current date 1718821726 [18:28:45]FM_GetShiftState [18:28:45]SAM_PROTO_GetShiftState [18:28:45]wFMCommunicate request_size=4 [18:28:45]MH_SAM_APDU [18:28:45]CAPDU: 80 13 01 00 [18:28:45]Write to MH i2c: E2 08 00 24 09 80 13 01 00 00 00 00 00 AA [18:28:45]Write i2c OK [18:28:45]MH_I2C_Read... [18:28:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:28:45]Read from MH i2c: E2 [18:28:45]MH_I2C_Read... [18:28:45]Read from MH i2c: E2 0E 00 [18:28:45]MH_I2C_Read... [18:28:45]Read from MH i2c: E2 0E 00 24 09 00 09 00 01 04 26 72 66 00 00 00 00 90 00 B8 [18:28:45]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [18:28:45]wFMCommunicate OK [18:28:45]SAM_PROTO_GetShiftState done [18:28:45]FM_GetShiftState done [18:28:45]opened in 1718756868 [18:28:45]opened+sec_in_day 1718843268 [18:28:45]quantity*price = 364500 [18:28:45]sum+1 = 364501 [18:28:45]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 3645.00 НСП 1% : 32.26 НДС 12% : 387.08 Наличными: 3645.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 195 19.06.2024 18:28 Смена: 353 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103765 ФПД: 211464977512979 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T182846&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103765&fm=211464977512979&tin=02508201610067®Number=0000000000092785&sum=364500 [18:28:46]StoreToDocumentArchive [18:28:46]shift 353 fd 103765 [18:28:46]save to /storage/0353/doc_00103765 [18:28:46]save last doc name /storage/0353/doc_00103765 to /storage/kkm_last_doc_name [18:28:46]save OK [18:28:46]Clear old archive folders... [18:28:46]ProcessDocumentItem done err = 0, tmpTLVsize=252 [18:28:46]tlvbuf is 01676DB0 [18:28:46]SAM_PROTO_ClearQueue [18:28:46]wFMCommunicate request_size=4 [18:28:46]MH_SAM_APDU [18:28:46]CAPDU: 80 09 00 00 [18:28:46]Write to MH i2c: E2 08 00 31 09 80 09 00 00 00 00 00 00 AC [18:28:46]Write i2c OK [18:28:46]MH_I2C_Read... [18:28:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:28:46]Read from MH i2c: E2 [18:28:46]MH_I2C_Read... [18:28:46]Read from MH i2c: E2 03 00 [18:28:46]MH_I2C_Read... [18:28:46]Read from MH i2c: E2 03 00 31 09 00 90 00 AE [18:28:46]RAPDU: 90 00 [18:28:46]wFMCommunicate OK [18:28:46]SAM_PROTO_ClearQueue done [18:28:46]KKMCreateOFDPacket [18:28:46]OFDProtocolAddRootSTLVToBuf [18:28:46]FM_MakeSignedData [18:28:46]FM_MakeSignedData [18:28:46]SAM_PROTO_SignData [18:28:46]wFMCommunicate request_size=4 [18:28:46]MH_SAM_APDU [18:28:46]CAPDU: 80 0D 01 02 [18:28:46]Write to MH i2c: E2 08 00 32 09 80 0D 01 02 00 00 00 00 B4 [18:28:46]Write i2c OK [18:28:46]MH_I2C_Read... [18:28:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:28:46]Read from MH i2c: E2 [18:28:46]MH_I2C_Read... [18:28:46]Read from MH i2c: E2 03 00 [18:28:46]MH_I2C_Read... [18:28:46]Read from MH i2c: E2 03 00 32 09 00 90 00 AF [18:28:46]RAPDU: 90 00 [18:28:46]wFMCommunicate OK [18:28:46]wFMCommunicate request_size=255 [18:28:46]MH_SAM_APDU [18:28:46]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 50 C3 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 D4 8F 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 8F 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9A 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 34 97 00 00 00 00 07 04 06 00 D4 8F 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C3 00 00 00 F4 03 04 00 5E 23 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 55 95 01 00 35 04 06 00 [18:28:46]Write to MH i2c: E2 02 01 33 09 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 50 C3 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 D4 8F 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 8F 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9A 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 34 97 00 00 00 00 07 04 06 00 D4 8F 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C3 00 00 00 F4 03 04 00 5E 23 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 55 95 01 00 35 04 06 00 00 00 BB [18:28:46]Write i2c OK [18:28:46]MH_I2C_Read... [18:28:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:28:47]Read from MH i2c: E2 [18:28:47]MH_I2C_Read... [18:28:47]Read from MH i2c: E2 03 00 [18:28:47]MH_I2C_Read... [18:28:47]Read from MH i2c: E2 03 00 33 09 00 90 00 B0 [18:28:47]RAPDU: 90 00 [18:28:47]wFMCommunicate OK [18:28:47]wFMCommunicate request_size=11 [18:28:47]MH_SAM_APDU [18:28:47]CAPDU: 80 0D 02 02 06 C0 53 86 DD FA 13 [18:28:47]Write to MH i2c: E2 0E 00 34 09 80 0D 02 02 06 00 C0 53 86 DD FA 13 00 00 46 [18:28:47]Write i2c OK [18:28:47]MH_I2C_Read... [18:28:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:28:47]Read from MH i2c: E2 [18:28:47]MH_I2C_Read... [18:28:47]Read from MH i2c: E2 03 00 [18:28:47]MH_I2C_Read... [18:28:47]Read from MH i2c: E2 03 00 34 09 00 90 00 B1 [18:28:47]RAPDU: 90 00 [18:28:47]wFMCommunicate OK [18:28:47]wFMCommunicate request_size=4 [18:28:47]MH_SAM_APDU [18:28:47]CAPDU: 80 0D 03 02 [18:28:47]Write to MH i2c: E2 08 00 35 09 80 0D 03 02 00 00 00 00 B9 [18:28:47]Write i2c OK [18:28:47]MH_I2C_Read... [18:28:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:28:47]Read from MH i2c: E2 [18:28:47]MH_I2C_Read... [18:28:47]Read from MH i2c: E2 0B 00 [18:28:47]MH_I2C_Read... [18:28:47]Read from MH i2c: E2 0B 00 35 09 00 1D 38 24 89 D9 27 B4 EB 90 00 5B [18:28:47]RAPDU: 1D 38 24 89 D9 27 B4 EB 90 00 [18:28:47]wFMCommunicate OK [18:28:47]SAM_PROTO_SignData done [18:28:47]FM_MakeSignedData done [18:28:47]CreateOFDProtocolMessage [18:28:47]wFMCommunicate request_size=4 [18:28:47]MH_SAM_APDU [18:28:47]CAPDU: 80 11 00 00 [18:28:47]Write to MH i2c: E2 08 00 36 09 80 11 00 00 00 00 00 00 B9 [18:28:47]Write i2c OK [18:28:47]MH_I2C_Read... [18:28:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:28:47]Read from MH i2c: E2 [18:28:47]MH_I2C_Read... [18:28:47]Read from MH i2c: E2 17 00 [18:28:47]MH_I2C_Read... [18:28:47]Read from MH i2c: E2 17 00 36 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 0C [18:28:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [18:28:47]wFMCommunicate OK [18:28:47]CreateOFDProtocolMessage done [18:28:47]OFDSenderStorePacket 103765 [18:28:47]StoreOFDPacket docnum=103765 [18:28:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 EE 34 08 01 57 FB 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 50 C3 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 D4 8F 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 8F 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9A 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 34 97 00 00 00 00 07 04 06 00 D4 8F 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C3 00 00 00 F4 03 04 00 5E 23 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 55 95 01 00 35 04 06 00 C0 53 86 DD FA 13 1D 38 24 89 D9 27 B4 EB [18:28:47]CheckFolder [18:28:47]dirname=/storage/ofd_packets [18:28:47]CheckFolder done [18:28:47]ProducePacketName [18:28:47]name=ofd_packets/00103765 [18:28:47]NVStorageSaveData ofd_packets/00103765 [18:28:47]File name is /storage/ofd_packets/00103765 [18:28:47]Write 302 bytes [18:28:47]NVStorageSaveData done [18:28:47]OFDSenderStorePacket done [18:28:47]KKMCreateOFDPacket done [18:28:47]NVStorageSaveData kkm_last_timestamp [18:28:47]File name is /storage/kkm_last_timestamp [18:28:47]Write 4 bytes [18:28:47]NVStorageSaveData done [18:28:47]ExternCall_PrintAddStr [18:28:47]wPrintStart [18:28:47]Write to MH i2c: 01 00 00 37 09 40 [18:28:47]Write i2c OK [18:28:47]MH_I2C_Read... [18:28:47]Read from MH i2c: 01 [18:28:47]MH_I2C_Read... [18:28:47]Read from MH i2c: 01 07 00 [18:28:47]MH_I2C_Read... [18:28:47]Read from MH i2c: 01 07 00 37 09 00 00 00 00 00 FF 0F 55 [18:28:47]RasterBufferAndPrint [18:28:47]line Счет N : (1)673053 [18:28:47]line ИНН: 02508201610067 [18:28:47]line Контрольно-Кассовый Чек [18:28:47]line ПРОДАЖА [18:28:47]line ТРК (МРК, ГНК) : 21 [18:28:47]line Товар: 2710194210 [18:28:47]line ДТ(л)-К-5 [18:28:47]line 50.000 * 72.90 [18:28:47]line = 3645.00 [18:28:47]line НДС 12% НСП 1% [18:28:47]line > о реализуемом товаре [18:28:47]line ИТОГО: 3645.00 [18:28:47]line НСП 1% : 32.26 [18:28:47]line НДС 12% : 387.08 [18:28:47]line Наличными: 3645.00 [18:28:47]line Безнал.: 0.00 [18:28:47]line Место: АЗС № 120 "Партнер Нефть" [18:28:47]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [18:28:47]line СНО: Общий режим [18:28:47]line Чек 195 19.06.2024 18:28 [18:28:47]line Смена: 353 ФФД: 1.0 [18:28:47]line ЗНМ: 0300000164 [18:28:47]line РНМ: 0000000000092785 [18:28:47]line Версия ККМ: 001 [18:28:47]line ФМ: 0000000000875093 [18:28:47]line ФД: 103765 [18:28:47]line ФПД: 211464977512979 [18:28:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T182846&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103765&fm=211464977512979&tin=02508201610067®Number=0000000000092785&sum=364500 [18:28:47]OFD Sender: Processing packet 103765 [packets to send 17, broken 16] [18:28:47]ProducePacketName [18:28:47]name=ofd_packets/00103765 [18:28:47]OFD Sender: To server: pG, [18:28:47]CommunicateWithHost lk.salyk.kg:30040 [18:28:47]ConnectInit lk.salyk.kg [18:28:47]written 0, free lines is 4095 [18:28:47]Connected sock=10 [18:28:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 EE 34 08 01 57 FB 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 50 C3 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 D4 8F 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 8F 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9A 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 34 97 00 00 00 00 07 04 06 00 D4 8F 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C3 00 00 00 F4 03 04 00 5E 23 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 55 95 01 00 35 04 06 00 C0 53 86 DD FA 13 1D 38 24 89 D9 27 B4 EB [18:28:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 4A DF 47 00 2C 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 39 33 10 04 04 00 55 95 01 00 F4 03 04 00 E6 C9 72 66 B6 04 01 00 00 E2 2A 60 47 12 D0 FB 38 [18:28:47]CommunicateWithHost err = 0 [18:28:47]CheckOFDResponse [18:28:47]1017 (14) - 77093643461234 [18:28:47]1041 (16) - 0000000000875093 [18:28:47]1040 (4) - 103765 [18:28:47]1012 (4) - 19.06.2024 12:07 [18:28:47]1206 (1) - 0 [18:28:47]OFD Sender: Remove packet 103765 [18:28:47]ProducePacketName [18:28:47]name=ofd_packets/00103765 [18:28:47]NVStorageDeleteData [18:28:47]Write to MH i2c: 01 00 00 5F 09 68 [18:28:47]Write i2c OK [18:28:47]MH_I2C_Read... [18:28:47]Read from MH i2c: 01 [18:28:47]MH_I2C_Read... [18:28:47]Read from MH i2c: 01 07 00 [18:28:47]MH_I2C_Read... [18:28:47]Read from MH i2c: 01 07 00 5F 09 00 00 00 00 00 0C 0D 88 [18:28:47]RasterBufferAndPrint [18:28:47]line [18:28:47]line [18:28:47]line [18:28:47]line [18:28:47]line [18:28:47]written 0, free lines is 3346 [18:28:47]MH_Cut [18:28:47]Write to MH i2c: D1 01 00 66 09 01 41 [18:28:47]Write i2c OK [18:28:47]MH_I2C_Read... [18:28:47]Read from MH i2c: D1 [18:28:47]MH_I2C_Read... [18:28:47]Read from MH i2c: D1 01 00 [18:28:47]MH_I2C_Read... [18:28:47]Read from MH i2c: D1 01 00 66 09 00 40 [18:28:47]Write to MH i2c: 01 00 00 67 09 70 [18:28:47]Write i2c OK [18:28:47]MH_I2C_Read... [18:28:48]OFD Sender: No OFD packet to send [18:28:48]*** Cut start [18:28:48]*** Partial cut [18:28:48]*** CUTSNS_PIN = 1 [18:28:48]*** CUTSNS_PIN = 0 [18:28:48]*** Brake cut motor [18:28:49]Read from MH i2c: 01 [18:28:49]MH_I2C_Read... [18:28:49]*** Stop cut motor [18:28:49]*** Cut end [18:28:49]Read from MH i2c: 01 07 00 [18:28:49]MH_I2C_Read... [18:28:49]Read from MH i2c: 01 07 00 67 09 00 00 00 00 00 FF 0F 85 [18:28:49]process_action close_receipt done [18:28:49]requested_data is exist [18:28:49]produce_requested_data [18:28:49]requested_item fm.sn is exist - process it [18:28:49]wFMCommunicate request_size=4 [18:28:49]MH_SAM_APDU [18:28:49]CAPDU: 80 11 00 00 [18:28:49]Write to MH i2c: E2 08 00 68 09 80 11 00 00 00 00 00 00 EB [18:28:49]Write i2c OK [18:28:49]MH_I2C_Read... [18:28:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:28:49]Read from MH i2c: E2 [18:28:49]MH_I2C_Read... [18:28:49]Read from MH i2c: E2 17 00 [18:28:49]MH_I2C_Read... [18:28:49]Read from MH i2c: E2 17 00 68 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 3E [18:28:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [18:28:49]wFMCommunicate OK [18:28:49]requested_item fd.num is exist - process it [18:28:49]SAM_PROTO_GetFieldsCounters [18:28:49]wFMCommunicate request_size=4 [18:28:49]MH_SAM_APDU [18:28:49]CAPDU: 80 13 00 00 [18:28:49]Write to MH i2c: E2 08 00 69 09 80 13 00 00 00 00 00 00 EE [18:28:49]Write i2c OK [18:28:49]MH_I2C_Read... [18:28:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:28:49]Read from MH i2c: E2 [18:28:49]MH_I2C_Read... [18:28:49]Read from MH i2c: E2 62 00 [18:28:49]MH_I2C_Read... [18:28:49]Read from MH i2c: E2 62 00 69 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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 55 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 C3 00 00 00 5E 04 04 00 C3 00 00 00 57 04 04 00 C4 00 00 00 19 04 04 00 00 00 00 00 90 00 AB [18:28: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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 55 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 C3 00 00 00 5E 04 04 00 C3 00 00 00 57 04 04 00 C4 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:28:49]wFMCommunicate OK [18:28:49]SAM_PROTO_GetFieldsCounters done [18:28:49]requested_item shift.num is exist - process it [18:28:49]requested_item shift.opened is exist - process it [18:28:49]req_shift_opened [18:28:49]FM_GetShiftState [18:28:49]SAM_PROTO_GetShiftState [18:28:49]wFMCommunicate request_size=4 [18:28:49]MH_SAM_APDU [18:28:49]CAPDU: 80 13 01 00 [18:28:49]Write to MH i2c: E2 08 00 6A 09 80 13 01 00 00 00 00 00 F0 [18:28:49]Write i2c OK [18:28:49]MH_I2C_Read... [18:28:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:28:49]Read from MH i2c: E2 [18:28:49]MH_I2C_Read... [18:28:49]Read from MH i2c: E2 0E 00 [18:28:49]MH_I2C_Read... [18:28:49]Read from MH i2c: E2 0E 00 6A 09 00 09 00 01 04 26 72 66 00 00 00 00 90 00 FE [18:28:49]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [18:28:49]wFMCommunicate OK [18:28:49]SAM_PROTO_GetShiftState done [18:28:49]FM_GetShiftState done [18:28:49]req_shift_opened done [18:28:49]requested_item shift.open_date is exist - process it [18:28:49]req_shift_open_date [18:28:49]req_shift_open_date done [18:28:49]produce_requested_data done [18:28:49]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103765,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [18:28:49]process_action_free close_receipt [18:28:49]json_value_free [18:28:49]json_value_free done [18:28:49]process_json_proto returns [18:28:49]Send response to host [18:28:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103765,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [18:28:49]free response buf [18:28:49]execute_script done [18:28:49]execute_script returns [18:28:49]free content buf [18:28:49]Sock 8.Close socket [18:28:49]Sock 8.Thread stoped [18:28:53]OFD Sender: No OFD packet to send [18:28:58]OFD Sender: No OFD packet to send [18:29:03]OFD Sender: No OFD packet to send [18:29:08]OFD Sender: No OFD packet to send [18:29:13]OFD Sender: No OFD packet to send [18:29:18]OFD Sender: No OFD packet to send [18:29:23]OFD Sender: No OFD packet to send [18:29:28]OFD Sender: No OFD packet to send [18:29:33]OFD Sender: No OFD packet to send [18:29:38]OFD Sender: No OFD packet to send [18:29:43]OFD Sender: No OFD packet to send [18:29:48]OFD Sender: No OFD packet to send [18:29:53]OFD Sender: No OFD packet to send [18:29:58]OFD Sender: No OFD packet to send [18:30:03]OFD Sender: No OFD packet to send [18:30:05]accept exits with 9 [18:30:05]New connection [18:30:05]New thread 3066797412 created [18:30:05]Thread 3066940772 joined [18:30:05]Waiting for new connection... [18:30:05] Sock 9.Parse request [18:30:05]Sock 9.Check first char [18:30:05]Sock 9.First char is OK [18:30:05]request: POST /json_proto HTTP/1.0 [18:30:05]Method: POST [18:30:05]URL: /json_proto [18:30:05]Method is POST - this is cgi request [18:30:05]url: /json_proto [18:30:05]query_string will be loaded in cgi processing [18:30:05]execute_cgi json_proto POST (null) [18:30:05]execute_cgi path=json_proto method=POST [18:30:05]POST find Content-Length [18:30:05]Host: 172.17.38.133:8080 [18:30:05]Content-Length: 978 [18:30:05]Content-Type: application/json [18:30:05] [18:30:05]POST finish read [18:30:05]Found Content-Length = 978 [18:30:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184101", "tax_sys" : 0, "items" : [ { "code": "4630056952082", "name": "\u041F\u0435\u0447\u0435\u043D\u044C\u0435 \u042E\u0431\u0438\u043B\u0435\u0439\u043D\u043E\u0435 \u0422\u043E\u0440\u0436\u0435\u0441\u0442\u0432\u043E 120\u0433", "price" : 59.00, "quantity" : 1.000, "sum" : 59.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036210013", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E (GABB TRADE)", "price" : 115.00, "quantity" : 2.000, "sum" : 230.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 289.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:30:05]execute_script... [18:30: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 : (3)184101", "tax_sys" : 0, "items" : [ { "code": "4630056952082", "name": "\u041F\u0435\u0447\u0435\u043D\u044C\u0435 \u042E\u0431\u0438\u043B\u0435\u0439\u043D\u043E\u0435 \u0422\u043E\u0440\u0436\u0435\u0441\u0442\u0432\u043E 120\u0433", "price" : 59.00, "quantity" : 1.000, "sum" : 59.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036210013", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E (GABB TRADE)", "price" : 115.00, "quantity" : 2.000, "sum" : 230.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 289.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:30:05]POST & json_proto [18:30:05]process_json_proto [18:30:05]json parsed OK: [18:30:05]protocol is kg_v1.0 [18:30:05]action value=close_receipt [18:30:05]process_action close_receipt [18:30:05]cmd_close_receipt [18:30:05]MH_GetDate [18:30:05]Write to MH i2c: F0 00 00 6B 09 63 [18:30:05]Write i2c OK [18:30:05]MH_I2C_Read... [18:30:05]Read from MH i2c: F0 [18:30:05]MH_I2C_Read... [18:30:05]Read from MH i2c: F0 09 00 [18:30:05]MH_I2C_Read... [18:30:05]Read from MH i2c: F0 09 00 6B 09 00 AE 23 73 66 BD 8F 7C 64 42 [18:30:05]GetLastDocTimeStamp 1718821726 [18:30:05]current date 1718821806 [18:30:05]FM_GetShiftState [18:30:05]SAM_PROTO_GetShiftState [18:30:05]wFMCommunicate request_size=4 [18:30:05]MH_SAM_APDU [18:30:05]CAPDU: 80 13 01 00 [18:30:05]Write to MH i2c: E2 08 00 6C 09 80 13 01 00 00 00 00 00 F2 [18:30:05]Write i2c OK [18:30:05]MH_I2C_Read... [18:30:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:30:06]Read from MH i2c: E2 [18:30:06]MH_I2C_Read... [18:30:06]Read from MH i2c: E2 0E 00 [18:30:06]MH_I2C_Read... [18:30:06]Read from MH i2c: E2 0E 00 6C 09 00 09 00 01 04 26 72 66 00 00 00 00 90 00 00 [18:30:06]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [18:30:06]wFMCommunicate OK [18:30:06]SAM_PROTO_GetShiftState done [18:30:06]FM_GetShiftState done [18:30:06]opened in 1718756868 [18:30:06]opened+sec_in_day 1718843268 [18:30:06]quantity*price = 5900 [18:30:06]sum+1 = 5901 [18:30:06]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 2000036210013 Кофе Капучино (GABB TRADE) 2.000 * 115.00 = 230.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 289.00 НСП 1% : 2.55 НДС 12% : 30.68 Наличными: 289.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 196 19.06.2024 18:30 Смена: 353 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103766 ФПД: 90444494557648 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T183006&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103766&fm=90444494557648&tin=02508201610067®Number=0000000000092785&sum=28900 0 [18:30:07]StoreToDocumentArchive [18:30:07]shift 353 fd 103766 [18:30:07]save to /storage/0353/doc_00103766 [18:30:07]save last doc name /storage/0353/doc_00103766 to /storage/kkm_last_doc_name [18:30:07]save OK [18:30:07]Clear old archive folders... [18:30:07]ProcessDocumentItem done err = 0, tmpTLVsize=410 [18:30:07]tlvbuf is 016D77D0 [18:30:07]SAM_PROTO_ClearQueue [18:30:07]wFMCommunicate request_size=4 [18:30:07]MH_SAM_APDU [18:30:07]CAPDU: 80 09 00 00 [18:30:07]Write to MH i2c: E2 08 00 79 09 80 09 00 00 00 00 00 00 F4 [18:30:07]Write i2c OK [18:30:07]MH_I2C_Read... [18:30:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:30:07]Read from MH i2c: E2 [18:30:07]MH_I2C_Read... [18:30:07]Read from MH i2c: E2 03 00 [18:30:07]MH_I2C_Read... [18:30:07]Read from MH i2c: E2 03 00 79 09 00 90 00 F6 [18:30:07]RAPDU: 90 00 [18:30:07]wFMCommunicate OK [18:30:07]SAM_PROTO_ClearQueue done [18:30:07]KKMCreateOFDPacket [18:30:07]OFDProtocolAddRootSTLVToBuf [18:30:07]FM_MakeSignedData [18:30:07]FM_MakeSignedData [18:30:07]SAM_PROTO_SignData [18:30:07]wFMCommunicate request_size=4 [18:30:07]MH_SAM_APDU [18:30:07]CAPDU: 80 0D 01 02 [18:30:07]Write to MH i2c: E2 08 00 7A 09 80 0D 01 02 00 00 00 00 FC [18:30:07]Write i2c OK [18:30:07]MH_I2C_Read... [18:30:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:30:07]Read from MH i2c: E2 [18:30:07]MH_I2C_Read... [18:30:07]Read from MH i2c: E2 03 00 [18:30:07]MH_I2C_Read... [18:30:07]Read from MH i2c: E2 03 00 7A 09 00 90 00 F7 [18:30:07]RAPDU: 90 00 [18:30:07]wFMCommunicate OK [18:30:07]wFMCommunicate request_size=255 [18:30:07]MH_SAM_APDU [18:30:07]CAPDU: 80 0D 02 02 FA 03 00 9A 01 1E 04 01 00 01 23 04 7E 00 8A 04 0D 00 34 36 33 30 30 35 36 39 35 32 30 38 32 06 04 3A 00 D0 9F D0 B5 D1 87 D0 B5 D0 BD D1 8C D0 B5 20 D0 AE D0 B1 D0 B8 D0 BB D0 B5 D0 B9 D0 BD D0 BE D0 B5 20 D0 A2 D0 BE D1 80 D0 B6 D0 B5 D1 81 D1 82 D0 B2 D0 BE 20 31 32 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 0C 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 D8 59 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC [18:30:07]Write to MH i2c: E2 02 01 7B 09 80 0D 02 02 FA 00 03 00 9A 01 1E 04 01 00 01 23 04 7E 00 8A 04 0D 00 34 36 33 30 30 35 36 39 35 32 30 38 32 06 04 3A 00 D0 9F D0 B5 D1 87 D0 B5 D0 BD D1 8C D0 B5 20 D0 AE D0 B1 D0 B8 D0 BB D0 B5 D0 B9 D0 BD D0 BE D0 B5 20 D0 A2 D0 BE D1 80 D0 B6 D0 B5 D1 81 D1 82 D0 B2 D0 BE 20 31 32 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 0C 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 D8 59 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 00 00 92 [18:30:07]Write i2c OK [18:30:07]MH_I2C_Read... [18:30:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:30:07]Read from MH i2c: E2 [18:30:07]MH_I2C_Read... [18:30:07]Read from MH i2c: E2 03 00 [18:30:07]MH_I2C_Read... [18:30:07]Read from MH i2c: E2 03 00 7B 09 00 90 00 F8 [18:30:07]RAPDU: 90 00 [18:30:07]wFMCommunicate OK [18:30:07]wFMCommunicate request_size=169 [18:30:07]MH_SAM_APDU [18:30:07]CAPDU: 80 0D 02 02 A4 03 06 00 E4 70 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FC 0B 00 00 00 00 07 04 06 00 E4 70 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C4 00 00 00 F4 03 04 00 AE 23 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 56 95 01 00 35 04 06 00 52 42 3F F8 51 D0 [18:30:07]Write to MH i2c: E2 AC 00 7C 09 80 0D 02 02 A4 00 03 06 00 E4 70 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FC 0B 00 00 00 00 07 04 06 00 E4 70 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C4 00 00 00 F4 03 04 00 AE 23 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 56 95 01 00 35 04 06 00 52 42 3F F8 51 D0 00 00 E9 [18:30:07]Write i2c OK [18:30:07]MH_I2C_Read... [18:30:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:30:07]Read from MH i2c: E2 [18:30:07]MH_I2C_Read... [18:30:07]Read from MH i2c: E2 03 00 [18:30:07]MH_I2C_Read... [18:30:07]Read from MH i2c: E2 03 00 7C 09 00 90 00 F9 [18:30:07]RAPDU: 90 00 [18:30:07]wFMCommunicate OK [18:30:07]wFMCommunicate request_size=4 [18:30:07]MH_SAM_APDU [18:30:07]CAPDU: 80 0D 03 02 [18:30:07]Write to MH i2c: E2 08 00 7D 09 80 0D 03 02 00 00 00 00 01 [18:30:07]Write i2c OK [18:30:07]MH_I2C_Read... [18:30:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:30:07]Read from MH i2c: E2 [18:30:07]MH_I2C_Read... [18:30:07]Read from MH i2c: E2 0B 00 [18:30:07]MH_I2C_Read... [18:30:07]Read from MH i2c: E2 0B 00 7D 09 00 8E 2D 42 F0 4A 47 BF 06 90 00 45 [18:30:07]RAPDU: 8E 2D 42 F0 4A 47 BF 06 90 00 [18:30:07]wFMCommunicate OK [18:30:07]SAM_PROTO_SignData done [18:30:07]FM_MakeSignedData done [18:30:07]CreateOFDProtocolMessage [18:30:07]wFMCommunicate request_size=4 [18:30:07]MH_SAM_APDU [18:30:07]CAPDU: 80 11 00 00 [18:30:07]Write to MH i2c: E2 08 00 7E 09 80 11 00 00 00 00 00 00 01 [18:30:07]Write i2c OK [18:30:07]MH_I2C_Read... [18:30:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:30:07]Read from MH i2c: E2 [18:30:07]MH_I2C_Read... [18:30:07]Read from MH i2c: E2 17 00 [18:30:07]MH_I2C_Read... [18:30:07]Read from MH i2c: E2 17 00 7E 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 54 [18:30:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [18:30:07]wFMCommunicate OK [18:30:07]CreateOFDProtocolMessage done [18:30:07]OFDSenderStorePacket 103766 [18:30:07]StoreOFDPacket docnum=103766 [18:30:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 AE 01 00 00 65 BF A6 01 75 6E 5A 03 01 00 03 00 9A 01 1E 04 01 00 01 23 04 7E 00 8A 04 0D 00 34 36 33 30 30 35 36 39 35 32 30 38 32 06 04 3A 00 D0 9F D0 B5 D1 87 D0 B5 D0 BD D1 8C D0 B5 20 D0 AE D0 B1 D0 B8 D0 BB D0 B5 D0 B9 D0 BD D0 BE D0 B5 20 D0 A2 D0 BE D1 80 D0 B6 D0 B5 D1 81 D1 82 D0 B2 D0 BE 20 31 32 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 0C 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 D8 59 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 70 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FC 0B 00 00 00 00 07 04 06 00 E4 70 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C4 00 00 00 F4 03 04 00 AE 23 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 56 95 01 00 35 04 06 00 52 42 3F F8 51 D0 8E 2D 42 F0 4A 47 BF 06 [18:30:07]CheckFolder [18:30:07]dirname=/storage/ofd_packets [18:30:07]CheckFolder done [18:30:07]ProducePacketName [18:30:07]name=ofd_packets/00103766 [18:30:07]NVStorageSaveData ofd_packets/00103766 [18:30:07]File name is /storage/ofd_packets/00103766 [18:30:07]Write 460 bytes [18:30:07]NVStorageSaveData done [18:30:07]OFDSenderStorePacket done [18:30:07]KKMCreateOFDPacket done [18:30:08]NVStorageSaveData kkm_last_timestamp [18:30:08]File name is /storage/kkm_last_timestamp [18:30:08]Write 4 bytes [18:30:08]NVStorageSaveData done [18:30:08]ExternCall_PrintAddStr [18:30:08]wPrintStart [18:30:08]Write to MH i2c: 01 00 00 7F 09 88 [18:30:08]OFD Sender: Processing packet 103766 [packets to send 17, broken 16] [18:30:08]ProducePacketName [18:30:08]name=ofd_packets/00103766 [18:30:08]OFD Sender: To server: pG, [18:30:08]CommunicateWithHost lk.salyk.kg:30040 [18:30:08]ConnectInit lk.salyk.kg [18:30:08]Write i2c OK [18:30:08]MH_I2C_Read... [18:30:08]Read from MH i2c: 01 [18:30:08]MH_I2C_Read... [18:30:08]Read from MH i2c: 01 07 00 [18:30:08]MH_I2C_Read... [18:30:08]Read from MH i2c: 01 07 00 7F 09 00 00 00 00 00 FF 0F 9D [18:30:08]RasterBufferAndPrint [18:30:08]line Счет N : (3)184101 [18:30:08]line ИНН: 02508201610067 [18:30:08]line Контрольно-Кассовый Чек [18:30:08]line ПРОДАЖА [18:30:08]line Товар: 4630056952082 [18:30:08]line Печенье Юбилейное Торжество 120г [18:30:08]line 1.000 * 59.00 [18:30:08]line = 59.00 [18:30:08]line НДС 12% НСП 1% [18:30:08]line > о реализуемом товаре [18:30:08]line Товар: 2000036210013 [18:30:08]line Кофе Капучино (GABB TRADE) [18:30:08]line 2.000 * 115.00 [18:30:08]line = 230.00 [18:30:08]line НДС 12% НСП 1% [18:30:08]line > о реализуемом товаре [18:30:08]line ИТОГО: 289.00 [18:30:08]line НСП 1% : 2.55 [18:30:08]line НДС 12% : 30.68 [18:30:08]line Наличными: 289.00 [18:30:08]line Безнал.: 0.00 [18:30:08]line Место: АЗС № 120 "Партнер Нефть" [18:30:08]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [18:30:08]line СНО: Общий режим [18:30:08]line Чек 196 19.06.2024 18:30 [18:30:08]line Смена: 353 ФФД: 1.0 [18:30:08]line ЗНМ: 0300000164 [18:30:08]line РНМ: 0000000000092785 [18:30:08]line Версия ККМ: 001 [18:30:08]line ФМ: 0000000000875093 [18:30:08]line ФД: 103766 [18:30:08]line ФПД: 90444494557648 [18:30:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T183006&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103766&fm=90444494557648&tin=02508201610067®Number=0000000000092785&sum=28900 [18:30:08]line 0 [18:30:08]written 0, free lines is 4095 [18:30:08]Connected sock=10 [18:30:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 AE 01 00 00 65 BF A6 01 75 6E 5A 03 01 00 03 00 9A 01 1E 04 01 00 01 23 04 7E 00 8A 04 0D 00 34 36 33 30 30 35 36 39 35 32 30 38 32 06 04 3A 00 D0 9F D0 B5 D1 87 D0 B5 D0 BD D1 8C D0 B5 20 D0 AE D0 B1 D0 B8 D0 BB D0 B5 D0 B9 D0 BD D0 BE D0 B5 20 D0 A2 D0 BE D1 80 D0 B6 D0 B5 D1 81 D1 82 D0 B2 D0 BE 20 31 32 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 0C 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 D8 59 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 70 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FC 0B 00 00 00 00 07 04 06 00 E4 70 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C4 00 00 00 F4 03 04 00 AE 23 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 56 95 01 00 35 04 06 00 52 42 3F F8 51 D0 8E 2D 42 F0 4A 47 BF 06 [18:30: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 39 33 4F 00 00 00 74 BE 47 00 8C 04 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 56 95 01 00 F4 03 04 00 36 CA 72 66 B6 04 01 00 00 08 9F CE 8E 98 C6 03 42 [18:30:08]CommunicateWithHost err = 0 [18:30:08]CheckOFDResponse [18:30:08]1017 (14) - 77093643461234 [18:30:08]1041 (16) - 0000000000875093 [18:30:08]1040 (4) - 103766 [18:30:08]1012 (4) - 19.06.2024 12:08 [18:30:08]1206 (1) - 0 [18:30:08]OFD Sender: Remove packet 103766 [18:30:08]ProducePacketName [18:30:08]name=ofd_packets/00103766 [18:30:08]NVStorageDeleteData [18:30:08]Write to MH i2c: 01 00 00 AE 09 B7 [18:30:08]Write i2c OK [18:30:08]MH_I2C_Read... [18:30:08]Read from MH i2c: 01 [18:30:08]MH_I2C_Read... [18:30:08]Read from MH i2c: 01 07 00 [18:30:08]MH_I2C_Read... [18:30:08]Read from MH i2c: 01 07 00 AE 09 00 00 00 00 00 AF 0C 79 [18:30:08]RasterBufferAndPrint [18:30:08]line [18:30:08]line [18:30:08]line [18:30:08]line [18:30:08]line [18:30:08]written 0, free lines is 3252 [18:30:08]MH_Cut [18:30:08]Write to MH i2c: D1 01 00 B5 09 01 90 [18:30:08]Write i2c OK [18:30:08]MH_I2C_Read... [18:30:08]Read from MH i2c: D1 [18:30:08]MH_I2C_Read... [18:30:08]Read from MH i2c: D1 01 00 [18:30:08]MH_I2C_Read... [18:30:08]Read from MH i2c: D1 01 00 B5 09 00 8F [18:30:08]Write to MH i2c: 01 00 00 B6 09 BF [18:30:08]Write i2c OK [18:30:08]MH_I2C_Read... [18:30:09]OFD Sender: No OFD packet to send [18:30:09]*** Cut start [18:30:09]*** Partial cut [18:30:09]*** CUTSNS_PIN = 1 [18:30:09]*** CUTSNS_PIN = 0 [18:30:09]*** Brake cut motor [18:30:10]Read from MH i2c: 01 [18:30:10]MH_I2C_Read... [18:30:10]*** Stop cut motor [18:30:10]*** Cut end [18:30:10]Read from MH i2c: 01 07 00 [18:30:10]MH_I2C_Read... [18:30:10]Read from MH i2c: 01 07 00 B6 09 00 00 00 00 00 FF 0F D4 [18:30:10]process_action close_receipt done [18:30:10]requested_data is exist [18:30:10]produce_requested_data [18:30:10]requested_item fm.sn is exist - process it [18:30:10]wFMCommunicate request_size=4 [18:30:10]MH_SAM_APDU [18:30:10]CAPDU: 80 11 00 00 [18:30:10]Write to MH i2c: E2 08 00 B7 09 80 11 00 00 00 00 00 00 3A [18:30:10]Write i2c OK [18:30:10]MH_I2C_Read... [18:30:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:30:10]Read from MH i2c: E2 [18:30:10]MH_I2C_Read... [18:30:10]Read from MH i2c: E2 17 00 [18:30:10]MH_I2C_Read... [18:30:10]Read from MH i2c: E2 17 00 B7 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 8D [18:30:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [18:30:10]wFMCommunicate OK [18:30:10]requested_item fd.num is exist - process it [18:30:10]SAM_PROTO_GetFieldsCounters [18:30:10]wFMCommunicate request_size=4 [18:30:10]MH_SAM_APDU [18:30:10]CAPDU: 80 13 00 00 [18:30:10]Write to MH i2c: E2 08 00 B8 09 80 13 00 00 00 00 00 00 3D [18:30:10]Write i2c OK [18:30:10]MH_I2C_Read... [18:30:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:30:10]Read from MH i2c: E2 [18:30:10]MH_I2C_Read... [18:30:10]Read from MH i2c: E2 62 00 [18:30:10]MH_I2C_Read... [18:30:10]Read from MH i2c: E2 62 00 B8 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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 56 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 C4 00 00 00 5E 04 04 00 C4 00 00 00 57 04 04 00 C5 00 00 00 19 04 04 00 00 00 00 00 90 00 FE [18:30:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 56 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 C4 00 00 00 5E 04 04 00 C4 00 00 00 57 04 04 00 C5 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:30:10]wFMCommunicate OK [18:30:10]SAM_PROTO_GetFieldsCounters done [18:30:10]requested_item shift.num is exist - process it [18:30:10]requested_item shift.opened is exist - process it [18:30:10]req_shift_opened [18:30:10]FM_GetShiftState [18:30:10]SAM_PROTO_GetShiftState [18:30:10]wFMCommunicate request_size=4 [18:30:10]MH_SAM_APDU [18:30:10]CAPDU: 80 13 01 00 [18:30:10]Write to MH i2c: E2 08 00 B9 09 80 13 01 00 00 00 00 00 3F [18:30:10]Write i2c OK [18:30:10]MH_I2C_Read... [18:30:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:30:10]Read from MH i2c: E2 [18:30:10]MH_I2C_Read... [18:30:10]Read from MH i2c: E2 0E 00 [18:30:10]MH_I2C_Read... [18:30:10]Read from MH i2c: E2 0E 00 B9 09 00 09 00 01 04 26 72 66 00 00 00 00 90 00 4D [18:30:10]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [18:30:10]wFMCommunicate OK [18:30:10]SAM_PROTO_GetShiftState done [18:30:10]FM_GetShiftState done [18:30:10]req_shift_opened done [18:30:10]requested_item shift.open_date is exist - process it [18:30:10]req_shift_open_date [18:30:10]req_shift_open_date done [18:30:10]produce_requested_data done [18:30:10]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103766,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [18:30:10]process_action_free close_receipt [18:30:10]json_value_free [18:30:10]json_value_free done [18:30:10]process_json_proto returns [18:30:10]Send response to host [18:30:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103766,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [18:30:10]free response buf [18:30:10]execute_script done [18:30:10]execute_script returns [18:30:10]free content buf [18:30:10]Sock 9.Close socket [18:30:10]Sock 9.Thread stoped [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:35:48]SAM_PROTO_SignData done [18:35:48]FM_MakeSignedData done [18:35:48]CreateOFDProtocolMessage [18:35:48]wFMCommunicate request_size=4 [18:35:48]MH_SAM_APDU [18:35:48]CAPDU: 80 11 00 00 [18:35:48]Write to MH i2c: E2 08 00 CD 09 80 11 00 00 00 00 00 00 50 [18:35:48]Write i2c OK [18:35:48]MH_I2C_Read... [18:35:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:35:48]Read from MH i2c: E2 [18:35:48]MH_I2C_Read... [18:35:48]Read from MH i2c: E2 17 00 [18:35:48]MH_I2C_Read... [18:35:48]Read from MH i2c: E2 17 00 CD 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 A3 [18:35:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [18:35:48]wFMCommunicate OK [18:35:48]CreateOFDProtocolMessage done [18:35:48]OFDSenderStorePacket 103767 [18:35:48]StoreOFDPacket docnum=103767 [18:35:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 A6 F0 07 01 7A 74 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C5 00 00 00 F4 03 04 00 03 25 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 57 95 01 00 35 04 06 00 57 89 0A 6B CC 4B 96 FB D3 6B ED E4 64 A6 [18:35:48]CheckFolder [18:35:48]dirname=/storage/ofd_packets [18:35:48]CheckFolder done [18:35:48]ProducePacketName [18:35:48]name=ofd_packets/00103767 [18:35:48]NVStorageSaveData ofd_packets/00103767 [18:35:48]File name is /storage/ofd_packets/00103767 [18:35:48]Write 301 bytes [18:35:48]NVStorageSaveData done [18:35:48]OFDSenderStorePacket done [18:35:48]KKMCreateOFDPacket done [18:35:48]NVStorageSaveData kkm_last_timestamp [18:35:48]File name is /storage/kkm_last_timestamp [18:35:48]Write 4 bytes [18:35:48]NVStorageSaveData done [18:35:48]ExternCall_PrintAddStr [18:35:48]wPrintStart [18:35:48]Write to MH i2c: 01 00 00 CE 09 D7 [18:35:48]Write i2c OK [18:35:48]MH_I2C_Read... [18:35:48]Read from MH i2c: 01 [18:35:48]MH_I2C_Read... [18:35:48]Read from MH i2c: 01 07 00 [18:35:48]MH_I2C_Read... [18:35:48]Read from MH i2c: 01 07 00 CE 09 00 00 00 00 00 FF 0F EC [18:35:48]RasterBufferAndPrint [18:35:48]line Счет N : (1)673054 [18:35:48]line ИНН: 02508201610067 [18:35:48]line Контрольно-Кассовый Чек [18:35:48]line ПРОДАЖА [18:35:48]line ТРК (МРК, ГНК) : 32 [18:35:48]line Товар: 2710124130 [18:35:48]line Аи-92-К-5 [18:35:48]line 6.030 * 66.40 [18:35:48]line = 400.39 [18:35:48]line НДС 12% НСП 1% [18:35:48]line > о реализуемом товаре [18:35:48]line ОКРУГЛЕНИЕ: -0.39 [18:35:48]line ИТОГО: 400.00 [18:35:48]line Внесено: 400.00 [18:35:48]line СДАЧА: 0.00 [18:35:48]line НСП 1% : 3.54 [18:35:48]line НДС 12% : 42.52 [18:35:48]line Наличными: 400.00 [18:35:48]line Безнал.: 0.00 [18:35:48]line Место: АЗС № 120 "Партнер Нефть" [18:35:48]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [18:35:48]line СНО: Общий режим [18:35:48]line Чек 197 19.06.2024 18:35 [18:35:48]line Смена: 353 ФФД: 1.0 [18:35:48]line ЗНМ: 0300000164 [18:35:48]line РНМ: 0000000000092785 [18:35:48]line Версия ККМ: 001 [18:35:48]line ФМ: 0000000000875093 [18:35:48]line ФД: 103767 [18:35:48]line ФПД: 96246096972875 [18:35:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T183547&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103767&fm=96246096972875&tin=02508201610067®Number=0000000000092785&sum=40000 [18:35:49]OFD Sender: Processing packet 103767 [packets to send 17, broken 16] [18:35:49]ProducePacketName [18:35:49]name=ofd_packets/00103767 [18:35:49]OFD Sender: To server: pG, [18:35:49]CommunicateWithHost lk.salyk.kg:30040 [18:35:49]ConnectInit lk.salyk.kg [18:35:49]written 0, free lines is 4095 [18:35:49]Write to MH i2c: 01 00 00 F9 09 02 [18:35:49]Write i2c OK [18:35:49]MH_I2C_Read... [18:35:49]Read from MH i2c: 01 [18:35:49]MH_I2C_Read... [18:35:49]Read from MH i2c: 01 07 00 [18:35:49]MH_I2C_Read... [18:35:49]Read from MH i2c: 01 07 00 F9 09 00 00 00 00 00 DD 0C F2 [18:35:49]RasterBufferAndPrint [18:35:49]line [18:35:49]line [18:35:49]line [18:35:49]line [18:35:49]line [18:35:49]written 0, free lines is 3299 [18:35:49]MH_Cut [18:35:49]Write to MH i2c: D1 01 00 00 0A 01 DC [18:35:49]Write i2c OK [18:35:49]MH_I2C_Read... [18:35:49]Read from MH i2c: D1 [18:35:49]MH_I2C_Read... [18:35:49]Read from MH i2c: D1 01 00 [18:35:49]MH_I2C_Read... [18:35:49]Read from MH i2c: D1 01 00 00 0A 00 DB [18:35:49]Write to MH i2c: 01 00 00 01 0A 0B [18:35:49]Write i2c OK [18:35:49]MH_I2C_Read... [18:35:50]*** Cut start [18:35:50]*** Partial cut [18:35:50]*** CUTSNS_PIN = 1 [18:35:50]*** CUTSNS_PIN = 0 [18:35:50]*** Brake cut motor [18:35:50]Read from MH i2c: 01 [18:35:50]MH_I2C_Read... [18:35:50]*** Stop cut motor [18:35:50]*** Cut end [18:35:50]Read from MH i2c: 01 07 00 [18:35:50]MH_I2C_Read... [18:35:50]Read from MH i2c: 01 07 00 01 0A 00 00 00 00 00 FF 0F 20 [18:35:50]process_action close_receipt done [18:35:50]requested_data is exist [18:35:50]produce_requested_data [18:35:50]requested_item fm.sn is exist - process it [18:35:50]wFMCommunicate request_size=4 [18:35:50]MH_SAM_APDU [18:35:50]CAPDU: 80 11 00 00 [18:35:50]Write to MH i2c: E2 08 00 02 0A 80 11 00 00 00 00 00 00 86 [18:35:50]Write i2c OK [18:35:50]MH_I2C_Read... [18:35:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:35:50]Read from MH i2c: E2 [18:35:50]MH_I2C_Read... [18:35:50]Read from MH i2c: E2 17 00 [18:35:50]MH_I2C_Read... [18:35:50]Read from MH i2c: E2 17 00 02 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 D9 [18:35:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [18:35:50]wFMCommunicate OK [18:35:50]requested_item fd.num is exist - process it [18:35:50]SAM_PROTO_GetFieldsCounters [18:35:50]wFMCommunicate request_size=4 [18:35:50]MH_SAM_APDU [18:35:50]CAPDU: 80 13 00 00 [18:35:50]Write to MH i2c: E2 08 00 03 0A 80 13 00 00 00 00 00 00 89 [18:35:50]Write i2c OK [18:35:50]MH_I2C_Read... [18:35:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:35:50]Read from MH i2c: E2 [18:35:50]MH_I2C_Read... [18:35:50]Read from MH i2c: E2 62 00 [18:35:50]MH_I2C_Read... [18:35:50]Read from MH i2c: E2 62 00 03 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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 57 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 C5 00 00 00 5E 04 04 00 C5 00 00 00 57 04 04 00 C6 00 00 00 19 04 04 00 00 00 00 00 90 00 4E [18:35: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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 57 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 C5 00 00 00 5E 04 04 00 C5 00 00 00 57 04 04 00 C6 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:35:50]wFMCommunicate OK [18:35:50]SAM_PROTO_GetFieldsCounters done [18:35:50]requested_item shift.num is exist - process it [18:35:50]requested_item shift.opened is exist - process it [18:35:50]req_shift_opened [18:35:50]FM_GetShiftState [18:35:50]SAM_PROTO_GetShiftState [18:35:50]wFMCommunicate request_size=4 [18:35:50]MH_SAM_APDU [18:35:50]CAPDU: 80 13 01 00 [18:35:50]Write to MH i2c: E2 08 00 04 0A 80 13 01 00 00 00 00 00 8B [18:35:50]Write i2c OK [18:35:50]MH_I2C_Read... [18:35:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:35:51]Read from MH i2c: E2 [18:35:51]MH_I2C_Read... [18:35:51]Read from MH i2c: E2 0E 00 [18:35:51]MH_I2C_Read... [18:35:51]Read from MH i2c: E2 0E 00 04 0A 00 09 00 01 04 26 72 66 00 00 00 00 90 00 99 [18:35:51]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [18:35:51]wFMCommunicate OK [18:35:51]SAM_PROTO_GetShiftState done [18:35:51]FM_GetShiftState done [18:35:51]req_shift_opened done [18:35:51]requested_item shift.open_date is exist - process it [18:35:51]req_shift_open_date [18:35:51]req_shift_open_date done [18:35:51]produce_requested_data done [18:35:51]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103767,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [18:35:51]process_action_free close_receipt [18:35:51]json_value_free [18:35:51]json_value_free done [18:35:51]process_json_proto returns [18:35:51]Send response to host [18:35:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103767,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [18:35:51]free response buf [18:35:51]execute_script done [18:35:51]execute_script returns [18:35:51]free content buf [18:35:51]Sock 8.Close socket [18:35:51]Sock 8.Thread stoped [18:35:51]accept exits with 10 [18:35:51]New connection [18:35:51]New thread 3066797412 created [18:35:51]Thread 3066940772 joined [18:35:51]Waiting for new connection... [18:35:51] Sock 10.Parse request [18:35:51]Sock 10.Check first char [18:35:51]Sock 10.First char is OK [18:35:51]request: POST /json_proto HTTP/1.0 [18:35:51]Method: POST [18:35:51]URL: /json_proto [18:35:51]Method is POST - this is cgi request [18:35:51]url: /json_proto [18:35:51]query_string will be loaded in cgi processing [18:35:51]execute_cgi json_proto POST (null) [18:35:51]execute_cgi path=json_proto method=POST [18:35:51]POST find Content-Length [18:35:51]Host: 172.17.38.133:8080 [18:35:51]Content-Length: 677 [18:35:51]Content-Type: application/json [18:35:51] [18:35:51]POST finish read [18:35:51]Found Content-Length = 677 [18:35:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673055", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:35:51]execute_script... [18:35:51]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673055", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:35:51]POST & json_proto [18:35:51]process_json_proto [18:35:51]json parsed OK: [18:35:51]protocol is kg_v1.0 [18:35:51]action value=close_receipt [18:35:51]process_action close_receipt [18:35:51]cmd_close_receipt [18:35:51]MH_GetDate [18:35:51]Write to MH i2c: F0 00 00 05 0A FE [18:35:51]Write i2c OK [18:35:51]MH_I2C_Read... [18:35:51]Read from MH i2c: F0 [18:35:51]MH_I2C_Read... [18:35:51]Read from MH i2c: F0 09 00 [18:35:51]MH_I2C_Read... [18:35:51]Read from MH i2c: F0 09 00 05 0A 00 08 25 73 66 BD 8F 7C 64 39 [18:35:51]GetLastDocTimeStamp 1718822147 [18:35:51]current date 1718822152 [18:35:51]FM_GetShiftState [18:35:51]SAM_PROTO_GetShiftState [18:35:51]wFMCommunicate request_size=4 [18:35:51]MH_SAM_APDU [18:35:51]CAPDU: 80 13 01 00 [18:35:51]Write to MH i2c: E2 08 00 06 0A 80 13 01 00 00 00 00 00 8D [18:35:51]Write i2c OK [18:35:51]MH_I2C_Read... [18:35:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:35:51]Read from MH i2c: E2 [18:35:51]MH_I2C_Read... [18:35:51]Read from MH i2c: E2 0E 00 [18:35:51]MH_I2C_Read... [18:35:51]Read from MH i2c: E2 0E 00 06 0A 00 09 00 01 04 26 72 66 00 00 00 00 90 00 9B [18:35:51]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [18:35:51]wFMCommunicate OK [18:35:51]SAM_PROTO_GetShiftState done [18:35:51]FM_GetShiftState done [18:35:51]opened in 1718756868 [18:35:51]opened+sec_in_day 1718843268 [18:35:51]quantity*price = 50065 [18:35:51]sum+1 = 50067 [18:35:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.17 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 198 19.06.2024 18:35 Смена: 353 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103768 ФПД: 253385702573724 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T183552&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103768&fm=253385702573724&tin=02508201610067®Number=0000000000092785&sum=50000 [18:35:52]StoreToDocumentArchive [18:35:52]shift 353 fd 103768 [18:35:52]save to /storage/0353/doc_00103768 [18:35:52]save last doc name /storage/0353/doc_00103768 to /storage/kkm_last_doc_name [18:35:52]save OK [18:35:52]Clear old archive folders... [18:35:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:35:52]tlvbuf is 016FD390 [18:35:52]SAM_PROTO_ClearQueue [18:35:52]wFMCommunicate request_size=4 [18:35:52]MH_SAM_APDU [18:35:52]CAPDU: 80 09 00 00 [18:35:52]Write to MH i2c: E2 08 00 13 0A 80 09 00 00 00 00 00 00 8F [18:35:52]Write i2c OK [18:35:52]MH_I2C_Read... [18:35:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:35:52]Read from MH i2c: E2 [18:35:52]MH_I2C_Read... [18:35:52]Read from MH i2c: E2 03 00 [18:35:52]MH_I2C_Read... [18:35:52]Read from MH i2c: E2 03 00 13 0A 00 90 00 91 [18:35:52]RAPDU: 90 00 [18:35:52]wFMCommunicate OK [18:35:52]SAM_PROTO_ClearQueue done [18:35:52]KKMCreateOFDPacket [18:35:52]OFDProtocolAddRootSTLVToBuf [18:35:52]FM_MakeSignedData [18:35:52]FM_MakeSignedData [18:35:52]SAM_PROTO_SignData [18:35:52]wFMCommunicate request_size=4 [18:35:52]MH_SAM_APDU [18:35:52]CAPDU: 80 0D 01 02 [18:35:52]Write to MH i2c: E2 08 00 14 0A 80 0D 01 02 00 00 00 00 97 [18:35:52]Write i2c OK [18:35:52]MH_I2C_Read... [18:35:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:35:52]Read from MH i2c: E2 [18:35:52]MH_I2C_Read... [18:35:52]Read from MH i2c: E2 03 00 [18:35:52]MH_I2C_Read... [18:35:52]Read from MH i2c: E2 03 00 14 0A 00 90 00 92 [18:35:52]RAPDU: 90 00 [18:35:52]wFMCommunicate OK [18:35:52]wFMCommunicate request_size=255 [18:35:52]MH_SAM_APDU [18:35:52]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C6 00 00 00 F4 03 04 00 08 25 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 58 95 01 00 35 04 06 00 E6 [18:35:52]Write to MH i2c: E2 02 01 15 0A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C6 00 00 00 F4 03 04 00 08 25 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 58 95 01 00 35 04 06 00 E6 00 00 53 [18:35:53]Write i2c OK [18:35:53]MH_I2C_Read... [18:35:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:35:53]Read from MH i2c: E2 [18:35:53]MH_I2C_Read... [18:35:53]Read from MH i2c: E2 03 00 [18:35:53]MH_I2C_Read... [18:35:53]Read from MH i2c: E2 03 00 15 0A 00 90 00 93 [18:35:53]RAPDU: 90 00 [18:35:53]wFMCommunicate OK [18:35:53]wFMCommunicate request_size=10 [18:35:53]MH_SAM_APDU [18:35:53]CAPDU: 80 0D 02 02 05 73 F4 CB 06 9C [18:35:53]Write to MH i2c: E2 0D 00 16 0A 80 0D 02 02 05 00 73 F4 CB 06 9C 00 00 78 [18:35:53]Write i2c OK [18:35:53]MH_I2C_Read... [18:35:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:35:53]Read from MH i2c: E2 [18:35:53]MH_I2C_Read... [18:35:53]Read from MH i2c: E2 03 00 [18:35:53]MH_I2C_Read... [18:35:53]Read from MH i2c: E2 03 00 16 0A 00 90 00 94 [18:35:53]RAPDU: 90 00 [18:35:53]wFMCommunicate OK [18:35:53]wFMCommunicate request_size=4 [18:35:53]MH_SAM_APDU [18:35:53]CAPDU: 80 0D 03 02 [18:35:53]Write to MH i2c: E2 08 00 17 0A 80 0D 03 02 00 00 00 00 9C [18:35:53]Write i2c OK [18:35:53]MH_I2C_Read... [18:35:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:35:53]Read from MH i2c: E2 [18:35:53]MH_I2C_Read... [18:35:53]Read from MH i2c: E2 0B 00 [18:35:53]MH_I2C_Read... [18:35:53]Read from MH i2c: E2 0B 00 17 0A 00 B0 C5 9A 71 BD 4F 5A EA 90 00 6D [18:35:53]RAPDU: B0 C5 9A 71 BD 4F 5A EA 90 00 [18:35:53]wFMCommunicate OK [18:35:53]SAM_PROTO_SignData done [18:35:53]FM_MakeSignedData done [18:35:53]CreateOFDProtocolMessage [18:35:53]wFMCommunicate request_size=4 [18:35:53]MH_SAM_APDU [18:35:53]CAPDU: 80 11 00 00 [18:35:53]Write to MH i2c: E2 08 00 18 0A 80 11 00 00 00 00 00 00 9C [18:35:53]Write i2c OK [18:35:53]MH_I2C_Read... [18:35:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:35:53]Read from MH i2c: E2 [18:35:53]MH_I2C_Read... [18:35:53]Read from MH i2c: E2 17 00 [18:35:53]MH_I2C_Read... [18:35:53]Read from MH i2c: E2 17 00 18 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 EF [18:35:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [18:35:53]wFMCommunicate OK [18:35:53]CreateOFDProtocolMessage done [18:35:53]OFDSenderStorePacket 103768 [18:35:53]StoreOFDPacket docnum=103768 [18:35:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 A9 03 07 01 26 79 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C6 00 00 00 F4 03 04 00 08 25 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 58 95 01 00 35 04 06 00 E6 73 F4 CB 06 9C B0 C5 9A 71 BD 4F 5A EA [18:35:53]CheckFolder [18:35:53]dirname=/storage/ofd_packets [18:35:53]CheckFolder done [18:35:53]ProducePacketName [18:35:53]name=ofd_packets/00103768 [18:35:53]NVStorageSaveData ofd_packets/00103768 [18:35:53]File name is /storage/ofd_packets/00103768 [18:35:53]Write 301 bytes [18:35:53]NVStorageSaveData done [18:35:53]OFDSenderStorePacket done [18:35:53]KKMCreateOFDPacket done [18:35:53]NVStorageSaveData kkm_last_timestamp [18:35:53]File name is /storage/kkm_last_timestamp [18:35:53]Write 4 bytes [18:35:53]NVStorageSaveData done [18:35:53]ExternCall_PrintAddStr [18:35:53]wPrintStart [18:35:53]Write to MH i2c: 01 00 00 19 0A 23 [18:35:53]Write i2c OK [18:35:53]MH_I2C_Read... [18:35:53]Read from MH i2c: 01 [18:35:53]MH_I2C_Read... [18:35:53]Read from MH i2c: 01 07 00 [18:35:53]MH_I2C_Read... [18:35:53]Read from MH i2c: 01 07 00 19 0A 00 00 00 00 00 FF 0F 38 [18:35:53]RasterBufferAndPrint [18:35:53]line Счет N : (1)673055 [18:35:53]line ИНН: 02508201610067 [18:35:53]line Контрольно-Кассовый Чек [18:35:53]line ПРОДАЖА [18:35:53]line ТРК (МРК, ГНК) : 42 [18:35:53]line Товар: 2710124130 [18:35:53]line Аи-92-К-5 [18:35:53]line 7.540 * 66.40 [18:35:53]line = 500.66 [18:35:53]line НДС 12% НСП 1% [18:35:53]line > о реализуемом товаре [18:35:53]line ОКРУГЛЕНИЕ: -0.66 [18:35:53]line ИТОГО: 500.00 [18:35:53]line Внесено: 500.00 [18:35:53]line СДАЧА: 0.00 [18:35:53]line НСП 1% : 4.43 [18:35:53]line НДС 12% : 53.17 [18:35:53]line Наличными: 500.00 [18:35:53]line Безнал.: 0.00 [18:35:53]line Место: АЗС № 120 "Партнер Нефть" [18:35:53]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [18:35:53]line СНО: Общий режим [18:35:53]line Чек 198 19.06.2024 18:35 [18:35:53]line Смена: 353 ФФД: 1.0 [18:35:53]line ЗНМ: 0300000164 [18:35:53]line РНМ: 0000000000092785 [18:35:53]line Версия ККМ: 001 [18:35:53]line ФМ: 0000000000875093 [18:35:53]line ФД: 103768 [18:35:53]line ФПД: 253385702573724 [18:35:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T183552&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103768&fm=253385702573724&tin=02508201610067®Number=0000000000092785&sum=50000 [18:35:53]written 0, free lines is 4095 [18:35:54]ConnectInit Can't take IP for lk.salyk.kg [18:35:54]CommunicateWithHost connect error [18:35:54]CommunicateWithHost err = -1 [18:35:54]OFD Sender: Server communicate error [18:35:54]OFD Sender: Processing packet 103767 [packets to send 18, broken 16] [18:35:54]ProducePacketName [18:35:54]name=ofd_packets/00103767 [18:35:54]OFD Sender: To server: pG, [18:35:54]CommunicateWithHost lk.salyk.kg:30040 [18:35:54]ConnectInit lk.salyk.kg [18:35:54]Write to MH i2c: 01 00 00 44 0A 4E [18:35:54]Write i2c OK [18:35:54]MH_I2C_Read... [18:35:54]Read from MH i2c: 01 [18:35:54]MH_I2C_Read... [18:35:54]Read from MH i2c: 01 07 00 [18:35:54]MH_I2C_Read... [18:35:54]Read from MH i2c: 01 07 00 44 0A 00 00 00 00 00 E2 0C 43 [18:35:54]RasterBufferAndPrint [18:35:54]line [18:35:54]line [18:35:54]line [18:35:54]line [18:35:54]line [18:35:54]written 0, free lines is 3310 [18:35:54]MH_Cut [18:35:54]Write to MH i2c: D1 01 00 4B 0A 01 27 [18:35:54]Write i2c OK [18:35:54]MH_I2C_Read... [18:35:54]Read from MH i2c: D1 [18:35:54]MH_I2C_Read... [18:35:54]Read from MH i2c: D1 01 00 [18:35:54]MH_I2C_Read... [18:35:54]Read from MH i2c: D1 01 00 4B 0A 00 26 [18:35:54]Write to MH i2c: 01 00 00 4C 0A 56 [18:35:54]Write i2c OK [18:35:54]MH_I2C_Read... [18:35:54]*** Cut start [18:35:54]*** Partial cut [18:35:54]*** CUTSNS_PIN = 1 [18:35:55]*** CUTSNS_PIN = 0 [18:35:55]*** Brake cut motor [18:35:55]Read from MH i2c: 01 [18:35:55]MH_I2C_Read... [18:35:55]*** Stop cut motor [18:35:55]*** Cut end [18:35:55]Read from MH i2c: 01 07 00 [18:35:55]MH_I2C_Read... [18:35:55]Read from MH i2c: 01 07 00 4C 0A 00 00 00 00 00 FF 0F 6B [18:35:55]process_action close_receipt done [18:35:55]requested_data is exist [18:35:55]produce_requested_data [18:35:55]requested_item fm.sn is exist - process it [18:35:55]wFMCommunicate request_size=4 [18:35:55]MH_SAM_APDU [18:35:55]CAPDU: 80 11 00 00 [18:35:55]Write to MH i2c: E2 08 00 4D 0A 80 11 00 00 00 00 00 00 D1 [18:35:55]Write i2c OK [18:35:55]MH_I2C_Read... [18:35:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:35:55]Read from MH i2c: E2 [18:35:55]MH_I2C_Read... [18:35:55]Read from MH i2c: E2 17 00 [18:35:55]MH_I2C_Read... [18:35:55]Read from MH i2c: E2 17 00 4D 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 24 [18:35:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [18:35:55]wFMCommunicate OK [18:35:55]requested_item fd.num is exist - process it [18:35:55]SAM_PROTO_GetFieldsCounters [18:35:55]wFMCommunicate request_size=4 [18:35:55]MH_SAM_APDU [18:35:55]CAPDU: 80 13 00 00 [18:35:55]Write to MH i2c: E2 08 00 4E 0A 80 13 00 00 00 00 00 00 D4 [18:35:55]Write i2c OK [18:35:55]MH_I2C_Read... [18:35:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:35:55]Read from MH i2c: E2 [18:35:55]MH_I2C_Read... [18:35:55]Read from MH i2c: E2 62 00 [18:35:55]MH_I2C_Read... [18:35:55]Read from MH i2c: E2 62 00 4E 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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 58 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 C6 00 00 00 5E 04 04 00 C6 00 00 00 57 04 04 00 C7 00 00 00 19 04 04 00 00 00 00 00 90 00 9D [18:35:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 58 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 C6 00 00 00 5E 04 04 00 C6 00 00 00 57 04 04 00 C7 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:35:55]wFMCommunicate OK [18:35:55]SAM_PROTO_GetFieldsCounters done [18:35:55]requested_item shift.num is exist - process it [18:35:55]requested_item shift.opened is exist - process it [18:35:55]req_shift_opened [18:35:55]FM_GetShiftState [18:35:55]SAM_PROTO_GetShiftState [18:35:55]wFMCommunicate request_size=4 [18:35:55]MH_SAM_APDU [18:35:55]CAPDU: 80 13 01 00 [18:35:55]Write to MH i2c: E2 08 00 4F 0A 80 13 01 00 00 00 00 00 D6 [18:35:55]Write i2c OK [18:35:55]MH_I2C_Read... [18:35:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:35:55]Read from MH i2c: E2 [18:35:55]MH_I2C_Read... [18:35:55]Read from MH i2c: E2 0E 00 [18:35:55]MH_I2C_Read... [18:35:55]Read from MH i2c: E2 0E 00 4F 0A 00 09 00 01 04 26 72 66 00 00 00 00 90 00 E4 [18:35:55]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [18:35:55]wFMCommunicate OK [18:35:55]SAM_PROTO_GetShiftState done [18:35:55]FM_GetShiftState done [18:35:55]req_shift_opened done [18:35:55]requested_item shift.open_date is exist - process it [18:35:55]req_shift_open_date [18:35:55]req_shift_open_date done [18:35:55]produce_requested_data done [18:35:55]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103768,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [18:35:55]process_action_free close_receipt [18:35:55]json_value_free [18:35:55]json_value_free done [18:35:55]process_json_proto returns [18:35:55]Send response to host [18:35:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103768,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [18:35:55]free response buf [18:35:55]execute_script done [18:35:55]execute_script returns [18:35:55]free content buf [18:35:55]Sock 10.Close socket [18:35:55]Sock 10.Thread stoped [18:35:59]ConnectInit Can't take IP for lk.salyk.kg [18:35:59]CommunicateWithHost connect error [18:35:59]CommunicateWithHost err = -1 [18:35:59]OFD Sender: Server communicate error [18:36:04]OFD Sender: Processing packet 103767 [packets to send 18, broken 16] [18:36:04]ProducePacketName [18:36:04]name=ofd_packets/00103767 [18:36:04]OFD Sender: To server: pG, [18:36:04]CommunicateWithHost lk.salyk.kg:30040 [18:36:04]ConnectInit lk.salyk.kg [18:36:05]ConnectInit Can't connect to host [18:36:09]ConnectInit Can't take IP for lk.salyk.kg [18:36:09]CommunicateWithHost connect error [18:36:09]CommunicateWithHost err = -1 [18:36:09]OFD Sender: Server communicate error [18:36:14]OFD Sender: Processing packet 103767 [packets to send 18, broken 16] [18:36:14]ProducePacketName [18:36:14]name=ofd_packets/00103767 [18:36:14]OFD Sender: To server: pG, [18:36:14]CommunicateWithHost lk.salyk.kg:30040 [18:36:14]ConnectInit lk.salyk.kg [18:36:19]ConnectInit Can't take IP for lk.salyk.kg [18:36:19]CommunicateWithHost connect error [18:36:19]CommunicateWithHost err = -1 [18:36:19]OFD Sender: Server communicate error [18:36:24]OFD Sender: Processing packet 103767 [packets to send 18, broken 16] [18:36:24]ProducePacketName [18:36:24]name=ofd_packets/00103767 [18:36:24]OFD Sender: To server: pG, [18:36:24]CommunicateWithHost lk.salyk.kg:30040 [18:36:24]ConnectInit lk.salyk.kg [18:36:29]ConnectInit Can't take IP for lk.salyk.kg [18:36:29]CommunicateWithHost connect error [18:36:29]CommunicateWithHost err = -1 [18:36:29]OFD Sender: Server communicate error [18:36:34]OFD Sender: Processing packet 103767 [packets to send 18, broken 16] [18:36:34]ProducePacketName [18:36:34]name=ofd_packets/00103767 [18:36:34]OFD Sender: To server: pG, [18:36:34]CommunicateWithHost lk.salyk.kg:30040 [18:36:34]ConnectInit lk.salyk.kg [18:36:39]ConnectInit Can't take IP for lk.salyk.kg [18:36:39]CommunicateWithHost connect error [18:36:39]CommunicateWithHost err = -1 [18:36:39]OFD Sender: Server communicate error [18:36:41]accept exits with 8 [18:36:41]New connection [18:36:41]New thread 3066940772 created [18:36:41]Thread 3066797412 joined [18:36:41]Waiting for new connection... [18:36:41] Sock 8.Parse request [18:36:41]Sock 8.Check first char [18:36:41]Sock 8.First char is OK [18:36:41]request: POST /json_proto HTTP/1.0 [18:36:41]Method: POST [18:36:41]URL: /json_proto [18:36:41]Method is POST - this is cgi request [18:36:41]url: /json_proto [18:36:41]query_string will be loaded in cgi processing [18:36:41]execute_cgi json_proto POST (null) [18:36:41]execute_cgi path=json_proto method=POST [18:36:41]POST find Content-Length [18:36:41]Host: 172.17.38.133:8080 [18:36:41]Content-Length: 800 [18:36:41]Content-Type: application/json [18:36:41] [18:36:41]POST finish read [18:36:41]Found Content-Length = 800 [18:36:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673056", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 3.770, "sum" : 250.33, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 250.33 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:36:41]execute_script... [18:36: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)673056", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 3.770, "sum" : 250.33, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 250.33 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:36:41]POST & json_proto [18:36:41]process_json_proto [18:36:41]json parsed OK: [18:36:41]protocol is kg_v1.0 [18:36:41]action value=close_receipt [18:36:41]process_action close_receipt [18:36:41]cmd_close_receipt [18:36:41]MH_GetDate [18:36:41]Write to MH i2c: F0 00 00 50 0A 49 [18:36:42]Write i2c OK [18:36:42]MH_I2C_Read... [18:36:42]Read from MH i2c: F0 [18:36:42]MH_I2C_Read... [18:36:42]Read from MH i2c: F0 09 00 [18:36:42]MH_I2C_Read... [18:36:42]Read from MH i2c: F0 09 00 50 0A 00 3A 25 73 66 BD 8F 7C 64 B6 [18:36:42]GetLastDocTimeStamp 1718822152 [18:36:42]current date 1718822202 [18:36:42]FM_GetShiftState [18:36:42]SAM_PROTO_GetShiftState [18:36:42]wFMCommunicate request_size=4 [18:36:42]MH_SAM_APDU [18:36:42]CAPDU: 80 13 01 00 [18:36:42]Write to MH i2c: E2 08 00 51 0A 80 13 01 00 00 00 00 00 D8 [18:36:42]Write i2c OK [18:36:42]MH_I2C_Read... [18:36:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:36:42]Read from MH i2c: E2 [18:36:42]MH_I2C_Read... [18:36:42]Read from MH i2c: E2 0E 00 [18:36:42]MH_I2C_Read... [18:36:42]Read from MH i2c: E2 0E 00 51 0A 00 09 00 01 04 26 72 66 00 00 00 00 90 00 E6 [18:36:42]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [18:36:42]wFMCommunicate OK [18:36:42]SAM_PROTO_GetShiftState done [18:36:42]FM_GetShiftState done [18:36:42]opened in 1718756868 [18:36:42]opened+sec_in_day 1718843268 [18:36:42]quantity*price = 25032 [18:36:42]sum+1 = 25034 [18:36:42]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 250.33 НСП 1% : 2.21 НДС 12% : 26.58 Наличными: 0.00 Безнал.: 250.33 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 199 19.06.2024 18:36 Смена: 353 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000875093 ФД: 103769 ФПД: 189511137416488 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T183642&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103769&fm=189511137416488&tin=02508201610067®Number=0000000000092785&sum=25033 [18:36:43]StoreToDocumentArchive [18:36:43]shift 353 fd 103769 [18:36:43]save to /storage/0353/doc_00103769 [18:36:43]save last doc name /storage/0353/doc_00103769 to /storage/kkm_last_doc_name [18:36:43]save OK [18:36:43]Clear old archive folders... [18:36:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:36:43]tlvbuf is 01712370 [18:36:43]SAM_PROTO_ClearQueue [18:36:43]wFMCommunicate request_size=4 [18:36:43]MH_SAM_APDU [18:36:43]CAPDU: 80 09 00 00 [18:36:43]Write to MH i2c: E2 08 00 5E 0A 80 09 00 00 00 00 00 00 DA [18:36:43]Write i2c OK [18:36:43]MH_I2C_Read... [18:36:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:36:43]Read from MH i2c: E2 [18:36:43]MH_I2C_Read... [18:36:43]Read from MH i2c: E2 03 00 [18:36:43]MH_I2C_Read... [18:36:43]Read from MH i2c: E2 03 00 5E 0A 00 90 00 DC [18:36:43]RAPDU: 90 00 [18:36:43]wFMCommunicate OK [18:36:43]SAM_PROTO_ClearQueue done [18:36:43]KKMCreateOFDPacket [18:36:43]OFDProtocolAddRootSTLVToBuf [18:36:43]FM_MakeSignedData [18:36:43]FM_MakeSignedData [18:36:43]SAM_PROTO_SignData [18:36:43]wFMCommunicate request_size=4 [18:36:43]MH_SAM_APDU [18:36:43]CAPDU: 80 0D 01 02 [18:36:43]Write to MH i2c: E2 08 00 5F 0A 80 0D 01 02 00 00 00 00 E2 [18:36:43]Write i2c OK [18:36:43]MH_I2C_Read... [18:36:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:36:43]Read from MH i2c: E2 [18:36:43]MH_I2C_Read... [18:36:43]Read from MH i2c: E2 03 00 [18:36:43]MH_I2C_Read... [18:36:43]Read from MH i2c: E2 03 00 5F 0A 00 90 00 DD [18:36:43]RAPDU: 90 00 [18:36:43]wFMCommunicate OK [18:36:43]wFMCommunicate request_size=255 [18:36:43]MH_SAM_APDU [18:36:43]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 BA 0E 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 C9 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C9 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 62 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C9 61 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C7 00 00 00 F4 03 04 00 3A 25 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 59 95 01 00 35 04 06 00 AC [18:36:43]Write to MH i2c: E2 02 01 60 0A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 BA 0E 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 C9 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C9 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 62 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C9 61 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C7 00 00 00 F4 03 04 00 3A 25 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 59 95 01 00 35 04 06 00 AC 00 00 86 [18:36:43]Write i2c OK [18:36:43]MH_I2C_Read... [18:36:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:36:43]Read from MH i2c: E2 [18:36:43]MH_I2C_Read... [18:36:43]Read from MH i2c: E2 03 00 [18:36:43]MH_I2C_Read... [18:36:43]Read from MH i2c: E2 03 00 60 0A 00 90 00 DE [18:36:43]RAPDU: 90 00 [18:36:43]wFMCommunicate OK [18:36:43]wFMCommunicate request_size=10 [18:36:43]MH_SAM_APDU [18:36:43]CAPDU: 80 0D 02 02 05 5C 00 06 D5 28 [18:36:43]Write to MH i2c: E2 0D 00 61 0A 80 0D 02 02 05 00 5C 00 06 D5 28 00 00 4E [18:36:43]Write i2c OK [18:36:43]MH_I2C_Read... [18:36:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:36:43]Read from MH i2c: E2 [18:36:43]MH_I2C_Read... [18:36:43]Read from MH i2c: E2 03 00 [18:36:43]MH_I2C_Read... [18:36:43]Read from MH i2c: E2 03 00 61 0A 00 90 00 DF [18:36:43]RAPDU: 90 00 [18:36:43]wFMCommunicate OK [18:36:43]wFMCommunicate request_size=4 [18:36:43]MH_SAM_APDU [18:36:43]CAPDU: 80 0D 03 02 [18:36:43]Write to MH i2c: E2 08 00 62 0A 80 0D 03 02 00 00 00 00 E7 [18:36:43]Write i2c OK [18:36:43]MH_I2C_Read... [18:36:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:36:43]Read from MH i2c: E2 [18:36:43]MH_I2C_Read... [18:36:43]Read from MH i2c: E2 0B 00 [18:36:43]MH_I2C_Read... [18:36:43]Read from MH i2c: E2 0B 00 62 0A 00 7A E5 88 64 83 1B 09 3B 90 00 15 [18:36:43]RAPDU: 7A E5 88 64 83 1B 09 3B 90 00 [18:36:43]wFMCommunicate OK [18:36:43]SAM_PROTO_SignData done [18:36:43]FM_MakeSignedData done [18:36:43]CreateOFDProtocolMessage [18:36:43]wFMCommunicate request_size=4 [18:36:43]MH_SAM_APDU [18:36:43]CAPDU: 80 11 00 00 [18:36:43]Write to MH i2c: E2 08 00 63 0A 80 11 00 00 00 00 00 00 E7 [18:36:43]Write i2c OK [18:36:43]MH_I2C_Read... [18:36:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:36:43]Read from MH i2c: E2 [18:36:43]MH_I2C_Read... [18:36:43]Read from MH i2c: E2 17 00 [18:36:43]MH_I2C_Read... [18:36:43]Read from MH i2c: E2 17 00 63 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 3A [18:36:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [18:36:43]wFMCommunicate OK [18:36:43]CreateOFDProtocolMessage done [18:36:43]OFDSenderStorePacket 103769 [18:36:43]StoreOFDPacket docnum=103769 [18:36:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 21 AA 07 01 E2 36 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 BA 0E 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 C9 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C9 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 62 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C9 61 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C7 00 00 00 F4 03 04 00 3A 25 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 59 95 01 00 35 04 06 00 AC 5C 00 06 D5 28 7A E5 88 64 83 1B 09 3B [18:36:43]CheckFolder [18:36:43]dirname=/storage/ofd_packets [18:36:43]CheckFolder done [18:36:43]ProducePacketName [18:36:43]name=ofd_packets/00103769 [18:36:43]NVStorageSaveData ofd_packets/00103769 [18:36:43]File name is /storage/ofd_packets/00103769 [18:36:43]Write 301 bytes [18:36:43]NVStorageSaveData done [18:36:43]OFDSenderStorePacket done [18:36:43]KKMCreateOFDPacket done [18:36:43]NVStorageSaveData kkm_last_timestamp [18:36:43]File name is /storage/kkm_last_timestamp [18:36:43]Write 4 bytes [18:36:43]NVStorageSaveData done [18:36:43]ExternCall_PrintAddStr [18:36:43]wPrintStart [18:36:43]Write to MH i2c: 01 00 00 64 0A 6E [18:36:43]Write i2c OK [18:36:43]MH_I2C_Read... [18:36:43]Read from MH i2c: 01 [18:36:43]MH_I2C_Read... [18:36:43]Read from MH i2c: 01 07 00 [18:36:43]MH_I2C_Read... [18:36:43]Read from MH i2c: 01 07 00 64 0A 00 00 00 00 00 FF 0F 83 [18:36:43]RasterBufferAndPrint [18:36:43]line Счет N : (1)673056 [18:36:43]line ИНН: 02508201610067 [18:36:43]line Контрольно-Кассовый Чек [18:36:43]line ПРОДАЖА [18:36:43]line ТРК (МРК, ГНК) : 32 [18:36:43]line Товар: 2710124130 [18:36:43]line Аи-92-К-5 [18:36:43]line 3.770 * 66.40 [18:36:43]line = 250.33 [18:36:43]line НДС 12% НСП 1% [18:36:43]line > о реализуемом товаре [18:36:43]line ИТОГО: 250.33 [18:36:43]line НСП 1% : 2.21 [18:36:43]line НДС 12% : 26.58 [18:36:43]line Наличными: 0.00 [18:36:43]line Безнал.: 250.33 [18:36:43]line Место: АЗС № 120 "Партнер Нефть" [18:36:43]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [18:36:43]line СНО: Общий режим [18:36:43]line Чек 199 19.06.2024 18:36 [18:36:43]line Смена: 353 ФФД: 1.0 [18:36:43]line ЗНМ: 0300000164 [18:36:43]line РНМ: 0000000000092785 [18:36:43]line Версия ККМ: 001 [18:36:43]line Платежная система: O! деньги [18:36:43]line ФМ: 0000000000875093 [18:36:43]line ФД: 103769 [18:36:43]line ФПД: 189511137416488 [18:36:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T183642&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103769&fm=189511137416488&tin=02508201610067®Number=0000000000092785&sum=25033 [18:36:43]written 0, free lines is 4095 [18:36:43]OFD Sender: Processing packet 103767 [packets to send 19, broken 16] [18:36:43]ProducePacketName [18:36:43]name=ofd_packets/00103767 [18:36:43]OFD Sender: To server: pG, [18:36:43]CommunicateWithHost lk.salyk.kg:30040 [18:36:43]ConnectInit lk.salyk.kg [18:36:44]Write to MH i2c: 01 00 00 8E 0A 98 [18:36:44]Write i2c OK [18:36:44]MH_I2C_Read... [18:36:44]Read from MH i2c: 01 [18:36:44]MH_I2C_Read... [18:36:44]Read from MH i2c: 01 07 00 [18:36:44]MH_I2C_Read... [18:36:44]Read from MH i2c: 01 07 00 8E 0A 00 00 00 00 00 F0 0C 9B [18:36:44]RasterBufferAndPrint [18:36:44]line [18:36:44]line [18:36:44]line [18:36:44]line [18:36:44]line [18:36:44]written 0, free lines is 3335 [18:36:44]MH_Cut [18:36:44]Write to MH i2c: D1 01 00 95 0A 01 71 [18:36:44]Write i2c OK [18:36:44]MH_I2C_Read... [18:36:44]Read from MH i2c: D1 [18:36:44]MH_I2C_Read... [18:36:44]Read from MH i2c: D1 01 00 [18:36:44]MH_I2C_Read... [18:36:44]Read from MH i2c: D1 01 00 95 0A 00 70 [18:36:44]Write to MH i2c: 01 00 00 96 0A A0 [18:36:44]Write i2c OK [18:36:44]MH_I2C_Read... [18:36:44]*** Cut start [18:36:44]*** Partial cut [18:36:44]*** CUTSNS_PIN = 1 [18:36:45]*** CUTSNS_PIN = 0 [18:36:45]*** Brake cut motor [18:36:45]Read from MH i2c: 01 [18:36:45]MH_I2C_Read... [18:36:45]*** Stop cut motor [18:36:45]*** Cut end [18:36:45]Read from MH i2c: 01 07 00 [18:36:45]MH_I2C_Read... [18:36:45]Read from MH i2c: 01 07 00 96 0A 00 00 00 00 00 FF 0F B5 [18:36:45]process_action close_receipt done [18:36:45]requested_data is exist [18:36:45]produce_requested_data [18:36:45]requested_item fm.sn is exist - process it [18:36:45]wFMCommunicate request_size=4 [18:36:45]MH_SAM_APDU [18:36:45]CAPDU: 80 11 00 00 [18:36:45]Write to MH i2c: E2 08 00 97 0A 80 11 00 00 00 00 00 00 1B [18:36:45]Write i2c OK [18:36:45]MH_I2C_Read... [18:36:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:36:45]Read from MH i2c: E2 [18:36:45]MH_I2C_Read... [18:36:45]Read from MH i2c: E2 17 00 [18:36:45]MH_I2C_Read... [18:36:45]Read from MH i2c: E2 17 00 97 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 6E [18:36:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [18:36:45]wFMCommunicate OK [18:36:45]requested_item fd.num is exist - process it [18:36:45]SAM_PROTO_GetFieldsCounters [18:36:45]wFMCommunicate request_size=4 [18:36:45]MH_SAM_APDU [18:36:45]CAPDU: 80 13 00 00 [18:36:45]Write to MH i2c: E2 08 00 98 0A 80 13 00 00 00 00 00 00 1E [18:36:45]Write i2c OK [18:36:45]MH_I2C_Read... [18:36:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:36:45]Read from MH i2c: E2 [18:36:45]MH_I2C_Read... [18:36:45]Read from MH i2c: E2 62 00 [18:36:45]MH_I2C_Read... [18:36:45]Read from MH i2c: E2 62 00 98 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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 59 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 C7 00 00 00 5E 04 04 00 C7 00 00 00 57 04 04 00 C8 00 00 00 19 04 04 00 00 00 00 00 90 00 EB [18:36: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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 59 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 C7 00 00 00 5E 04 04 00 C7 00 00 00 57 04 04 00 C8 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:36:45]wFMCommunicate OK [18:36:45]SAM_PROTO_GetFieldsCounters done [18:36:45]requested_item shift.num is exist - process it [18:36:45]requested_item shift.opened is exist - process it [18:36:45]req_shift_opened [18:36:45]FM_GetShiftState [18:36:45]SAM_PROTO_GetShiftState [18:36:45]wFMCommunicate request_size=4 [18:36:45]MH_SAM_APDU [18:36:45]CAPDU: 80 13 01 00 [18:36:45]Write to MH i2c: E2 08 00 99 0A 80 13 01 00 00 00 00 00 20 [18:36:45]Write i2c OK [18:36:45]MH_I2C_Read... [18:36:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:36:45]Read from MH i2c: E2 [18:36:45]MH_I2C_Read... [18:36:45]Read from MH i2c: E2 0E 00 [18:36:45]MH_I2C_Read... [18:36:45]Read from MH i2c: E2 0E 00 99 0A 00 09 00 01 04 26 72 66 00 00 00 00 90 00 2E [18:36:45]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [18:36:45]wFMCommunicate OK [18:36:45]SAM_PROTO_GetShiftState done [18:36:45]FM_GetShiftState done [18:36:45]req_shift_opened done [18:36:45]requested_item shift.open_date is exist - process it [18:36:45]req_shift_open_date [18:36:45]req_shift_open_date done [18:36:45]produce_requested_data done [18:36:45]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103769,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [18:36:45]process_action_free close_receipt [18:36:45]json_value_free [18:36:45]json_value_free done [18:36:45]process_json_proto returns [18:36:45]Send response to host [18:36:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103769,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [18:36:45]free response buf [18:36:45]execute_script done [18:36:45]execute_script returns [18:36:45]free content buf [18:36:45]Sock 8.Close socket [18:36:45]Sock 8.Thread stoped [18:36:48]ConnectInit Can't take IP for lk.salyk.kg [18:36:48]CommunicateWithHost connect error [18:36:48]CommunicateWithHost err = -1 [18:36:48]OFD Sender: Server communicate error [18:36:53]OFD Sender: Processing packet 103767 [packets to send 19, broken 16] [18:36:53]ProducePacketName [18:36:53]name=ofd_packets/00103767 [18:36:53]OFD Sender: To server: pG, [18:36:53]CommunicateWithHost lk.salyk.kg:30040 [18:36:53]ConnectInit lk.salyk.kg [18:36:58]ConnectInit Can't take IP for lk.salyk.kg [18:36:58]CommunicateWithHost connect error [18:36:58]CommunicateWithHost err = -1 [18:36:58]OFD Sender: Server communicate error [18:37:03]OFD Sender: Processing packet 103767 [packets to send 19, broken 16] [18:37:03]ProducePacketName [18:37:03]name=ofd_packets/00103767 [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:08]ConnectInit Can't take IP for lk.salyk.kg [18:37:08]CommunicateWithHost connect error [18:37:08]CommunicateWithHost err = -1 [18:37:08]OFD Sender: Server communicate error [18:37:13]OFD Sender: Processing packet 103767 [packets to send 19, broken 16] [18:37:13]ProducePacketName [18:37:13]name=ofd_packets/00103767 [18:37:13]OFD Sender: To server: pG, [18:37:13]CommunicateWithHost lk.salyk.kg:30040 [18:37:13]ConnectInit lk.salyk.kg [18:37:18]ConnectInit Can't take IP for lk.salyk.kg [18:37:18]CommunicateWithHost connect error [18:37:18]CommunicateWithHost err = -1 [18:37:18]OFD Sender: Server communicate error [18:37:23]OFD Sender: Processing packet 103767 [packets to send 19, broken 16] [18:37:23]ProducePacketName [18:37:23]name=ofd_packets/00103767 [18:37:23]OFD Sender: To server: pG, [18:37:23]CommunicateWithHost lk.salyk.kg:30040 [18:37:23]ConnectInit lk.salyk.kg [18:37:28]ConnectInit Can't take IP for lk.salyk.kg [18:37:28]CommunicateWithHost connect error [18:37:28]CommunicateWithHost err = -1 [18:37:28]OFD Sender: Server communicate error [18:37:33]OFD Sender: Processing packet 103767 [packets to send 19, broken 16] [18:37:33]ProducePacketName [18:37:33]name=ofd_packets/00103767 [18:37:33]OFD Sender: To server: pG, [18:37:33]CommunicateWithHost lk.salyk.kg:30040 [18:37:33]ConnectInit lk.salyk.kg [18:37:38]ConnectInit Can't take IP for lk.salyk.kg [18:37:38]CommunicateWithHost connect error [18:37:38]CommunicateWithHost err = -1 [18:37:38]OFD Sender: Server communicate error [18:37:43]OFD Sender: Processing packet 103767 [packets to send 19, broken 16] [18:37:43]ProducePacketName [18:37:43]name=ofd_packets/00103767 [18:37:43]OFD Sender: To server: pG, [18:37:43]CommunicateWithHost lk.salyk.kg:30040 [18:37:43]ConnectInit lk.salyk.kg [18:37:48]ConnectInit Can't take IP for lk.salyk.kg [18:37:48]CommunicateWithHost connect error [18:37:48]CommunicateWithHost err = -1 [18:37:48]OFD Sender: Server communicate error [18:37:53]OFD Sender: Processing packet 103767 [packets to send 19, broken 16] [18:37:53]ProducePacketName [18:37:53]name=ofd_packets/00103767 [18:37:53]OFD Sender: To server: pG, [18:37:53]CommunicateWithHost lk.salyk.kg:30040 [18:37:53]ConnectInit lk.salyk.kg [18:37:58]ConnectInit Can't take IP for lk.salyk.kg [18:37:58]CommunicateWithHost connect error [18:37:58]CommunicateWithHost err = -1 [18:37:58]OFD Sender: Server communicate error [18:38:03]OFD Sender: Processing packet 103767 [packets to send 19, broken 16] [18:38:03]ProducePacketName [18:38:03]name=ofd_packets/00103767 [18:38:03]OFD Sender: To server: pG, [18:38:03]CommunicateWithHost lk.salyk.kg:30040 [18:38:03]ConnectInit lk.salyk.kg [18:38:08]ConnectInit Can't take IP for lk.salyk.kg [18:38:08]CommunicateWithHost connect error [18:38:08]CommunicateWithHost err = -1 [18:38:08]OFD Sender: Server communicate error [18:38:11]accept exits with 10 [18:38:11]New connection [18:38:11]New thread 3066797412 created [18:38:11]Thread 3066940772 joined [18:38:11]Waiting for new connection... [18:38:11] Sock 10.Parse request [18:38:11]Sock 10.Check first char [18:38:11]Sock 10.First char is OK [18:38:11]request: POST /json_proto HTTP/1.0 [18:38:11]Method: POST [18:38:11]URL: /json_proto [18:38:11]Method is POST - this is cgi request [18:38:11]url: /json_proto [18:38:11]query_string will be loaded in cgi processing [18:38:11]execute_cgi json_proto POST (null) [18:38:11]execute_cgi path=json_proto method=POST [18:38:11]POST find Content-Length [18:38:11]Host: 172.17.38.133:8080 [18:38:11]Content-Length: 682 [18:38:11]Content-Type: application/json [18:38:11] [18:38:11]POST finish read [18:38:11]Found Content-Length = 682 [18:38:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673058", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 6.860, "sum" : 500.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:38:11]execute_script... [18:38: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)673058", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 6.860, "sum" : 500.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:38:11]POST & json_proto [18:38:11]process_json_proto [18:38:11]json parsed OK: [18:38:11]protocol is kg_v1.0 [18:38:11]action value=close_receipt [18:38:11]process_action close_receipt [18:38:11]cmd_close_receipt [18:38:11]MH_GetDate [18:38:11]Write to MH i2c: F0 00 00 9A 0A 93 [18:38:11]Write i2c OK [18:38:11]MH_I2C_Read... [18:38:11]Read from MH i2c: F0 [18:38:11]MH_I2C_Read... [18:38:11]Read from MH i2c: F0 09 00 [18:38:11]MH_I2C_Read... [18:38:11]Read from MH i2c: F0 09 00 9A 0A 00 94 25 73 66 BD 8F 7C 64 5A [18:38:11]GetLastDocTimeStamp 1718822202 [18:38:11]current date 1718822292 [18:38:11]FM_GetShiftState [18:38:11]SAM_PROTO_GetShiftState [18:38:11]wFMCommunicate request_size=4 [18:38:11]MH_SAM_APDU [18:38:11]CAPDU: 80 13 01 00 [18:38:11]Write to MH i2c: E2 08 00 9B 0A 80 13 01 00 00 00 00 00 22 [18:38:11]Write i2c OK [18:38:11]MH_I2C_Read... [18:38:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:38:11]Read from MH i2c: E2 [18:38:11]MH_I2C_Read... [18:38:11]Read from MH i2c: E2 0E 00 [18:38:11]MH_I2C_Read... [18:38:11]Read from MH i2c: E2 0E 00 9B 0A 00 09 00 01 04 26 72 66 00 00 00 00 90 00 30 [18:38:11]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [18:38:11]wFMCommunicate OK [18:38:11]SAM_PROTO_GetShiftState done [18:38:11]FM_GetShiftState done [18:38:11]opened in 1718756868 [18:38:11]opened+sec_in_day 1718843268 [18:38:11]quantity*price = 50009 [18:38:11]sum+1 = 50010 [18:38:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 200 19.06.2024 18:38 Смена: 353 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103770 ФПД: 273889129732676 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T183812&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103770&fm=273889129732676&tin=02508201610067®Number=0000000000092785&sum=50000 [18:38:12]StoreToDocumentArchive [18:38:12]shift 353 fd 103770 [18:38:12]save to /storage/0353/doc_00103770 [18:38:12]save last doc name /storage/0353/doc_00103770 to /storage/kkm_last_doc_name [18:38:12]save OK [18:38:12]Clear old archive folders... [18:38:12]ProcessDocumentItem done err = 0, tmpTLVsize=252 [18:38:12]tlvbuf is 0173DE50 [18:38:12]SAM_PROTO_ClearQueue [18:38:12]wFMCommunicate request_size=4 [18:38:12]MH_SAM_APDU [18:38:12]CAPDU: 80 09 00 00 [18:38:12]Write to MH i2c: E2 08 00 A8 0A 80 09 00 00 00 00 00 00 24 [18:38:12]Write i2c OK [18:38:12]MH_I2C_Read... [18:38:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:38:13]Read from MH i2c: E2 [18:38:13]MH_I2C_Read... [18:38:13]Read from MH i2c: E2 03 00 [18:38:13]MH_I2C_Read... [18:38:13]Read from MH i2c: E2 03 00 A8 0A 00 90 00 26 [18:38:13]RAPDU: 90 00 [18:38:13]wFMCommunicate OK [18:38:13]SAM_PROTO_ClearQueue done [18:38:13]KKMCreateOFDPacket [18:38:13]OFDProtocolAddRootSTLVToBuf [18:38:13]FM_MakeSignedData [18:38:13]FM_MakeSignedData [18:38:13]SAM_PROTO_SignData [18:38:13]wFMCommunicate request_size=4 [18:38:13]MH_SAM_APDU [18:38:13]CAPDU: 80 0D 01 02 [18:38:13]Write to MH i2c: E2 08 00 A9 0A 80 0D 01 02 00 00 00 00 2C [18:38:13]Write i2c OK [18:38:13]MH_I2C_Read... [18:38:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:38:13]Read from MH i2c: E2 [18:38:13]MH_I2C_Read... [18:38:13]Read from MH i2c: E2 03 00 [18:38:13]MH_I2C_Read... [18:38:13]Read from MH i2c: E2 03 00 A9 0A 00 90 00 27 [18:38:13]RAPDU: 90 00 [18:38:13]wFMCommunicate OK [18:38:13]wFMCommunicate request_size=255 [18:38:13]MH_SAM_APDU [18:38:13]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C8 00 00 00 F4 03 04 00 94 25 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 5A 95 01 00 35 04 06 00 [18:38:13]Write to MH i2c: E2 02 01 AA 0A 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C8 00 00 00 F4 03 04 00 94 25 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 5A 95 01 00 35 04 06 00 00 00 70 [18:38:13]Write i2c OK [18:38:13]MH_I2C_Read... [18:38:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:38:13]Read from MH i2c: E2 [18:38:13]MH_I2C_Read... [18:38:13]Read from MH i2c: E2 03 00 [18:38:13]MH_I2C_Read... [18:38:13]Read from MH i2c: E2 03 00 AA 0A 00 90 00 28 [18:38:13]RAPDU: 90 00 [18:38:13]wFMCommunicate OK [18:38:13]wFMCommunicate request_size=11 [18:38:13]MH_SAM_APDU [18:38:13]CAPDU: 80 0D 02 02 06 F9 19 C8 49 1A 44 [18:38:13]Write to MH i2c: E2 0E 00 AB 0A 80 0D 02 02 06 00 F9 19 C8 49 1A 44 00 00 BC [18:38:13]Write i2c OK [18:38:13]MH_I2C_Read... [18:38:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:38:13]Read from MH i2c: E2 [18:38:13]MH_I2C_Read... [18:38:13]Read from MH i2c: E2 03 00 [18:38:13]MH_I2C_Read... [18:38:13]Read from MH i2c: E2 03 00 AB 0A 00 90 00 29 [18:38:13]RAPDU: 90 00 [18:38:13]wFMCommunicate OK [18:38:13]wFMCommunicate request_size=4 [18:38:13]MH_SAM_APDU [18:38:13]CAPDU: 80 0D 03 02 [18:38:13]Write to MH i2c: E2 08 00 AC 0A 80 0D 03 02 00 00 00 00 31 [18:38:13]Write i2c OK [18:38:13]MH_I2C_Read... [18:38:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:38:13]Read from MH i2c: E2 [18:38:13]MH_I2C_Read... [18:38:13]Read from MH i2c: E2 0B 00 [18:38:13]MH_I2C_Read... [18:38:13]Read from MH i2c: E2 0B 00 AC 0A 00 0E A8 9F B1 2B D3 AF DE 90 00 C3 [18:38:13]RAPDU: 0E A8 9F B1 2B D3 AF DE 90 00 [18:38:13]wFMCommunicate OK [18:38:13]SAM_PROTO_SignData done [18:38:13]FM_MakeSignedData done [18:38:13]CreateOFDProtocolMessage [18:38:13]wFMCommunicate request_size=4 [18:38:13]MH_SAM_APDU [18:38:13]CAPDU: 80 11 00 00 [18:38:13]Write to MH i2c: E2 08 00 AD 0A 80 11 00 00 00 00 00 00 31 [18:38:13]Write i2c OK [18:38:13]MH_I2C_Read... [18:38:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:38:13]Read from MH i2c: E2 [18:38:13]MH_I2C_Read... [18:38:13]Read from MH i2c: E2 17 00 [18:38:13]MH_I2C_Read... [18:38:13]Read from MH i2c: E2 17 00 AD 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 84 [18:38:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [18:38:13]wFMCommunicate OK [18:38:13]CreateOFDProtocolMessage done [18:38:13]OFDSenderStorePacket 103770 [18:38:13]StoreOFDPacket docnum=103770 [18:38:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 4A 14 08 01 90 C4 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C8 00 00 00 F4 03 04 00 94 25 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 5A 95 01 00 35 04 06 00 F9 19 C8 49 1A 44 0E A8 9F B1 2B D3 AF DE [18:38:13]CheckFolder [18:38:13]dirname=/storage/ofd_packets [18:38:13]CheckFolder done [18:38:13]ProducePacketName [18:38:13]name=ofd_packets/00103770 [18:38:13]NVStorageSaveData ofd_packets/00103770 [18:38:13]File name is /storage/ofd_packets/00103770 [18:38:13]Write 302 bytes [18:38:13]NVStorageSaveData done [18:38:13]OFDSenderStorePacket done [18:38:13]KKMCreateOFDPacket done [18:38:13]NVStorageSaveData kkm_last_timestamp [18:38:13]File name is /storage/kkm_last_timestamp [18:38:13]Write 4 bytes [18:38:13]NVStorageSaveData done [18:38:13]ExternCall_PrintAddStr [18:38:13]wPrintStart [18:38:13]Write to MH i2c: 01 00 00 AE 0A B8 [18:38:13]Write i2c OK [18:38:13]MH_I2C_Read... [18:38:13]Read from MH i2c: 01 [18:38:13]MH_I2C_Read... [18:38:13]Read from MH i2c: 01 07 00 [18:38:13]MH_I2C_Read... [18:38:13]Read from MH i2c: 01 07 00 AE 0A 00 00 00 00 00 FF 0F CD [18:38:13]RasterBufferAndPrint [18:38:13]line Счет N : (1)673058 [18:38:13]line ИНН: 02508201610067 [18:38:13]line Контрольно-Кассовый Чек [18:38:13]line ПРОДАЖА [18:38:13]line ТРК (МРК, ГНК) : 11 [18:38:13]line Товар: 2710194210 [18:38:13]line ДТ(л)-К-5 [18:38:13]line 6.860 * 72.90 [18:38:13]line = 500.09 [18:38:13]line НДС 12% НСП 1% [18:38:13]line > о реализуемом товаре [18:38:13]line ОКРУГЛЕНИЕ: -0.09 [18:38:13]line ИТОГО: 500.00 [18:38:13]line Внесено: 500.00 [18:38:13]line СДАЧА: 0.00 [18:38:13]line НСП 1% : 4.43 [18:38:13]line НДС 12% : 53.11 [18:38:13]line Наличными: 500.00 [18:38:13]line Безнал.: 0.00 [18:38:13]line Место: АЗС № 120 "Партнер Нефть" [18:38:13]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [18:38:13]line СНО: Общий режим [18:38:13]line Чек 200 19.06.2024 18:38 [18:38:13]line Смена: 353 ФФД: 1.0 [18:38:13]line ЗНМ: 0300000164 [18:38:13]line РНМ: 0000000000092785 [18:38:13]line Версия ККМ: 001 [18:38:13]line ФМ: 0000000000875093 [18:38:13]line ФД: 103770 [18:38:13]line ФПД: 273889129732676 [18:38:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T183812&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103770&fm=273889129732676&tin=02508201610067®Number=0000000000092785&sum=50000 [18:38:13]OFD Sender: Processing packet 103767 [packets to send 20, broken 16] [18:38:13]ProducePacketName [18:38:13]name=ofd_packets/00103767 [18:38:13]OFD Sender: To server: pG, [18:38:13]CommunicateWithHost lk.salyk.kg:30040 [18:38:13]ConnectInit lk.salyk.kg [18:38:13]written 0, free lines is 4095 [18:38:14]Write to MH i2c: 01 00 00 D9 0A E3 [18:38:14]Write i2c OK [18:38:14]MH_I2C_Read... [18:38:14]Read from MH i2c: 01 [18:38:14]MH_I2C_Read... [18:38:14]Read from MH i2c: 01 07 00 [18:38:14]MH_I2C_Read... [18:38:14]Read from MH i2c: 01 07 00 D9 0A 00 00 00 00 00 E0 0C D6 [18:38:14]RasterBufferAndPrint [18:38:14]line [18:38:14]line [18:38:14]line [18:38:14]line [18:38:14]line [18:38:14]written 0, free lines is 3327 [18:38:14]MH_Cut [18:38:14]Write to MH i2c: D1 01 00 E0 0A 01 BC [18:38:14]Write i2c OK [18:38:14]MH_I2C_Read... [18:38:14]Read from MH i2c: D1 [18:38:14]MH_I2C_Read... [18:38:14]Read from MH i2c: D1 01 00 [18:38:14]MH_I2C_Read... [18:38:14]Read from MH i2c: D1 01 00 E0 0A 00 BB [18:38:14]Write to MH i2c: 01 00 00 E1 0A EB [18:38:14]Write i2c OK [18:38:14]MH_I2C_Read... [18:38:15]*** Cut start [18:38:15]*** Partial cut [18:38:15]*** CUTSNS_PIN = 1 [18:38:15]*** CUTSNS_PIN = 0 [18:38:15]*** Brake cut motor [18:38:15]Read from MH i2c: 01 [18:38:15]MH_I2C_Read... [18:38:15]*** Stop cut motor [18:38:15]*** Cut end [18:38:15]Read from MH i2c: 01 07 00 [18:38:15]MH_I2C_Read... [18:38:15]Read from MH i2c: 01 07 00 E1 0A 00 00 00 00 00 FF 0F 00 [18:38:15]process_action close_receipt done [18:38:15]requested_data is exist [18:38:15]produce_requested_data [18:38:15]requested_item fm.sn is exist - process it [18:38:15]wFMCommunicate request_size=4 [18:38:15]MH_SAM_APDU [18:38:15]CAPDU: 80 11 00 00 [18:38:15]Write to MH i2c: E2 08 00 E2 0A 80 11 00 00 00 00 00 00 66 [18:38:15]Write i2c OK [18:38:15]MH_I2C_Read... [18:38:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:38:15]Read from MH i2c: E2 [18:38:15]MH_I2C_Read... [18:38:15]Read from MH i2c: E2 17 00 [18:38:15]MH_I2C_Read... [18:38:15]Read from MH i2c: E2 17 00 E2 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 B9 [18:38:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [18:38:15]wFMCommunicate OK [18:38:15]requested_item fd.num is exist - process it [18:38:15]SAM_PROTO_GetFieldsCounters [18:38:15]wFMCommunicate request_size=4 [18:38:15]MH_SAM_APDU [18:38:15]CAPDU: 80 13 00 00 [18:38:15]Write to MH i2c: E2 08 00 E3 0A 80 13 00 00 00 00 00 00 69 [18:38:15]Write i2c OK [18:38:15]MH_I2C_Read... [18:38:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:38:15]Read from MH i2c: E2 [18:38:15]MH_I2C_Read... [18:38:15]Read from MH i2c: E2 62 00 [18:38:15]MH_I2C_Read... [18:38:15]Read from MH i2c: E2 62 00 E3 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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 5A 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 C8 00 00 00 5E 04 04 00 C8 00 00 00 57 04 04 00 C9 00 00 00 19 04 04 00 00 00 00 00 90 00 3A [18:38: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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 5A 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 C8 00 00 00 5E 04 04 00 C8 00 00 00 57 04 04 00 C9 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:38:16]wFMCommunicate OK [18:38:16]SAM_PROTO_GetFieldsCounters done [18:38:16]requested_item shift.num is exist - process it [18:38:16]requested_item shift.opened is exist - process it [18:38:16]req_shift_opened [18:38:16]FM_GetShiftState [18:38:16]SAM_PROTO_GetShiftState [18:38:16]wFMCommunicate request_size=4 [18:38:16]MH_SAM_APDU [18:38:16]CAPDU: 80 13 01 00 [18:38:16]Write to MH i2c: E2 08 00 E4 0A 80 13 01 00 00 00 00 00 6B [18:38:16]Write i2c OK [18:38:16]MH_I2C_Read... [18:38:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:38:16]Read from MH i2c: E2 [18:38:16]MH_I2C_Read... [18:38:16]Read from MH i2c: E2 0E 00 [18:38:16]MH_I2C_Read... [18:38:16]Read from MH i2c: E2 0E 00 E4 0A 00 09 00 01 04 26 72 66 00 00 00 00 90 00 79 [18:38:16]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [18:38:16]wFMCommunicate OK [18:38:16]SAM_PROTO_GetShiftState done [18:38:16]FM_GetShiftState done [18:38:16]req_shift_opened done [18:38:16]requested_item shift.open_date is exist - process it [18:38:16]req_shift_open_date [18:38:16]req_shift_open_date done [18:38:16]produce_requested_data done [18:38:16]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103770,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [18:38:16]process_action_free close_receipt [18:38:16]json_value_free [18:38:16]json_value_free done [18:38:16]process_json_proto returns [18:38:16]Send response to host [18:38:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103770,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [18:38:16]free response buf [18:38:16]execute_script done [18:38:16]execute_script returns [18:38:16]free content buf [18:38:16]Sock 10.Close socket [18:38:16]Sock 10.Thread stoped [18:38:18]ConnectInit Can't take IP for lk.salyk.kg [18:38:18]CommunicateWithHost connect error [18:38:18]CommunicateWithHost err = -1 [18:38:18]OFD Sender: Server communicate error [18:38:23]ConnectInit Can't connect to host [18:38:23]OFD Sender: Processing packet 103767 [packets to send 20, broken 16] [18:38:23]ProducePacketName [18:38:23]name=ofd_packets/00103767 [18:38:23]OFD Sender: To server: pG, [18:38:23]CommunicateWithHost lk.salyk.kg:30040 [18:38:23]ConnectInit lk.salyk.kg [18:38:28]ConnectInit Can't take IP for lk.salyk.kg [18:38:28]CommunicateWithHost connect error [18:38:28]CommunicateWithHost err = -1 [18:38:28]OFD Sender: Server communicate error [18:38:33]OFD Sender: Processing packet 103767 [packets to send 20, broken 16] [18:38:33]ProducePacketName [18:38:33]name=ofd_packets/00103767 [18:38:33]OFD Sender: To server: pG, [18:38:33]CommunicateWithHost lk.salyk.kg:30040 [18:38:33]ConnectInit lk.salyk.kg [18:38:38]ConnectInit Can't take IP for lk.salyk.kg [18:38:38]CommunicateWithHost connect error [18:38:38]CommunicateWithHost err = -1 [18:38:38]OFD Sender: Server communicate error [18:38:43]OFD Sender: Processing packet 103767 [packets to send 20, broken 16] [18:38:43]ProducePacketName [18:38:43]name=ofd_packets/00103767 [18:38:43]OFD Sender: To server: pG, [18:38:43]CommunicateWithHost lk.salyk.kg:30040 [18:38:43]ConnectInit lk.salyk.kg [18:38:48]ConnectInit Can't take IP for lk.salyk.kg [18:38:48]CommunicateWithHost connect error [18:38:48]CommunicateWithHost err = -1 [18:38:48]OFD Sender: Server communicate error [18:38:53]OFD Sender: Processing packet 103767 [packets to send 20, broken 16] [18:38:53]ProducePacketName [18:38:53]name=ofd_packets/00103767 [18:38:53]OFD Sender: To server: pG, [18:38:53]CommunicateWithHost lk.salyk.kg:30040 [18:38:53]ConnectInit lk.salyk.kg [18:38:58]ConnectInit Can't take IP for lk.salyk.kg [18:38:58]CommunicateWithHost connect error [18:38:58]CommunicateWithHost err = -1 [18:38:58]OFD Sender: Server communicate error [18:39:03]OFD Sender: Processing packet 103767 [packets to send 20, broken 16] [18:39:03]ProducePacketName [18:39:03]name=ofd_packets/00103767 [18:39:03]OFD Sender: To server: pG, [18:39:03]CommunicateWithHost lk.salyk.kg:30040 [18:39:03]ConnectInit lk.salyk.kg [18:39:08]ConnectInit Can't take IP for lk.salyk.kg [18:39:08]CommunicateWithHost connect error [18:39:08]CommunicateWithHost err = -1 [18:39:08]OFD Sender: Server communicate error [18:39:13]OFD Sender: Processing packet 103767 [packets to send 20, broken 16] [18:39:13]ProducePacketName [18:39:13]name=ofd_packets/00103767 [18:39:13]OFD Sender: To server: pG, [18:39:13]CommunicateWithHost lk.salyk.kg:30040 [18:39:13]ConnectInit lk.salyk.kg [18:39:18]ConnectInit Can't take IP for lk.salyk.kg [18:39:18]CommunicateWithHost connect error [18:39:18]CommunicateWithHost err = -1 [18:39:18]OFD Sender: Server communicate error [18:39:23]OFD Sender: Processing packet 103767 [packets to send 20, broken 16] [18:39:23]ProducePacketName [18:39:23]name=ofd_packets/00103767 [18:39:23]OFD Sender: To server: pG, [18:39:23]CommunicateWithHost lk.salyk.kg:30040 [18:39:23]ConnectInit lk.salyk.kg [18:39:29]ConnectInit Can't take IP for lk.salyk.kg [18:39:29]CommunicateWithHost connect error [18:39:29]CommunicateWithHost err = -1 [18:39:29]OFD Sender: Server communicate error [18:39:34]OFD Sender: Processing packet 103767 [packets to send 20, broken 16] [18:39:34]ProducePacketName [18:39:34]name=ofd_packets/00103767 [18:39:34]OFD Sender: To server: pG, [18:39:34]CommunicateWithHost lk.salyk.kg:30040 [18:39:34]ConnectInit lk.salyk.kg [18:39:36]Connected sock=9 [18:39:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 A6 F0 07 01 7A 74 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C5 00 00 00 F4 03 04 00 03 25 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 57 95 01 00 35 04 06 00 57 89 0A 6B CC 4B 96 FB D3 6B ED E4 64 A6 [18:39:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 E5 C8 47 00 06 08 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 57 95 01 00 F4 03 04 00 6F CC 72 66 B6 04 01 00 00 27 24 82 8F F5 5A 8F 97 [18:39:37]CommunicateWithHost err = 0 [18:39:37]CheckOFDResponse [18:39:37]1017 (14) - 77093643461234 [18:39:37]1041 (16) - 0000000000875093 [18:39:37]1040 (4) - 103767 [18:39:37]1012 (4) - 19.06.2024 12:17 [18:39:37]1206 (1) - 0 [18:39:37]OFD Sender: Remove packet 103767 [18:39:37]ProducePacketName [18:39:37]name=ofd_packets/00103767 [18:39:37]NVStorageDeleteData [18:39:37]OFD Sender: Processing packet 103768 [packets to send 19, broken 16] [18:39:37]ProducePacketName [18:39:37]name=ofd_packets/00103768 [18:39:37]OFD Sender: To server: pG, [18:39:37]CommunicateWithHost lk.salyk.kg:30040 [18:39:37]ConnectInit lk.salyk.kg [18:39:37]Connected sock=9 [18:39:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 A9 03 07 01 26 79 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C6 00 00 00 F4 03 04 00 08 25 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 58 95 01 00 35 04 06 00 E6 73 F4 CB 06 9C B0 C5 9A 71 BD 4F 5A EA [18:39:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 DB C9 47 00 38 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 39 33 10 04 04 00 58 95 01 00 F4 03 04 00 70 CC 72 66 B6 04 01 00 00 5C 46 89 9A 61 61 B5 AB [18:39:38]CommunicateWithHost err = 0 [18:39:38]CheckOFDResponse [18:39:38]1017 (14) - 77093643461234 [18:39:38]1041 (16) - 0000000000875093 [18:39:38]1040 (4) - 103768 [18:39:38]1012 (4) - 19.06.2024 12:17 [18:39:38]1206 (1) - 0 [18:39:38]OFD Sender: Remove packet 103768 [18:39:38]ProducePacketName [18:39:38]name=ofd_packets/00103768 [18:39:38]NVStorageDeleteData [18:39:38]OFD Sender: Processing packet 103769 [packets to send 18, broken 16] [18:39:38]ProducePacketName [18:39:38]name=ofd_packets/00103769 [18:39:38]OFD Sender: To server: pG, [18:39:38]CommunicateWithHost lk.salyk.kg:30040 [18:39:38]ConnectInit lk.salyk.kg [18:39:38]Connected sock=9 [18:39:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 21 AA 07 01 E2 36 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 BA 0E 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 C9 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C9 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 62 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C9 61 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C7 00 00 00 F4 03 04 00 3A 25 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 59 95 01 00 35 04 06 00 AC 5C 00 06 D5 28 7A E5 88 64 83 1B 09 3B [18:39: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 39 33 4F 00 00 00 AA D7 47 00 89 A4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 59 95 01 00 F4 03 04 00 71 CC 72 66 B6 04 01 00 00 66 5D 70 CC 82 2F 03 0A [18:39:39]CommunicateWithHost err = 0 [18:39:39]CheckOFDResponse [18:39:39]1017 (14) - 77093643461234 [18:39:39]1041 (16) - 0000000000875093 [18:39:39]1040 (4) - 103769 [18:39:39]1012 (4) - 19.06.2024 12:17 [18:39:39]1206 (1) - 0 [18:39:39]OFD Sender: Remove packet 103769 [18:39:39]ProducePacketName [18:39:39]name=ofd_packets/00103769 [18:39:39]NVStorageDeleteData [18:39:39]OFD Sender: Processing packet 103770 [packets to send 17, broken 16] [18:39:39]ProducePacketName [18:39:39]name=ofd_packets/00103770 [18:39:39]OFD Sender: To server: pG, [18:39:39]CommunicateWithHost lk.salyk.kg:30040 [18:39:39]ConnectInit lk.salyk.kg [18:39:39]Connected sock=9 [18:39: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 39 33 10 01 00 00 4A 14 08 01 90 C4 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C8 00 00 00 F4 03 04 00 94 25 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 5A 95 01 00 35 04 06 00 F9 19 C8 49 1A 44 0E A8 9F B1 2B D3 AF DE [18: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 39 33 4F 00 00 00 9F 06 47 00 99 D8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 5A 95 01 00 F4 03 04 00 72 CC 72 66 B6 04 01 00 00 97 33 92 B9 08 AA 97 B8 [18:39:40]CommunicateWithHost err = 0 [18:39:40]CheckOFDResponse [18:39:40]1017 (14) - 77093643461234 [18:39:40]1041 (16) - 0000000000875093 [18:39:40]1040 (4) - 103770 [18:39:40]1012 (4) - 19.06.2024 12:17 [18:39:40]1206 (1) - 0 [18:39:40]OFD Sender: Remove packet 103770 [18:39:40]ProducePacketName [18:39:40]name=ofd_packets/00103770 [18:39:40]NVStorageDeleteData [18:39:40]OFD Sender: No OFD packet to send [18:39:45]OFD Sender: No OFD packet to send [18:39:50]OFD Sender: No OFD packet to send [18:39:55]OFD Sender: No OFD packet to send [18:40:00]OFD Sender: No OFD packet to send [18:40:05]OFD Sender: No OFD packet to send [18:40:10]OFD Sender: No OFD packet to send [18:40:15]OFD Sender: No OFD packet to send [18:40:20]OFD Sender: No OFD packet to send [18:40:25]OFD Sender: No OFD packet to send [18:40:30]OFD Sender: No OFD packet to send [18:40:30]accept exits with 8 [18:40:30]New connection [18:40:30]New thread 3066940772 created [18:40:30]Thread 3066797412 joined [18:40:30]Waiting for new connection... [18:40:30] Sock 8.Parse request [18:40:30]Sock 8.Check first char [18:40:30]Sock 8.First char is OK [18:40:30]request: POST /json_proto HTTP/1.0 [18:40:30]Method: POST [18:40:30]URL: /json_proto [18:40:30]Method is POST - this is cgi request [18:40:30]url: /json_proto [18:40:30]query_string will be loaded in cgi processing [18:40:30]execute_cgi json_proto POST (null) [18:40:30]execute_cgi path=json_proto method=POST [18:40:30]POST find Content-Length [18:40:30]Host: 172.17.38.133:8080 [18:40:30]Content-Length: 677 [18:40:30]Content-Type: application/json [18:40:30] [18:40:30]POST finish read [18:40:30]Found Content-Length = 677 [18:40:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673059", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 6.030, "sum" : 400.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:40:30]execute_script... [18:40: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)673059", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 6.030, "sum" : 400.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:40:30]POST & json_proto [18:40:30]process_json_proto [18:40:30]json parsed OK: [18:40:30]protocol is kg_v1.0 [18:40:30]action value=close_receipt [18:40:30]process_action close_receipt [18:40:30]cmd_close_receipt [18:40:30]MH_GetDate [18:40:30]Write to MH i2c: F0 00 00 E5 0A DE [18:40:30]Write i2c OK [18:40:30]MH_I2C_Read... [18:40:30]Read from MH i2c: F0 [18:40:30]MH_I2C_Read... [18:40:30]Read from MH i2c: F0 09 00 [18:40:30]MH_I2C_Read... [18:40:30]Read from MH i2c: F0 09 00 E5 0A 00 1F 26 73 66 BD 8F 7C 64 31 [18:40:30]GetLastDocTimeStamp 1718822292 [18:40:30]current date 1718822431 [18:40:30]FM_GetShiftState [18:40:30]SAM_PROTO_GetShiftState [18:40:30]wFMCommunicate request_size=4 [18:40:30]MH_SAM_APDU [18:40:30]CAPDU: 80 13 01 00 [18:40:30]Write to MH i2c: E2 08 00 E6 0A 80 13 01 00 00 00 00 00 6D [18:40:30]Write i2c OK [18:40:30]MH_I2C_Read... [18:40:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:40:30]Read from MH i2c: E2 [18:40:30]MH_I2C_Read... [18:40:30]Read from MH i2c: E2 0E 00 [18:40:30]MH_I2C_Read... [18:40:30]Read from MH i2c: E2 0E 00 E6 0A 00 09 00 01 04 26 72 66 00 00 00 00 90 00 7B [18:40:30]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [18:40:31]wFMCommunicate OK [18:40:31]SAM_PROTO_GetShiftState done [18:40:31]FM_GetShiftState done [18:40:31]opened in 1718756868 [18:40:31]opened+sec_in_day 1718843268 [18:40:31]quantity*price = 40039 [18:40:31]sum+1 = 40040 [18:40:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.39 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.52 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 201 19.06.2024 18:40 Смена: 353 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103771 ФПД: 279580057977049 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T184031&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103771&fm=279580057977049&tin=02508201610067®Number=0000000000092785&sum=40000 [18:40:32]StoreToDocumentArchive [18:40:32]shift 353 fd 103771 [18:40:32]save to /storage/0353/doc_00103771 [18:40:32]save last doc name /storage/0353/doc_00103771 to /storage/kkm_last_doc_name [18:40:32]save OK [18:40:32]Clear old archive folders... [18:40:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:40:32]tlvbuf is 0176B870 [18:40:32]SAM_PROTO_ClearQueue [18:40:32]wFMCommunicate request_size=4 [18:40:32]MH_SAM_APDU [18:40:32]CAPDU: 80 09 00 00 [18:40:32]Write to MH i2c: E2 08 00 F3 0A 80 09 00 00 00 00 00 00 6F [18:40:32]Write i2c OK [18:40:32]MH_I2C_Read... [18:40:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:40:32]Read from MH i2c: E2 [18:40:32]MH_I2C_Read... [18:40:32]Read from MH i2c: E2 03 00 [18:40:32]MH_I2C_Read... [18:40:32]Read from MH i2c: E2 03 00 F3 0A 00 90 00 71 [18:40:32]RAPDU: 90 00 [18:40:32]wFMCommunicate OK [18:40:32]SAM_PROTO_ClearQueue done [18:40:32]KKMCreateOFDPacket [18:40:32]OFDProtocolAddRootSTLVToBuf [18:40:32]FM_MakeSignedData [18:40:32]FM_MakeSignedData [18:40:32]SAM_PROTO_SignData [18:40:32]wFMCommunicate request_size=4 [18:40:32]MH_SAM_APDU [18:40:32]CAPDU: 80 0D 01 02 [18:40:32]Write to MH i2c: E2 08 00 F4 0A 80 0D 01 02 00 00 00 00 77 [18:40:32]Write i2c OK [18:40:32]MH_I2C_Read... [18:40:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:40:32]Read from MH i2c: E2 [18:40:32]MH_I2C_Read... [18:40:32]Read from MH i2c: E2 03 00 [18:40:32]MH_I2C_Read... [18:40:32]Read from MH i2c: E2 03 00 F4 0A 00 90 00 72 [18:40:32]RAPDU: 90 00 [18:40:32]wFMCommunicate OK [18:40:32]wFMCommunicate request_size=255 [18:40:32]MH_SAM_APDU [18:40:32]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C9 00 00 00 F4 03 04 00 1F 26 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 5B 95 01 00 35 04 06 00 FE [18:40:32]Write to MH i2c: E2 02 01 F5 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 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C9 00 00 00 F4 03 04 00 1F 26 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 5B 95 01 00 35 04 06 00 FE 00 00 37 [18:40:32]Write i2c OK [18:40:32]MH_I2C_Read... [18:40:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:40:33]Read from MH i2c: E2 [18:40:33]MH_I2C_Read... [18:40:33]Read from MH i2c: E2 03 00 [18:40:33]MH_I2C_Read... [18:40:33]Read from MH i2c: E2 03 00 F5 0A 00 90 00 73 [18:40:33]RAPDU: 90 00 [18:40:33]wFMCommunicate OK [18:40:33]wFMCommunicate request_size=10 [18:40:33]MH_SAM_APDU [18:40:33]CAPDU: 80 0D 02 02 05 46 CE 0A C0 D9 [18:40:33]Write to MH i2c: E2 0D 00 F6 0A 80 0D 02 02 05 00 46 CE 0A C0 D9 00 00 3B [18:40:33]Write i2c OK [18:40:33]MH_I2C_Read... [18:40:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:40:33]Read from MH i2c: E2 [18:40:33]MH_I2C_Read... [18:40:33]Read from MH i2c: E2 03 00 [18:40:33]MH_I2C_Read... [18:40:33]Read from MH i2c: E2 03 00 F6 0A 00 90 00 74 [18:40:33]RAPDU: 90 00 [18:40:33]wFMCommunicate OK [18:40:33]wFMCommunicate request_size=4 [18:40:33]MH_SAM_APDU [18:40:33]CAPDU: 80 0D 03 02 [18:40:33]Write to MH i2c: E2 08 00 F7 0A 80 0D 03 02 00 00 00 00 7C [18:40:33]Write i2c OK [18:40:33]MH_I2C_Read... [18:40:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:40:33]Read from MH i2c: E2 [18:40:33]MH_I2C_Read... [18:40:33]Read from MH i2c: E2 0B 00 [18:40:33]MH_I2C_Read... [18:40:33]Read from MH i2c: E2 0B 00 F7 0A 00 8F FD B1 D6 2C D2 6E 20 90 00 1C [18:40:33]RAPDU: 8F FD B1 D6 2C D2 6E 20 90 00 [18:40:33]wFMCommunicate OK [18:40:33]SAM_PROTO_SignData done [18:40:33]FM_MakeSignedData done [18:40:33]CreateOFDProtocolMessage [18:40:33]wFMCommunicate request_size=4 [18:40:33]MH_SAM_APDU [18:40:33]CAPDU: 80 11 00 00 [18:40:33]Write to MH i2c: E2 08 00 F8 0A 80 11 00 00 00 00 00 00 7C [18:40:33]Write i2c OK [18:40:33]MH_I2C_Read... [18:40:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:40:33]Read from MH i2c: E2 [18:40:33]MH_I2C_Read... [18:40:33]Read from MH i2c: E2 17 00 [18:40:33]MH_I2C_Read... [18:40:33]Read from MH i2c: E2 17 00 F8 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 CF [18:40:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [18:40:33]wFMCommunicate OK [18:40:33]CreateOFDProtocolMessage done [18:40:33]OFDSenderStorePacket 103771 [18:40:33]StoreOFDPacket docnum=103771 [18:40:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 3D 0B 07 01 53 43 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C9 00 00 00 F4 03 04 00 1F 26 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 5B 95 01 00 35 04 06 00 FE 46 CE 0A C0 D9 8F FD B1 D6 2C D2 6E 20 [18:40:33]CheckFolder [18:40:33]dirname=/storage/ofd_packets [18:40:33]CheckFolder done [18:40:33]ProducePacketName [18:40:33]name=ofd_packets/00103771 [18:40:33]NVStorageSaveData ofd_packets/00103771 [18:40:33]File name is /storage/ofd_packets/00103771 [18:40:33]Write 301 bytes [18:40:33]NVStorageSaveData done [18:40:33]OFDSenderStorePacket done [18:40:33]KKMCreateOFDPacket done [18:40:33]NVStorageSaveData kkm_last_timestamp [18:40:33]File name is /storage/kkm_last_timestamp [18:40:33]Write 4 bytes [18:40:33]NVStorageSaveData done [18:40:33]ExternCall_PrintAddStr [18:40:33]wPrintStart [18:40:33]Write to MH i2c: 01 00 00 F9 0A 03 [18:40:33]Write i2c OK [18:40:33]MH_I2C_Read... [18:40:33]Read from MH i2c: 01 [18:40:33]MH_I2C_Read... [18:40:33]Read from MH i2c: 01 07 00 [18:40:33]MH_I2C_Read... [18:40:33]Read from MH i2c: 01 07 00 F9 0A 00 00 00 00 00 FF 0F 18 [18:40:33]RasterBufferAndPrint [18:40:33]line Счет N : (1)673059 [18:40:33]line ИНН: 02508201610067 [18:40:33]line Контрольно-Кассовый Чек [18:40:33]line ПРОДАЖА [18:40:33]line ТРК (МРК, ГНК) : 32 [18:40:33]line Товар: 2710124130 [18:40:33]line Аи-92-К-5 [18:40:33]line 6.030 * 66.40 [18:40:33]line = 400.39 [18:40:33]line НДС 12% НСП 1% [18:40:33]line > о реализуемом товаре [18:40:33]line ОКРУГЛЕНИЕ: -0.39 [18:40:33]line ИТОГО: 400.00 [18:40:33]line Внесено: 400.00 [18:40:33]line СДАЧА: 0.00 [18:40:33]line НСП 1% : 3.54 [18:40:33]line НДС 12% : 42.52 [18:40:33]line Наличными: 400.00 [18:40:33]line Безнал.: 0.00 [18:40:33]line Место: АЗС № 120 "Партнер Нефть" [18:40:33]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [18:40:33]line СНО: Общий режим [18:40:33]line Чек 201 19.06.2024 18:40 [18:40:33]line Смена: 353 ФФД: 1.0 [18:40:33]line ЗНМ: 0300000164 [18:40:33]line РНМ: 0000000000092785 [18:40:33]line Версия ККМ: 001 [18:40:33]line ФМ: 0000000000875093 [18:40:33]line ФД: 103771 [18:40:33]line ФПД: 279580057977049 [18:40:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T184031&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103771&fm=279580057977049&tin=02508201610067®Number=0000000000092785&sum=40000 [18:40:33]OFD Sender: Processing packet 103771 [packets to send 17, broken 16] [18:40:33]ProducePacketName [18:40:33]name=ofd_packets/00103771 [18:40:33]OFD Sender: To server: pG, [18:40:33]CommunicateWithHost lk.salyk.kg:30040 [18:40:33]ConnectInit lk.salyk.kg [18:40:33]written 0, free lines is 4095 [18:40:33]Connected sock=10 [18:40: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 39 33 0F 01 00 00 3D 0B 07 01 53 43 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C9 00 00 00 F4 03 04 00 1F 26 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 5B 95 01 00 35 04 06 00 FE 46 CE 0A C0 D9 8F FD B1 D6 2C D2 6E 20 [18:40:33]Write to MH i2c: 01 00 00 24 0B 2F [18:40:33]Write i2c OK [18:40:33]MH_I2C_Read... [18:40:33]Read from MH i2c: 01 [18:40:33]MH_I2C_Read... [18:40:33]Read from MH i2c: 01 07 00 [18:40:33]MH_I2C_Read... [18:40:33]Read from MH i2c: 01 07 00 24 0B 00 00 00 00 00 F7 0C 39 [18:40:33]RasterBufferAndPrint [18:40:33]line [18:40:33]line [18:40:33]line [18:40:33]line [18:40:33]line [18:40:33]written 0, free lines is 3357 [18:40:33]MH_Cut [18:40:33]Write to MH i2c: D1 01 00 2B 0B 01 08 [18:40: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 39 33 4F 00 00 00 1B F5 47 00 17 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 39 33 10 04 04 00 5B 95 01 00 F4 03 04 00 A8 CC 72 66 B6 04 01 00 00 C0 9B 09 DD ED 65 5E 70 [18:40:34]CommunicateWithHost err = 0 [18:40:34]CheckOFDResponse [18:40:34]1017 (14) - 77093643461234 [18:40:34]1041 (16) - 0000000000875093 [18:40:34]1040 (4) - 103771 [18:40:34]1012 (4) - 19.06.2024 12:18 [18:40:34]1206 (1) - 0 [18:40:34]OFD Sender: Remove packet 103771 [18:40:34]ProducePacketName [18:40:34]name=ofd_packets/00103771 [18:40:34]NVStorageDeleteData [18:40:34]Write i2c OK [18:40:34]MH_I2C_Read... [18:40:34]Read from MH i2c: D1 [18:40:34]MH_I2C_Read... [18:40:34]Read from MH i2c: D1 01 00 [18:40:34]MH_I2C_Read... [18:40:34]Read from MH i2c: D1 01 00 2B 0B 00 07 [18:40:34]Write to MH i2c: 01 00 00 2C 0B 37 [18:40:34]Write i2c OK [18:40:34]MH_I2C_Read... [18:40:34]OFD Sender: No OFD packet to send [18:40:34]*** Cut start [18:40:34]*** Partial cut [18:40:34]*** CUTSNS_PIN = 1 [18:40:34]*** CUTSNS_PIN = 0 [18:40:34]*** Brake cut motor [18:40:35]Read from MH i2c: 01 [18:40:35]MH_I2C_Read... [18:40:35]*** Stop cut motor [18:40:35]*** Cut end [18:40:35]Read from MH i2c: 01 07 00 [18:40:35]MH_I2C_Read... [18:40:35]Read from MH i2c: 01 07 00 2C 0B 00 00 00 00 00 FF 0F 4C [18:40:35]process_action close_receipt done [18:40:35]requested_data is exist [18:40:35]produce_requested_data [18:40:35]requested_item fm.sn is exist - process it [18:40:35]wFMCommunicate request_size=4 [18:40:35]MH_SAM_APDU [18:40:35]CAPDU: 80 11 00 00 [18:40:35]Write to MH i2c: E2 08 00 2D 0B 80 11 00 00 00 00 00 00 B2 [18:40:35]Write i2c OK [18:40:35]MH_I2C_Read... [18:40:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:40:35]Read from MH i2c: E2 [18:40:35]MH_I2C_Read... [18:40:35]Read from MH i2c: E2 17 00 [18:40:35]MH_I2C_Read... [18:40:35]Read from MH i2c: E2 17 00 2D 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 05 [18:40:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [18:40:35]wFMCommunicate OK [18:40:35]requested_item fd.num is exist - process it [18:40:35]SAM_PROTO_GetFieldsCounters [18:40:35]wFMCommunicate request_size=4 [18:40:35]MH_SAM_APDU [18:40:35]CAPDU: 80 13 00 00 [18:40:35]Write to MH i2c: E2 08 00 2E 0B 80 13 00 00 00 00 00 00 B5 [18:40:35]Write i2c OK [18:40:35]MH_I2C_Read... [18:40:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:40:35]Read from MH i2c: E2 [18:40:35]MH_I2C_Read... [18:40:35]Read from MH i2c: E2 62 00 [18:40:35]MH_I2C_Read... [18:40:35]Read from MH i2c: E2 62 00 2E 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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 5B 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 C9 00 00 00 5E 04 04 00 C9 00 00 00 57 04 04 00 CA 00 00 00 19 04 04 00 00 00 00 00 90 00 8A [18:40: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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 5B 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 C9 00 00 00 5E 04 04 00 C9 00 00 00 57 04 04 00 CA 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:40:35]wFMCommunicate OK [18:40:35]SAM_PROTO_GetFieldsCounters done [18:40:35]requested_item shift.num is exist - process it [18:40:35]requested_item shift.opened is exist - process it [18:40:35]req_shift_opened [18:40:35]FM_GetShiftState [18:40:35]SAM_PROTO_GetShiftState [18:40:35]wFMCommunicate request_size=4 [18:40:35]MH_SAM_APDU [18:40:35]CAPDU: 80 13 01 00 [18:40:35]Write to MH i2c: E2 08 00 2F 0B 80 13 01 00 00 00 00 00 B7 [18:40:35]Write i2c OK [18:40:35]MH_I2C_Read... [18:40:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:40:35]Read from MH i2c: E2 [18:40:35]MH_I2C_Read... [18:40:35]Read from MH i2c: E2 0E 00 [18:40:35]MH_I2C_Read... [18:40:35]Read from MH i2c: E2 0E 00 2F 0B 00 09 00 01 04 26 72 66 00 00 00 00 90 00 C5 [18:40:35]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [18:40:35]wFMCommunicate OK [18:40:35]SAM_PROTO_GetShiftState done [18:40:35]FM_GetShiftState done [18:40:35]req_shift_opened done [18:40:35]requested_item shift.open_date is exist - process it [18:40:35]req_shift_open_date [18:40:35]req_shift_open_date done [18:40:35]produce_requested_data done [18:40:35]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103771,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [18:40:35]process_action_free close_receipt [18:40:35]json_value_free [18:40:35]json_value_free done [18:40:35]process_json_proto returns [18:40:35]Send response to host [18:40:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103771,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [18:40:35]free response buf [18:40:35]execute_script done [18:40:35]execute_script returns [18:40:35]free content buf [18:40:35]Sock 8.Close socket [18:40:35]Sock 8.Thread stoped [18:40:39]OFD Sender: No OFD packet to send [18:40:42]ConnectInit Can't connect to host [18:40:44]OFD Sender: No OFD packet to send [18:40:49]OFD Sender: No OFD packet to send [18:40:54]OFD Sender: No OFD packet to send [18:40:59]OFD Sender: No OFD packet to send [18:41:04]OFD Sender: No OFD packet to send [18:41:09]OFD Sender: No OFD packet to send [18:41:14]OFD Sender: No OFD packet to send [18:41:19]OFD Sender: No OFD packet to send [18:41:24]OFD Sender: No OFD packet to send [18:41:29]OFD Sender: No OFD packet to send [18:41:34]OFD Sender: No OFD packet to send [18:41:39]OFD Sender: No OFD packet to send [18:41:44]OFD Sender: No OFD packet to send [18:41:49]OFD Sender: No OFD packet to send [18:41:54]OFD Sender: No OFD packet to send [18:41:59]OFD Sender: No OFD packet to send [18:42:04]OFD Sender: No OFD packet to send [18:42:09]OFD Sender: No OFD packet to send [18:42:14]OFD Sender: No OFD packet to send [18:42:19]OFD Sender: No OFD packet to send [18:42:24]OFD Sender: No OFD packet to send [18:42:29]OFD Sender: No OFD packet to send [18:42:34]OFD Sender: No OFD packet to send [18:42:39]OFD Sender: No OFD packet to send [18:42:44]OFD Sender: No OFD packet to send [18:42:49]OFD Sender: No OFD packet to send [18:42:54]OFD Sender: No OFD packet to send [18:42:59]OFD Sender: No OFD packet to send [18:43:04]OFD Sender: No OFD packet to send [18:43:09]OFD Sender: No OFD packet to send [18:43:14]OFD Sender: No OFD packet to send [18:43:19]OFD Sender: No OFD packet to send [18:43:23]accept exits with 9 [18:43:23]New connection [18:43:23]New thread 3066797412 created [18:43:23]Thread 3066940772 joined [18:43:23]Waiting for new connection... [18:43:23] Sock 9.Parse request [18:43:23]Sock 9.Check first char [18:43:23]Sock 9.First char is OK [18:43:23]request: POST /json_proto HTTP/1.0 [18:43:23]Method: POST [18:43:23]URL: /json_proto [18:43:23]Method is POST - this is cgi request [18:43:23]url: /json_proto [18:43:23]query_string will be loaded in cgi processing [18:43:23]execute_cgi json_proto POST (null) [18:43:23]execute_cgi path=json_proto method=POST [18:43:23]POST find Content-Length [18:43:23]Host: 172.17.38.133:8080 [18:43:23]Content-Length: 678 [18:43:23]Content-Type: application/json [18:43:23] [18:43:23]POST finish read [18:43:23]Found Content-Length = 678 [18:43:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673060", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 12.220, "sum" : 811.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 811.00, "total" : 811.00, "payments": [ { "type": 0, "sum" : 811.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:43:23]execute_script... [18:43:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673060", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 12.220, "sum" : 811.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 811.00, "total" : 811.00, "payments": [ { "type": 0, "sum" : 811.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:43:23]POST & json_proto [18:43:23]process_json_proto [18:43:23]json parsed OK: [18:43:23]protocol is kg_v1.0 [18:43:23]action value=close_receipt [18:43:23]process_action close_receipt [18:43:23]cmd_close_receipt [18:43:23]MH_GetDate [18:43:23]Write to MH i2c: F0 00 00 30 0B 2A [18:43:23]Write i2c OK [18:43:23]MH_I2C_Read... [18:43:23]Read from MH i2c: F0 [18:43:23]MH_I2C_Read... [18:43:23]Read from MH i2c: F0 09 00 [18:43:23]MH_I2C_Read... [18:43:23]Read from MH i2c: F0 09 00 30 0B 00 CC 26 73 66 BD 8F 7C 64 2A [18:43:23]GetLastDocTimeStamp 1718822431 [18:43:23]current date 1718822604 [18:43:23]FM_GetShiftState [18:43:23]SAM_PROTO_GetShiftState [18:43:23]wFMCommunicate request_size=4 [18:43:23]MH_SAM_APDU [18:43:23]CAPDU: 80 13 01 00 [18:43:23]Write to MH i2c: E2 08 00 31 0B 80 13 01 00 00 00 00 00 B9 [18:43:23]Write i2c OK [18:43:23]MH_I2C_Read... [18:43:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:43:23]Read from MH i2c: E2 [18:43:23]MH_I2C_Read... [18:43:23]Read from MH i2c: E2 0E 00 [18:43:23]MH_I2C_Read... [18:43:23]Read from MH i2c: E2 0E 00 31 0B 00 09 00 01 04 26 72 66 00 00 00 00 90 00 C7 [18:43:23]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [18:43:23]wFMCommunicate OK [18:43:23]SAM_PROTO_GetShiftState done [18:43:23]FM_GetShiftState done [18:43:23]opened in 1718756868 [18:43:23]opened+sec_in_day 1718843268 [18:43:23]quantity*price = 81140 [18:43:23]sum+1 = 81142 [18:43:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 811.00 Внесено: 811.00 СДАЧА: 0.00 НСП 1% : 7.18 НДС 12% : 86.17 Наличными: 811.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 202 19.06.2024 18:43 Смена: 353 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103772 ФПД: 205724013173686 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T184324&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103772&fm=205724013173686&tin=02508201610067®Number=0000000000092785&sum=81100 [18:43:24]StoreToDocumentArchive [18:43:24]shift 353 fd 103772 [18:43:24]save to /storage/0353/doc_00103772 [18:43:24]save last doc name /storage/0353/doc_00103772 to /storage/kkm_last_doc_name [18:43:24]save OK [18:43:24]Clear old archive folders... [18:43:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:43:24]tlvbuf is 016CF6B0 [18:43:24]SAM_PROTO_ClearQueue [18:43:24]wFMCommunicate request_size=4 [18:43:24]MH_SAM_APDU [18:43:24]CAPDU: 80 09 00 00 [18:43:24]Write to MH i2c: E2 08 00 3E 0B 80 09 00 00 00 00 00 00 BB [18:43:24]Write i2c OK [18:43:24]MH_I2C_Read... [18:43:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:43:24]Read from MH i2c: E2 [18:43:24]MH_I2C_Read... [18:43:24]Read from MH i2c: E2 03 00 [18:43:24]MH_I2C_Read... [18:43:24]Read from MH i2c: E2 03 00 3E 0B 00 90 00 BD [18:43:24]RAPDU: 90 00 [18:43:24]wFMCommunicate OK [18:43:24]SAM_PROTO_ClearQueue done [18:43:24]KKMCreateOFDPacket [18:43:24]OFDProtocolAddRootSTLVToBuf [18:43:24]FM_MakeSignedData [18:43:24]FM_MakeSignedData [18:43:24]SAM_PROTO_SignData [18:43:24]wFMCommunicate request_size=4 [18:43:24]MH_SAM_APDU [18:43:24]CAPDU: 80 0D 01 02 [18:43:24]Write to MH i2c: E2 08 00 3F 0B 80 0D 01 02 00 00 00 00 C3 [18:43:24]Write i2c OK [18:43:24]MH_I2C_Read... [18:43:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:43:24]Read from MH i2c: E2 [18:43:24]MH_I2C_Read... [18:43:24]Read from MH i2c: E2 03 00 [18:43:24]MH_I2C_Read... [18:43:24]Read from MH i2c: E2 03 00 3F 0B 00 90 00 BE [18:43:24]RAPDU: 90 00 [18:43:24]wFMCommunicate OK [18:43:24]wFMCommunicate request_size=255 [18:43:24]MH_SAM_APDU [18:43: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 BC 2F 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 F5 3C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 3C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CE 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 21 00 00 00 00 07 04 06 00 CC 3C 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CA 00 00 00 F4 03 04 00 CC 26 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 5C 95 01 00 35 04 06 00 BB [18:43:24]Write to MH i2c: E2 02 01 40 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 BC 2F 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 F5 3C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 3C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CE 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 21 00 00 00 00 07 04 06 00 CC 3C 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CA 00 00 00 F4 03 04 00 CC 26 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 5C 95 01 00 35 04 06 00 BB 00 00 49 [18:43:24]Write i2c OK [18:43:24]MH_I2C_Read... [18:43:24]OFD Sender: No OFD packet to send [18:43:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:43:25]Read from MH i2c: E2 [18:43:25]MH_I2C_Read... [18:43:25]Read from MH i2c: E2 03 00 [18:43:25]MH_I2C_Read... [18:43:25]Read from MH i2c: E2 03 00 40 0B 00 90 00 BF [18:43:25]RAPDU: 90 00 [18:43:25]wFMCommunicate OK [18:43:25]wFMCommunicate request_size=10 [18:43:25]MH_SAM_APDU [18:43:25]CAPDU: 80 0D 02 02 05 1A DA BA 1B B6 [18:43:25]Write to MH i2c: E2 0D 00 41 0B 80 0D 02 02 05 00 1A DA BA 1B B6 00 00 4F [18:43:25]Write i2c OK [18:43:25]MH_I2C_Read... [18:43:25]Read from MH i2c: E2 [18:43:25]MH_I2C_Read... [18:43:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:43:25]Read from MH i2c: E2 03 00 [18:43:25]MH_I2C_Read... [18:43:25]Read from MH i2c: E2 03 00 41 0B 00 90 00 C0 [18:43:25]RAPDU: 90 00 [18:43:25]wFMCommunicate OK [18:43:25]wFMCommunicate request_size=4 [18:43:25]MH_SAM_APDU [18:43:25]CAPDU: 80 0D 03 02 [18:43:25]Write to MH i2c: E2 08 00 42 0B 80 0D 03 02 00 00 00 00 C8 [18:43:25]Write i2c OK [18:43:25]MH_I2C_Read... [18:43:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:43:25]Read from MH i2c: E2 [18:43:25]MH_I2C_Read... [18:43:25]Read from MH i2c: E2 0B 00 [18:43:25]MH_I2C_Read... [18:43:25]Read from MH i2c: E2 0B 00 42 0B 00 BB 15 6A BD 03 D7 83 81 90 00 9E [18:43:25]RAPDU: BB 15 6A BD 03 D7 83 81 90 00 [18:43:25]wFMCommunicate OK [18:43:25]SAM_PROTO_SignData done [18:43:25]FM_MakeSignedData done [18:43:25]CreateOFDProtocolMessage [18:43:25]wFMCommunicate request_size=4 [18:43:25]MH_SAM_APDU [18:43:25]CAPDU: 80 11 00 00 [18:43:25]Write to MH i2c: E2 08 00 43 0B 80 11 00 00 00 00 00 00 C8 [18:43:25]Write i2c OK [18:43:25]MH_I2C_Read... [18:43:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:43:25]Read from MH i2c: E2 [18:43:25]MH_I2C_Read... [18:43:25]Read from MH i2c: E2 17 00 [18:43:25]MH_I2C_Read... [18:43:25]Read from MH i2c: E2 17 00 43 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 1B [18:43:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [18:43:25]wFMCommunicate OK [18:43:25]CreateOFDProtocolMessage done [18:43:25]OFDSenderStorePacket 103772 [18:43:25]StoreOFDPacket docnum=103772 [18:43:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 06 F6 07 01 3D 19 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 BC 2F 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 F5 3C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 3C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CE 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 21 00 00 00 00 07 04 06 00 CC 3C 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CA 00 00 00 F4 03 04 00 CC 26 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 5C 95 01 00 35 04 06 00 BB 1A DA BA 1B B6 BB 15 6A BD 03 D7 83 81 [18:43:25]CheckFolder [18:43:25]dirname=/storage/ofd_packets [18:43:25]CheckFolder done [18:43:25]ProducePacketName [18:43:25]name=ofd_packets/00103772 [18:43:25]NVStorageSaveData ofd_packets/00103772 [18:43:25]File name is /storage/ofd_packets/00103772 [18:43:25]Write 301 bytes [18:43:25]NVStorageSaveData done [18:43:25]OFDSenderStorePacket done [18:43:25]KKMCreateOFDPacket done [18:43:25]NVStorageSaveData kkm_last_timestamp [18:43:25]File name is /storage/kkm_last_timestamp [18:43:25]Write 4 bytes [18:43:25]NVStorageSaveData done [18:43:25]ExternCall_PrintAddStr [18:43:25]wPrintStart [18:43:25]Write to MH i2c: 01 00 00 44 0B 4F [18:43:25]Write i2c OK [18:43:25]MH_I2C_Read... [18:43:25]Read from MH i2c: 01 [18:43:25]MH_I2C_Read... [18:43:25]Read from MH i2c: 01 07 00 [18:43:25]MH_I2C_Read... [18:43:25]Read from MH i2c: 01 07 00 44 0B 00 00 00 00 00 FF 0F 64 [18:43:25]RasterBufferAndPrint [18:43:25]line Счет N : (1)673060 [18:43:25]line ИНН: 02508201610067 [18:43:25]line Контрольно-Кассовый Чек [18:43:25]line ПРОДАЖА [18:43:25]line ТРК (МРК, ГНК) : 42 [18:43:25]line Товар: 2710124130 [18:43:25]line Аи-92-К-5 [18:43:25]line 12.220 * 66.40 [18:43:25]line = 811.41 [18:43:25]line НДС 12% НСП 1% [18:43:25]line > о реализуемом товаре [18:43:25]line ОКРУГЛЕНИЕ: -0.41 [18:43:25]line ИТОГО: 811.00 [18:43:25]line Внесено: 811.00 [18:43:25]line СДАЧА: 0.00 [18:43:25]line НСП 1% : 7.18 [18:43:25]line НДС 12% : 86.17 [18:43:25]line Наличными: 811.00 [18:43:25]line Безнал.: 0.00 [18:43:25]line Место: АЗС № 120 "Партнер Нефть" [18:43:25]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [18:43:25]line СНО: Общий режим [18:43:25]line Чек 202 19.06.2024 18:43 [18:43:25]line Смена: 353 ФФД: 1.0 [18:43:25]line ЗНМ: 0300000164 [18:43:25]line РНМ: 0000000000092785 [18:43:25]line Версия ККМ: 001 [18:43:25]line ФМ: 0000000000875093 [18:43:25]line ФД: 103772 [18:43:25]line ФПД: 205724013173686 [18:43:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T184324&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103772&fm=205724013173686&tin=02508201610067®Number=0000000000092785&sum=81100 [18:43:25]written 0, free lines is 4095 [18:43:25]OFD Sender: Processing packet 103772 [packets to send 17, broken 16] [18:43:25]ProducePacketName [18:43:25]name=ofd_packets/00103772 [18:43:25]OFD Sender: To server: pG, [18:43:25]CommunicateWithHost lk.salyk.kg:30040 [18:43:25]ConnectInit lk.salyk.kg [18:43:25]Connected sock=10 [18:43:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 06 F6 07 01 3D 19 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 BC 2F 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 F5 3C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 3C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CE 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 21 00 00 00 00 07 04 06 00 CC 3C 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CA 00 00 00 F4 03 04 00 CC 26 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 5C 95 01 00 35 04 06 00 BB 1A DA BA 1B B6 BB 15 6A BD 03 D7 83 81 [18:43: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 39 33 4F 00 00 00 FA 05 47 00 1F 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 39 33 10 04 04 00 5C 95 01 00 F4 03 04 00 54 CD 72 66 B6 04 01 00 00 6B 53 E3 8F 0A D6 EF 22 [18:43:25]CommunicateWithHost err = 0 [18:43:25]CheckOFDResponse [18:43:25]1017 (14) - 77093643461234 [18:43:25]1041 (16) - 0000000000875093 [18:43:25]1040 (4) - 103772 [18:43:25]1012 (4) - 19.06.2024 12:21 [18:43:25]1206 (1) - 0 [18:43:25]OFD Sender: Remove packet 103772 [18:43:25]ProducePacketName [18:43:25]name=ofd_packets/00103772 [18:43:25]NVStorageDeleteData [18:43:25]Write to MH i2c: 01 00 00 6F 0B 7A [18:43:25]Write i2c OK [18:43:25]MH_I2C_Read... [18:43:25]Read from MH i2c: 01 [18:43:25]MH_I2C_Read... [18:43:25]Read from MH i2c: 01 07 00 [18:43:25]MH_I2C_Read... [18:43:25]Read from MH i2c: 01 07 00 6F 0B 00 00 00 00 00 E4 0C 71 [18:43:25]RasterBufferAndPrint [18:43:25]line [18:43:25]line [18:43:25]line [18:43:25]line [18:43:25]line [18:43:25]written 0, free lines is 3306 [18:43:25]MH_Cut [18:43:25]Write to MH i2c: D1 01 00 76 0B 01 53 [18:43:25]Write i2c OK [18:43:25]MH_I2C_Read... [18:43:25]Read from MH i2c: D1 [18:43:25]MH_I2C_Read... [18:43:25]Read from MH i2c: D1 01 00 [18:43:25]MH_I2C_Read... [18:43:25]Read from MH i2c: D1 01 00 76 0B 00 52 [18:43:25]Write to MH i2c: 01 00 00 77 0B 82 [18:43:25]Write i2c OK [18:43:25]MH_I2C_Read... [18:43:26]OFD Sender: No OFD packet to send [18:43:26]*** Cut start [18:43:26]*** Partial cut [18:43:26]*** CUTSNS_PIN = 1 [18:43:26]*** CUTSNS_PIN = 0 [18:43:26]*** Brake cut motor [18:43:26]Read from MH i2c: 01 [18:43:26]MH_I2C_Read... [18:43:26]*** Stop cut motor [18:43:26]*** Cut end [18:43:26]Read from MH i2c: 01 07 00 [18:43:26]MH_I2C_Read... [18:43:26]Read from MH i2c: 01 07 00 77 0B 00 00 00 00 00 FF 0F 97 [18:43:26]process_action close_receipt done [18:43:26]requested_data is exist [18:43:26]produce_requested_data [18:43:26]requested_item fm.sn is exist - process it [18:43:26]wFMCommunicate request_size=4 [18:43:26]MH_SAM_APDU [18:43:26]CAPDU: 80 11 00 00 [18:43:26]Write to MH i2c: E2 08 00 78 0B 80 11 00 00 00 00 00 00 FD [18:43:26]Write i2c OK [18:43:26]MH_I2C_Read... [18:43:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:43:26]Read from MH i2c: E2 [18:43:26]MH_I2C_Read... [18:43:26]Read from MH i2c: E2 17 00 [18:43:26]MH_I2C_Read... [18:43:26]Read from MH i2c: E2 17 00 78 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 50 [18:43:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [18:43:26]wFMCommunicate OK [18:43:26]requested_item fd.num is exist - process it [18:43:26]SAM_PROTO_GetFieldsCounters [18:43:26]wFMCommunicate request_size=4 [18:43:26]MH_SAM_APDU [18:43:26]CAPDU: 80 13 00 00 [18:43:26]Write to MH i2c: E2 08 00 79 0B 80 13 00 00 00 00 00 00 00 [18:43:26]Write i2c OK [18:43:26]MH_I2C_Read... [18:43:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:43:27]Read from MH i2c: E2 [18:43:27]MH_I2C_Read... [18:43:27]Read from MH i2c: E2 62 00 [18:43:27]MH_I2C_Read... [18:43:27]Read from MH i2c: E2 62 00 79 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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 5C 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 CA 00 00 00 5E 04 04 00 CA 00 00 00 57 04 04 00 CB 00 00 00 19 04 04 00 00 00 00 00 90 00 D9 [18: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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 5C 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 CA 00 00 00 5E 04 04 00 CA 00 00 00 57 04 04 00 CB 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:43:27]wFMCommunicate OK [18:43:27]SAM_PROTO_GetFieldsCounters done [18:43:27]requested_item shift.num is exist - process it [18:43:27]requested_item shift.opened is exist - process it [18:43:27]req_shift_opened [18:43:27]FM_GetShiftState [18:43:27]SAM_PROTO_GetShiftState [18:43:27]wFMCommunicate request_size=4 [18:43:27]MH_SAM_APDU [18:43:27]CAPDU: 80 13 01 00 [18:43:27]Write to MH i2c: E2 08 00 7A 0B 80 13 01 00 00 00 00 00 02 [18:43:27]Write i2c OK [18:43:27]MH_I2C_Read... [18:43:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:43:27]Read from MH i2c: E2 [18:43:27]MH_I2C_Read... [18:43:27]Read from MH i2c: E2 0E 00 [18:43:27]MH_I2C_Read... [18:43:27]Read from MH i2c: E2 0E 00 7A 0B 00 09 00 01 04 26 72 66 00 00 00 00 90 00 10 [18:43:27]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [18:43:27]wFMCommunicate OK [18:43:27]SAM_PROTO_GetShiftState done [18:43:27]FM_GetShiftState done [18:43:27]req_shift_opened done [18:43:27]requested_item shift.open_date is exist - process it [18:43:27]req_shift_open_date [18:43:27]req_shift_open_date done [18:43:27]produce_requested_data done [18:43:27]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103772,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [18:43:27]process_action_free close_receipt [18:43:27]json_value_free [18:43:27]json_value_free done [18:43:27]process_json_proto returns [18:43:27]Send response to host [18:43:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103772,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [18:43:27]free response buf [18:43:27]execute_script done [18:43:27]execute_script returns [18:43:27]free content buf [18:43:27]Sock 9.Close socket [18:43:27]Sock 9.Thread stoped [18:43:31]OFD Sender: No OFD packet to send [18:43:36]OFD Sender: No OFD packet to send [18:43:41]OFD Sender: No OFD packet to send [18:43:46]OFD Sender: No OFD packet to send [18:43:51]OFD Sender: No OFD packet to send [18:43:56]OFD Sender: No OFD packet to send [18:44:01]OFD Sender: No OFD packet to send [18:44:06]OFD Sender: No OFD packet to send [18:44:11]OFD Sender: No OFD packet to send [18:44:16]OFD Sender: No OFD packet to send [18:44:21]OFD Sender: No OFD packet to send [18:44:26]OFD Sender: No OFD packet to send [18:44:31]OFD Sender: No OFD packet to send [18:44:36]OFD Sender: No OFD packet to send [18:44:41]OFD Sender: No OFD packet to send [18:44:46]OFD Sender: No OFD packet to send [18:44:51]OFD Sender: No OFD packet to send [18:44:56]OFD Sender: No OFD packet to send [18:45:01]OFD Sender: No OFD packet to send [18:45:06]OFD Sender: No OFD packet to send [18:45:11]OFD Sender: No OFD packet to send [18:45:13]accept exits with 8 [18:45:13]New connection [18:45:13]New thread 3066940772 created [18:45:13]Thread 3066797412 joined [18:45:13]Waiting for new connection... [18:45:13] Sock 8.Parse request [18:45:13]Sock 8.Check first char [18:45:13]Sock 8.First char is OK [18:45:13]request: POST /json_proto HTTP/1.0 [18:45:13]Method: POST [18:45:13]URL: /json_proto [18:45:13]Method is POST - this is cgi request [18:45:13]url: /json_proto [18:45:13]query_string will be loaded in cgi processing [18:45:13]execute_cgi json_proto POST (null) [18:45:13]execute_cgi path=json_proto method=POST [18:45:13]POST find Content-Length [18:45:13]Host: 172.17.38.133:8080 [18:45:13]Content-Length: 640 [18:45:13]Content-Type: application/json [18:45:13] [18:45:13]POST finish read [18:45:13]Found Content-Length = 640 [18:45:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673061", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 10.000, "sum" : 664.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 664.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:45:13]execute_script... [18:45:13]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673061", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 10.000, "sum" : 664.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 664.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:45:13]POST & json_proto [18:45:13]process_json_proto [18:45:13]json parsed OK: [18:45:13]protocol is kg_v1.0 [18:45:13]action value=close_receipt [18:45:13]process_action close_receipt [18:45:13]cmd_close_receipt [18:45:13]MH_GetDate [18:45:13]Write to MH i2c: F0 00 00 7B 0B 75 [18:45:13]Write i2c OK [18:45:13]MH_I2C_Read... [18:45:13]Read from MH i2c: F0 [18:45:13]MH_I2C_Read... [18:45:13]Read from MH i2c: F0 09 00 [18:45:13]MH_I2C_Read... [18:45:13]Read from MH i2c: F0 09 00 7B 0B 00 39 27 73 66 BD 8F 7C 64 E3 [18:45:13]GetLastDocTimeStamp 1718822604 [18:45:13]current date 1718822713 [18:45:13]FM_GetShiftState [18:45:13]SAM_PROTO_GetShiftState [18:45:13]wFMCommunicate request_size=4 [18:45:13]MH_SAM_APDU [18:45:13]CAPDU: 80 13 01 00 [18:45:13]Write to MH i2c: E2 08 00 7C 0B 80 13 01 00 00 00 00 00 04 [18:45:13]Write i2c OK [18:45:13]MH_I2C_Read... [18:45:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:45:13]Read from MH i2c: E2 [18:45:13]MH_I2C_Read... [18:45:13]Read from MH i2c: E2 0E 00 [18:45:13]MH_I2C_Read... [18:45:13]Read from MH i2c: E2 0E 00 7C 0B 00 09 00 01 04 26 72 66 00 00 00 00 90 00 12 [18:45:13]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [18:45:13]wFMCommunicate OK [18:45:13]SAM_PROTO_GetShiftState done [18:45:13]FM_GetShiftState done [18:45:13]opened in 1718756868 [18:45:13]opened+sec_in_day 1718843268 [18:45:13]quantity*price = 66400 [18:45:13]sum+1 = 66401 [18:45:13]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 664.00 НСП 1% : 5.88 НДС 12% : 70.51 Наличными: 664.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 203 19.06.2024 18:45 Смена: 353 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103773 ФПД: 160238619645120 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T184513&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103773&fm=160238619645120&tin=02508201610067®Number=0000000000092785&sum=66400 [18:45:14]StoreToDocumentArchive [18:45:14]shift 353 fd 103773 [18:45:14]save to /storage/0353/doc_00103773 [18:45:14]save last doc name /storage/0353/doc_00103773 to /storage/kkm_last_doc_name [18:45:14]save OK [18:45:14]Clear old archive folders... [18:45:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:45:14]tlvbuf is 016D31A0 [18:45:14]SAM_PROTO_ClearQueue [18:45:14]wFMCommunicate request_size=4 [18:45:14]MH_SAM_APDU [18:45:14]CAPDU: 80 09 00 00 [18:45:14]Write to MH i2c: E2 08 00 89 0B 80 09 00 00 00 00 00 00 06 [18:45:14]Write i2c OK [18:45:14]MH_I2C_Read... [18:45:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:45:14]Read from MH i2c: E2 [18:45:14]MH_I2C_Read... [18:45:14]Read from MH i2c: E2 03 00 [18:45:14]MH_I2C_Read... [18:45:14]Read from MH i2c: E2 03 00 89 0B 00 90 00 08 [18:45:14]RAPDU: 90 00 [18:45:14]wFMCommunicate OK [18:45:14]SAM_PROTO_ClearQueue done [18:45:14]KKMCreateOFDPacket [18:45:14]OFDProtocolAddRootSTLVToBuf [18:45:14]FM_MakeSignedData [18:45:14]FM_MakeSignedData [18:45:14]SAM_PROTO_SignData [18:45:14]wFMCommunicate request_size=4 [18:45:14]MH_SAM_APDU [18:45:14]CAPDU: 80 0D 01 02 [18:45:14]Write to MH i2c: E2 08 00 8A 0B 80 0D 01 02 00 00 00 00 0E [18:45:14]Write i2c OK [18:45:14]MH_I2C_Read... [18:45:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:45:14]Read from MH i2c: E2 [18:45:14]MH_I2C_Read... [18:45:14]Read from MH i2c: E2 03 00 [18:45:14]MH_I2C_Read... [18:45:14]Read from MH i2c: E2 03 00 8A 0B 00 90 00 09 [18:45:14]RAPDU: 90 00 [18:45:14]wFMCommunicate OK [18:45:14]wFMCommunicate request_size=255 [18:45:14]MH_SAM_APDU [18:45: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 10 27 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 60 03 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 03 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 1B 00 00 00 00 07 04 06 00 60 03 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CB 00 00 00 F4 03 04 00 39 27 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 5D 95 01 00 35 04 06 00 91 [18:45:14]Write to MH i2c: E2 02 01 8B 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 10 27 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 60 03 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 03 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 1B 00 00 00 00 07 04 06 00 60 03 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CB 00 00 00 F4 03 04 00 39 27 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 5D 95 01 00 35 04 06 00 91 00 00 68 [18:45:14]Write i2c OK [18:45:14]MH_I2C_Read... [18:45:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:45:14]Read from MH i2c: E2 [18:45:14]MH_I2C_Read... [18:45:14]Read from MH i2c: E2 03 00 [18:45:14]MH_I2C_Read... [18:45:14]Read from MH i2c: E2 03 00 8B 0B 00 90 00 0A [18:45:14]RAPDU: 90 00 [18:45:14]wFMCommunicate OK [18:45:14]wFMCommunicate request_size=10 [18:45:14]MH_SAM_APDU [18:45:14]CAPDU: 80 0D 02 02 05 BC 76 00 D4 C0 [18:45:14]Write to MH i2c: E2 0D 00 8C 0B 80 0D 02 02 05 00 BC 76 00 D4 C0 00 00 E1 [18:45:14]Write i2c OK [18:45:14]MH_I2C_Read... [18:45:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:45:14]Read from MH i2c: E2 [18:45:14]MH_I2C_Read... [18:45:14]Read from MH i2c: E2 03 00 [18:45:14]MH_I2C_Read... [18:45:14]Read from MH i2c: E2 03 00 8C 0B 00 90 00 0B [18:45:14]RAPDU: 90 00 [18:45:14]wFMCommunicate OK [18:45:14]wFMCommunicate request_size=4 [18:45:14]MH_SAM_APDU [18:45:14]CAPDU: 80 0D 03 02 [18:45:14]Write to MH i2c: E2 08 00 8D 0B 80 0D 03 02 00 00 00 00 13 [18:45:14]Write i2c OK [18:45:14]MH_I2C_Read... [18:45:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:45:14]Read from MH i2c: E2 [18:45:14]MH_I2C_Read... [18:45:14]Read from MH i2c: E2 0B 00 [18:45:14]MH_I2C_Read... [18:45:14]Read from MH i2c: E2 0B 00 8D 0B 00 9B 56 5B 20 1D 97 93 B3 90 00 7A [18:45:14]RAPDU: 9B 56 5B 20 1D 97 93 B3 90 00 [18:45:14]wFMCommunicate OK [18:45:14]SAM_PROTO_SignData done [18:45:14]FM_MakeSignedData done [18:45:14]CreateOFDProtocolMessage [18:45:14]wFMCommunicate request_size=4 [18:45:14]MH_SAM_APDU [18:45:14]CAPDU: 80 11 00 00 [18:45:14]Write to MH i2c: E2 08 00 8E 0B 80 11 00 00 00 00 00 00 13 [18:45:14]Write i2c OK [18:45:14]MH_I2C_Read... [18:45:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:45:14]Read from MH i2c: E2 [18:45:14]MH_I2C_Read... [18:45:14]Read from MH i2c: E2 17 00 [18:45:14]MH_I2C_Read... [18:45:14]Read from MH i2c: E2 17 00 8E 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 66 [18:45:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [18:45:14]wFMCommunicate OK [18:45:14]CreateOFDProtocolMessage done [18:45:14]OFDSenderStorePacket 103773 [18:45:14]StoreOFDPacket docnum=103773 [18:45:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 D7 63 07 01 CD 7F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 60 03 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 03 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 1B 00 00 00 00 07 04 06 00 60 03 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CB 00 00 00 F4 03 04 00 39 27 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 5D 95 01 00 35 04 06 00 91 BC 76 00 D4 C0 9B 56 5B 20 1D 97 93 B3 [18:45:14]CheckFolder [18:45:14]dirname=/storage/ofd_packets [18:45:14]CheckFolder done [18:45:14]ProducePacketName [18:45:14]name=ofd_packets/00103773 [18:45:14]NVStorageSaveData ofd_packets/00103773 [18:45:14]File name is /storage/ofd_packets/00103773 [18:45:14]Write 301 bytes [18:45:14]NVStorageSaveData done [18:45:14]OFDSenderStorePacket done [18:45:14]KKMCreateOFDPacket done [18:45:14]NVStorageSaveData kkm_last_timestamp [18:45:14]File name is /storage/kkm_last_timestamp [18:45:14]Write 4 bytes [18:45:14]NVStorageSaveData done [18:45:14]ExternCall_PrintAddStr [18:45:14]wPrintStart [18:45:14]Write to MH i2c: 01 00 00 8F 0B 9A [18:45:14]Write i2c OK [18:45:14]MH_I2C_Read... [18:45:14]Read from MH i2c: 01 [18:45:14]MH_I2C_Read... [18:45:14]Read from MH i2c: 01 07 00 [18:45:14]MH_I2C_Read... [18:45:14]Read from MH i2c: 01 07 00 8F 0B 00 00 00 00 00 FF 0F AF [18:45:14]RasterBufferAndPrint [18:45:14]line Счет N : (1)673061 [18:45:14]line ИНН: 02508201610067 [18:45:14]line Контрольно-Кассовый Чек [18:45:14]line ПРОДАЖА [18:45:14]line ТРК (МРК, ГНК) : 32 [18:45:14]line Товар: 2710124130 [18:45:14]line Аи-92-К-5 [18:45:14]line 10.000 * 66.40 [18:45:14]line = 664.00 [18:45:14]line НДС 12% НСП 1% [18:45:14]line > о реализуемом товаре [18:45:14]line ИТОГО: 664.00 [18:45:14]line НСП 1% : 5.88 [18:45:14]line НДС 12% : 70.51 [18:45:14]line Наличными: 664.00 [18:45:14]line Безнал.: 0.00 [18:45:14]line Место: АЗС № 120 "Партнер Нефть" [18:45:14]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [18:45:14]line СНО: Общий режим [18:45:14]line Чек 203 19.06.2024 18:45 [18:45:14]line Смена: 353 ФФД: 1.0 [18:45:14]line ЗНМ: 0300000164 [18:45:14]line РНМ: 0000000000092785 [18:45:14]line Версия ККМ: 001 [18:45:14]line ФМ: 0000000000875093 [18:45:14]line ФД: 103773 [18:45:14]line ФПД: 160238619645120 [18:45:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T184513&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103773&fm=160238619645120&tin=02508201610067®Number=0000000000092785&sum=66400 [18:45:15]OFD Sender: Processing packet 103773 [packets to send 17, broken 16] [18:45:15]ProducePacketName [18:45:15]name=ofd_packets/00103773 [18:45:15]OFD Sender: To server: pG, [18:45:15]CommunicateWithHost lk.salyk.kg:30040 [18:45:15]ConnectInit lk.salyk.kg [18:45:15]written 0, free lines is 4095 [18:45:15]Connected sock=11 [18:45:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 D7 63 07 01 CD 7F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 60 03 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 03 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 1B 00 00 00 00 07 04 06 00 60 03 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CB 00 00 00 F4 03 04 00 39 27 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 5D 95 01 00 35 04 06 00 91 BC 76 00 D4 C0 9B 56 5B 20 1D 97 93 B3 [18:45:15]Write to MH i2c: 01 00 00 B7 0B C2 [18:45:15]Write i2c OK [18:45:15]MH_I2C_Read... [18:45:15]Read from MH i2c: 01 [18:45:15]MH_I2C_Read... [18:45:15]Read from MH i2c: 01 07 00 [18:45:15]MH_I2C_Read... [18:45:15]Read from MH i2c: 01 07 00 B7 0B 00 00 00 00 00 12 0D E8 [18:45:15]RasterBufferAndPrint [18:45:15]line [18:45:15]line [18:45:15]line [18:45:15]line [18:45:15]line [18:45:15]written 0, free lines is 3349 [18:45:15]MH_Cut [18:45:15]Write to MH i2c: D1 01 00 BE 0B 01 9B [18:45:15]Write i2c OK [18:45:15]MH_I2C_Read... [18:45:15]Read from MH i2c: D1 [18:45:15]MH_I2C_Read... [18:45:15]Read from MH i2c: D1 01 00 [18:45:15]MH_I2C_Read... [18:45:15]Read from MH i2c: D1 01 00 BE 0B 00 9A [18:45:15]Write to MH i2c: 01 00 00 BF 0B CA [18:45:15]Write i2c OK [18:45:15]MH_I2C_Read... [18:45: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 39 33 4F 00 00 00 89 29 47 00 A2 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 39 33 10 04 04 00 5D 95 01 00 F4 03 04 00 C2 CD 72 66 B6 04 01 00 00 0F 31 35 24 C2 66 05 87 [18:45:15]CommunicateWithHost err = 0 [18:45:15]CheckOFDResponse [18:45:15]1017 (14) - 77093643461234 [18:45:15]1041 (16) - 0000000000875093 [18:45:15]1040 (4) - 103773 [18:45:15]1012 (4) - 19.06.2024 12:23 [18:45:15]1206 (1) - 0 [18:45:15]OFD Sender: Remove packet 103773 [18:45:15]ProducePacketName [18:45:15]name=ofd_packets/00103773 [18:45:15]NVStorageDeleteData [18:45:16]OFD Sender: No OFD packet to send [18:45:16]*** Cut start [18:45:16]*** Partial cut [18:45:16]*** CUTSNS_PIN = 1 [18:45:16]*** CUTSNS_PIN = 0 [18:45:16]*** Brake cut motor [18:45:16]Read from MH i2c: 01 [18:45:16]MH_I2C_Read... [18:45:16]*** Stop cut motor [18:45:16]*** Cut end [18:45:16]Read from MH i2c: 01 07 00 [18:45:16]MH_I2C_Read... [18:45:16]Read from MH i2c: 01 07 00 BF 0B 00 00 00 00 00 FF 0F DF [18:45:16]process_action close_receipt done [18:45:16]requested_data is exist [18:45:16]produce_requested_data [18:45:16]requested_item fm.sn is exist - process it [18:45:16]wFMCommunicate request_size=4 [18:45:16]MH_SAM_APDU [18:45:16]CAPDU: 80 11 00 00 [18:45:16]Write to MH i2c: E2 08 00 C0 0B 80 11 00 00 00 00 00 00 45 [18:45:16]Write i2c OK [18:45:16]MH_I2C_Read... [18:45:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:45:16]Read from MH i2c: E2 [18:45:16]MH_I2C_Read... [18:45:16]Read from MH i2c: E2 17 00 [18:45:16]MH_I2C_Read... [18:45:16]Read from MH i2c: E2 17 00 C0 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 98 [18:45:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [18:45:16]wFMCommunicate OK [18:45:16]requested_item fd.num is exist - process it [18:45:16]SAM_PROTO_GetFieldsCounters [18:45:16]wFMCommunicate request_size=4 [18:45:16]MH_SAM_APDU [18:45:16]CAPDU: 80 13 00 00 [18:45:16]Write to MH i2c: E2 08 00 C1 0B 80 13 00 00 00 00 00 00 48 [18:45:16]Write i2c OK [18:45:16]MH_I2C_Read... [18:45:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:45:17]Read from MH i2c: E2 [18:45:17]MH_I2C_Read... [18:45:17]Read from MH i2c: E2 62 00 [18:45:17]MH_I2C_Read... [18:45:17]Read from MH i2c: E2 62 00 C1 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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 5D 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 CB 00 00 00 5E 04 04 00 CB 00 00 00 57 04 04 00 CC 00 00 00 19 04 04 00 00 00 00 00 90 00 25 [18:45: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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 5D 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 CB 00 00 00 5E 04 04 00 CB 00 00 00 57 04 04 00 CC 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:45:17]wFMCommunicate OK [18:45:17]SAM_PROTO_GetFieldsCounters done [18:45:17]requested_item shift.num is exist - process it [18:45:17]requested_item shift.opened is exist - process it [18:45:17]req_shift_opened [18:45:17]FM_GetShiftState [18:45:17]SAM_PROTO_GetShiftState [18:45:17]wFMCommunicate request_size=4 [18:45:17]MH_SAM_APDU [18:45:17]CAPDU: 80 13 01 00 [18:45:17]Write to MH i2c: E2 08 00 C2 0B 80 13 01 00 00 00 00 00 4A [18:45:17]Write i2c OK [18:45:17]MH_I2C_Read... [18:45:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:45:17]Read from MH i2c: E2 [18:45:17]MH_I2C_Read... [18:45:17]Read from MH i2c: E2 0E 00 [18:45:17]MH_I2C_Read... [18:45:17]Read from MH i2c: E2 0E 00 C2 0B 00 09 00 01 04 26 72 66 00 00 00 00 90 00 58 [18:45:17]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [18:45:17]wFMCommunicate OK [18:45:17]SAM_PROTO_GetShiftState done [18:45:17]FM_GetShiftState done [18:45:17]req_shift_opened done [18:45:17]requested_item shift.open_date is exist - process it [18:45:17]req_shift_open_date [18:45:17]req_shift_open_date done [18:45:17]produce_requested_data done [18:45:17]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103773,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [18:45:17]process_action_free close_receipt [18:45:17]json_value_free [18:45:17]json_value_free done [18:45:17]process_json_proto returns [18:45:17]Send response to host [18:45:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103773,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [18:45:17]free response buf [18:45:17]execute_script done [18:45:17]execute_script returns [18:45:17]free content buf [18:45:17]Sock 8.Close socket [18:45:17]Sock 8.Thread stoped [18:45:21]OFD Sender: No OFD packet to send [18:45:26]OFD Sender: No OFD packet to send [18:45:31]OFD Sender: No OFD packet to send [18:45:36]OFD Sender: No OFD packet to send [18:45:41]OFD Sender: No OFD packet to send [18:45:46]OFD Sender: No OFD packet to send [18:45:51]OFD Sender: No OFD packet to send [18:45:56]OFD Sender: No OFD packet to send [18:46:01]OFD Sender: No OFD packet to send [18:46:06]OFD Sender: No OFD packet to send [18:46:11]OFD Sender: No OFD packet to send [18:46:16]OFD Sender: No OFD packet to send [18:46:21]OFD Sender: No OFD packet to send [18:46:26]OFD Sender: No OFD packet to send [18:46:31]OFD Sender: No OFD packet to send [18:46:36]OFD Sender: No OFD packet to send [18:46:41]OFD Sender: No OFD packet to send [18:46:46]OFD Sender: No OFD packet to send [18:46:51]OFD Sender: No OFD packet to send [18:46:56]OFD Sender: No OFD packet to send [18:47:01]OFD Sender: No OFD packet to send [18:47:06]OFD Sender: No OFD packet to send [18:47:11]OFD Sender: No OFD packet to send [18:47:16]OFD Sender: No OFD packet to send [18:47:21]OFD Sender: No OFD packet to send [18:47:26]OFD Sender: No OFD packet to send [18:47:31]OFD Sender: No OFD packet to send [18:47:36]OFD Sender: No OFD packet to send [18:47:41]OFD Sender: No OFD packet to send [18:47:46]OFD Sender: No OFD packet to send [18:47:51]OFD Sender: No OFD packet to send [18:47:56]OFD Sender: No OFD packet to send [18:48:01]OFD Sender: No OFD packet to send [18:48:06]OFD Sender: No OFD packet to send [18:48:11]OFD Sender: No OFD packet to send [18:48:16]OFD Sender: No OFD packet to send [18:48:21]OFD Sender: No OFD packet to send [18:48:26]OFD Sender: No OFD packet to send [18:48:31]OFD Sender: No OFD packet to send [18:48:36]OFD Sender: No OFD packet to send [18:48:41]OFD Sender: No OFD packet to send [18:48:46]OFD Sender: No OFD packet to send [18:48:51]OFD Sender: No OFD packet to send [18:48:56]OFD Sender: No OFD packet to send [18:49:01]OFD Sender: No OFD packet to send [18:49:06]OFD Sender: No OFD packet to send [18:49:11]OFD Sender: No OFD packet to send [18:49:16]OFD Sender: No OFD packet to send [18:49:21]OFD Sender: No OFD packet to send [18:49:26]OFD Sender: No OFD packet to send [18:49:31]OFD Sender: No OFD packet to send [18:49:36]OFD Sender: No OFD packet to send [18:49:41]OFD Sender: No OFD packet to send [18:49:46]OFD Sender: No OFD packet to send [18:49:51]OFD Sender: No OFD packet to send [18:49:56]OFD Sender: No OFD packet to send [18:50:01]OFD Sender: No OFD packet to send [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:50]accept exits with 9 [18:53:50]New connection [18:53:50]New thread 3066797412 created [18:53:50]Thread 3066940772 joined [18:53:50]Waiting for new connection... [18:53:50] Sock 9.Parse request [18:53:50]Sock 9.Check first char [18:53:50]Sock 9.First char is OK [18:53:50]request: POST /json_proto HTTP/1.0 [18:53:50]Method: POST [18:53:50]URL: /json_proto [18:53:50]Method is POST - this is cgi request [18:53:50]url: /json_proto [18:53:50]query_string will be loaded in cgi processing [18:53:50]execute_cgi json_proto POST (null) [18:53:50]execute_cgi path=json_proto method=POST [18:53:50]POST find Content-Length [18:53:50]Host: 172.17.38.133:8080 [18:53:50]Content-Length: 1207 [18:53:50]Content-Type: application/json [18:53:50] [18:53:50]POST finish read [18:53:50]Found Content-Length = 1207 [18:53:50]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 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. \u000A\u0421\u0447\u0435\u0442 N : (1)673062\u000A19.06.2024 18:31\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 32\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 40.000 x 66.40\u000A\u0418\u0422\u041E\u0413: 2656.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\u000A00562\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:53:50]execute_script... [18:53:50]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 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. \u000A\u0421\u0447\u0435\u0442 N : (1)673062\u000A19.06.2024 18:31\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 32\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 40.000 x 66.40\u000A\u0418\u0422\u041E\u0413: 2656.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\u000A00562\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:53:50]POST & json_proto [18:53:50]process_json_proto [18:53:50]json parsed OK: [18:53:50]protocol is kg_v1.0 [18:53:50]action value=print_text [18:53:50]process_action print_text [18:53:50]cmd_print_text [18:53:50]ExternCall_PrintAddStr [18:53:50]wPrintStart [18:53:50]Write to MH i2c: 01 00 00 C3 0B CE [18:53:50]Write i2c OK [18:53:50]MH_I2C_Read... [18:53:50]Read from MH i2c: 01 [18:53:50]MH_I2C_Read... [18:53:50]Read from MH i2c: 01 07 00 [18:53:50]MH_I2C_Read... [18:53:50]Read from MH i2c: 01 07 00 C3 0B 00 00 00 00 00 FF 0F E3 [18:53:50]RasterBufferAndPrint [18:53:50]line *****ТОВАРНЫЙ ЧЕК***** [18:53:50]line АЗС 120 [18:53:50]line Партнер нефть [18:53:50]line 02508201610067 [18:53:50]line Кассир : Байбугуева Г. [18:53:50]line Счет N : (1)673062 [18:53:50]line 19.06.2024 18:31 [18:53:50]line ПРОДАЖА [18:53:50]line ТРК (МРК, ГНК): 32 [18:53:50]line Вид ГСМ : 2710124130 [18:53:50]line Аи-92-К-5 [18:53:50]line 40.000 x 66.40 [18:53:50]line ИТОГ: 2656.00 [18:53:50]line Тип оплаты: Талоны: Топливная Карта [18:53:50]line 00562 [18:53:50]line ______________________ [18:53:50]line (подпись) [18:53:50]written 0, free lines is 4095 [18:53:50]Write to MH i2c: 01 00 00 D7 0B E2 [18:53:50]Write i2c OK [18:53:50]MH_I2C_Read... [18:53:50]Read from MH i2c: 01 [18:53:50]MH_I2C_Read... [18:53:50]Read from MH i2c: 01 07 00 [18:53:50]MH_I2C_Read... [18:53:50]Read from MH i2c: 01 07 00 D7 0B 00 00 00 00 00 12 0E 09 [18:53:50]RasterBufferAndPrint [18:53:50]line [18:53:50]line [18:53:50]line [18:53:50]line [18:53:50]line [18:53:50]written 0, free lines is 3604 [18:53:50]MH_Cut [18:53:50]Write to MH i2c: D1 01 00 DE 0B 01 BB [18:53:50]Write i2c OK [18:53:50]MH_I2C_Read... [18:53:50]Read from MH i2c: D1 [18:53:50]MH_I2C_Read... [18:53:50]Read from MH i2c: D1 01 00 [18:53:50]MH_I2C_Read... [18:53:50]Read from MH i2c: D1 01 00 DE 0B 00 BA [18:53:50]Write to MH i2c: 01 00 00 DF 0B EA [18:53:50]Write i2c OK [18:53:50]MH_I2C_Read... [18:53:50]*** Cut start [18:53:50]*** Partial cut [18:53:50]*** CUTSNS_PIN = 1 [18:53:50]*** CUTSNS_PIN = 0 [18:53:51]*** Brake cut motor [18:53:51]Read from MH i2c: 01 [18:53:51]MH_I2C_Read... [18:53:51]Read from MH i2c: 01 07 00 [18:53:51]MH_I2C_Read... [18:53:51]*** Stop cut motor [18:53:51]*** Cut end [18:53:51]Read from MH i2c: 01 07 00 DF 0B 00 00 00 00 00 FF 0F FF [18:53:51]process_action print_text done [18:53:51]requested_data is exist [18:53:51]produce_requested_data [18:53:51]requested_item fm.sn is exist - process it [18:53:51]wFMCommunicate request_size=4 [18:53:51]MH_SAM_APDU [18:53:51]CAPDU: 80 11 00 00 [18:53:51]Write to MH i2c: E2 08 00 E0 0B 80 11 00 00 00 00 00 00 65 [18:53:51]Write i2c OK [18:53:51]MH_I2C_Read... [18:53:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:53:51]Read from MH i2c: E2 [18:53:51]MH_I2C_Read... [18:53:51]Read from MH i2c: E2 17 00 [18:53:51]MH_I2C_Read... [18:53:51]Read from MH i2c: E2 17 00 E0 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 B8 [18:53:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [18:53:51]wFMCommunicate OK [18:53:51]requested_item fd.num is exist - process it [18:53:51]SAM_PROTO_GetFieldsCounters [18:53:51]wFMCommunicate request_size=4 [18:53:51]MH_SAM_APDU [18:53:51]CAPDU: 80 13 00 00 [18:53:51]Write to MH i2c: E2 08 00 E1 0B 80 13 00 00 00 00 00 00 68 [18:53:51]Write i2c OK [18:53:51]MH_I2C_Read... [18:53:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:53:51]Read from MH i2c: E2 [18:53:51]MH_I2C_Read... [18:53:51]Read from MH i2c: E2 62 00 [18:53:51]MH_I2C_Read... [18:53:51]Read from MH i2c: E2 62 00 E1 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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 5D 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 CB 00 00 00 5E 04 04 00 CB 00 00 00 57 04 04 00 CC 00 00 00 19 04 04 00 00 00 00 00 90 00 45 [18:53: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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 5D 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 CB 00 00 00 5E 04 04 00 CB 00 00 00 57 04 04 00 CC 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:53:51]wFMCommunicate OK [18:53:51]SAM_PROTO_GetFieldsCounters done [18:53:51]requested_item shift.num is exist - process it [18:53:51]requested_item shift.opened is exist - process it [18:53:51]req_shift_opened [18:53:51]FM_GetShiftState [18:53:51]SAM_PROTO_GetShiftState [18:53:51]wFMCommunicate request_size=4 [18:53:51]MH_SAM_APDU [18:53:51]CAPDU: 80 13 01 00 [18:53:51]Write to MH i2c: E2 08 00 E2 0B 80 13 01 00 00 00 00 00 6A [18:53:51]Write i2c OK [18:53:51]MH_I2C_Read... [18:53:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:53:51]Read from MH i2c: E2 [18:53:51]MH_I2C_Read... [18:53:51]Read from MH i2c: E2 0E 00 [18:53:51]MH_I2C_Read... [18:53:51]Read from MH i2c: E2 0E 00 E2 0B 00 09 00 01 04 26 72 66 00 00 00 00 90 00 78 [18:53:51]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [18:53:51]wFMCommunicate OK [18:53:51]SAM_PROTO_GetShiftState done [18:53:51]FM_GetShiftState done [18:53:51]req_shift_opened done [18:53:51]requested_item shift.open_date is exist - process it [18:53:51]req_shift_open_date [18:53:51]req_shift_open_date done [18:53:51]produce_requested_data done [18:53:51]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103773,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [18:53:51]process_action_free print_text [18:53:51]json_value_free [18:53:51]json_value_free done [18:53:51]process_json_proto returns [18:53:51]Send response to host [18:53:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103773,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [18:53:51]free response buf [18:53:51]execute_script done [18:53:51]execute_script returns [18:53:51]free content buf [18:53:51]Sock 9.Close socket [18:53:51]Sock 9.Thread stoped [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:51]OFD Sender: No OFD packet to send [18:56:56]OFD Sender: No OFD packet to send [18:57:01]OFD Sender: No OFD packet to send [18:57:06]OFD Sender: No OFD packet to send [18:57:11]OFD Sender: No OFD packet to send [18:57:16]OFD Sender: No OFD packet to send [18:57:21]OFD Sender: No OFD packet to send [18:57:26]OFD Sender: No OFD packet to send [18:57:31]OFD Sender: No OFD packet to send [18:57:36]OFD Sender: No OFD packet to send [18:57:41]OFD Sender: No OFD packet to send [18:57:46]OFD Sender: No OFD packet to send [18:57:47]accept exits with 8 [18:57:47]New connection [18:57:47]New thread 3066940772 created [18:57:47]Thread 3066797412 joined [18:57:47]Waiting for new connection... [18:57:47] Sock 8.Parse request [18:57:47]Sock 8.Check first char [18:57:47]Sock 8.First char is OK [18:57:47]request: POST /json_proto HTTP/1.0 [18:57:47]Method: POST [18:57:47]URL: /json_proto [18:57:47]Method is POST - this is cgi request [18:57:47]url: /json_proto [18:57:47]query_string will be loaded in cgi processing [18:57:47]execute_cgi json_proto POST (null) [18:57:47]execute_cgi path=json_proto method=POST [18:57:47]POST find Content-Length [18:57:47]Host: 172.17.38.133:8080 [18:57:47]Content-Length: 666 [18:57:47]Content-Type: application/json [18:57:47] [18:57:47]POST finish read [18:57:47]Found Content-Length = 666 [18:57:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673065", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 10.000, "sum" : 729.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "payments": [ { "type": 0, "sum" : 729.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:57:47]execute_script... [18:57: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)673065", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 10.000, "sum" : 729.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "payments": [ { "type": 0, "sum" : 729.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:57:47]POST & json_proto [18:57:47]process_json_proto [18:57:47]json parsed OK: [18:57:47]protocol is kg_v1.0 [18:57:47]action value=close_receipt [18:57:47]process_action close_receipt [18:57:47]cmd_close_receipt [18:57:47]MH_GetDate [18:57:47]Write to MH i2c: F0 00 00 E3 0B DD [18:57:47]Write i2c OK [18:57:47]MH_I2C_Read... [18:57:47]Read from MH i2c: F0 [18:57:47]MH_I2C_Read... [18:57:47]Read from MH i2c: F0 09 00 [18:57:47]MH_I2C_Read... [18:57:47]Read from MH i2c: F0 09 00 E3 0B 00 2C 2A 73 66 BD 8F 7C 64 41 [18:57:47]GetLastDocTimeStamp 1718822713 [18:57:47]current date 1718823468 [18:57:47]FM_GetShiftState [18:57:47]SAM_PROTO_GetShiftState [18:57:47]wFMCommunicate request_size=4 [18:57:47]MH_SAM_APDU [18:57:47]CAPDU: 80 13 01 00 [18:57:47]Write to MH i2c: E2 08 00 E4 0B 80 13 01 00 00 00 00 00 6C [18:57:47]Write i2c OK [18:57:47]MH_I2C_Read... [18:57:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:57:48]Read from MH i2c: E2 [18:57:48]MH_I2C_Read... [18:57:48]Read from MH i2c: E2 0E 00 [18:57:48]MH_I2C_Read... [18:57:48]Read from MH i2c: E2 0E 00 E4 0B 00 09 00 01 04 26 72 66 00 00 00 00 90 00 7A [18:57:48]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [18:57:48]wFMCommunicate OK [18:57:48]SAM_PROTO_GetShiftState done [18:57:48]FM_GetShiftState done [18:57:48]opened in 1718756868 [18:57:48]opened+sec_in_day 1718843268 [18:57:48]quantity*price = 72900 [18:57:48]sum+1 = 72901 [18:57:48]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 729.00 Внесено: 1000.00 СДАЧА: 271.00 НСП 1% : 6.45 НДС 12% : 77.42 Наличными: 729.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 204 19.06.2024 18:57 Смена: 353 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103774 ФПД: 125619411598728 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T185748&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103774&fm=125619411598728&tin=02508201610067®Number=0000000000092785&sum=72900 [18:57:49]StoreToDocumentArchive [18:57:49]shift 353 fd 103774 [18:57:49]save to /storage/0353/doc_00103774 [18:57:49]save last doc name /storage/0353/doc_00103774 to /storage/kkm_last_doc_name [18:57:49]save OK [18:57:49]Clear old archive folders... [18:57:49]ProcessDocumentItem done err = 0, tmpTLVsize=252 [18:57:49]tlvbuf is 016CF270 [18:57:49]SAM_PROTO_ClearQueue [18:57:49]wFMCommunicate request_size=4 [18:57:49]MH_SAM_APDU [18:57:49]CAPDU: 80 09 00 00 [18:57:49]Write to MH i2c: E2 08 00 F1 0B 80 09 00 00 00 00 00 00 6E [18:57:49]Write i2c OK [18:57:49]MH_I2C_Read... [18:57:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:57:49]Read from MH i2c: E2 [18:57:49]MH_I2C_Read... [18:57:49]Read from MH i2c: E2 03 00 [18:57:49]MH_I2C_Read... [18:57:49]Read from MH i2c: E2 03 00 F1 0B 00 90 00 70 [18:57:49]RAPDU: 90 00 [18:57:49]wFMCommunicate OK [18:57:49]SAM_PROTO_ClearQueue done [18:57:49]KKMCreateOFDPacket [18:57:49]OFDProtocolAddRootSTLVToBuf [18:57:49]FM_MakeSignedData [18:57:49]FM_MakeSignedData [18:57:49]SAM_PROTO_SignData [18:57:49]wFMCommunicate request_size=4 [18:57:49]MH_SAM_APDU [18:57:49]CAPDU: 80 0D 01 02 [18:57:49]Write to MH i2c: E2 08 00 F2 0B 80 0D 01 02 00 00 00 00 76 [18:57:49]Write i2c OK [18:57:49]MH_I2C_Read... [18:57:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:57:49]Read from MH i2c: E2 [18:57:49]MH_I2C_Read... [18:57:49]Read from MH i2c: E2 03 00 [18:57:49]MH_I2C_Read... [18:57:49]Read from MH i2c: E2 03 00 F2 0B 00 90 00 71 [18:57:49]RAPDU: 90 00 [18:57:49]wFMCommunicate OK [18:57:49]wFMCommunicate request_size=255 [18:57:49]MH_SAM_APDU [18:57:49]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 C4 1C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 1C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 1E 00 00 00 00 07 04 06 00 C4 1C 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CC 00 00 00 F4 03 04 00 2C 2A 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 5E 95 01 00 35 04 06 00 [18:57:49]Write to MH i2c: E2 02 01 F3 0B 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 C4 1C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 1C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 1E 00 00 00 00 07 04 06 00 C4 1C 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CC 00 00 00 F4 03 04 00 2C 2A 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 5E 95 01 00 35 04 06 00 00 00 65 [18:57:49]Write i2c OK [18:57:49]MH_I2C_Read... [18:57:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:57:49]Read from MH i2c: E2 [18:57:49]MH_I2C_Read... [18:57:49]Read from MH i2c: E2 03 00 [18:57:49]MH_I2C_Read... [18:57:49]Read from MH i2c: E2 03 00 F3 0B 00 90 00 72 [18:57:49]RAPDU: 90 00 [18:57:49]wFMCommunicate OK [18:57:49]wFMCommunicate request_size=11 [18:57:49]MH_SAM_APDU [18:57:49]CAPDU: 80 0D 02 02 06 72 40 0C 67 BD 88 [18:57:49]Write to MH i2c: E2 0E 00 F4 0B 80 0D 02 02 06 00 72 40 0C 67 BD 88 00 00 EF [18:57:49]Write i2c OK [18:57:49]MH_I2C_Read... [18:57:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:57:49]Read from MH i2c: E2 [18:57:49]MH_I2C_Read... [18:57:49]Read from MH i2c: E2 03 00 [18:57:49]MH_I2C_Read... [18:57:49]Read from MH i2c: E2 03 00 F4 0B 00 90 00 73 [18:57:49]RAPDU: 90 00 [18:57:49]wFMCommunicate OK [18:57:49]wFMCommunicate request_size=4 [18:57:49]MH_SAM_APDU [18:57:49]CAPDU: 80 0D 03 02 [18:57:49]Write to MH i2c: E2 08 00 F5 0B 80 0D 03 02 00 00 00 00 7B [18:57:49]Write i2c OK [18:57:49]MH_I2C_Read... [18:57:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:57:49]Read from MH i2c: E2 [18:57:49]MH_I2C_Read... [18:57:49]Read from MH i2c: E2 0B 00 [18:57:49]MH_I2C_Read... [18:57:49]Read from MH i2c: E2 0B 00 F5 0B 00 29 80 18 90 FF 18 63 A1 90 00 E8 [18:57:49]RAPDU: 29 80 18 90 FF 18 63 A1 90 00 [18:57:49]wFMCommunicate OK [18:57:49]SAM_PROTO_SignData done [18:57:49]FM_MakeSignedData done [18:57:49]CreateOFDProtocolMessage [18:57:49]wFMCommunicate request_size=4 [18:57:49]MH_SAM_APDU [18:57:49]CAPDU: 80 11 00 00 [18:57:49]Write to MH i2c: E2 08 00 F6 0B 80 11 00 00 00 00 00 00 7B [18:57:49]Write i2c OK [18:57:49]MH_I2C_Read... [18:57:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:57:49]Read from MH i2c: E2 [18:57:49]MH_I2C_Read... [18:57:49]Read from MH i2c: E2 17 00 [18:57:49]MH_I2C_Read... [18:57:49]Read from MH i2c: E2 17 00 F6 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 CE [18:57:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [18:57:49]wFMCommunicate OK [18:57:49]CreateOFDProtocolMessage done [18:57:49]OFDSenderStorePacket 103774 [18:57:49]StoreOFDPacket docnum=103774 [18:57:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 39 07 08 01 B9 C6 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 C4 1C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 1C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 1E 00 00 00 00 07 04 06 00 C4 1C 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CC 00 00 00 F4 03 04 00 2C 2A 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 5E 95 01 00 35 04 06 00 72 40 0C 67 BD 88 29 80 18 90 FF 18 63 A1 [18:57:49]CheckFolder [18:57:49]dirname=/storage/ofd_packets [18:57:49]CheckFolder done [18:57:49]ProducePacketName [18:57:49]name=ofd_packets/00103774 [18:57:49]NVStorageSaveData ofd_packets/00103774 [18:57:49]File name is /storage/ofd_packets/00103774 [18:57:49]Write 302 bytes [18:57:49]NVStorageSaveData done [18:57:49]OFDSenderStorePacket done [18:57:49]KKMCreateOFDPacket done [18:57:49]NVStorageSaveData kkm_last_timestamp [18:57:49]File name is /storage/kkm_last_timestamp [18:57:49]Write 4 bytes [18:57:49]NVStorageSaveData done [18:57:49]ExternCall_PrintAddStr [18:57:49]wPrintStart [18:57:49]Write to MH i2c: 01 00 00 F7 0B 02 [18:57:49]OFD Sender: Processing packet 103774 [packets to send 17, broken 16] [18:57:49]ProducePacketName [18:57:49]name=ofd_packets/00103774 [18:57:49]OFD Sender: To server: pG, [18:57:49]CommunicateWithHost lk.salyk.kg:30040 [18:57:49]ConnectInit lk.salyk.kg [18:57:49]Write i2c OK [18:57:49]MH_I2C_Read... [18:57:49]Read from MH i2c: 01 [18:57:49]MH_I2C_Read... [18:57:49]Read from MH i2c: 01 07 00 [18:57:49]MH_I2C_Read... [18:57:49]Read from MH i2c: 01 07 00 F7 0B 00 00 00 00 00 FF 0F 17 [18:57:49]RasterBufferAndPrint [18:57:49]line Счет N : (1)673065 [18:57:49]line ИНН: 02508201610067 [18:57:49]line Контрольно-Кассовый Чек [18:57:49]line ПРОДАЖА [18:57:49]line ТРК (МРК, ГНК) : 11 [18:57:49]line Товар: 2710194210 [18:57:49]line ДТ(л)-К-5 [18:57:49]line 10.000 * 72.90 [18:57:49]line = 729.00 [18:57:49]line НДС 12% НСП 1% [18:57:49]line > о реализуемом товаре [18:57:49]line ИТОГО: 729.00 [18:57:49]line Внесено: 1000.00 [18:57:49]line СДАЧА: 271.00 [18:57:49]line НСП 1% : 6.45 [18:57:49]line НДС 12% : 77.42 [18:57:49]line Наличными: 729.00 [18:57:49]line Безнал.: 0.00 [18:57:49]line Место: АЗС № 120 "Партнер Нефть" [18:57:49]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [18:57:49]line СНО: Общий режим [18:57:49]line Чек 204 19.06.2024 18:57 [18:57:49]line Смена: 353 ФФД: 1.0 [18:57:49]line ЗНМ: 0300000164 [18:57:49]line РНМ: 0000000000092785 [18:57:49]line Версия ККМ: 001 [18:57:49]line ФМ: 0000000000875093 [18:57:49]line ФД: 103774 [18:57:49]line ФПД: 125619411598728 [18:57:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T185748&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103774&fm=125619411598728&tin=02508201610067®Number=0000000000092785&sum=72900 [18:57:50]Connected sock=9 [18:57: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 39 33 10 01 00 00 39 07 08 01 B9 C6 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 C4 1C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 1C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 1E 00 00 00 00 07 04 06 00 C4 1C 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CC 00 00 00 F4 03 04 00 2C 2A 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 5E 95 01 00 35 04 06 00 72 40 0C 67 BD 88 29 80 18 90 FF 18 63 A1 [18:57:50]written 0, free lines is 4095 [18:57: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 39 33 4F 00 00 00 54 AD 47 00 D6 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 39 33 10 04 04 00 5E 95 01 00 F4 03 04 00 B4 D0 72 66 B6 04 01 00 00 6B 34 72 64 2F FE A1 FF [18:57:50]CommunicateWithHost err = 0 [18:57:50]CheckOFDResponse [18:57:50]1017 (14) - 77093643461234 [18:57:50]1041 (16) - 0000000000875093 [18:57:50]1040 (4) - 103774 [18:57:50]1012 (4) - 19.06.2024 12:36 [18:57:50]1206 (1) - 0 [18:57:50]OFD Sender: Remove packet 103774 [18:57:50]ProducePacketName [18:57:50]name=ofd_packets/00103774 [18:57:50]NVStorageDeleteData [18:57:50]Write to MH i2c: 01 00 00 21 0C 2D [18:57:50]Write i2c OK [18:57:50]MH_I2C_Read... [18:57:50]Read from MH i2c: 01 [18:57:50]MH_I2C_Read... [18:57:50]Read from MH i2c: 01 07 00 [18:57:50]MH_I2C_Read... [18:57:50]Read from MH i2c: 01 07 00 21 0C 00 00 00 00 00 E9 0C 29 [18:57:50]RasterBufferAndPrint [18:57:50]line [18:57:50]line [18:57:50]line [18:57:50]line [18:57:50]line [18:57:50]written 0, free lines is 3311 [18:57:50]MH_Cut [18:57:50]Write to MH i2c: D1 01 00 28 0C 01 06 [18:57:50]Write i2c OK [18:57:50]MH_I2C_Read... [18:57:50]Read from MH i2c: D1 [18:57:50]MH_I2C_Read... [18:57:50]Read from MH i2c: D1 01 00 [18:57:50]MH_I2C_Read... [18:57:50]Read from MH i2c: D1 01 00 28 0C 00 05 [18:57:50]Write to MH i2c: 01 00 00 29 0C 35 [18:57:50]Write i2c OK [18:57:50]MH_I2C_Read... [18:57:50]OFD Sender: No OFD packet to send [18:57:51]*** Cut start [18:57:51]*** Partial cut [18:57:51]*** CUTSNS_PIN = 1 [18:57:51]*** CUTSNS_PIN = 0 [18:57:51]*** Brake cut motor [18:57:51]Read from MH i2c: 01 [18:57:51]MH_I2C_Read... [18:57:51]*** Stop cut motor [18:57:51]*** Cut end [18:57:51]Read from MH i2c: 01 07 00 [18:57:51]MH_I2C_Read... [18:57:51]Read from MH i2c: 01 07 00 29 0C 00 00 00 00 00 FF 0F 4A [18:57:51]process_action close_receipt done [18:57:51]requested_data is exist [18:57:51]produce_requested_data [18:57:51]requested_item fm.sn is exist - process it [18:57:51]wFMCommunicate request_size=4 [18:57:51]MH_SAM_APDU [18:57:51]CAPDU: 80 11 00 00 [18:57:51]Write to MH i2c: E2 08 00 2A 0C 80 11 00 00 00 00 00 00 B0 [18:57:51]Write i2c OK [18:57:51]MH_I2C_Read... [18:57:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:57:51]Read from MH i2c: E2 [18:57:51]MH_I2C_Read... [18:57:51]Read from MH i2c: E2 17 00 [18:57:51]MH_I2C_Read... [18:57:51]Read from MH i2c: E2 17 00 2A 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 03 [18:57:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [18:57:51]wFMCommunicate OK [18:57:51]requested_item fd.num is exist - process it [18:57:51]SAM_PROTO_GetFieldsCounters [18:57:51]wFMCommunicate request_size=4 [18:57:51]MH_SAM_APDU [18:57:51]CAPDU: 80 13 00 00 [18:57:51]Write to MH i2c: E2 08 00 2B 0C 80 13 00 00 00 00 00 00 B3 [18:57:51]Write i2c OK [18:57:51]MH_I2C_Read... [18:57:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:57:52]Read from MH i2c: E2 [18:57:52]MH_I2C_Read... [18:57:52]Read from MH i2c: E2 62 00 [18:57:52]MH_I2C_Read... [18:57:52]Read from MH i2c: E2 62 00 2B 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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 5E 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 CC 00 00 00 5E 04 04 00 CC 00 00 00 57 04 04 00 CD 00 00 00 19 04 04 00 00 00 00 00 90 00 94 [18:57: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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 5E 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 CC 00 00 00 5E 04 04 00 CC 00 00 00 57 04 04 00 CD 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:57:52]wFMCommunicate OK [18:57:52]SAM_PROTO_GetFieldsCounters done [18:57:52]requested_item shift.num is exist - process it [18:57:52]requested_item shift.opened is exist - process it [18:57:52]req_shift_opened [18:57:52]FM_GetShiftState [18:57:52]SAM_PROTO_GetShiftState [18:57:52]wFMCommunicate request_size=4 [18:57:52]MH_SAM_APDU [18:57:52]CAPDU: 80 13 01 00 [18:57:52]Write to MH i2c: E2 08 00 2C 0C 80 13 01 00 00 00 00 00 B5 [18:57:52]Write i2c OK [18:57:52]MH_I2C_Read... [18:57:52]Read from MH i2c: E2 [18:57:52]MH_I2C_Read... [18:57:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:57:52]Read from MH i2c: E2 0E 00 [18:57:52]MH_I2C_Read... [18:57:52]Read from MH i2c: E2 0E 00 2C 0C 00 09 00 01 04 26 72 66 00 00 00 00 90 00 C3 [18:57:52]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [18:57:52]wFMCommunicate OK [18:57:52]SAM_PROTO_GetShiftState done [18:57:52]FM_GetShiftState done [18:57:52]req_shift_opened done [18:57:52]requested_item shift.open_date is exist - process it [18:57:52]req_shift_open_date [18:57:52]req_shift_open_date done [18:57:52]produce_requested_data done [18:57:52]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103774,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [18:57:52]process_action_free close_receipt [18:57:52]json_value_free [18:57:52]json_value_free done [18:57:52]process_json_proto returns [18:57:52]Send response to host [18:57:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103774,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [18:57:52]free response buf [18:57:52]execute_script done [18:57:52]execute_script returns [18:57:52]free content buf [18:57:52]Sock 8.Close socket [18:57:52]Sock 8.Thread stoped [18:57:55]OFD Sender: No OFD packet to send [18:58:00]OFD Sender: No OFD packet to send [18:58:04]accept exits with 10 [18:58:04]New connection [18:58:04]New thread 3066797412 created [18:58:04]Thread 3066940772 joined [18:58:04]Waiting for new connection... [18:58:04] Sock 10.Parse request [18:58:04]Sock 10.Check first char [18:58:04]Sock 10.First char is OK [18:58:04]request: POST /json_proto HTTP/1.0 [18:58:04]Method: POST [18:58:04]URL: /json_proto [18:58:04]Method is POST - this is cgi request [18:58:04]url: /json_proto [18:58:04]query_string will be loaded in cgi processing [18:58:04]execute_cgi json_proto POST (null) [18:58:04]execute_cgi path=json_proto method=POST [18:58:04]POST find Content-Length [18:58:04]Host: 172.17.38.133:8080 [18:58:04]Content-Length: 682 [18:58:04]Content-Type: application/json [18:58:04] [18:58:04]POST finish read [18:58:04]Found Content-Length = 682 [18:58:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673063", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 58.220, "sum" : 3865.81, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 5000.00, "total" : 3865.00, "payments": [ { "type": 0, "sum" : 3865.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:58:04]execute_script... [18:58:04]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673063", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 58.220, "sum" : 3865.81, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 5000.00, "total" : 3865.00, "payments": [ { "type": 0, "sum" : 3865.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:58:04]POST & json_proto [18:58:04]process_json_proto [18:58:04]json parsed OK: [18:58:04]protocol is kg_v1.0 [18:58:04]action value=close_receipt [18:58:04]process_action close_receipt [18:58:04]cmd_close_receipt [18:58:04]MH_GetDate [18:58:04]Write to MH i2c: F0 00 00 2D 0C 28 [18:58:04]Write i2c OK [18:58:04]MH_I2C_Read... [18:58:04]Read from MH i2c: F0 [18:58:04]MH_I2C_Read... [18:58:04]Read from MH i2c: F0 09 00 [18:58:04]MH_I2C_Read... [18:58:04]Read from MH i2c: F0 09 00 2D 0C 00 3D 2A 73 66 BD 8F 7C 64 9D [18:58:04]GetLastDocTimeStamp 1718823468 [18:58:04]current date 1718823485 [18:58:04]FM_GetShiftState [18:58:04]SAM_PROTO_GetShiftState [18:58:04]wFMCommunicate request_size=4 [18:58:04]MH_SAM_APDU [18:58:04]CAPDU: 80 13 01 00 [18:58:04]Write to MH i2c: E2 08 00 2E 0C 80 13 01 00 00 00 00 00 B7 [18:58:04]Write i2c OK [18:58:04]MH_I2C_Read... [18:58:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:58:04]Read from MH i2c: E2 [18:58:04]MH_I2C_Read... [18:58:04]Read from MH i2c: E2 0E 00 [18:58:04]MH_I2C_Read... [18:58:04]Read from MH i2c: E2 0E 00 2E 0C 00 09 00 01 04 26 72 66 00 00 00 00 90 00 C5 [18:58:04]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [18:58:04]wFMCommunicate OK [18:58:04]SAM_PROTO_GetShiftState done [18:58:04]FM_GetShiftState done [18:58:04]opened in 1718756868 [18:58:04]opened+sec_in_day 1718843268 [18:58:04]quantity*price = 386580 [18:58:04]sum+1 = 386582 [18:58:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.81 ИТОГО: 3865.00 Внесено: 5000.00 СДАЧА: 1135.00 НСП 1% : 34.21 НДС 12% : 410.53 Наличными: 3865.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 205 19.06.2024 18:58 Смена: 353 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103775 ФПД: 89462299758091 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T185805&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103775&fm=89462299758091&tin=02508201610067®Number=0000000000092785&sum=386500 [18:58:05]StoreToDocumentArchive [18:58:05]shift 353 fd 103775 [18:58:05]save to /storage/0353/doc_00103775 [18:58:05]save last doc name /storage/0353/doc_00103775 to /storage/kkm_last_doc_name [18:58:05]save OK [18:58:05]Clear old archive folders... [18:58:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:58:05]tlvbuf is 016D2B90 [18:58:05]SAM_PROTO_ClearQueue [18:58:05]wFMCommunicate request_size=4 [18:58:05]MH_SAM_APDU [18:58:05]CAPDU: 80 09 00 00 [18:58:05]Write to MH i2c: E2 08 00 3B 0C 80 09 00 00 00 00 00 00 B9 [18:58:05]Write i2c OK [18:58:05]MH_I2C_Read... [18:58:05]Read from MH i2c: E2 [18:58:05]MH_I2C_Read... [18:58:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:58:05]Read from MH i2c: E2 03 00 [18:58:05]MH_I2C_Read... [18:58:05]Read from MH i2c: E2 03 00 3B 0C 00 90 00 BB [18:58:05]RAPDU: 90 00 [18:58:05]wFMCommunicate OK [18:58:05]SAM_PROTO_ClearQueue done [18:58:05]KKMCreateOFDPacket [18:58:05]OFDProtocolAddRootSTLVToBuf [18:58:05]FM_MakeSignedData [18:58:05]FM_MakeSignedData [18:58:05]SAM_PROTO_SignData [18:58:05]wFMCommunicate request_size=4 [18:58:05]MH_SAM_APDU [18:58:05]CAPDU: 80 0D 01 02 [18:58:05]Write to MH i2c: E2 08 00 3C 0C 80 0D 01 02 00 00 00 00 C1 [18:58:05]Write i2c OK [18:58:05]MH_I2C_Read... [18:58:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:58:05]Read from MH i2c: E2 [18:58:05]MH_I2C_Read... [18:58:05]Read from MH i2c: E2 03 00 [18:58:05]MH_I2C_Read... [18:58:05]Read from MH i2c: E2 03 00 3C 0C 00 90 00 BC [18:58:05]RAPDU: 90 00 [18:58:05]wFMCommunicate OK [18:58:05]wFMCommunicate request_size=255 [18:58:05]MH_SAM_APDU [18:58:05]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6C E3 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 15 E6 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 E5 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5D 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5D A0 00 00 00 00 07 04 06 00 C4 E5 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CD 00 00 00 F4 03 04 00 3D 2A 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 5F 95 01 00 35 04 06 00 51 [18:58:05]Write to MH i2c: E2 02 01 3D 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 6C E3 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 15 E6 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 E5 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5D 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5D A0 00 00 00 00 07 04 06 00 C4 E5 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CD 00 00 00 F4 03 04 00 3D 2A 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 5F 95 01 00 35 04 06 00 51 00 00 A1 [18:58:05]Write i2c OK [18:58:05]MH_I2C_Read... [18:58:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:58:05]Read from MH i2c: E2 [18:58:05]MH_I2C_Read... [18:58:05]Read from MH i2c: E2 03 00 [18:58:05]MH_I2C_Read... [18:58:05]Read from MH i2c: E2 03 00 3D 0C 00 90 00 BD [18:58:05]RAPDU: 90 00 [18:58:05]wFMCommunicate OK [18:58:05]wFMCommunicate request_size=10 [18:58:05]MH_SAM_APDU [18:58:05]CAPDU: 80 0D 02 02 05 5D 90 99 0E 0B [18:58:05]Write to MH i2c: E2 0D 00 3E 0C 80 0D 02 02 05 00 5D 90 99 0E 0B 00 00 6D [18:58:05]Write i2c OK [18:58:05]MH_I2C_Read... [18:58:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:58:05]Read from MH i2c: E2 [18:58:05]MH_I2C_Read... [18:58:05]Read from MH i2c: E2 03 00 [18:58:05]MH_I2C_Read... [18:58:05]Read from MH i2c: E2 03 00 3E 0C 00 90 00 BE [18:58:05]RAPDU: 90 00 [18:58:05]wFMCommunicate OK [18:58:05]wFMCommunicate request_size=4 [18:58:05]MH_SAM_APDU [18:58:05]CAPDU: 80 0D 03 02 [18:58:05]Write to MH i2c: E2 08 00 3F 0C 80 0D 03 02 00 00 00 00 C6 [18:58:05]Write i2c OK [18:58:05]MH_I2C_Read... [18:58:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:58:05]OFD Sender: No OFD packet to send [18:58:05]Read from MH i2c: E2 [18:58:05]MH_I2C_Read... [18:58:05]Read from MH i2c: E2 0B 00 [18:58:05]MH_I2C_Read... [18:58:05]Read from MH i2c: E2 0B 00 3F 0C 00 F4 3C C4 47 93 E6 96 0B 90 00 1C [18:58:05]RAPDU: F4 3C C4 47 93 E6 96 0B 90 00 [18:58:05]wFMCommunicate OK [18:58:05]SAM_PROTO_SignData done [18:58:05]FM_MakeSignedData done [18:58:05]CreateOFDProtocolMessage [18:58:05]wFMCommunicate request_size=4 [18:58:05]MH_SAM_APDU [18:58:05]CAPDU: 80 11 00 00 [18:58:05]Write to MH i2c: E2 08 00 40 0C 80 11 00 00 00 00 00 00 C6 [18:58:05]Write i2c OK [18:58:05]MH_I2C_Read... [18:58:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:58:05]Read from MH i2c: E2 [18:58:05]MH_I2C_Read... [18:58:05]Read from MH i2c: E2 17 00 [18:58:05]MH_I2C_Read... [18:58:05]Read from MH i2c: E2 17 00 40 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 19 [18:58:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [18:58:05]wFMCommunicate OK [18:58:05]CreateOFDProtocolMessage done [18:58:05]OFDSenderStorePacket 103775 [18:58:05]StoreOFDPacket docnum=103775 [18:58:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 10 4F 07 01 22 E0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6C E3 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 15 E6 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 E5 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5D 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5D A0 00 00 00 00 07 04 06 00 C4 E5 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CD 00 00 00 F4 03 04 00 3D 2A 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 5F 95 01 00 35 04 06 00 51 5D 90 99 0E 0B F4 3C C4 47 93 E6 96 0B [18:58:05]CheckFolder [18:58:05]dirname=/storage/ofd_packets [18:58:05]CheckFolder done [18:58:05]ProducePacketName [18:58:05]name=ofd_packets/00103775 [18:58:05]NVStorageSaveData ofd_packets/00103775 [18:58:05]File name is /storage/ofd_packets/00103775 [18:58:05]Write 301 bytes [18:58:05]NVStorageSaveData done [18:58:05]OFDSenderStorePacket done [18:58:05]KKMCreateOFDPacket done [18:58:05]NVStorageSaveData kkm_last_timestamp [18:58:05]File name is /storage/kkm_last_timestamp [18:58:05]Write 4 bytes [18:58:05]NVStorageSaveData done [18:58:05]ExternCall_PrintAddStr [18:58:05]wPrintStart [18:58:05]Write to MH i2c: 01 00 00 41 0C 4D [18:58:05]Write i2c OK [18:58:05]MH_I2C_Read... [18:58:05]Read from MH i2c: 01 [18:58:05]MH_I2C_Read... [18:58:05]Read from MH i2c: 01 07 00 [18:58:05]MH_I2C_Read... [18:58:05]Read from MH i2c: 01 07 00 41 0C 00 00 00 00 00 FF 0F 62 [18:58:05]RasterBufferAndPrint [18:58:05]line Счет N : (1)673063 [18:58:05]line ИНН: 02508201610067 [18:58:05]line Контрольно-Кассовый Чек [18:58:05]line ПРОДАЖА [18:58:05]line ТРК (МРК, ГНК) : 42 [18:58:05]line Товар: 2710124130 [18:58:05]line Аи-92-К-5 [18:58:05]line 58.220 * 66.40 [18:58:05]line = 3865.81 [18:58:05]line НДС 12% НСП 1% [18:58:05]line > о реализуемом товаре [18:58:05]line ОКРУГЛЕНИЕ: -0.81 [18:58:05]line ИТОГО: 3865.00 [18:58:05]line Внесено: 5000.00 [18:58:05]line СДАЧА: 1135.00 [18:58:05]line НСП 1% : 34.21 [18:58:05]line НДС 12% : 410.53 [18:58:05]line Наличными: 3865.00 [18:58:05]line Безнал.: 0.00 [18:58:05]line Место: АЗС № 120 "Партнер Нефть" [18:58:05]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [18:58:05]line СНО: Общий режим [18:58:05]line Чек 205 19.06.2024 18:58 [18:58:05]line Смена: 353 ФФД: 1.0 [18:58:05]line ЗНМ: 0300000164 [18:58:05]line РНМ: 0000000000092785 [18:58:05]line Версия ККМ: 001 [18:58:05]line ФМ: 0000000000875093 [18:58:05]line ФД: 103775 [18:58:05]line ФПД: 89462299758091 [18:58:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T185805&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103775&fm=89462299758091&tin=02508201610067®Number=0000000000092785&sum=386500 [18:58:06]OFD Sender: Processing packet 103775 [packets to send 17, broken 16] [18:58:06]ProducePacketName [18:58:06]name=ofd_packets/00103775 [18:58:06]OFD Sender: To server: pG, [18:58:06]CommunicateWithHost lk.salyk.kg:30040 [18:58:06]ConnectInit lk.salyk.kg [18:58:06]written 0, free lines is 4095 [18:58:06]Connected sock=8 [18:58:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 10 4F 07 01 22 E0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6C E3 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 15 E6 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 E5 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5D 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5D A0 00 00 00 00 07 04 06 00 C4 E5 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CD 00 00 00 F4 03 04 00 3D 2A 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 5F 95 01 00 35 04 06 00 51 5D 90 99 0E 0B F4 3C C4 47 93 E6 96 0B [18:58:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 34 5D 47 00 D2 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 39 33 10 04 04 00 5F 95 01 00 F4 03 04 00 C5 D0 72 66 B6 04 01 00 00 83 26 6E F7 C8 B3 20 12 [18:58:06]CommunicateWithHost err = 0 [18:58:06]CheckOFDResponse [18:58:06]1017 (14) - 77093643461234 [18:58:06]1041 (16) - 0000000000875093 [18:58:06]1040 (4) - 103775 [18:58:06]1012 (4) - 19.06.2024 12:36 [18:58:06]1206 (1) - 0 [18:58:06]OFD Sender: Remove packet 103775 [18:58:06]ProducePacketName [18:58:06]name=ofd_packets/00103775 [18:58:06]NVStorageDeleteData [18:58:06]Write to MH i2c: 01 00 00 6C 0C 78 [18:58:06]Write i2c OK [18:58:06]MH_I2C_Read... [18:58:06]Read from MH i2c: 01 [18:58:06]MH_I2C_Read... [18:58:06]Read from MH i2c: 01 07 00 [18:58:06]MH_I2C_Read... [18:58:06]Read from MH i2c: 01 07 00 6C 0C 00 00 00 00 00 E6 0C 71 [18:58:06]RasterBufferAndPrint [18:58:06]line [18:58:06]line [18:58:06]line [18:58:06]line [18:58:06]line [18:58:06]written 0, free lines is 3309 [18:58:06]MH_Cut [18:58:06]Write to MH i2c: D1 01 00 73 0C 01 51 [18:58:06]Write i2c OK [18:58:06]MH_I2C_Read... [18:58:06]Read from MH i2c: D1 [18:58:06]MH_I2C_Read... [18:58:06]Read from MH i2c: D1 01 00 [18:58:06]MH_I2C_Read... [18:58:06]Read from MH i2c: D1 01 00 73 0C 00 50 [18:58:06]Write to MH i2c: 01 00 00 74 0C 80 [18:58:06]Write i2c OK [18:58:06]MH_I2C_Read... [18:58:07]OFD Sender: No OFD packet to send [18:58:07]*** Cut start [18:58:07]*** Partial cut [18:58:07]*** CUTSNS_PIN = 1 [18:58:07]*** CUTSNS_PIN = 0 [18:58:07]*** Brake cut motor [18:58:07]Read from MH i2c: 01 [18:58:07]MH_I2C_Read... [18:58:07]*** Stop cut motor [18:58:07]*** Cut end [18:58:07]Read from MH i2c: 01 07 00 [18:58:07]MH_I2C_Read... [18:58:07]Read from MH i2c: 01 07 00 74 0C 00 00 00 00 00 FF 0F 95 [18:58:07]process_action close_receipt done [18:58:07]requested_data is exist [18:58:07]produce_requested_data [18:58:07]requested_item fm.sn is exist - process it [18:58:07]wFMCommunicate request_size=4 [18:58:07]MH_SAM_APDU [18:58:07]CAPDU: 80 11 00 00 [18:58:07]Write to MH i2c: E2 08 00 75 0C 80 11 00 00 00 00 00 00 FB [18:58:07]Write i2c OK [18:58:07]MH_I2C_Read... [18:58:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:58:08]Read from MH i2c: E2 [18:58:08]MH_I2C_Read... [18:58:08]Read from MH i2c: E2 17 00 [18:58:08]MH_I2C_Read... [18:58:08]Read from MH i2c: E2 17 00 75 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 4E [18:58:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [18:58:08]wFMCommunicate OK [18:58:08]requested_item fd.num is exist - process it [18:58:08]SAM_PROTO_GetFieldsCounters [18:58:08]wFMCommunicate request_size=4 [18:58:08]MH_SAM_APDU [18:58:08]CAPDU: 80 13 00 00 [18:58:08]Write to MH i2c: E2 08 00 76 0C 80 13 00 00 00 00 00 00 FE [18:58:08]Write i2c OK [18:58:08]MH_I2C_Read... [18:58:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:58:08]Read from MH i2c: E2 [18:58:08]MH_I2C_Read... [18:58:08]Read from MH i2c: E2 62 00 [18:58:08]MH_I2C_Read... [18:58:08]Read from MH i2c: E2 62 00 76 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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 5F 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 CD 00 00 00 5E 04 04 00 CD 00 00 00 57 04 04 00 CE 00 00 00 19 04 04 00 00 00 00 00 90 00 E3 [18:58:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 5F 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 CD 00 00 00 5E 04 04 00 CD 00 00 00 57 04 04 00 CE 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:58:08]wFMCommunicate OK [18:58:08]SAM_PROTO_GetFieldsCounters done [18:58:08]requested_item shift.num is exist - process it [18:58:08]requested_item shift.opened is exist - process it [18:58:08]req_shift_opened [18:58:08]FM_GetShiftState [18:58:08]SAM_PROTO_GetShiftState [18:58:08]wFMCommunicate request_size=4 [18:58:08]MH_SAM_APDU [18:58:08]CAPDU: 80 13 01 00 [18:58:08]Write to MH i2c: E2 08 00 77 0C 80 13 01 00 00 00 00 00 00 [18:58:08]Write i2c OK [18:58:08]MH_I2C_Read... [18:58:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:58:08]Read from MH i2c: E2 [18:58:08]MH_I2C_Read... [18:58:08]Read from MH i2c: E2 0E 00 [18:58:08]MH_I2C_Read... [18:58:08]Read from MH i2c: E2 0E 00 77 0C 00 09 00 01 04 26 72 66 00 00 00 00 90 00 0E [18:58:08]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [18:58:08]wFMCommunicate OK [18:58:08]SAM_PROTO_GetShiftState done [18:58:08]FM_GetShiftState done [18:58:08]req_shift_opened done [18:58:08]requested_item shift.open_date is exist - process it [18:58:08]req_shift_open_date [18:58:08]req_shift_open_date done [18:58:08]produce_requested_data done [18:58:08]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103775,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [18:58:08]process_action_free close_receipt [18:58:08]json_value_free [18:58:08]json_value_free done [18:58:08]process_json_proto returns [18:58:08]Send response to host [18:58:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103775,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [18:58:08]free response buf [18:58:08]execute_script done [18:58:08]execute_script returns [18:58:08]free content buf [18:58:08]Sock 10.Close socket [18:58:08]Sock 10.Thread stoped [18:58:12]OFD Sender: No OFD packet to send [18:58:17]OFD Sender: No OFD packet to send [18:58:22]OFD Sender: No OFD packet to send [18:58:27]OFD Sender: No OFD packet to send [18:58:32]OFD Sender: No OFD packet to send [18:58:37]OFD Sender: No OFD packet to send [18:58:42]OFD Sender: No OFD packet to send [18:58:47]OFD Sender: No OFD packet to send [18:58:52]OFD Sender: No OFD packet to send [18:58:57]OFD Sender: No OFD packet to send [18:59:02]OFD Sender: No OFD packet to send [18:59:07]OFD Sender: No OFD packet to send [18:59:12]OFD Sender: No OFD packet to send [18:59:17]OFD Sender: No OFD packet to send [18:59:22]OFD Sender: No OFD packet to send [18:59:27]OFD Sender: No OFD packet to send [18:59:32]OFD Sender: No OFD packet to send [18:59:37]OFD Sender: No OFD packet to send [18:59:42]OFD Sender: No OFD packet to send [18:59:47]OFD Sender: No OFD packet to send [18:59:52]OFD Sender: No OFD packet to send [18:59:57]OFD Sender: No OFD packet to send [19:00:02]OFD Sender: No OFD packet to send [19:00:07]OFD Sender: No OFD packet to send [19:00:12]OFD Sender: No OFD packet to send [19:00:17]OFD Sender: No OFD packet to send [19:00:22]OFD Sender: No OFD packet to send [19:00:27]OFD Sender: No OFD packet to send [19:00:32]OFD Sender: No OFD packet to send [19:00:37]OFD Sender: No OFD packet to send [19:00:42]OFD Sender: No OFD packet to send [19:00:47]OFD Sender: No OFD packet to send [19:00:52]OFD Sender: No OFD packet to send [19:00:57]OFD Sender: No OFD packet to send [19:01:02]OFD Sender: No OFD packet to send [19:01:03]accept exits with 9 [19:01:03]New connection [19:01:03]New thread 3066940772 created [19:01:03]Thread 3066797412 joined [19:01:03]Waiting for new connection... [19:01:03] Sock 9.Parse request [19:01:03]Sock 9.Check first char [19:01:03]Sock 9.First char is OK [19:01:03]request: POST /json_proto HTTP/1.0 [19:01:03]Method: POST [19:01:03]URL: /json_proto [19:01:03]Method is POST - this is cgi request [19:01:03]url: /json_proto [19:01:03]query_string will be loaded in cgi processing [19:01:03]execute_cgi json_proto POST (null) [19:01:03]execute_cgi path=json_proto method=POST [19:01:03]POST find Content-Length [19:01:03]Host: 172.17.38.133:8080 [19:01:03]Content-Length: 678 [19:01:03]Content-Type: application/json [19:01:03] [19:01:03]POST finish read [19:01:03]Found Content-Length = 678 [19:01:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673066", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 10.550, "sum" : 700.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:01:03]execute_script... [19:01:03]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673066", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 10.550, "sum" : 700.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:01:03]POST & json_proto [19:01:03]process_json_proto [19:01:03]json parsed OK: [19:01:03]protocol is kg_v1.0 [19:01:03]action value=close_receipt [19:01:03]process_action close_receipt [19:01:03]cmd_close_receipt [19:01:03]MH_GetDate [19:01:03]Write to MH i2c: F0 00 00 78 0C 73 [19:01:03]Write i2c OK [19:01:03]MH_I2C_Read... [19:01:03]Read from MH i2c: F0 [19:01:03]MH_I2C_Read... [19:01:03]Read from MH i2c: F0 09 00 [19:01:03]MH_I2C_Read... [19:01:03]Read from MH i2c: F0 09 00 78 0C 00 EF 2A 73 66 BD 8F 7C 64 9A [19:01:03]GetLastDocTimeStamp 1718823485 [19:01:03]current date 1718823663 [19:01:03]FM_GetShiftState [19:01:03]SAM_PROTO_GetShiftState [19:01:03]wFMCommunicate request_size=4 [19:01:03]MH_SAM_APDU [19:01:03]CAPDU: 80 13 01 00 [19:01:03]Write to MH i2c: E2 08 00 79 0C 80 13 01 00 00 00 00 00 02 [19:01:03]Write i2c OK [19:01:03]MH_I2C_Read... [19:01:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:01:03]Read from MH i2c: E2 [19:01:03]MH_I2C_Read... [19:01:03]Read from MH i2c: E2 0E 00 [19:01:03]MH_I2C_Read... [19:01:03]Read from MH i2c: E2 0E 00 79 0C 00 09 00 01 04 26 72 66 00 00 00 00 90 00 10 [19:01:03]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [19:01:03]wFMCommunicate OK [19:01:03]SAM_PROTO_GetShiftState done [19:01:03]FM_GetShiftState done [19:01:03]opened in 1718756868 [19:01:03]opened+sec_in_day 1718843268 [19:01:03]quantity*price = 70052 [19:01:03]sum+1 = 70053 [19:01:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.52 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.39 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 206 19.06.2024 19:01 Смена: 353 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103776 ФПД: 121867743572326 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T190103&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103776&fm=121867743572326&tin=02508201610067®Number=0000000000092785&sum=70000 [19:01:04]StoreToDocumentArchive [19:01:04]shift 353 fd 103776 [19:01:04]save to /storage/0353/doc_00103776 [19:01:04]save last doc name /storage/0353/doc_00103776 to /storage/kkm_last_doc_name [19:01:04]save OK [19:01:04]Clear old archive folders... [19:01:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:01:04]tlvbuf is 016BC1D0 [19:01:04]SAM_PROTO_ClearQueue [19:01:04]wFMCommunicate request_size=4 [19:01:04]MH_SAM_APDU [19:01:04]CAPDU: 80 09 00 00 [19:01:04]Write to MH i2c: E2 08 00 86 0C 80 09 00 00 00 00 00 00 04 [19:01:04]Write i2c OK [19:01:04]MH_I2C_Read... [19:01:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:01:04]Read from MH i2c: E2 [19:01:04]MH_I2C_Read... [19:01:04]Read from MH i2c: E2 03 00 [19:01:04]MH_I2C_Read... [19:01:04]Read from MH i2c: E2 03 00 86 0C 00 90 00 06 [19:01:04]RAPDU: 90 00 [19:01:04]wFMCommunicate OK [19:01:04]SAM_PROTO_ClearQueue done [19:01:04]KKMCreateOFDPacket [19:01:04]OFDProtocolAddRootSTLVToBuf [19:01:04]FM_MakeSignedData [19:01:04]FM_MakeSignedData [19:01:04]SAM_PROTO_SignData [19:01:04]wFMCommunicate request_size=4 [19:01:04]MH_SAM_APDU [19:01:04]CAPDU: 80 0D 01 02 [19:01:04]Write to MH i2c: E2 08 00 87 0C 80 0D 01 02 00 00 00 00 0C [19:01:04]Write i2c OK [19:01:04]MH_I2C_Read... [19:01:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:01:04]Read from MH i2c: E2 [19:01:04]MH_I2C_Read... [19:01:04]Read from MH i2c: E2 03 00 [19:01:04]MH_I2C_Read... [19:01:04]Read from MH i2c: E2 03 00 87 0C 00 90 00 07 [19:01:04]RAPDU: 90 00 [19:01:04]wFMCommunicate OK [19:01:04]wFMCommunicate request_size=255 [19:01:04]MH_SAM_APDU [19:01:04]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CE 00 00 00 F4 03 04 00 EF 2A 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 60 95 01 00 35 04 06 00 6E [19:01:04]Write to MH i2c: E2 02 01 88 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 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CE 00 00 00 F4 03 04 00 EF 2A 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 60 95 01 00 35 04 06 00 6E 00 00 5E [19:01:04]Write i2c OK [19:01:04]MH_I2C_Read... [19:01:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:01:04]Read from MH i2c: E2 [19:01:04]MH_I2C_Read... [19:01:04]Read from MH i2c: E2 03 00 [19:01:04]MH_I2C_Read... [19:01:04]Read from MH i2c: E2 03 00 88 0C 00 90 00 08 [19:01:04]RAPDU: 90 00 [19:01:04]wFMCommunicate OK [19:01:04]wFMCommunicate request_size=10 [19:01:04]MH_SAM_APDU [19:01:04]CAPDU: 80 0D 02 02 05 D6 8B 90 B1 66 [19:01:04]Write to MH i2c: E2 0D 00 89 0C 80 0D 02 02 05 00 D6 8B 90 B1 66 00 00 21 [19:01:04]Write i2c OK [19:01:04]MH_I2C_Read... [19:01:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:01:04]Read from MH i2c: E2 [19:01:04]MH_I2C_Read... [19:01:04]Read from MH i2c: E2 03 00 [19:01:04]MH_I2C_Read... [19:01:04]Read from MH i2c: E2 03 00 89 0C 00 90 00 09 [19:01:04]RAPDU: 90 00 [19:01:04]wFMCommunicate OK [19:01:04]wFMCommunicate request_size=4 [19:01:04]MH_SAM_APDU [19:01:04]CAPDU: 80 0D 03 02 [19:01:04]Write to MH i2c: E2 08 00 8A 0C 80 0D 03 02 00 00 00 00 11 [19:01:04]Write i2c OK [19:01:04]MH_I2C_Read... [19:01:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:01:04]Read from MH i2c: E2 [19:01:04]MH_I2C_Read... [19:01:04]Read from MH i2c: E2 0B 00 [19:01:04]MH_I2C_Read... [19:01:04]Read from MH i2c: E2 0B 00 8A 0C 00 1D 04 60 E8 0F BA C7 7C 90 00 87 [19:01:04]RAPDU: 1D 04 60 E8 0F BA C7 7C 90 00 [19:01:04]wFMCommunicate OK [19:01:04]SAM_PROTO_SignData done [19:01:04]FM_MakeSignedData done [19:01:04]CreateOFDProtocolMessage [19:01:04]wFMCommunicate request_size=4 [19:01:04]MH_SAM_APDU [19:01:04]CAPDU: 80 11 00 00 [19:01:04]Write to MH i2c: E2 08 00 8B 0C 80 11 00 00 00 00 00 00 11 [19:01:04]Write i2c OK [19:01:04]MH_I2C_Read... [19:01:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:01:04]Read from MH i2c: E2 [19:01:04]MH_I2C_Read... [19:01:04]Read from MH i2c: E2 17 00 [19:01:04]MH_I2C_Read... [19:01:04]Read from MH i2c: E2 17 00 8B 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 64 [19:01:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [19:01:04]wFMCommunicate OK [19:01:04]CreateOFDProtocolMessage done [19:01:04]OFDSenderStorePacket 103776 [19:01:04]StoreOFDPacket docnum=103776 [19:01:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 C7 9D 07 01 72 73 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CE 00 00 00 F4 03 04 00 EF 2A 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 60 95 01 00 35 04 06 00 6E D6 8B 90 B1 66 1D 04 60 E8 0F BA C7 7C [19:01:04]CheckFolder [19:01:04]dirname=/storage/ofd_packets [19:01:04]CheckFolder done [19:01:04]ProducePacketName [19:01:04]name=ofd_packets/00103776 [19:01:04]NVStorageSaveData ofd_packets/00103776 [19:01:04]File name is /storage/ofd_packets/00103776 [19:01:04]Write 301 bytes [19:01:04]NVStorageSaveData done [19:01:04]OFDSenderStorePacket done [19:01:04]KKMCreateOFDPacket done [19:01:04]NVStorageSaveData kkm_last_timestamp [19:01:04]File name is /storage/kkm_last_timestamp [19:01:04]Write 4 bytes [19:01:04]NVStorageSaveData done [19:01:04]ExternCall_PrintAddStr [19:01:04]wPrintStart [19:01:04]Write to MH i2c: 01 00 00 8C 0C 98 [19:01:04]OFD Sender: Processing packet 103776 [packets to send 17, broken 16] [19:01:04]ProducePacketName [19:01:04]name=ofd_packets/00103776 [19:01:04]OFD Sender: To server: pG, [19:01:04]CommunicateWithHost lk.salyk.kg:30040 [19:01:04]ConnectInit lk.salyk.kg [19:01:04]Write i2c OK [19:01:04]MH_I2C_Read... [19:01:04]Read from MH i2c: 01 [19:01:04]MH_I2C_Read... [19:01:04]Read from MH i2c: 01 07 00 [19:01:04]MH_I2C_Read... [19:01:04]Read from MH i2c: 01 07 00 8C 0C 00 00 00 00 00 FF 0F AD [19:01:04]RasterBufferAndPrint [19:01:04]line Счет N : (1)673066 [19:01:04]line ИНН: 02508201610067 [19:01:04]line Контрольно-Кассовый Чек [19:01:04]line ПРОДАЖА [19:01:04]line ТРК (МРК, ГНК) : 32 [19:01:04]line Товар: 2710124130 [19:01:04]line Аи-92-К-5 [19:01:04]line 10.550 * 66.40 [19:01:04]line = 700.52 [19:01:04]line НДС 12% НСП 1% [19:01:04]line > о реализуемом товаре [19:01:04]line ОКРУГЛЕНИЕ: -0.52 [19:01:04]line ИТОГО: 700.00 [19:01:04]line Внесено: 700.00 [19:01:04]line СДАЧА: 0.00 [19:01:04]line НСП 1% : 6.20 [19:01:04]line НДС 12% : 74.39 [19:01:04]line Наличными: 700.00 [19:01:04]line Безнал.: 0.00 [19:01:04]line Место: АЗС № 120 "Партнер Нефть" [19:01:04]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [19:01:04]line СНО: Общий режим [19:01:04]line Чек 206 19.06.2024 19:01 [19:01:04]line Смена: 353 ФФД: 1.0 [19:01:04]line ЗНМ: 0300000164 [19:01:04]line РНМ: 0000000000092785 [19:01:04]line Версия ККМ: 001 [19:01:04]line ФМ: 0000000000875093 [19:01:04]line ФД: 103776 [19:01:04]line ФПД: 121867743572326 [19:01:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T190103&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103776&fm=121867743572326&tin=02508201610067®Number=0000000000092785&sum=70000 [19:01:05]Connected sock=10 [19:01:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 C7 9D 07 01 72 73 5A 03 01 00 written 0, free lines is 4095 [19:01:05]03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CE 00 00 00 F4 03 04 00 EF 2A 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 60 95 01 00 35 04 06 00 6E D6 8B 90 B1 66 1D 04 60 E8 0F BA C7 7C [19:01:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 65 A6 47 00 2E EF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 60 95 01 00 F4 03 04 00 77 D1 72 66 B6 04 01 00 00 85 F1 9F 91 49 77 BC B5 [19:01:05]CommunicateWithHost err = 0 [19:01:05]CheckOFDResponse [19:01:05]1017 (14) - 77093643461234 [19:01:05]1041 (16) - 0000000000875093 [19:01:05]1040 (4) - 103776 [19:01:05]1012 (4) - 19.06.2024 12:39 [19:01:05]1206 (1) - 0 [19:01:05]OFD Sender: Remove packet 103776 [19:01:05]ProducePacketName [19:01:05]name=ofd_packets/00103776 [19:01:05]NVStorageDeleteData [19:01:05]Write to MH i2c: 01 00 00 B7 0C C3 [19:01:05]Write i2c OK [19:01:05]MH_I2C_Read... [19:01:05]Read from MH i2c: 01 [19:01:05]MH_I2C_Read... [19:01:05]Read from MH i2c: 01 07 00 [19:01:05]MH_I2C_Read... [19:01:05]Read from MH i2c: 01 07 00 B7 0C 00 00 00 00 00 DD 0C B3 [19:01:05]RasterBufferAndPrint [19:01:05]line [19:01:05]line [19:01:05]line [19:01:05]line [19:01:05]line [19:01:05]written 0, free lines is 3299 [19:01:05]MH_Cut [19:01:05]Write to MH i2c: D1 01 00 BE 0C 01 9C [19:01:05]Write i2c OK [19:01:05]MH_I2C_Read... [19:01:05]Read from MH i2c: D1 [19:01:05]MH_I2C_Read... [19:01:05]Read from MH i2c: D1 01 00 [19:01:05]MH_I2C_Read... [19:01:05]Read from MH i2c: D1 01 00 BE 0C 00 9B [19:01:05]Write to MH i2c: 01 00 00 BF 0C CB [19:01:05]Write i2c OK [19:01:05]MH_I2C_Read... [19:01:05]OFD Sender: No OFD packet to send [19:01:06]*** Cut start [19:01:06]*** Partial cut [19:01:06]*** CUTSNS_PIN = 1 [19:01:06]*** CUTSNS_PIN = 0 [19:01:06]*** Brake cut motor [19:01:06]Read from MH i2c: 01 [19:01:06]MH_I2C_Read... [19:01:06]*** Stop cut motor [19:01:06]*** Cut end [19:01:06]Read from MH i2c: 01 07 00 [19:01:06]MH_I2C_Read... [19:01:06]Read from MH i2c: 01 07 00 BF 0C 00 00 00 00 00 FF 0F E0 [19:01:06]process_action close_receipt done [19:01:06]requested_data is exist [19:01:06]produce_requested_data [19:01:06]requested_item fm.sn is exist - process it [19:01:06]wFMCommunicate request_size=4 [19:01:06]MH_SAM_APDU [19:01:06]CAPDU: 80 11 00 00 [19:01:06]Write to MH i2c: E2 08 00 C0 0C 80 11 00 00 00 00 00 00 46 [19:01:06]Write i2c OK [19:01:06]MH_I2C_Read... [19:01:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:01:06]Read from MH i2c: E2 [19:01:06]MH_I2C_Read... [19:01:06]Read from MH i2c: E2 17 00 [19:01:06]MH_I2C_Read... [19:01:06]Read from MH i2c: E2 17 00 C0 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 99 [19:01:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [19:01:06]wFMCommunicate OK [19:01:06]requested_item fd.num is exist - process it [19:01:06]SAM_PROTO_GetFieldsCounters [19:01:06]wFMCommunicate request_size=4 [19:01:06]MH_SAM_APDU [19:01:06]CAPDU: 80 13 00 00 [19:01:06]Write to MH i2c: E2 08 00 C1 0C 80 13 00 00 00 00 00 00 49 [19:01:06]Write i2c OK [19:01:06]MH_I2C_Read... [19:01:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:01:07]Read from MH i2c: E2 [19:01:07]MH_I2C_Read... [19:01:07]Read from MH i2c: E2 62 00 [19:01:07]MH_I2C_Read... [19:01:07]Read from MH i2c: E2 62 00 C1 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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 60 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 CE 00 00 00 5E 04 04 00 CE 00 00 00 57 04 04 00 CF 00 00 00 19 04 04 00 00 00 00 00 90 00 32 [19:01: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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 60 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 CE 00 00 00 5E 04 04 00 CE 00 00 00 57 04 04 00 CF 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:01:07]wFMCommunicate OK [19:01:07]SAM_PROTO_GetFieldsCounters done [19:01:07]requested_item shift.num is exist - process it [19:01:07]requested_item shift.opened is exist - process it [19:01:07]req_shift_opened [19:01:07]FM_GetShiftState [19:01:07]SAM_PROTO_GetShiftState [19:01:07]wFMCommunicate request_size=4 [19:01:07]MH_SAM_APDU [19:01:07]CAPDU: 80 13 01 00 [19:01:07]Write to MH i2c: E2 08 00 C2 0C 80 13 01 00 00 00 00 00 4B [19:01:07]Write i2c OK [19:01:07]MH_I2C_Read... [19:01:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:01:07]Read from MH i2c: E2 [19:01:07]MH_I2C_Read... [19:01:07]Read from MH i2c: E2 0E 00 [19:01:07]MH_I2C_Read... [19:01:07]Read from MH i2c: E2 0E 00 C2 0C 00 09 00 01 04 26 72 66 00 00 00 00 90 00 59 [19:01:07]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [19:01:07]wFMCommunicate OK [19:01:07]SAM_PROTO_GetShiftState done [19:01:07]FM_GetShiftState done [19:01:07]req_shift_opened done [19:01:07]requested_item shift.open_date is exist - process it [19:01:07]req_shift_open_date [19:01:07]req_shift_open_date done [19:01:07]produce_requested_data done [19:01:07]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103776,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [19:01:07]process_action_free close_receipt [19:01:07]json_value_free [19:01:07]json_value_free done [19:01:07]process_json_proto returns [19:01:07]Send response to host [19:01:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103776,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [19:01:07]free response buf [19:01:07]execute_script done [19:01:07]execute_script returns [19:01:07]free content buf [19:01:07]Sock 9.Close socket [19:01:07]Sock 9.Thread stoped [19:01:10]OFD Sender: No OFD packet to send [19:01:15]OFD Sender: No OFD packet to send [19:01:19]accept exits with 8 [19:01:19]New connection [19:01:19]New thread 3066797412 created [19:01:19]Thread 3066940772 joined [19:01:19]Waiting for new connection... [19:01:19] Sock 8.Parse request [19:01:19]Sock 8.Check first char [19:01:19]Sock 8.First char is OK [19:01:19]request: POST /json_proto HTTP/1.0 [19:01:19]Method: POST [19:01:19]URL: /json_proto [19:01:19]Method is POST - this is cgi request [19:01:19]url: /json_proto [19:01:19]query_string will be loaded in cgi processing [19:01:19]execute_cgi json_proto POST (null) [19:01:19]execute_cgi path=json_proto method=POST [19:01:19]POST find Content-Length [19:01:19]Host: 172.17.38.133:8080 [19:01:19]Content-Length: 687 [19:01:19]Content-Type: application/json [19:01:19] [19:01:19]POST finish read [19:01:19]Found Content-Length = 687 [19:01:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673067", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 27.440, "sum" : 2000.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:01:19]execute_script... [19:01: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)673067", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 27.440, "sum" : 2000.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:01:19]POST & json_proto [19:01:19]process_json_proto [19:01:19]json parsed OK: [19:01:19]protocol is kg_v1.0 [19:01:19]action value=close_receipt [19:01:19]process_action close_receipt [19:01:19]cmd_close_receipt [19:01:19]MH_GetDate [19:01:19]Write to MH i2c: F0 00 00 C3 0C BE [19:01:19]Write i2c OK [19:01:19]MH_I2C_Read... [19:01:19]Read from MH i2c: F0 [19:01:19]MH_I2C_Read... [19:01:19]Read from MH i2c: F0 09 00 [19:01:19]MH_I2C_Read... [19:01:19]Read from MH i2c: F0 09 00 C3 0C 00 00 2B 73 66 BD 8F 7C 64 F7 [19:01:19]GetLastDocTimeStamp 1718823663 [19:01:19]current date 1718823680 [19:01:19]FM_GetShiftState [19:01:19]SAM_PROTO_GetShiftState [19:01:19]wFMCommunicate request_size=4 [19:01:19]MH_SAM_APDU [19:01:19]CAPDU: 80 13 01 00 [19:01:19]Write to MH i2c: E2 08 00 C4 0C 80 13 01 00 00 00 00 00 4D [19:01:19]Write i2c OK [19:01:19]MH_I2C_Read... [19:01:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:01:19]Read from MH i2c: E2 [19:01:19]MH_I2C_Read... [19:01:19]Read from MH i2c: E2 0E 00 [19:01:19]MH_I2C_Read... [19:01:19]Read from MH i2c: E2 0E 00 C4 0C 00 09 00 01 04 26 72 66 00 00 00 00 90 00 5B [19:01:19]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [19:01:19]wFMCommunicate OK [19:01:19]SAM_PROTO_GetShiftState done [19:01:19]FM_GetShiftState done [19:01:19]opened in 1718756868 [19:01:19]opened+sec_in_day 1718843268 [19:01:19]quantity*price = 200037 [19:01:19]sum+1 = 200039 [19:01:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.43 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 207 19.06.2024 19:01 Смена: 353 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103777 ФПД: 131605118837707 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T190120&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103777&fm=131605118837707&tin=02508201610067®Number=0000000000092785&sum=200000 [19:01:20]StoreToDocumentArchive [19:01:20]shift 353 fd 103777 [19:01:20]save to /storage/0353/doc_00103777 [19:01:20]save last doc name /storage/0353/doc_00103777 to /storage/kkm_last_doc_name [19:01:20]save OK [19:01:20]Clear old archive folders... [19:01:20]ProcessDocumentItem done err = 0, tmpTLVsize=252 [19:01:20]tlvbuf is 016B6CA0 [19:01:20]SAM_PROTO_ClearQueue [19:01:20]wFMCommunicate request_size=4 [19:01:20]MH_SAM_APDU [19:01:20]CAPDU: 80 09 00 00 [19:01:20]Write to MH i2c: E2 08 00 D1 0C 80 09 00 00 00 00 00 00 4F [19:01:20]Write i2c OK [19:01:20]MH_I2C_Read... [19:01:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:01:20]Read from MH i2c: E2 [19:01:20]MH_I2C_Read... [19:01:20]Read from MH i2c: E2 03 00 [19:01:20]MH_I2C_Read... [19:01:20]Read from MH i2c: E2 03 00 D1 0C 00 90 00 51 [19:01:20]RAPDU: 90 00 [19:01:20]wFMCommunicate OK [19:01:20]SAM_PROTO_ClearQueue done [19:01:20]KKMCreateOFDPacket [19:01:20]OFDProtocolAddRootSTLVToBuf [19:01:20]FM_MakeSignedData [19:01:20]FM_MakeSignedData [19:01:20]SAM_PROTO_SignData [19:01:20]wFMCommunicate request_size=4 [19:01:20]MH_SAM_APDU [19:01:20]CAPDU: 80 0D 01 02 [19:01:20]Write to MH i2c: E2 08 00 D2 0C 80 0D 01 02 00 00 00 00 57 [19:01:20]Write i2c OK [19:01:20]MH_I2C_Read... [19:01:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:01:20]Read from MH i2c: E2 [19:01:20]MH_I2C_Read... [19:01:20]Read from MH i2c: E2 03 00 [19:01:20]MH_I2C_Read... [19:01:20]Read from MH i2c: E2 03 00 D2 0C 00 90 00 52 [19:01:20]RAPDU: 90 00 [19:01:20]wFMCommunicate OK [19:01:20]wFMCommunicate request_size=255 [19:01:20]MH_SAM_APDU [19:01:20]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 30 6B 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 66 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CF 00 00 00 F4 03 04 00 00 2B 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 61 95 01 00 35 04 06 00 [19:01:20]Write to MH i2c: E2 02 01 D3 0C 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 30 6B 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 66 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CF 00 00 00 F4 03 04 00 00 2B 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 61 95 01 00 35 04 06 00 00 00 52 [19:01:20]Write i2c OK [19:01:20]MH_I2C_Read... [19:01:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:01:20]Read from MH i2c: E2 [19:01:20]MH_I2C_Read... [19:01:20]Read from MH i2c: E2 03 00 [19:01:20]MH_I2C_Read... [19:01:20]Read from MH i2c: E2 03 00 D3 0C 00 90 00 53 [19:01:20]RAPDU: 90 00 [19:01:20]wFMCommunicate OK [19:01:20]wFMCommunicate request_size=11 [19:01:20]MH_SAM_APDU [19:01:20]CAPDU: 80 0D 02 02 06 77 B1 B4 5B E3 CB [19:01:20]Write to MH i2c: E2 0E 00 D4 0C 80 0D 02 02 06 00 77 B1 B4 5B E3 CB 00 00 4B [19:01:20]Write i2c OK [19:01:20]MH_I2C_Read... [19:01:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:01:20]Read from MH i2c: E2 [19:01:20]MH_I2C_Read... [19:01:20]Read from MH i2c: E2 03 00 [19:01:20]MH_I2C_Read... [19:01:20]Read from MH i2c: E2 03 00 D4 0C 00 90 00 54 [19:01:20]RAPDU: 90 00 [19:01:20]wFMCommunicate OK [19:01:20]wFMCommunicate request_size=4 [19:01:20]MH_SAM_APDU [19:01:20]CAPDU: 80 0D 03 02 [19:01:20]Write to MH i2c: E2 08 00 D5 0C 80 0D 03 02 00 00 00 00 5C [19:01:20]Write i2c OK [19:01:20]MH_I2C_Read... [19:01:20]OFD Sender: No OFD packet to send [19:01:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:01:20]Read from MH i2c: E2 [19:01:20]MH_I2C_Read... [19:01:20]Read from MH i2c: E2 0B 00 [19:01:20]MH_I2C_Read... [19:01:20]Read from MH i2c: E2 0B 00 D5 0C 00 31 B3 AC 7C A6 44 E9 F6 90 00 32 [19:01:20]RAPDU: 31 B3 AC 7C A6 44 E9 F6 90 00 [19:01:20]wFMCommunicate OK [19:01:20]SAM_PROTO_SignData done [19:01:20]FM_MakeSignedData done [19:01:20]CreateOFDProtocolMessage [19:01:20]wFMCommunicate request_size=4 [19:01:20]MH_SAM_APDU [19:01:20]CAPDU: 80 11 00 00 [19:01:20]Write to MH i2c: E2 08 00 D6 0C 80 11 00 00 00 00 00 00 5C [19:01:20]Write i2c OK [19:01:20]MH_I2C_Read... [19:01:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:01:20]Read from MH i2c: E2 [19:01:20]MH_I2C_Read... [19:01:20]Read from MH i2c: E2 17 00 [19:01:20]MH_I2C_Read... [19:01:20]Read from MH i2c: E2 17 00 D6 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 AF [19:01:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [19:01:20]wFMCommunicate OK [19:01:20]CreateOFDProtocolMessage done [19:01:20]OFDSenderStorePacket 103777 [19:01:20]StoreOFDPacket docnum=103777 [19:01:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 0B C0 08 01 AB 7B 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 30 6B 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 66 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CF 00 00 00 F4 03 04 00 00 2B 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 61 95 01 00 35 04 06 00 77 B1 B4 5B E3 CB 31 B3 AC 7C A6 44 E9 F6 [19:01:20]CheckFolder [19:01:20]dirname=/storage/ofd_packets [19:01:20]CheckFolder done [19:01:20]ProducePacketName [19:01:20]name=ofd_packets/00103777 [19:01:20]NVStorageSaveData ofd_packets/00103777 [19:01:20]File name is /storage/ofd_packets/00103777 [19:01:20]Write 302 bytes [19:01:20]NVStorageSaveData done [19:01:20]OFDSenderStorePacket done [19:01:20]KKMCreateOFDPacket done [19:01:20]NVStorageSaveData kkm_last_timestamp [19:01:20]File name is /storage/kkm_last_timestamp [19:01:20]Write 4 bytes [19:01:20]NVStorageSaveData done [19:01:20]ExternCall_PrintAddStr [19:01:20]wPrintStart [19:01:20]Write to MH i2c: 01 00 00 D7 0C E3 [19:01:20]Write i2c OK [19:01:20]MH_I2C_Read... [19:01:20]Read from MH i2c: 01 [19:01:20]MH_I2C_Read... [19:01:20]Read from MH i2c: 01 07 00 [19:01:20]MH_I2C_Read... [19:01:20]Read from MH i2c: 01 07 00 D7 0C 00 00 00 00 00 FF 0F F8 [19:01:20]RasterBufferAndPrint [19:01:20]line Счет N : (1)673067 [19:01:20]line ИНН: 02508201610067 [19:01:20]line Контрольно-Кассовый Чек [19:01:20]line ПРОДАЖА [19:01:20]line ТРК (МРК, ГНК) : 21 [19:01:20]line Товар: 2710194210 [19:01:20]line ДТ(л)-К-5 [19:01:20]line 27.440 * 72.90 [19:01:20]line = 2000.38 [19:01:20]line НДС 12% НСП 1% [19:01:20]line > о реализуемом товаре [19:01:20]line ОКРУГЛЕНИЕ: -0.38 [19:01:20]line ИТОГО: 2000.00 [19:01:20]line Внесено: 2000.00 [19:01:20]line СДАЧА: 0.00 [19:01:20]line НСП 1% : 17.70 [19:01:20]line НДС 12% : 212.43 [19:01:20]line Наличными: 2000.00 [19:01:20]line Безнал.: 0.00 [19:01:20]line Место: АЗС № 120 "Партнер Нефть" [19:01:20]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [19:01:20]line СНО: Общий режим [19:01:20]line Чек 207 19.06.2024 19:01 [19:01:20]line Смена: 353 ФФД: 1.0 [19:01:20]line ЗНМ: 0300000164 [19:01:20]line РНМ: 0000000000092785 [19:01:20]line Версия ККМ: 001 [19:01:20]line ФМ: 0000000000875093 [19:01:20]line ФД: 103777 [19:01:20]line ФПД: 131605118837707 [19:01:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T190120&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103777&fm=131605118837707&tin=02508201610067®Number=0000000000092785&sum=200000 [19:01:21]OFD Sender: Processing packet 103777 [packets to send 17, broken 16] [19:01:21]ProducePacketName [19:01:21]name=ofd_packets/00103777 [19:01:21]OFD Sender: To server: pG, [19:01:21]CommunicateWithHost lk.salyk.kg:30040 [19:01:21]ConnectInit lk.salyk.kg [19:01:21]written 0, free lines is 4095 [19:01:21]Connected sock=10 [19:01:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 0B C0 08 01 AB 7B 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 30 6B 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 66 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CF 00 00 00 F4 03 04 00 00 2B 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 61 95 01 00 35 04 06 00 77 B1 B4 5B E3 CB 31 B3 AC 7C A6 44 E9 F6 [19:01: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 39 33 4F 00 00 00 75 C4 47 00 C3 8A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 61 95 01 00 F4 03 04 00 88 D1 72 66 B6 04 01 00 00 EE 8E 57 C6 8F A9 8B DA [19:01:21]CommunicateWithHost err = 0 [19:01:21]CheckOFDResponse [19:01:21]1017 (14) - 77093643461234 [19:01:21]1041 (16) - 0000000000875093 [19:01:21]1040 (4) - 103777 [19:01:21]1012 (4) - 19.06.2024 12:39 [19:01:21]1206 (1) - 0 [19:01:21]OFD Sender: Remove packet 103777 [19:01:21]ProducePacketName [19:01:21]name=ofd_packets/00103777 [19:01:21]NVStorageDeleteData [19:01:21]Write to MH i2c: 01 00 00 02 0D 0F [19:01:21]Write i2c OK [19:01:21]MH_I2C_Read... [19:01:21]Read from MH i2c: 01 [19:01:21]MH_I2C_Read... [19:01:21]Read from MH i2c: 01 07 00 [19:01:21]MH_I2C_Read... [19:01:21]Read from MH i2c: 01 07 00 02 0D 00 00 00 00 00 DA 0C FC [19:01:21]RasterBufferAndPrint [19:01:21]line [19:01:21]line [19:01:21]line [19:01:21]line [19:01:21]line [19:01:21]written 0, free lines is 3298 [19:01:21]MH_Cut [19:01:21]Write to MH i2c: D1 01 00 09 0D 01 E8 [19:01:21]Write i2c OK [19:01:21]MH_I2C_Read... [19:01:21]Read from MH i2c: D1 [19:01:21]MH_I2C_Read... [19:01:21]Read from MH i2c: D1 01 00 [19:01:21]MH_I2C_Read... [19:01:21]Read from MH i2c: D1 01 00 09 0D 00 E7 [19:01:21]Write to MH i2c: 01 00 00 0A 0D 17 [19:01:21]Write i2c OK [19:01:21]MH_I2C_Read... [19:01:22]OFD Sender: No OFD packet to send [19:01:22]*** Cut start [19:01:22]*** Partial cut [19:01:22]*** CUTSNS_PIN = 1 [19:01:22]*** CUTSNS_PIN = 0 [19:01:22]*** Brake cut motor [19:01:23]Read from MH i2c: 01 [19:01:23]MH_I2C_Read... [19:01:23]*** Stop cut motor [19:01:23]*** Cut end [19:01:23]Read from MH i2c: 01 07 00 [19:01:23]MH_I2C_Read... [19:01:23]Read from MH i2c: 01 07 00 0A 0D 00 00 00 00 00 FF 0F 2C [19:01:23]process_action close_receipt done [19:01:23]requested_data is exist [19:01:23]produce_requested_data [19:01:23]requested_item fm.sn is exist - process it [19:01:23]wFMCommunicate request_size=4 [19:01:23]MH_SAM_APDU [19:01:23]CAPDU: 80 11 00 00 [19:01:23]Write to MH i2c: E2 08 00 0B 0D 80 11 00 00 00 00 00 00 92 [19:01:23]Write i2c OK [19:01:23]MH_I2C_Read... [19:01:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:01:23]Read from MH i2c: E2 [19:01:23]MH_I2C_Read... [19:01:23]Read from MH i2c: E2 17 00 [19:01:23]MH_I2C_Read... [19:01:23]Read from MH i2c: E2 17 00 0B 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 E5 [19:01:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [19:01:23]wFMCommunicate OK [19:01:23]requested_item fd.num is exist - process it [19:01:23]SAM_PROTO_GetFieldsCounters [19:01:23]wFMCommunicate request_size=4 [19:01:23]MH_SAM_APDU [19:01:23]CAPDU: 80 13 00 00 [19:01:23]Write to MH i2c: E2 08 00 0C 0D 80 13 00 00 00 00 00 00 95 [19:01:23]Write i2c OK [19:01:23]MH_I2C_Read... [19:01:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:01:23]Read from MH i2c: E2 [19:01:23]MH_I2C_Read... [19:01:23]Read from MH i2c: E2 62 00 [19:01:23]MH_I2C_Read... [19:01:23]Read from MH i2c: E2 62 00 0C 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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 61 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 CF 00 00 00 5E 04 04 00 CF 00 00 00 57 04 04 00 D0 00 00 00 19 04 04 00 00 00 00 00 90 00 82 [19:01:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 61 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 CF 00 00 00 5E 04 04 00 CF 00 00 00 57 04 04 00 D0 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:01:23]wFMCommunicate OK [19:01:23]SAM_PROTO_GetFieldsCounters done [19:01:23]requested_item shift.num is exist - process it [19:01:23]requested_item shift.opened is exist - process it [19:01:23]req_shift_opened [19:01:23]FM_GetShiftState [19:01:23]SAM_PROTO_GetShiftState [19:01:23]wFMCommunicate request_size=4 [19:01:23]MH_SAM_APDU [19:01:23]CAPDU: 80 13 01 00 [19:01:23]Write to MH i2c: E2 08 00 0D 0D 80 13 01 00 00 00 00 00 97 [19:01:23]Write i2c OK [19:01:23]MH_I2C_Read... [19:01:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:01:23]Read from MH i2c: E2 [19:01:23]MH_I2C_Read... [19:01:23]Read from MH i2c: E2 0E 00 [19:01:23]MH_I2C_Read... [19:01:23]Read from MH i2c: E2 0E 00 0D 0D 00 09 00 01 04 26 72 66 00 00 00 00 90 00 A5 [19:01:23]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [19:01:23]wFMCommunicate OK [19:01:23]SAM_PROTO_GetShiftState done [19:01:23]FM_GetShiftState done [19:01:23]req_shift_opened done [19:01:23]requested_item shift.open_date is exist - process it [19:01:23]req_shift_open_date [19:01:23]req_shift_open_date done [19:01:23]produce_requested_data done [19:01:23]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103777,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [19:01:23]process_action_free close_receipt [19:01:23]json_value_free [19:01:23]json_value_free done [19:01:23]process_json_proto returns [19:01:23]Send response to host [19:01:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103777,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [19:01:23]free response buf [19:01:23]execute_script done [19:01:23]execute_script returns [19:01:23]free content buf [19:01:23]Sock 8.Close socket [19:01:23]Sock 8.Thread stoped [19:01:27]OFD Sender: No OFD packet to send [19:01:32]OFD Sender: No OFD packet to send [19:01:37]OFD Sender: No OFD packet to send [19:01:42]OFD Sender: No OFD packet to send [19:01:47]OFD Sender: No OFD packet to send [19:01:52]OFD Sender: No OFD packet to send [19:01:57]OFD Sender: No OFD packet to send [19:02:02]OFD Sender: No OFD packet to send [19:02:07]OFD Sender: No OFD packet to send [19:02:12]OFD Sender: No OFD packet to send [19:02:17]OFD Sender: No OFD packet to send [19:02:22]OFD Sender: No OFD packet to send [19:02:27]OFD Sender: No OFD packet to send [19:02:32]OFD Sender: No OFD packet to send [19:02:37]OFD Sender: No OFD packet to send [19:02:42]OFD Sender: No OFD packet to send [19:02:47]OFD Sender: No OFD packet to send [19:02:52]OFD Sender: No OFD packet to send [19:02:57]OFD Sender: No OFD packet to send [19:03:02]OFD Sender: No OFD packet to send [19:03:07]OFD Sender: No OFD packet to send [19:03:12]OFD Sender: No OFD packet to send [19:03:17]OFD Sender: No OFD packet to send [19:03:22]OFD Sender: No OFD packet to send [19:03:27]OFD Sender: No OFD packet to send [19:03:32]OFD Sender: No OFD packet to send [19:03:37]OFD Sender: No OFD packet to send [19:03:42]OFD Sender: No OFD packet to send [19:03:47]OFD Sender: No OFD packet to send [19:03:52]OFD Sender: No OFD packet to send [19:03:57]OFD Sender: No OFD packet to send [19:04:02]OFD Sender: No OFD packet to send [19:04:07]OFD Sender: No OFD packet to send [19:04:12]OFD Sender: No OFD packet to send [19:04:17]OFD Sender: No OFD packet to send [19:04:22]OFD Sender: No OFD packet to send [19:04:27]OFD Sender: No OFD packet to send [19:04:32]OFD Sender: No OFD packet to send [19:04:37]OFD Sender: No OFD packet to send [19:04:42]OFD Sender: No OFD packet to send [19:04:47]OFD Sender: No OFD packet to send [19:04:52]OFD Sender: No OFD packet to send [19:04:57]OFD Sender: No OFD packet to send [19:05:02]OFD Sender: No OFD packet to send [19:05:07]OFD Sender: No OFD packet to send [19:05:12]OFD Sender: No OFD packet to send [19:05:17]OFD Sender: No OFD packet to send [19:05:22]OFD Sender: No OFD packet to send [19:05:27]OFD Sender: No OFD packet to send [19:05:32]OFD Sender: No OFD packet to send [19:05:37]OFD Sender: No OFD packet to send [19:05:42]OFD Sender: No OFD packet to send [19:05:47]OFD Sender: No OFD packet to send [19:05:52]OFD Sender: No OFD packet to send [19:05:57]OFD Sender: No OFD packet to send [19:06:02]OFD Sender: No OFD packet to send [19:06:07]OFD Sender: No OFD packet to send [19:06:12]OFD Sender: No OFD packet to send [19:06:17]OFD Sender: No OFD packet to send [19:06:22]OFD Sender: No OFD packet to send [19:06:27]OFD Sender: No OFD packet to send [19:06:32]OFD Sender: No OFD packet to send [19:06:37]OFD Sender: No OFD packet to send [19:06:42]OFD Sender: No OFD packet to send [19:06:47]OFD Sender: No OFD packet to send [19:06:52]OFD Sender: No OFD packet to send [19:06:57]OFD Sender: No OFD packet to send [19:07:02]OFD Sender: No OFD packet to send [19:07:07]OFD Sender: No OFD packet to send [19:07:12]OFD Sender: No OFD packet to send [19:07:17]OFD Sender: No OFD packet to send [19:07:22]OFD Sender: No OFD packet to send [19:07:27]OFD Sender: No OFD packet to send [19:07:32]OFD Sender: No OFD packet to send [19:07:37]OFD Sender: No OFD packet to send [19:07:42]OFD Sender: No OFD packet to send [19:07:47]OFD Sender: No OFD packet to send [19:07:52]OFD Sender: No OFD packet to send [19:07:57]OFD Sender: No OFD packet to send [19:08:02]OFD Sender: No OFD packet to send [19:08:07]OFD Sender: No OFD packet to send [19:08:12]OFD Sender: No OFD packet to send [19:08:17]OFD Sender: No OFD packet to send [19:08:22]OFD Sender: No OFD packet to send [19:08:27]OFD Sender: No OFD packet to send [19:08:32]OFD Sender: No OFD packet to send [19:08:37]OFD Sender: No OFD packet to send [19:08:42]OFD Sender: No OFD packet to send [19:08:47]OFD Sender: No OFD packet to send [19:08:52]OFD Sender: No OFD packet to send [19:08:57]OFD Sender: No OFD packet to send [19:09:02]OFD Sender: No OFD packet to send [19:09:07]OFD Sender: No OFD packet to send [19:09:12]OFD Sender: No OFD packet to send [19:09:17]OFD Sender: No OFD packet to send [19:09:22]OFD Sender: No OFD packet to send [19:09:27]OFD Sender: No OFD packet to send [19:09:32]OFD Sender: No OFD packet to send [19:09:37]OFD Sender: No OFD packet to send [19:09:42]OFD Sender: No OFD packet to send [19:09:47]OFD Sender: No OFD packet to send [19:09:52]OFD Sender: No OFD packet to send [19:09:57]OFD Sender: No OFD packet to send [19:10:02]OFD Sender: No OFD packet to send [19:10:07]OFD Sender: No OFD packet to send [19:10:12]OFD Sender: No OFD packet to send [19:10:17]OFD Sender: No OFD packet to send [19:10:22]OFD Sender: No OFD packet to send [19:10:27]OFD Sender: No OFD packet to send [19:10:32]OFD Sender: No OFD packet to send [19:10:37]OFD Sender: No OFD packet to send [19:10:42]OFD Sender: No OFD packet to send [19:10:47]OFD Sender: No OFD packet to send [19:10:52]OFD Sender: No OFD packet to send [19:10:57]OFD Sender: No OFD packet to send [19:11:02]OFD Sender: No OFD packet to send [19:11:07]OFD Sender: No OFD packet to send [19:11:12]OFD Sender: No OFD packet to send [19:11:17]OFD Sender: No OFD packet to send [19:11:22]OFD Sender: No OFD packet to send [19:11:27]OFD Sender: No OFD packet to send [19:11:32]OFD Sender: No OFD packet to send [19:11:37]OFD Sender: No OFD packet to send [19:11:42]OFD Sender: No OFD packet to send [19:11:47]OFD Sender: No OFD packet to send [19:11:52]OFD Sender: No OFD packet to send [19:11:57]OFD Sender: No OFD packet to send [19:12:02]OFD Sender: No OFD packet to send [19:12:07]OFD Sender: No OFD packet to send [19:12:12]OFD Sender: No OFD packet to send [19:12:17]OFD Sender: No OFD packet to send [19:12:22]OFD Sender: No OFD packet to send [19:12:27]OFD Sender: No OFD packet to send [19:12:32]OFD Sender: No OFD packet to send [19:12:37]OFD Sender: No OFD packet to send [19:12:42]OFD Sender: No OFD packet to send [19:12:47]OFD Sender: No OFD packet to send [19:12:52]OFD Sender: No OFD packet to send [19:12:57]OFD Sender: No OFD packet to send [19:13:02]OFD Sender: No OFD packet to send [19:13:07]OFD Sender: No OFD packet to send [19:13:12]OFD Sender: No OFD packet to send [19:13:17]OFD Sender: No OFD packet to send [19:13:22]OFD Sender: No OFD packet to send [19:13:27]OFD Sender: No OFD packet to send [19:13:32]OFD Sender: No OFD packet to send [19:13:37]OFD Sender: No OFD packet to send [19:13:42]OFD Sender: No OFD packet to send [19:13:47]OFD Sender: No OFD packet to send [19:13:52]OFD Sender: No OFD packet to send [19:13:57]OFD Sender: No OFD packet to send [19:14:02]OFD Sender: No OFD packet to send [19:14:07]OFD Sender: No OFD packet to send [19:14:12]OFD Sender: No OFD packet to send [19:14:16]accept exits with 9 [19:14:16]New connection [19:14:16]New thread 3066940772 created [19:14:16]Thread 3066797412 joined [19:14:16]Waiting for new connection... [19:14:16] Sock 9.Parse request [19:14:16]Sock 9.Check first char [19:14:16]Sock 9.First char is OK [19:14:16]request: POST /json_proto HTTP/1.0 [19:14:16]Method: POST [19:14:16]URL: /json_proto [19:14:16]Method is POST - this is cgi request [19:14:16]url: /json_proto [19:14:16]query_string will be loaded in cgi processing [19:14:16]execute_cgi json_proto POST (null) [19:14:16]execute_cgi path=json_proto method=POST [19:14:16]POST find Content-Length [19:14:16]Host: 172.17.38.133:8080 [19:14:16]Content-Length: 808 [19:14:16]Content-Type: application/json [19:14:16] [19:14:16]POST finish read [19:14:16]Found Content-Length = 808 [19:14:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673068", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 20.580, "sum" : 1500.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1500.28 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:14:16]execute_script... [19:14:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673068", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 20.580, "sum" : 1500.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1500.28 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:14:16]POST & json_proto [19:14:16]process_json_proto [19:14:16]json parsed OK: [19:14:16]protocol is kg_v1.0 [19:14:16]action value=close_receipt [19:14:16]process_action close_receipt [19:14:16]cmd_close_receipt [19:14:16]MH_GetDate [19:14:16]Write to MH i2c: F0 00 00 0E 0D 0A [19:14:16]Write i2c OK [19:14:16]MH_I2C_Read... [19:14:16]Read from MH i2c: F0 [19:14:16]MH_I2C_Read... [19:14:16]Read from MH i2c: F0 09 00 [19:14:16]MH_I2C_Read... [19:14:16]Read from MH i2c: F0 09 00 0E 0D 00 09 2E 73 66 BD 8F 7C 64 4F [19:14:16]GetLastDocTimeStamp 1718823680 [19:14:16]current date 1718824457 [19:14:16]FM_GetShiftState [19:14:16]SAM_PROTO_GetShiftState [19:14:16]wFMCommunicate request_size=4 [19:14:16]MH_SAM_APDU [19:14:16]CAPDU: 80 13 01 00 [19:14:16]Write to MH i2c: E2 08 00 0F 0D 80 13 01 00 00 00 00 00 99 [19:14:16]Write i2c OK [19:14:16]MH_I2C_Read... [19:14:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:14:16]Read from MH i2c: E2 [19:14:16]MH_I2C_Read... [19:14:16]Read from MH i2c: E2 0E 00 [19:14:16]MH_I2C_Read... [19:14:16]Read from MH i2c: E2 0E 00 0F 0D 00 09 00 01 04 26 72 66 00 00 00 00 90 00 A7 [19:14:16]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [19:14:16]wFMCommunicate OK [19:14:16]SAM_PROTO_GetShiftState done [19:14:16]FM_GetShiftState done [19:14:16]opened in 1718756868 [19:14:16]opened+sec_in_day 1718843268 [19:14:16]quantity*price = 150028 [19:14:16]sum+1 = 150029 [19:14:16]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1500.28 НСП 1% : 13.28 НДС 12% : 159.32 Наличными: 0.00 Безнал.: 1500.28 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 208 19.06.2024 19:14 Смена: 353 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000875093 ФД: 103778 ФПД: 134401896200578 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T191417&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103778&fm=134401896200578&tin=02508201610067®Number=0000000000092785&sum=150028 [19:14:17]StoreToDocumentArchive [19:14:17]shift 353 fd 103778 [19:14:17]save to /storage/0353/doc_00103778 [19:14:17]save last doc name /storage/0353/doc_00103778 to /storage/kkm_last_doc_name [19:14:17]save OK [19:14:17]Clear old archive folders... [19:14:17]ProcessDocumentItem done err = 0, tmpTLVsize=252 [19:14:17]tlvbuf is 016BCF10 [19:14:17]SAM_PROTO_ClearQueue [19:14:17]wFMCommunicate request_size=4 [19:14:17]MH_SAM_APDU [19:14:17]CAPDU: 80 09 00 00 [19:14:17]Write to MH i2c: E2 08 00 1C 0D 80 09 00 00 00 00 00 00 9B [19:14:17]Write i2c OK [19:14:17]MH_I2C_Read... [19:14:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:14:17]Read from MH i2c: E2 [19:14:17]MH_I2C_Read... [19:14:17]Read from MH i2c: E2 03 00 [19:14:17]MH_I2C_Read... [19:14:17]Read from MH i2c: E2 03 00 1C 0D 00 90 00 9D [19:14:17]RAPDU: 90 00 [19:14:17]wFMCommunicate OK [19:14:17]SAM_PROTO_ClearQueue done [19:14:17]KKMCreateOFDPacket [19:14:17]OFDProtocolAddRootSTLVToBuf [19:14:17]FM_MakeSignedData [19:14:17]FM_MakeSignedData [19:14:17]SAM_PROTO_SignData [19:14:17]wFMCommunicate request_size=4 [19:14:17]MH_SAM_APDU [19:14:17]CAPDU: 80 0D 01 02 [19:14:17]Write to MH i2c: E2 08 00 1D 0D 80 0D 01 02 00 00 00 00 A3 [19:14:17]Write i2c OK [19:14:17]MH_I2C_Read... [19:14:17]OFD Sender: No OFD packet to send [19:14:17]Read from MH i2c: E2 [19:14:17]MH_I2C_Read... [19:14:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:14:17]Read from MH i2c: E2 03 00 [19:14:17]MH_I2C_Read... [19:14:17]Read from MH i2c: E2 03 00 1D 0D 00 90 00 9E [19:14:17]RAPDU: 90 00 [19:14:17]wFMCommunicate OK [19:14:17]wFMCommunicate request_size=255 [19:14:17]MH_SAM_APDU [19:14:17]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 64 50 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 0C 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0C 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3C 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 0C 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 D0 00 00 00 F4 03 04 00 09 2E 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 62 95 01 00 35 04 06 00 [19:14:17]Write to MH i2c: E2 02 01 1E 0D 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 64 50 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 0C 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0C 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3C 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 0C 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 D0 00 00 00 F4 03 04 00 09 2E 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 62 95 01 00 35 04 06 00 00 00 29 [19:14:17]Write i2c OK [19:14:17]MH_I2C_Read... [19:14:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:14:18]Read from MH i2c: E2 [19:14:18]MH_I2C_Read... [19:14:18]Read from MH i2c: E2 03 00 [19:14:18]MH_I2C_Read... [19:14:18]Read from MH i2c: E2 03 00 1E 0D 00 90 00 9F [19:14:18]RAPDU: 90 00 [19:14:18]wFMCommunicate OK [19:14:18]wFMCommunicate request_size=11 [19:14:18]MH_SAM_APDU [19:14:18]CAPDU: 80 0D 02 02 06 7A 3C E1 47 B9 82 [19:14:18]Write to MH i2c: E2 0E 00 1F 0D 80 0D 02 02 06 00 7A 3C E1 47 B9 82 00 00 CB [19:14:18]Write i2c OK [19:14:18]MH_I2C_Read... [19:14:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:14:18]Read from MH i2c: E2 [19:14:18]MH_I2C_Read... [19:14:18]Read from MH i2c: E2 03 00 [19:14:18]MH_I2C_Read... [19:14:18]Read from MH i2c: E2 03 00 1F 0D 00 90 00 A0 [19:14:18]RAPDU: 90 00 [19:14:18]wFMCommunicate OK [19:14:18]wFMCommunicate request_size=4 [19:14:18]MH_SAM_APDU [19:14:18]CAPDU: 80 0D 03 02 [19:14:18]Write to MH i2c: E2 08 00 20 0D 80 0D 03 02 00 00 00 00 A8 [19:14:18]Write i2c OK [19:14:18]MH_I2C_Read... [19:14:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:14:18]Read from MH i2c: E2 [19:14:18]MH_I2C_Read... [19:14:18]Read from MH i2c: E2 0B 00 [19:14:18]MH_I2C_Read... [19:14:18]Read from MH i2c: E2 0B 00 20 0D 00 4A CA B7 C2 F4 2A 1A 89 90 00 F7 [19:14:18]RAPDU: 4A CA B7 C2 F4 2A 1A 89 90 00 [19:14:18]wFMCommunicate OK [19:14:18]SAM_PROTO_SignData done [19:14:18]FM_MakeSignedData done [19:14:18]CreateOFDProtocolMessage [19:14:18]wFMCommunicate request_size=4 [19:14:18]MH_SAM_APDU [19:14:18]CAPDU: 80 11 00 00 [19:14:18]Write to MH i2c: E2 08 00 21 0D 80 11 00 00 00 00 00 00 A8 [19:14:18]Write i2c OK [19:14:18]MH_I2C_Read... [19:14:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:14:18]Read from MH i2c: E2 [19:14:18]MH_I2C_Read... [19:14:18]Read from MH i2c: E2 17 00 [19:14:18]MH_I2C_Read... [19:14:18]Read from MH i2c: E2 17 00 21 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 FB [19:14:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [19:14:18]wFMCommunicate OK [19:14:18]CreateOFDProtocolMessage done [19:14:18]OFDSenderStorePacket 103778 [19:14:18]StoreOFDPacket docnum=103778 [19:14:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 C9 A2 08 01 68 F8 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 64 50 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 0C 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0C 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3C 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 0C 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 D0 00 00 00 F4 03 04 00 09 2E 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 62 95 01 00 35 04 06 00 7A 3C E1 47 B9 82 4A CA B7 C2 F4 2A 1A 89 [19:14:18]CheckFolder [19:14:18]dirname=/storage/ofd_packets [19:14:18]CheckFolder done [19:14:18]ProducePacketName [19:14:18]name=ofd_packets/00103778 [19:14:18]NVStorageSaveData ofd_packets/00103778 [19:14:18]File name is /storage/ofd_packets/00103778 [19:14:18]Write 302 bytes [19:14:18]NVStorageSaveData done [19:14:18]OFDSenderStorePacket done [19:14:18]KKMCreateOFDPacket done [19:14:18]NVStorageSaveData kkm_last_timestamp [19:14:18]File name is /storage/kkm_last_timestamp [19:14:18]Write 4 bytes [19:14:18]NVStorageSaveData done [19:14:18]ExternCall_PrintAddStr [19:14:18]wPrintStart [19:14:18]Write to MH i2c: 01 00 00 22 0D 2F [19:14:18]Write i2c OK [19:14:18]MH_I2C_Read... [19:14:18]Read from MH i2c: 01 [19:14:18]MH_I2C_Read... [19:14:18]Read from MH i2c: 01 07 00 [19:14:18]MH_I2C_Read... [19:14:18]Read from MH i2c: 01 07 00 22 0D 00 00 00 00 00 FF 0F 44 [19:14:18]RasterBufferAndPrint [19:14:18]line Счет N : (1)673068 [19:14:18]line ИНН: 02508201610067 [19:14:18]line Контрольно-Кассовый Чек [19:14:18]line ПРОДАЖА [19:14:18]line ТРК (МРК, ГНК) : 11 [19:14:18]line Товар: 2710194210 [19:14:18]line ДТ(л)-К-5 [19:14:18]line 20.580 * 72.90 [19:14:18]line = 1500.28 [19:14:18]line НДС 12% НСП 1% [19:14:18]line > о реализуемом товаре [19:14:18]line ИТОГО: 1500.28 [19:14:18]line НСП 1% : 13.28 [19:14:18]line НДС 12% : 159.32 [19:14:18]line Наличными: 0.00 [19:14:18]line Безнал.: 1500.28 [19:14:18]line Место: АЗС № 120 "Партнер Нефть" [19:14:18]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [19:14:18]line СНО: Общий режим [19:14:18]line Чек 208 19.06.2024 19:14 [19:14:18]line Смена: 353 ФФД: 1.0 [19:14:18]line ЗНМ: 0300000164 [19:14:18]line РНМ: 0000000000092785 [19:14:18]line Версия ККМ: 001 [19:14:18]line Платежная система: O! деньги [19:14:18]line ФМ: 0000000000875093 [19:14:18]line ФД: 103778 [19:14:18]line ФПД: 134401896200578 [19:14:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T191417&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103778&fm=134401896200578&tin=02508201610067®Number=0000000000092785&sum=150028 [19:14:18]OFD Sender: Processing packet 103778 [packets to send 17, broken 16] [19:14:18]ProducePacketName [19:14:18]name=ofd_packets/00103778 [19:14:18]OFD Sender: To server: pG, [19:14:18]CommunicateWithHost lk.salyk.kg:30040 [19:14:18]ConnectInit lk.salyk.kg [19:14:18]written 0, free lines is 4095 [19:14:18]Connected sock=10 [19:14:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 C9 A2 08 01 68 F8 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 64 50 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 0C 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0C 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3C 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 0C 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 D0 00 00 00 F4 03 04 00 09 2E 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 62 95 01 00 35 04 06 00 7A 3C E1 47 B9 82 4A CA B7 C2 F4 2A 1A 89 [19:14:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 52 4A 47 00 9B 8B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 62 95 01 00 F4 03 04 00 91 D4 72 66 B6 04 01 00 00 2C 27 02 C6 67 CB 08 3D [19:14:18]CommunicateWithHost err = 0 [19:14:18]CheckOFDResponse [19:14:18]1017 (14) - 77093643461234 [19:14:18]1041 (16) - 0000000000875093 [19:14:18]1040 (4) - 103778 [19:14:18]1012 (4) - 19.06.2024 12:52 [19:14:18]1206 (1) - 0 [19:14:18]OFD Sender: Remove packet 103778 [19:14:18]ProducePacketName [19:14:18]name=ofd_packets/00103778 [19:14:18]NVStorageDeleteData [19:14:19]Write to MH i2c: 01 00 00 4C 0D 59 [19:14:19]Write i2c OK [19:14:19]MH_I2C_Read... [19:14:19]Read from MH i2c: 01 [19:14:19]MH_I2C_Read... [19:14:19]Read from MH i2c: 01 07 00 [19:14:19]MH_I2C_Read... [19:14:19]Read from MH i2c: 01 07 00 4C 0D 00 00 00 00 00 E7 0C 53 [19:14:19]RasterBufferAndPrint [19:14:19]line [19:14:19]line [19:14:19]line [19:14:19]line [19:14:19]line [19:14:19]written 0, free lines is 3309 [19:14:19]MH_Cut [19:14:19]Write to MH i2c: D1 01 00 53 0D 01 32 [19:14:19]Write i2c OK [19:14:19]MH_I2C_Read... [19:14:19]Read from MH i2c: D1 [19:14:19]MH_I2C_Read... [19:14:19]Read from MH i2c: D1 01 00 [19:14:19]MH_I2C_Read... [19:14:19]Read from MH i2c: D1 01 00 53 0D 00 31 [19:14:19]Write to MH i2c: 01 00 00 54 0D 61 [19:14:19]Write i2c OK [19:14:19]MH_I2C_Read... [19:14:19]OFD Sender: No OFD packet to send [19:14:19]*** Cut start [19:14:19]*** Partial cut [19:14:19]*** CUTSNS_PIN = 1 [19:14:19]*** CUTSNS_PIN = 0 [19:14:20]*** Brake cut motor [19:14:20]Read from MH i2c: 01 [19:14:20]MH_I2C_Read... [19:14:20]*** Stop cut motor [19:14:20]*** Cut end [19:14:20]Read from MH i2c: 01 07 00 [19:14:20]MH_I2C_Read... [19:14:20]Read from MH i2c: 01 07 00 54 0D 00 00 00 00 00 FF 0F 76 [19:14:20]process_action close_receipt done [19:14:20]requested_data is exist [19:14:20]produce_requested_data [19:14:20]requested_item fm.sn is exist - process it [19:14:20]wFMCommunicate request_size=4 [19:14:20]MH_SAM_APDU [19:14:20]CAPDU: 80 11 00 00 [19:14:20]Write to MH i2c: E2 08 00 55 0D 80 11 00 00 00 00 00 00 DC [19:14:20]Write i2c OK [19:14:20]MH_I2C_Read... [19:14:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:14:20]Read from MH i2c: E2 [19:14:20]MH_I2C_Read... [19:14:20]Read from MH i2c: E2 17 00 [19:14:20]MH_I2C_Read... [19:14:20]Read from MH i2c: E2 17 00 55 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 2F [19:14:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [19:14:20]wFMCommunicate OK [19:14:20]requested_item fd.num is exist - process it [19:14:20]SAM_PROTO_GetFieldsCounters [19:14:20]wFMCommunicate request_size=4 [19:14:20]MH_SAM_APDU [19:14:20]CAPDU: 80 13 00 00 [19:14:20]Write to MH i2c: E2 08 00 56 0D 80 13 00 00 00 00 00 00 DF [19:14:20]Write i2c OK [19:14:20]MH_I2C_Read... [19:14:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:14:20]Read from MH i2c: E2 [19:14:20]MH_I2C_Read... [19:14:20]Read from MH i2c: E2 62 00 [19:14:20]MH_I2C_Read... [19:14:20]Read from MH i2c: E2 62 00 56 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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 62 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 D0 00 00 00 5E 04 04 00 D0 00 00 00 57 04 04 00 D1 00 00 00 19 04 04 00 00 00 00 00 90 00 D0 [19:14:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 62 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 D0 00 00 00 5E 04 04 00 D0 00 00 00 57 04 04 00 D1 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:14:20]wFMCommunicate OK [19:14:20]SAM_PROTO_GetFieldsCounters done [19:14:20]requested_item shift.num is exist - process it [19:14:20]requested_item shift.opened is exist - process it [19:14:20]req_shift_opened [19:14:20]FM_GetShiftState [19:14:20]SAM_PROTO_GetShiftState [19:14:20]wFMCommunicate request_size=4 [19:14:20]MH_SAM_APDU [19:14:20]CAPDU: 80 13 01 00 [19:14:20]Write to MH i2c: E2 08 00 57 0D 80 13 01 00 00 00 00 00 E1 [19:14:20]Write i2c OK [19:14:20]MH_I2C_Read... [19:14:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:14:20]Read from MH i2c: E2 [19:14:20]MH_I2C_Read... [19:14:20]Read from MH i2c: E2 0E 00 [19:14:20]MH_I2C_Read... [19:14:20]Read from MH i2c: E2 0E 00 57 0D 00 09 00 01 04 26 72 66 00 00 00 00 90 00 EF [19:14:20]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [19:14:20]wFMCommunicate OK [19:14:20]SAM_PROTO_GetShiftState done [19:14:20]FM_GetShiftState done [19:14:20]req_shift_opened done [19:14:20]requested_item shift.open_date is exist - process it [19:14:20]req_shift_open_date [19:14:20]req_shift_open_date done [19:14:20]produce_requested_data done [19:14:20]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103778,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [19:14:20]process_action_free close_receipt [19:14:20]json_value_free [19:14:20]json_value_free done [19:14:20]process_json_proto returns [19:14:20]Send response to host [19:14:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103778,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [19:14:20]free response buf [19:14:20]execute_script done [19:14:20]execute_script returns [19:14:20]free content buf [19:14:20]Sock 9.Close socket [19:14:20]Sock 9.Thread stoped [19:14:24]OFD Sender: No OFD packet to send [19:14:29]OFD Sender: No OFD packet to send [19:14:34]OFD Sender: No OFD packet to send [19:14:39]OFD Sender: No OFD packet to send [19:14:44]OFD Sender: No OFD packet to send [19:14:49]OFD Sender: No OFD packet to send [19:14:54]OFD Sender: No OFD packet to send [19:14:59]OFD Sender: No OFD packet to send [19:15:04]OFD Sender: No OFD packet to send [19:15:09]OFD Sender: No OFD packet to send [19:15:14]OFD Sender: No OFD packet to send [19:15:19]OFD Sender: No OFD packet to send [19:15:24]OFD Sender: No OFD packet to send [19:15:29]OFD Sender: No OFD packet to send [19:15:34]OFD Sender: No OFD packet to send [19:15:39]OFD Sender: No OFD packet to send [19:15:44]OFD Sender: No OFD packet to send [19:15:49]OFD Sender: No OFD packet to send [19:15:54]OFD Sender: No OFD packet to send [19:15:59]OFD Sender: No OFD packet to send [19:16:04]OFD Sender: No OFD packet to send [19:16:09]OFD Sender: No OFD packet to send [19:16:14]OFD Sender: No OFD packet to send [19:16:19]OFD Sender: No OFD packet to send [19:16:24]OFD Sender: No OFD packet to send [19:16:29]OFD Sender: No OFD packet to send [19:16:34]OFD Sender: No OFD packet to send [19:16:39]OFD Sender: No OFD packet to send [19:16:44]OFD Sender: No OFD packet to send [19:16:49]OFD Sender: No OFD packet to send [19:16:54]OFD Sender: No OFD packet to send [19:16:59]OFD Sender: No OFD packet to send [19:17:04]OFD Sender: No OFD packet to send [19:17:09]OFD Sender: No OFD packet to send [19:17:12]accept exits with 8 [19:17:12]New connection [19:17:12]New thread 3066797412 created [19:17:12]Thread 3066940772 joined [19:17:12]Waiting for new connection... [19:17:12] Sock 8.Parse request [19:17:12]Sock 8.Check first char [19:17:12]Sock 8.First char is OK [19:17:12]request: POST /json_proto HTTP/1.0 [19:17:12]Method: POST [19:17:12]URL: /json_proto [19:17:12]Method is POST - this is cgi request [19:17:12]url: /json_proto [19:17:12]query_string will be loaded in cgi processing [19:17:12]execute_cgi json_proto POST (null) [19:17:12]execute_cgi path=json_proto method=POST [19:17:12]POST find Content-Length [19:17:12]Host: 172.17.38.133:8080 [19:17:12]Content-Length: 687 [19:17:12]Content-Type: application/json [19:17:12] [19:17:12]POST finish read [19:17:12]Found Content-Length = 687 [19:17:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673069", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 27.440, "sum" : 2000.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:17:12]execute_script... [19:17: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)673069", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 27.440, "sum" : 2000.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:17:12]POST & json_proto [19:17:12]process_json_proto [19:17:12]json parsed OK: [19:17:12]protocol is kg_v1.0 [19:17:12]action value=close_receipt [19:17:12]process_action close_receipt [19:17:12]cmd_close_receipt [19:17:12]MH_GetDate [19:17:12]Write to MH i2c: F0 00 00 58 0D 54 [19:17:12]Write i2c OK [19:17:12]MH_I2C_Read... [19:17:12]Read from MH i2c: F0 [19:17:12]MH_I2C_Read... [19:17:12]Read from MH i2c: F0 09 00 [19:17:12]MH_I2C_Read... [19:17:12]Read from MH i2c: F0 09 00 58 0D 00 B9 2E 73 66 BD 8F 7C 64 49 [19:17:12]GetLastDocTimeStamp 1718824457 [19:17:12]current date 1718824633 [19:17:12]FM_GetShiftState [19:17:12]SAM_PROTO_GetShiftState [19:17:12]wFMCommunicate request_size=4 [19:17:12]MH_SAM_APDU [19:17:12]CAPDU: 80 13 01 00 [19:17:12]Write to MH i2c: E2 08 00 59 0D 80 13 01 00 00 00 00 00 E3 [19:17:12]Write i2c OK [19:17:12]MH_I2C_Read... [19:17:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:17:12]Read from MH i2c: E2 [19:17:12]MH_I2C_Read... [19:17:12]Read from MH i2c: E2 0E 00 [19:17:12]MH_I2C_Read... [19:17:12]Read from MH i2c: E2 0E 00 59 0D 00 09 00 01 04 26 72 66 00 00 00 00 90 00 F1 [19:17:12]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [19:17:12]wFMCommunicate OK [19:17:12]SAM_PROTO_GetShiftState done [19:17:12]FM_GetShiftState done [19:17:12]opened in 1718756868 [19:17:12]opened+sec_in_day 1718843268 [19:17:12]quantity*price = 200037 [19:17:12]sum+1 = 200039 [19:17:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.43 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 209 19.06.2024 19:17 Смена: 353 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103779 ФПД: 63429890736694 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T191713&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103779&fm=63429890736694&tin=02508201610067®Number=0000000000092785&sum=200000 [19:17:13]StoreToDocumentArchive [19:17:13]shift 353 fd 103779 [19:17:13]save to /storage/0353/doc_00103779 [19:17:13]save last doc name /storage/0353/doc_00103779 to /storage/kkm_last_doc_name [19:17:13]save OK [19:17:13]Clear old archive folders... [19:17:13]ProcessDocumentItem done err = 0, tmpTLVsize=252 [19:17:13]tlvbuf is 016D2260 [19:17:13]SAM_PROTO_ClearQueue [19:17:13]wFMCommunicate request_size=4 [19:17:13]MH_SAM_APDU [19:17:13]CAPDU: 80 09 00 00 [19:17:13]Write to MH i2c: E2 08 00 66 0D 80 09 00 00 00 00 00 00 E5 [19:17:13]Write i2c OK [19:17:13]MH_I2C_Read... [19:17:13]Read from MH i2c: E2 [19:17:13]MH_I2C_Read... [19:17:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:17:13]Read from MH i2c: E2 03 00 [19:17:13]MH_I2C_Read... [19:17:13]Read from MH i2c: E2 03 00 66 0D 00 90 00 E7 [19:17:13]RAPDU: 90 00 [19:17:13]wFMCommunicate OK [19:17:13]SAM_PROTO_ClearQueue done [19:17:13]KKMCreateOFDPacket [19:17:13]OFDProtocolAddRootSTLVToBuf [19:17:13]FM_MakeSignedData [19:17:13]FM_MakeSignedData [19:17:13]SAM_PROTO_SignData [19:17:13]wFMCommunicate request_size=4 [19:17:13]MH_SAM_APDU [19:17:13]CAPDU: 80 0D 01 02 [19:17:13]Write to MH i2c: E2 08 00 67 0D 80 0D 01 02 00 00 00 00 ED [19:17:13]Write i2c OK [19:17:13]MH_I2C_Read... [19:17:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:17:14]Read from MH i2c: E2 [19:17:14]MH_I2C_Read... [19:17:14]Read from MH i2c: E2 03 00 [19:17:14]MH_I2C_Read... [19:17:14]Read from MH i2c: E2 03 00 67 0D 00 90 00 E8 [19:17:14]RAPDU: 90 00 [19:17:14]wFMCommunicate OK [19:17:14]wFMCommunicate request_size=255 [19:17:14]MH_SAM_APDU [19:17:14]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 30 6B 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 66 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D1 00 00 00 F4 03 04 00 B9 2E 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 63 95 01 00 35 04 06 00 [19:17:14]Write to MH i2c: E2 02 01 68 0D 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 30 6B 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 66 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D1 00 00 00 F4 03 04 00 B9 2E 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 63 95 01 00 35 04 06 00 00 00 A8 [19:17:14]Write i2c OK [19:17:14]MH_I2C_Read... [19:17:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:17:14]Read from MH i2c: E2 [19:17:14]MH_I2C_Read... [19:17:14]Read from MH i2c: E2 03 00 [19:17:14]MH_I2C_Read... [19:17:14]Read from MH i2c: E2 03 00 68 0D 00 90 00 E9 [19:17:14]RAPDU: 90 00 [19:17:14]wFMCommunicate OK [19:17:14]wFMCommunicate request_size=11 [19:17:14]MH_SAM_APDU [19:17:14]CAPDU: 80 0D 02 02 06 39 B0 6C 1B 02 36 [19:17:14]Write to MH i2c: E2 0E 00 69 0D 80 0D 02 02 06 00 39 B0 6C 1B 02 36 00 00 A4 [19:17:14]Write i2c OK [19:17:14]MH_I2C_Read... [19:17:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:17:14]Read from MH i2c: E2 [19:17:14]MH_I2C_Read... [19:17:14]Read from MH i2c: E2 03 00 [19:17:14]MH_I2C_Read... [19:17:14]Read from MH i2c: E2 03 00 69 0D 00 90 00 EA [19:17:14]RAPDU: 90 00 [19:17:14]wFMCommunicate OK [19:17:14]wFMCommunicate request_size=4 [19:17:14]MH_SAM_APDU [19:17:14]CAPDU: 80 0D 03 02 [19:17:14]Write to MH i2c: E2 08 00 6A 0D 80 0D 03 02 00 00 00 00 F2 [19:17:14]Write i2c OK [19:17:14]MH_I2C_Read... [19:17:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:17:14]Read from MH i2c: E2 [19:17:14]MH_I2C_Read... [19:17:14]Read from MH i2c: E2 0B 00 [19:17:14]MH_I2C_Read... [19:17:14]Read from MH i2c: E2 0B 00 6A 0D 00 15 33 D7 97 37 2C 75 A3 90 00 24 [19:17:14]RAPDU: 15 33 D7 97 37 2C 75 A3 90 00 [19:17:14]wFMCommunicate OK [19:17:14]SAM_PROTO_SignData done [19:17:14]FM_MakeSignedData done [19:17:14]CreateOFDProtocolMessage [19:17:14]wFMCommunicate request_size=4 [19:17:14]MH_SAM_APDU [19:17:14]CAPDU: 80 11 00 00 [19:17:14]Write to MH i2c: E2 08 00 6B 0D 80 11 00 00 00 00 00 00 F2 [19:17:14]Write i2c OK [19:17:14]MH_I2C_Read... [19:17:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:17:14]Read from MH i2c: E2 [19:17:14]MH_I2C_Read... [19:17:14]Read from MH i2c: E2 17 00 [19:17:14]MH_I2C_Read... [19:17:14]Read from MH i2c: E2 17 00 6B 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 45 [19:17:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [19:17:14]wFMCommunicate OK [19:17:14]CreateOFDProtocolMessage done [19:17:14]OFDSenderStorePacket 103779 [19:17:14]StoreOFDPacket docnum=103779 [19:17:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 C9 F2 08 01 52 6C 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 30 6B 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 66 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D1 00 00 00 F4 03 04 00 B9 2E 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 63 95 01 00 35 04 06 00 39 B0 6C 1B 02 36 15 33 D7 97 37 2C 75 A3 [19:17:14]CheckFolder [19:17:14]dirname=/storage/ofd_packets [19:17:14]CheckFolder done [19:17:14]ProducePacketName [19:17:14]name=ofd_packets/00103779 [19:17:14]NVStorageSaveData ofd_packets/00103779 [19:17:14]File name is /storage/ofd_packets/00103779 [19:17:14]Write 302 bytes [19:17:14]NVStorageSaveData done [19:17:14]OFDSenderStorePacket done [19:17:14]KKMCreateOFDPacket done [19:17:14]NVStorageSaveData kkm_last_timestamp [19:17:14]File name is /storage/kkm_last_timestamp [19:17:14]Write 4 bytes [19:17:14]NVStorageSaveData done [19:17:14]ExternCall_PrintAddStr [19:17:14]wPrintStart [19:17:14]Write to MH i2c: 01 00 00 6C 0D 79 [19:17:14]Write i2c OK [19:17:14]MH_I2C_Read... [19:17:14]Read from MH i2c: 01 [19:17:14]MH_I2C_Read... [19:17:14]Read from MH i2c: 01 07 00 [19:17:14]MH_I2C_Read... [19:17:14]Read from MH i2c: 01 07 00 6C 0D 00 00 00 00 00 FF 0F 8E [19:17:14]RasterBufferAndPrint [19:17:14]line Счет N : (1)673069 [19:17:14]line ИНН: 02508201610067 [19:17:14]line Контрольно-Кассовый Чек [19:17:14]line ПРОДАЖА [19:17:14]line ТРК (МРК, ГНК) : 11 [19:17:14]line Товар: 2710194210 [19:17:14]line ДТ(л)-К-5 [19:17:14]line 27.440 * 72.90 [19:17:14]line = 2000.38 [19:17:14]line НДС 12% НСП 1% [19:17:14]line > о реализуемом товаре [19:17:14]line ОКРУГЛЕНИЕ: -0.38 [19:17:14]line ИТОГО: 2000.00 [19:17:14]line Внесено: 2000.00 [19:17:14]line СДАЧА: 0.00 [19:17:14]line НСП 1% : 17.70 [19:17:14]line НДС 12% : 212.43 [19:17:14]line Наличными: 2000.00 [19:17:14]line Безнал.: 0.00 [19:17:14]line Место: АЗС № 120 "Партнер Нефть" [19:17:14]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [19:17:14]line СНО: Общий режим [19:17:14]line Чек 209 19.06.2024 19:17 [19:17:14]line Смена: 353 ФФД: 1.0 [19:17:14]line ЗНМ: 0300000164 [19:17:14]line РНМ: 0000000000092785 [19:17:14]line Версия ККМ: 001 [19:17:14]line ФМ: 0000000000875093 [19:17:14]line ФД: 103779 [19:17:14]line ФПД: 63429890736694 [19:17:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T191713&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103779&fm=63429890736694&tin=02508201610067®Number=0000000000092785&sum=200000 [19:17:14]OFD Sender: Processing packet 103779 [packets to send 17, broken 16] [19:17:14]ProducePacketName [19:17:14]name=ofd_packets/00103779 [19:17:14]OFD Sender: To server: pG, [19:17:14]CommunicateWithHost lk.salyk.kg:30040 [19:17:14]ConnectInit lk.salyk.kg [19:17:14]written 0, free lines is 4095 [19:17:14]Connected sock=10 [19:17: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 39 33 10 01 00 00 C9 F2 08 01 52 6C 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 30 6B 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 66 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D1 00 00 00 F4 03 04 00 B9 2E 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 63 95 01 00 35 04 06 00 39 B0 6C 1B 02 36 15 33 D7 97 37 2C 75 A3 [19:17: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 39 33 4F 00 00 00 46 43 47 00 A2 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 39 33 10 04 04 00 63 95 01 00 F4 03 04 00 41 D5 72 66 B6 04 01 00 00 70 98 3C 4B 30 F5 D9 9C [19:17:15]CommunicateWithHost err = 0 [19:17:15]CheckOFDResponse [19:17:15]1017 (14) - 77093643461234 [19:17:15]1041 (16) - 0000000000875093 [19:17:15]1040 (4) - 103779 [19:17:15]1012 (4) - 19.06.2024 12:55 [19:17:15]1206 (1) - 0 [19:17:15]OFD Sender: Remove packet 103779 [19:17:15]ProducePacketName [19:17:15]name=ofd_packets/00103779 [19:17:15]NVStorageDeleteData [19:17:15]Write to MH i2c: 01 00 00 97 0D A4 [19:17:15]Write i2c OK [19:17:15]MH_I2C_Read... [19:17:15]Read from MH i2c: 01 [19:17:15]MH_I2C_Read... [19:17:15]Read from MH i2c: 01 07 00 [19:17:15]MH_I2C_Read... [19:17:15]Read from MH i2c: 01 07 00 97 0D 00 00 00 00 00 DA 0C 91 [19:17:15]RasterBufferAndPrint [19:17:15]line [19:17:15]line [19:17:15]line [19:17:15]line [19:17:15]line [19:17:15]written 0, free lines is 3297 [19:17:15]MH_Cut [19:17:15]Write to MH i2c: D1 01 00 9E 0D 01 7D [19:17:15]Write i2c OK [19:17:15]MH_I2C_Read... [19:17:15]Read from MH i2c: D1 [19:17:15]MH_I2C_Read... [19:17:15]Read from MH i2c: D1 01 00 [19:17:15]MH_I2C_Read... [19:17:15]Read from MH i2c: D1 01 00 9E 0D 00 7C [19:17:15]Write to MH i2c: 01 00 00 9F 0D AC [19:17:15]Write i2c OK [19:17:15]MH_I2C_Read... [19:17:15]OFD Sender: No OFD packet to send [19:17:15]*** Cut start [19:17:15]*** Partial cut [19:17:15]*** CUTSNS_PIN = 1 [19:17:16]*** CUTSNS_PIN = 0 [19:17:16]*** Brake cut motor [19:17:16]Read from MH i2c: 01 [19:17:16]MH_I2C_Read... [19:17:16]*** Stop cut motor [19:17:16]*** Cut end [19:17:16]Read from MH i2c: 01 07 00 [19:17:16]MH_I2C_Read... [19:17:16]Read from MH i2c: 01 07 00 9F 0D 00 00 00 00 00 FF 0F C1 [19:17:16]process_action close_receipt done [19:17:16]requested_data is exist [19:17:16]produce_requested_data [19:17:16]requested_item fm.sn is exist - process it [19:17:16]wFMCommunicate request_size=4 [19:17:16]MH_SAM_APDU [19:17:16]CAPDU: 80 11 00 00 [19:17:16]Write to MH i2c: E2 08 00 A0 0D 80 11 00 00 00 00 00 00 27 [19:17:16]Write i2c OK [19:17:16]MH_I2C_Read... [19:17:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:17:16]Read from MH i2c: E2 [19:17:16]MH_I2C_Read... [19:17:16]Read from MH i2c: E2 17 00 [19:17:16]MH_I2C_Read... [19:17:16]Read from MH i2c: E2 17 00 A0 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 7A [19:17:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [19:17:16]wFMCommunicate OK [19:17:16]requested_item fd.num is exist - process it [19:17:16]SAM_PROTO_GetFieldsCounters [19:17:16]wFMCommunicate request_size=4 [19:17:16]MH_SAM_APDU [19:17:16]CAPDU: 80 13 00 00 [19:17:16]Write to MH i2c: E2 08 00 A1 0D 80 13 00 00 00 00 00 00 2A [19:17:16]Write i2c OK [19:17:16]MH_I2C_Read... [19:17:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:17:16]Read from MH i2c: E2 [19:17:16]MH_I2C_Read... [19:17:16]Read from MH i2c: E2 62 00 [19:17:16]MH_I2C_Read... [19:17:16]Read from MH i2c: E2 62 00 A1 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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 63 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 D1 00 00 00 5E 04 04 00 D1 00 00 00 57 04 04 00 D2 00 00 00 19 04 04 00 00 00 00 00 90 00 1F [19:17: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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 63 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 D1 00 00 00 5E 04 04 00 D1 00 00 00 57 04 04 00 D2 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:17:16]wFMCommunicate OK [19:17:16]SAM_PROTO_GetFieldsCounters done [19:17:16]requested_item shift.num is exist - process it [19:17:16]requested_item shift.opened is exist - process it [19:17:16]req_shift_opened [19:17:16]FM_GetShiftState [19:17:16]SAM_PROTO_GetShiftState [19:17:16]wFMCommunicate request_size=4 [19:17:16]MH_SAM_APDU [19:17:16]CAPDU: 80 13 01 00 [19:17:16]Write to MH i2c: E2 08 00 A2 0D 80 13 01 00 00 00 00 00 2C [19:17:16]Write i2c OK [19:17:16]MH_I2C_Read... [19:17:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:17:16]Read from MH i2c: E2 [19:17:16]MH_I2C_Read... [19:17:16]Read from MH i2c: E2 0E 00 [19:17:16]MH_I2C_Read... [19:17:16]Read from MH i2c: E2 0E 00 A2 0D 00 09 00 01 04 26 72 66 00 00 00 00 90 00 3A [19:17:16]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [19:17:16]wFMCommunicate OK [19:17:16]SAM_PROTO_GetShiftState done [19:17:16]FM_GetShiftState done [19:17:16]req_shift_opened done [19:17:16]requested_item shift.open_date is exist - process it [19:17:16]req_shift_open_date [19:17:16]req_shift_open_date done [19:17:16]produce_requested_data done [19:17:16]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103779,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [19:17:16]process_action_free close_receipt [19:17:16]json_value_free [19:17:16]json_value_free done [19:17:16]process_json_proto returns [19:17:16]Send response to host [19:17:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103779,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [19:17:16]free response buf [19:17:16]execute_script done [19:17:16]execute_script returns [19:17:16]free content buf [19:17:16]Sock 8.Close socket [19:17:16]Sock 8.Thread stoped [19:17:20]OFD Sender: No OFD packet to send [19:17:25]OFD Sender: No OFD packet to send [19:17:30]OFD Sender: No OFD packet to send [19:17:35]OFD Sender: No OFD packet to send [19:17:40]OFD Sender: No OFD packet to send [19:17:45]OFD Sender: No OFD packet to send [19:17:50]OFD Sender: No OFD packet to send [19:17:55]OFD Sender: No OFD packet to send [19:18:00]OFD Sender: No OFD packet to send [19:18:05]OFD Sender: No OFD packet to send [19:18:10]OFD Sender: No OFD packet to send [19:18:15]OFD Sender: No OFD packet to send [19:18:20]OFD Sender: No OFD packet to send [19:18:25]OFD Sender: No OFD packet to send [19:18:30]OFD Sender: No OFD packet to send [19:18:35]OFD Sender: No OFD packet to send [19:18:40]OFD Sender: No OFD packet to send [19:18:45]OFD Sender: No OFD packet to send [19:18:50]OFD Sender: No OFD packet to send [19:18:55]OFD Sender: No OFD packet to send [19:19:00]OFD Sender: No OFD packet to send [19:19:05]OFD Sender: No OFD packet to send [19:19:10]OFD Sender: No OFD packet to send [19:19:15]OFD Sender: No OFD packet to send [19:19:20]OFD Sender: No OFD packet to send [19:19:25]OFD Sender: No OFD packet to send [19:19:30]OFD Sender: No OFD packet to send [19:19:35]OFD Sender: No OFD packet to send [19:19:40]OFD Sender: No OFD packet to send [19:19:45]OFD Sender: No OFD packet to send [19:19:50]OFD Sender: No OFD packet to send [19:19:55]OFD Sender: No OFD packet to send [19:20:00]OFD Sender: No OFD packet to send [19:20:05]OFD Sender: No OFD packet to send [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:05]OFD Sender: No OFD packet to send [19:24:10]OFD Sender: No OFD packet to send [19:24:15]OFD Sender: No OFD packet to send [19:24:21]OFD Sender: No OFD packet to send [19:24:26]OFD Sender: No OFD packet to send [19:24:31]OFD Sender: No OFD packet to send [19:24:36]OFD Sender: No OFD packet to send [19:24:41]OFD Sender: No OFD packet to send [19:24:46]OFD Sender: No OFD packet to send [19:24:51]OFD Sender: No OFD packet to send [19:24:56]OFD Sender: No OFD packet to send [19:25:01]OFD Sender: No OFD packet to send [19:25:06]OFD Sender: No OFD packet to send [19:25:11]OFD Sender: No OFD packet to send [19:25:16]OFD Sender: No OFD packet to send [19:25:17]accept exits with 9 [19:25:17]New connection [19:25:17]New thread 3066940772 created [19:25:17]Thread 3066797412 joined [19:25:17]Waiting for new connection... [19:25:17] Sock 9.Parse request [19:25:17]Sock 9.Check first char [19:25:17]Sock 9.First char is OK [19:25:17]request: POST /json_proto HTTP/1.0 [19:25:17]Method: POST [19:25:17]URL: /json_proto [19:25:17]Method is POST - this is cgi request [19:25:17]url: /json_proto [19:25:17]query_string will be loaded in cgi processing [19:25:17]execute_cgi json_proto POST (null) [19:25:17]execute_cgi path=json_proto method=POST [19:25:17]POST find Content-Length [19:25:17]Host: 172.17.38.133:8080 [19:25:17]Content-Length: 1207 [19:25:17]Content-Type: application/json [19:25:17] [19:25:17]POST finish read [19:25:17]Found Content-Length = 1207 [19:25:17]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 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. \u000A\u0421\u0447\u0435\u0442 N : (1)673070\u000A19.06.2024 19:02\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 42\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 30.000 x 66.40\u000A\u0418\u0422\u041E\u0413: 1992.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\u000A42629\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:25:17]execute_script... [19:25:17]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 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. \u000A\u0421\u0447\u0435\u0442 N : (1)673070\u000A19.06.2024 19:02\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 42\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 30.000 x 66.40\u000A\u0418\u0422\u041E\u0413: 1992.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\u000A42629\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:25:17]POST & json_proto [19:25:17]process_json_proto [19:25:17]json parsed OK: [19:25:17]protocol is kg_v1.0 [19:25:17]action value=print_text [19:25:17]process_action print_text [19:25:17]cmd_print_text [19:25:17]ExternCall_PrintAddStr [19:25:17]wPrintStart [19:25:17]Write to MH i2c: 01 00 00 A3 0D B0 [19:25:17]Write i2c OK [19:25:17]MH_I2C_Read... [19:25:17]Read from MH i2c: 01 [19:25:17]MH_I2C_Read... [19:25:17]Read from MH i2c: 01 07 00 [19:25:17]MH_I2C_Read... [19:25:17]Read from MH i2c: 01 07 00 A3 0D 00 00 00 00 00 FF 0F C5 [19:25:17]RasterBufferAndPrint [19:25:17]line *****ТОВАРНЫЙ ЧЕК***** [19:25:17]line АЗС 120 [19:25:17]line Партнер нефть [19:25:17]line 02508201610067 [19:25:17]line Кассир : Байбугуева Г. [19:25:17]line Счет N : (1)673070 [19:25:17]line 19.06.2024 19:02 [19:25:17]line ПРОДАЖА [19:25:17]line ТРК (МРК, ГНК): 42 [19:25:17]line Вид ГСМ : 2710124130 [19:25:17]line Аи-92-К-5 [19:25:17]line 30.000 x 66.40 [19:25:17]line ИТОГ: 1992.00 [19:25:17]line Тип оплаты: Талоны: Топливная Карта [19:25:17]line 42629 [19:25:17]line ______________________ [19:25:17]line (подпись) [19:25:17]written 0, free lines is 4095 [19:25:18]Write to MH i2c: 01 00 00 B7 0D C4 [19:25:18]Write i2c OK [19:25:18]MH_I2C_Read... [19:25:18]Read from MH i2c: 01 [19:25:18]MH_I2C_Read... [19:25:18]Read from MH i2c: 01 07 00 [19:25:18]MH_I2C_Read... [19:25:18]Read from MH i2c: 01 07 00 B7 0D 00 00 00 00 00 12 0E EB [19:25:18]RasterBufferAndPrint [19:25:18]line [19:25:18]line [19:25:18]line [19:25:18]line [19:25:18]line [19:25:18]written 0, free lines is 3604 [19:25:18]MH_Cut [19:25:18]Write to MH i2c: D1 01 00 BE 0D 01 9D [19:25:18]Write i2c OK [19:25:18]MH_I2C_Read... [19:25:18]Read from MH i2c: D1 [19:25:18]MH_I2C_Read... [19:25:18]Read from MH i2c: D1 01 00 [19:25:18]MH_I2C_Read... [19:25:18]Read from MH i2c: D1 01 00 BE 0D 00 9C [19:25:18]Write to MH i2c: 01 00 00 BF 0D CC [19:25:18]Write i2c OK [19:25:18]MH_I2C_Read... [19:25:18]*** Cut start [19:25:18]*** Partial cut [19:25:18]*** CUTSNS_PIN = 1 [19:25:18]*** CUTSNS_PIN = 0 [19:25:18]*** Brake cut motor [19:25:19]Read from MH i2c: 01 [19:25:19]MH_I2C_Read... [19:25:19]Read from MH i2c: 01 07 00 [19:25:19]MH_I2C_Read... [19:25:19]*** Stop cut motor [19:25:19]*** Cut end [19:25:19]Read from MH i2c: 01 07 00 BF 0D 00 00 00 00 00 FF 0F E1 [19:25:19]process_action print_text done [19:25:19]requested_data is exist [19:25:19]produce_requested_data [19:25:19]requested_item fm.sn is exist - process it [19:25:19]wFMCommunicate request_size=4 [19:25:19]MH_SAM_APDU [19:25:19]CAPDU: 80 11 00 00 [19:25:19]Write to MH i2c: E2 08 00 C0 0D 80 11 00 00 00 00 00 00 47 [19:25:19]Write i2c OK [19:25:19]MH_I2C_Read... [19:25:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:25:19]Read from MH i2c: E2 [19:25:19]MH_I2C_Read... [19:25:19]Read from MH i2c: E2 17 00 [19:25:19]MH_I2C_Read... [19:25:19]Read from MH i2c: E2 17 00 C0 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 9A [19:25:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [19:25:19]wFMCommunicate OK [19:25:19]requested_item fd.num is exist - process it [19:25:19]SAM_PROTO_GetFieldsCounters [19:25:19]wFMCommunicate request_size=4 [19:25:19]MH_SAM_APDU [19:25:19]CAPDU: 80 13 00 00 [19:25:19]Write to MH i2c: E2 08 00 C1 0D 80 13 00 00 00 00 00 00 4A [19:25:19]Write i2c OK [19:25:19]MH_I2C_Read... [19:25:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:25:19]Read from MH i2c: E2 [19:25:19]MH_I2C_Read... [19:25:19]Read from MH i2c: E2 62 00 [19:25:19]MH_I2C_Read... [19:25:19]Read from MH i2c: E2 62 00 C1 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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 63 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 D1 00 00 00 5E 04 04 00 D1 00 00 00 57 04 04 00 D2 00 00 00 19 04 04 00 00 00 00 00 90 00 3F [19:25: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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 63 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 D1 00 00 00 5E 04 04 00 D1 00 00 00 57 04 04 00 D2 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:25:19]wFMCommunicate OK [19:25:19]SAM_PROTO_GetFieldsCounters done [19:25:19]requested_item shift.num is exist - process it [19:25:19]requested_item shift.opened is exist - process it [19:25:19]req_shift_opened [19:25:19]FM_GetShiftState [19:25:19]SAM_PROTO_GetShiftState [19:25:19]wFMCommunicate request_size=4 [19:25:19]MH_SAM_APDU [19:25:19]CAPDU: 80 13 01 00 [19:25:19]Write to MH i2c: E2 08 00 C2 0D 80 13 01 00 00 00 00 00 4C [19:25:19]Write i2c OK [19:25:19]MH_I2C_Read... [19:25:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:25:19]Read from MH i2c: E2 [19:25:19]MH_I2C_Read... [19:25:19]Read from MH i2c: E2 0E 00 [19:25:19]MH_I2C_Read... [19:25:19]Read from MH i2c: E2 0E 00 C2 0D 00 09 00 01 04 26 72 66 00 00 00 00 90 00 5A [19:25:19]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [19:25:19]wFMCommunicate OK [19:25:19]SAM_PROTO_GetShiftState done [19:25:19]FM_GetShiftState done [19:25:19]req_shift_opened done [19:25:19]requested_item shift.open_date is exist - process it [19:25:19]req_shift_open_date [19:25:19]req_shift_open_date done [19:25:19]produce_requested_data done [19:25:19]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103779,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [19:25:19]process_action_free print_text [19:25:19]json_value_free [19:25:19]json_value_free done [19:25:19]process_json_proto returns [19:25:19]Send response to host [19:25:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103779,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [19:25:19]free response buf [19:25:19]execute_script done [19:25:19]execute_script returns [19:25:19]free content buf [19:25:19]Sock 9.Close socket [19:25:19]Sock 9.Thread stoped [19:25:21]OFD Sender: No OFD packet to send [19:25:26]OFD Sender: No OFD packet to send [19:25:31]OFD Sender: No OFD packet to send [19:25:36]OFD Sender: No OFD packet to send [19:25:41]OFD Sender: No OFD packet to send [19:25:46]OFD Sender: No OFD packet to send [19:25:51]OFD Sender: No OFD packet to send [19:25:56]OFD Sender: No OFD packet to send [19:26:01]OFD Sender: No OFD packet to send [19:26:06]OFD Sender: No OFD packet to send [19:26:11]OFD Sender: No OFD packet to send [19:26:16]OFD Sender: No OFD packet to send [19:26:21]OFD Sender: No OFD packet to send [19:26:26]OFD Sender: No OFD packet to send [19:26:31]OFD Sender: No OFD packet to send [19:26:36]OFD Sender: No OFD packet to send [19:26:41]OFD Sender: No OFD packet to send [19:26:46]OFD Sender: No OFD packet to send [19:26:51]OFD Sender: No OFD packet to send [19:26:56]OFD Sender: No OFD packet to send [19:27:01]OFD Sender: No OFD packet to send [19:27:06]OFD Sender: No OFD packet to send [19:27:11]OFD Sender: No OFD packet to send [19:27:16]OFD Sender: No OFD packet to send [19:27:21]OFD Sender: No OFD packet to send [19:27:26]OFD Sender: No OFD packet to send [19:27:30]accept exits with 10 [19:27:30]New connection [19:27:30]New thread 3066797412 created [19:27:30]Thread 3066940772 joined [19:27:30]Waiting for new connection... [19:27:30] Sock 10.Parse request [19:27:30]Sock 10.Check first char [19:27:30]Sock 10.First char is OK [19:27:30]request: POST /json_proto HTTP/1.0 [19:27:30]Method: POST [19:27:30]URL: /json_proto [19:27:30]Method is POST - this is cgi request [19:27:30]url: /json_proto [19:27:30]query_string will be loaded in cgi processing [19:27:30]execute_cgi json_proto POST (null) [19:27:30]execute_cgi path=json_proto method=POST [19:27:30]POST find Content-Length [19:27:30]Host: 172.17.38.133:8080 [19:27:30]Content-Length: 1207 [19:27:30]Content-Type: application/json [19:27:30] [19:27:30]POST finish read [19:27:30]Found Content-Length = 1207 [19:27:30]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 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. \u000A\u0421\u0447\u0435\u0442 N : (1)673071\u000A19.06.2024 19:04\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 42\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 66.40\u000A\u0418\u0422\u041E\u0413: 1328.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\u000A42629\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:27:30]execute_script... [19:27:30]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 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. \u000A\u0421\u0447\u0435\u0442 N : (1)673071\u000A19.06.2024 19:04\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 42\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 66.40\u000A\u0418\u0422\u041E\u0413: 1328.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\u000A42629\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:27:30]POST & json_proto [19:27:30]process_json_proto [19:27:30]json parsed OK: [19:27:30]protocol is kg_v1.0 [19:27:30]action value=print_text [19:27:30]process_action print_text [19:27:30]cmd_print_text [19:27:30]ExternCall_PrintAddStr [19:27:30]wPrintStart [19:27:30]Write to MH i2c: 01 00 00 C3 0D D0 [19:27:30]Write i2c OK [19:27:30]MH_I2C_Read... [19:27:30]Read from MH i2c: 01 [19:27:30]MH_I2C_Read... [19:27:30]Read from MH i2c: 01 07 00 [19:27:30]MH_I2C_Read... [19:27:30]Read from MH i2c: 01 07 00 C3 0D 00 00 00 00 00 FF 0F E5 [19:27:30]RasterBufferAndPrint [19:27:30]line *****ТОВАРНЫЙ ЧЕК***** [19:27:30]line АЗС 120 [19:27:30]line Партнер нефть [19:27:30]line 02508201610067 [19:27:30]line Кассир : Байбугуева Г. [19:27:30]line Счет N : (1)673071 [19:27:30]line 19.06.2024 19:04 [19:27:30]line ПРОДАЖА [19:27:30]line ТРК (МРК, ГНК): 42 [19:27:30]line Вид ГСМ : 2710124130 [19:27:30]line Аи-92-К-5 [19:27:30]line 20.000 x 66.40 [19:27:30]line ИТОГ: 1328.00 [19:27:30]line Тип оплаты: Талоны: Топливная Карта [19:27:30]line 42629 [19:27:30]line ______________________ [19:27:30]line (подпись) [19:27:30]written 0, free lines is 4095 [19:27:30]Write to MH i2c: 01 00 00 D7 0D E4 [19:27:30]Write i2c OK [19:27:30]MH_I2C_Read... [19:27:30]Read from MH i2c: 01 [19:27:30]MH_I2C_Read... [19:27:30]Read from MH i2c: 01 07 00 [19:27:30]MH_I2C_Read... [19:27:30]Read from MH i2c: 01 07 00 D7 0D 00 00 00 00 00 11 0E 0A [19:27:30]RasterBufferAndPrint [19:27:30]line [19:27:30]line [19:27:30]line [19:27:30]line [19:27:30]line [19:27:30]written 0, free lines is 3603 [19:27:30]MH_Cut [19:27:30]Write to MH i2c: D1 01 00 DE 0D 01 BD [19:27:30]Write i2c OK [19:27:30]MH_I2C_Read... [19:27:30]Read from MH i2c: D1 [19:27:30]MH_I2C_Read... [19:27:30]Read from MH i2c: D1 01 00 [19:27:30]MH_I2C_Read... [19:27:30]Read from MH i2c: D1 01 00 DE 0D 00 BC [19:27:30]Write to MH i2c: 01 00 00 DF 0D EC [19:27:30]Write i2c OK [19:27:30]MH_I2C_Read... [19:27:31]*** Cut start [19:27:31]*** Partial cut [19:27:31]*** CUTSNS_PIN = 1 [19:27:31]*** CUTSNS_PIN = 0 [19:27:31]OFD Sender: No OFD packet to send [19:27:31]*** Brake cut motor [19:27:31]Read from MH i2c: 01 [19:27:31]MH_I2C_Read... [19:27:31]Read from MH i2c: 01 07 00 [19:27:31]MH_I2C_Read... [19:27:31]*** Stop cut motor [19:27:31]*** Cut end [19:27:31]Read from MH i2c: 01 07 00 DF 0D 00 00 00 00 00 FF 0F 01 [19:27:31]process_action print_text done [19:27:31]requested_data is exist [19:27:31]produce_requested_data [19:27:31]requested_item fm.sn is exist - process it [19:27:31]wFMCommunicate request_size=4 [19:27:31]MH_SAM_APDU [19:27:31]CAPDU: 80 11 00 00 [19:27:31]Write to MH i2c: E2 08 00 E0 0D 80 11 00 00 00 00 00 00 67 [19:27:31]Write i2c OK [19:27:31]MH_I2C_Read... [19:27:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:27:31]Read from MH i2c: E2 [19:27:31]MH_I2C_Read... [19:27:31]Read from MH i2c: E2 17 00 [19:27:31]MH_I2C_Read... [19:27:31]Read from MH i2c: E2 17 00 E0 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 BA [19:27:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [19:27:31]wFMCommunicate OK [19:27:31]requested_item fd.num is exist - process it [19:27:31]SAM_PROTO_GetFieldsCounters [19:27:31]wFMCommunicate request_size=4 [19:27:31]MH_SAM_APDU [19:27:31]CAPDU: 80 13 00 00 [19:27:31]Write to MH i2c: E2 08 00 E1 0D 80 13 00 00 00 00 00 00 6A [19:27:31]Write i2c OK [19:27:31]MH_I2C_Read... [19:27:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:27:31]Read from MH i2c: E2 [19:27:31]MH_I2C_Read... [19:27:31]Read from MH i2c: E2 62 00 [19:27:31]MH_I2C_Read... [19:27:31]Read from MH i2c: E2 62 00 E1 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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 63 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 D1 00 00 00 5E 04 04 00 D1 00 00 00 57 04 04 00 D2 00 00 00 19 04 04 00 00 00 00 00 90 00 5F [19:27: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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 63 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 D1 00 00 00 5E 04 04 00 D1 00 00 00 57 04 04 00 D2 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:27:31]wFMCommunicate OK [19:27:31]SAM_PROTO_GetFieldsCounters done [19:27:31]requested_item shift.num is exist - process it [19:27:31]requested_item shift.opened is exist - process it [19:27:31]req_shift_opened [19:27:31]FM_GetShiftState [19:27:31]SAM_PROTO_GetShiftState [19:27:31]wFMCommunicate request_size=4 [19:27:31]MH_SAM_APDU [19:27:31]CAPDU: 80 13 01 00 [19:27:31]Write to MH i2c: E2 08 00 E2 0D 80 13 01 00 00 00 00 00 6C [19:27:31]Write i2c OK [19:27:31]MH_I2C_Read... [19:27:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:27:31]Read from MH i2c: E2 [19:27:31]MH_I2C_Read... [19:27:31]Read from MH i2c: E2 0E 00 [19:27:31]MH_I2C_Read... [19:27:31]Read from MH i2c: E2 0E 00 E2 0D 00 09 00 01 04 26 72 66 00 00 00 00 90 00 7A [19:27:31]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [19:27:31]wFMCommunicate OK [19:27:31]SAM_PROTO_GetShiftState done [19:27:31]FM_GetShiftState done [19:27:31]req_shift_opened done [19:27:31]requested_item shift.open_date is exist - process it [19:27:31]req_shift_open_date [19:27:31]req_shift_open_date done [19:27:31]produce_requested_data done [19:27:31]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103779,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [19:27:31]process_action_free print_text [19:27:31]json_value_free [19:27:31]json_value_free done [19:27:31]process_json_proto returns [19:27:31]Send response to host [19:27:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103779,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [19:27:31]free response buf [19:27:31]execute_script done [19:27:31]execute_script returns [19:27:31]free content buf [19:27:31]Sock 10.Close socket [19:27:31]Sock 10.Thread stoped [19:27:36]OFD Sender: No OFD packet to send [19:27:41]OFD Sender: No OFD packet to send [19:27:46]OFD Sender: No OFD packet to send [19:27:51]OFD Sender: No OFD packet to send [19:27:56]OFD Sender: No OFD packet to send [19:28:01]OFD Sender: No OFD packet to send [19:28:06]OFD Sender: No OFD packet to send [19:28:11]OFD Sender: No OFD packet to send [19:28:16]OFD Sender: No OFD packet to send [19:28:21]OFD Sender: No OFD packet to send [19:28:26]OFD Sender: No OFD packet to send [19:28:31]OFD Sender: No OFD packet to send [19:28:36]OFD Sender: No OFD packet to send [19:28:41]OFD Sender: No OFD packet to send [19:28:46]OFD Sender: No OFD packet to send [19:28:51]OFD Sender: No OFD packet to send [19:28:56]OFD Sender: No OFD packet to send [19:29:01]OFD Sender: No OFD packet to send [19:29:06]OFD Sender: No OFD packet to send [19:29:11]OFD Sender: No OFD packet to send [19:29:16]OFD Sender: No OFD packet to send [19:29:21]OFD Sender: No OFD packet to send [19:29:26]OFD Sender: No OFD packet to send [19:29:31]OFD Sender: No OFD packet to send [19:29:36]OFD Sender: No OFD packet to send [19:29:41]OFD Sender: No OFD packet to send [19:29:46]OFD Sender: No OFD packet to send [19:29:51]OFD Sender: No OFD packet to send [19:29:56]OFD Sender: No OFD packet to send [19:30:01]OFD Sender: No OFD packet to send [19:30:06]OFD Sender: No OFD packet to send [19:30:11]OFD Sender: No OFD packet to send [19:30:16]OFD Sender: No OFD packet to send [19:30:21]OFD Sender: No OFD packet to send [19:30:26]OFD Sender: No OFD packet to send [19:30:31]OFD Sender: No OFD packet to send [19:30:34]accept exits with 8 [19:30:34]New connection [19:30:34]New thread 3066940772 created [19:30:34]Thread 3066797412 joined [19:30:34]Waiting for new connection... [19:30:34] Sock 8.Parse request [19:30:34]Sock 8.Check first char [19:30:34]Sock 8.First char is OK [19:30:34]request: POST /json_proto HTTP/1.0 [19:30:34]Method: POST [19:30:34]URL: /json_proto [19:30:34]Method is POST - this is cgi request [19:30:34]url: /json_proto [19:30:34]query_string will be loaded in cgi processing [19:30:34]execute_cgi json_proto POST (null) [19:30:34]execute_cgi path=json_proto method=POST [19:30:34]POST find Content-Length [19:30:34]Host: 172.17.38.133:8080 [19:30:34]Content-Length: 682 [19:30:34]Content-Type: application/json [19:30:34] [19:30:34]POST finish read [19:30:34]Found Content-Length = 682 [19:30:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673072", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:30:34]execute_script... [19:30:34]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673072", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:30:34]POST & json_proto [19:30:34]process_json_proto [19:30:34]json parsed OK: [19:30:34]protocol is kg_v1.0 [19:30:34]action value=close_receipt [19:30:34]process_action close_receipt [19:30:34]cmd_close_receipt [19:30:34]MH_GetDate [19:30:34]Write to MH i2c: F0 00 00 E3 0D DF [19:30:34]Write i2c OK [19:30:34]MH_I2C_Read... [19:30:34]Read from MH i2c: F0 [19:30:34]MH_I2C_Read... [19:30:34]Read from MH i2c: F0 09 00 [19:30:34]MH_I2C_Read... [19:30:34]Read from MH i2c: F0 09 00 E3 0D 00 DB 31 73 66 BD 8F 7C 64 F9 [19:30:34]GetLastDocTimeStamp 1718824633 [19:30:34]current date 1718825435 [19:30:34]FM_GetShiftState [19:30:34]SAM_PROTO_GetShiftState [19:30:34]wFMCommunicate request_size=4 [19:30:34]MH_SAM_APDU [19:30:34]CAPDU: 80 13 01 00 [19:30:34]Write to MH i2c: E2 08 00 E4 0D 80 13 01 00 00 00 00 00 6E [19:30:34]Write i2c OK [19:30:34]MH_I2C_Read... [19:30:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:30:34]Read from MH i2c: E2 [19:30:34]MH_I2C_Read... [19:30:34]Read from MH i2c: E2 0E 00 [19:30:34]MH_I2C_Read... [19:30:34]Read from MH i2c: E2 0E 00 E4 0D 00 09 00 01 04 26 72 66 00 00 00 00 90 00 7C [19:30:34]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [19:30:34]wFMCommunicate OK [19:30:34]SAM_PROTO_GetShiftState done [19:30:34]FM_GetShiftState done [19:30:34]opened in 1718756868 [19:30:34]opened+sec_in_day 1718843268 [19:30:34]quantity*price = 100064 [19:30:34]sum+1 = 100066 [19:30:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.65 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 210 19.06.2024 19:30 Смена: 353 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103780 ФПД: 95749102126882 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T193035&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103780&fm=95749102126882&tin=02508201610067®Number=0000000000092785&sum=100000 [19:30:36]StoreToDocumentArchive [19:30:36]shift 353 fd 103780 [19:30:36]save to /storage/0353/doc_00103780 [19:30:36]save last doc name /storage/0353/doc_00103780 to /storage/kkm_last_doc_name [19:30:36]save OK [19:30:36]Clear old archive folders... [19:30:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:30:36]tlvbuf is 016B6270 [19:30:36]SAM_PROTO_ClearQueue [19:30:36]wFMCommunicate request_size=4 [19:30:36]MH_SAM_APDU [19:30:36]CAPDU: 80 09 00 00 [19:30:36]Write to MH i2c: E2 08 00 F1 0D 80 09 00 00 00 00 00 00 70 [19:30:36]Write i2c OK [19:30:36]MH_I2C_Read... [19:30:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:30:36]Read from MH i2c: E2 [19:30:36]MH_I2C_Read... [19:30:36]Read from MH i2c: E2 03 00 [19:30:36]MH_I2C_Read... [19:30:36]Read from MH i2c: E2 03 00 F1 0D 00 90 00 72 [19:30:36]RAPDU: 90 00 [19:30:36]wFMCommunicate OK [19:30:36]SAM_PROTO_ClearQueue done [19:30:36]KKMCreateOFDPacket [19:30:36]OFDProtocolAddRootSTLVToBuf [19:30:36]FM_MakeSignedData [19:30:36]FM_MakeSignedData [19:30:36]SAM_PROTO_SignData [19:30:36]wFMCommunicate request_size=4 [19:30:36]MH_SAM_APDU [19:30:36]CAPDU: 80 0D 01 02 [19:30:36]Write to MH i2c: E2 08 00 F2 0D 80 0D 01 02 00 00 00 00 78 [19:30:36]Write i2c OK [19:30:36]MH_I2C_Read... [19:30:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:30:36]Read from MH i2c: E2 [19:30:36]MH_I2C_Read... [19:30:36]Read from MH i2c: E2 03 00 [19:30:36]MH_I2C_Read... [19:30:36]Read from MH i2c: E2 03 00 F2 0D 00 90 00 73 [19:30:36]RAPDU: 90 00 [19:30:36]wFMCommunicate OK [19:30:36]wFMCommunicate request_size=255 [19:30:36]MH_SAM_APDU [19:30:36]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D2 00 00 00 F4 03 04 00 DB 31 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 64 95 01 00 35 04 06 00 57 [19:30:36]Write to MH i2c: E2 02 01 F3 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D2 00 00 00 F4 03 04 00 DB 31 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 64 95 01 00 35 04 06 00 57 00 00 EC [19:30:36]Write i2c OK [19:30:36]MH_I2C_Read... [19:30:36]OFD Sender: No OFD packet to send [19:30:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:30:36]Read from MH i2c: E2 [19:30:36]MH_I2C_Read... [19:30:36]Read from MH i2c: E2 03 00 [19:30:36]MH_I2C_Read... [19:30:36]Read from MH i2c: E2 03 00 F3 0D 00 90 00 74 [19:30:36]RAPDU: 90 00 [19:30:36]wFMCommunicate OK [19:30:36]wFMCommunicate request_size=10 [19:30:36]MH_SAM_APDU [19:30:36]CAPDU: 80 0D 02 02 05 15 53 38 47 22 [19:30:36]Write to MH i2c: E2 0D 00 F4 0D 80 0D 02 02 05 00 15 53 38 47 22 00 00 8E [19:30:36]Write i2c OK [19:30:36]MH_I2C_Read... [19:30:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:30:36]Read from MH i2c: E2 [19:30:36]MH_I2C_Read... [19:30:36]Read from MH i2c: E2 03 00 [19:30:36]MH_I2C_Read... [19:30:36]Read from MH i2c: E2 03 00 F4 0D 00 90 00 75 [19:30:36]RAPDU: 90 00 [19:30:36]wFMCommunicate OK [19:30:36]wFMCommunicate request_size=4 [19:30:36]MH_SAM_APDU [19:30:36]CAPDU: 80 0D 03 02 [19:30:36]Write to MH i2c: E2 08 00 F5 0D 80 0D 03 02 00 00 00 00 7D [19:30:36]Write i2c OK [19:30:36]MH_I2C_Read... [19:30:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:30:36]Read from MH i2c: E2 [19:30:36]MH_I2C_Read... [19:30:36]Read from MH i2c: E2 0B 00 [19:30:36]MH_I2C_Read... [19:30:36]Read from MH i2c: E2 0B 00 F5 0D 00 69 8A C4 01 3B A3 19 84 90 00 B1 [19:30:36]RAPDU: 69 8A C4 01 3B A3 19 84 90 00 [19:30:36]wFMCommunicate OK [19:30:36]SAM_PROTO_SignData done [19:30:36]FM_MakeSignedData done [19:30:36]CreateOFDProtocolMessage [19:30:36]wFMCommunicate request_size=4 [19:30:36]MH_SAM_APDU [19:30:36]CAPDU: 80 11 00 00 [19:30:36]Write to MH i2c: E2 08 00 F6 0D 80 11 00 00 00 00 00 00 7D [19:30:36]Write i2c OK [19:30:36]MH_I2C_Read... [19:30:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:30:36]Read from MH i2c: E2 [19:30:36]MH_I2C_Read... [19:30:36]Read from MH i2c: E2 17 00 [19:30:36]MH_I2C_Read... [19:30:36]Read from MH i2c: E2 17 00 F6 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 D0 [19:30:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [19:30:36]wFMCommunicate OK [19:30:36]CreateOFDProtocolMessage done [19:30:36]OFDSenderStorePacket 103780 [19:30:36]StoreOFDPacket docnum=103780 [19:30:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 96 7B 07 01 02 F4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D2 00 00 00 F4 03 04 00 DB 31 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 64 95 01 00 35 04 06 00 57 15 53 38 47 22 69 8A C4 01 3B A3 19 84 [19:30:36]CheckFolder [19:30:36]dirname=/storage/ofd_packets [19:30:36]CheckFolder done [19:30:36]ProducePacketName [19:30:36]name=ofd_packets/00103780 [19:30:36]NVStorageSaveData ofd_packets/00103780 [19:30:36]File name is /storage/ofd_packets/00103780 [19:30:36]Write 301 bytes [19:30:36]NVStorageSaveData done [19:30:36]OFDSenderStorePacket done [19:30:36]KKMCreateOFDPacket done [19:30:36]NVStorageSaveData kkm_last_timestamp [19:30:36]File name is /storage/kkm_last_timestamp [19:30:36]Write 4 bytes [19:30:36]NVStorageSaveData done [19:30:36]ExternCall_PrintAddStr [19:30:36]wPrintStart [19:30:36]Write to MH i2c: 01 00 00 F7 0D 04 [19:30:36]Write i2c OK [19:30:36]MH_I2C_Read... [19:30:36]Read from MH i2c: 01 [19:30:36]MH_I2C_Read... [19:30:36]Read from MH i2c: 01 07 00 [19:30:36]MH_I2C_Read... [19:30:36]Read from MH i2c: 01 07 00 F7 0D 00 00 00 00 00 FF 0F 19 [19:30:36]RasterBufferAndPrint [19:30:36]line Счет N : (1)673072 [19:30:36]line ИНН: 02508201610067 [19:30:36]line Контрольно-Кассовый Чек [19:30:36]line ПРОДАЖА [19:30:36]line ТРК (МРК, ГНК) : 32 [19:30:36]line Товар: 2710124130 [19:30:36]line Аи-92-К-5 [19:30:36]line 15.070 * 66.40 [19:30:36]line = 1000.65 [19:30:36]line НДС 12% НСП 1% [19:30:36]line > о реализуемом товаре [19:30:36]line ОКРУГЛЕНИЕ: -0.65 [19:30:36]line ИТОГО: 1000.00 [19:30:36]line Внесено: 1000.00 [19:30:36]line СДАЧА: 0.00 [19:30:36]line НСП 1% : 8.85 [19:30:36]line НДС 12% : 106.26 [19:30:36]line Наличными: 1000.00 [19:30:36]line Безнал.: 0.00 [19:30:36]line Место: АЗС № 120 "Партнер Нефть" [19:30:36]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [19:30:36]line СНО: Общий режим [19:30:36]line Чек 210 19.06.2024 19:30 [19:30:36]line Смена: 353 ФФД: 1.0 [19:30:36]line ЗНМ: 0300000164 [19:30:36]line РНМ: 0000000000092785 [19:30:36]line Версия ККМ: 001 [19:30:36]line ФМ: 0000000000875093 [19:30:36]line ФД: 103780 [19:30:36]line ФПД: 95749102126882 [19:30:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T193035&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103780&fm=95749102126882&tin=02508201610067®Number=0000000000092785&sum=100000 [19:30:36]OFD Sender: Processing packet 103780 [packets to send 17, broken 16] [19:30:36]ProducePacketName [19:30:36]name=ofd_packets/00103780 [19:30:36]OFD Sender: To server: pG, [19:30:36]CommunicateWithHost lk.salyk.kg:30040 [19:30:36]ConnectInit lk.salyk.kg [19:30:36]written 0, free lines is 4095 [19:30:37]Connected sock=10 [19:30:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 96 7B 07 01 02 F4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D2 00 00 00 F4 03 04 00 DB 31 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 64 95 01 00 35 04 06 00 57 15 53 38 47 22 69 8A C4 01 3B A3 19 84 [19:30:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 C8 A4 47 00 9E 3D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 64 95 01 00 F4 03 04 00 63 D8 72 66 B6 04 01 00 00 CC C7 DA 09 34 58 76 29 [19:30:37]CommunicateWithHost err = 0 [19:30:37]CheckOFDResponse [19:30:37]1017 (14) - 77093643461234 [19:30:37]1041 (16) - 0000000000875093 [19:30:37]1040 (4) - 103780 [19:30:37]1012 (4) - 19.06.2024 13:08 [19:30:37]1206 (1) - 0 [19:30:37]OFD Sender: Remove packet 103780 [19:30:37]ProducePacketName [19:30:37]name=ofd_packets/00103780 [19:30:37]NVStorageDeleteData [19:30:37]Write to MH i2c: 01 00 00 22 0E 30 [19:30:37]Write i2c OK [19:30:37]MH_I2C_Read... [19:30:37]Read from MH i2c: 01 [19:30:37]MH_I2C_Read... [19:30:37]Read from MH i2c: 01 07 00 [19:30:37]MH_I2C_Read... [19:30:37]Read from MH i2c: 01 07 00 22 0E 00 00 00 00 00 D9 0C 1C [19:30:37]RasterBufferAndPrint [19:30:37]line [19:30:37]line [19:30:37]line [19:30:37]line [19:30:37]line [19:30:37]written 0, free lines is 3296 [19:30:37]MH_Cut [19:30:37]Write to MH i2c: D1 01 00 29 0E 01 09 [19:30:37]Write i2c OK [19:30:37]MH_I2C_Read... [19:30:37]Read from MH i2c: D1 [19:30:37]MH_I2C_Read... [19:30:37]Read from MH i2c: D1 01 00 [19:30:37]MH_I2C_Read... [19:30:37]Read from MH i2c: D1 01 00 29 0E 00 08 [19:30:37]Write to MH i2c: 01 00 00 2A 0E 38 [19:30:37]Write i2c OK [19:30:37]MH_I2C_Read... [19:30:37]OFD Sender: No OFD packet to send [19:30:38]*** Cut start [19:30:38]*** Partial cut [19:30:38]*** CUTSNS_PIN = 1 [19:30:38]*** CUTSNS_PIN = 0 [19:30:38]*** Brake cut motor [19:30:38]Read from MH i2c: 01 [19:30:38]MH_I2C_Read... [19:30:38]*** Stop cut motor [19:30:38]*** Cut end [19:30:38]Read from MH i2c: 01 07 00 [19:30:38]MH_I2C_Read... [19:30:38]Read from MH i2c: 01 07 00 2A 0E 00 00 00 00 00 FF 0F 4D [19:30:38]process_action close_receipt done [19:30:38]requested_data is exist [19:30:38]produce_requested_data [19:30:38]requested_item fm.sn is exist - process it [19:30:38]wFMCommunicate request_size=4 [19:30:38]MH_SAM_APDU [19:30:38]CAPDU: 80 11 00 00 [19:30:38]Write to MH i2c: E2 08 00 2B 0E 80 11 00 00 00 00 00 00 B3 [19:30:38]Write i2c OK [19:30:38]MH_I2C_Read... [19:30:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:30:38]Read from MH i2c: E2 [19:30:38]MH_I2C_Read... [19:30:38]Read from MH i2c: E2 17 00 [19:30:38]MH_I2C_Read... [19:30:38]Read from MH i2c: E2 17 00 2B 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 06 [19:30:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [19:30:38]wFMCommunicate OK [19:30:38]requested_item fd.num is exist - process it [19:30:38]SAM_PROTO_GetFieldsCounters [19:30:38]wFMCommunicate request_size=4 [19:30:38]MH_SAM_APDU [19:30:38]CAPDU: 80 13 00 00 [19:30:38]Write to MH i2c: E2 08 00 2C 0E 80 13 00 00 00 00 00 00 B6 [19:30:38]Write i2c OK [19:30:38]MH_I2C_Read... [19:30:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:30:38]Read from MH i2c: E2 [19:30:38]MH_I2C_Read... [19:30:38]Read from MH i2c: E2 62 00 [19:30:38]MH_I2C_Read... [19:30:38]Read from MH i2c: E2 62 00 2C 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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 64 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 D2 00 00 00 5E 04 04 00 D2 00 00 00 57 04 04 00 D3 00 00 00 19 04 04 00 00 00 00 00 90 00 AF [19:30:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 64 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 D2 00 00 00 5E 04 04 00 D2 00 00 00 57 04 04 00 D3 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:30:38]wFMCommunicate OK [19:30:38]SAM_PROTO_GetFieldsCounters done [19:30:38]requested_item shift.num is exist - process it [19:30:38]requested_item shift.opened is exist - process it [19:30:38]req_shift_opened [19:30:38]FM_GetShiftState [19:30:38]SAM_PROTO_GetShiftState [19:30:38]wFMCommunicate request_size=4 [19:30:38]MH_SAM_APDU [19:30:38]CAPDU: 80 13 01 00 [19:30:38]Write to MH i2c: E2 08 00 2D 0E 80 13 01 00 00 00 00 00 B8 [19:30:38]Write i2c OK [19:30:38]MH_I2C_Read... [19:30:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:30:38]Read from MH i2c: E2 [19:30:38]MH_I2C_Read... [19:30:38]Read from MH i2c: E2 0E 00 [19:30:38]MH_I2C_Read... [19:30:38]Read from MH i2c: E2 0E 00 2D 0E 00 09 00 01 04 26 72 66 00 00 00 00 90 00 C6 [19:30:38]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [19:30:38]wFMCommunicate OK [19:30:38]SAM_PROTO_GetShiftState done [19:30:38]FM_GetShiftState done [19:30:38]req_shift_opened done [19:30:38]requested_item shift.open_date is exist - process it [19:30:38]req_shift_open_date [19:30:38]req_shift_open_date done [19:30:38]produce_requested_data done [19:30:38]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103780,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [19:30:38]process_action_free close_receipt [19:30:38]json_value_free [19:30:38]json_value_free done [19:30:38]process_json_proto returns [19:30:38]Send response to host [19:30:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103780,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [19:30:38]free response buf [19:30:38]execute_script done [19:30:38]execute_script returns [19:30:38]free content buf [19:30:38]Sock 8.Close socket [19:30:38]Sock 8.Thread stoped [19:30:42]OFD Sender: No OFD packet to send [19:30:47]OFD Sender: No OFD packet to send [19:30:52]OFD Sender: No OFD packet to send [19:30:57]OFD Sender: No OFD packet to send [19:31:02]OFD Sender: No OFD packet to send [19:31:07]OFD Sender: No OFD packet to send [19:31:12]OFD Sender: No OFD packet to send [19:31:17]OFD Sender: No OFD packet to send [19:31:22]OFD Sender: No OFD packet to send [19:31:27]OFD Sender: No OFD packet to send [19:31:32]OFD Sender: No OFD packet to send [19:31:37]OFD Sender: No OFD packet to send [19:31:42]OFD Sender: No OFD packet to send [19:31:47]OFD Sender: No OFD packet to send [19:31:52]OFD Sender: No OFD packet to send [19:31:57]OFD Sender: No OFD packet to send [19:32:02]OFD Sender: No OFD packet to send [19:32:07]OFD Sender: No OFD packet to send [19:32:12]OFD Sender: No OFD packet to send [19:32:17]OFD Sender: No OFD packet to send [19:32:22]OFD Sender: No OFD packet to send [19:32:27]OFD Sender: No OFD packet to send [19:32:32]OFD Sender: No OFD packet to send [19:32:37]OFD Sender: No OFD packet to send [19:32:42]OFD Sender: No OFD packet to send [19:32:47]OFD Sender: No OFD packet to send [19:32:52]OFD Sender: No OFD packet to send [19:32:57]OFD Sender: No OFD packet to send [19:33:02]OFD Sender: No OFD packet to send [19:33:07]OFD Sender: No OFD packet to send [19:33:12]OFD Sender: No OFD packet to send [19:33:17]OFD Sender: No OFD packet to send [19:33:22]OFD Sender: No OFD packet to send [19:33:27]OFD Sender: No OFD packet to send [19:33:32]OFD Sender: No OFD packet to send [19:33:37]OFD Sender: No OFD packet to send [19:33:42]OFD Sender: No OFD packet to send [19:33:47]OFD Sender: No OFD packet to send [19:33:52]OFD Sender: No OFD packet to send [19:33:57]OFD Sender: No OFD packet to send [19:34:02]OFD Sender: No OFD packet to send [19:34:07]OFD Sender: No OFD packet to send [19:34:12]OFD Sender: No OFD packet to send [19:34:17]OFD Sender: No OFD packet to send [19:34:22]OFD Sender: No OFD packet to send [19:34:28]OFD Sender: No OFD packet to send [19:34:33]OFD Sender: No OFD packet to send [19:34:38]OFD Sender: No OFD packet to send [19:34:43]OFD Sender: No OFD packet to send [19:34:48]OFD Sender: No OFD packet to send [19:34:53]OFD Sender: No OFD packet to send [19:34:58]OFD Sender: No OFD packet to send [19:35:03]OFD Sender: No OFD packet to send [19:35:08]OFD Sender: No OFD packet to send [19:35:13]OFD Sender: No OFD packet to send [19:35:18]OFD Sender: No OFD packet to send [19:35:23]OFD Sender: No OFD packet to send [19:35:28]OFD Sender: No OFD packet to send [19:35:33]OFD Sender: No OFD packet to send [19:35:38]OFD Sender: No OFD packet to send [19:35:43]OFD Sender: No OFD packet to send [19:35:48]OFD Sender: No OFD packet to send [19:35:53]OFD Sender: No OFD packet to send [19:35:58]OFD Sender: No OFD packet to send [19:36:03]OFD Sender: No OFD packet to send [19:36:08]OFD Sender: No OFD packet to send [19:36:13]OFD Sender: No OFD packet to send [19:36:18]OFD Sender: No OFD packet to send [19:36:23]OFD Sender: No OFD packet to send [19:36:28]OFD Sender: No OFD packet to send [19:36:33]OFD Sender: No OFD packet to send [19:36:38]OFD Sender: No OFD packet to send [19:36:43]OFD Sender: No OFD packet to send [19:36:48]OFD Sender: No OFD packet to send [19:36:48]accept exits with 9 [19:36:48]New connection [19:36:48]New thread 3066797412 created [19:36:48]Thread 3066940772 joined [19:36:48]Waiting for new connection... [19:36:48] Sock 9.Parse request [19:36:48]Sock 9.Check first char [19:36:48]Sock 9.First char is OK [19:36:48]request: POST /json_proto HTTP/1.0 [19:36:48]Method: POST [19:36:48]URL: /json_proto [19:36:48]Method is POST - this is cgi request [19:36:48]url: /json_proto [19:36:48]query_string will be loaded in cgi processing [19:36:48]execute_cgi json_proto POST (null) [19:36:48]execute_cgi path=json_proto method=POST [19:36:48]POST find Content-Length [19:36:48]Host: 172.17.38.133:8080 [19:36:48]Content-Length: 682 [19:36:48]Content-Type: application/json [19:36:48] [19:36:48]POST finish read [19:36:48]Found Content-Length = 682 [19:36:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673073", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 15.430, "sum" : 1140.28, "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" ] } } [19:36:48]execute_script... [19:36: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)673073", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 15.430, "sum" : 1140.28, "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" ] } } [19:36:48]POST & json_proto [19:36:48]process_json_proto [19:36:48]json parsed OK: [19:36:48]protocol is kg_v1.0 [19:36:48]action value=close_receipt [19:36:48]process_action close_receipt [19:36:48]cmd_close_receipt [19:36:48]MH_GetDate [19:36:48]Write to MH i2c: F0 00 00 2E 0E 2B [19:36:48]Write i2c OK [19:36:48]MH_I2C_Read... [19:36:48]Read from MH i2c: F0 [19:36:48]MH_I2C_Read... [19:36:48]Read from MH i2c: F0 09 00 [19:36:48]MH_I2C_Read... [19:36:48]Read from MH i2c: F0 09 00 2E 0E 00 51 33 73 66 BD 8F 7C 64 BD [19:36:48]GetLastDocTimeStamp 1718825435 [19:36:48]current date 1718825809 [19:36:48]FM_GetShiftState [19:36:48]SAM_PROTO_GetShiftState [19:36:48]wFMCommunicate request_size=4 [19:36:48]MH_SAM_APDU [19:36:48]CAPDU: 80 13 01 00 [19:36:48]Write to MH i2c: E2 08 00 2F 0E 80 13 01 00 00 00 00 00 BA [19:36:48]Write i2c OK [19:36:48]MH_I2C_Read... [19:36:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:36:48]Read from MH i2c: E2 [19:36:48]MH_I2C_Read... [19:36:48]Read from MH i2c: E2 0E 00 [19:36:48]MH_I2C_Read... [19:36:48]Read from MH i2c: E2 0E 00 2F 0E 00 09 00 01 04 26 72 66 00 00 00 00 90 00 C8 [19:36:48]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [19:36:48]wFMCommunicate OK [19:36:48]SAM_PROTO_GetShiftState done [19:36:48]FM_GetShiftState done [19:36:48]opened in 1718756868 [19:36:48]opened+sec_in_day 1718843268 [19:36:48]quantity*price = 114027 [19:36:48]sum+1 = 114029 [19:36:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 1140.00 Внесено: 1140.00 СДАЧА: 0.00 НСП 1% : 10.09 НДС 12% : 121.09 Наличными: 1140.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 211 19.06.2024 19:36 Смена: 353 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103781 ФПД: 104755271355915 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T193649&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103781&fm=104755271355915&tin=02508201610067®Number=0000000000092785&sum=114000 [19:36:50]StoreToDocumentArchive [19:36:50]shift 353 fd 103781 [19:36:50]save to /storage/0353/doc_00103781 [19:36:50]save last doc name /storage/0353/doc_00103781 to /storage/kkm_last_doc_name [19:36:50]save OK [19:36:50]Clear old archive folders... [19:36:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:36:50]tlvbuf is 016CE670 [19:36:50]SAM_PROTO_ClearQueue [19:36:50]wFMCommunicate request_size=4 [19:36:50]MH_SAM_APDU [19:36:50]CAPDU: 80 09 00 00 [19:36:50]Write to MH i2c: E2 08 00 3C 0E 80 09 00 00 00 00 00 00 BC [19:36:50]Write i2c OK [19:36:50]MH_I2C_Read... [19:36:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:36:50]Read from MH i2c: E2 [19:36:50]MH_I2C_Read... [19:36:50]Read from MH i2c: E2 03 00 [19:36:50]MH_I2C_Read... [19:36:50]Read from MH i2c: E2 03 00 3C 0E 00 90 00 BE [19:36:50]RAPDU: 90 00 [19:36:50]wFMCommunicate OK [19:36:50]SAM_PROTO_ClearQueue done [19:36:50]KKMCreateOFDPacket [19:36:50]OFDProtocolAddRootSTLVToBuf [19:36:50]FM_MakeSignedData [19:36:50]FM_MakeSignedData [19:36:50]SAM_PROTO_SignData [19:36:50]wFMCommunicate request_size=4 [19:36:50]MH_SAM_APDU [19:36:50]CAPDU: 80 0D 01 02 [19:36:50]Write to MH i2c: E2 08 00 3D 0E 80 0D 01 02 00 00 00 00 C4 [19:36:50]Write i2c OK [19:36:50]MH_I2C_Read... [19:36:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:36:50]Read from MH i2c: E2 [19:36:50]MH_I2C_Read... [19:36:50]Read from MH i2c: E2 03 00 [19:36:50]MH_I2C_Read... [19:36:50]Read from MH i2c: E2 03 00 3D 0E 00 90 00 BF [19:36:50]RAPDU: 90 00 [19:36:50]wFMCommunicate OK [19:36:50]wFMCommunicate request_size=255 [19:36:50]MH_SAM_APDU [19:36:50]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 46 3C 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 6C 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 4D 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 D3 00 00 00 F4 03 04 00 51 33 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 65 95 01 00 35 04 06 00 5F [19:36:50]Write to MH i2c: E2 02 01 3E 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 46 3C 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 6C 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 4D 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 D3 00 00 00 F4 03 04 00 51 33 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 65 95 01 00 35 04 06 00 5F 00 00 F6 [19:36:50]Write i2c OK [19:36:50]MH_I2C_Read... [19:36:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:36:50]Read from MH i2c: E2 [19:36:50]MH_I2C_Read... [19:36:50]Read from MH i2c: E2 03 00 [19:36:50]MH_I2C_Read... [19:36:50]Read from MH i2c: E2 03 00 3E 0E 00 90 00 C0 [19:36:50]RAPDU: 90 00 [19:36:50]wFMCommunicate OK [19:36:50]wFMCommunicate request_size=10 [19:36:50]MH_SAM_APDU [19:36:50]CAPDU: 80 0D 02 02 05 46 3C BC CE 0B [19:36:50]Write to MH i2c: E2 0D 00 3F 0E 80 0D 02 02 05 00 46 3C BC CE 0B 00 00 E8 [19:36:50]Write i2c OK [19:36:50]MH_I2C_Read... [19:36:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:36:50]Read from MH i2c: E2 [19:36:50]MH_I2C_Read... [19:36:50]Read from MH i2c: E2 03 00 [19:36:50]MH_I2C_Read... [19:36:50]Read from MH i2c: E2 03 00 3F 0E 00 90 00 C1 [19:36:50]RAPDU: 90 00 [19:36:50]wFMCommunicate OK [19:36:50]wFMCommunicate request_size=4 [19:36:50]MH_SAM_APDU [19:36:50]CAPDU: 80 0D 03 02 [19:36:50]Write to MH i2c: E2 08 00 40 0E 80 0D 03 02 00 00 00 00 C9 [19:36:50]Write i2c OK [19:36:50]MH_I2C_Read... [19:36:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:36:50]Read from MH i2c: E2 [19:36:50]MH_I2C_Read... [19:36:50]Read from MH i2c: E2 0B 00 [19:36:50]MH_I2C_Read... [19:36:50]Read from MH i2c: E2 0B 00 40 0E 00 70 A3 CC 2E 49 5D 8E 8D 90 00 98 [19:36:50]RAPDU: 70 A3 CC 2E 49 5D 8E 8D 90 00 [19:36:50]wFMCommunicate OK [19:36:50]SAM_PROTO_SignData done [19:36:50]FM_MakeSignedData done [19:36:50]CreateOFDProtocolMessage [19:36:50]wFMCommunicate request_size=4 [19:36:50]MH_SAM_APDU [19:36:50]CAPDU: 80 11 00 00 [19:36:50]Write to MH i2c: E2 08 00 41 0E 80 11 00 00 00 00 00 00 C9 [19:36:50]Write i2c OK [19:36:50]MH_I2C_Read... [19:36:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:36:50]Read from MH i2c: E2 [19:36:50]MH_I2C_Read... [19:36:50]Read from MH i2c: E2 17 00 [19:36:50]MH_I2C_Read... [19:36:50]Read from MH i2c: E2 17 00 41 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 1C [19:36:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [19:36:50]wFMCommunicate OK [19:36:50]CreateOFDProtocolMessage done [19:36:50]OFDSenderStorePacket 103781 [19:36:50]StoreOFDPacket docnum=103781 [19:36:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 A7 3D 07 01 A6 64 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 46 3C 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 6C 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 4D 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 D3 00 00 00 F4 03 04 00 51 33 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 65 95 01 00 35 04 06 00 5F 46 3C BC CE 0B 70 A3 CC 2E 49 5D 8E 8D [19:36:50]CheckFolder [19:36:50]dirname=/storage/ofd_packets [19:36:50]CheckFolder done [19:36:50]ProducePacketName [19:36:50]name=ofd_packets/00103781 [19:36:50]NVStorageSaveData ofd_packets/00103781 [19:36:50]File name is /storage/ofd_packets/00103781 [19:36:50]Write 301 bytes [19:36:50]NVStorageSaveData done [19:36:50]OFDSenderStorePacket done [19:36:50]KKMCreateOFDPacket done [19:36:50]NVStorageSaveData kkm_last_timestamp [19:36:50]File name is /storage/kkm_last_timestamp [19:36:50]Write 4 bytes [19:36:50]NVStorageSaveData done [19:36:50]ExternCall_PrintAddStr [19:36:50]wPrintStart [19:36:50]Write to MH i2c: 01 00 00 42 0E 50 [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 42 0E 00 00 00 00 00 FF 0F 65 [19:36:50]RasterBufferAndPrint [19:36:50]line Счет N : (1)673073 [19:36:50]line ИНН: 02508201610067 [19:36:50]line Контрольно-Кассовый Чек [19:36:50]line ПРОДАЖА [19:36:50]line ТРК (МРК, ГНК) : 31 [19:36:50]line Товар: 2710124500 [19:36:50]line Аи-95-К-5 [19:36:50]line 15.430 * 73.90 [19:36:50]line = 1140.28 [19:36:50]line НДС 12% НСП 1% [19:36:50]line > о реализуемом товаре [19:36:50]line ОКРУГЛЕНИЕ: -0.28 [19:36:50]line ИТОГО: 1140.00 [19:36:50]line Внесено: 1140.00 [19:36:50]line СДАЧА: 0.00 [19:36:50]line НСП 1% : 10.09 [19:36:50]line НДС 12% : 121.09 [19:36:50]line Наличными: 1140.00 [19:36:50]line Безнал.: 0.00 [19:36:50]line Место: АЗС № 120 "Партнер Нефть" [19:36:50]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [19:36:50]line СНО: Общий режим [19:36:50]line Чек 211 19.06.2024 19:36 [19:36:50]line Смена: 353 ФФД: 1.0 [19:36:50]line ЗНМ: 0300000164 [19:36:50]line РНМ: 0000000000092785 [19:36:50]line Версия ККМ: 001 [19:36:50]line ФМ: 0000000000875093 [19:36:50]line ФД: 103781 [19:36:50]line ФПД: 104755271355915 [19:36:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T193649&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103781&fm=104755271355915&tin=02508201610067®Number=0000000000092785&sum=114000 [19:36:50]OFD Sender: Processing packet 103781 [packets to send 17, broken 16] [19:36:50]ProducePacketName [19:36:50]name=ofd_packets/00103781 [19:36:50]OFD Sender: To server: pG, [19:36:50]CommunicateWithHost lk.salyk.kg:30040 [19:36:50]ConnectInit lk.salyk.kg [19:36:50]written 0, free lines is 4095 [19:36:51]Connected sock=10 [19:36: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 39 33 0F 01 00 00 A7 3D 07 01 A6 64 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 46 3C 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 6C 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 4D 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 D3 00 00 00 F4 03 04 00 51 33 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 65 95 01 00 35 04 06 00 5F 46 3C BC CE 0B 70 A3 CC 2E 49 5D 8E 8D [19:36: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 39 33 4F 00 00 00 F2 73 47 00 36 4F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 65 95 01 00 F4 03 04 00 D9 D9 72 66 B6 04 01 00 00 CE 28 17 65 69 64 BC 20 [19:36:51]CommunicateWithHost err = 0 [19:36:51]CheckOFDResponse [19:36:51]1017 (14) - 77093643461234 [19:36:51]1041 (16) - 0000000000875093 [19:36:51]1040 (4) - 103781 [19:36:51]1012 (4) - 19.06.2024 13:15 [19:36:51]1206 (1) - 0 [19:36:51]OFD Sender: Remove packet 103781 [19:36:51]ProducePacketName [19:36:51]name=ofd_packets/00103781 [19:36:51]NVStorageDeleteData [19:36:51]Write to MH i2c: 01 00 00 6D 0E 7B [19:36:51]Write i2c OK [19:36:51]MH_I2C_Read... [19:36:51]Read from MH i2c: 01 [19:36:51]MH_I2C_Read... [19:36:51]Read from MH i2c: 01 07 00 [19:36:51]MH_I2C_Read... [19:36:51]Read from MH i2c: 01 07 00 6D 0E 00 00 00 00 00 CE 0C 5C [19:36:51]RasterBufferAndPrint [19:36:51]line [19:36:51]line [19:36:51]line [19:36:51]line [19:36:51]line [19:36:51]written 0, free lines is 3285 [19:36:51]MH_Cut [19:36:51]Write to MH i2c: D1 01 00 74 0E 01 54 [19:36:51]Write i2c OK [19:36:51]MH_I2C_Read... [19:36:51]Read from MH i2c: D1 [19:36:51]MH_I2C_Read... [19:36:51]Read from MH i2c: D1 01 00 [19:36:51]MH_I2C_Read... [19:36:51]Read from MH i2c: D1 01 00 74 0E 00 53 [19:36:51]Write to MH i2c: 01 00 00 75 0E 83 [19:36:51]Write i2c OK [19:36:51]MH_I2C_Read... [19:36:51]OFD Sender: No OFD packet to send [19:36:52]*** Cut start [19:36:52]*** Partial cut [19:36:52]*** CUTSNS_PIN = 1 [19:36:52]*** CUTSNS_PIN = 0 [19:36:52]*** Brake cut motor [19:36:52]Read from MH i2c: 01 [19:36:52]MH_I2C_Read... [19:36:52]*** Stop cut motor [19:36:52]*** Cut end [19:36:52]Read from MH i2c: 01 07 00 [19:36:52]MH_I2C_Read... [19:36:52]Read from MH i2c: 01 07 00 75 0E 00 00 00 00 00 FF 0F 98 [19:36:52]process_action close_receipt done [19:36:52]requested_data is exist [19:36:52]produce_requested_data [19:36:52]requested_item fm.sn is exist - process it [19:36:52]wFMCommunicate request_size=4 [19:36:52]MH_SAM_APDU [19:36:52]CAPDU: 80 11 00 00 [19:36:52]Write to MH i2c: E2 08 00 76 0E 80 11 00 00 00 00 00 00 FE [19:36:52]Write i2c OK [19:36:52]MH_I2C_Read... [19:36:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:36:52]Read from MH i2c: E2 [19:36:52]MH_I2C_Read... [19:36:52]Read from MH i2c: E2 17 00 [19:36:52]MH_I2C_Read... [19:36:52]Read from MH i2c: E2 17 00 76 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 51 [19:36:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [19:36:52]wFMCommunicate OK [19:36:52]requested_item fd.num is exist - process it [19:36:52]SAM_PROTO_GetFieldsCounters [19:36:52]wFMCommunicate request_size=4 [19:36:52]MH_SAM_APDU [19:36:52]CAPDU: 80 13 00 00 [19:36:52]Write to MH i2c: E2 08 00 77 0E 80 13 00 00 00 00 00 00 01 [19:36:52]Write i2c OK [19:36:52]MH_I2C_Read... [19:36:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:36:52]Read from MH i2c: E2 [19:36:52]MH_I2C_Read... [19:36:52]Read from MH i2c: E2 62 00 [19:36:52]MH_I2C_Read... [19:36:52]Read from MH i2c: E2 62 00 77 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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 65 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 D3 00 00 00 5E 04 04 00 D3 00 00 00 57 04 04 00 D4 00 00 00 19 04 04 00 00 00 00 00 90 00 FE [19:36: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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 65 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 D3 00 00 00 5E 04 04 00 D3 00 00 00 57 04 04 00 D4 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:36:52]wFMCommunicate OK [19:36:52]SAM_PROTO_GetFieldsCounters done [19:36:52]requested_item shift.num is exist - process it [19:36:52]requested_item shift.opened is exist - process it [19:36:52]req_shift_opened [19:36:52]FM_GetShiftState [19:36:52]SAM_PROTO_GetShiftState [19:36:52]wFMCommunicate request_size=4 [19:36:52]MH_SAM_APDU [19:36:52]CAPDU: 80 13 01 00 [19:36:52]Write to MH i2c: E2 08 00 78 0E 80 13 01 00 00 00 00 00 03 [19:36:52]Write i2c OK [19:36:52]MH_I2C_Read... [19:36:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:36:52]Read from MH i2c: E2 [19:36:52]MH_I2C_Read... [19:36:52]Read from MH i2c: E2 0E 00 [19:36:52]MH_I2C_Read... [19:36:52]Read from MH i2c: E2 0E 00 78 0E 00 09 00 01 04 26 72 66 00 00 00 00 90 00 11 [19:36:52]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [19:36:52]wFMCommunicate OK [19:36:52]SAM_PROTO_GetShiftState done [19:36:52]FM_GetShiftState done [19:36:52]req_shift_opened done [19:36:52]requested_item shift.open_date is exist - process it [19:36:52]req_shift_open_date [19:36:52]req_shift_open_date done [19:36:52]produce_requested_data done [19:36:52]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103781,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [19:36:52]process_action_free close_receipt [19:36:52]json_value_free [19:36:52]json_value_free done [19:36:52]process_json_proto returns [19:36:52]Send response to host [19:36:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103781,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [19:36:52]free response buf [19:36:52]execute_script done [19:36:52]execute_script returns [19:36:52]free content buf [19:36:52]Sock 9.Close socket [19:36:52]Sock 9.Thread stoped [19:36:56]OFD Sender: No OFD packet to send [19:37:01]OFD Sender: No OFD packet to send [19:37:06]OFD Sender: No OFD packet to send [19:37:11]OFD Sender: No OFD packet to send [19:37:16]OFD Sender: No OFD packet to send [19:37:21]OFD Sender: No OFD packet to send [19:37:26]OFD Sender: No OFD packet to send [19:37:31]OFD Sender: No OFD packet to send [19:37:36]OFD Sender: No OFD packet to send [19:37:41]OFD Sender: No OFD packet to send [19:37:46]OFD Sender: No OFD packet to send [19:37:51]OFD Sender: No OFD packet to send [19:37:56]OFD Sender: No OFD packet to send [19:38:01]OFD Sender: No OFD packet to send [19:38:06]OFD Sender: No OFD packet to send [19:38:11]OFD Sender: No OFD packet to send [19:38:16]OFD Sender: No OFD packet to send [19:38:21]OFD Sender: No OFD packet to send [19:38:26]OFD Sender: No OFD packet to send [19:38:31]OFD Sender: No OFD packet to send [19:38:36]OFD Sender: No OFD packet to send [19:38:41]OFD Sender: No OFD packet to send [19:38:46]OFD Sender: No OFD packet to send [19:38:51]OFD Sender: No OFD packet to send [19:38:56]OFD Sender: No OFD packet to send [19:39:01]OFD Sender: No OFD packet to send [19:39:06]OFD Sender: No OFD packet to send [19:39:11]OFD Sender: No OFD packet to send [19:39:16]OFD Sender: No OFD packet to send [19:39:21]OFD Sender: No OFD packet to send [19:39:26]OFD Sender: No OFD packet to send [19:39:31]OFD Sender: No OFD packet to send [19:39:36]OFD Sender: No OFD packet to send [19:39:41]OFD Sender: No OFD packet to send [19:39:46]OFD Sender: No OFD packet to send [19:39:51]OFD Sender: No OFD packet to send [19:39:56]OFD Sender: No OFD packet to send [19:40:01]OFD Sender: No OFD packet to send [19:40:06]OFD Sender: No OFD packet to send [19:40:11]OFD Sender: No OFD packet to send [19:40:16]OFD Sender: No OFD packet to send [19:40:21]OFD Sender: No OFD packet to send [19:40:26]OFD Sender: No OFD packet to send [19:40:31]OFD Sender: No OFD packet to send [19:40:36]OFD Sender: No OFD packet to send [19:40:41]OFD Sender: No OFD packet to send [19:40:46]OFD Sender: No OFD packet to send [19:40:51]OFD Sender: No OFD packet to send [19:40:56]OFD Sender: No OFD packet to send [19:41:01]OFD Sender: No OFD packet to send [19:41:06]OFD Sender: No OFD packet to send [19:41:11]OFD Sender: No OFD packet to send [19:41:16]OFD Sender: No OFD packet to send [19:41:21]OFD Sender: No OFD packet to send [19:41:27]OFD Sender: No OFD packet to send [19:41:32]OFD Sender: No OFD packet to send [19:41:32]accept exits with 8 [19:41:32]New connection [19:41:32]New thread 3066940772 created [19:41:32]Thread 3066797412 joined [19:41:32]Waiting for new connection... [19:41:32] Sock 8.Parse request [19:41:32]Sock 8.Check first char [19:41:32]Sock 8.First char is OK [19:41:32]request: POST /json_proto HTTP/1.0 [19:41:32]Method: POST [19:41:32]URL: /json_proto [19:41:32]Method is POST - this is cgi request [19:41:32]url: /json_proto [19:41:32]query_string will be loaded in cgi processing [19:41:32]execute_cgi json_proto POST (null) [19:41:32]execute_cgi path=json_proto method=POST [19:41:32]POST find Content-Length [19:41:32]Host: 172.17.38.133:8080 [19:41:32]Content-Length: 1169 [19:41:32]Content-Type: application/json [19:41:32] [19:41:32]POST finish read [19:41:32]Found Content-Length = 1169 [19:41:32]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 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. \u000A\u0421\u0447\u0435\u0442 N : (1)673074\u000A19.06.2024 19:18\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 42\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 66.40\u000A\u0418\u0422\u041E\u0413: 1328.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30086492\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:41:32]execute_script... [19:41:32]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 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. \u000A\u0421\u0447\u0435\u0442 N : (1)673074\u000A19.06.2024 19:18\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 42\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 66.40\u000A\u0418\u0422\u041E\u0413: 1328.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30086492\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:41:32]POST & json_proto [19:41:32]process_json_proto [19:41:32]json parsed OK: [19:41:32]protocol is kg_v1.0 [19:41:32]action value=print_text [19:41:32]process_action print_text [19:41:32]cmd_print_text [19:41:32]ExternCall_PrintAddStr [19:41:32]wPrintStart [19:41:32]Write to MH i2c: 01 00 00 79 0E 87 [19:41:32]Write i2c OK [19:41:32]MH_I2C_Read... [19:41:32]Read from MH i2c: 01 [19:41:32]MH_I2C_Read... [19:41:32]Read from MH i2c: 01 07 00 [19:41:32]MH_I2C_Read... [19:41:32]Read from MH i2c: 01 07 00 79 0E 00 00 00 00 00 FF 0F 9C [19:41:32]RasterBufferAndPrint [19:41:32]line *****ТОВАРНЫЙ ЧЕК***** [19:41:32]line АЗС 120 [19:41:32]line Партнер нефть [19:41:32]line 02508201610067 [19:41:32]line Кассир : Байбугуева Г. [19:41:32]line Счет N : (1)673074 [19:41:32]line 19.06.2024 19:18 [19:41:32]line ПРОДАЖА [19:41:32]line ТРК (МРК, ГНК): 42 [19:41:32]line Вид ГСМ : 2710124130 [19:41:32]line Аи-92-К-5 [19:41:32]line 20.000 x 66.40 [19:41:32]line ИТОГ: 1328.00 [19:41:32]line Тип оплаты: Талоны: ТК ГПНА Online [19:41:32]line 30086492 [19:41:32]line ______________________ [19:41:32]line (подпись) [19:41:32]written 0, free lines is 4095 [19:41:32]Write to MH i2c: 01 00 00 8D 0E 9B [19:41:32]Write i2c OK [19:41:32]MH_I2C_Read... [19:41:32]Read from MH i2c: 01 [19:41:32]MH_I2C_Read... [19:41:32]Read from MH i2c: 01 07 00 [19:41:32]MH_I2C_Read... [19:41:32]Read from MH i2c: 01 07 00 8D 0E 00 00 00 00 00 12 0E C2 [19:41:32]RasterBufferAndPrint [19:41:32]line [19:41:32]line [19:41:32]line [19:41:32]line [19:41:32]line [19:41:32]written 0, free lines is 3604 [19:41:32]MH_Cut [19:41:32]Write to MH i2c: D1 01 00 94 0E 01 74 [19:41:32]Write i2c OK [19:41:32]MH_I2C_Read... [19:41:32]Read from MH i2c: D1 [19:41:32]MH_I2C_Read... [19:41:32]Read from MH i2c: D1 01 00 [19:41:32]MH_I2C_Read... [19:41:32]Read from MH i2c: D1 01 00 94 0E 00 73 [19:41:32]Write to MH i2c: 01 00 00 95 0E A3 [19:41:32]Write i2c OK [19:41:32]MH_I2C_Read... [19:41:33]*** Cut start [19:41:33]*** Partial cut [19:41:33]*** CUTSNS_PIN = 1 [19:41:33]*** CUTSNS_PIN = 0 [19:41:33]*** Brake cut motor [19:41:33]Read from MH i2c: 01 [19:41:33]MH_I2C_Read... [19:41:33]Read from MH i2c: 01 07 00 [19:41:33]MH_I2C_Read... [19:41:33]*** Stop cut motor [19:41:33]*** Cut end [19:41:33]Read from MH i2c: 01 07 00 95 0E 00 00 00 00 00 FF 0F B8 [19:41:33]process_action print_text done [19:41:33]requested_data is exist [19:41:33]produce_requested_data [19:41:33]requested_item fm.sn is exist - process it [19:41:33]wFMCommunicate request_size=4 [19:41:33]MH_SAM_APDU [19:41:33]CAPDU: 80 11 00 00 [19:41:33]Write to MH i2c: E2 08 00 96 0E 80 11 00 00 00 00 00 00 1E [19:41:33]Write i2c OK [19:41:33]MH_I2C_Read... [19:41:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:41:33]Read from MH i2c: E2 [19:41:33]MH_I2C_Read... [19:41:33]Read from MH i2c: E2 17 00 [19:41:33]MH_I2C_Read... [19:41:33]Read from MH i2c: E2 17 00 96 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 71 [19:41:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [19:41:33]wFMCommunicate OK [19:41:33]requested_item fd.num is exist - process it [19:41:33]SAM_PROTO_GetFieldsCounters [19:41:33]wFMCommunicate request_size=4 [19:41:33]MH_SAM_APDU [19:41:33]CAPDU: 80 13 00 00 [19:41:33]Write to MH i2c: E2 08 00 97 0E 80 13 00 00 00 00 00 00 21 [19:41:33]Write i2c OK [19:41:33]MH_I2C_Read... [19:41:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:41:34]Read from MH i2c: E2 [19:41:34]MH_I2C_Read... [19:41:34]Read from MH i2c: E2 62 00 [19:41:34]MH_I2C_Read... [19:41:34]Read from MH i2c: E2 62 00 97 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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 65 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 D3 00 00 00 5E 04 04 00 D3 00 00 00 57 04 04 00 D4 00 00 00 19 04 04 00 00 00 00 00 90 00 1E [19:41: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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 65 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 D3 00 00 00 5E 04 04 00 D3 00 00 00 57 04 04 00 D4 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:41:34]wFMCommunicate OK [19:41:34]SAM_PROTO_GetFieldsCounters done [19:41:34]requested_item shift.num is exist - process it [19:41:34]requested_item shift.opened is exist - process it [19:41:34]req_shift_opened [19:41:34]FM_GetShiftState [19:41:34]SAM_PROTO_GetShiftState [19:41:34]wFMCommunicate request_size=4 [19:41:34]MH_SAM_APDU [19:41:34]CAPDU: 80 13 01 00 [19:41:34]Write to MH i2c: E2 08 00 98 0E 80 13 01 00 00 00 00 00 23 [19:41:34]Write i2c OK [19:41:34]MH_I2C_Read... [19:41:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:41:34]Read from MH i2c: E2 [19:41:34]MH_I2C_Read... [19:41:34]Read from MH i2c: E2 0E 00 [19:41:34]MH_I2C_Read... [19:41:34]Read from MH i2c: E2 0E 00 98 0E 00 09 00 01 04 26 72 66 00 00 00 00 90 00 31 [19:41:34]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [19:41:34]wFMCommunicate OK [19:41:34]SAM_PROTO_GetShiftState done [19:41:34]FM_GetShiftState done [19:41:34]req_shift_opened done [19:41:34]requested_item shift.open_date is exist - process it [19:41:34]req_shift_open_date [19:41:34]req_shift_open_date done [19:41:34]produce_requested_data done [19:41:34]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103781,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [19:41:34]process_action_free print_text [19:41:34]json_value_free [19:41:34]json_value_free done [19:41:34]process_json_proto returns [19:41:34]Send response to host [19:41:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103781,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [19:41:34]free response buf [19:41:34]execute_script done [19:41:34]execute_script returns [19:41:34]free content buf [19:41:34]Sock 8.Close socket [19:41:34]Sock 8.Thread stoped [19:41:37]OFD Sender: No OFD packet to send [19:41:42]OFD Sender: No OFD packet to send [19:41:47]OFD Sender: No OFD packet to send [19:41:52]OFD Sender: No OFD packet to send [19:41:57]OFD Sender: No OFD packet to send [19:42:02]OFD Sender: No OFD packet to send [19:42:07]OFD Sender: No OFD packet to send [19:42:12]OFD Sender: No OFD packet to send [19:42:17]OFD Sender: No OFD packet to send [19:42:22]OFD Sender: No OFD packet to send [19:42:27]OFD Sender: No OFD packet to send [19:42:32]OFD Sender: No OFD packet to send [19:42:37]OFD Sender: No OFD packet to send [19:42:42]OFD Sender: No OFD packet to send [19:42:47]OFD Sender: No OFD packet to send [19:42:52]OFD Sender: No OFD packet to send [19:42:57]OFD Sender: No OFD packet to send [19:43:02]OFD Sender: No OFD packet to send [19:43:07]OFD Sender: No OFD packet to send [19:43:12]OFD Sender: No OFD packet to send [19:43:17]OFD Sender: No OFD packet to send [19:43:22]OFD Sender: No OFD packet to send [19:43:27]OFD Sender: No OFD packet to send [19:43:32]OFD Sender: No OFD packet to send [19:43:37]OFD Sender: No OFD packet to send [19:43:42]OFD Sender: No OFD packet to send [19:43:47]OFD Sender: No OFD packet to send [19:43:52]OFD Sender: No OFD packet to send [19:43:57]OFD Sender: No OFD packet to send [19:44:02]OFD Sender: No OFD packet to send [19:44:07]OFD Sender: No OFD packet to send [19:44:12]OFD Sender: No OFD packet to send [19:44:17]OFD Sender: No OFD packet to send [19:44:22]OFD Sender: No OFD packet to send [19:44:27]OFD Sender: No OFD packet to send [19:44:32]OFD Sender: No OFD packet to send [19:44:37]OFD Sender: No OFD packet to send [19:44:42]OFD Sender: No OFD packet to send [19:44:47]OFD Sender: No OFD packet to send [19:44:52]OFD Sender: No OFD packet to send [19:44:57]OFD Sender: No OFD packet to send [19:45:02]OFD Sender: No OFD packet to send [19:45:07]OFD Sender: No OFD packet to send [19:45:12]OFD Sender: No OFD packet to send [19:45:17]OFD Sender: No OFD packet to send [19:45:22]OFD Sender: No OFD packet to send [19:45:27]OFD Sender: No OFD packet to send [19:45:32]OFD Sender: No OFD packet to send [19:45:37]OFD Sender: No OFD packet to send [19:45:42]OFD Sender: No OFD packet to send [19:45:47]OFD Sender: No OFD packet to send [19:45:52]OFD Sender: No OFD packet to send [19:45:57]OFD Sender: No OFD packet to send [19:46:02]OFD Sender: No OFD packet to send [19:46:07]OFD Sender: No OFD packet to send [19:46:12]OFD Sender: No OFD packet to send [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:27]OFD Sender: No OFD packet to send [19:49:32]OFD Sender: No OFD packet to send [19:49:37]OFD Sender: No OFD packet to send [19:49:42]OFD Sender: No OFD packet to send [19:49:47]OFD Sender: No OFD packet to send [19:49:52]OFD Sender: No OFD packet to send [19:49:57]OFD Sender: No OFD packet to send [19:50:02]OFD Sender: No OFD packet to send [19:50:07]OFD Sender: No OFD packet to send [19:50:12]OFD Sender: No OFD packet to send [19:50:17]OFD Sender: No OFD packet to send [19:50:22]OFD Sender: No OFD packet to send [19:50:27]OFD Sender: No OFD packet to send [19:50:32]OFD Sender: No OFD packet to send [19:50:37]OFD Sender: No OFD packet to send [19:50:42]OFD Sender: No OFD packet to send [19:50:47]OFD Sender: No OFD packet to send [19:50:52]OFD Sender: No OFD packet to send [19:50:57]OFD Sender: No OFD packet to send [19:51:02]OFD Sender: No OFD packet to send [19:51:07]OFD Sender: No OFD packet to send [19:51:12]OFD Sender: No OFD packet to send [19:51:17]OFD Sender: No OFD packet to send [19:51:22]OFD Sender: No OFD packet to send [19:51:27]OFD Sender: No OFD packet to send [19:51:32]OFD Sender: No OFD packet to send [19:51:37]OFD Sender: No OFD packet to send [19:51:42]OFD Sender: No OFD packet to send [19:51:47]OFD Sender: No OFD packet to send [19:51:52]OFD Sender: No OFD packet to send [19:51:57]OFD Sender: No OFD packet to send [19:52:02]OFD Sender: No OFD packet to send [19:52:07]OFD Sender: No OFD packet to send [19:52:12]OFD Sender: No OFD packet to send [19:52:17]OFD Sender: No OFD packet to send [19:52:22]OFD Sender: No OFD packet to send [19:52:27]OFD Sender: No OFD packet to send [19:52:32]OFD Sender: No OFD packet to send [19:52:37]OFD Sender: No OFD packet to send [19:52:42]OFD Sender: No OFD packet to send [19:52:47]OFD Sender: No OFD packet to send [19:52:52]OFD Sender: No OFD packet to send [19:52:57]OFD Sender: No OFD packet to send [19:53:02]OFD Sender: No OFD packet to send [19:53:07]OFD Sender: No OFD packet to send [19:53:12]OFD Sender: No OFD packet to send [19:53:17]OFD Sender: No OFD packet to send [19:53:22]OFD Sender: No OFD packet to send [19:53:27]OFD Sender: No OFD packet to send [19:53:32]OFD Sender: No OFD packet to send [19:53:37]OFD Sender: No OFD packet to send [19:53:42]OFD Sender: No OFD packet to send [19:53:47]OFD Sender: No OFD packet to send [19:53:52]OFD Sender: No OFD packet to send [19:53:57]OFD Sender: No OFD packet to send [19:54:02]OFD Sender: No OFD packet to send [19:54:07]OFD Sender: No OFD packet to send [19:54:12]OFD Sender: No OFD packet to send [19:54:17]OFD Sender: No OFD packet to send [19:54:22]OFD Sender: No OFD packet to send [19:54:24]accept exits with 9 [19:54:24]New connection [19:54:24]New thread 3066797412 created [19:54:24]Thread 3066940772 joined [19:54:24]Waiting for new connection... [19:54:24] Sock 9.Parse request [19:54:24]Sock 9.Check first char [19:54:24]Sock 9.First char is OK [19:54:24]request: POST /json_proto HTTP/1.0 [19:54:24]Method: POST [19:54:24]URL: /json_proto [19:54:24]Method is POST - this is cgi request [19:54:24]url: /json_proto [19:54:24]query_string will be loaded in cgi processing [19:54:24]execute_cgi json_proto POST (null) [19:54:24]execute_cgi path=json_proto method=POST [19:54:24]POST find Content-Length [19:54:24]Host: 172.17.38.133:8080 [19:54:24]Content-Length: 677 [19:54:24]Content-Type: application/json [19:54:24] [19:54:24]POST finish read [19:54:24]Found Content-Length = 677 [19:54:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673075", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 9.040, "sum" : 600.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:54:24]execute_script... [19:54: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)673075", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 9.040, "sum" : 600.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:54:24]POST & json_proto [19:54:24]process_json_proto [19:54:24]json parsed OK: [19:54:24]protocol is kg_v1.0 [19:54:24]action value=close_receipt [19:54:24]process_action close_receipt [19:54:24]cmd_close_receipt [19:54:24]MH_GetDate [19:54:24]Write to MH i2c: F0 00 00 99 0E 96 [19:54:24]Write i2c OK [19:54:24]MH_I2C_Read... [19:54:24]Read from MH i2c: F0 [19:54:24]MH_I2C_Read... [19:54:24]Read from MH i2c: F0 09 00 [19:54:24]MH_I2C_Read... [19:54:24]Read from MH i2c: F0 09 00 99 0E 00 71 37 73 66 BD 8F 7C 64 4C [19:54:24]GetLastDocTimeStamp 1718825809 [19:54:24]current date 1718826865 [19:54:24]FM_GetShiftState [19:54:24]SAM_PROTO_GetShiftState [19:54:24]wFMCommunicate request_size=4 [19:54:24]MH_SAM_APDU [19:54:24]CAPDU: 80 13 01 00 [19:54:24]Write to MH i2c: E2 08 00 9A 0E 80 13 01 00 00 00 00 00 25 [19:54:24]Write i2c OK [19:54:24]MH_I2C_Read... [19:54:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:54:24]Read from MH i2c: E2 [19:54:24]MH_I2C_Read... [19:54:24]Read from MH i2c: E2 0E 00 [19:54:24]MH_I2C_Read... [19:54:24]Read from MH i2c: E2 0E 00 9A 0E 00 09 00 01 04 26 72 66 00 00 00 00 90 00 33 [19:54:24]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [19:54:24]wFMCommunicate OK [19:54:24]SAM_PROTO_GetShiftState done [19:54:24]FM_GetShiftState done [19:54:24]opened in 1718756868 [19:54:24]opened+sec_in_day 1718843268 [19:54:24]quantity*price = 60025 [19:54:24]sum+1 = 60027 [19:54:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.26 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.74 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 212 19.06.2024 19:54 Смена: 353 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103782 ФПД: 113810686561860 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T195425&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103782&fm=113810686561860&tin=02508201610067®Number=0000000000092785&sum=60000 [19:54:25]StoreToDocumentArchive [19:54:25]shift 353 fd 103782 [19:54:25]save to /storage/0353/doc_00103782 [19:54:25]save last doc name /storage/0353/doc_00103782 to /storage/kkm_last_doc_name [19:54:25]save OK [19:54:25]Clear old archive folders... [19:54:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:54:25]tlvbuf is 016D1A20 [19:54:25]SAM_PROTO_ClearQueue [19:54:25]wFMCommunicate request_size=4 [19:54:25]MH_SAM_APDU [19:54:25]CAPDU: 80 09 00 00 [19:54:25]Write to MH i2c: E2 08 00 A7 0E 80 09 00 00 00 00 00 00 27 [19:54:25]Write i2c OK [19:54:25]MH_I2C_Read... [19:54:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:54:25]Read from MH i2c: E2 [19:54:25]MH_I2C_Read... [19:54:25]Read from MH i2c: E2 03 00 [19:54:25]MH_I2C_Read... [19:54:25]Read from MH i2c: E2 03 00 A7 0E 00 90 00 29 [19:54:25]RAPDU: 90 00 [19:54:25]wFMCommunicate OK [19:54:25]SAM_PROTO_ClearQueue done [19:54:25]KKMCreateOFDPacket [19:54:25]OFDProtocolAddRootSTLVToBuf [19:54:25]FM_MakeSignedData [19:54:25]FM_MakeSignedData [19:54:25]SAM_PROTO_SignData [19:54:25]wFMCommunicate request_size=4 [19:54:25]MH_SAM_APDU [19:54:25]CAPDU: 80 0D 01 02 [19:54:25]Write to MH i2c: E2 08 00 A8 0E 80 0D 01 02 00 00 00 00 2F [19:54:25]Write i2c OK [19:54:25]MH_I2C_Read... [19:54:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:54:25]Read from MH i2c: E2 [19:54:25]MH_I2C_Read... [19:54:25]Read from MH i2c: E2 03 00 [19:54:25]MH_I2C_Read... [19:54:25]Read from MH i2c: E2 03 00 A8 0E 00 90 00 2A [19:54:25]RAPDU: 90 00 [19:54:25]wFMCommunicate OK [19:54:25]wFMCommunicate request_size=255 [19:54:25]MH_SAM_APDU [19:54:25]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 50 23 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D4 00 00 00 F4 03 04 00 71 37 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 66 95 01 00 35 04 06 00 67 [19:54:25]Write to MH i2c: E2 02 01 A9 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 50 23 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D4 00 00 00 F4 03 04 00 71 37 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 66 95 01 00 35 04 06 00 67 00 00 E0 [19:54:25]Write i2c OK [19:54:25]MH_I2C_Read... [19:54:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:54:26]Read from MH i2c: E2 [19:54:26]MH_I2C_Read... [19:54:26]Read from MH i2c: E2 03 00 [19:54:26]MH_I2C_Read... [19:54:26]Read from MH i2c: E2 03 00 A9 0E 00 90 00 2B [19:54:26]RAPDU: 90 00 [19:54:26]wFMCommunicate OK [19:54:26]wFMCommunicate request_size=10 [19:54:26]MH_SAM_APDU [19:54:26]CAPDU: 80 0D 02 02 05 82 9D 8B 4E 44 [19:54:26]Write to MH i2c: E2 0D 00 AA 0E 80 0D 02 02 05 00 82 9D 8B 4E 44 00 00 78 [19:54:26]Write i2c OK [19:54:26]MH_I2C_Read... [19:54:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:54:26]Read from MH i2c: E2 [19:54:26]MH_I2C_Read... [19:54:26]Read from MH i2c: E2 03 00 [19:54:26]MH_I2C_Read... [19:54:26]Read from MH i2c: E2 03 00 AA 0E 00 90 00 2C [19:54:26]RAPDU: 90 00 [19:54:26]wFMCommunicate OK [19:54:26]wFMCommunicate request_size=4 [19:54:26]MH_SAM_APDU [19:54:26]CAPDU: 80 0D 03 02 [19:54:26]Write to MH i2c: E2 08 00 AB 0E 80 0D 03 02 00 00 00 00 34 [19:54:26]Write i2c OK [19:54:26]MH_I2C_Read... [19:54:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:54:26]Read from MH i2c: E2 [19:54:26]MH_I2C_Read... [19:54:26]Read from MH i2c: E2 0B 00 [19:54:26]MH_I2C_Read... [19:54:26]Read from MH i2c: E2 0B 00 AB 0E 00 31 16 1D C8 3B 09 72 25 90 00 3C [19:54:26]RAPDU: 31 16 1D C8 3B 09 72 25 90 00 [19:54:26]wFMCommunicate OK [19:54:26]SAM_PROTO_SignData done [19:54:26]FM_MakeSignedData done [19:54:26]CreateOFDProtocolMessage [19:54:26]wFMCommunicate request_size=4 [19:54:26]MH_SAM_APDU [19:54:26]CAPDU: 80 11 00 00 [19:54:26]Write to MH i2c: E2 08 00 AC 0E 80 11 00 00 00 00 00 00 34 [19:54:26]Write i2c OK [19:54:26]MH_I2C_Read... [19:54:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:54:26]Read from MH i2c: E2 [19:54:26]MH_I2C_Read... [19:54:26]Read from MH i2c: E2 17 00 [19:54:26]MH_I2C_Read... [19:54:26]Read from MH i2c: E2 17 00 AC 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 87 [19:54:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [19:54:26]wFMCommunicate OK [19:54:26]CreateOFDProtocolMessage done [19:54:26]OFDSenderStorePacket 103782 [19:54:26]StoreOFDPacket docnum=103782 [19:54:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 EE C3 07 01 8C 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 50 23 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D4 00 00 00 F4 03 04 00 71 37 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 66 95 01 00 35 04 06 00 67 82 9D 8B 4E 44 31 16 1D C8 3B 09 72 25 [19:54:26]CheckFolder [19:54:26]dirname=/storage/ofd_packets [19:54:26]CheckFolder done [19:54:26]ProducePacketName [19:54:26]name=ofd_packets/00103782 [19:54:26]NVStorageSaveData ofd_packets/00103782 [19:54:26]File name is /storage/ofd_packets/00103782 [19:54:26]Write 301 bytes [19:54:26]NVStorageSaveData done [19:54:26]OFDSenderStorePacket done [19:54:26]KKMCreateOFDPacket done [19:54:26]NVStorageSaveData kkm_last_timestamp [19:54:26]File name is /storage/kkm_last_timestamp [19:54:26]Write 4 bytes [19:54:26]NVStorageSaveData done [19:54:26]ExternCall_PrintAddStr [19:54:26]wPrintStart [19:54:26]Write to MH i2c: 01 00 00 AD 0E BB [19:54:26]Write i2c OK [19:54:26]MH_I2C_Read... [19:54:26]Read from MH i2c: 01 [19:54:26]MH_I2C_Read... [19:54:26]Read from MH i2c: 01 07 00 [19:54:26]MH_I2C_Read... [19:54:26]Read from MH i2c: 01 07 00 AD 0E 00 00 00 00 00 FF 0F D0 [19:54:26]RasterBufferAndPrint [19:54:26]line Счет N : (1)673075 [19:54:26]line ИНН: 02508201610067 [19:54:26]line Контрольно-Кассовый Чек [19:54:26]line ПРОДАЖА [19:54:26]line ТРК (МРК, ГНК) : 32 [19:54:26]line Товар: 2710124130 [19:54:26]line Аи-92-К-5 [19:54:26]line 9.040 * 66.40 [19:54:26]line = 600.26 [19:54:26]line НДС 12% НСП 1% [19:54:26]line > о реализуемом товаре [19:54:26]line ОКРУГЛЕНИЕ: -0.26 [19:54:26]line ИТОГО: 600.00 [19:54:26]line Внесено: 600.00 [19:54:26]line СДАЧА: 0.00 [19:54:26]line НСП 1% : 5.31 [19:54:26]line НДС 12% : 63.74 [19:54:26]line Наличными: 600.00 [19:54:26]line Безнал.: 0.00 [19:54:26]line Место: АЗС № 120 "Партнер Нефть" [19:54:26]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [19:54:26]line СНО: Общий режим [19:54:26]line Чек 212 19.06.2024 19:54 [19:54:26]line Смена: 353 ФФД: 1.0 [19:54:26]line ЗНМ: 0300000164 [19:54:26]line РНМ: 0000000000092785 [19:54:26]line Версия ККМ: 001 [19:54:26]line ФМ: 0000000000875093 [19:54:26]line ФД: 103782 [19:54:26]line ФПД: 113810686561860 [19:54:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T195425&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103782&fm=113810686561860&tin=02508201610067®Number=0000000000092785&sum=60000 [19:54:26]OFD Sender: Processing packet 103782 [packets to send 17, broken 16] [19:54:26]ProducePacketName [19:54:26]name=ofd_packets/00103782 [19:54:26]OFD Sender: To server: pG, [19:54:26]CommunicateWithHost lk.salyk.kg:30040 [19:54:26]ConnectInit lk.salyk.kg [19:54:26]written 0, free lines is 4095 [19:54:26]Connected sock=10 [19:54:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 EE C3 07 01 8C 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 50 23 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D4 00 00 00 F4 03 04 00 71 37 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 66 95 01 00 35 04 06 00 67 82 9D 8B 4E 44 31 16 1D C8 3B 09 72 25 [19:54: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 39 33 4F 00 00 00 29 37 47 00 FC 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 39 33 10 04 04 00 66 95 01 00 F4 03 04 00 F9 DD 72 66 B6 04 01 00 00 23 1B 88 08 63 76 F2 1D [19:54:27]CommunicateWithHost err = 0 [19:54:27]CheckOFDResponse [19:54:27]1017 (14) - 77093643461234 [19:54:27]1041 (16) - 0000000000875093 [19:54:27]1040 (4) - 103782 [19:54:27]1012 (4) - 19.06.2024 13:32 [19:54:27]1206 (1) - 0 [19:54:27]OFD Sender: Remove packet 103782 [19:54:27]ProducePacketName [19:54:27]name=ofd_packets/00103782 [19:54:27]NVStorageDeleteData [19:54:27]Write to MH i2c: 01 00 00 D8 0E E6 [19:54:27]Write i2c OK [19:54:27]MH_I2C_Read... [19:54:27]Read from MH i2c: 01 [19:54:27]MH_I2C_Read... [19:54:27]Read from MH i2c: 01 07 00 [19:54:27]MH_I2C_Read... [19:54:27]Read from MH i2c: 01 07 00 D8 0E 00 00 00 00 00 D4 0C CD [19:54:27]RasterBufferAndPrint [19:54:27]line [19:54:27]line [19:54:27]line [19:54:27]line [19:54:27]line [19:54:27]written 0, free lines is 3292 [19:54:27]MH_Cut [19:54:27]Write to MH i2c: D1 01 00 DF 0E 01 BF [19:54:27]Write i2c OK [19:54:27]MH_I2C_Read... [19:54:27]Read from MH i2c: D1 [19:54:27]MH_I2C_Read... [19:54:27]Read from MH i2c: D1 01 00 [19:54:27]MH_I2C_Read... [19:54:27]Read from MH i2c: D1 01 00 DF 0E 00 BE [19:54:27]Write to MH i2c: 01 00 00 E0 0E EE [19:54:27]Write i2c OK [19:54:27]MH_I2C_Read... [19:54:27]OFD Sender: No OFD packet to send [19:54:27]*** Cut start [19:54:27]*** Partial cut [19:54:27]*** CUTSNS_PIN = 1 [19:54:27]*** CUTSNS_PIN = 0 [19:54:28]*** Brake cut motor [19:54:28]Read from MH i2c: 01 [19:54:28]MH_I2C_Read... [19:54:28]*** Stop cut motor [19:54:28]*** Cut end [19:54:28]Read from MH i2c: 01 07 00 [19:54:28]MH_I2C_Read... [19:54:28]Read from MH i2c: 01 07 00 E0 0E 00 00 00 00 00 FF 0F 03 [19:54:28]process_action close_receipt done [19:54:28]requested_data is exist [19:54:28]produce_requested_data [19:54:28]requested_item fm.sn is exist - process it [19:54:28]wFMCommunicate request_size=4 [19:54:28]MH_SAM_APDU [19:54:28]CAPDU: 80 11 00 00 [19:54:28]Write to MH i2c: E2 08 00 E1 0E 80 11 00 00 00 00 00 00 69 [19:54:28]Write i2c OK [19:54:28]MH_I2C_Read... [19:54:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:54:28]Read from MH i2c: E2 [19:54:28]MH_I2C_Read... [19:54:28]Read from MH i2c: E2 17 00 [19:54:28]MH_I2C_Read... [19:54:28]Read from MH i2c: E2 17 00 E1 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 BC [19:54:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [19:54:28]wFMCommunicate OK [19:54:28]requested_item fd.num is exist - process it [19:54:28]SAM_PROTO_GetFieldsCounters [19:54:28]wFMCommunicate request_size=4 [19:54:28]MH_SAM_APDU [19:54:28]CAPDU: 80 13 00 00 [19:54:28]Write to MH i2c: E2 08 00 E2 0E 80 13 00 00 00 00 00 00 6C [19:54:28]Write i2c OK [19:54:28]MH_I2C_Read... [19:54:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:54:28]Read from MH i2c: E2 [19:54:28]MH_I2C_Read... [19:54:28]Read from MH i2c: E2 62 00 [19:54:28]MH_I2C_Read... [19:54:28]Read from MH i2c: E2 62 00 E2 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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 66 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 D4 00 00 00 5E 04 04 00 D4 00 00 00 57 04 04 00 D5 00 00 00 19 04 04 00 00 00 00 00 90 00 6D [19:54: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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 66 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 D4 00 00 00 5E 04 04 00 D4 00 00 00 57 04 04 00 D5 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:54:28]wFMCommunicate OK [19:54:28]SAM_PROTO_GetFieldsCounters done [19:54:28]requested_item shift.num is exist - process it [19:54:28]requested_item shift.opened is exist - process it [19:54:28]req_shift_opened [19:54:28]FM_GetShiftState [19:54:28]SAM_PROTO_GetShiftState [19:54:28]wFMCommunicate request_size=4 [19:54:28]MH_SAM_APDU [19:54:28]CAPDU: 80 13 01 00 [19:54:28]Write to MH i2c: E2 08 00 E3 0E 80 13 01 00 00 00 00 00 6E [19:54:28]Write i2c OK [19:54:28]MH_I2C_Read... [19:54:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:54:28]Read from MH i2c: E2 [19:54:28]MH_I2C_Read... [19:54:28]Read from MH i2c: E2 0E 00 [19:54:28]MH_I2C_Read... [19:54:28]Read from MH i2c: E2 0E 00 E3 0E 00 09 00 01 04 26 72 66 00 00 00 00 90 00 7C [19:54:28]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [19:54:28]wFMCommunicate OK [19:54:28]SAM_PROTO_GetShiftState done [19:54:28]FM_GetShiftState done [19:54:28]req_shift_opened done [19:54:28]requested_item shift.open_date is exist - process it [19:54:28]req_shift_open_date [19:54:28]req_shift_open_date done [19:54:28]produce_requested_data done [19:54:28]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103782,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [19:54:28]process_action_free close_receipt [19:54:28]json_value_free [19:54:28]json_value_free done [19:54:28]process_json_proto returns [19:54:28]Send response to host [19:54:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103782,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [19:54:28]free response buf [19:54:28]execute_script done [19:54:28]execute_script returns [19:54:28]free content buf [19:54:28]Sock 9.Close socket [19:54:28]Sock 9.Thread stoped [19:54:32]OFD Sender: No OFD packet to send [19:54:37]OFD Sender: No OFD packet to send [19:54:42]OFD Sender: No OFD packet to send [19:54:47]OFD Sender: No OFD packet to send [19:54:52]OFD Sender: No OFD packet to send [19:54:57]OFD Sender: No OFD packet to send [19:55:02]OFD Sender: No OFD packet to send [19:55:07]OFD Sender: No OFD packet to send [19:55:12]OFD Sender: No OFD packet to send [19:55:17]OFD Sender: No OFD packet to send [19:55:22]OFD Sender: No OFD packet to send [19:55:27]OFD Sender: No OFD packet to send [19:55:32]OFD Sender: No OFD packet to send [19:55:37]OFD Sender: No OFD packet to send [19:55:42]OFD Sender: No OFD packet to send [19:55:47]OFD Sender: No OFD packet to send [19:55:52]OFD Sender: No OFD packet to send [19:55:57]OFD Sender: No OFD packet to send [19:56:02]OFD Sender: No OFD packet to send [19:56:07]OFD Sender: No OFD packet to send [19:56:12]OFD Sender: No OFD packet to send [19:56:17]OFD Sender: No OFD packet to send [19:56:22]OFD Sender: No OFD packet to send [19:56:23]accept exits with 8 [19:56:23]New connection [19:56:23]New thread 3066940772 created [19:56:23]Thread 3066797412 joined [19:56:23]Waiting for new connection... [19:56:23] Sock 8.Parse request [19:56:23]Sock 8.Check first char [19:56:23]Sock 8.First char is OK [19:56:23]request: POST /json_proto HTTP/1.0 [19:56:23]Method: POST [19:56:23]URL: /json_proto [19:56:23]Method is POST - this is cgi request [19:56:23]url: /json_proto [19:56:23]query_string will be loaded in cgi processing [19:56:23]execute_cgi json_proto POST (null) [19:56:23]execute_cgi path=json_proto method=POST [19:56:23]POST find Content-Length [19:56:23]Host: 172.17.38.133:8080 [19:56:23]Content-Length: 677 [19:56:23]Content-Type: application/json [19:56:23] [19:56:23]POST finish read [19:56:23]Found Content-Length = 677 [19:56:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673077", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:56:23]execute_script... [19:56: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)673077", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:56:23]POST & json_proto [19:56:23]process_json_proto [19:56:23]json parsed OK: [19:56:23]protocol is kg_v1.0 [19:56:23]action value=close_receipt [19:56:23]process_action close_receipt [19:56:23]cmd_close_receipt [19:56:23]MH_GetDate [19:56:23]Write to MH i2c: F0 00 00 E4 0E E1 [19:56:23]Write i2c OK [19:56:23]MH_I2C_Read... [19:56:23]Read from MH i2c: F0 [19:56:23]MH_I2C_Read... [19:56:23]Read from MH i2c: F0 09 00 [19:56:23]MH_I2C_Read... [19:56:23]Read from MH i2c: F0 09 00 E4 0E 00 E8 37 73 66 BD 8F 7C 64 0E [19:56:23]GetLastDocTimeStamp 1718826865 [19:56:23]current date 1718826984 [19:56:23]FM_GetShiftState [19:56:23]SAM_PROTO_GetShiftState [19:56:23]wFMCommunicate request_size=4 [19:56:23]MH_SAM_APDU [19:56:23]CAPDU: 80 13 01 00 [19:56:23]Write to MH i2c: E2 08 00 E5 0E 80 13 01 00 00 00 00 00 70 [19:56:23]Write i2c OK [19:56:23]MH_I2C_Read... [19:56:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:56:23]Read from MH i2c: E2 [19:56:23]MH_I2C_Read... [19:56:23]Read from MH i2c: E2 0E 00 [19:56:23]MH_I2C_Read... [19:56:23]Read from MH i2c: E2 0E 00 E5 0E 00 09 00 01 04 26 72 66 00 00 00 00 90 00 7E [19:56:23]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [19:56:23]wFMCommunicate OK [19:56:23]SAM_PROTO_GetShiftState done [19:56:23]FM_GetShiftState done [19:56:23]opened in 1718756868 [19:56:23]opened+sec_in_day 1718843268 [19:56:23]quantity*price = 50065 [19:56:23]sum+1 = 50067 [19:56:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.17 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 213 19.06.2024 19:56 Смена: 353 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103783 ФПД: 141575332003266 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T195624&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103783&fm=141575332003266&tin=02508201610067®Number=0000000000092785&sum=50000 [19:56:24]StoreToDocumentArchive [19:56:24]shift 353 fd 103783 [19:56:24]save to /storage/0353/doc_00103783 [19:56:24]save last doc name /storage/0353/doc_00103783 to /storage/kkm_last_doc_name [19:56:24]save OK [19:56:24]Clear old archive folders... [19:56:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:56:24]tlvbuf is 016D26A0 [19:56:24]SAM_PROTO_ClearQueue [19:56:24]wFMCommunicate request_size=4 [19:56:24]MH_SAM_APDU [19:56:24]CAPDU: 80 09 00 00 [19:56:24]Write to MH i2c: E2 08 00 F2 0E 80 09 00 00 00 00 00 00 72 [19:56:24]Write i2c OK [19:56:24]MH_I2C_Read... [19:56:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:56:24]Read from MH i2c: E2 [19:56:24]MH_I2C_Read... [19:56:24]Read from MH i2c: E2 03 00 [19:56:24]MH_I2C_Read... [19:56:24]Read from MH i2c: E2 03 00 F2 0E 00 90 00 74 [19:56:24]RAPDU: 90 00 [19:56:24]wFMCommunicate OK [19:56:24]SAM_PROTO_ClearQueue done [19:56:24]KKMCreateOFDPacket [19:56:24]OFDProtocolAddRootSTLVToBuf [19:56:24]FM_MakeSignedData [19:56:24]FM_MakeSignedData [19:56:24]SAM_PROTO_SignData [19:56:24]wFMCommunicate request_size=4 [19:56:24]MH_SAM_APDU [19:56:24]CAPDU: 80 0D 01 02 [19:56:24]Write to MH i2c: E2 08 00 F3 0E 80 0D 01 02 00 00 00 00 7A [19:56:24]Write i2c OK [19:56:24]MH_I2C_Read... [19:56:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:56:24]Read from MH i2c: E2 [19:56:24]MH_I2C_Read... [19:56:24]Read from MH i2c: E2 03 00 [19:56:24]MH_I2C_Read... [19:56:24]Read from MH i2c: E2 03 00 F3 0E 00 90 00 75 [19:56:24]RAPDU: 90 00 [19:56:24]wFMCommunicate OK [19:56:24]wFMCommunicate request_size=255 [19:56:24]MH_SAM_APDU [19:56: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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D5 00 00 00 F4 03 04 00 E8 37 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 67 95 01 00 35 04 06 00 80 [19:56:24]Write to MH i2c: E2 02 01 F4 0E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D5 00 00 00 F4 03 04 00 E8 37 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 67 95 01 00 35 04 06 00 80 00 00 E0 [19:56:24]Write i2c OK [19:56:24]MH_I2C_Read... [19:56:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:56:24]Read from MH i2c: E2 [19:56:24]MH_I2C_Read... [19:56:24]Read from MH i2c: E2 03 00 [19:56:24]MH_I2C_Read... [19:56:24]Read from MH i2c: E2 03 00 F4 0E 00 90 00 76 [19:56:24]RAPDU: 90 00 [19:56:24]wFMCommunicate OK [19:56:24]wFMCommunicate request_size=10 [19:56:24]MH_SAM_APDU [19:56:24]CAPDU: 80 0D 02 02 05 C3 13 5F 7D C2 [19:56:24]Write to MH i2c: E2 0D 00 F5 0E 80 0D 02 02 05 00 C3 13 5F 7D C2 00 00 FB [19:56:24]Write i2c OK [19:56:24]MH_I2C_Read... [19:56:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:56:24]Read from MH i2c: E2 [19:56:24]MH_I2C_Read... [19:56:24]Read from MH i2c: E2 03 00 [19:56:24]MH_I2C_Read... [19:56:24]Read from MH i2c: E2 03 00 F5 0E 00 90 00 77 [19:56:24]RAPDU: 90 00 [19:56:24]wFMCommunicate OK [19:56:24]wFMCommunicate request_size=4 [19:56:24]MH_SAM_APDU [19:56:24]CAPDU: 80 0D 03 02 [19:56:24]Write to MH i2c: E2 08 00 F6 0E 80 0D 03 02 00 00 00 00 7F [19:56:24]Write i2c OK [19:56:24]MH_I2C_Read... [19:56:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:56:24]Read from MH i2c: E2 [19:56:24]MH_I2C_Read... [19:56:24]Read from MH i2c: E2 0B 00 [19:56:24]MH_I2C_Read... [19:56:24]Read from MH i2c: E2 0B 00 F6 0E 00 05 66 E6 9B 5D 34 2D 11 90 00 3B [19:56:24]RAPDU: 05 66 E6 9B 5D 34 2D 11 90 00 [19:56:24]wFMCommunicate OK [19:56:24]SAM_PROTO_SignData done [19:56:24]FM_MakeSignedData done [19:56:24]CreateOFDProtocolMessage [19:56:24]wFMCommunicate request_size=4 [19:56:24]MH_SAM_APDU [19:56:24]CAPDU: 80 11 00 00 [19:56:24]Write to MH i2c: E2 08 00 F7 0E 80 11 00 00 00 00 00 00 7F [19:56:24]Write i2c OK [19:56:24]MH_I2C_Read... [19:56:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:56:24]Read from MH i2c: E2 [19:56:24]MH_I2C_Read... [19:56:24]Read from MH i2c: E2 17 00 [19:56:24]MH_I2C_Read... [19:56:24]Read from MH i2c: E2 17 00 F7 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 D2 [19:56:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [19:56:24]wFMCommunicate OK [19:56:24]CreateOFDProtocolMessage done [19:56:24]OFDSenderStorePacket 103783 [19:56:24]StoreOFDPacket docnum=103783 [19:56:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 B2 90 07 01 BE 7B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D5 00 00 00 F4 03 04 00 E8 37 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 67 95 01 00 35 04 06 00 80 C3 13 5F 7D C2 05 66 E6 9B 5D 34 2D 11 [19:56:24]CheckFolder [19:56:24]dirname=/storage/ofd_packets [19:56:24]CheckFolder done [19:56:24]ProducePacketName [19:56:24]name=ofd_packets/00103783 [19:56:24]NVStorageSaveData ofd_packets/00103783 [19:56:24]File name is /storage/ofd_packets/00103783 [19:56:24]Write 301 bytes [19:56:24]NVStorageSaveData done [19:56:24]OFDSenderStorePacket done [19:56:24]KKMCreateOFDPacket done [19:56:24]NVStorageSaveData kkm_last_timestamp [19:56:24]File name is /storage/kkm_last_timestamp [19:56:24]Write 4 bytes [19:56:24]NVStorageSaveData done [19:56:24]ExternCall_PrintAddStr [19:56:24]wPrintStart [19:56:24]Write to MH i2c: 01 00 00 F8 0E 06 [19:56:24]Write i2c OK [19:56:24]MH_I2C_Read... [19:56:24]Read from MH i2c: 01 [19:56:24]MH_I2C_Read... [19:56:24]Read from MH i2c: 01 07 00 [19:56:24]MH_I2C_Read... [19:56:24]Read from MH i2c: 01 07 00 F8 0E 00 00 00 00 00 FF 0F 1B [19:56:24]RasterBufferAndPrint [19:56:24]line Счет N : (1)673077 [19:56:24]line ИНН: 02508201610067 [19:56:24]line Контрольно-Кассовый Чек [19:56:24]line ПРОДАЖА [19:56:24]line ТРК (МРК, ГНК) : 32 [19:56:24]line Товар: 2710124130 [19:56:24]line Аи-92-К-5 [19:56:24]line 7.540 * 66.40 [19:56:24]line = 500.66 [19:56:24]line НДС 12% НСП 1% [19:56:24]line > о реализуемом товаре [19:56:24]line ОКРУГЛЕНИЕ: -0.66 [19:56:24]line ИТОГО: 500.00 [19:56:24]line Внесено: 500.00 [19:56:24]line СДАЧА: 0.00 [19:56:24]line НСП 1% : 4.43 [19:56:24]line НДС 12% : 53.17 [19:56:24]line Наличными: 500.00 [19:56:24]line Безнал.: 0.00 [19:56:24]line Место: АЗС № 120 "Партнер Нефть" [19:56:24]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [19:56:24]line СНО: Общий режим [19:56:24]line Чек 213 19.06.2024 19:56 [19:56:24]line Смена: 353 ФФД: 1.0 [19:56:24]line ЗНМ: 0300000164 [19:56:24]line РНМ: 0000000000092785 [19:56:24]line Версия ККМ: 001 [19:56:24]line ФМ: 0000000000875093 [19:56:24]line ФД: 103783 [19:56:24]line ФПД: 141575332003266 [19:56:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T195624&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103783&fm=141575332003266&tin=02508201610067®Number=0000000000092785&sum=50000 [19:56:25]OFD Sender: Processing packet 103783 [packets to send 17, broken 16] [19:56:25]ProducePacketName [19:56:25]name=ofd_packets/00103783 [19:56:25]OFD Sender: To server: pG, [19:56:25]CommunicateWithHost lk.salyk.kg:30040 [19:56:25]ConnectInit lk.salyk.kg [19:56:25]written 0, free lines is 4095 [19:56:25]Connected sock=10 [19:56: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 39 33 0F 01 00 00 B2 90 07 01 BE 7B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D5 00 00 00 F4 03 04 00 E8 37 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 67 95 01 00 35 04 06 00 80 C3 13 5F 7D C2 05 66 E6 9B 5D 34 2D 11 [19:56: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 39 33 4F 00 00 00 64 EC 47 00 68 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 39 33 10 04 04 00 67 95 01 00 F4 03 04 00 70 DE 72 66 B6 04 01 00 00 E6 51 12 CF 5D BE F1 7D [19:56:25]CommunicateWithHost err = 0 [19:56:25]CheckOFDResponse [19:56:25]1017 (14) - 77093643461234 [19:56:25]1041 (16) - 0000000000875093 [19:56:25]1040 (4) - 103783 [19:56:25]1012 (4) - 19.06.2024 13:34 [19:56:25]1206 (1) - 0 [19:56:25]OFD Sender: Remove packet 103783 [19:56:25]ProducePacketName [19:56:25]name=ofd_packets/00103783 [19:56:25]NVStorageDeleteData [19:56:25]Write to MH i2c: 01 00 00 23 0F 32 [19:56:25]Write i2c OK [19:56:25]MH_I2C_Read... [19:56:25]Read from MH i2c: 01 [19:56:25]MH_I2C_Read... [19:56:25]Read from MH i2c: 01 07 00 [19:56:25]MH_I2C_Read... [19:56:25]Read from MH i2c: 01 07 00 23 0F 00 00 00 00 00 D8 0C 1D [19:56:25]RasterBufferAndPrint [19:56:25]line [19:56:25]line [19:56:25]line [19:56:25]line [19:56:25]line [19:56:25]written 0, free lines is 3295 [19:56:25]MH_Cut [19:56:25]Write to MH i2c: D1 01 00 2A 0F 01 0B [19:56:25]Write i2c OK [19:56:25]MH_I2C_Read... [19:56:25]Read from MH i2c: D1 [19:56:25]MH_I2C_Read... [19:56:25]Read from MH i2c: D1 01 00 [19:56:25]MH_I2C_Read... [19:56:25]Read from MH i2c: D1 01 00 2A 0F 00 0A [19:56:25]Write to MH i2c: 01 00 00 2B 0F 3A [19:56:25]Write i2c OK [19:56:25]MH_I2C_Read... [19:56:25]OFD Sender: No OFD packet to send [19:56:26]*** Cut start [19:56:26]*** Partial cut [19:56:26]*** CUTSNS_PIN = 1 [19:56:26]*** CUTSNS_PIN = 0 [19:56:26]*** Brake cut motor [19:56:26]Read from MH i2c: 01 [19:56:26]MH_I2C_Read... [19:56:26]*** Stop cut motor [19:56:26]*** Cut end [19:56:26]Read from MH i2c: 01 07 00 [19:56:26]MH_I2C_Read... [19:56:26]Read from MH i2c: 01 07 00 2B 0F 00 00 00 00 00 FF 0F 4F [19:56:26]process_action close_receipt done [19:56:26]requested_data is exist [19:56:26]produce_requested_data [19:56:26]requested_item fm.sn is exist - process it [19:56:26]wFMCommunicate request_size=4 [19:56:26]MH_SAM_APDU [19:56:26]CAPDU: 80 11 00 00 [19:56:26]Write to MH i2c: E2 08 00 2C 0F 80 11 00 00 00 00 00 00 B5 [19:56:26]Write i2c OK [19:56:26]MH_I2C_Read... [19:56:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:56:26]Read from MH i2c: E2 [19:56:26]MH_I2C_Read... [19:56:26]Read from MH i2c: E2 17 00 [19:56:26]MH_I2C_Read... [19:56:26]Read from MH i2c: E2 17 00 2C 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 08 [19:56:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [19:56:26]wFMCommunicate OK [19:56:26]requested_item fd.num is exist - process it [19:56:26]SAM_PROTO_GetFieldsCounters [19:56:26]wFMCommunicate request_size=4 [19:56:26]MH_SAM_APDU [19:56:26]CAPDU: 80 13 00 00 [19:56:26]Write to MH i2c: E2 08 00 2D 0F 80 13 00 00 00 00 00 00 B8 [19:56:26]Write i2c OK [19:56:26]MH_I2C_Read... [19:56:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:56:27]Read from MH i2c: E2 [19:56:27]MH_I2C_Read... [19:56:27]Read from MH i2c: E2 62 00 [19:56:27]MH_I2C_Read... [19:56:27]Read from MH i2c: E2 62 00 2D 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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 67 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 D5 00 00 00 5E 04 04 00 D5 00 00 00 57 04 04 00 D6 00 00 00 19 04 04 00 00 00 00 00 90 00 BD [19:56: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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 67 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 D5 00 00 00 5E 04 04 00 D5 00 00 00 57 04 04 00 D6 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:56:27]wFMCommunicate OK [19:56:27]SAM_PROTO_GetFieldsCounters done [19:56:27]requested_item shift.num is exist - process it [19:56:27]requested_item shift.opened is exist - process it [19:56:27]req_shift_opened [19:56:27]FM_GetShiftState [19:56:27]SAM_PROTO_GetShiftState [19:56:27]wFMCommunicate request_size=4 [19:56:27]MH_SAM_APDU [19:56:27]CAPDU: 80 13 01 00 [19:56:27]Write to MH i2c: E2 08 00 2E 0F 80 13 01 00 00 00 00 00 BA [19:56:27]Write i2c OK [19:56:27]MH_I2C_Read... [19:56:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:56:27]Read from MH i2c: E2 [19:56:27]MH_I2C_Read... [19:56:27]Read from MH i2c: E2 0E 00 [19:56:27]MH_I2C_Read... [19:56:27]Read from MH i2c: E2 0E 00 2E 0F 00 09 00 01 04 26 72 66 00 00 00 00 90 00 C8 [19:56:27]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [19:56:27]wFMCommunicate OK [19:56:27]SAM_PROTO_GetShiftState done [19:56:27]FM_GetShiftState done [19:56:27]req_shift_opened done [19:56:27]requested_item shift.open_date is exist - process it [19:56:27]req_shift_open_date [19:56:27]req_shift_open_date done [19:56:27]produce_requested_data done [19:56:27]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103783,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [19:56:27]process_action_free close_receipt [19:56:27]json_value_free [19:56:27]json_value_free done [19:56:27]process_json_proto returns [19:56:27]Send response to host [19:56:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103783,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [19:56:27]free response buf [19:56:27]execute_script done [19:56:27]execute_script returns [19:56:27]free content buf [19:56:27]Sock 8.Close socket [19:56:27]Sock 8.Thread stoped [19:56:30]OFD Sender: No OFD packet to send [19:56:35]OFD Sender: No OFD packet to send [19:56:41]OFD Sender: No OFD packet to send [19:56:46]OFD Sender: No OFD packet to send [19:56:51]OFD Sender: No OFD packet to send [19:56:56]OFD Sender: No OFD packet to send [19:57:01]OFD Sender: No OFD packet to send [19:57:06]OFD Sender: No OFD packet to send [19:57:11]OFD Sender: No OFD packet to send [19:57:16]OFD Sender: No OFD packet to send [19:57:21]OFD Sender: No OFD packet to send [19:57:26]OFD Sender: No OFD packet to send [19:57:31]OFD Sender: No OFD packet to send [19:57:36]OFD Sender: No OFD packet to send [19:57:38]accept exits with 9 [19:57:38]New connection [19:57:38]New thread 3066797412 created [19:57:38]Thread 3066940772 joined [19:57:38]Waiting for new connection... [19:57:38] Sock 9.Parse request [19:57:38]Sock 9.Check first char [19:57:38]Sock 9.First char is OK [19:57:38]request: POST /json_proto HTTP/1.0 [19:57:38]Method: POST [19:57:38]URL: /json_proto [19:57:38]Method is POST - this is cgi request [19:57:38]url: /json_proto [19:57:38]query_string will be loaded in cgi processing [19:57:38]execute_cgi json_proto POST (null) [19:57:38]execute_cgi path=json_proto method=POST [19:57:38]POST find Content-Length [19:57:38]Host: 172.17.38.133:8080 [19:57:38]Content-Length: 1207 [19:57:38]Content-Type: application/json [19:57:38] [19:57:38]POST finish read [19:57:38]Found Content-Length = 1207 [19:57:38]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 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. \u000A\u0421\u0447\u0435\u0442 N : (1)673076\u000A19.06.2024 19:34\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 41\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124500\u000A\u0410\u0438-95-\u041A-5\u000A 27.070 x 73.90\u000A\u0418\u0422\u041E\u0413: 2000.47\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\u000A76487\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:57:38]execute_script... [19:57:38]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 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. \u000A\u0421\u0447\u0435\u0442 N : (1)673076\u000A19.06.2024 19:34\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 41\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124500\u000A\u0410\u0438-95-\u041A-5\u000A 27.070 x 73.90\u000A\u0418\u0422\u041E\u0413: 2000.47\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\u000A76487\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:57:38]POST & json_proto [19:57:38]process_json_proto [19:57:38]json parsed OK: [19:57:38]protocol is kg_v1.0 [19:57:38]action value=print_text [19:57:38]process_action print_text [19:57:38]cmd_print_text [19:57:38]ExternCall_PrintAddStr [19:57:38]wPrintStart [19:57:38]Write to MH i2c: 01 00 00 2F 0F 3E [19:57:38]Write i2c OK [19:57:38]MH_I2C_Read... [19:57:38]Read from MH i2c: 01 [19:57:38]MH_I2C_Read... [19:57:38]Read from MH i2c: 01 07 00 [19:57:38]MH_I2C_Read... [19:57:38]Read from MH i2c: 01 07 00 2F 0F 00 00 00 00 00 FF 0F 53 [19:57:38]RasterBufferAndPrint [19:57:38]line *****ТОВАРНЫЙ ЧЕК***** [19:57:38]line АЗС 120 [19:57:38]line Партнер нефть [19:57:38]line 02508201610067 [19:57:38]line Кассир : Байбугуева Г. [19:57:38]line Счет N : (1)673076 [19:57:38]line 19.06.2024 19:34 [19:57:38]line ПРОДАЖА [19:57:38]line ТРК (МРК, ГНК): 41 [19:57:38]line Вид ГСМ : 2710124500 [19:57:38]line Аи-95-К-5 [19:57:38]line 27.070 x 73.90 [19:57:38]line ИТОГ: 2000.47 [19:57:38]line Тип оплаты: Талоны: Топливная Карта [19:57:38]line 76487 [19:57:38]line ______________________ [19:57:38]line (подпись) [19:57:38]written 0, free lines is 4095 [19:57:38]Write to MH i2c: 01 00 00 43 0F 52 [19:57:38]Write i2c OK [19:57:38]MH_I2C_Read... [19:57:38]Read from MH i2c: 01 [19:57:38]MH_I2C_Read... [19:57:38]Read from MH i2c: 01 07 00 [19:57:38]MH_I2C_Read... [19:57:38]Read from MH i2c: 01 07 00 43 0F 00 00 00 00 00 11 0E 78 [19:57:38]RasterBufferAndPrint [19:57:38]line [19:57:38]line [19:57:38]line [19:57:38]line [19:57:38]line [19:57:38]written 0, free lines is 3602 [19:57:38]MH_Cut [19:57:38]Write to MH i2c: D1 01 00 4A 0F 01 2B [19:57:38]Write i2c OK [19:57:38]MH_I2C_Read... [19:57:38]Read from MH i2c: D1 [19:57:38]MH_I2C_Read... [19:57:38]Read from MH i2c: D1 01 00 [19:57:38]MH_I2C_Read... [19:57:38]Read from MH i2c: D1 01 00 4A 0F 00 2A [19:57:38]Write to MH i2c: 01 00 00 4B 0F 5A [19:57:38]Write i2c OK [19:57:38]MH_I2C_Read... [19:57:38]*** Cut start [19:57:38]*** Partial cut [19:57:38]*** CUTSNS_PIN = 1 [19:57:38]*** CUTSNS_PIN = 0 [19:57:39]*** Brake cut motor [19:57:39]Read from MH i2c: 01 [19:57:39]MH_I2C_Read... [19:57:39]*** Stop cut motor [19:57:39]*** Cut end [19:57:39]Read from MH i2c: 01 07 00 [19:57:39]MH_I2C_Read... [19:57:39]Read from MH i2c: 01 07 00 4B 0F 00 00 00 00 00 FF 0F 6F [19:57:39]process_action print_text done [19:57:39]requested_data is exist [19:57:39]produce_requested_data [19:57:39]requested_item fm.sn is exist - process it [19:57:39]wFMCommunicate request_size=4 [19:57:39]MH_SAM_APDU [19:57:39]CAPDU: 80 11 00 00 [19:57:39]Write to MH i2c: E2 08 00 4C 0F 80 11 00 00 00 00 00 00 D5 [19:57:39]Write i2c OK [19:57:39]MH_I2C_Read... [19:57:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:57:39]Read from MH i2c: E2 [19:57:39]MH_I2C_Read... [19:57:39]Read from MH i2c: E2 17 00 [19:57:39]MH_I2C_Read... [19:57:39]Read from MH i2c: E2 17 00 4C 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 28 [19:57:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [19:57:39]wFMCommunicate OK [19:57:39]requested_item fd.num is exist - process it [19:57:39]SAM_PROTO_GetFieldsCounters [19:57:39]wFMCommunicate request_size=4 [19:57:39]MH_SAM_APDU [19:57:39]CAPDU: 80 13 00 00 [19:57:39]Write to MH i2c: E2 08 00 4D 0F 80 13 00 00 00 00 00 00 D8 [19:57:39]Write i2c OK [19:57:39]MH_I2C_Read... [19:57:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:57:39]Read from MH i2c: E2 [19:57:39]MH_I2C_Read... [19:57:39]Read from MH i2c: E2 62 00 [19:57:39]MH_I2C_Read... [19:57:39]Read from MH i2c: E2 62 00 4D 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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 67 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 D5 00 00 00 5E 04 04 00 D5 00 00 00 57 04 04 00 D6 00 00 00 19 04 04 00 00 00 00 00 90 00 DD [19:57:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 67 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 D5 00 00 00 5E 04 04 00 D5 00 00 00 57 04 04 00 D6 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:57:39]wFMCommunicate OK [19:57:39]SAM_PROTO_GetFieldsCounters done [19:57:39]requested_item shift.num is exist - process it [19:57:39]requested_item shift.opened is exist - process it [19:57:39]req_shift_opened [19:57:39]FM_GetShiftState [19:57:39]SAM_PROTO_GetShiftState [19:57:39]wFMCommunicate request_size=4 [19:57:39]MH_SAM_APDU [19:57:39]CAPDU: 80 13 01 00 [19:57:39]Write to MH i2c: E2 08 00 4E 0F 80 13 01 00 00 00 00 00 DA [19:57:39]Write i2c OK [19:57:39]MH_I2C_Read... [19:57:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:57:39]Read from MH i2c: E2 [19:57:39]MH_I2C_Read... [19:57:39]Read from MH i2c: E2 0E 00 [19:57:39]MH_I2C_Read... [19:57:39]Read from MH i2c: E2 0E 00 4E 0F 00 09 00 01 04 26 72 66 00 00 00 00 90 00 E8 [19:57:39]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [19:57:39]wFMCommunicate OK [19:57:39]SAM_PROTO_GetShiftState done [19:57:39]FM_GetShiftState done [19:57:39]req_shift_opened done [19:57:39]requested_item shift.open_date is exist - process it [19:57:39]req_shift_open_date [19:57:39]req_shift_open_date done [19:57:39]produce_requested_data done [19:57:39]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103783,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [19:57:39]process_action_free print_text [19:57:39]json_value_free [19:57:39]json_value_free done [19:57:39]process_json_proto returns [19:57:39]Send response to host [19:57:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103783,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [19:57:39]free response buf [19:57:39]execute_script done [19:57:39]execute_script returns [19:57:39]free content buf [19:57:39]Sock 9.Close socket [19:57:39]Sock 9.Thread stoped [19:57:41]OFD Sender: No OFD packet to send [19:57:46]OFD Sender: No OFD packet to send [19:57:51]OFD Sender: No OFD packet to send [19:57:56]OFD Sender: No OFD packet to send [19:58:01]OFD Sender: No OFD packet to send [19:58:06]OFD Sender: No OFD packet to send [19:58:11]OFD Sender: No OFD packet to send [19:58:11]accept exits with 8 [19:58:11]New connection [19:58:11]New thread 3066940772 created [19:58:11]Thread 3066797412 joined [19:58:11]Waiting for new connection... [19:58:11] Sock 8.Parse request [19:58:11]Sock 8.Check first char [19:58:11]Sock 8.First char is OK [19:58:11]request: POST /json_proto HTTP/1.0 [19:58:11]Method: POST [19:58:11]URL: /json_proto [19:58:11]Method is POST - this is cgi request [19:58:11]url: /json_proto [19:58:11]query_string will be loaded in cgi processing [19:58:11]execute_cgi json_proto POST (null) [19:58:11]execute_cgi path=json_proto method=POST [19:58:11]POST find Content-Length [19:58:11]Host: 172.17.38.133:8080 [19:58:11]Content-Length: 682 [19:58:11]Content-Type: application/json [19:58:11] [19:58:11]POST finish read [19:58:11]Found Content-Length = 682 [19:58:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673078", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 5.490, "sum" : 400.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:58:11]execute_script... [19:58: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)673078", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 5.490, "sum" : 400.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:58:11]POST & json_proto [19:58:11]process_json_proto [19:58:11]json parsed OK: [19:58:11]protocol is kg_v1.0 [19:58:11]action value=close_receipt [19:58:11]process_action close_receipt [19:58:11]cmd_close_receipt [19:58:11]MH_GetDate [19:58:11]Write to MH i2c: F0 00 00 4F 0F 4D [19:58:11]Write i2c OK [19:58:11]MH_I2C_Read... [19:58:11]Read from MH i2c: F0 [19:58:11]MH_I2C_Read... [19:58:11]Read from MH i2c: F0 09 00 [19:58:11]MH_I2C_Read... [19:58:11]Read from MH i2c: F0 09 00 4F 0F 00 54 38 73 66 BD 8F 7C 64 E7 [19:58:11]GetLastDocTimeStamp 1718826984 [19:58:11]current date 1718827092 [19:58:11]FM_GetShiftState [19:58:11]SAM_PROTO_GetShiftState [19:58:11]wFMCommunicate request_size=4 [19:58:11]MH_SAM_APDU [19:58:11]CAPDU: 80 13 01 00 [19:58:11]Write to MH i2c: E2 08 00 50 0F 80 13 01 00 00 00 00 00 DC [19:58:11]Write i2c OK [19:58:11]MH_I2C_Read... [19:58:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:58:11]Read from MH i2c: E2 [19:58:11]MH_I2C_Read... [19:58:11]Read from MH i2c: E2 0E 00 [19:58:11]MH_I2C_Read... [19:58:11]Read from MH i2c: E2 0E 00 50 0F 00 09 00 01 04 26 72 66 00 00 00 00 90 00 EA [19:58:11]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [19:58:11]wFMCommunicate OK [19:58:11]SAM_PROTO_GetShiftState done [19:58:11]FM_GetShiftState done [19:58:11]opened in 1718756868 [19:58:11]opened+sec_in_day 1718843268 [19:58:11]quantity*price = 40022 [19:58:11]sum+1 = 40023 [19:58:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.50 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 214 19.06.2024 19:58 Смена: 353 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103784 ФПД: 66502385680497 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T195812&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103784&fm=66502385680497&tin=02508201610067®Number=0000000000092785&sum=40000 [19:58:12]StoreToDocumentArchive [19:58:12]shift 353 fd 103784 [19:58:12]save to /storage/0353/doc_00103784 [19:58:12]save last doc name /storage/0353/doc_00103784 to /storage/kkm_last_doc_name [19:58:12]save OK [19:58:12]Clear old archive folders... [19:58:12]ProcessDocumentItem done err = 0, tmpTLVsize=252 [19:58:12]tlvbuf is 016B1C10 [19:58:12]SAM_PROTO_ClearQueue [19:58:12]wFMCommunicate request_size=4 [19:58:12]MH_SAM_APDU [19:58:12]CAPDU: 80 09 00 00 [19:58:12]Write to MH i2c: E2 08 00 5D 0F 80 09 00 00 00 00 00 00 DE [19:58:12]Write i2c OK [19:58:12]MH_I2C_Read... [19:58:12]Read from MH i2c: E2 [19:58:12]MH_I2C_Read... [19:58:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:58:12]Read from MH i2c: E2 03 00 [19:58:12]MH_I2C_Read... [19:58:12]Read from MH i2c: E2 03 00 5D 0F 00 90 00 E0 [19:58:12]RAPDU: 90 00 [19:58:12]wFMCommunicate OK [19:58:12]SAM_PROTO_ClearQueue done [19:58:12]KKMCreateOFDPacket [19:58:12]OFDProtocolAddRootSTLVToBuf [19:58:12]FM_MakeSignedData [19:58:12]FM_MakeSignedData [19:58:12]SAM_PROTO_SignData [19:58:12]wFMCommunicate request_size=4 [19:58:12]MH_SAM_APDU [19:58:12]CAPDU: 80 0D 01 02 [19:58:12]Write to MH i2c: E2 08 00 5E 0F 80 0D 01 02 00 00 00 00 E6 [19:58:12]Write i2c OK [19:58:12]MH_I2C_Read... [19:58:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:58:12]Read from MH i2c: E2 [19:58:12]MH_I2C_Read... [19:58:12]Read from MH i2c: E2 03 00 [19:58:12]MH_I2C_Read... [19:58:12]Read from MH i2c: E2 03 00 5E 0F 00 90 00 E1 [19:58:12]RAPDU: 90 00 [19:58:12]wFMCommunicate OK [19:58:12]wFMCommunicate request_size=255 [19:58:12]MH_SAM_APDU [19:58:12]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 72 15 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 56 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D6 00 00 00 F4 03 04 00 54 38 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 68 95 01 00 35 04 06 00 [19:58:12]Write to MH i2c: E2 02 01 5F 0F 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 72 15 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 56 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D6 00 00 00 F4 03 04 00 54 38 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 68 95 01 00 35 04 06 00 00 00 A0 [19:58:12]Write i2c OK [19:58:12]MH_I2C_Read... [19:58:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:58:12]Read from MH i2c: E2 [19:58:12]MH_I2C_Read... [19:58:12]Read from MH i2c: E2 03 00 [19:58:12]MH_I2C_Read... [19:58:12]Read from MH i2c: E2 03 00 5F 0F 00 90 00 E2 [19:58:12]RAPDU: 90 00 [19:58:12]wFMCommunicate OK [19:58:12]wFMCommunicate request_size=11 [19:58:12]MH_SAM_APDU [19:58:12]CAPDU: 80 0D 02 02 06 3C 7B CB 13 40 71 [19:58:12]Write to MH i2c: E2 0E 00 60 0F 80 0D 02 02 06 00 3C 7B CB 13 40 71 00 00 3B [19:58:12]Write i2c OK [19:58:12]MH_I2C_Read... [19:58:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:58:12]Read from MH i2c: E2 [19:58:12]MH_I2C_Read... [19:58:12]Read from MH i2c: E2 03 00 [19:58:12]MH_I2C_Read... [19:58:12]Read from MH i2c: E2 03 00 60 0F 00 90 00 E3 [19:58:12]RAPDU: 90 00 [19:58:12]wFMCommunicate OK [19:58:12]wFMCommunicate request_size=4 [19:58:12]MH_SAM_APDU [19:58:12]CAPDU: 80 0D 03 02 [19:58:12]Write to MH i2c: E2 08 00 61 0F 80 0D 03 02 00 00 00 00 EB [19:58:12]Write i2c OK [19:58:12]MH_I2C_Read... [19:58:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:58:12]Read from MH i2c: E2 [19:58:12]MH_I2C_Read... [19:58:12]Read from MH i2c: E2 0B 00 [19:58:12]MH_I2C_Read... [19:58:12]Read from MH i2c: E2 0B 00 61 0F 00 82 FA 7A 93 2F FB 58 B7 90 00 AE [19:58:12]RAPDU: 82 FA 7A 93 2F FB 58 B7 90 00 [19:58:12]wFMCommunicate OK [19:58:12]SAM_PROTO_SignData done [19:58:12]FM_MakeSignedData done [19:58:12]CreateOFDProtocolMessage [19:58:12]wFMCommunicate request_size=4 [19:58:12]MH_SAM_APDU [19:58:12]CAPDU: 80 11 00 00 [19:58:12]Write to MH i2c: E2 08 00 62 0F 80 11 00 00 00 00 00 00 EB [19:58:12]Write i2c OK [19:58:12]MH_I2C_Read... [19:58:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:58:12]Read from MH i2c: E2 [19:58:12]MH_I2C_Read... [19:58:12]Read from MH i2c: E2 17 00 [19:58:12]MH_I2C_Read... [19:58:12]Read from MH i2c: E2 17 00 62 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 3E [19:58:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [19:58:12]wFMCommunicate OK [19:58:12]CreateOFDProtocolMessage done [19:58:12]OFDSenderStorePacket 103784 [19:58:12]StoreOFDPacket docnum=103784 [19:58:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 C0 0E 08 01 98 FC 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 72 15 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 56 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D6 00 00 00 F4 03 04 00 54 38 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 68 95 01 00 35 04 06 00 3C 7B CB 13 40 71 82 FA 7A 93 2F FB 58 B7 [19:58:12]CheckFolder [19:58:12]dirname=/storage/ofd_packets [19:58:12]CheckFolder done [19:58:12]ProducePacketName [19:58:12]name=ofd_packets/00103784 [19:58:12]NVStorageSaveData ofd_packets/00103784 [19:58:12]File name is /storage/ofd_packets/00103784 [19:58:12]Write 302 bytes [19:58:12]NVStorageSaveData done [19:58:12]OFDSenderStorePacket done [19:58:12]KKMCreateOFDPacket done [19:58:12]NVStorageSaveData kkm_last_timestamp [19:58:12]File name is /storage/kkm_last_timestamp [19:58:12]Write 4 bytes [19:58:12]NVStorageSaveData done [19:58:12]ExternCall_PrintAddStr [19:58:12]wPrintStart [19:58:12]Write to MH i2c: 01 00 00 63 0F 72 [19:58:12]Write i2c OK [19:58:12]MH_I2C_Read... [19:58:12]Read from MH i2c: 01 [19:58:12]MH_I2C_Read... [19:58:12]Read from MH i2c: 01 07 00 [19:58:12]MH_I2C_Read... [19:58:12]Read from MH i2c: 01 07 00 63 0F 00 00 00 00 00 FF 0F 87 [19:58:12]RasterBufferAndPrint [19:58:12]line Счет N : (1)673078 [19:58:12]line ИНН: 02508201610067 [19:58:12]line Контрольно-Кассовый Чек [19:58:12]line ПРОДАЖА [19:58:12]line ТРК (МРК, ГНК) : 11 [19:58:12]line Товар: 2710194210 [19:58:12]line ДТ(л)-К-5 [19:58:12]line 5.490 * 72.90 [19:58:12]line = 400.22 [19:58:12]line НДС 12% НСП 1% [19:58:12]line > о реализуемом товаре [19:58:12]line ОКРУГЛЕНИЕ: -0.22 [19:58:12]line ИТОГО: 400.00 [19:58:12]line Внесено: 400.00 [19:58:12]line СДАЧА: 0.00 [19:58:12]line НСП 1% : 3.54 [19:58:12]line НДС 12% : 42.50 [19:58:12]line Наличными: 400.00 [19:58:12]line Безнал.: 0.00 [19:58:12]line Место: АЗС № 120 "Партнер Нефть" [19:58:12]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [19:58:12]line СНО: Общий режим [19:58:12]line Чек 214 19.06.2024 19:58 [19:58:12]line Смена: 353 ФФД: 1.0 [19:58:12]line ЗНМ: 0300000164 [19:58:12]line РНМ: 0000000000092785 [19:58:12]line Версия ККМ: 001 [19:58:12]line ФМ: 0000000000875093 [19:58:12]line ФД: 103784 [19:58:12]line ФПД: 66502385680497 [19:58:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T195812&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103784&fm=66502385680497&tin=02508201610067®Number=0000000000092785&sum=40000 [19:58:13]OFD Sender: Processing packet 103784 [packets to send 17, broken 16] [19:58:13]ProducePacketName [19:58:13]name=ofd_packets/00103784 [19:58:13]OFD Sender: To server: pG, [19:58:13]CommunicateWithHost lk.salyk.kg:30040 [19:58:13]ConnectInit lk.salyk.kg [19:58:13]written 0, free lines is 4095 [19:58:13]Connected sock=10 [19:58: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 39 33 10 01 00 00 C0 0E 08 01 98 FC 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 72 15 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 56 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D6 00 00 00 F4 03 04 00 54 38 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 68 95 01 00 35 04 06 00 3C 7B CB 13 40 71 82 FA 7A 93 2F FB 58 B7 [19:58: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 39 33 4F 00 00 00 E0 38 47 00 70 7F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 68 95 01 00 F4 03 04 00 DC DE 72 66 B6 04 01 00 00 4A 95 1A 41 6E 10 5D 12 [19:58:13]CommunicateWithHost err = 0 [19:58:13]CheckOFDResponse [19:58:13]1017 (14) - 77093643461234 [19:58:13]1041 (16) - 0000000000875093 [19:58:13]1040 (4) - 103784 [19:58:13]1012 (4) - 19.06.2024 13:36 [19:58:13]1206 (1) - 0 [19:58:13]OFD Sender: Remove packet 103784 [19:58:13]ProducePacketName [19:58:13]name=ofd_packets/00103784 [19:58:13]NVStorageDeleteData [19:58:13]Write to MH i2c: 01 00 00 8E 0F 9D [19:58:13]Write i2c OK [19:58:13]MH_I2C_Read... [19:58:13]Read from MH i2c: 01 [19:58:13]MH_I2C_Read... [19:58:13]Read from MH i2c: 01 07 00 [19:58:13]MH_I2C_Read... [19:58:13]Read from MH i2c: 01 07 00 8E 0F 00 00 00 00 00 E8 0C 98 [19:58:13]RasterBufferAndPrint [19:58:13]line [19:58:13]line [19:58:13]line [19:58:13]line [19:58:13]line [19:58:13]written 0, free lines is 3310 [19:58:13]MH_Cut [19:58:13]Write to MH i2c: D1 01 00 95 0F 01 76 [19:58:13]Write i2c OK [19:58:13]MH_I2C_Read... [19:58:13]Read from MH i2c: D1 [19:58:13]MH_I2C_Read... [19:58:13]Read from MH i2c: D1 01 00 [19:58:13]MH_I2C_Read... [19:58:13]Read from MH i2c: D1 01 00 95 0F 00 75 [19:58:13]Write to MH i2c: 01 00 00 96 0F A5 [19:58:13]Write i2c OK [19:58:13]MH_I2C_Read... [19:58:14]OFD Sender: No OFD packet to send [19:58:14]*** Cut start [19:58:14]*** Partial cut [19:58:14]*** CUTSNS_PIN = 1 [19:58:14]*** CUTSNS_PIN = 0 [19:58:14]*** Brake cut motor [19:58:14]Read from MH i2c: 01 [19:58:14]MH_I2C_Read... [19:58:14]*** Stop cut motor [19:58:15]*** Cut end [19:58:15]Read from MH i2c: 01 07 00 [19:58:15]MH_I2C_Read... [19:58:15]Read from MH i2c: 01 07 00 96 0F 00 00 00 00 00 FF 0F BA [19:58:15]process_action close_receipt done [19:58:15]requested_data is exist [19:58:15]produce_requested_data [19:58:15]requested_item fm.sn is exist - process it [19:58:15]wFMCommunicate request_size=4 [19:58:15]MH_SAM_APDU [19:58:15]CAPDU: 80 11 00 00 [19:58:15]Write to MH i2c: E2 08 00 97 0F 80 11 00 00 00 00 00 00 20 [19:58:15]Write i2c OK [19:58:15]MH_I2C_Read... [19:58:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:58:15]Read from MH i2c: E2 [19:58:15]MH_I2C_Read... [19:58:15]Read from MH i2c: E2 17 00 [19:58:15]MH_I2C_Read... [19:58:15]Read from MH i2c: E2 17 00 97 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 73 [19:58:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [19:58:15]wFMCommunicate OK [19:58:15]requested_item fd.num is exist - process it [19:58:15]SAM_PROTO_GetFieldsCounters [19:58:15]wFMCommunicate request_size=4 [19:58:15]MH_SAM_APDU [19:58:15]CAPDU: 80 13 00 00 [19:58:15]Write to MH i2c: E2 08 00 98 0F 80 13 00 00 00 00 00 00 23 [19:58:15]Write i2c OK [19:58:15]MH_I2C_Read... [19:58:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:58:15]Read from MH i2c: E2 [19:58:15]MH_I2C_Read... [19:58:15]Read from MH i2c: E2 62 00 [19:58:15]MH_I2C_Read... [19:58:15]Read from MH i2c: E2 62 00 98 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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 68 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 D6 00 00 00 5E 04 04 00 D6 00 00 00 57 04 04 00 D7 00 00 00 19 04 04 00 00 00 00 00 90 00 2C [19:58: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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 68 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 D6 00 00 00 5E 04 04 00 D6 00 00 00 57 04 04 00 D7 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:58:15]wFMCommunicate OK [19:58:15]SAM_PROTO_GetFieldsCounters done [19:58:15]requested_item shift.num is exist - process it [19:58:15]requested_item shift.opened is exist - process it [19:58:15]req_shift_opened [19:58:15]FM_GetShiftState [19:58:15]SAM_PROTO_GetShiftState [19:58:15]wFMCommunicate request_size=4 [19:58:15]MH_SAM_APDU [19:58:15]CAPDU: 80 13 01 00 [19:58:15]Write to MH i2c: E2 08 00 99 0F 80 13 01 00 00 00 00 00 25 [19:58:15]Write i2c OK [19:58:15]MH_I2C_Read... [19:58:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:58:15]Read from MH i2c: E2 [19:58:15]MH_I2C_Read... [19:58:15]Read from MH i2c: E2 0E 00 [19:58:15]MH_I2C_Read... [19:58:15]Read from MH i2c: E2 0E 00 99 0F 00 09 00 01 04 26 72 66 00 00 00 00 90 00 33 [19:58:15]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [19:58:15]wFMCommunicate OK [19:58:15]SAM_PROTO_GetShiftState done [19:58:15]FM_GetShiftState done [19:58:15]req_shift_opened done [19:58:15]requested_item shift.open_date is exist - process it [19:58:15]req_shift_open_date [19:58:15]req_shift_open_date done [19:58:15]produce_requested_data done [19:58:15]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103784,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [19:58:15]process_action_free close_receipt [19:58:15]json_value_free [19:58:15]json_value_free done [19:58:15]process_json_proto returns [19:58:15]Send response to host [19:58:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103784,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [19:58:15]free response buf [19:58:15]execute_script done [19:58:15]execute_script returns [19:58:15]free content buf [19:58:15]Sock 8.Close socket [19:58:15]Sock 8.Thread stoped [19:58:19]OFD Sender: No OFD packet to send [19:58:24]OFD Sender: No OFD packet to send [19:58:29]OFD Sender: No OFD packet to send [19:58:34]OFD Sender: No OFD packet to send [19:58:39]OFD Sender: No OFD packet to send [19:58:44]OFD Sender: No OFD packet to send [19:58:49]OFD Sender: No OFD packet to send [19:58:54]OFD Sender: No OFD packet to send [19:58:59]OFD Sender: No OFD packet to send [19:59:04]OFD Sender: No OFD packet to send [19:59:09]OFD Sender: No OFD packet to send [19:59:14]OFD Sender: No OFD packet to send [19:59:19]OFD Sender: No OFD packet to send [19:59:24]OFD Sender: No OFD packet to send [19:59:29]OFD Sender: No OFD packet to send [19:59:34]OFD Sender: No OFD packet to send [19:59:39]OFD Sender: No OFD packet to send [19:59:44]OFD Sender: No OFD packet to send [19:59:49]OFD Sender: No OFD packet to send [19:59:54]OFD Sender: No OFD packet to send [19:59:59]OFD Sender: No OFD packet to send [20:00:04]OFD Sender: No OFD packet to send [20:00:09]OFD Sender: No OFD packet to send [20:00:14]OFD Sender: No OFD packet to send [20:00:19]OFD Sender: No OFD packet to send [20:00:24]OFD Sender: No OFD packet to send [20:00:27]accept exits with 9 [20:00:27]New connection [20:00:27]New thread 3066797412 created [20:00:27]Thread 3066940772 joined [20:00:27]Waiting for new connection... [20:00:27] Sock 9.Parse request [20:00:27]Sock 9.Check first char [20:00:27]Sock 9.First char is OK [20:00:27]request: POST /json_proto HTTP/1.0 [20:00:27]Method: POST [20:00:27]URL: /json_proto [20:00:27]Method is POST - this is cgi request [20:00:27]url: /json_proto [20:00:27]query_string will be loaded in cgi processing [20:00:27]execute_cgi json_proto POST (null) [20:00:27]execute_cgi path=json_proto method=POST [20:00:27]POST find Content-Length [20:00:27]Host: 172.17.38.133:8080 [20:00:27]Content-Length: 682 [20:00:27]Content-Type: application/json [20:00:27] [20:00:27]POST finish read [20:00:27]Found Content-Length = 682 [20:00:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673079", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:00:27]execute_script... [20: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)673079", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:00:27]POST & json_proto [20:00:27]process_json_proto [20:00:27]json parsed OK: [20:00:27]protocol is kg_v1.0 [20:00:27]action value=close_receipt [20:00:27]process_action close_receipt [20:00:27]cmd_close_receipt [20:00:27]MH_GetDate [20:00:27]Write to MH i2c: F0 00 00 9A 0F 98 [20:00:27]Write i2c OK [20:00:27]MH_I2C_Read... [20:00:27]Read from MH i2c: F0 [20:00:27]MH_I2C_Read... [20:00:27]Read from MH i2c: F0 09 00 [20:00:27]MH_I2C_Read... [20:00:27]Read from MH i2c: F0 09 00 9A 0F 00 DC 38 73 66 BD 8F 7C 64 BA [20:00:27]GetLastDocTimeStamp 1718827092 [20:00:27]current date 1718827228 [20:00:27]FM_GetShiftState [20:00:27]SAM_PROTO_GetShiftState [20:00:27]wFMCommunicate request_size=4 [20:00:27]MH_SAM_APDU [20:00:27]CAPDU: 80 13 01 00 [20:00:27]Write to MH i2c: E2 08 00 9B 0F 80 13 01 00 00 00 00 00 27 [20:00:27]Write i2c OK [20:00:27]MH_I2C_Read... [20:00:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:00:27]Read from MH i2c: E2 [20:00:27]MH_I2C_Read... [20:00:27]Read from MH i2c: E2 0E 00 [20:00:27]MH_I2C_Read... [20:00:27]Read from MH i2c: E2 0E 00 9B 0F 00 09 00 01 04 26 72 66 00 00 00 00 90 00 35 [20:00:27]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [20:00:27]wFMCommunicate OK [20:00:27]SAM_PROTO_GetShiftState done [20:00:27]FM_GetShiftState done [20:00:27]opened in 1718756868 [20:00:27]opened+sec_in_day 1718843268 [20:00:27]quantity*price = 100064 [20:00:27]sum+1 = 100066 [20:00:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.65 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 215 19.06.2024 20:00 Смена: 353 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103785 ФПД: 83205262497263 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T200028&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103785&fm=83205262497263&tin=02508201610067®Number=0000000000092785&sum=100000 [20:00:28]StoreToDocumentArchive [20:00:28]shift 353 fd 103785 [20:00:28]save to /storage/0353/doc_00103785 [20:00:28]save last doc name /storage/0353/doc_00103785 to /storage/kkm_last_doc_name [20:00:28]save OK [20:00:28]Clear old archive folders... [20:00:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:00:28]tlvbuf is 0169AB90 [20:00:28]SAM_PROTO_ClearQueue [20:00:28]wFMCommunicate request_size=4 [20:00:28]MH_SAM_APDU [20:00:28]CAPDU: 80 09 00 00 [20:00:28]Write to MH i2c: E2 08 00 A8 0F 80 09 00 00 00 00 00 00 29 [20:00:28]Write i2c OK [20:00:28]MH_I2C_Read... [20:00:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:00:28]Read from MH i2c: E2 [20:00:28]MH_I2C_Read... [20:00:28]Read from MH i2c: E2 03 00 [20:00:28]MH_I2C_Read... [20:00:28]Read from MH i2c: E2 03 00 A8 0F 00 90 00 2B [20:00:28]RAPDU: 90 00 [20:00:28]wFMCommunicate OK [20:00:28]SAM_PROTO_ClearQueue done [20:00:28]KKMCreateOFDPacket [20:00:28]OFDProtocolAddRootSTLVToBuf [20:00:28]FM_MakeSignedData [20:00:28]FM_MakeSignedData [20:00:28]SAM_PROTO_SignData [20:00:28]wFMCommunicate request_size=4 [20:00:28]MH_SAM_APDU [20:00:28]CAPDU: 80 0D 01 02 [20:00:28]Write to MH i2c: E2 08 00 A9 0F 80 0D 01 02 00 00 00 00 31 [20:00:28]Write i2c OK [20:00:28]MH_I2C_Read... [20:00:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:00:28]Read from MH i2c: E2 [20:00:28]MH_I2C_Read... [20:00:28]Read from MH i2c: E2 03 00 [20:00:28]MH_I2C_Read... [20:00:28]Read from MH i2c: E2 03 00 A9 0F 00 90 00 2C [20:00:28]RAPDU: 90 00 [20:00:28]wFMCommunicate OK [20:00:28]wFMCommunicate request_size=255 [20:00:28]MH_SAM_APDU [20:00: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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D7 00 00 00 F4 03 04 00 DC 38 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 69 95 01 00 35 04 06 00 4B [20:00:28]Write to MH i2c: E2 02 01 AA 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D7 00 00 00 F4 03 04 00 DC 38 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 69 95 01 00 35 04 06 00 4B 00 00 AB [20:00:28]Write i2c OK [20:00:28]MH_I2C_Read... [20:00:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:00:29]Read from MH i2c: E2 [20:00:29]MH_I2C_Read... [20:00:29]Read from MH i2c: E2 03 00 [20:00:29]MH_I2C_Read... [20:00:29]Read from MH i2c: E2 03 00 AA 0F 00 90 00 2D [20:00:29]RAPDU: 90 00 [20:00:29]wFMCommunicate OK [20:00:29]wFMCommunicate request_size=10 [20:00:29]MH_SAM_APDU [20:00:29]CAPDU: 80 0D 02 02 05 AC BC 1D 55 EF [20:00:29]Write to MH i2c: E2 0D 00 AB 0F 80 0D 02 02 05 00 AC BC 1D 55 EF 00 00 07 [20:00:29]Write i2c OK [20:00:29]MH_I2C_Read... [20:00:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:00:29]Read from MH i2c: E2 [20:00:29]MH_I2C_Read... [20:00:29]Read from MH i2c: E2 03 00 [20:00:29]MH_I2C_Read... [20:00:29]Read from MH i2c: E2 03 00 AB 0F 00 90 00 2E [20:00:29]RAPDU: 90 00 [20:00:29]wFMCommunicate OK [20:00:29]wFMCommunicate request_size=4 [20:00:29]MH_SAM_APDU [20:00:29]CAPDU: 80 0D 03 02 [20:00:29]Write to MH i2c: E2 08 00 AC 0F 80 0D 03 02 00 00 00 00 36 [20:00:29]Write i2c OK [20:00:29]MH_I2C_Read... [20:00:29]OFD Sender: No OFD packet to send [20:00:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:00:29]Read from MH i2c: E2 [20:00:29]MH_I2C_Read... [20:00:29]Read from MH i2c: E2 0B 00 [20:00:29]MH_I2C_Read... [20:00:29]Read from MH i2c: E2 0B 00 AC 0F 00 6D BB F4 F6 76 92 17 36 90 00 9E [20:00:29]RAPDU: 6D BB F4 F6 76 92 17 36 90 00 [20:00:29]wFMCommunicate OK [20:00:29]SAM_PROTO_SignData done [20:00:29]FM_MakeSignedData done [20:00:29]CreateOFDProtocolMessage [20:00:29]wFMCommunicate request_size=4 [20:00:29]MH_SAM_APDU [20:00:29]CAPDU: 80 11 00 00 [20:00:29]Write to MH i2c: E2 08 00 AD 0F 80 11 00 00 00 00 00 00 36 [20:00:29]Write i2c OK [20:00:29]MH_I2C_Read... [20:00:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:00:29]Read from MH i2c: E2 [20:00:29]MH_I2C_Read... [20:00:29]Read from MH i2c: E2 17 00 [20:00:29]MH_I2C_Read... [20:00:29]Read from MH i2c: E2 17 00 AD 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 89 [20:00:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [20:00:29]wFMCommunicate OK [20:00:29]CreateOFDProtocolMessage done [20:00:29]OFDSenderStorePacket 103785 [20:00:29]StoreOFDPacket docnum=103785 [20:00:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 47 28 07 01 7C 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D7 00 00 00 F4 03 04 00 DC 38 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 69 95 01 00 35 04 06 00 4B AC BC 1D 55 EF 6D BB F4 F6 76 92 17 36 [20:00:29]CheckFolder [20:00:29]dirname=/storage/ofd_packets [20:00:29]CheckFolder done [20:00:29]ProducePacketName [20:00:29]name=ofd_packets/00103785 [20:00:29]NVStorageSaveData ofd_packets/00103785 [20:00:29]File name is /storage/ofd_packets/00103785 [20:00:29]Write 301 bytes [20:00:29]NVStorageSaveData done [20:00:29]OFDSenderStorePacket done [20:00:29]KKMCreateOFDPacket done [20:00:29]NVStorageSaveData kkm_last_timestamp [20:00:29]File name is /storage/kkm_last_timestamp [20:00:29]Write 4 bytes [20:00:29]NVStorageSaveData done [20:00:29]ExternCall_PrintAddStr [20:00:29]wPrintStart [20:00:29]Write to MH i2c: 01 00 00 AE 0F BD [20:00:29]Write i2c OK [20:00:29]MH_I2C_Read... [20:00:29]Read from MH i2c: 01 [20:00:29]MH_I2C_Read... [20:00:29]Read from MH i2c: 01 07 00 [20:00:29]MH_I2C_Read... [20:00:29]Read from MH i2c: 01 07 00 AE 0F 00 00 00 00 00 FF 0F D2 [20:00:29]RasterBufferAndPrint [20:00:29]line Счет N : (1)673079 [20:00:29]line ИНН: 02508201610067 [20:00:29]line Контрольно-Кассовый Чек [20:00:29]line ПРОДАЖА [20:00:29]line ТРК (МРК, ГНК) : 32 [20:00:29]line Товар: 2710124130 [20:00:29]line Аи-92-К-5 [20:00:29]line 15.070 * 66.40 [20:00:29]line = 1000.65 [20:00:29]line НДС 12% НСП 1% [20:00:29]line > о реализуемом товаре [20:00:29]line ОКРУГЛЕНИЕ: -0.65 [20:00:29]line ИТОГО: 1000.00 [20:00:29]line Внесено: 1000.00 [20:00:29]line СДАЧА: 0.00 [20:00:29]line НСП 1% : 8.85 [20:00:29]line НДС 12% : 106.26 [20:00:29]line Наличными: 1000.00 [20:00:29]line Безнал.: 0.00 [20:00:29]line Место: АЗС № 120 "Партнер Нефть" [20:00:29]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [20:00:29]line СНО: Общий режим [20:00:29]line Чек 215 19.06.2024 20:00 [20:00:29]line Смена: 353 ФФД: 1.0 [20:00:29]line ЗНМ: 0300000164 [20:00:29]line РНМ: 0000000000092785 [20:00:29]line Версия ККМ: 001 [20:00:29]line ФМ: 0000000000875093 [20:00:29]line ФД: 103785 [20:00:29]line ФПД: 83205262497263 [20:00:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T200028&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103785&fm=83205262497263&tin=02508201610067®Number=0000000000092785&sum=100000 [20:00:29]OFD Sender: Processing packet 103785 [packets to send 17, broken 16] [20:00:29]ProducePacketName [20:00:29]name=ofd_packets/00103785 [20:00:29]OFD Sender: To server: pG, [20:00:29]CommunicateWithHost lk.salyk.kg:30040 [20:00:29]ConnectInit lk.salyk.kg [20:00:29]written 0, free lines is 4095 [20:00:29]Connected sock=10 [20: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 39 33 0F 01 00 00 47 28 07 01 7C 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D7 00 00 00 F4 03 04 00 DC 38 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 69 95 01 00 35 04 06 00 4B AC BC 1D 55 EF 6D BB F4 F6 76 92 17 36 [20: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 39 33 4F 00 00 00 53 3C 47 00 EC 68 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 69 95 01 00 F4 03 04 00 64 DF 72 66 B6 04 01 00 00 0B 48 98 B5 5A 8C 0F 68 [20:00:30]CommunicateWithHost err = 0 [20:00:30]CheckOFDResponse [20:00:30]1017 (14) - 77093643461234 [20:00:30]1041 (16) - 0000000000875093 [20:00:30]1040 (4) - 103785 [20:00:30]1012 (4) - 19.06.2024 13:38 [20:00:30]1206 (1) - 0 [20:00:30]OFD Sender: Remove packet 103785 [20:00:30]ProducePacketName [20:00:30]name=ofd_packets/00103785 [20:00:30]NVStorageDeleteData [20:00:30]Write to MH i2c: 01 00 00 D9 0F E8 [20:00:30]Write i2c OK [20:00:30]MH_I2C_Read... [20:00:30]Read from MH i2c: 01 [20:00:30]MH_I2C_Read... [20:00:30]Read from MH i2c: 01 07 00 [20:00:30]MH_I2C_Read... [20:00:30]Read from MH i2c: 01 07 00 D9 0F 00 00 00 00 00 DD 0C D8 [20:00:30]RasterBufferAndPrint [20:00:30]line [20:00:30]line [20:00:30]line [20:00:30]line [20:00:30]line [20:00:30]written 0, free lines is 3299 [20:00:30]MH_Cut [20:00:30]Write to MH i2c: D1 01 00 E0 0F 01 C1 [20:00:30]Write i2c OK [20:00:30]MH_I2C_Read... [20:00:30]Read from MH i2c: D1 [20:00:30]MH_I2C_Read... [20:00:30]Read from MH i2c: D1 01 00 [20:00:30]MH_I2C_Read... [20:00:30]Read from MH i2c: D1 01 00 E0 0F 00 C0 [20:00:30]Write to MH i2c: 01 00 00 E1 0F F0 [20:00:30]Write i2c OK [20:00:30]MH_I2C_Read... [20:00:30]OFD Sender: No OFD packet to send [20:00:30]*** Cut start [20:00:30]*** Partial cut [20:00:30]*** CUTSNS_PIN = 1 [20:00:30]*** CUTSNS_PIN = 0 [20:00:31]*** Brake cut motor [20:00:31]Read from MH i2c: 01 [20:00:31]MH_I2C_Read... [20:00:31]*** Stop cut motor [20:00:31]*** Cut end [20:00:31]Read from MH i2c: 01 07 00 [20:00:31]MH_I2C_Read... [20:00:31]Read from MH i2c: 01 07 00 E1 0F 00 00 00 00 00 FF 0F 05 [20:00:31]process_action close_receipt done [20:00:31]requested_data is exist [20:00:31]produce_requested_data [20:00:31]requested_item fm.sn is exist - process it [20:00:31]wFMCommunicate request_size=4 [20:00:31]MH_SAM_APDU [20:00:31]CAPDU: 80 11 00 00 [20:00:31]Write to MH i2c: E2 08 00 E2 0F 80 11 00 00 00 00 00 00 6B [20:00:31]Write i2c OK [20:00:31]MH_I2C_Read... [20:00:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:00:31]Read from MH i2c: E2 [20:00:31]MH_I2C_Read... [20:00:31]Read from MH i2c: E2 17 00 [20:00:31]MH_I2C_Read... [20:00:31]Read from MH i2c: E2 17 00 E2 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 BE [20:00:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [20:00:31]wFMCommunicate OK [20:00:31]requested_item fd.num is exist - process it [20:00:31]SAM_PROTO_GetFieldsCounters [20:00:31]wFMCommunicate request_size=4 [20:00:31]MH_SAM_APDU [20:00:31]CAPDU: 80 13 00 00 [20:00:31]Write to MH i2c: E2 08 00 E3 0F 80 13 00 00 00 00 00 00 6E [20:00:31]Write i2c OK [20:00:31]MH_I2C_Read... [20:00:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:00:31]Read from MH i2c: E2 [20:00:31]MH_I2C_Read... [20:00:31]Read from MH i2c: E2 62 00 [20:00:31]MH_I2C_Read... [20:00:31]Read from MH i2c: E2 62 00 E3 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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 69 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 D7 00 00 00 5E 04 04 00 D7 00 00 00 57 04 04 00 D8 00 00 00 19 04 04 00 00 00 00 00 90 00 7B [20:00: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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 69 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 D7 00 00 00 5E 04 04 00 D7 00 00 00 57 04 04 00 D8 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:00:31]wFMCommunicate OK [20:00:31]SAM_PROTO_GetFieldsCounters done [20:00:31]requested_item shift.num is exist - process it [20:00:31]requested_item shift.opened is exist - process it [20:00:31]req_shift_opened [20:00:31]FM_GetShiftState [20:00:31]SAM_PROTO_GetShiftState [20:00:31]wFMCommunicate request_size=4 [20:00:31]MH_SAM_APDU [20:00:31]CAPDU: 80 13 01 00 [20:00:31]Write to MH i2c: E2 08 00 E4 0F 80 13 01 00 00 00 00 00 70 [20:00:31]Write i2c OK [20:00:31]MH_I2C_Read... [20:00:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:00:31]Read from MH i2c: E2 [20:00:31]MH_I2C_Read... [20:00:31]Read from MH i2c: E2 0E 00 [20:00:31]MH_I2C_Read... [20:00:31]Read from MH i2c: E2 0E 00 E4 0F 00 09 00 01 04 26 72 66 00 00 00 00 90 00 7E [20:00:31]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [20:00:31]wFMCommunicate OK [20:00:31]SAM_PROTO_GetShiftState done [20:00:31]FM_GetShiftState done [20:00:31]req_shift_opened done [20:00:31]requested_item shift.open_date is exist - process it [20:00:31]req_shift_open_date [20:00:31]req_shift_open_date done [20:00:31]produce_requested_data done [20:00:31]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103785,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [20:00:31]process_action_free close_receipt [20:00:31]json_value_free [20:00:31]json_value_free done [20:00:31]process_json_proto returns [20:00:31]Send response to host [20:00:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103785,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [20:00:31]free response buf [20:00:31]execute_script done [20:00:31]execute_script returns [20:00:31]free content buf [20:00:31]Sock 9.Close socket [20:00:31]Sock 9.Thread stoped [20:00:35]OFD Sender: No OFD packet to send [20:00:40]OFD Sender: No OFD packet to send [20:00:45]OFD Sender: No OFD packet to send [20:00:50]OFD Sender: No OFD packet to send [20:00:55]OFD Sender: No OFD packet to send [20:01:00]OFD Sender: No OFD packet to send [20:01:05]OFD Sender: No OFD packet to send [20:01:10]OFD Sender: No OFD packet to send [20:01:15]OFD Sender: No OFD packet to send [20:01:20]OFD Sender: No OFD packet to send [20:01:25]OFD Sender: No OFD packet to send [20:01:30]OFD Sender: No OFD packet to send [20:01:35]OFD Sender: No OFD packet to send [20:01:40]OFD Sender: No OFD packet to send [20:01:45]OFD Sender: No OFD packet to send [20:01:50]OFD Sender: No OFD packet to send [20:01:55]OFD Sender: No OFD packet to send [20:02:00]OFD Sender: No OFD packet to send [20:02:05]OFD Sender: No OFD packet to send [20:02:10]OFD Sender: No OFD packet to send [20:02:15]OFD Sender: No OFD packet to send [20:02:20]OFD Sender: No OFD packet to send [20:02:25]OFD Sender: No OFD packet to send [20:02:30]OFD Sender: No OFD packet to send [20:02:35]OFD Sender: No OFD packet to send [20:02:40]OFD Sender: No OFD packet to send [20:02:45]OFD Sender: No OFD packet to send [20:02:50]OFD Sender: No OFD packet to send [20:02:55]OFD Sender: No OFD packet to send [20:03:00]OFD Sender: No OFD packet to send [20:03:05]OFD Sender: No OFD packet to send [20:03:10]OFD Sender: No OFD packet to send [20:03:15]OFD Sender: No OFD packet to send [20:03:20]OFD Sender: No OFD packet to send [20:03:25]OFD Sender: No OFD packet to send [20:03:30]OFD Sender: No OFD packet to send [20:03:35]OFD Sender: No OFD packet to send [20:03:40]OFD Sender: No OFD packet to send [20:03:45]OFD Sender: No OFD packet to send [20:03:50]OFD Sender: No OFD packet to send [20:03:55]OFD Sender: No OFD packet to send [20:04:00]OFD Sender: No OFD packet to send [20:04:05]OFD Sender: No OFD packet to send [20:04:10]OFD Sender: No OFD packet to send [20:04:15]accept exits with 8 [20:04:15]New connection [20:04:15]New thread 3066940772 created [20:04:15]Thread 3066797412 joined [20:04:15]Waiting for new connection... [20:04:15] Sock 8.Parse request [20:04:15]Sock 8.Check first char [20:04:15]Sock 8.First char is OK [20:04:15]request: POST /json_proto HTTP/1.0 [20:04:15]Method: POST [20:04:15]URL: /json_proto [20:04:15]Method is POST - this is cgi request [20:04:15]url: /json_proto [20:04:15]query_string will be loaded in cgi processing [20:04:15]execute_cgi json_proto POST (null) [20:04:15]execute_cgi path=json_proto method=POST [20:04:15]POST find Content-Length [20:04:15]Host: 172.17.38.133:8080 [20:04:15]Content-Length: 819 [20:04:15]Content-Type: application/json [20:04:15] [20:04:15]POST finish read [20:04:15]Found Content-Length = 819 [20:04:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673080", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 25.000, "sum" : 1847.50, "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" : 1847.50 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:04:15]execute_script... [20:04:15]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673080", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 25.000, "sum" : 1847.50, "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" : 1847.50 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:04:15]POST & json_proto [20:04:15]process_json_proto [20:04:15]json parsed OK: [20:04:15]protocol is kg_v1.0 [20:04:15]action value=close_receipt [20:04:15]process_action close_receipt [20:04:15]cmd_close_receipt [20:04:15]MH_GetDate [20:04:15]Write to MH i2c: F0 00 00 E5 0F E3 [20:04:15]Write i2c OK [20:04:15]MH_I2C_Read... [20:04:15]Read from MH i2c: F0 [20:04:15]MH_I2C_Read... [20:04:15]Read from MH i2c: F0 09 00 [20:04:15]MH_I2C_Read... [20:04:15]Read from MH i2c: F0 09 00 E5 0F 00 C0 39 73 66 BD 8F 7C 64 EA [20:04:15]GetLastDocTimeStamp 1718827228 [20:04:15]current date 1718827456 [20:04:15]FM_GetShiftState [20:04:15]SAM_PROTO_GetShiftState [20:04:15]wFMCommunicate request_size=4 [20:04:15]MH_SAM_APDU [20:04:15]CAPDU: 80 13 01 00 [20:04:15]Write to MH i2c: E2 08 00 E6 0F 80 13 01 00 00 00 00 00 72 [20:04:15]Write i2c OK [20:04:15]MH_I2C_Read... [20:04:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:04:15]Read from MH i2c: E2 [20:04:15]MH_I2C_Read... [20:04:15]Read from MH i2c: E2 0E 00 [20:04:15]MH_I2C_Read... [20:04:15]Read from MH i2c: E2 0E 00 E6 0F 00 09 00 01 04 26 72 66 00 00 00 00 90 00 80 [20:04:15]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [20:04:15]wFMCommunicate OK [20:04:15]SAM_PROTO_GetShiftState done [20:04:15]FM_GetShiftState done [20:04:15]opened in 1718756868 [20:04:15]opened+sec_in_day 1718843268 [20:04:15]quantity*price = 184750 [20:04:15]sum+1 = 184751 [20:04:15]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1847.50 НСП 1% : 16.35 НДС 12% : 196.19 Наличными: 0.00 Безнал.: 1847.50 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 216 19.06.2024 20:04 Смена: 353 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000875093 ФД: 103786 ФПД: 275593645277111 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T200416&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103786&fm=275593645277111&tin=02508201610067®Number=0000000000092785&sum=184750 [20:04:16]StoreToDocumentArchive [20:04:16]shift 353 fd 103786 [20:04:16]save to /storage/0353/doc_00103786 [20:04:16]save last doc name /storage/0353/doc_00103786 to /storage/kkm_last_doc_name [20:04:16]save OK [20:04:16]Clear old archive folders... [20:04:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:04:16]tlvbuf is B6EBE3D0 [20:04:16]SAM_PROTO_ClearQueue [20:04:16]wFMCommunicate request_size=4 [20:04:16]MH_SAM_APDU [20:04:16]CAPDU: 80 09 00 00 [20:04:16]Write to MH i2c: E2 08 00 F3 0F 80 09 00 00 00 00 00 00 74 [20:04:16]Write i2c OK [20:04:16]MH_I2C_Read... [20:04:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:04:16]Read from MH i2c: E2 [20:04:16]MH_I2C_Read... [20:04:16]Read from MH i2c: E2 03 00 [20:04:16]MH_I2C_Read... [20:04:16]Read from MH i2c: E2 03 00 F3 0F 00 90 00 76 [20:04:16]RAPDU: 90 00 [20:04:16]wFMCommunicate OK [20:04:16]SAM_PROTO_ClearQueue done [20:04:16]KKMCreateOFDPacket [20:04:16]OFDProtocolAddRootSTLVToBuf [20:04:16]FM_MakeSignedData [20:04:16]FM_MakeSignedData [20:04:16]SAM_PROTO_SignData [20:04:16]wFMCommunicate request_size=4 [20:04:16]MH_SAM_APDU [20:04:16]CAPDU: 80 0D 01 02 [20:04:16]Write to MH i2c: E2 08 00 F4 0F 80 0D 01 02 00 00 00 00 7C [20:04:16]Write i2c OK [20:04:16]MH_I2C_Read... [20:04:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:04:16]Read from MH i2c: E2 [20:04:16]MH_I2C_Read... [20:04:16]Read from MH i2c: E2 03 00 [20:04:16]MH_I2C_Read... [20:04:16]Read from MH i2c: E2 03 00 F4 0F 00 90 00 77 [20:04:16]RAPDU: 90 00 [20:04:16]wFMCommunicate OK [20:04:16]wFMCommunicate request_size=255 [20:04:16]MH_SAM_APDU [20:04:16]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 61 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 AE D1 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AE D1 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 63 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A3 4C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 AE D1 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 D8 00 00 00 F4 03 04 00 C0 39 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 6A 95 01 00 35 04 06 00 FA [20:04:16]Write to MH i2c: E2 02 01 F5 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 61 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 AE D1 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AE D1 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 63 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A3 4C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 AE D1 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 D8 00 00 00 F4 03 04 00 C0 39 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 6A 95 01 00 35 04 06 00 FA 00 00 74 [20:04:16]Write i2c OK [20:04:16]MH_I2C_Read... [20:04:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:04:17]Read from MH i2c: E2 [20:04:17]MH_I2C_Read... [20:04:17]Read from MH i2c: E2 03 00 [20:04:17]MH_I2C_Read... [20:04:17]Read from MH i2c: E2 03 00 F5 0F 00 90 00 78 [20:04:17]RAPDU: 90 00 [20:04:17]wFMCommunicate OK [20:04:17]wFMCommunicate request_size=10 [20:04:17]MH_SAM_APDU [20:04:17]CAPDU: 80 0D 02 02 05 A6 A5 54 3F B7 [20:04:17]Write to MH i2c: E2 0D 00 F6 0F 80 0D 02 02 05 00 A6 A5 54 3F B7 00 00 1E [20:04:17]Write i2c OK [20:04:17]MH_I2C_Read... [20:04:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:04:17]Read from MH i2c: E2 [20:04:17]MH_I2C_Read... [20:04:17]Read from MH i2c: E2 03 00 [20:04:17]MH_I2C_Read... [20:04:17]Read from MH i2c: E2 03 00 F6 0F 00 90 00 79 [20:04:17]RAPDU: 90 00 [20:04:17]wFMCommunicate OK [20:04:17]wFMCommunicate request_size=4 [20:04:17]MH_SAM_APDU [20:04:17]CAPDU: 80 0D 03 02 [20:04:17]Write to MH i2c: E2 08 00 F7 0F 80 0D 03 02 00 00 00 00 81 [20:04:17]Write i2c OK [20:04:17]MH_I2C_Read... [20:04:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:04:17]Read from MH i2c: E2 [20:04:17]MH_I2C_Read... [20:04:17]Read from MH i2c: E2 0B 00 [20:04:17]MH_I2C_Read... [20:04:17]Read from MH i2c: E2 0B 00 F7 0F 00 EF 91 BA CD D7 01 FF 61 90 00 C1 [20:04:17]RAPDU: EF 91 BA CD D7 01 FF 61 90 00 [20:04:17]wFMCommunicate OK [20:04:17]SAM_PROTO_SignData done [20:04:17]FM_MakeSignedData done [20:04:17]CreateOFDProtocolMessage [20:04:17]wFMCommunicate request_size=4 [20:04:17]MH_SAM_APDU [20:04:17]CAPDU: 80 11 00 00 [20:04:17]Write to MH i2c: E2 08 00 F8 0F 80 11 00 00 00 00 00 00 81 [20:04:17]Write i2c OK [20:04:17]MH_I2C_Read... [20:04:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:04:17]Read from MH i2c: E2 [20:04:17]MH_I2C_Read... [20:04:17]Read from MH i2c: E2 17 00 [20:04:17]MH_I2C_Read... [20:04:17]Read from MH i2c: E2 17 00 F8 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 D4 [20:04:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [20:04:17]wFMCommunicate OK [20:04:17]CreateOFDProtocolMessage done [20:04:17]OFDSenderStorePacket 103786 [20:04:17]StoreOFDPacket docnum=103786 [20:04:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 7E 8D 07 01 1F 89 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 61 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 AE D1 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AE D1 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 63 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A3 4C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 AE D1 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 D8 00 00 00 F4 03 04 00 C0 39 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 6A 95 01 00 35 04 06 00 FA A6 A5 54 3F B7 EF 91 BA CD D7 01 FF 61 [20:04:17]CheckFolder [20:04:17]dirname=/storage/ofd_packets [20:04:17]CheckFolder done [20:04:17]ProducePacketName [20:04:17]name=ofd_packets/00103786 [20:04:17]NVStorageSaveData ofd_packets/00103786 [20:04:17]File name is /storage/ofd_packets/00103786 [20:04:17]Write 301 bytes [20:04:17]NVStorageSaveData done [20:04:17]OFDSenderStorePacket done [20:04:17]KKMCreateOFDPacket done [20:04:17]NVStorageSaveData kkm_last_timestamp [20:04:17]File name is /storage/kkm_last_timestamp [20:04:17]Write 4 bytes [20:04:17]NVStorageSaveData done [20:04:17]ExternCall_PrintAddStr [20:04:17]wPrintStart [20:04:17]Write to MH i2c: 01 00 00 F9 0F 08 [20:04:17]Write i2c OK [20:04:17]MH_I2C_Read... [20:04:17]Read from MH i2c: 01 [20:04:17]MH_I2C_Read... [20:04:17]Read from MH i2c: 01 07 00 [20:04:17]MH_I2C_Read... [20:04:17]Read from MH i2c: 01 07 00 F9 0F 00 00 00 00 00 FF 0F 1D [20:04:17]RasterBufferAndPrint [20:04:17]line Счет N : (1)673080 [20:04:17]line ИНН: 02508201610067 [20:04:17]line Контрольно-Кассовый Чек [20:04:17]line ПРОДАЖА [20:04:17]line ТРК (МРК, ГНК) : 41 [20:04:17]line Товар: 2710124500 [20:04:17]line Аи-95-К-5 [20:04:17]line 25.000 * 73.90 [20:04:17]line = 1847.50 [20:04:17]line НДС 12% НСП 1% [20:04:17]line > о реализуемом товаре [20:04:17]line ИТОГО: 1847.50 [20:04:17]line НСП 1% : 16.35 [20:04:17]line НДС 12% : 196.19 [20:04:17]line Наличными: 0.00 [20:04:17]line Безнал.: 1847.50 [20:04:17]line Место: АЗС № 120 "Партнер Нефть" [20:04:17]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [20:04:17]line СНО: Общий режим [20:04:17]line Чек 216 19.06.2024 20:04 [20:04:17]line Смена: 353 ФФД: 1.0 [20:04:17]line ЗНМ: 0300000164 [20:04:17]line РНМ: 0000000000092785 [20:04:17]line Версия ККМ: 001 [20:04:17]line Платежная система: Бакай Банк [20:04:17]line ФМ: 0000000000875093 [20:04:17]line ФД: 103786 [20:04:17]line ФПД: 275593645277111 [20:04:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T200416&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103786&fm=275593645277111&tin=02508201610067®Number=0000000000092785&sum=184750 [20:04:17]OFD Sender: Processing packet 103786 [packets to send 17, broken 16] [20:04:17]ProducePacketName [20:04:17]name=ofd_packets/00103786 [20:04:17]OFD Sender: To server: pG, [20:04:17]CommunicateWithHost lk.salyk.kg:30040 [20:04:17]ConnectInit lk.salyk.kg [20:04:17]written 0, free lines is 4095 [20:04:17]Connected sock=10 [20:04:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 7E 8D 07 01 1F 89 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 61 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 AE D1 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AE D1 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 63 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A3 4C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 AE D1 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 D8 00 00 00 F4 03 04 00 C0 39 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 6A 95 01 00 35 04 06 00 FA A6 A5 54 3F B7 EF 91 BA CD D7 01 FF 61 [20:04:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 4C 6B 47 00 21 E3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 6A 95 01 00 F4 03 04 00 48 E0 72 66 B6 04 01 00 00 D6 7C 1A 42 E0 E9 2A 92 [20:04:18]CommunicateWithHost err = 0 [20:04:18]CheckOFDResponse [20:04:18]1017 (14) - 77093643461234 [20:04:18]1041 (16) - 0000000000875093 [20:04:18]1040 (4) - 103786 [20:04:18]1012 (4) - 19.06.2024 13:42 [20:04:18]1206 (1) - 0 [20:04:18]OFD Sender: Remove packet 103786 [20:04:18]ProducePacketName [20:04:18]name=ofd_packets/00103786 [20:04:18]NVStorageDeleteData [20:04:18]Write to MH i2c: 01 00 00 23 10 33 [20:04:18]Write i2c OK [20:04:18]MH_I2C_Read... [20:04:18]Read from MH i2c: 01 [20:04:18]MH_I2C_Read... [20:04:18]Read from MH i2c: 01 07 00 [20:04:18]MH_I2C_Read... [20:04:18]Read from MH i2c: 01 07 00 23 10 00 00 00 00 00 FA 0C 40 [20:04:18]RasterBufferAndPrint [20:04:18]line [20:04:18]line [20:04:18]line [20:04:18]line [20:04:18]line [20:04:18]written 0, free lines is 3329 [20:04:18]MH_Cut [20:04:18]Write to MH i2c: D1 01 00 2A 10 01 0C [20:04:18]Write i2c OK [20:04:18]MH_I2C_Read... [20:04:18]Read from MH i2c: D1 [20:04:18]MH_I2C_Read... [20:04:18]Read from MH i2c: D1 01 00 [20:04:18]MH_I2C_Read... [20:04:18]Read from MH i2c: D1 01 00 2A 10 00 0B [20:04:18]Write to MH i2c: 01 00 00 2B 10 3B [20:04:18]Write i2c OK [20:04:18]MH_I2C_Read... [20:04:18]OFD Sender: No OFD packet to send [20:04:18]*** Cut start [20:04:18]*** Partial cut [20:04:18]*** CUTSNS_PIN = 1 [20:04:18]*** CUTSNS_PIN = 0 [20:04:19]*** Brake cut motor [20:04:19]Read from MH i2c: 01 [20:04:19]MH_I2C_Read... [20:04:19]*** Stop cut motor [20:04:19]*** Cut end [20:04:19]Read from MH i2c: 01 07 00 [20:04:19]MH_I2C_Read... [20:04:19]Read from MH i2c: 01 07 00 2B 10 00 00 00 00 00 FF 0F 50 [20:04:19]process_action close_receipt done [20:04:19]requested_data is exist [20:04:19]produce_requested_data [20:04:19]requested_item fm.sn is exist - process it [20:04:19]wFMCommunicate request_size=4 [20:04:19]MH_SAM_APDU [20:04:19]CAPDU: 80 11 00 00 [20:04:19]Write to MH i2c: E2 08 00 2C 10 80 11 00 00 00 00 00 00 B6 [20:04:19]Write i2c OK [20:04:19]MH_I2C_Read... [20:04:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:04:19]Read from MH i2c: E2 [20:04:19]MH_I2C_Read... [20:04:19]Read from MH i2c: E2 17 00 [20:04:19]MH_I2C_Read... [20:04:19]Read from MH i2c: E2 17 00 2C 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 09 [20:04:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [20:04:19]wFMCommunicate OK [20:04:19]requested_item fd.num is exist - process it [20:04:19]SAM_PROTO_GetFieldsCounters [20:04:19]wFMCommunicate request_size=4 [20:04:19]MH_SAM_APDU [20:04:19]CAPDU: 80 13 00 00 [20:04:19]Write to MH i2c: E2 08 00 2D 10 80 13 00 00 00 00 00 00 B9 [20:04:19]Write i2c OK [20:04:19]MH_I2C_Read... [20:04:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:04:19]Read from MH i2c: E2 [20:04:19]MH_I2C_Read... [20:04:19]Read from MH i2c: E2 62 00 [20:04:19]MH_I2C_Read... [20:04:19]Read from MH i2c: E2 62 00 2D 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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 6A 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 D8 00 00 00 5E 04 04 00 D8 00 00 00 57 04 04 00 D9 00 00 00 19 04 04 00 00 00 00 00 90 00 CA [20:04:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 6A 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 D8 00 00 00 5E 04 04 00 D8 00 00 00 57 04 04 00 D9 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:04:19]wFMCommunicate OK [20:04:19]SAM_PROTO_GetFieldsCounters done [20:04:19]requested_item shift.num is exist - process it [20:04:19]requested_item shift.opened is exist - process it [20:04:19]req_shift_opened [20:04:19]FM_GetShiftState [20:04:19]SAM_PROTO_GetShiftState [20:04:19]wFMCommunicate request_size=4 [20:04:19]MH_SAM_APDU [20:04:19]CAPDU: 80 13 01 00 [20:04:19]Write to MH i2c: E2 08 00 2E 10 80 13 01 00 00 00 00 00 BB [20:04:19]Write i2c OK [20:04:19]MH_I2C_Read... [20:04:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:04:19]Read from MH i2c: E2 [20:04:19]MH_I2C_Read... [20:04:19]Read from MH i2c: E2 0E 00 [20:04:19]MH_I2C_Read... [20:04:19]Read from MH i2c: E2 0E 00 2E 10 00 09 00 01 04 26 72 66 00 00 00 00 90 00 C9 [20:04:19]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [20:04:19]wFMCommunicate OK [20:04:19]SAM_PROTO_GetShiftState done [20:04:19]FM_GetShiftState done [20:04:19]req_shift_opened done [20:04:19]requested_item shift.open_date is exist - process it [20:04:19]req_shift_open_date [20:04:19]req_shift_open_date done [20:04:19]produce_requested_data done [20:04:19]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103786,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [20:04:19]process_action_free close_receipt [20:04:19]json_value_free [20:04:19]json_value_free done [20:04:19]process_json_proto returns [20:04:19]Send response to host [20:04:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103786,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [20:04:19]free response buf [20:04:19]execute_script done [20:04:19]execute_script returns [20:04:19]free content buf [20:04:19]Sock 8.Close socket [20:04:19]Sock 8.Thread stoped [20:04:23]OFD Sender: No OFD packet to send [20:04:28]OFD Sender: No OFD packet to send [20:04:33]OFD Sender: No OFD packet to send [20:04:38]OFD Sender: No OFD packet to send [20:04:43]OFD Sender: No OFD packet to send [20:04:48]OFD Sender: No OFD packet to send [20:04:53]OFD Sender: No OFD packet to send [20:04:58]OFD Sender: No OFD packet to send [20:05:03]OFD Sender: No OFD packet to send [20:05:04]accept exits with 9 [20:05:04]New connection [20:05:04]New thread 3066797412 created [20:05:04]Thread 3066940772 joined [20:05:04]Waiting for new connection... [20:05:04] Sock 9.Parse request [20:05:04]Sock 9.Check first char [20:05:04]Sock 9.First char is OK [20:05:04]request: POST /json_proto HTTP/1.0 [20:05:04]Method: POST [20:05:04]URL: /json_proto [20:05:04]Method is POST - this is cgi request [20:05:04]url: /json_proto [20:05:04]query_string will be loaded in cgi processing [20:05:04]execute_cgi json_proto POST (null) [20:05:04]execute_cgi path=json_proto method=POST [20:05:04]POST find Content-Length [20:05:04]Host: 172.17.38.133:8080 [20:05:04]Content-Length: 819 [20:05:04]Content-Type: application/json [20:05:04] [20:05:04]POST finish read [20:05:04]Found Content-Length = 819 [20:05:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673081", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 22.600, "sum" : 1500.64, "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" : 1500.64 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:05:04]execute_script... [20:05:04]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673081", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 22.600, "sum" : 1500.64, "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" : 1500.64 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:05:04]POST & json_proto [20:05:04]process_json_proto [20:05:04]json parsed OK: [20:05:04]protocol is kg_v1.0 [20:05:04]action value=close_receipt [20:05:04]process_action close_receipt [20:05:04]cmd_close_receipt [20:05:04]MH_GetDate [20:05:04]Write to MH i2c: F0 00 00 2F 10 2E [20:05:04]Write i2c OK [20:05:04]MH_I2C_Read... [20:05:04]Read from MH i2c: F0 [20:05:04]MH_I2C_Read... [20:05:04]Read from MH i2c: F0 09 00 [20:05:04]MH_I2C_Read... [20:05:04]Read from MH i2c: F0 09 00 2F 10 00 F1 39 73 66 BD 8F 7C 64 66 [20:05:04]GetLastDocTimeStamp 1718827456 [20:05:04]current date 1718827505 [20:05:04]FM_GetShiftState [20:05:04]SAM_PROTO_GetShiftState [20:05:04]wFMCommunicate request_size=4 [20:05:04]MH_SAM_APDU [20:05:04]CAPDU: 80 13 01 00 [20:05:04]Write to MH i2c: E2 08 00 30 10 80 13 01 00 00 00 00 00 BD [20:05:04]Write i2c OK [20:05:04]MH_I2C_Read... [20:05:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:05:04]Read from MH i2c: E2 [20:05:04]MH_I2C_Read... [20:05:04]Read from MH i2c: E2 0E 00 [20:05:04]MH_I2C_Read... [20:05:04]Read from MH i2c: E2 0E 00 30 10 00 09 00 01 04 26 72 66 00 00 00 00 90 00 CB [20:05:04]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [20:05:04]wFMCommunicate OK [20:05:04]SAM_PROTO_GetShiftState done [20:05:04]FM_GetShiftState done [20:05:04]opened in 1718756868 [20:05:04]opened+sec_in_day 1718843268 [20:05:04]quantity*price = 150064 [20:05:04]sum+1 = 150065 [20:05:04]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1500.64 НСП 1% : 13.28 НДС 12% : 159.36 Наличными: 0.00 Безнал.: 1500.64 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 217 19.06.2024 20:05 Смена: 353 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000875093 ФД: 103787 ФПД: 141692495561629 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T200505&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103787&fm=141692495561629&tin=02508201610067®Number=0000000000092785&sum=150064 [20:05:05]StoreToDocumentArchive [20:05:05]shift 353 fd 103787 [20:05:05]save to /storage/0353/doc_00103787 [20:05:05]save last doc name /storage/0353/doc_00103787 to /storage/kkm_last_doc_name [20:05:05]save OK [20:05:05]Clear old archive folders... [20:05:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:05:05]tlvbuf is 016A0DA0 [20:05:05]SAM_PROTO_ClearQueue [20:05:05]wFMCommunicate request_size=4 [20:05:05]MH_SAM_APDU [20:05:05]CAPDU: 80 09 00 00 [20:05:05]Write to MH i2c: E2 08 00 3D 10 80 09 00 00 00 00 00 00 BF [20:05:05]Write i2c OK [20:05:05]MH_I2C_Read... [20:05:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:05:05]Read from MH i2c: E2 [20:05:05]MH_I2C_Read... [20:05:05]Read from MH i2c: E2 03 00 [20:05:05]MH_I2C_Read... [20:05:05]Read from MH i2c: E2 03 00 3D 10 00 90 00 C1 [20:05:05]RAPDU: 90 00 [20:05:05]wFMCommunicate OK [20:05:05]SAM_PROTO_ClearQueue done [20:05:05]KKMCreateOFDPacket [20:05:05]OFDProtocolAddRootSTLVToBuf [20:05:05]FM_MakeSignedData [20:05:05]FM_MakeSignedData [20:05:05]SAM_PROTO_SignData [20:05:05]wFMCommunicate request_size=4 [20:05:05]MH_SAM_APDU [20:05:05]CAPDU: 80 0D 01 02 [20:05:05]Write to MH i2c: E2 08 00 3E 10 80 0D 01 02 00 00 00 00 C7 [20:05:05]Write i2c OK [20:05:05]MH_I2C_Read... [20:05:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:05:05]Read from MH i2c: E2 [20:05:05]MH_I2C_Read... [20:05:05]Read from MH i2c: E2 03 00 [20:05:05]MH_I2C_Read... [20:05:05]Read from MH i2c: E2 03 00 3E 10 00 90 00 C2 [20:05:05]RAPDU: 90 00 [20:05:05]wFMCommunicate OK [20:05:05]wFMCommunicate request_size=255 [20:05:05]MH_SAM_APDU [20:05:05]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 48 58 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 30 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 40 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 30 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 D9 00 00 00 F4 03 04 00 F1 39 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 6B 95 01 00 35 04 06 00 80 [20:05:05]Write to MH i2c: E2 02 01 3F 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 48 58 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 30 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 40 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 30 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 D9 00 00 00 F4 03 04 00 F1 39 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 6B 95 01 00 35 04 06 00 80 00 00 66 [20:05:05]Write i2c OK [20:05:05]MH_I2C_Read... [20:05:05]Read from MH i2c: E2 [20:05:05]MH_I2C_Read... [20:05:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:05:05]Read from MH i2c: E2 03 00 [20:05:05]MH_I2C_Read... [20:05:05]Read from MH i2c: E2 03 00 3F 10 00 90 00 C3 [20:05:05]RAPDU: 90 00 [20:05:05]wFMCommunicate OK [20:05:05]wFMCommunicate request_size=10 [20:05:05]MH_SAM_APDU [20:05:05]CAPDU: 80 0D 02 02 05 DE 5A DD 83 9D [20:05:05]Write to MH i2c: E2 0D 00 40 10 80 0D 02 02 05 00 DE 5A DD 83 9D 00 00 09 [20:05:05]Write i2c OK [20:05:05]MH_I2C_Read... [20:05:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:05:05]Read from MH i2c: E2 [20:05:05]MH_I2C_Read... [20:05:05]Read from MH i2c: E2 03 00 [20:05:05]MH_I2C_Read... [20:05:05]Read from MH i2c: E2 03 00 40 10 00 90 00 C4 [20:05:05]RAPDU: 90 00 [20:05:05]wFMCommunicate OK [20:05:05]wFMCommunicate request_size=4 [20:05:05]MH_SAM_APDU [20:05:05]CAPDU: 80 0D 03 02 [20:05:05]Write to MH i2c: E2 08 00 41 10 80 0D 03 02 00 00 00 00 CC [20:05:05]Write i2c OK [20:05:05]MH_I2C_Read... [20:05:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:05:05]Read from MH i2c: E2 [20:05:05]MH_I2C_Read... [20:05:05]Read from MH i2c: E2 0B 00 [20:05:05]MH_I2C_Read... [20:05:05]Read from MH i2c: E2 0B 00 41 10 00 83 FC 6F 24 D6 D8 D0 29 90 00 86 [20:05:05]RAPDU: 83 FC 6F 24 D6 D8 D0 29 90 00 [20:05:05]wFMCommunicate OK [20:05:05]SAM_PROTO_SignData done [20:05:05]FM_MakeSignedData done [20:05:05]CreateOFDProtocolMessage [20:05:05]wFMCommunicate request_size=4 [20:05:05]MH_SAM_APDU [20:05:05]CAPDU: 80 11 00 00 [20:05:05]Write to MH i2c: E2 08 00 42 10 80 11 00 00 00 00 00 00 CC [20:05:05]Write i2c OK [20:05:05]MH_I2C_Read... [20:05:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:05:05]Read from MH i2c: E2 [20:05:05]MH_I2C_Read... [20:05:05]Read from MH i2c: E2 17 00 [20:05:05]MH_I2C_Read... [20:05:05]Read from MH i2c: E2 17 00 42 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 1F [20:05:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [20:05:05]wFMCommunicate OK [20:05:05]CreateOFDProtocolMessage done [20:05:05]OFDSenderStorePacket 103787 [20:05:05]StoreOFDPacket docnum=103787 [20:05:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 2F 68 07 01 F6 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 48 58 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 30 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 40 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 30 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 D9 00 00 00 F4 03 04 00 F1 39 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 6B 95 01 00 35 04 06 00 80 DE 5A DD 83 9D 83 FC 6F 24 D6 D8 D0 29 [20:05:05]CheckFolder [20:05:05]dirname=/storage/ofd_packets [20:05:05]CheckFolder done [20:05:05]ProducePacketName [20:05:05]name=ofd_packets/00103787 [20:05:05]NVStorageSaveData ofd_packets/00103787 [20:05:05]File name is /storage/ofd_packets/00103787 [20:05:05]Write 301 bytes [20:05:05]NVStorageSaveData done [20:05:05]OFDSenderStorePacket done [20:05:05]KKMCreateOFDPacket done [20:05:05]NVStorageSaveData kkm_last_timestamp [20:05:05]File name is /storage/kkm_last_timestamp [20:05:05]Write 4 bytes [20:05:05]NVStorageSaveData done [20:05:05]ExternCall_PrintAddStr [20:05:05]wPrintStart [20:05:05]Write to MH i2c: 01 00 00 43 10 53 [20:05:05]Write i2c OK [20:05:05]MH_I2C_Read... [20:05:05]Read from MH i2c: 01 [20:05:05]MH_I2C_Read... [20:05:05]Read from MH i2c: 01 07 00 [20:05:05]MH_I2C_Read... [20:05:05]Read from MH i2c: 01 07 00 43 10 00 00 00 00 00 FF 0F 68 [20:05:05]RasterBufferAndPrint [20:05:05]line Счет N : (1)673081 [20:05:05]line ИНН: 02508201610067 [20:05:05]line Контрольно-Кассовый Чек [20:05:05]line ПРОДАЖА [20:05:05]line ТРК (МРК, ГНК) : 32 [20:05:05]line Товар: 2710124130 [20:05:05]line Аи-92-К-5 [20:05:05]line 22.600 * 66.40 [20:05:05]line = 1500.64 [20:05:05]line НДС 12% НСП 1% [20:05:05]line > о реализуемом товаре [20:05:05]line ИТОГО: 1500.64 [20:05:05]line НСП 1% : 13.28 [20:05:05]line НДС 12% : 159.36 [20:05:05]line Наличными: 0.00 [20:05:05]line Безнал.: 1500.64 [20:05:05]line Место: АЗС № 120 "Партнер Нефть" [20:05:05]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [20:05:05]line СНО: Общий режим [20:05:05]line Чек 217 19.06.2024 20:05 [20:05:05]line Смена: 353 ФФД: 1.0 [20:05:05]line ЗНМ: 0300000164 [20:05:05]line РНМ: 0000000000092785 [20:05:05]line Версия ККМ: 001 [20:05:05]line Платежная система: Бакай Банк [20:05:05]line ФМ: 0000000000875093 [20:05:05]line ФД: 103787 [20:05:05]line ФПД: 141692495561629 [20:05:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T200505&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103787&fm=141692495561629&tin=02508201610067®Number=0000000000092785&sum=150064 [20:05:06]OFD Sender: Processing packet 103787 [packets to send 17, broken 16] [20:05:06]ProducePacketName [20:05:06]name=ofd_packets/00103787 [20:05:06]OFD Sender: To server: pG, [20:05:06]CommunicateWithHost lk.salyk.kg:30040 [20:05:06]ConnectInit lk.salyk.kg [20:05:06]written 0, free lines is 4095 [20:05:06]Connected sock=10 [20:05:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 2F 68 07 01 F6 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 48 58 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 30 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 40 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 30 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 D9 00 00 00 F4 03 04 00 F1 39 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 6B 95 01 00 35 04 06 00 80 DE 5A DD 83 9D 83 FC 6F 24 D6 D8 D0 29 [20:05:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 29 1F 47 00 85 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 39 33 10 04 04 00 6B 95 01 00 F4 03 04 00 79 E0 72 66 B6 04 01 00 00 44 5C AC C5 FE 49 FA 66 [20:05:06]CommunicateWithHost err = 0 [20:05:06]CheckOFDResponse [20:05:06]1017 (14) - 77093643461234 [20:05:06]1041 (16) - 0000000000875093 [20:05:06]1040 (4) - 103787 [20:05:06]1012 (4) - 19.06.2024 13:43 [20:05:06]1206 (1) - 0 [20:05:06]OFD Sender: Remove packet 103787 [20:05:06]ProducePacketName [20:05:06]name=ofd_packets/00103787 [20:05:06]NVStorageDeleteData [20:05:06]Write to MH i2c: 01 00 00 6D 10 7D [20:05:06]Write i2c OK [20:05:06]MH_I2C_Read... [20:05:06]Read from MH i2c: 01 [20:05:06]MH_I2C_Read... [20:05:06]Read from MH i2c: 01 07 00 [20:05:06]MH_I2C_Read... [20:05:06]Read from MH i2c: 01 07 00 6D 10 00 00 00 00 00 EE 0C 7E [20:05:06]RasterBufferAndPrint [20:05:06]line [20:05:06]line [20:05:06]line [20:05:06]line [20:05:06]line [20:05:06]written 0, free lines is 3317 [20:05:06]MH_Cut [20:05:06]Write to MH i2c: D1 01 00 74 10 01 56 [20:05:06]Write i2c OK [20:05:06]MH_I2C_Read... [20:05:06]Read from MH i2c: D1 [20:05:06]MH_I2C_Read... [20:05:06]Read from MH i2c: D1 01 00 [20:05:06]MH_I2C_Read... [20:05:06]Read from MH i2c: D1 01 00 74 10 00 55 [20:05:06]Write to MH i2c: 01 00 00 75 10 85 [20:05:06]Write i2c OK [20:05:06]MH_I2C_Read... [20:05:07]OFD Sender: No OFD packet to send [20:05:07]*** Cut start [20:05:07]*** Partial cut [20:05:07]*** CUTSNS_PIN = 1 [20:05:07]*** CUTSNS_PIN = 0 [20:05:07]*** Brake cut motor [20:05:08]Read from MH i2c: 01 [20:05:08]MH_I2C_Read... [20:05:08]*** Stop cut motor [20:05:08]*** Cut end [20:05:08]Read from MH i2c: 01 07 00 [20:05:08]MH_I2C_Read... [20:05:08]Read from MH i2c: 01 07 00 75 10 00 00 00 00 00 FF 0F 9A [20:05:08]process_action close_receipt done [20:05:08]requested_data is exist [20:05:08]produce_requested_data [20:05:08]requested_item fm.sn is exist - process it [20:05:08]wFMCommunicate request_size=4 [20:05:08]MH_SAM_APDU [20:05:08]CAPDU: 80 11 00 00 [20:05:08]Write to MH i2c: E2 08 00 76 10 80 11 00 00 00 00 00 00 00 [20:05:08]Write i2c OK [20:05:08]MH_I2C_Read... [20:05:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:05:08]Read from MH i2c: E2 [20:05:08]MH_I2C_Read... [20:05:08]Read from MH i2c: E2 17 00 [20:05:08]MH_I2C_Read... [20:05:08]Read from MH i2c: E2 17 00 76 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 53 [20:05:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [20:05:08]wFMCommunicate OK [20:05:08]requested_item fd.num is exist - process it [20:05:08]SAM_PROTO_GetFieldsCounters [20:05:08]wFMCommunicate request_size=4 [20:05:08]MH_SAM_APDU [20:05:08]CAPDU: 80 13 00 00 [20:05:08]Write to MH i2c: E2 08 00 77 10 80 13 00 00 00 00 00 00 03 [20:05:08]Write i2c OK [20:05:08]MH_I2C_Read... [20:05:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:05:08]Read from MH i2c: E2 [20:05:08]MH_I2C_Read... [20:05:08]Read from MH i2c: E2 62 00 [20:05:08]MH_I2C_Read... [20:05:08]Read from MH i2c: E2 62 00 77 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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 6B 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 D9 00 00 00 5E 04 04 00 D9 00 00 00 57 04 04 00 DA 00 00 00 19 04 04 00 00 00 00 00 90 00 18 [20:05:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 6B 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 D9 00 00 00 5E 04 04 00 D9 00 00 00 57 04 04 00 DA 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:05:08]wFMCommunicate OK [20:05:08]SAM_PROTO_GetFieldsCounters done [20:05:08]requested_item shift.num is exist - process it [20:05:08]requested_item shift.opened is exist - process it [20:05:08]req_shift_opened [20:05:08]FM_GetShiftState [20:05:08]SAM_PROTO_GetShiftState [20:05:08]wFMCommunicate request_size=4 [20:05:08]MH_SAM_APDU [20:05:08]CAPDU: 80 13 01 00 [20:05:08]Write to MH i2c: E2 08 00 78 10 80 13 01 00 00 00 00 00 05 [20:05:08]Write i2c OK [20:05:08]MH_I2C_Read... [20:05:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:05:08]Read from MH i2c: E2 [20:05:08]MH_I2C_Read... [20:05:08]Read from MH i2c: E2 0E 00 [20:05:08]MH_I2C_Read... [20:05:08]Read from MH i2c: E2 0E 00 78 10 00 09 00 01 04 26 72 66 00 00 00 00 90 00 13 [20:05:08]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [20:05:08]wFMCommunicate OK [20:05:08]SAM_PROTO_GetShiftState done [20:05:08]FM_GetShiftState done [20:05:08]req_shift_opened done [20:05:08]requested_item shift.open_date is exist - process it [20:05:08]req_shift_open_date [20:05:08]req_shift_open_date done [20:05:08]produce_requested_data done [20:05:08]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103787,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [20:05:08]process_action_free close_receipt [20:05:08]json_value_free [20:05:08]json_value_free done [20:05:08]process_json_proto returns [20:05:08]Send response to host [20:05:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103787,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [20:05:08]free response buf [20:05:08]execute_script done [20:05:08]execute_script returns [20:05:08]free content buf [20:05:08]Sock 9.Close socket [20:05:08]Sock 9.Thread stoped [20:05:12]OFD Sender: No OFD packet to send [20:05:17]OFD Sender: No OFD packet to send [20:05:22]OFD Sender: No OFD packet to send [20:05:27]OFD Sender: No OFD packet to send [20:05:32]OFD Sender: No OFD packet to send [20:05:37]OFD Sender: No OFD packet to send [20:05:42]OFD Sender: No OFD packet to send [20:05:47]OFD Sender: No OFD packet to send [20:05:52]OFD Sender: No OFD packet to send [20:05:57]OFD Sender: No OFD packet to send [20:06:02]OFD Sender: No OFD packet to send [20:06:07]OFD Sender: No OFD packet to send [20:06:12]OFD Sender: No OFD packet to send [20:06:17]OFD Sender: No OFD packet to send [20:06:22]OFD Sender: No OFD packet to send [20:06:27]OFD Sender: No OFD packet to send [20:06:32]OFD Sender: No OFD packet to send [20:06:37]OFD Sender: No OFD packet to send [20:06:42]OFD Sender: No OFD packet to send [20:06:47]OFD Sender: No OFD packet to send [20:06:52]OFD Sender: No OFD packet to send [20:06:57]OFD Sender: No OFD packet to send [20:07:02]OFD Sender: No OFD packet to send [20:07:07]OFD Sender: No OFD packet to send [20:07:12]OFD Sender: No OFD packet to send [20:07:17]OFD Sender: No OFD packet to send [20:07:22]OFD Sender: No OFD packet to send [20:07:27]OFD Sender: No OFD packet to send [20:07:32]OFD Sender: No OFD packet to send [20:07:37]OFD Sender: No OFD packet to send [20:07:42]OFD Sender: No OFD packet to send [20:07:47]OFD Sender: No OFD packet to send [20:07:52]OFD Sender: No OFD packet to send [20:07:57]OFD Sender: No OFD packet to send [20:08:02]OFD Sender: No OFD packet to send [20:08:07]OFD Sender: No OFD packet to send [20:08:12]OFD Sender: No OFD packet to send [20:08:17]OFD Sender: No OFD packet to send [20:08:22]OFD Sender: No OFD packet to send [20:08:27]OFD Sender: No OFD packet to send [20:08:32]OFD Sender: No OFD packet to send [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]int [20:10:22]Write to MH i2c: 01 00 00 79 10 89 [20:10:22]*** FLAG_PRN_PAP1 set [20:10:22]Write i2c OK [20:10:22]MH_I2C_Read... [20:10:22]Read from MH i2c: 01 [20:10:22]MH_I2C_Read... [20:10:22]Read from MH i2c: 01 07 00 [20:10:22]MH_I2C_Read... [20:10:22]Read from MH i2c: 01 07 00 79 10 00 01 00 00 00 FF 0F 9F [20:10:22]state=0 [20:10:22]No paper [20:10:22]int [20:10:22]Write to MH i2c: 01 00 00 7A 10 8A [20:10:22]*** FLAG_PRN_PAP2 set [20:10:22]Write i2c OK [20:10:22]MH_I2C_Read... [20:10:22]Read from MH i2c: 01 [20:10:22]MH_I2C_Read... [20:10:22]Read from MH i2c: 01 07 00 [20:10:22]MH_I2C_Read... [20:10:22]Read from MH i2c: 01 07 00 7A 10 00 03 00 00 00 FF 0F A2 [20:10:22]state=0 [20:10:22]No paper [20:10:22]Cover opened [20:10:22]OFD Sender: No OFD packet to send [20:10:26]int [20:10:26]Write to MH i2c: 01 00 00 7B 10 8B [20:10:26]*** FLAG_PRN_PAP1 reset [20:10:26]Write i2c OK [20:10:26]MH_I2C_Read... [20:10:26]Read from MH i2c: 01 [20:10:26]MH_I2C_Read... [20:10:26]Read from MH i2c: 01 07 00 [20:10:26]MH_I2C_Read... [20:10:26]Read from MH i2c: 01 07 00 7B 10 00 02 00 00 00 FF 0F A2 [20:10:26]state=3 [20:10:26]Cover opened [20:10:26]int [20:10:26]Write to MH i2c: 01 00 00 7C 10 8C [20:10:26]*** FLAG_PRN_PAP2 reset [20:10:26]Write i2c OK [20:10:26]MH_I2C_Read... [20:10:26]Read from MH i2c: 01 [20:10:26]MH_I2C_Read... [20:10:26]Read from MH i2c: 01 07 00 [20:10:26]MH_I2C_Read... [20:10:26]Read from MH i2c: 01 07 00 7C 10 00 00 00 00 00 FF 0F A1 [20:10:26]state=3 [20:10:26]Cover closed [20:10:27]OFD Sender: No OFD packet to send [20:10:32]OFD Sender: No OFD packet to send [20:10:34]accept exits with 8 [20:10:34]New connection [20:10:34]New thread 3066940772 created [20:10:34]Thread 3066797412 joined [20:10:34]Waiting for new connection... [20:10:34] Sock 8.Parse request [20:10:34]Sock 8.Check first char [20:10:34]Sock 8.First char is OK [20:10:34]request: POST /json_proto HTTP/1.0 [20:10:34]Method: POST [20:10:34]URL: /json_proto [20:10:34]Method is POST - this is cgi request [20:10:34]url: /json_proto [20:10:34]query_string will be loaded in cgi processing [20:10:34]execute_cgi json_proto POST (null) [20:10:34]execute_cgi path=json_proto method=POST [20:10:34]POST find Content-Length [20:10:34]Host: 172.17.38.133:8080 [20:10:34]Content-Length: 816 [20:10:34]Content-Type: application/json [20:10:34] [20:10:34]POST finish read [20:10:34]Found Content-Length = 816 [20:10:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673082", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.66 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:10:34]execute_script... [20:10:34]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673082", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.66 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:10:34]POST & json_proto [20:10:34]process_json_proto [20:10:34]json parsed OK: [20:10:34]protocol is kg_v1.0 [20:10:34]action value=close_receipt [20:10:34]process_action close_receipt [20:10:34]cmd_close_receipt [20:10:34]MH_GetDate [20:10:34]Write to MH i2c: F0 00 00 7D 10 7C [20:10:34]Write i2c OK [20:10:34]MH_I2C_Read... [20:10:34]Read from MH i2c: F0 [20:10:34]MH_I2C_Read... [20:10:34]Read from MH i2c: F0 09 00 [20:10:34]MH_I2C_Read... [20:10:34]Read from MH i2c: F0 09 00 7D 10 00 3C 3B 73 66 BD 8F 7C 64 01 [20:10:34]GetLastDocTimeStamp 1718827505 [20:10:34]current date 1718827836 [20:10:34]FM_GetShiftState [20:10:34]SAM_PROTO_GetShiftState [20:10:34]wFMCommunicate request_size=4 [20:10:34]MH_SAM_APDU [20:10:34]CAPDU: 80 13 01 00 [20:10:34]Write to MH i2c: E2 08 00 7E 10 80 13 01 00 00 00 00 00 0B [20:10:34]Write i2c OK [20:10:34]MH_I2C_Read... [20:10:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:10:34]Read from MH i2c: E2 [20:10:34]MH_I2C_Read... [20:10:34]Read from MH i2c: E2 0E 00 [20:10:34]MH_I2C_Read... [20:10:34]Read from MH i2c: E2 0E 00 7E 10 00 09 00 01 04 26 72 66 00 00 00 00 90 00 19 [20:10:34]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [20:10:34]wFMCommunicate OK [20:10:34]SAM_PROTO_GetShiftState done [20:10:34]FM_GetShiftState done [20:10:34]opened in 1718756868 [20:10:34]opened+sec_in_day 1718843268 [20:10:34]quantity*price = 50065 [20:10:34]sum+1 = 50067 [20:10:34]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.66 НСП 1% : 4.43 НДС 12% : 53.17 Наличными: 0.00 Безнал.: 500.66 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 218 19.06.2024 20:10 Смена: 353 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000875093 ФД: 103788 ФПД: 276963733827140 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T201036&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103788&fm=276963733827140&tin=02508201610067®Number=0000000000092785&sum=50066 [20:10:36]StoreToDocumentArchive [20:10:36]shift 353 fd 103788 [20:10:36]save to /storage/0353/doc_00103788 [20:10:36]save last doc name /storage/0353/doc_00103788 to /storage/kkm_last_doc_name [20:10:36]save OK [20:10:36]Clear old archive folders... [20:10:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:10:36]tlvbuf is B6EBEBF0 [20:10:36]SAM_PROTO_ClearQueue [20:10:36]wFMCommunicate request_size=4 [20:10:36]MH_SAM_APDU [20:10:36]CAPDU: 80 09 00 00 [20:10:36]Write to MH i2c: E2 08 00 8B 10 80 09 00 00 00 00 00 00 0D [20:10:36]Write i2c OK [20:10:36]MH_I2C_Read... [20:10:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:10:36]Read from MH i2c: E2 [20:10:36]MH_I2C_Read... [20:10:36]Read from MH i2c: E2 03 00 [20:10:36]MH_I2C_Read... [20:10:36]Read from MH i2c: E2 03 00 8B 10 00 90 00 0F [20:10:36]RAPDU: 90 00 [20:10:36]wFMCommunicate OK [20:10:36]SAM_PROTO_ClearQueue done [20:10:36]KKMCreateOFDPacket [20:10:36]OFDProtocolAddRootSTLVToBuf [20:10:36]FM_MakeSignedData [20:10:36]FM_MakeSignedData [20:10:36]SAM_PROTO_SignData [20:10:36]wFMCommunicate request_size=4 [20:10:36]MH_SAM_APDU [20:10:36]CAPDU: 80 0D 01 02 [20:10:36]Write to MH i2c: E2 08 00 8C 10 80 0D 01 02 00 00 00 00 15 [20:10:36]Write i2c OK [20:10:36]MH_I2C_Read... [20:10:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:10:36]Read from MH i2c: E2 [20:10:36]MH_I2C_Read... [20:10:36]Read from MH i2c: E2 03 00 [20:10:36]MH_I2C_Read... [20:10:36]Read from MH i2c: E2 03 00 8C 10 00 90 00 10 [20:10:36]RAPDU: 90 00 [20:10:36]wFMCommunicate OK [20:10:36]wFMCommunicate request_size=255 [20:10:36]MH_SAM_APDU [20:10:36]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 92 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 92 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DA 00 00 00 F4 03 04 00 3C 3B 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 6C 95 01 00 35 04 06 00 FB [20:10:36]Write to MH i2c: E2 02 01 8D 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 92 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 92 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DA 00 00 00 F4 03 04 00 3C 3B 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 6C 95 01 00 35 04 06 00 FB 00 00 DC [20:10:36]Write i2c OK [20:10:36]MH_I2C_Read... [20:10:36]Read from MH i2c: E2 [20:10:36]MH_I2C_Read... [20:10:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:10:36]Read from MH i2c: E2 03 00 [20:10:36]MH_I2C_Read... [20:10:36]Read from MH i2c: E2 03 00 8D 10 00 90 00 11 [20:10:36]RAPDU: 90 00 [20:10:36]wFMCommunicate OK [20:10:36]wFMCommunicate request_size=10 [20:10:36]MH_SAM_APDU [20:10:36]CAPDU: 80 0D 02 02 05 E5 A4 F8 6E 44 [20:10:36]Write to MH i2c: E2 0D 00 8E 10 80 0D 02 02 05 00 E5 A4 F8 6E 44 00 00 55 [20:10:36]Write i2c OK [20:10:36]MH_I2C_Read... [20:10:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:10:36]Read from MH i2c: E2 [20:10:36]MH_I2C_Read... [20:10:36]Read from MH i2c: E2 03 00 [20:10:36]MH_I2C_Read... [20:10:36]Read from MH i2c: E2 03 00 8E 10 00 90 00 12 [20:10:36]RAPDU: 90 00 [20:10:36]wFMCommunicate OK [20:10:36]wFMCommunicate request_size=4 [20:10:36]MH_SAM_APDU [20:10:36]CAPDU: 80 0D 03 02 [20:10:36]Write to MH i2c: E2 08 00 8F 10 80 0D 03 02 00 00 00 00 1A [20:10:36]Write i2c OK [20:10:36]MH_I2C_Read... [20:10:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:10:36]Read from MH i2c: E2 [20:10:36]MH_I2C_Read... [20:10:36]Read from MH i2c: E2 0B 00 [20:10:36]MH_I2C_Read... [20:10:36]Read from MH i2c: E2 0B 00 8F 10 00 EF 49 B3 37 80 98 9B 52 90 00 42 [20:10:36]RAPDU: EF 49 B3 37 80 98 9B 52 90 00 [20:10:36]wFMCommunicate OK [20:10:36]SAM_PROTO_SignData done [20:10:36]FM_MakeSignedData done [20:10:36]CreateOFDProtocolMessage [20:10:36]wFMCommunicate request_size=4 [20:10:36]MH_SAM_APDU [20:10:36]CAPDU: 80 11 00 00 [20:10:36]Write to MH i2c: E2 08 00 90 10 80 11 00 00 00 00 00 00 1A [20:10:36]Write i2c OK [20:10:36]MH_I2C_Read... [20:10:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:10:36]Read from MH i2c: E2 [20:10:36]MH_I2C_Read... [20:10:36]Read from MH i2c: E2 17 00 [20:10:36]MH_I2C_Read... [20:10:36]Read from MH i2c: E2 17 00 90 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 6D [20:10:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [20:10:36]wFMCommunicate OK [20:10:36]CreateOFDProtocolMessage done [20:10:36]OFDSenderStorePacket 103788 [20:10:36]StoreOFDPacket docnum=103788 [20:10:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 32 19 07 01 11 19 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 92 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 92 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DA 00 00 00 F4 03 04 00 3C 3B 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 6C 95 01 00 35 04 06 00 FB E5 A4 F8 6E 44 EF 49 B3 37 80 98 9B 52 [20:10:36]CheckFolder [20:10:36]dirname=/storage/ofd_packets [20:10:36]CheckFolder done [20:10:36]ProducePacketName [20:10:36]name=ofd_packets/00103788 [20:10:36]NVStorageSaveData ofd_packets/00103788 [20:10:36]File name is /storage/ofd_packets/00103788 [20:10:36]Write 301 bytes [20:10:36]NVStorageSaveData done [20:10:36]OFDSenderStorePacket done [20:10:36]KKMCreateOFDPacket done [20:10:36]NVStorageSaveData kkm_last_timestamp [20:10:36]File name is /storage/kkm_last_timestamp [20:10:36]Write 4 bytes [20:10:36]NVStorageSaveData done [20:10:36]ExternCall_PrintAddStr [20:10:36]wPrintStart [20:10:36]Write to MH i2c: 01 00 00 91 10 A1 [20:10:36]Write i2c OK [20:10:36]MH_I2C_Read... [20:10:36]Read from MH i2c: 01 [20:10:36]MH_I2C_Read... [20:10:36]Read from MH i2c: 01 07 00 [20:10:36]MH_I2C_Read... [20:10:36]Read from MH i2c: 01 07 00 91 10 00 00 00 00 00 FF 0F B6 [20:10:36]RasterBufferAndPrint [20:10:36]line Счет N : (1)673082 [20:10:36]line ИНН: 02508201610067 [20:10:36]line Контрольно-Кассовый Чек [20:10:36]line ПРОДАЖА [20:10:36]line ТРК (МРК, ГНК) : 42 [20:10:36]line Товар: 2710124130 [20:10:36]line Аи-92-К-5 [20:10:36]line 7.540 * 66.40 [20:10:36]line = 500.66 [20:10:36]line НДС 12% НСП 1% [20:10:36]line > о реализуемом товаре [20:10:36]line ИТОГО: 500.66 [20:10:36]line НСП 1% : 4.43 [20:10:36]line НДС 12% : 53.17 [20:10:36]line Наличными: 0.00 [20:10:36]line Безнал.: 500.66 [20:10:36]line Место: АЗС № 120 "Партнер Нефть" [20:10:36]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [20:10:36]line СНО: Общий режим [20:10:36]line Чек 218 19.06.2024 20:10 [20:10:36]line Смена: 353 ФФД: 1.0 [20:10:36]line ЗНМ: 0300000164 [20:10:36]line РНМ: 0000000000092785 [20:10:36]line Версия ККМ: 001 [20:10:36]line Платежная система: Бакай Банк [20:10:36]line ФМ: 0000000000875093 [20:10:36]line ФД: 103788 [20:10:36]line ФПД: 276963733827140 [20:10:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T201036&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103788&fm=276963733827140&tin=02508201610067®Number=0000000000092785&sum=50066 [20:10:36]written 0, free lines is 4095 [20:10:36]OFD Sender: Processing packet 103788 [packets to send 17, broken 16] [20:10:36]ProducePacketName [20:10:36]name=ofd_packets/00103788 [20:10:36]OFD Sender: To server: pG, [20:10:36]CommunicateWithHost lk.salyk.kg:30040 [20:10:36]ConnectInit lk.salyk.kg [20:10:37]Connected sock=10 [20:10:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 32 19 07 01 11 19 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 92 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 92 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DA 00 00 00 F4 03 04 00 3C 3B 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 6C 95 01 00 35 04 06 00 FB E5 A4 F8 6E 44 EF 49 B3 37 80 98 9B 52 [20:10:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 D9 01 47 00 5D 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 39 33 10 04 04 00 6C 95 01 00 F4 03 04 00 C3 E1 72 66 B6 04 01 00 00 C9 C6 D2 A5 58 0F 15 82 [20:10:37]CommunicateWithHost err = 0 [20:10:37]CheckOFDResponse [20:10:37]1017 (14) - 77093643461234 [20:10:37]1041 (16) - 0000000000875093 [20:10:37]1040 (4) - 103788 [20:10:37]1012 (4) - 19.06.2024 13:48 [20:10:37]1206 (1) - 0 [20:10:37]OFD Sender: Remove packet 103788 [20:10:37]ProducePacketName [20:10:37]name=ofd_packets/00103788 [20:10:37]NVStorageDeleteData [20:10:37]Write to MH i2c: 01 00 00 BB 10 CB [20:10:37]Write i2c OK [20:10:37]MH_I2C_Read... [20:10:37]Read from MH i2c: 01 [20:10:37]MH_I2C_Read... [20:10:37]Read from MH i2c: 01 07 00 [20:10:37]MH_I2C_Read... [20:10:37]Read from MH i2c: 01 07 00 BB 10 00 00 00 00 00 FB 0C D9 [20:10:37]RasterBufferAndPrint [20:10:37]line [20:10:37]line [20:10:37]line [20:10:37]line [20:10:37]line [20:10:37]written 0, free lines is 3329 [20:10:37]MH_Cut [20:10:37]Write to MH i2c: D1 01 00 C2 10 01 A4 [20:10:37]Write i2c OK [20:10:37]MH_I2C_Read... [20:10:37]Read from MH i2c: D1 [20:10:37]MH_I2C_Read... [20:10:37]Read from MH i2c: D1 01 00 [20:10:37]MH_I2C_Read... [20:10:37]Read from MH i2c: D1 01 00 C2 10 00 A3 [20:10:37]Write to MH i2c: 01 00 00 C3 10 D3 [20:10:37]Write i2c OK [20:10:37]MH_I2C_Read... [20:10:37]OFD Sender: No OFD packet to send [20:10:38]*** Cut start [20:10:38]*** Partial cut [20:10:38]*** CUTSNS_PIN = 1 [20:10:38]*** CUTSNS_PIN = 0 [20:10:38]*** Brake cut motor [20:10:38]Read from MH i2c: 01 [20:10:38]MH_I2C_Read... [20:10:38]*** Stop cut motor [20:10:38]*** Cut end [20:10:38]Read from MH i2c: 01 07 00 [20:10:38]MH_I2C_Read... [20:10:38]Read from MH i2c: 01 07 00 C3 10 00 00 00 00 00 FF 0F E8 [20:10:38]process_action close_receipt done [20:10:38]requested_data is exist [20:10:38]produce_requested_data [20:10:38]requested_item fm.sn is exist - process it [20:10:38]wFMCommunicate request_size=4 [20:10:38]MH_SAM_APDU [20:10:38]CAPDU: 80 11 00 00 [20:10:38]Write to MH i2c: E2 08 00 C4 10 80 11 00 00 00 00 00 00 4E [20:10:38]Write i2c OK [20:10:38]MH_I2C_Read... [20:10:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:10:38]Read from MH i2c: E2 [20:10:38]MH_I2C_Read... [20:10:38]Read from MH i2c: E2 17 00 [20:10:38]MH_I2C_Read... [20:10:38]Read from MH i2c: E2 17 00 C4 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 A1 [20:10:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [20:10:38]wFMCommunicate OK [20:10:38]requested_item fd.num is exist - process it [20:10:38]SAM_PROTO_GetFieldsCounters [20:10:38]wFMCommunicate request_size=4 [20:10:38]MH_SAM_APDU [20:10:38]CAPDU: 80 13 00 00 [20:10:38]Write to MH i2c: E2 08 00 C5 10 80 13 00 00 00 00 00 00 51 [20:10:38]Write i2c OK [20:10:38]MH_I2C_Read... [20:10:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:10:38]Read from MH i2c: E2 [20:10:38]MH_I2C_Read... [20:10:38]Read from MH i2c: E2 62 00 [20:10:38]MH_I2C_Read... [20:10:38]Read from MH i2c: E2 62 00 C5 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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 6C 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 DA 00 00 00 5E 04 04 00 DA 00 00 00 57 04 04 00 DB 00 00 00 19 04 04 00 00 00 00 00 90 00 6A [20:10:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 6C 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 DA 00 00 00 5E 04 04 00 DA 00 00 00 57 04 04 00 DB 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:10:38]wFMCommunicate OK [20:10:38]SAM_PROTO_GetFieldsCounters done [20:10:38]requested_item shift.num is exist - process it [20:10:38]requested_item shift.opened is exist - process it [20:10:38]req_shift_opened [20:10:38]FM_GetShiftState [20:10:38]SAM_PROTO_GetShiftState [20:10:38]wFMCommunicate request_size=4 [20:10:38]MH_SAM_APDU [20:10:38]CAPDU: 80 13 01 00 [20:10:38]Write to MH i2c: E2 08 00 C6 10 80 13 01 00 00 00 00 00 53 [20:10:38]Write i2c OK [20:10:38]MH_I2C_Read... [20:10:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:10:39]Read from MH i2c: E2 [20:10:39]MH_I2C_Read... [20:10:39]Read from MH i2c: E2 0E 00 [20:10:39]MH_I2C_Read... [20:10:39]Read from MH i2c: E2 0E 00 C6 10 00 09 00 01 04 26 72 66 00 00 00 00 90 00 61 [20:10:39]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [20:10:39]wFMCommunicate OK [20:10:39]SAM_PROTO_GetShiftState done [20:10:39]FM_GetShiftState done [20:10:39]req_shift_opened done [20:10:39]requested_item shift.open_date is exist - process it [20:10:39]req_shift_open_date [20:10:39]req_shift_open_date done [20:10:39]produce_requested_data done [20:10:39]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103788,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [20:10:39]process_action_free close_receipt [20:10:39]json_value_free [20:10:39]json_value_free done [20:10:39]process_json_proto returns [20:10:39]Send response to host [20:10:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103788,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [20:10:39]free response buf [20:10:39]execute_script done [20:10:39]execute_script returns [20:10:39]free content buf [20:10:39]Sock 8.Close socket [20:10:39]Sock 8.Thread stoped [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:57]OFD Sender: No OFD packet to send [20:13:02]OFD Sender: No OFD packet to send [20:13:07]OFD Sender: No OFD packet to send [20:13:12]OFD Sender: No OFD packet to send [20:13:17]OFD Sender: No OFD packet to send [20:13:22]OFD Sender: No OFD packet to send [20:13:27]OFD Sender: No OFD packet to send [20:13:32]OFD Sender: No OFD packet to send [20:13:37]OFD Sender: No OFD packet to send [20:13:42]OFD Sender: No OFD packet to send [20:13:47]OFD Sender: No OFD packet to send [20:13:52]OFD Sender: No OFD packet to send [20:13:57]OFD Sender: No OFD packet to send [20:14:02]OFD Sender: No OFD packet to send [20:14:07]OFD Sender: No OFD packet to send [20:14:12]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:49]accept exits with 9 [20:14:49]New connection [20:14:49]New thread 3066797412 created [20:14:49]Thread 3066940772 joined [20:14:49]Waiting for new connection... [20:14:49] Sock 9.Parse request [20:14:49]Sock 9.Check first char [20:14:49]Sock 9.First char is OK [20:14:49]request: POST /json_proto HTTP/1.0 [20:14:49]Method: POST [20:14:49]URL: /json_proto [20:14:49]Method is POST - this is cgi request [20:14:49]url: /json_proto [20:14:49]query_string will be loaded in cgi processing [20:14:49]execute_cgi json_proto POST (null) [20:14:49]execute_cgi path=json_proto method=POST [20:14:49]POST find Content-Length [20:14:49]Host: 172.17.38.133:8080 [20:14:49]Content-Length: 682 [20:14:49]Content-Type: application/json [20:14:49] [20:14:49]POST finish read [20:14:49]Found Content-Length = 682 [20:14:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673084", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 9.880, "sum" : 720.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 720.00, "total" : 720.00, "payments": [ { "type": 0, "sum" : 720.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:14:49]execute_script... [20:14: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)673084", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 9.880, "sum" : 720.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 720.00, "total" : 720.00, "payments": [ { "type": 0, "sum" : 720.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:14:49]POST & json_proto [20:14:49]process_json_proto [20:14:49]json parsed OK: [20:14:49]protocol is kg_v1.0 [20:14:49]action value=close_receipt [20:14:49]process_action close_receipt [20:14:49]cmd_close_receipt [20:14:49]MH_GetDate [20:14:49]Write to MH i2c: F0 00 00 C7 10 C6 [20:14:49]Write i2c OK [20:14:49]MH_I2C_Read... [20:14:49]Read from MH i2c: F0 [20:14:49]MH_I2C_Read... [20:14:49]Read from MH i2c: F0 09 00 [20:14:49]MH_I2C_Read... [20:14:49]Read from MH i2c: F0 09 00 C7 10 00 3A 3C 73 66 BD 8F 7C 64 4A [20:14:49]GetLastDocTimeStamp 1718827836 [20:14:49]current date 1718828090 [20:14:49]FM_GetShiftState [20:14:49]SAM_PROTO_GetShiftState [20:14:49]wFMCommunicate request_size=4 [20:14:49]MH_SAM_APDU [20:14:49]CAPDU: 80 13 01 00 [20:14:49]Write to MH i2c: E2 08 00 C8 10 80 13 01 00 00 00 00 00 55 [20:14:49]Write i2c OK [20:14:49]MH_I2C_Read... [20:14:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:14:49]Read from MH i2c: E2 [20:14:49]MH_I2C_Read... [20:14:49]Read from MH i2c: E2 0E 00 [20:14:49]MH_I2C_Read... [20:14:49]Read from MH i2c: E2 0E 00 C8 10 00 09 00 01 04 26 72 66 00 00 00 00 90 00 63 [20:14:49]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [20:14:49]wFMCommunicate OK [20:14:49]SAM_PROTO_GetShiftState done [20:14:49]FM_GetShiftState done [20:14:49]opened in 1718756868 [20:14:49]opened+sec_in_day 1718843268 [20:14:49]quantity*price = 72025 [20:14:49]sum+1 = 72026 [20:14:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 720.00 Внесено: 720.00 СДАЧА: 0.00 НСП 1% : 6.37 НДС 12% : 76.49 Наличными: 720.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 219 19.06.2024 20:14 Смена: 353 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103789 ФПД: 77901761397655 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T201451&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103789&fm=77901761397655&tin=02508201610067®Number=0000000000092785&sum=72000 [20:14:51]StoreToDocumentArchive [20:14:51]shift 353 fd 103789 [20:14:51]save to /storage/0353/doc_00103789 [20:14:51]save last doc name /storage/0353/doc_00103789 to /storage/kkm_last_doc_name [20:14:51]save OK [20:14:51]Clear old archive folders... [20:14:51]ProcessDocumentItem done err = 0, tmpTLVsize=252 [20:14:51]tlvbuf is 01677720 [20:14:51]SAM_PROTO_ClearQueue [20:14:51]wFMCommunicate request_size=4 [20:14:51]MH_SAM_APDU [20:14:51]CAPDU: 80 09 00 00 [20:14:51]Write to MH i2c: E2 08 00 D5 10 80 09 00 00 00 00 00 00 57 [20:14:51]Write i2c OK [20:14:51]MH_I2C_Read... [20:14:51]Read from MH i2c: E2 [20:14:51]MH_I2C_Read... [20:14:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:14:51]Read from MH i2c: E2 03 00 [20:14:51]MH_I2C_Read... [20:14:51]Read from MH i2c: E2 03 00 D5 10 00 90 00 59 [20:14:51]RAPDU: 90 00 [20:14:51]wFMCommunicate OK [20:14:51]SAM_PROTO_ClearQueue done [20:14:51]KKMCreateOFDPacket [20:14:51]OFDProtocolAddRootSTLVToBuf [20:14:51]FM_MakeSignedData [20:14:51]FM_MakeSignedData [20:14:51]SAM_PROTO_SignData [20:14:51]wFMCommunicate request_size=4 [20:14:51]MH_SAM_APDU [20:14:51]CAPDU: 80 0D 01 02 [20:14:51]Write to MH i2c: E2 08 00 D6 10 80 0D 01 02 00 00 00 00 5F [20:14:51]Write i2c OK [20:14:51]MH_I2C_Read... [20:14:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:14:51]Read from MH i2c: E2 [20:14:51]MH_I2C_Read... [20:14:51]Read from MH i2c: E2 03 00 [20:14:51]MH_I2C_Read... [20:14:51]Read from MH i2c: E2 03 00 D6 10 00 90 00 5A [20:14:51]RAPDU: 90 00 [20:14:51]wFMCommunicate OK [20:14:51]wFMCommunicate request_size=255 [20:14:51]MH_SAM_APDU [20:14:51]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 98 26 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 19 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 19 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7D 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E1 1D 00 00 00 00 07 04 06 00 40 19 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DB 00 00 00 F4 03 04 00 3B 3C 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 6D 95 01 00 35 04 06 00 [20:14:51]Write to MH i2c: E2 02 01 D7 10 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 98 26 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 19 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 19 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7D 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E1 1D 00 00 00 00 07 04 06 00 40 19 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DB 00 00 00 F4 03 04 00 3B 3C 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 6D 95 01 00 35 04 06 00 00 00 32 [20:14:51]Write i2c OK [20:14:51]MH_I2C_Read... [20:14:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:14:51]Read from MH i2c: E2 [20:14:51]MH_I2C_Read... [20:14:51]Read from MH i2c: E2 03 00 [20:14:51]MH_I2C_Read... [20:14:51]Read from MH i2c: E2 03 00 D7 10 00 90 00 5B [20:14:51]RAPDU: 90 00 [20:14:51]wFMCommunicate OK [20:14:51]wFMCommunicate request_size=11 [20:14:51]MH_SAM_APDU [20:14:51]CAPDU: 80 0D 02 02 06 46 D9 EA D0 C3 97 [20:14:51]Write to MH i2c: E2 0E 00 D8 10 80 0D 02 02 06 00 46 D9 EA D0 C3 97 00 00 A1 [20:14:51]Write i2c OK [20:14:51]MH_I2C_Read... [20:14:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:14:51]Read from MH i2c: E2 [20:14:51]MH_I2C_Read... [20:14:51]Read from MH i2c: E2 03 00 [20:14:51]MH_I2C_Read... [20:14:51]Read from MH i2c: E2 03 00 D8 10 00 90 00 5C [20:14:51]RAPDU: 90 00 [20:14:51]wFMCommunicate OK [20:14:51]wFMCommunicate request_size=4 [20:14:51]MH_SAM_APDU [20:14:51]CAPDU: 80 0D 03 02 [20:14:51]Write to MH i2c: E2 08 00 D9 10 80 0D 03 02 00 00 00 00 64 [20:14:51]Write i2c OK [20:14:51]MH_I2C_Read... [20:14:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:14:51]Read from MH i2c: E2 [20:14:51]MH_I2C_Read... [20:14:51]Read from MH i2c: E2 0B 00 [20:14:51]MH_I2C_Read... [20:14:51]Read from MH i2c: E2 0B 00 D9 10 00 00 B6 ED 80 39 6E 86 0C 90 00 C1 [20:14:51]RAPDU: 00 B6 ED 80 39 6E 86 0C 90 00 [20:14:51]wFMCommunicate OK [20:14:51]SAM_PROTO_SignData done [20:14:51]FM_MakeSignedData done [20:14:51]CreateOFDProtocolMessage [20:14:51]wFMCommunicate request_size=4 [20:14:51]MH_SAM_APDU [20:14:51]CAPDU: 80 11 00 00 [20:14:51]Write to MH i2c: E2 08 00 DA 10 80 11 00 00 00 00 00 00 64 [20:14:51]Write i2c OK [20:14:51]MH_I2C_Read... [20:14:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:14:51]Read from MH i2c: E2 [20:14:51]MH_I2C_Read... [20:14:51]Read from MH i2c: E2 17 00 [20:14:51]MH_I2C_Read... [20:14:51]Read from MH i2c: E2 17 00 DA 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 B7 [20:14:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [20:14:51]wFMCommunicate OK [20:14:51]CreateOFDProtocolMessage done [20:14:51]OFDSenderStorePacket 103789 [20:14:51]StoreOFDPacket docnum=103789 [20:14:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 C4 87 08 01 9D CB 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 98 26 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 19 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 19 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7D 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E1 1D 00 00 00 00 07 04 06 00 40 19 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DB 00 00 00 F4 03 04 00 3B 3C 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 6D 95 01 00 35 04 06 00 46 D9 EA D0 C3 97 00 B6 ED 80 39 6E 86 0C [20:14:51]CheckFolder [20:14:51]dirname=/storage/ofd_packets [20:14:51]CheckFolder done [20:14:51]ProducePacketName [20:14:51]name=ofd_packets/00103789 [20:14:51]NVStorageSaveData ofd_packets/00103789 [20:14:51]File name is /storage/ofd_packets/00103789 [20:14:51]Write 302 bytes [20:14:51]NVStorageSaveData done [20:14:51]OFDSenderStorePacket done [20:14:51]KKMCreateOFDPacket done [20:14:51]NVStorageSaveData kkm_last_timestamp [20:14:51]File name is /storage/kkm_last_timestamp [20:14:51]Write 4 bytes [20:14:51]NVStorageSaveData done [20:14:51]ExternCall_PrintAddStr [20:14:51]wPrintStart [20:14:51]Write to MH i2c: 01 00 00 DB 10 EB [20:14:51]Write i2c OK [20:14:51]MH_I2C_Read... [20:14:51]Read from MH i2c: 01 [20:14:51]MH_I2C_Read... [20:14:51]Read from MH i2c: 01 07 00 [20:14:51]MH_I2C_Read... [20:14:51]Read from MH i2c: 01 07 00 DB 10 00 00 00 00 00 FF 0F 00 [20:14:51]RasterBufferAndPrint [20:14:51]line Счет N : (1)673084 [20:14:51]line ИНН: 02508201610067 [20:14:51]line Контрольно-Кассовый Чек [20:14:51]line ПРОДАЖА [20:14:51]line ТРК (МРК, ГНК) : 11 [20:14:51]line Товар: 2710194210 [20:14:51]line ДТ(л)-К-5 [20:14:51]line 9.880 * 72.90 [20:14:51]line = 720.25 [20:14:51]line НДС 12% НСП 1% [20:14:51]line > о реализуемом товаре [20:14:51]line ОКРУГЛЕНИЕ: -0.25 [20:14:51]line ИТОГО: 720.00 [20:14:51]line Внесено: 720.00 [20:14:51]line СДАЧА: 0.00 [20:14:51]line НСП 1% : 6.37 [20:14:51]line НДС 12% : 76.49 [20:14:51]line Наличными: 720.00 [20:14:51]line Безнал.: 0.00 [20:14:51]line Место: АЗС № 120 "Партнер Нефть" [20:14:51]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [20:14:51]line СНО: Общий режим [20:14:51]line Чек 219 19.06.2024 20:14 [20:14:51]line Смена: 353 ФФД: 1.0 [20:14:51]line ЗНМ: 0300000164 [20:14:51]line РНМ: 0000000000092785 [20:14:51]line Версия ККМ: 001 [20:14:51]line ФМ: 0000000000875093 [20:14:51]line ФД: 103789 [20:14:51]line ФПД: 77901761397655 [20:14:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T201451&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103789&fm=77901761397655&tin=02508201610067®Number=0000000000092785&sum=72000 [20:14:51]OFD Sender: Processing packet 103789 [packets to send 17, broken 16] [20:14:51]ProducePacketName [20:14:51]name=ofd_packets/00103789 [20:14:51]OFD Sender: To server: pG, [20:14:51]CommunicateWithHost lk.salyk.kg:30040 [20:14:51]ConnectInit lk.salyk.kg [20:14:51]written 0, free lines is 4095 [20:14:51]Connected sock=11 [20:14: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 39 33 10 01 00 00 C4 87 08 01 9D CB 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 98 26 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 19 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 19 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7D 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E1 1D 00 00 00 00 07 04 06 00 40 19 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DB 00 00 00 F4 03 04 00 3B 3C 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 6D 95 01 00 35 04 06 00 46 D9 EA D0 C3 97 00 B6 ED 80 39 6E 86 0C [20:14: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 39 33 4F 00 00 00 DD BB 47 00 6D 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 39 33 10 04 04 00 6D 95 01 00 F4 03 04 00 C2 E2 72 66 B6 04 01 00 00 08 33 D7 96 35 BA 25 4B [20:14:52]CommunicateWithHost err = 0 [20:14:52]CheckOFDResponse [20:14:52]1017 (14) - 77093643461234 [20:14:52]1041 (16) - 0000000000875093 [20:14:52]1040 (4) - 103789 [20:14:52]1012 (4) - 19.06.2024 13:53 [20:14:52]1206 (1) - 0 [20:14:52]OFD Sender: Remove packet 103789 [20:14:52]ProducePacketName [20:14:52]name=ofd_packets/00103789 [20:14:52]NVStorageDeleteData [20:14:52]Write to MH i2c: 01 00 00 06 11 17 [20:14:52]Write i2c OK [20:14:52]MH_I2C_Read... [20:14:52]Read from MH i2c: 01 [20:14:52]MH_I2C_Read... [20:14:52]Read from MH i2c: 01 07 00 [20:14:52]MH_I2C_Read... [20:14:52]Read from MH i2c: 01 07 00 06 11 00 00 00 00 00 D4 0C FE [20:14:52]RasterBufferAndPrint [20:14:52]line [20:14:52]line [20:14:52]line [20:14:52]line [20:14:52]line [20:14:52]written 0, free lines is 3288 [20:14:52]MH_Cut [20:14:52]Write to MH i2c: D1 01 00 0D 11 01 F0 [20:14:52]Write i2c OK [20:14:52]MH_I2C_Read... [20:14:52]Read from MH i2c: D1 [20:14:52]MH_I2C_Read... [20:14:52]Read from MH i2c: D1 01 00 [20:14:52]MH_I2C_Read... [20:14:52]Read from MH i2c: D1 01 00 0D 11 00 EF [20:14:52]Write to MH i2c: 01 00 00 0E 11 1F [20:14:52]Write i2c OK [20:14:52]MH_I2C_Read... [20:14:52]OFD Sender: No OFD packet to send [20:14:53]*** Cut start [20:14:53]*** Partial cut [20:14:53]*** CUTSNS_PIN = 1 [20:14:53]*** CUTSNS_PIN = 0 [20:14:53]*** Brake cut motor [20:14:53]Read from MH i2c: 01 [20:14:53]MH_I2C_Read... [20:14:53]*** Stop cut motor [20:14:53]*** Cut end [20:14:53]Read from MH i2c: 01 07 00 [20:14:53]MH_I2C_Read... [20:14:53]Read from MH i2c: 01 07 00 0E 11 00 00 00 00 00 FF 0F 34 [20:14:53]process_action close_receipt done [20:14:53]requested_data is exist [20:14:53]produce_requested_data [20:14:53]requested_item fm.sn is exist - process it [20:14:53]wFMCommunicate request_size=4 [20:14:53]MH_SAM_APDU [20:14:53]CAPDU: 80 11 00 00 [20:14:53]Write to MH i2c: E2 08 00 0F 11 80 11 00 00 00 00 00 00 9A [20:14:53]Write i2c OK [20:14:53]MH_I2C_Read... [20:14:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:14:53]Read from MH i2c: E2 [20:14:53]MH_I2C_Read... [20:14:53]Read from MH i2c: E2 17 00 [20:14:53]MH_I2C_Read... [20:14:53]Read from MH i2c: E2 17 00 0F 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 ED [20:14:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [20:14:53]wFMCommunicate OK [20:14:53]requested_item fd.num is exist - process it [20:14:53]SAM_PROTO_GetFieldsCounters [20:14:53]wFMCommunicate request_size=4 [20:14:53]MH_SAM_APDU [20:14:53]CAPDU: 80 13 00 00 [20:14:53]Write to MH i2c: E2 08 00 10 11 80 13 00 00 00 00 00 00 9D [20:14:53]Write i2c OK [20:14:53]MH_I2C_Read... [20:14:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:14:53]Read from MH i2c: E2 [20:14:53]MH_I2C_Read... [20:14:53]Read from MH i2c: E2 62 00 [20:14:53]MH_I2C_Read... [20:14:53]Read from MH i2c: E2 62 00 10 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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 6D 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 DB 00 00 00 5E 04 04 00 DB 00 00 00 57 04 04 00 DC 00 00 00 19 04 04 00 00 00 00 00 90 00 BA [20:14: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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 6D 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 DB 00 00 00 5E 04 04 00 DB 00 00 00 57 04 04 00 DC 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:14:53]wFMCommunicate OK [20:14:53]SAM_PROTO_GetFieldsCounters done [20:14:53]requested_item shift.num is exist - process it [20:14:53]requested_item shift.opened is exist - process it [20:14:53]req_shift_opened [20:14:53]FM_GetShiftState [20:14:53]SAM_PROTO_GetShiftState [20:14:53]wFMCommunicate request_size=4 [20:14:53]MH_SAM_APDU [20:14:53]CAPDU: 80 13 01 00 [20:14:53]Write to MH i2c: E2 08 00 11 11 80 13 01 00 00 00 00 00 9F [20:14:53]Write i2c OK [20:14:53]MH_I2C_Read... [20:14:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:14:53]Read from MH i2c: E2 [20:14:53]MH_I2C_Read... [20:14:53]Read from MH i2c: E2 0E 00 [20:14:53]MH_I2C_Read... [20:14:53]Read from MH i2c: E2 0E 00 11 11 00 09 00 01 04 26 72 66 00 00 00 00 90 00 AD [20:14:53]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [20:14:53]wFMCommunicate OK [20:14:53]SAM_PROTO_GetShiftState done [20:14:53]FM_GetShiftState done [20:14:53]req_shift_opened done [20:14:53]requested_item shift.open_date is exist - process it [20:14:53]req_shift_open_date [20:14:53]req_shift_open_date done [20:14:53]produce_requested_data done [20:14:53]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103789,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [20:14:53]process_action_free close_receipt [20:14:53]json_value_free [20:14:53]json_value_free done [20:14:53]process_json_proto returns [20:14:53]Send response to host [20:14:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103789,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [20:14:53]free response buf [20:14:53]execute_script done [20:14:53]execute_script returns [20:14:53]free content buf [20:14:53]Sock 9.Close socket [20:14:53]Sock 9.Thread stoped [20:14:57]OFD Sender: No OFD packet to send [20:15:02]OFD Sender: No OFD packet to send [20:15:07]OFD Sender: No OFD packet to send [20:15:12]OFD Sender: No OFD packet to send [20:15:17]OFD Sender: No OFD packet to send [20:15:22]OFD Sender: No OFD packet to send [20:15:27]OFD Sender: No OFD packet to send [20:15:32]OFD Sender: No OFD packet to send [20:15:37]OFD Sender: No OFD packet to send [20:15:42]OFD Sender: No OFD packet to send [20:15:47]OFD Sender: No OFD packet to send [20:15:52]OFD Sender: No OFD packet to send [20:15:57]OFD Sender: No OFD packet to send [20:16:02]OFD Sender: No OFD packet to send [20:16:07]OFD Sender: No OFD packet to send [20:16:12]OFD Sender: No OFD packet to send [20:16:17]OFD Sender: No OFD packet to send [20:16:22]OFD Sender: No OFD packet to send [20:16:27]OFD Sender: No OFD packet to send [20:16:32]OFD Sender: No OFD packet to send [20:16:37]OFD Sender: No OFD packet to send [20:16:42]OFD Sender: No OFD packet to send [20:16:47]OFD Sender: No OFD packet to send [20:16:52]OFD Sender: No OFD packet to send [20:16:57]OFD Sender: No OFD packet to send [20:17:02]OFD Sender: No OFD packet to send [20:17:07]OFD Sender: No OFD packet to send [20:17:12]OFD Sender: No OFD packet to send [20:17:17]OFD Sender: No OFD packet to send [20:17:18]accept exits with 8 [20:17:18]New connection [20:17:18]New thread 3066940772 created [20:17:18]Thread 3066797412 joined [20:17:18]Waiting for new connection... [20:17:18] Sock 8.Parse request [20:17:18]Sock 8.Check first char [20:17:18]Sock 8.First char is OK [20:17:18]request: POST /json_proto HTTP/1.0 [20:17:18]Method: POST [20:17:18]URL: /json_proto [20:17:18]Method is POST - this is cgi request [20:17:18]url: /json_proto [20:17:18]query_string will be loaded in cgi processing [20:17:18]execute_cgi json_proto POST (null) [20:17:18]execute_cgi path=json_proto method=POST [20:17:18]POST find Content-Length [20:17:18]Host: 172.17.38.133:8080 [20:17:18]Content-Length: 1207 [20:17:18]Content-Type: application/json [20:17:18] [20:17:18]POST finish read [20:17:18]Found Content-Length = 1207 [20:17:18]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 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. \u000A\u0421\u0447\u0435\u0442 N : (1)673085\u000A19.06.2024 19:54\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 31\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124500\u000A\u0410\u0438-95-\u041A-5\u000A 54.120 x 73.90\u000A\u0418\u0422\u041E\u0413: 3999.47\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\u000A35457\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:17:18]execute_script... [20:17:18]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 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. \u000A\u0421\u0447\u0435\u0442 N : (1)673085\u000A19.06.2024 19:54\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 31\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124500\u000A\u0410\u0438-95-\u041A-5\u000A 54.120 x 73.90\u000A\u0418\u0422\u041E\u0413: 3999.47\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\u000A35457\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:17:18]POST & json_proto [20:17:18]process_json_proto [20:17:18]json parsed OK: [20:17:18]protocol is kg_v1.0 [20:17:18]action value=print_text [20:17:18]process_action print_text [20:17:18]cmd_print_text [20:17:18]ExternCall_PrintAddStr [20:17:18]wPrintStart [20:17:18]Write to MH i2c: 01 00 00 12 11 23 [20:17:18]Write i2c OK [20:17:18]MH_I2C_Read... [20:17:18]Read from MH i2c: 01 [20:17:18]MH_I2C_Read... [20:17:18]Read from MH i2c: 01 07 00 [20:17:18]MH_I2C_Read... [20:17:18]Read from MH i2c: 01 07 00 12 11 00 00 00 00 00 FF 0F 38 [20:17:18]RasterBufferAndPrint [20:17:18]line *****ТОВАРНЫЙ ЧЕК***** [20:17:18]line АЗС 120 [20:17:18]line Партнер нефть [20:17:18]line 02508201610067 [20:17:18]line Кассир : Байбугуева Г. [20:17:18]line Счет N : (1)673085 [20:17:18]line 19.06.2024 19:54 [20:17:18]line ПРОДАЖА [20:17:18]line ТРК (МРК, ГНК): 31 [20:17:18]line Вид ГСМ : 2710124500 [20:17:18]line Аи-95-К-5 [20:17:18]line 54.120 x 73.90 [20:17:18]line ИТОГ: 3999.47 [20:17:18]line Тип оплаты: Талоны: Топливная Карта [20:17:18]line 35457 [20:17:18]line ______________________ [20:17:18]line (подпись) [20:17:18]written 0, free lines is 4095 [20:17:18]Write to MH i2c: 01 00 00 26 11 37 [20:17:18]Write i2c OK [20:17:18]MH_I2C_Read... [20:17:18]Read from MH i2c: 01 [20:17:18]MH_I2C_Read... [20:17:18]Read from MH i2c: 01 07 00 [20:17:18]MH_I2C_Read... [20:17:18]Read from MH i2c: 01 07 00 26 11 00 00 00 00 00 11 0E 5D [20:17:18]RasterBufferAndPrint [20:17:18]line [20:17:18]line [20:17:18]line [20:17:18]line [20:17:18]line [20:17:18]written 0, free lines is 3603 [20:17:18]MH_Cut [20:17:18]Write to MH i2c: D1 01 00 2D 11 01 10 [20:17:18]Write i2c OK [20:17:18]MH_I2C_Read... [20:17:18]Read from MH i2c: D1 [20:17:18]MH_I2C_Read... [20:17:18]Read from MH i2c: D1 01 00 [20:17:18]MH_I2C_Read... [20:17:18]Read from MH i2c: D1 01 00 2D 11 00 0F [20:17:18]Write to MH i2c: 01 00 00 2E 11 3F [20:17:18]Write i2c OK [20:17:18]MH_I2C_Read... [20:17:19]*** Cut start [20:17:19]*** Partial cut [20:17:19]*** CUTSNS_PIN = 1 [20:17:19]*** CUTSNS_PIN = 0 [20:17:19]*** Brake cut motor [20:17:19]Read from MH i2c: 01 [20:17:19]MH_I2C_Read... [20:17:19]*** Stop cut motor [20:17:19]*** Cut end [20:17:19]Read from MH i2c: 01 07 00 [20:17:19]MH_I2C_Read... [20:17:19]Read from MH i2c: 01 07 00 2E 11 00 00 00 00 00 FF 0F 54 [20:17:19]process_action print_text done [20:17:19]requested_data is exist [20:17:19]produce_requested_data [20:17:19]requested_item fm.sn is exist - process it [20:17:19]wFMCommunicate request_size=4 [20:17:19]MH_SAM_APDU [20:17:19]CAPDU: 80 11 00 00 [20:17:19]Write to MH i2c: E2 08 00 2F 11 80 11 00 00 00 00 00 00 BA [20:17:19]Write i2c OK [20:17:19]MH_I2C_Read... [20:17:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:17:19]Read from MH i2c: E2 [20:17:19]MH_I2C_Read... [20:17:19]Read from MH i2c: E2 17 00 [20:17:19]MH_I2C_Read... [20:17:19]Read from MH i2c: E2 17 00 2F 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 0D [20:17:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [20:17:19]wFMCommunicate OK [20:17:19]requested_item fd.num is exist - process it [20:17:19]SAM_PROTO_GetFieldsCounters [20:17:19]wFMCommunicate request_size=4 [20:17:19]MH_SAM_APDU [20:17:19]CAPDU: 80 13 00 00 [20:17:19]Write to MH i2c: E2 08 00 30 11 80 13 00 00 00 00 00 00 BD [20:17:19]Write i2c OK [20:17:19]MH_I2C_Read... [20:17:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:17:19]Read from MH i2c: E2 [20:17:19]MH_I2C_Read... [20:17:19]Read from MH i2c: E2 62 00 [20:17:19]MH_I2C_Read... [20:17:19]Read from MH i2c: E2 62 00 30 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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 6D 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 DB 00 00 00 5E 04 04 00 DB 00 00 00 57 04 04 00 DC 00 00 00 19 04 04 00 00 00 00 00 90 00 DA [20:17: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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 6D 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 DB 00 00 00 5E 04 04 00 DB 00 00 00 57 04 04 00 DC 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:17:19]wFMCommunicate OK [20:17:19]SAM_PROTO_GetFieldsCounters done [20:17:19]requested_item shift.num is exist - process it [20:17:19]requested_item shift.opened is exist - process it [20:17:19]req_shift_opened [20:17:19]FM_GetShiftState [20:17:19]SAM_PROTO_GetShiftState [20:17:19]wFMCommunicate request_size=4 [20:17:19]MH_SAM_APDU [20:17:19]CAPDU: 80 13 01 00 [20:17:19]Write to MH i2c: E2 08 00 31 11 80 13 01 00 00 00 00 00 BF [20:17:19]Write i2c OK [20:17:19]MH_I2C_Read... [20:17:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:17:19]Read from MH i2c: E2 [20:17:19]MH_I2C_Read... [20:17:19]Read from MH i2c: E2 0E 00 [20:17:19]MH_I2C_Read... [20:17:19]Read from MH i2c: E2 0E 00 31 11 00 09 00 01 04 26 72 66 00 00 00 00 90 00 CD [20:17:19]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [20:17:19]wFMCommunicate OK [20:17:19]SAM_PROTO_GetShiftState done [20:17:19]FM_GetShiftState done [20:17:19]req_shift_opened done [20:17:19]requested_item shift.open_date is exist - process it [20:17:19]req_shift_open_date [20:17:19]req_shift_open_date done [20:17:19]produce_requested_data done [20:17:19]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103789,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [20:17:19]process_action_free print_text [20:17:19]json_value_free [20:17:19]json_value_free done [20:17:19]process_json_proto returns [20:17:19]Send response to host [20:17:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103789,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [20:17:19]free response buf [20:17:19]execute_script done [20:17:19]execute_script returns [20:17:19]free content buf [20:17:19]Sock 8.Close socket [20:17:19]Sock 8.Thread stoped [20:17:22]OFD Sender: No OFD packet to send [20:17:27]OFD Sender: No OFD packet to send [20:17:31]accept exits with 9 [20:17:31]New connection [20:17:31]New thread 3066797412 created [20:17:31]Thread 3066940772 joined [20:17:31]Waiting for new connection... [20:17:31] Sock 9.Parse request [20:17:31]Sock 9.Check first char [20:17:31]Sock 9.First char is OK [20:17:31]request: POST /json_proto HTTP/1.0 [20:17:31]Method: POST [20:17:31]URL: /json_proto [20:17:31]Method is POST - this is cgi request [20:17:31]url: /json_proto [20:17:31]query_string will be loaded in cgi processing [20:17:31]execute_cgi json_proto POST (null) [20:17:31]execute_cgi path=json_proto method=POST [20:17:31]POST find Content-Length [20:17:31]Host: 172.17.38.133:8080 [20:17:31]Content-Length: 682 [20:17:31]Content-Type: application/json [20:17:31] [20:17:31]POST finish read [20:17:31]Found Content-Length = 682 [20:17:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673086", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 54.130, "sum" : 4000.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 4000.00, "total" : 4000.00, "payments": [ { "type": 0, "sum" : 4000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:17:31]execute_script... [20:17: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)673086", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 54.130, "sum" : 4000.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 4000.00, "total" : 4000.00, "payments": [ { "type": 0, "sum" : 4000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:17:31]POST & json_proto [20:17:31]process_json_proto [20:17:31]json parsed OK: [20:17:31]protocol is kg_v1.0 [20:17:31]action value=close_receipt [20:17:31]process_action close_receipt [20:17:31]cmd_close_receipt [20:17:31]MH_GetDate [20:17:31]Write to MH i2c: F0 00 00 32 11 32 [20:17:31]Write i2c OK [20:17:31]MH_I2C_Read... [20:17:31]Read from MH i2c: F0 [20:17:31]MH_I2C_Read... [20:17:31]Read from MH i2c: F0 09 00 [20:17:31]MH_I2C_Read... [20:17:31]Read from MH i2c: F0 09 00 32 11 00 DC 3C 73 66 BD 8F 7C 64 58 [20:17:31]GetLastDocTimeStamp 1718828091 [20:17:31]current date 1718828252 [20:17:31]FM_GetShiftState [20:17:31]SAM_PROTO_GetShiftState [20:17:31]wFMCommunicate request_size=4 [20:17:31]MH_SAM_APDU [20:17:31]CAPDU: 80 13 01 00 [20:17:31]Write to MH i2c: E2 08 00 33 11 80 13 01 00 00 00 00 00 C1 [20:17:31]Write i2c OK [20:17:31]MH_I2C_Read... [20:17:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:17:31]Read from MH i2c: E2 [20:17:31]MH_I2C_Read... [20:17:31]Read from MH i2c: E2 0E 00 [20:17:31]MH_I2C_Read... [20:17:31]Read from MH i2c: E2 0E 00 33 11 00 09 00 01 04 26 72 66 00 00 00 00 90 00 CF [20:17:31]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [20:17:31]wFMCommunicate OK [20:17:31]SAM_PROTO_GetShiftState done [20:17:31]FM_GetShiftState done [20:17:31]opened in 1718756868 [20:17:31]opened+sec_in_day 1718843268 [20:17:31]quantity*price = 400020 [20:17:31]sum+1 = 400022 [20:17:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.21 ИТОГО: 4000.00 Внесено: 4000.00 СДАЧА: 0.00 НСП 1% : 35.40 НДС 12% : 424.80 Наличными: 4000.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 220 19.06.2024 20:17 Смена: 353 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103790 ФПД: 55849951349207 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T201732&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103790&fm=55849951349207&tin=02508201610067®Number=0000000000092785&sum=400000 [20:17:32]StoreToDocumentArchive [20:17:32]shift 353 fd 103790 [20:17:32]save to /storage/0353/doc_00103790 [20:17:32]save last doc name /storage/0353/doc_00103790 to /storage/kkm_last_doc_name [20:17:32]save OK [20:17:32]Clear old archive folders... [20:17:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:17:32]tlvbuf is 0172E1A0 [20:17:32]SAM_PROTO_ClearQueue [20:17:32]wFMCommunicate request_size=4 [20:17:32]MH_SAM_APDU [20:17:32]CAPDU: 80 09 00 00 [20:17:32]Write to MH i2c: E2 08 00 40 11 80 09 00 00 00 00 00 00 C3 [20:17:32]Write i2c OK [20:17:32]MH_I2C_Read... [20:17:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:17:32]Read from MH i2c: E2 [20:17:32]MH_I2C_Read... [20:17:32]Read from MH i2c: E2 03 00 [20:17:32]MH_I2C_Read... [20:17:32]Read from MH i2c: E2 03 00 40 11 00 90 00 C5 [20:17:32]RAPDU: 90 00 [20:17:32]wFMCommunicate OK [20:17:32]SAM_PROTO_ClearQueue done [20:17:32]KKMCreateOFDPacket [20:17:32]OFDProtocolAddRootSTLVToBuf [20:17:32]FM_MakeSignedData [20:17:32]FM_MakeSignedData [20:17:32]SAM_PROTO_SignData [20:17:32]wFMCommunicate request_size=4 [20:17:32]MH_SAM_APDU [20:17:32]CAPDU: 80 0D 01 02 [20:17:32]Write to MH i2c: E2 08 00 41 11 80 0D 01 02 00 00 00 00 CB [20:17:32]Write i2c OK [20:17:32]MH_I2C_Read... [20:17:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:17:32]Read from MH i2c: E2 [20:17:32]MH_I2C_Read... [20:17:32]Read from MH i2c: E2 03 00 [20:17:32]MH_I2C_Read... [20:17:32]Read from MH i2c: E2 03 00 41 11 00 90 00 C6 [20:17:32]RAPDU: 90 00 [20:17:32]wFMCommunicate OK [20:17:32]wFMCommunicate request_size=255 [20:17:32]MH_SAM_APDU [20:17:32]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 72 D3 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 95 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F0 A5 00 00 00 00 07 04 06 00 80 1A 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DC 00 00 00 F4 03 04 00 DC 3C 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 6E 95 01 00 35 04 06 00 32 [20:17:32]Write to MH i2c: E2 02 01 42 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 72 D3 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 95 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F0 A5 00 00 00 00 07 04 06 00 80 1A 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DC 00 00 00 F4 03 04 00 DC 3C 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 6E 95 01 00 35 04 06 00 32 00 00 EE [20:17:32]Write i2c OK [20:17:32]MH_I2C_Read... [20:17:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:17:32]Read from MH i2c: E2 [20:17:32]MH_I2C_Read... [20:17:32]Read from MH i2c: E2 03 00 [20:17:32]MH_I2C_Read... [20:17:32]Read from MH i2c: E2 03 00 42 11 00 90 00 C7 [20:17:32]RAPDU: 90 00 [20:17:32]wFMCommunicate OK [20:17:32]wFMCommunicate request_size=10 [20:17:32]MH_SAM_APDU [20:17:32]CAPDU: 80 0D 02 02 05 CB 94 82 C9 D7 [20:17:32]Write to MH i2c: E2 0D 00 43 11 80 0D 02 02 05 00 CB 94 82 C9 D7 00 00 59 [20:17:32]Write i2c OK [20:17:32]MH_I2C_Read... [20:17:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:17:32]Read from MH i2c: E2 [20:17:32]MH_I2C_Read... [20:17:32]Read from MH i2c: E2 03 00 [20:17:32]MH_I2C_Read... [20:17:32]Read from MH i2c: E2 03 00 43 11 00 90 00 C8 [20:17:32]RAPDU: 90 00 [20:17:32]wFMCommunicate OK [20:17:32]wFMCommunicate request_size=4 [20:17:32]MH_SAM_APDU [20:17:32]CAPDU: 80 0D 03 02 [20:17:32]Write to MH i2c: E2 08 00 44 11 80 0D 03 02 00 00 00 00 D0 [20:17:32]Write i2c OK [20:17:32]MH_I2C_Read... [20:17:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:17:32]Read from MH i2c: E2 [20:17:32]MH_I2C_Read... [20:17:32]Read from MH i2c: E2 0B 00 [20:17:32]MH_I2C_Read... [20:17:32]Read from MH i2c: E2 0B 00 44 11 00 CE 0A AF 21 9C 54 DB 73 90 00 B7 [20:17:32]RAPDU: CE 0A AF 21 9C 54 DB 73 90 00 [20:17:32]wFMCommunicate OK [20:17:32]SAM_PROTO_SignData done [20:17:32]FM_MakeSignedData done [20:17:32]CreateOFDProtocolMessage [20:17:32]wFMCommunicate request_size=4 [20:17:32]MH_SAM_APDU [20:17:32]CAPDU: 80 11 00 00 [20:17:32]Write to MH i2c: E2 08 00 45 11 80 11 00 00 00 00 00 00 D0 [20:17:32]Write i2c OK [20:17:32]MH_I2C_Read... [20:17:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:17:32]Read from MH i2c: E2 [20:17:32]MH_I2C_Read... [20:17:32]Read from MH i2c: E2 17 00 [20:17:32]MH_I2C_Read... [20:17:32]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 39 33 90 00 23 [20:17:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [20:17:32]wFMCommunicate OK [20:17:32]CreateOFDProtocolMessage done [20:17:32]OFDSenderStorePacket 103790 [20:17:32]StoreOFDPacket docnum=103790 [20:17:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 2C 9D 07 01 EF 89 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 72 D3 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 95 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F0 A5 00 00 00 00 07 04 06 00 80 1A 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DC 00 00 00 F4 03 04 00 DC 3C 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 6E 95 01 00 35 04 06 00 32 CB 94 82 C9 D7 CE 0A AF 21 9C 54 DB 73 [20:17:32]CheckFolder [20:17:32]dirname=/storage/ofd_packets [20:17:32]CheckFolder done [20:17:32]ProducePacketName [20:17:32]name=ofd_packets/00103790 [20:17:32]NVStorageSaveData ofd_packets/00103790 [20:17:32]File name is /storage/ofd_packets/00103790 [20:17:32]Write 301 bytes [20:17:32]NVStorageSaveData done [20:17:32]OFDSenderStorePacket done [20:17:32]KKMCreateOFDPacket done [20:17:32]NVStorageSaveData kkm_last_timestamp [20:17:32]File name is /storage/kkm_last_timestamp [20:17:32]Write 4 bytes [20:17:32]NVStorageSaveData done [20:17:32]ExternCall_PrintAddStr [20:17:32]wPrintStart [20:17:32]Write to MH i2c: 01 00 00 46 11 57 [20:17:32]Write i2c OK [20:17:32]MH_I2C_Read... [20:17:32]Read from MH i2c: 01 [20:17:32]MH_I2C_Read... [20:17:32]Read from MH i2c: 01 07 00 [20:17:32]MH_I2C_Read... [20:17:32]Read from MH i2c: 01 07 00 46 11 00 00 00 00 00 FF 0F 6C [20:17:32]RasterBufferAndPrint [20:17:32]line Счет N : (1)673086 [20:17:32]line ИНН: 02508201610067 [20:17:32]line Контрольно-Кассовый Чек [20:17:32]line ПРОДАЖА [20:17:32]line ТРК (МРК, ГНК) : 41 [20:17:32]line Товар: 2710124500 [20:17:32]line Аи-95-К-5 [20:17:32]line 54.130 * 73.90 [20:17:32]line = 4000.21 [20:17:32]line НДС 12% НСП 1% [20:17:32]line > о реализуемом товаре [20:17:32]line ОКРУГЛЕНИЕ: -0.21 [20:17:32]line ИТОГО: 4000.00 [20:17:32]line Внесено: 4000.00 [20:17:32]line СДАЧА: 0.00 [20:17:32]line НСП 1% : 35.40 [20:17:32]line НДС 12% : 424.80 [20:17:32]line Наличными: 4000.00 [20:17:32]line Безнал.: 0.00 [20:17:32]line Место: АЗС № 120 "Партнер Нефть" [20:17:32]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [20:17:32]line СНО: Общий режим [20:17:32]line Чек 220 19.06.2024 20:17 [20:17:32]line Смена: 353 ФФД: 1.0 [20:17:33]line ЗНМ: 0300000164 [20:17:33]line РНМ: 0000000000092785 [20:17:33]line Версия ККМ: 001 [20:17:33]line ФМ: 0000000000875093 [20:17:33]line ФД: 103790 [20:17:33]line ФПД: 55849951349207 [20:17:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T201732&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103790&fm=55849951349207&tin=02508201610067®Number=0000000000092785&sum=400000 [20:17:33]OFD Sender: Processing packet 103790 [packets to send 17, broken 16] [20:17:33]ProducePacketName [20:17:33]name=ofd_packets/00103790 [20:17:33]OFD Sender: To server: pG, [20:17:33]CommunicateWithHost lk.salyk.kg:30040 [20:17:33]ConnectInit lk.salyk.kg [20:17:33]written 0, free lines is 4095 [20:17:33]Connected sock=10 [20:17: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 39 33 0F 01 00 00 2C 9D 07 01 EF 89 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 72 D3 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 95 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F0 A5 00 00 00 00 07 04 06 00 80 1A 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DC 00 00 00 F4 03 04 00 DC 3C 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 6E 95 01 00 35 04 06 00 32 CB 94 82 C9 D7 CE 0A AF 21 9C 54 DB 73 [20:17:33]Write to MH i2c: 01 00 00 71 11 82 [20:17:33]Write i2c OK [20:17:33]MH_I2C_Read... [20:17:33]Read from MH i2c: 01 [20:17:33]MH_I2C_Read... [20:17:33]Read from MH i2c: 01 07 00 [20:17:33]MH_I2C_Read... [20:17:33]Read from MH i2c: 01 07 00 71 11 00 00 00 00 00 E7 0C 7C [20:17:33]RasterBufferAndPrint [20:17:33]line [20:17:33]line [20:17:33]line [20:17:33]line [20:17:33]line [20:17:33]written 0, free lines is 3310 [20:17:33]MH_Cut [20:17:33]Write to MH i2c: D1 01 00 78 11 01 5B [20:17:33]Write i2c OK [20:17:33]MH_I2C_Read... [20:17:33]Read from MH i2c: D1 [20:17:33]MH_I2C_Read... [20:17:33]Read from MH i2c: D1 01 00 [20:17:33]MH_I2C_Read... [20:17:33]Read from MH i2c: D1 01 00 78 11 00 5A [20:17:33]Write to MH i2c: 01 00 00 79 11 8A [20:17:33]Write i2c OK [20:17:33]MH_I2C_Read... [20:17:34]*** Cut start [20:17:34]*** Partial cut [20:17:34]*** CUTSNS_PIN = 1 [20:17:34]*** CUTSNS_PIN = 0 [20:17:34]*** Brake cut motor [20:17: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 39 33 4F 00 00 00 AE 4A 47 00 4A 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 39 33 10 04 04 00 6E 95 01 00 F4 03 04 00 64 E3 72 66 B6 04 01 00 00 58 97 E3 F8 CE 24 51 9C [20:17:34]CommunicateWithHost err = 0 [20:17:34]CheckOFDResponse [20:17:34]1017 (14) - 77093643461234 [20:17:34]1041 (16) - 0000000000875093 [20:17:34]1040 (4) - 103790 [20:17:34]1012 (4) - 19.06.2024 13:55 [20:17:34]1206 (1) - 0 [20:17:34]OFD Sender: Remove packet 103790 [20:17:34]ProducePacketName [20:17:34]name=ofd_packets/00103790 [20:17:34]NVStorageDeleteData [20:17:34]Read from MH i2c: 01 [20:17:34]MH_I2C_Read... [20:17:34]*** Stop cut motor [20:17:34]*** Cut end [20:17:34]Read from MH i2c: 01 07 00 [20:17:34]MH_I2C_Read... [20:17:34]Read from MH i2c: 01 07 00 79 11 00 00 00 00 00 FF 0F 9F [20:17:34]process_action close_receipt done [20:17:34]requested_data is exist [20:17:34]produce_requested_data [20:17:34]requested_item fm.sn is exist - process it [20:17:34]wFMCommunicate request_size=4 [20:17:34]MH_SAM_APDU [20:17:34]CAPDU: 80 11 00 00 [20:17:34]Write to MH i2c: E2 08 00 7A 11 80 11 00 00 00 00 00 00 05 [20:17:34]Write i2c OK [20:17:34]MH_I2C_Read... [20:17:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:17:34]Read from MH i2c: E2 [20:17:34]MH_I2C_Read... [20:17:34]Read from MH i2c: E2 17 00 [20:17:34]MH_I2C_Read... [20:17:34]Read from MH i2c: E2 17 00 7A 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 58 [20:17:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [20:17:34]wFMCommunicate OK [20:17:34]requested_item fd.num is exist - process it [20:17:34]SAM_PROTO_GetFieldsCounters [20:17:34]wFMCommunicate request_size=4 [20:17:34]MH_SAM_APDU [20:17:34]CAPDU: 80 13 00 00 [20:17:34]Write to MH i2c: E2 08 00 7B 11 80 13 00 00 00 00 00 00 08 [20:17:34]Write i2c OK [20:17:34]MH_I2C_Read... [20:17:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:17:35]Read from MH i2c: E2 [20:17:35]MH_I2C_Read... [20:17:35]Read from MH i2c: E2 62 00 [20:17:35]MH_I2C_Read... [20:17:35]OFD Sender: No OFD packet to send [20:17:35]Read from MH i2c: E2 62 00 7B 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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 6E 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 DC 00 00 00 5E 04 04 00 DC 00 00 00 57 04 04 00 DD 00 00 00 19 04 04 00 00 00 00 00 90 00 29 [20:17: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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 6E 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 DC 00 00 00 5E 04 04 00 DC 00 00 00 57 04 04 00 DD 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:17:35]wFMCommunicate OK [20:17:35]SAM_PROTO_GetFieldsCounters done [20:17:35]requested_item shift.num is exist - process it [20:17:35]requested_item shift.opened is exist - process it [20:17:35]req_shift_opened [20:17:35]FM_GetShiftState [20:17:35]SAM_PROTO_GetShiftState [20:17:35]wFMCommunicate request_size=4 [20:17:35]MH_SAM_APDU [20:17:35]CAPDU: 80 13 01 00 [20:17:35]Write to MH i2c: E2 08 00 7C 11 80 13 01 00 00 00 00 00 0A [20:17:35]Write i2c OK [20:17:35]MH_I2C_Read... [20:17:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:17:35]Read from MH i2c: E2 [20:17:35]MH_I2C_Read... [20:17:35]Read from MH i2c: E2 0E 00 [20:17:35]MH_I2C_Read... [20:17:35]Read from MH i2c: E2 0E 00 7C 11 00 09 00 01 04 26 72 66 00 00 00 00 90 00 18 [20:17:35]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [20:17:35]wFMCommunicate OK [20:17:35]SAM_PROTO_GetShiftState done [20:17:35]FM_GetShiftState done [20:17:35]req_shift_opened done [20:17:35]requested_item shift.open_date is exist - process it [20:17:35]req_shift_open_date [20:17:35]req_shift_open_date done [20:17:35]produce_requested_data done [20:17:35]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103790,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [20:17:35]process_action_free close_receipt [20:17:35]json_value_free [20:17:35]json_value_free done [20:17:35]process_json_proto returns [20:17:35]Send response to host [20:17:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103790,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [20:17:35]free response buf [20:17:35]execute_script done [20:17:35]execute_script returns [20:17:35]free content buf [20:17:35]Sock 9.Close socket [20:17:35]Sock 9.Thread stoped [20:17:38]accept exits with 8 [20:17:38]New connection [20:17:38]New thread 3066940772 created [20:17:38]Thread 3066797412 joined [20:17:38]Waiting for new connection... [20:17:38] Sock 8.Parse request [20:17:38]Sock 8.Check first char [20:17:38]Sock 8.First char is OK [20:17:38]request: POST /json_proto HTTP/1.0 [20:17:38]Method: POST [20:17:38]URL: /json_proto [20:17:38]Method is POST - this is cgi request [20:17:38]url: /json_proto [20:17:38]query_string will be loaded in cgi processing [20:17:38]execute_cgi json_proto POST (null) [20:17:38]execute_cgi path=json_proto method=POST [20:17:38]POST find Content-Length [20:17:38]Host: 172.17.38.133:8080 [20:17:38]Content-Length: 739 [20:17:38]Content-Type: application/json [20:17:38] [20:17:38]POST finish read [20:17:38]Found Content-Length = 739 [20:17:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 103790, "base_FM": "0000000000875093", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673086", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 54.130, "sum" : 4000.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 4000.00, "total" : 4000.00, "payments": [ { "type": 0, "sum" : 4000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:17:38]execute_script... [20:17:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 103790, "base_FM": "0000000000875093", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673086", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 54.130, "sum" : 4000.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 4000.00, "total" : 4000.00, "payments": [ { "type": 0, "sum" : 4000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:17:38]POST & json_proto [20:17:38]process_json_proto [20:17:38]json parsed OK: [20:17:38]protocol is kg_v1.0 [20:17:38]action value=close_receipt [20:17:38]process_action close_receipt [20:17:38]cmd_close_receipt [20:17:38]MH_GetDate [20:17:38]Write to MH i2c: F0 00 00 7D 11 7D [20:17:38]Write i2c OK [20:17:38]MH_I2C_Read... [20:17:38]Read from MH i2c: F0 [20:17:38]MH_I2C_Read... [20:17:38]Read from MH i2c: F0 09 00 [20:17:38]MH_I2C_Read... [20:17:38]Read from MH i2c: F0 09 00 7D 11 00 E3 3C 73 66 BD 8F 7C 64 AA [20:17:38]GetLastDocTimeStamp 1718828252 [20:17:38]current date 1718828259 [20:17:38]FM_GetShiftState [20:17:38]SAM_PROTO_GetShiftState [20:17:38]wFMCommunicate request_size=4 [20:17:38]MH_SAM_APDU [20:17:38]CAPDU: 80 13 01 00 [20:17:38]Write to MH i2c: E2 08 00 7E 11 80 13 01 00 00 00 00 00 0C [20:17:38]Write i2c OK [20:17:38]MH_I2C_Read... [20:17:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:17:38]Read from MH i2c: E2 [20:17:38]MH_I2C_Read... [20:17:38]Read from MH i2c: E2 0E 00 [20:17:38]MH_I2C_Read... [20:17:38]Read from MH i2c: E2 0E 00 7E 11 00 09 00 01 04 26 72 66 00 00 00 00 90 00 1A [20:17:38]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [20:17:38]wFMCommunicate OK [20:17:38]SAM_PROTO_GetShiftState done [20:17:38]FM_GetShiftState done [20:17:38]opened in 1718756868 [20:17:38]opened+sec_in_day 1718843268 [20:17:38]quantity*price = 400020 [20:17:38]sum+1 = 400022 [20:17:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.21 ИТОГО: 4000.00 НСП 1% : 35.40 НДС 12% : 424.80 Наличными: 4000.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 221 19.06.2024 20:17 Смена: 353 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФД осн.: 103790 ФМ осн.: 0000000000875093 ФМ: 0000000000875093 ФД: 103791 ФПД: 265133531062819 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T201739&type=2&operation_type=1&fn_number=0000000000875093&fd_number=103791&fm=265133531062819&tin=02508201610067®Number=0000000000092785&sum=400000 [20:17:39]StoreToDocumentArchive [20:17:39]shift 353 fd 103791 [20:17:39]save to /storage/0353/doc_00103791 [20:17:39]save last doc name /storage/0353/doc_00103791 to /storage/kkm_last_doc_name [20:17:39]save OK [20:17:39]Clear old archive folders... [20:17:39]ProcessDocumentItem done err = 0, tmpTLVsize=279 [20:17:39]tlvbuf is 01723030 [20:17:39]SAM_PROTO_ClearQueue [20:17:39]wFMCommunicate request_size=4 [20:17:39]MH_SAM_APDU [20:17:39]CAPDU: 80 09 00 00 [20:17:39]Write to MH i2c: E2 08 00 8D 11 80 09 00 00 00 00 00 00 10 [20:17:39]Write i2c OK [20:17:39]MH_I2C_Read... [20:17:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:17:39]Read from MH i2c: E2 [20:17:39]MH_I2C_Read... [20:17:39]Read from MH i2c: E2 03 00 [20:17:39]MH_I2C_Read... [20:17:39]Read from MH i2c: E2 03 00 8D 11 00 90 00 12 [20:17:39]RAPDU: 90 00 [20:17:39]wFMCommunicate OK [20:17:39]SAM_PROTO_ClearQueue done [20:17:39]KKMCreateOFDPacket [20:17:39]OFDProtocolAddRootSTLVToBuf [20:17:39]FM_MakeSignedData [20:17:39]FM_MakeSignedData [20:17:39]SAM_PROTO_SignData [20:17:39]wFMCommunicate request_size=4 [20:17:39]MH_SAM_APDU [20:17:39]CAPDU: 80 0D 01 02 [20:17:39]Write to MH i2c: E2 08 00 8E 11 80 0D 01 02 00 00 00 00 18 [20:17:39]Write i2c OK [20:17:39]MH_I2C_Read... [20:17:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:17:39]Read from MH i2c: E2 [20:17:39]MH_I2C_Read... [20:17:39]Read from MH i2c: E2 03 00 [20:17:39]MH_I2C_Read... [20:17:39]Read from MH i2c: E2 03 00 8E 11 00 90 00 13 [20:17:39]RAPDU: 90 00 [20:17:39]wFMCommunicate OK [20:17:39]wFMCommunicate request_size=255 [20:17:39]MH_SAM_APDU [20:17:39]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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 72 D3 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 95 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F0 A5 00 00 00 00 07 04 06 00 80 1A 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DD 00 00 00 F4 03 04 00 E3 3C 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 27 04 04 00 6E 95 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 11 04 10 00 30 [20:17:39]Write to MH i2c: E2 02 01 8F 11 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 72 D3 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 95 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F0 A5 00 00 00 00 07 04 06 00 80 1A 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DD 00 00 00 F4 03 04 00 E3 3C 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 27 04 04 00 6E 95 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 11 04 10 00 30 00 00 73 [20:17:39]Write i2c OK [20:17:39]MH_I2C_Read... [20:17:40]OFD Sender: No OFD packet to send [20:17:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:17:40]Read from MH i2c: E2 [20:17:40]MH_I2C_Read... [20:17:40]Read from MH i2c: E2 03 00 [20:17:40]MH_I2C_Read... [20:17:40]Read from MH i2c: E2 03 00 8F 11 00 90 00 14 [20:17:40]RAPDU: 90 00 [20:17:40]wFMCommunicate OK [20:17:40]wFMCommunicate request_size=38 [20:17:40]MH_SAM_APDU [20:17:40]CAPDU: 80 0D 02 02 21 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 6F 95 01 00 35 04 06 00 F1 23 35 EF E2 23 [20:17:40]Write to MH i2c: E2 29 00 90 11 80 0D 02 02 21 00 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 6F 95 01 00 35 04 06 00 F1 23 35 EF E2 23 00 00 E6 [20:17:40]Write i2c OK [20:17:40]MH_I2C_Read... [20:17:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:17:40]Read from MH i2c: E2 [20:17:40]MH_I2C_Read... [20:17:40]Read from MH i2c: E2 03 00 [20:17:40]MH_I2C_Read... [20:17:40]Read from MH i2c: E2 03 00 90 11 00 90 00 15 [20:17:40]RAPDU: 90 00 [20:17:40]wFMCommunicate OK [20:17:40]wFMCommunicate request_size=4 [20:17:40]MH_SAM_APDU [20:17:40]CAPDU: 80 0D 03 02 [20:17:40]Write to MH i2c: E2 08 00 91 11 80 0D 03 02 00 00 00 00 1D [20:17:40]Write i2c OK [20:17:40]MH_I2C_Read... [20:17:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:17:40]Read from MH i2c: E2 [20:17:40]MH_I2C_Read... [20:17:40]Read from MH i2c: E2 0B 00 [20:17:40]MH_I2C_Read... [20:17:40]Read from MH i2c: E2 0B 00 91 11 00 4E DB 0E 87 B7 C8 1C 2A 90 00 A1 [20:17:40]RAPDU: 4E DB 0E 87 B7 C8 1C 2A 90 00 [20:17:40]wFMCommunicate OK [20:17:40]SAM_PROTO_SignData done [20:17:40]FM_MakeSignedData done [20:17:40]CreateOFDProtocolMessage [20:17:40]wFMCommunicate request_size=4 [20:17:40]MH_SAM_APDU [20:17:40]CAPDU: 80 11 00 00 [20:17:40]Write to MH i2c: E2 08 00 92 11 80 11 00 00 00 00 00 00 1D [20:17:40]Write i2c OK [20:17:40]MH_I2C_Read... [20:17:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:17:40]Read from MH i2c: E2 [20:17:40]MH_I2C_Read... [20:17:40]Read from MH i2c: E2 17 00 [20:17:40]MH_I2C_Read... [20:17:40]Read from MH i2c: E2 17 00 92 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 70 [20:17:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [20:17:40]wFMCommunicate OK [20:17:40]CreateOFDProtocolMessage done [20:17:40]OFDSenderStorePacket 103791 [20:17:40]StoreOFDPacket docnum=103791 [20:17:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 2B 01 00 00 C3 60 23 01 E5 1A 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 72 D3 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 95 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F0 A5 00 00 00 00 07 04 06 00 80 1A 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DD 00 00 00 F4 03 04 00 E3 3C 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 27 04 04 00 6E 95 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 6F 95 01 00 35 04 06 00 F1 23 35 EF E2 23 4E DB 0E 87 B7 C8 1C 2A [20:17:40]CheckFolder [20:17:40]dirname=/storage/ofd_packets [20:17:40]CheckFolder done [20:17:40]ProducePacketName [20:17:40]name=ofd_packets/00103791 [20:17:40]NVStorageSaveData ofd_packets/00103791 [20:17:40]File name is /storage/ofd_packets/00103791 [20:17:40]Write 329 bytes [20:17:40]NVStorageSaveData done [20:17:40]OFDSenderStorePacket done [20:17:40]KKMCreateOFDPacket done [20:17:40]NVStorageSaveData kkm_last_timestamp [20:17:40]File name is /storage/kkm_last_timestamp [20:17:40]Write 4 bytes [20:17:40]NVStorageSaveData done [20:17:40]ExternCall_PrintAddStr [20:17:40]wPrintStart [20:17:40]Write to MH i2c: 01 00 00 93 11 A4 [20:17:40]Write i2c OK [20:17:40]MH_I2C_Read... [20:17:40]Read from MH i2c: 01 [20:17:40]MH_I2C_Read... [20:17:40]Read from MH i2c: 01 07 00 [20:17:40]MH_I2C_Read... [20:17:40]Read from MH i2c: 01 07 00 93 11 00 00 00 00 00 FF 0F B9 [20:17:40]RasterBufferAndPrint [20:17:40]line Счет N : (1)673086 [20:17:40]line ИНН: 02508201610067 [20:17:40]line Контрольно-Кассовый Чек [20:17:40]line ВОЗВРАТ ПРОДАЖИ [20:17:40]line ТРК (МРК, ГНК) : 41 [20:17:40]line Товар: 2710124500 [20:17:40]line Аи-95-К-5 [20:17:40]line 54.130 * 73.90 [20:17:40]line = 4000.21 [20:17:40]line НДС 12% НСП 1% [20:17:40]line > о реализуемом товаре [20:17:40]line ОКРУГЛЕНИЕ: -0.21 [20:17:40]line ИТОГО: 4000.00 [20:17:40]line НСП 1% : 35.40 [20:17:40]line НДС 12% : 424.80 [20:17:40]line Наличными: 4000.00 [20:17:40]line Безнал.: 0.00 [20:17:40]line Место: АЗС № 120 "Партнер Нефть" [20:17:40]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [20:17:40]line СНО: Общий режим [20:17:40]line Чек 221 19.06.2024 20:17 [20:17:40]line Смена: 353 ФФД: 1.0 [20:17:40]line ЗНМ: 0300000164 [20:17:40]line РНМ: 0000000000092785 [20:17:40]line Версия ККМ: 001 [20:17:40]line ФД осн.: 103790 [20:17:40]line ФМ осн.: 0000000000875093 [20:17:40]line ФМ: 0000000000875093 [20:17:40]line ФД: 103791 [20:17:40]line ФПД: 265133531062819 [20:17:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T201739&type=2&operation_type=1&fn_number=0000000000875093&fd_number=103791&fm=265133531062819&tin=02508201610067®Number=0000000000092785&sum=400000 [20:17:40]written 0, free lines is 4095 [20:17:40]OFD Sender: Processing packet 103791 [packets to send 17, broken 16] [20:17:40]ProducePacketName [20:17:40]name=ofd_packets/00103791 [20:17:40]OFD Sender: To server: pG, [20:17:40]CommunicateWithHost lk.salyk.kg:30040 [20:17:40]ConnectInit lk.salyk.kg [20:17:40]Connected sock=10 [20:17: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 39 33 2B 01 00 00 C3 60 23 01 E5 1A 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 72 D3 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 95 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F0 A5 00 00 00 00 07 04 06 00 80 1A 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DD 00 00 00 F4 03 04 00 E3 3C 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 27 04 04 00 6E 95 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 6F 95 01 00 35 04 06 00 F1 23 35 EF E2 23 4E DB 0E 87 B7 C8 1C 2A [20:17: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 39 33 4F 00 00 00 56 EB 47 00 2F CF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 6F 95 01 00 F4 03 04 00 6B E3 72 66 B6 04 01 00 00 48 E3 D2 A0 93 FB D0 A1 [20:17:40]CommunicateWithHost err = 0 [20:17:40]CheckOFDResponse [20:17:40]1017 (14) - 77093643461234 [20:17:40]1041 (16) - 0000000000875093 [20:17:40]1040 (4) - 103791 [20:17:40]1012 (4) - 19.06.2024 13:55 [20:17:40]1206 (1) - 0 [20:17:40]OFD Sender: Remove packet 103791 [20:17:40]ProducePacketName [20:17:40]name=ofd_packets/00103791 [20:17:40]NVStorageDeleteData [20:17:40]Write to MH i2c: 01 00 00 BE 11 CF [20:17:40]Write i2c OK [20:17:40]MH_I2C_Read... [20:17:40]Read from MH i2c: 01 [20:17:40]MH_I2C_Read... [20:17:40]Read from MH i2c: 01 07 00 [20:17:40]MH_I2C_Read... [20:17:40]Read from MH i2c: 01 07 00 BE 11 00 00 00 00 00 F8 0C DA [20:17:40]RasterBufferAndPrint [20:17:40]line [20:17:40]line [20:17:40]line [20:17:40]line [20:17:40]line [20:17:40]written 0, free lines is 3332 [20:17:40]MH_Cut [20:17:40]Write to MH i2c: D1 01 00 C5 11 01 A8 [20:17:40]Write i2c OK [20:17:40]MH_I2C_Read... [20:17:40]Read from MH i2c: D1 [20:17:40]MH_I2C_Read... [20:17:40]Read from MH i2c: D1 01 00 [20:17:40]MH_I2C_Read... [20:17:40]Read from MH i2c: D1 01 00 C5 11 00 A7 [20:17:40]Write to MH i2c: 01 00 00 C6 11 D7 [20:17:40]Write i2c OK [20:17:40]MH_I2C_Read... [20:17:41]OFD Sender: No OFD packet to send [20:17:41]*** Cut start [20:17:41]*** Partial cut [20:17:41]*** CUTSNS_PIN = 1 [20:17:41]*** CUTSNS_PIN = 0 [20:17:41]*** Brake cut motor [20:17:42]Read from MH i2c: 01 [20:17:42]MH_I2C_Read... [20:17:42]*** Stop cut motor [20:17:42]*** Cut end [20:17:42]Read from MH i2c: 01 07 00 [20:17:42]MH_I2C_Read... [20:17:42]Read from MH i2c: 01 07 00 C6 11 00 00 00 00 00 FF 0F EC [20:17:42]process_action close_receipt done [20:17:42]requested_data is exist [20:17:42]produce_requested_data [20:17:42]requested_item fm.sn is exist - process it [20:17:42]wFMCommunicate request_size=4 [20:17:42]MH_SAM_APDU [20:17:42]CAPDU: 80 11 00 00 [20:17:42]Write to MH i2c: E2 08 00 C7 11 80 11 00 00 00 00 00 00 52 [20:17:42]Write i2c OK [20:17:42]MH_I2C_Read... [20:17:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:17:42]Read from MH i2c: E2 [20:17:42]MH_I2C_Read... [20:17:42]Read from MH i2c: E2 17 00 [20:17:42]MH_I2C_Read... [20:17:42]Read from MH i2c: E2 17 00 C7 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 A5 [20:17:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [20:17:42]wFMCommunicate OK [20:17:42]requested_item fd.num is exist - process it [20:17:42]SAM_PROTO_GetFieldsCounters [20:17:42]wFMCommunicate request_size=4 [20:17:42]MH_SAM_APDU [20:17:42]CAPDU: 80 13 00 00 [20:17:42]Write to MH i2c: E2 08 00 C8 11 80 13 00 00 00 00 00 00 55 [20:17:42]Write i2c OK [20:17:42]MH_I2C_Read... [20:17:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:17:42]Read from MH i2c: E2 [20:17:42]MH_I2C_Read... [20:17:42]Read from MH i2c: E2 62 00 [20:17:42]MH_I2C_Read... [20:17:42]Read from MH i2c: E2 62 00 C8 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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 6F 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 DD 00 00 00 5E 04 04 00 DD 00 00 00 57 04 04 00 DE 00 00 00 19 04 04 00 00 00 00 00 90 00 7A [20:17: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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 6F 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 DD 00 00 00 5E 04 04 00 DD 00 00 00 57 04 04 00 DE 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:17:42]wFMCommunicate OK [20:17:42]SAM_PROTO_GetFieldsCounters done [20:17:42]requested_item shift.num is exist - process it [20:17:42]requested_item shift.opened is exist - process it [20:17:42]req_shift_opened [20:17:42]FM_GetShiftState [20:17:42]SAM_PROTO_GetShiftState [20:17:42]wFMCommunicate request_size=4 [20:17:42]MH_SAM_APDU [20:17:42]CAPDU: 80 13 01 00 [20:17:42]Write to MH i2c: E2 08 00 C9 11 80 13 01 00 00 00 00 00 57 [20:17:42]Write i2c OK [20:17:42]MH_I2C_Read... [20:17:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:17:42]Read from MH i2c: E2 [20:17:42]MH_I2C_Read... [20:17:42]Read from MH i2c: E2 0E 00 [20:17:42]MH_I2C_Read... [20:17:42]Read from MH i2c: E2 0E 00 C9 11 00 09 00 01 04 26 72 66 00 00 00 00 90 00 65 [20:17:42]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [20:17:42]wFMCommunicate OK [20:17:42]SAM_PROTO_GetShiftState done [20:17:42]FM_GetShiftState done [20:17:42]req_shift_opened done [20:17:42]requested_item shift.open_date is exist - process it [20:17:42]req_shift_open_date [20:17:42]req_shift_open_date done [20:17:42]produce_requested_data done [20:17:42]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103791,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [20:17:42]process_action_free close_receipt [20:17:42]json_value_free [20:17:42]json_value_free done [20:17:42]process_json_proto returns [20:17:42]Send response to host [20:17:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103791,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [20:17:42]free response buf [20:17:42]execute_script done [20:17:42]execute_script returns [20:17:42]free content buf [20:17:42]Sock 8.Close socket [20:17:42]Sock 8.Thread stoped [20:17:46]OFD Sender: No OFD packet to send [20:17:51]OFD Sender: No OFD packet to send [20:17:56]OFD Sender: No OFD packet to send [20:18:01]OFD Sender: No OFD packet to send [20:18:06]OFD Sender: No OFD packet to send [20:18:11]OFD Sender: No OFD packet to send [20:18:16]OFD Sender: No OFD packet to send [20:18:21]OFD Sender: No OFD packet to send [20:18:26]OFD Sender: No OFD packet to send [20:18:31]OFD Sender: No OFD packet to send [20:18:36]OFD Sender: No OFD packet to send [20:18:41]OFD Sender: No OFD packet to send [20:18:46]OFD Sender: No OFD packet to send [20:18:51]OFD Sender: No OFD packet to send [20:18:56]OFD Sender: No OFD packet to send [20:19:01]OFD Sender: No OFD packet to send [20:19:06]OFD Sender: No OFD packet to send [20:19:11]OFD Sender: No OFD packet to send [20:19:16]OFD Sender: No OFD packet to send [20:19:21]OFD Sender: No OFD packet to send [20:19:26]OFD Sender: No OFD packet to send [20:19:31]OFD Sender: No OFD packet to send [20:19:36]OFD Sender: No OFD packet to send [20:19:41]OFD Sender: No OFD packet to send [20:19:46]OFD Sender: No OFD packet to send [20:19:51]OFD Sender: No OFD packet to send [20:19:56]OFD Sender: No OFD packet to send [20:20:01]accept exits with 9 [20:20:01]New connection [20:20:01]New thread 3066797412 created [20:20:01]Thread 3066940772 joined [20:20:01]Waiting for new connection... [20:20:01] Sock 9.Parse request [20:20:01]Sock 9.Check first char [20:20:01]Sock 9.First char is OK [20:20:01]request: POST /json_proto HTTP/1.0 [20:20:01]Method: POST [20:20:01]URL: /json_proto [20:20:01]Method is POST - this is cgi request [20:20:01]url: /json_proto [20:20:01]query_string will be loaded in cgi processing [20:20:01]execute_cgi json_proto POST (null) [20:20:01]execute_cgi path=json_proto method=POST [20:20:01]POST find Content-Length [20:20:01]Host: 172.17.38.133:8080 [20:20:01]Content-Length: 682 [20:20:01]Content-Type: application/json [20:20:01] [20:20:01]POST finish read [20:20:01]Found Content-Length = 682 [20:20:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673087", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 28.920, "sum" : 1920.29, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1920.00, "total" : 1920.00, "payments": [ { "type": 0, "sum" : 1920.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:20:01]execute_script... [20:20: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)673087", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 28.920, "sum" : 1920.29, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1920.00, "total" : 1920.00, "payments": [ { "type": 0, "sum" : 1920.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:20:01]POST & json_proto [20:20:01]process_json_proto [20:20:01]json parsed OK: [20:20:01]protocol is kg_v1.0 [20:20:01]action value=close_receipt [20:20:01]process_action close_receipt [20:20:01]cmd_close_receipt [20:20:01]MH_GetDate [20:20:01]Write to MH i2c: F0 00 00 CA 11 CA [20:20:01]Write i2c OK [20:20:01]MH_I2C_Read... [20:20:01]Read from MH i2c: F0 [20:20:01]MH_I2C_Read... [20:20:01]Read from MH i2c: F0 09 00 [20:20:01]MH_I2C_Read... [20:20:01]Read from MH i2c: F0 09 00 CA 11 00 72 3D 73 66 BD 8F 7C 64 87 [20:20:01]GetLastDocTimeStamp 1718828259 [20:20:01]current date 1718828402 [20:20:01]FM_GetShiftState [20:20:01]SAM_PROTO_GetShiftState [20:20:01]wFMCommunicate request_size=4 [20:20:01]MH_SAM_APDU [20:20:01]CAPDU: 80 13 01 00 [20:20:01]Write to MH i2c: E2 08 00 CB 11 80 13 01 00 00 00 00 00 59 [20:20:01]Write i2c OK [20:20:01]MH_I2C_Read... [20:20:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:20:01]Read from MH i2c: E2 [20:20:01]MH_I2C_Read... [20:20:01]Read from MH i2c: E2 0E 00 [20:20:01]MH_I2C_Read... [20:20:01]Read from MH i2c: E2 0E 00 CB 11 00 09 00 01 04 26 72 66 00 00 00 00 90 00 67 [20:20:01]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [20:20:01]wFMCommunicate OK [20:20:01]SAM_PROTO_GetShiftState done [20:20:01]FM_GetShiftState done [20:20:01]opened in 1718756868 [20:20:01]opened+sec_in_day 1718843268 [20:20:01]quantity*price = 192028 [20:20:01]sum+1 = 192030 [20:20:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.29 ИТОГО: 1920.00 Внесено: 1920.00 СДАЧА: 0.00 НСП 1% : 16.99 НДС 12% : 203.92 Наличными: 1920.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 222 19.06.2024 20:20 Смена: 353 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103792 ФПД: 215088063377307 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T202002&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103792&fm=215088063377307&tin=02508201610067®Number=0000000000092785&sum=192000 [20:20:02]StoreToDocumentArchive [20:20:02]shift 353 fd 103792 [20:20:02]save to /storage/0353/doc_00103792 [20:20:02]save last doc name /storage/0353/doc_00103792 to /storage/kkm_last_doc_name [20:20:02]save OK [20:20:02]Clear old archive folders... [20:20:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:20:02]tlvbuf is B6EA5550 [20:20:02]SAM_PROTO_ClearQueue [20:20:02]wFMCommunicate request_size=4 [20:20:02]MH_SAM_APDU [20:20:02]CAPDU: 80 09 00 00 [20:20:02]Write to MH i2c: E2 08 00 D8 11 80 09 00 00 00 00 00 00 5B [20:20:02]Write i2c OK [20:20:02]MH_I2C_Read... [20:20:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:20:02]Read from MH i2c: E2 [20:20:02]MH_I2C_Read... [20:20:02]Read from MH i2c: E2 03 00 [20:20:02]MH_I2C_Read... [20:20:02]Read from MH i2c: E2 03 00 D8 11 00 90 00 5D [20:20:02]RAPDU: 90 00 [20:20:02]wFMCommunicate OK [20:20:02]SAM_PROTO_ClearQueue done [20:20:02]KKMCreateOFDPacket [20:20:02]OFDProtocolAddRootSTLVToBuf [20:20:02]FM_MakeSignedData [20:20:02]FM_MakeSignedData [20:20:02]SAM_PROTO_SignData [20:20:02]wFMCommunicate request_size=4 [20:20:02]MH_SAM_APDU [20:20:02]CAPDU: 80 0D 01 02 [20:20:02]Write to MH i2c: E2 08 00 D9 11 80 0D 01 02 00 00 00 00 63 [20:20:02]Write i2c OK [20:20:02]MH_I2C_Read... [20:20:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:20:02]Read from MH i2c: E2 [20:20:02]MH_I2C_Read... [20:20:02]Read from MH i2c: E2 03 00 [20:20:02]MH_I2C_Read... [20:20:02]Read from MH i2c: E2 03 00 D9 11 00 90 00 5E [20:20:02]RAPDU: 90 00 [20:20:02]wFMCommunicate OK [20:20:02]wFMCommunicate request_size=255 [20:20:02]MH_SAM_APDU [20:20: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 F8 70 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 1D EE 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 EE 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A3 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A8 4F 00 00 00 00 07 04 06 00 00 EE 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DE 00 00 00 F4 03 04 00 72 3D 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 70 95 01 00 35 04 06 00 C3 [20:20:02]Write to MH i2c: E2 02 01 DA 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 F8 70 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 1D EE 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 EE 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A3 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A8 4F 00 00 00 00 07 04 06 00 00 EE 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DE 00 00 00 F4 03 04 00 72 3D 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 70 95 01 00 35 04 06 00 C3 00 00 02 [20:20:02]Write i2c OK [20:20:02]MH_I2C_Read... [20:20:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:20:02]Read from MH i2c: E2 [20:20:02]MH_I2C_Read... [20:20:02]Read from MH i2c: E2 03 00 [20:20:02]MH_I2C_Read... [20:20:02]Read from MH i2c: E2 03 00 DA 11 00 90 00 5F [20:20:02]RAPDU: 90 00 [20:20:02]wFMCommunicate OK [20:20:02]wFMCommunicate request_size=10 [20:20:02]MH_SAM_APDU [20:20:02]CAPDU: 80 0D 02 02 05 9F 17 9C EF 9B [20:20:02]Write to MH i2c: E2 0D 00 DB 11 80 0D 02 02 05 00 9F 17 9C EF 9B 00 00 4C [20:20:02]Write i2c OK [20:20:02]MH_I2C_Read... [20:20:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:20:02]Read from MH i2c: E2 [20:20:02]MH_I2C_Read... [20:20:02]Read from MH i2c: E2 03 00 [20:20:02]MH_I2C_Read... [20:20:02]Read from MH i2c: E2 03 00 DB 11 00 90 00 60 [20:20:02]RAPDU: 90 00 [20:20:02]wFMCommunicate OK [20:20:02]wFMCommunicate request_size=4 [20:20:02]MH_SAM_APDU [20:20:02]CAPDU: 80 0D 03 02 [20:20:02]Write to MH i2c: E2 08 00 DC 11 80 0D 03 02 00 00 00 00 68 [20:20:02]Write i2c OK [20:20:02]MH_I2C_Read... [20:20:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:20:02]Read from MH i2c: E2 [20:20:02]MH_I2C_Read... [20:20:02]Read from MH i2c: E2 0B 00 [20:20:02]MH_I2C_Read... [20:20:02]Read from MH i2c: E2 0B 00 DC 11 00 61 AE 56 48 C5 E8 D9 D0 90 00 6C [20:20:02]RAPDU: 61 AE 56 48 C5 E8 D9 D0 90 00 [20:20:02]wFMCommunicate OK [20:20:02]SAM_PROTO_SignData done [20:20:02]FM_MakeSignedData done [20:20:02]CreateOFDProtocolMessage [20:20:02]wFMCommunicate request_size=4 [20:20:02]MH_SAM_APDU [20:20:02]CAPDU: 80 11 00 00 [20:20:02]Write to MH i2c: E2 08 00 DD 11 80 11 00 00 00 00 00 00 68 [20:20:02]Write i2c OK [20:20:02]MH_I2C_Read... [20:20:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:20:02]Read from MH i2c: E2 [20:20:02]MH_I2C_Read... [20:20:02]Read from MH i2c: E2 17 00 [20:20:02]MH_I2C_Read... [20:20:02]Read from MH i2c: E2 17 00 DD 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 BB [20:20:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [20:20:02]wFMCommunicate OK [20:20:02]CreateOFDProtocolMessage done [20:20:02]OFDSenderStorePacket 103792 [20:20:02]StoreOFDPacket docnum=103792 [20:20:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 0E BC 07 01 F6 52 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F8 70 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 1D EE 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 EE 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A3 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A8 4F 00 00 00 00 07 04 06 00 00 EE 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DE 00 00 00 F4 03 04 00 72 3D 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 70 95 01 00 35 04 06 00 C3 9F 17 9C EF 9B 61 AE 56 48 C5 E8 D9 D0 [20:20:02]CheckFolder [20:20:02]dirname=/storage/ofd_packets [20:20:02]CheckFolder done [20:20:02]ProducePacketName [20:20:02]name=ofd_packets/00103792 [20:20:02]NVStorageSaveData ofd_packets/00103792 [20:20:02]File name is /storage/ofd_packets/00103792 [20:20:02]Write 301 bytes [20:20:02]NVStorageSaveData done [20:20:02]OFDSenderStorePacket done [20:20:02]KKMCreateOFDPacket done [20:20:02]NVStorageSaveData kkm_last_timestamp [20:20:02]File name is /storage/kkm_last_timestamp [20:20:02]Write 4 bytes [20:20:02]NVStorageSaveData done [20:20:02]ExternCall_PrintAddStr [20:20:02]wPrintStart [20:20:02]Write to MH i2c: 01 00 00 DE 11 EF [20:20:02]Write i2c OK [20:20:02]MH_I2C_Read... [20:20:02]Read from MH i2c: 01 [20:20:02]MH_I2C_Read... [20:20:02]Read from MH i2c: 01 07 00 [20:20:02]MH_I2C_Read... [20:20:02]Read from MH i2c: 01 07 00 DE 11 00 00 00 00 00 FF 0F 04 [20:20:02]RasterBufferAndPrint [20:20:02]line Счет N : (1)673087 [20:20:02]line ИНН: 02508201610067 [20:20:02]line Контрольно-Кассовый Чек [20:20:02]line ПРОДАЖА [20:20:02]line ТРК (МРК, ГНК) : 42 [20:20:02]line Товар: 2710124130 [20:20:02]line Аи-92-К-5 [20:20:02]line 28.920 * 66.40 [20:20:02]line = 1920.29 [20:20:02]line НДС 12% НСП 1% [20:20:02]line > о реализуемом товаре [20:20:02]line ОКРУГЛЕНИЕ: -0.29 [20:20:02]line ИТОГО: 1920.00 [20:20:02]line Внесено: 1920.00 [20:20:02]line СДАЧА: 0.00 [20:20:02]line НСП 1% : 16.99 [20:20:02]line НДС 12% : 203.92 [20:20:02]line Наличными: 1920.00 [20:20:02]line Безнал.: 0.00 [20:20:02]line Место: АЗС № 120 "Партнер Нефть" [20:20:02]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [20:20:02]line СНО: Общий режим [20:20:02]line Чек 222 19.06.2024 20:20 [20:20:02]line Смена: 353 ФФД: 1.0 [20:20:02]line ЗНМ: 0300000164 [20:20:02]line РНМ: 0000000000092785 [20:20:02]line Версия ККМ: 001 [20:20:02]line ФМ: 0000000000875093 [20:20:02]line ФД: 103792 [20:20:02]line ФПД: 215088063377307 [20:20:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T202002&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103792&fm=215088063377307&tin=02508201610067®Number=0000000000092785&sum=192000 [20:20:03]OFD Sender: Processing packet 103792 [packets to send 17, broken 16] [20:20:03]ProducePacketName [20:20:03]name=ofd_packets/00103792 [20:20:03]OFD Sender: To server: pG, [20:20:03]CommunicateWithHost lk.salyk.kg:30040 [20:20:03]ConnectInit lk.salyk.kg [20:20:03]written 0, free lines is 4095 [20:20:03]Connected sock=10 [20:20: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 39 33 0F 01 00 00 0E BC 07 01 F6 52 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F8 70 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 1D EE 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 EE 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A3 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A8 4F 00 00 00 00 07 04 06 00 00 EE 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DE 00 00 00 F4 03 04 00 72 3D 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 70 95 01 00 35 04 06 00 C3 9F 17 9C EF 9B 61 AE 56 48 C5 E8 D9 D0 [20:20: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 39 33 4F 00 00 00 F3 D8 47 00 DB 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 39 33 10 04 04 00 70 95 01 00 F4 03 04 00 FA E3 72 66 B6 04 01 00 00 85 A6 74 05 9B 7C 1F 3B [20:20:03]CommunicateWithHost err = 0 [20:20:03]CheckOFDResponse [20:20:03]1017 (14) - 77093643461234 [20:20:03]1041 (16) - 0000000000875093 [20:20:03]1040 (4) - 103792 [20:20:03]1012 (4) - 19.06.2024 13:58 [20:20:03]1206 (1) - 0 [20:20:03]OFD Sender: Remove packet 103792 [20:20:03]ProducePacketName [20:20:03]name=ofd_packets/00103792 [20:20:03]NVStorageDeleteData [20:20:03]Write to MH i2c: 01 00 00 09 12 1B [20:20:03]Write i2c OK [20:20:03]MH_I2C_Read... [20:20:03]Read from MH i2c: 01 [20:20:03]MH_I2C_Read... [20:20:03]Read from MH i2c: 01 07 00 [20:20:03]MH_I2C_Read... [20:20:03]Read from MH i2c: 01 07 00 09 12 00 00 00 00 00 E8 0C 16 [20:20:03]RasterBufferAndPrint [20:20:03]line [20:20:03]line [20:20:03]line [20:20:03]line [20:20:03]line [20:20:03]written 0, free lines is 3310 [20:20:03]MH_Cut [20:20:03]Write to MH i2c: D1 01 00 10 12 01 F4 [20:20:03]Write i2c OK [20:20:03]MH_I2C_Read... [20:20:03]Read from MH i2c: D1 [20:20:03]MH_I2C_Read... [20:20:03]Read from MH i2c: D1 01 00 [20:20:03]MH_I2C_Read... [20:20:03]Read from MH i2c: D1 01 00 10 12 00 F3 [20:20:03]Write to MH i2c: 01 00 00 11 12 23 [20:20:03]Write i2c OK [20:20:03]MH_I2C_Read... [20:20:04]OFD Sender: No OFD packet to send [20:20:04]*** Cut start [20:20:04]*** Partial cut [20:20:04]*** CUTSNS_PIN = 1 [20:20:04]*** CUTSNS_PIN = 0 [20:20:04]*** Brake cut motor [20:20:05]Read from MH i2c: 01 [20:20:05]MH_I2C_Read... [20:20:05]*** Stop cut motor [20:20:05]*** Cut end [20:20:05]Read from MH i2c: 01 07 00 [20:20:05]MH_I2C_Read... [20:20:05]Read from MH i2c: 01 07 00 11 12 00 00 00 00 00 FF 0F 38 [20:20:05]process_action close_receipt done [20:20:05]requested_data is exist [20:20:05]produce_requested_data [20:20:05]requested_item fm.sn is exist - process it [20:20:05]wFMCommunicate request_size=4 [20:20:05]MH_SAM_APDU [20:20:05]CAPDU: 80 11 00 00 [20:20:05]Write to MH i2c: E2 08 00 12 12 80 11 00 00 00 00 00 00 9E [20:20:05]Write i2c OK [20:20:05]MH_I2C_Read... [20:20:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:20:05]Read from MH i2c: E2 [20:20:05]MH_I2C_Read... [20:20:05]Read from MH i2c: E2 17 00 [20:20:05]MH_I2C_Read... [20:20:05]Read from MH i2c: E2 17 00 12 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 F1 [20:20:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [20:20:05]wFMCommunicate OK [20:20:05]requested_item fd.num is exist - process it [20:20:05]SAM_PROTO_GetFieldsCounters [20:20:05]wFMCommunicate request_size=4 [20:20:05]MH_SAM_APDU [20:20:05]CAPDU: 80 13 00 00 [20:20:05]Write to MH i2c: E2 08 00 13 12 80 13 00 00 00 00 00 00 A1 [20:20:05]Write i2c OK [20:20:05]MH_I2C_Read... [20:20:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:20:05]Read from MH i2c: E2 [20:20:05]MH_I2C_Read... [20:20:05]Read from MH i2c: E2 62 00 [20:20:05]MH_I2C_Read... [20:20:05]Read from MH i2c: E2 62 00 13 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 70 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 DE 00 00 00 5E 04 04 00 DE 00 00 00 57 04 04 00 DF 00 00 00 19 04 04 00 00 00 00 00 90 00 CA [20:20: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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 70 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 DE 00 00 00 5E 04 04 00 DE 00 00 00 57 04 04 00 DF 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:20:05]wFMCommunicate OK [20:20:05]SAM_PROTO_GetFieldsCounters done [20:20:05]requested_item shift.num is exist - process it [20:20:05]requested_item shift.opened is exist - process it [20:20:05]req_shift_opened [20:20:05]FM_GetShiftState [20:20:05]SAM_PROTO_GetShiftState [20:20:05]wFMCommunicate request_size=4 [20:20:05]MH_SAM_APDU [20:20:05]CAPDU: 80 13 01 00 [20:20:05]Write to MH i2c: E2 08 00 14 12 80 13 01 00 00 00 00 00 A3 [20:20:05]Write i2c OK [20:20:05]MH_I2C_Read... [20:20:05]Read from MH i2c: E2 [20:20:05]MH_I2C_Read... [20:20:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:20:05]Read from MH i2c: E2 0E 00 [20:20:05]MH_I2C_Read... [20:20:05]Read from MH i2c: E2 0E 00 14 12 00 09 00 01 04 26 72 66 00 00 00 00 90 00 B1 [20:20:05]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [20:20:05]wFMCommunicate OK [20:20:05]SAM_PROTO_GetShiftState done [20:20:05]FM_GetShiftState done [20:20:05]req_shift_opened done [20:20:05]requested_item shift.open_date is exist - process it [20:20:05]req_shift_open_date [20:20:05]req_shift_open_date done [20:20:05]produce_requested_data done [20:20:05]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103792,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [20:20:05]process_action_free close_receipt [20:20:05]json_value_free [20:20:05]json_value_free done [20:20:05]process_json_proto returns [20:20:05]Send response to host [20:20:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103792,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [20:20:05]free response buf [20:20:05]execute_script done [20:20:05]execute_script returns [20:20:05]free content buf [20:20:05]Sock 9.Close socket [20:20:05]Sock 9.Thread stoped [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:18]accept exits with 8 [20:21:18]New connection [20:21:18]New thread 3066940772 created [20:21:18]Thread 3066797412 joined [20:21:18]Waiting for new connection... [20:21:18] Sock 8.Parse request [20:21:18]Sock 8.Check first char [20:21:18]Sock 8.First char is OK [20:21:18]request: POST /json_proto HTTP/1.0 [20:21:18]Method: POST [20:21:18]URL: /json_proto [20:21:18]Method is POST - this is cgi request [20:21:18]url: /json_proto [20:21:18]query_string will be loaded in cgi processing [20:21:18]execute_cgi json_proto POST (null) [20:21:18]execute_cgi path=json_proto method=POST [20:21:18]POST find Content-Length [20:21:18]Host: 172.17.38.133:8080 [20:21:18]Content-Length: 819 [20:21:18]Content-Type: application/json [20:21:18] [20:21:18]POST finish read [20:21:18]Found Content-Length = 819 [20:21:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673088", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.65 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:21:18]execute_script... [20:21: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)673088", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.65 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:21:18]POST & json_proto [20:21:18]process_json_proto [20:21:18]json parsed OK: [20:21:18]protocol is kg_v1.0 [20:21:18]action value=close_receipt [20:21:18]process_action close_receipt [20:21:18]cmd_close_receipt [20:21:18]MH_GetDate [20:21:18]Write to MH i2c: F0 00 00 15 12 16 [20:21:18]Write i2c OK [20:21:18]MH_I2C_Read... [20:21:18]Read from MH i2c: F0 [20:21:18]MH_I2C_Read... [20:21:18]Read from MH i2c: F0 09 00 [20:21:18]MH_I2C_Read... [20:21:18]Read from MH i2c: F0 09 00 15 12 00 BF 3D 73 66 BD 8F 7C 64 20 [20:21:18]GetLastDocTimeStamp 1718828402 [20:21:18]current date 1718828479 [20:21:18]FM_GetShiftState [20:21:18]SAM_PROTO_GetShiftState [20:21:18]wFMCommunicate request_size=4 [20:21:18]MH_SAM_APDU [20:21:18]CAPDU: 80 13 01 00 [20:21:18]Write to MH i2c: E2 08 00 16 12 80 13 01 00 00 00 00 00 A5 [20:21:18]Write i2c OK [20:21:18]MH_I2C_Read... [20:21:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:21:18]Read from MH i2c: E2 [20:21:18]MH_I2C_Read... [20:21:18]Read from MH i2c: E2 0E 00 [20:21:18]MH_I2C_Read... [20:21:18]Read from MH i2c: E2 0E 00 16 12 00 09 00 01 04 26 72 66 00 00 00 00 90 00 B3 [20:21:18]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [20:21:18]wFMCommunicate OK [20:21:18]SAM_PROTO_GetShiftState done [20:21:18]FM_GetShiftState done [20:21:18]opened in 1718756868 [20:21:18]opened+sec_in_day 1718843268 [20:21:18]quantity*price = 100064 [20:21:18]sum+1 = 100066 [20:21:18]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.65 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 0.00 Безнал.: 1000.65 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 223 19.06.2024 20:21 Смена: 353 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000875093 ФД: 103793 ФПД: 138391410069994 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T202119&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103793&fm=138391410069994&tin=02508201610067®Number=0000000000092785&sum=100065 [20:21:19]StoreToDocumentArchive [20:21:19]shift 353 fd 103793 [20:21:19]save to /storage/0353/doc_00103793 [20:21:19]save last doc name /storage/0353/doc_00103793 to /storage/kkm_last_doc_name [20:21:19]save OK [20:21:19]Clear old archive folders... [20:21:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:21:19]tlvbuf is 016A0B50 [20:21:19]SAM_PROTO_ClearQueue [20:21:19]wFMCommunicate request_size=4 [20:21:19]MH_SAM_APDU [20:21:19]CAPDU: 80 09 00 00 [20:21:19]Write to MH i2c: E2 08 00 23 12 80 09 00 00 00 00 00 00 A7 [20:21:19]Write i2c OK [20:21:19]MH_I2C_Read... [20:21:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:21:19]Read from MH i2c: E2 [20:21:19]MH_I2C_Read... [20:21:19]Read from MH i2c: E2 03 00 [20:21:19]MH_I2C_Read... [20:21:19]Read from MH i2c: E2 03 00 23 12 00 90 00 A9 [20:21:19]RAPDU: 90 00 [20:21:19]wFMCommunicate OK [20:21:19]SAM_PROTO_ClearQueue done [20:21:19]KKMCreateOFDPacket [20:21:19]OFDProtocolAddRootSTLVToBuf [20:21:19]FM_MakeSignedData [20:21:19]FM_MakeSignedData [20:21:19]SAM_PROTO_SignData [20:21:19]wFMCommunicate request_size=4 [20:21:19]MH_SAM_APDU [20:21:19]CAPDU: 80 0D 01 02 [20:21:19]Write to MH i2c: E2 08 00 24 12 80 0D 01 02 00 00 00 00 AF [20:21:19]Write i2c OK [20:21:19]MH_I2C_Read... [20:21:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:21:19]Read from MH i2c: E2 [20:21:19]MH_I2C_Read... [20:21:19]Read from MH i2c: E2 03 00 [20:21:19]MH_I2C_Read... [20:21:19]Read from MH i2c: E2 03 00 24 12 00 90 00 AA [20:21:19]RAPDU: 90 00 [20:21:19]wFMCommunicate OK [20:21:19]wFMCommunicate request_size=255 [20:21:19]MH_SAM_APDU [20:21: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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E1 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E1 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 DF 00 00 00 F4 03 04 00 BF 3D 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 71 95 01 00 35 04 06 00 7D [20:21:19]Write to MH i2c: E2 02 01 25 12 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E1 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E1 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 DF 00 00 00 F4 03 04 00 BF 3D 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 71 95 01 00 35 04 06 00 7D 00 00 D5 [20:21:19]Write i2c OK [20:21:19]MH_I2C_Read... [20:21:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:21:20]Read from MH i2c: E2 [20:21:20]MH_I2C_Read... [20:21:20]Read from MH i2c: E2 03 00 [20:21:20]MH_I2C_Read... [20:21:20]Read from MH i2c: E2 03 00 25 12 00 90 00 AB [20:21:20]RAPDU: 90 00 [20:21:20]wFMCommunicate OK [20:21:20]wFMCommunicate request_size=10 [20:21:20]MH_SAM_APDU [20:21:20]CAPDU: 80 0D 02 02 05 DD C2 D6 51 EA [20:21:20]Write to MH i2c: E2 0D 00 26 12 80 0D 02 02 05 00 DD C2 D6 51 EA 00 00 6C [20:21:20]Write i2c OK [20:21:20]MH_I2C_Read... [20:21:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:21:20]Read from MH i2c: E2 [20:21:20]MH_I2C_Read... [20:21:20]Read from MH i2c: E2 03 00 [20:21:20]MH_I2C_Read... [20:21:20]Read from MH i2c: E2 03 00 26 12 00 90 00 AC [20:21:20]RAPDU: 90 00 [20:21:20]wFMCommunicate OK [20:21:20]wFMCommunicate request_size=4 [20:21:20]MH_SAM_APDU [20:21:20]CAPDU: 80 0D 03 02 [20:21:20]Write to MH i2c: E2 08 00 27 12 80 0D 03 02 00 00 00 00 B4 [20:21:20]Write i2c OK [20:21:20]MH_I2C_Read... [20:21:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:21:20]Read from MH i2c: E2 [20:21:20]MH_I2C_Read... [20:21:20]Read from MH i2c: E2 0B 00 [20:21:20]MH_I2C_Read... [20:21:20]Read from MH i2c: E2 0B 00 27 12 00 13 CE 08 C5 1B 5E 7D AA 90 00 03 [20:21:20]RAPDU: 13 CE 08 C5 1B 5E 7D AA 90 00 [20:21:20]wFMCommunicate OK [20:21:20]SAM_PROTO_SignData done [20:21:20]FM_MakeSignedData done [20:21:20]CreateOFDProtocolMessage [20:21:20]wFMCommunicate request_size=4 [20:21:20]MH_SAM_APDU [20:21:20]CAPDU: 80 11 00 00 [20:21:20]Write to MH i2c: E2 08 00 28 12 80 11 00 00 00 00 00 00 B4 [20:21:20]Write i2c OK [20:21:20]MH_I2C_Read... [20:21:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:21:20]Read from MH i2c: E2 [20:21:20]MH_I2C_Read... [20:21:20]Read from MH i2c: E2 17 00 [20:21:20]MH_I2C_Read... [20:21:20]Read from MH i2c: E2 17 00 28 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 07 [20:21:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [20:21:20]wFMCommunicate OK [20:21:20]CreateOFDProtocolMessage done [20:21:20]OFDSenderStorePacket 103793 [20:21:20]StoreOFDPacket docnum=103793 [20:21:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 61 76 07 01 87 7A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E1 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E1 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 DF 00 00 00 F4 03 04 00 BF 3D 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 71 95 01 00 35 04 06 00 7D DD C2 D6 51 EA 13 CE 08 C5 1B 5E 7D AA [20:21:20]CheckFolder [20:21:20]dirname=/storage/ofd_packets [20:21:20]CheckFolder done [20:21:20]ProducePacketName [20:21:20]name=ofd_packets/00103793 [20:21:20]NVStorageSaveData ofd_packets/00103793 [20:21:20]File name is /storage/ofd_packets/00103793 [20:21:20]Write 301 bytes [20:21:20]NVStorageSaveData done [20:21:20]OFDSenderStorePacket done [20:21:20]KKMCreateOFDPacket done [20:21:20]NVStorageSaveData kkm_last_timestamp [20:21:20]File name is /storage/kkm_last_timestamp [20:21:20]Write 4 bytes [20:21:20]NVStorageSaveData done [20:21:20]ExternCall_PrintAddStr [20:21:20]wPrintStart [20:21:20]Write to MH i2c: 01 00 00 29 12 3B [20:21:20]Write i2c OK [20:21:20]MH_I2C_Read... [20:21:20]Read from MH i2c: 01 [20:21:20]MH_I2C_Read... [20:21:20]Read from MH i2c: 01 07 00 [20:21:20]MH_I2C_Read... [20:21:20]Read from MH i2c: 01 07 00 29 12 00 00 00 00 00 FF 0F 50 [20:21:20]RasterBufferAndPrint [20:21:20]line Счет N : (1)673088 [20:21:20]line ИНН: 02508201610067 [20:21:20]line Контрольно-Кассовый Чек [20:21:20]line ПРОДАЖА [20:21:20]line ТРК (МРК, ГНК) : 32 [20:21:20]line Товар: 2710124130 [20:21:20]line Аи-92-К-5 [20:21:20]line 15.070 * 66.40 [20:21:20]line = 1000.65 [20:21:20]line НДС 12% НСП 1% [20:21:20]line > о реализуемом товаре [20:21:20]line ИТОГО: 1000.65 [20:21:20]line НСП 1% : 8.85 [20:21:20]line НДС 12% : 106.26 [20:21:20]line Наличными: 0.00 [20:21:20]line Безнал.: 1000.65 [20:21:20]line Место: АЗС № 120 "Партнер Нефть" [20:21:20]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [20:21:20]line СНО: Общий режим [20:21:20]line Чек 223 19.06.2024 20:21 [20:21:20]line Смена: 353 ФФД: 1.0 [20:21:20]line ЗНМ: 0300000164 [20:21:20]line РНМ: 0000000000092785 [20:21:20]line Версия ККМ: 001 [20:21:20]line Платежная система: Бакай Банк [20:21:20]line ФМ: 0000000000875093 [20:21:20]line ФД: 103793 [20:21:20]line ФПД: 138391410069994 [20:21:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T202119&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103793&fm=138391410069994&tin=02508201610067®Number=0000000000092785&sum=100065 [20:21:20]OFD Sender: Processing packet 103793 [packets to send 17, broken 16] [20:21:20]ProducePacketName [20:21:20]name=ofd_packets/00103793 [20:21:20]OFD Sender: To server: pG, [20:21:20]CommunicateWithHost lk.salyk.kg:30040 [20:21:20]ConnectInit lk.salyk.kg [20:21:20]written 0, free lines is 4095 [20:21:20]Connected sock=10 [20:21: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 39 33 0F 01 00 00 61 76 07 01 87 7A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E1 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E1 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 DF 00 00 00 F4 03 04 00 BF 3D 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 71 95 01 00 35 04 06 00 7D DD C2 D6 51 EA 13 CE 08 C5 1B 5E 7D AA [20:21: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 39 33 4F 00 00 00 DD 0A 47 00 51 02 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 71 95 01 00 F4 03 04 00 47 E4 72 66 B6 04 01 00 00 94 EF 43 75 11 1B 00 EF [20:21:20]CommunicateWithHost err = 0 [20:21:20]CheckOFDResponse [20:21:20]1017 (14) - 77093643461234 [20:21:20]1041 (16) - 0000000000875093 [20:21:20]1040 (4) - 103793 [20:21:20]1012 (4) - 19.06.2024 13:59 [20:21:20]1206 (1) - 0 [20:21:20]OFD Sender: Remove packet 103793 [20:21:20]ProducePacketName [20:21:20]name=ofd_packets/00103793 [20:21:20]NVStorageDeleteData [20:21:20]Write to MH i2c: 01 00 00 53 12 65 [20:21:20]Write i2c OK [20:21:20]MH_I2C_Read... [20:21:20]Read from MH i2c: 01 [20:21:20]MH_I2C_Read... [20:21:20]Read from MH i2c: 01 07 00 [20:21:20]MH_I2C_Read... [20:21:20]Read from MH i2c: 01 07 00 53 12 00 00 00 00 00 F6 0C 6E [20:21:20]RasterBufferAndPrint [20:21:20]line [20:21:20]line [20:21:20]line [20:21:20]line [20:21:20]line [20:21:20]written 0, free lines is 3325 [20:21:21]MH_Cut [20:21:21]Write to MH i2c: D1 01 00 5A 12 01 3E [20:21:21]Write i2c OK [20:21:21]MH_I2C_Read... [20:21:21]Read from MH i2c: D1 [20:21:21]MH_I2C_Read... [20:21:21]Read from MH i2c: D1 01 00 [20:21:21]MH_I2C_Read... [20:21:21]Read from MH i2c: D1 01 00 5A 12 00 3D [20:21:21]Write to MH i2c: 01 00 00 5B 12 6D [20:21:21]Write i2c OK [20:21:21]MH_I2C_Read... [20:21:21]OFD Sender: No OFD packet to send [20:21:21]*** Cut start [20:21:21]*** Partial cut [20:21:21]*** CUTSNS_PIN = 1 [20:21:21]*** CUTSNS_PIN = 0 [20:21:21]*** Brake cut motor [20:21:22]Read from MH i2c: 01 [20:21:22]MH_I2C_Read... [20:21:22]*** Stop cut motor [20:21:22]*** Cut end [20:21:22]Read from MH i2c: 01 07 00 [20:21:22]MH_I2C_Read... [20:21:22]Read from MH i2c: 01 07 00 5B 12 00 00 00 00 00 FF 0F 82 [20:21:22]process_action close_receipt done [20:21:22]requested_data is exist [20:21:22]produce_requested_data [20:21:22]requested_item fm.sn is exist - process it [20:21:22]wFMCommunicate request_size=4 [20:21:22]MH_SAM_APDU [20:21:22]CAPDU: 80 11 00 00 [20:21:22]Write to MH i2c: E2 08 00 5C 12 80 11 00 00 00 00 00 00 E8 [20:21:22]Write i2c OK [20:21:22]MH_I2C_Read... [20:21:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:21:22]Read from MH i2c: E2 [20:21:22]MH_I2C_Read... [20:21:22]Read from MH i2c: E2 17 00 [20:21:22]MH_I2C_Read... [20:21:22]Read from MH i2c: E2 17 00 5C 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 3B [20:21:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [20:21:22]wFMCommunicate OK [20:21:22]requested_item fd.num is exist - process it [20:21:22]SAM_PROTO_GetFieldsCounters [20:21:22]wFMCommunicate request_size=4 [20:21:22]MH_SAM_APDU [20:21:22]CAPDU: 80 13 00 00 [20:21:22]Write to MH i2c: E2 08 00 5D 12 80 13 00 00 00 00 00 00 EB [20:21:22]Write i2c OK [20:21:22]MH_I2C_Read... [20:21:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:21:22]Read from MH i2c: E2 [20:21:22]MH_I2C_Read... [20:21:22]Read from MH i2c: E2 62 00 [20:21:22]MH_I2C_Read... [20:21:22]Read from MH i2c: E2 62 00 5D 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 71 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 DF 00 00 00 5E 04 04 00 DF 00 00 00 57 04 04 00 E0 00 00 00 19 04 04 00 00 00 00 00 90 00 18 [20:21: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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 71 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 DF 00 00 00 5E 04 04 00 DF 00 00 00 57 04 04 00 E0 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:21:22]wFMCommunicate OK [20:21:22]SAM_PROTO_GetFieldsCounters done [20:21:22]requested_item shift.num is exist - process it [20:21:22]requested_item shift.opened is exist - process it [20:21:22]req_shift_opened [20:21:22]FM_GetShiftState [20:21:22]SAM_PROTO_GetShiftState [20:21:22]wFMCommunicate request_size=4 [20:21:22]MH_SAM_APDU [20:21:22]CAPDU: 80 13 01 00 [20:21:22]Write to MH i2c: E2 08 00 5E 12 80 13 01 00 00 00 00 00 ED [20:21:22]Write i2c OK [20:21:22]MH_I2C_Read... [20:21:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:21:22]Read from MH i2c: E2 [20:21:22]MH_I2C_Read... [20:21:22]Read from MH i2c: E2 0E 00 [20:21:22]MH_I2C_Read... [20:21:22]Read from MH i2c: E2 0E 00 5E 12 00 09 00 01 04 26 72 66 00 00 00 00 90 00 FB [20:21:22]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [20:21:22]wFMCommunicate OK [20:21:22]SAM_PROTO_GetShiftState done [20:21:22]FM_GetShiftState done [20:21:22]req_shift_opened done [20:21:22]requested_item shift.open_date is exist - process it [20:21:22]req_shift_open_date [20:21:22]req_shift_open_date done [20:21:22]produce_requested_data done [20:21:22]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103793,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [20:21:22]process_action_free close_receipt [20:21:22]json_value_free [20:21:22]json_value_free done [20:21:22]process_json_proto returns [20:21:22]Send response to host [20:21:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103793,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [20:21:22]free response buf [20:21:22]execute_script done [20:21:22]execute_script returns [20:21:22]free content buf [20:21:22]Sock 8.Close socket [20:21:22]Sock 8.Thread stoped [20:21:26]OFD Sender: No OFD packet to send [20:21:31]OFD Sender: No OFD packet to send [20:21:36]OFD Sender: No OFD packet to send [20:21:41]OFD Sender: No OFD packet to send [20:21:46]OFD Sender: No OFD packet to send [20:21:51]OFD Sender: No OFD packet to send [20:21:56]OFD Sender: No OFD packet to send [20:22:01]OFD Sender: No OFD packet to send [20:22:06]OFD Sender: No OFD packet to send [20:22:11]OFD Sender: No OFD packet to send [20:22:16]OFD Sender: No OFD packet to send [20:22:21]OFD Sender: No OFD packet to send [20:22:26]OFD Sender: No OFD packet to send [20:22:31]OFD Sender: No OFD packet to send [20:22:36]OFD Sender: No OFD packet to send [20:22:41]OFD Sender: No OFD packet to send [20:22:46]OFD Sender: No OFD packet to send [20:22:51]OFD Sender: No OFD packet to send [20:22:56]OFD Sender: No OFD packet to send [20:23:01]OFD Sender: No OFD packet to send [20:23:06]OFD Sender: No OFD packet to send [20:23:11]OFD Sender: No OFD packet to send [20:23:16]OFD Sender: No OFD packet to send [20:23:21]OFD Sender: No OFD packet to send [20:23:26]OFD Sender: No OFD packet to send [20:23:31]OFD Sender: No OFD packet to send [20:23:36]OFD Sender: No OFD packet to send [20:23:41]OFD Sender: No OFD packet to send [20:23:46]OFD Sender: No OFD packet to send [20:23:51]OFD Sender: No OFD packet to send [20:23:54]accept exits with 9 [20:23:54]New connection [20:23:54]New thread 3066797412 created [20:23:54]Thread 3066940772 joined [20:23:54]Waiting for new connection... [20:23:54] Sock 9.Parse request [20:23:54]Sock 9.Check first char [20:23:54]Sock 9.First char is OK [20:23:54]request: POST /json_proto HTTP/1.0 [20:23:54]Method: POST [20:23:54]URL: /json_proto [20:23:54]Method is POST - this is cgi request [20:23:54]url: /json_proto [20:23:54]query_string will be loaded in cgi processing [20:23:54]execute_cgi json_proto POST (null) [20:23:54]execute_cgi path=json_proto method=POST [20:23:54]POST find Content-Length [20:23:54]Host: 172.17.38.133:8080 [20:23:54]Content-Length: 824 [20:23:54]Content-Type: application/json [20:23:54] [20:23:54]POST finish read [20:23:54]Found Content-Length = 824 [20:23:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673089", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 30.000, "sum" : 2187.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" : 2187.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:23:54]execute_script... [20:23: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)673089", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 30.000, "sum" : 2187.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" : 2187.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:23:54]POST & json_proto [20:23:54]process_json_proto [20:23:54]json parsed OK: [20:23:54]protocol is kg_v1.0 [20:23:54]action value=close_receipt [20:23:54]process_action close_receipt [20:23:54]cmd_close_receipt [20:23:54]MH_GetDate [20:23:54]Write to MH i2c: F0 00 00 5F 12 60 [20:23:54]Write i2c OK [20:23:54]MH_I2C_Read... [20:23:54]Read from MH i2c: F0 [20:23:54]MH_I2C_Read... [20:23:54]Read from MH i2c: F0 09 00 [20:23:54]MH_I2C_Read... [20:23:54]Read from MH i2c: F0 09 00 5F 12 00 5B 3E 73 66 BD 8F 7C 64 07 [20:23:54]GetLastDocTimeStamp 1718828479 [20:23:54]current date 1718828635 [20:23:54]FM_GetShiftState [20:23:54]SAM_PROTO_GetShiftState [20:23:54]wFMCommunicate request_size=4 [20:23:54]MH_SAM_APDU [20:23:54]CAPDU: 80 13 01 00 [20:23:54]Write to MH i2c: E2 08 00 60 12 80 13 01 00 00 00 00 00 EF [20:23:54]Write i2c OK [20:23:54]MH_I2C_Read... [20:23:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:23:54]Read from MH i2c: E2 [20:23:54]MH_I2C_Read... [20:23:54]Read from MH i2c: E2 0E 00 [20:23:54]MH_I2C_Read... [20:23:54]Read from MH i2c: E2 0E 00 60 12 00 09 00 01 04 26 72 66 00 00 00 00 90 00 FD [20:23:54]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [20:23:54]wFMCommunicate OK [20:23:54]SAM_PROTO_GetShiftState done [20:23:54]FM_GetShiftState done [20:23:54]opened in 1718756868 [20:23:54]opened+sec_in_day 1718843268 [20:23:54]quantity*price = 218700 [20:23:54]sum+1 = 218701 [20:23:54]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2187.00 НСП 1% : 19.35 НДС 12% : 232.25 Наличными: 0.00 Безнал.: 2187.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 224 19.06.2024 20:23 Смена: 353 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000875093 ФД: 103794 ФПД: 47494421600733 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T202355&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103794&fm=47494421600733&tin=02508201610067®Number=0000000000092785&sum=218700 [20:23:55]StoreToDocumentArchive [20:23:55]shift 353 fd 103794 [20:23:55]save to /storage/0353/doc_00103794 [20:23:55]save last doc name /storage/0353/doc_00103794 to /storage/kkm_last_doc_name [20:23:55]save OK [20:23:55]Clear old archive folders... [20:23:55]ProcessDocumentItem done err = 0, tmpTLVsize=252 [20:23:55]tlvbuf is 016BBEE0 [20:23:55]SAM_PROTO_ClearQueue [20:23:55]wFMCommunicate request_size=4 [20:23:55]MH_SAM_APDU [20:23:55]CAPDU: 80 09 00 00 [20:23:55]Write to MH i2c: E2 08 00 6D 12 80 09 00 00 00 00 00 00 F1 [20:23:55]Write i2c OK [20:23:55]MH_I2C_Read... [20:23:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:23:55]Read from MH i2c: E2 [20:23:55]MH_I2C_Read... [20:23:55]Read from MH i2c: E2 03 00 [20:23:55]MH_I2C_Read... [20:23:55]Read from MH i2c: E2 03 00 6D 12 00 90 00 F3 [20:23:55]RAPDU: 90 00 [20:23:55]wFMCommunicate OK [20:23:55]SAM_PROTO_ClearQueue done [20:23:55]KKMCreateOFDPacket [20:23:55]OFDProtocolAddRootSTLVToBuf [20:23:55]FM_MakeSignedData [20:23:55]FM_MakeSignedData [20:23:55]SAM_PROTO_SignData [20:23:55]wFMCommunicate request_size=4 [20:23:55]MH_SAM_APDU [20:23:55]CAPDU: 80 0D 01 02 [20:23:55]Write to MH i2c: E2 08 00 6E 12 80 0D 01 02 00 00 00 00 F9 [20:23:55]Write i2c OK [20:23:55]MH_I2C_Read... [20:23:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:23:55]Read from MH i2c: E2 [20:23:55]MH_I2C_Read... [20:23:55]Read from MH i2c: E2 03 00 [20:23:55]MH_I2C_Read... [20:23:55]Read from MH i2c: E2 03 00 6E 12 00 90 00 F4 [20:23:55]RAPDU: 90 00 [20:23:55]wFMCommunicate OK [20:23:55]wFMCommunicate request_size=255 [20:23:55]MH_SAM_APDU [20:23:55]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 4C 56 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 56 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8F 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B9 5A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4C 56 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 E0 00 00 00 F4 03 04 00 5B 3E 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 72 95 01 00 35 04 06 00 [20:23:55]Write to MH i2c: E2 02 01 6F 12 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 4C 56 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 56 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8F 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B9 5A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4C 56 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 E0 00 00 00 F4 03 04 00 5B 3E 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 72 95 01 00 35 04 06 00 00 00 D3 [20:23:55]Write i2c OK [20:23:55]MH_I2C_Read... [20:23:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:23:56]Read from MH i2c: E2 [20:23:56]MH_I2C_Read... [20:23:56]Read from MH i2c: E2 03 00 [20:23:56]MH_I2C_Read... [20:23:56]Read from MH i2c: E2 03 00 6F 12 00 90 00 F5 [20:23:56]RAPDU: 90 00 [20:23:56]wFMCommunicate OK [20:23:56]wFMCommunicate request_size=11 [20:23:56]MH_SAM_APDU [20:23:56]CAPDU: 80 0D 02 02 06 2B 32 28 20 D9 DD [20:23:56]Write to MH i2c: E2 0E 00 70 12 80 0D 02 02 06 00 2B 32 28 20 D9 DD 00 00 63 [20:23:56]Write i2c OK [20:23:56]MH_I2C_Read... [20:23:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:23:56]Read from MH i2c: E2 [20:23:56]MH_I2C_Read... [20:23:56]Read from MH i2c: E2 03 00 [20:23:56]MH_I2C_Read... [20:23:56]Read from MH i2c: E2 03 00 70 12 00 90 00 F6 [20:23:56]RAPDU: 90 00 [20:23:56]wFMCommunicate OK [20:23:56]wFMCommunicate request_size=4 [20:23:56]MH_SAM_APDU [20:23:56]CAPDU: 80 0D 03 02 [20:23:56]Write to MH i2c: E2 08 00 71 12 80 0D 03 02 00 00 00 00 FE [20:23:56]Write i2c OK [20:23:56]MH_I2C_Read... [20:23:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:23:56]Read from MH i2c: E2 [20:23:56]MH_I2C_Read... [20:23:56]Read from MH i2c: E2 0B 00 [20:23:56]MH_I2C_Read... [20:23:56]Read from MH i2c: E2 0B 00 71 12 00 43 2B 44 F1 63 65 DB 66 90 00 AB [20:23:56]RAPDU: 43 2B 44 F1 63 65 DB 66 90 00 [20:23:56]wFMCommunicate OK [20:23:56]SAM_PROTO_SignData done [20:23:56]FM_MakeSignedData done [20:23:56]CreateOFDProtocolMessage [20:23:56]wFMCommunicate request_size=4 [20:23:56]MH_SAM_APDU [20:23:56]CAPDU: 80 11 00 00 [20:23:56]Write to MH i2c: E2 08 00 72 12 80 11 00 00 00 00 00 00 FE [20:23:56]Write i2c OK [20:23:56]MH_I2C_Read... [20:23:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:23:56]Read from MH i2c: E2 [20:23:56]MH_I2C_Read... [20:23:56]Read from MH i2c: E2 17 00 [20:23:56]MH_I2C_Read... [20:23:56]Read from MH i2c: E2 17 00 72 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 51 [20:23:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [20:23:56]wFMCommunicate OK [20:23:56]CreateOFDProtocolMessage done [20:23:56]OFDSenderStorePacket 103794 [20:23:56]StoreOFDPacket docnum=103794 [20:23:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 F8 1E 08 01 1E 25 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 4C 56 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 56 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8F 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B9 5A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4C 56 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 E0 00 00 00 F4 03 04 00 5B 3E 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 72 95 01 00 35 04 06 00 2B 32 28 20 D9 DD 43 2B 44 F1 63 65 DB 66 [20:23:56]CheckFolder [20:23:56]dirname=/storage/ofd_packets [20:23:56]CheckFolder done [20:23:56]ProducePacketName [20:23:56]name=ofd_packets/00103794 [20:23:56]NVStorageSaveData ofd_packets/00103794 [20:23:56]File name is /storage/ofd_packets/00103794 [20:23:56]Write 302 bytes [20:23:56]NVStorageSaveData done [20:23:56]OFDSenderStorePacket done [20:23:56]KKMCreateOFDPacket done [20:23:56]NVStorageSaveData kkm_last_timestamp [20:23:56]File name is /storage/kkm_last_timestamp [20:23:56]Write 4 bytes [20:23:56]NVStorageSaveData done [20:23:56]ExternCall_PrintAddStr [20:23:56]wPrintStart [20:23:56]Write to MH i2c: 01 00 00 73 12 85 [20:23:56]Write i2c OK [20:23:56]MH_I2C_Read... [20:23:56]Read from MH i2c: 01 [20:23:56]MH_I2C_Read... [20:23:56]Read from MH i2c: 01 07 00 [20:23:56]MH_I2C_Read... [20:23:56]Read from MH i2c: 01 07 00 73 12 00 00 00 00 00 FF 0F 9A [20:23:56]RasterBufferAndPrint [20:23:56]line Счет N : (1)673089 [20:23:56]line ИНН: 02508201610067 [20:23:56]line Контрольно-Кассовый Чек [20:23:56]line ПРОДАЖА [20:23:56]line ТРК (МРК, ГНК) : 11 [20:23:56]line Товар: 2710194210 [20:23:56]line ДТ(л)-К-5 [20:23:56]line 30.000 * 72.90 [20:23:56]line = 2187.00 [20:23:56]line НДС 12% НСП 1% [20:23:56]line > о реализуемом товаре [20:23:56]line ИТОГО: 2187.00 [20:23:56]line НСП 1% : 19.35 [20:23:56]line НДС 12% : 232.25 [20:23:56]line Наличными: 0.00 [20:23:56]line Безнал.: 2187.00 [20:23:56]line Место: АЗС № 120 "Партнер Нефть" [20:23:56]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [20:23:56]line СНО: Общий режим [20:23:56]line Чек 224 19.06.2024 20:23 [20:23:56]line Смена: 353 ФФД: 1.0 [20:23:56]line ЗНМ: 0300000164 [20:23:56]line РНМ: 0000000000092785 [20:23:56]line Версия ККМ: 001 [20:23:56]line Платежная система: Бакай Банк [20:23:56]line ФМ: 0000000000875093 [20:23:56]line ФД: 103794 [20:23:56]line ФПД: 47494421600733 [20:23:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T202355&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103794&fm=47494421600733&tin=02508201610067®Number=0000000000092785&sum=218700 [20:23:56]OFD Sender: Processing packet 103794 [packets to send 17, broken 16] [20:23:56]ProducePacketName [20:23:56]name=ofd_packets/00103794 [20:23:56]OFD Sender: To server: pG, [20:23:56]CommunicateWithHost lk.salyk.kg:30040 [20:23:56]ConnectInit lk.salyk.kg [20:23:56]written 0, free lines is 4095 [20:23:57]Write to MH i2c: 01 00 00 9D 12 AF [20:23:57]Write i2c OK [20:23:57]MH_I2C_Read... [20:23:57]Read from MH i2c: 01 [20:23:57]MH_I2C_Read... [20:23:57]Read from MH i2c: 01 07 00 [20:23:57]MH_I2C_Read... [20:23:57]Read from MH i2c: 01 07 00 9D 12 00 00 00 00 00 EE 0C B0 [20:23:57]RasterBufferAndPrint [20:23:57]line [20:23:57]line [20:23:57]line [20:23:57]line [20:23:57]line [20:23:57]written 0, free lines is 3315 [20:23:57]MH_Cut [20:23:57]Write to MH i2c: D1 01 00 A4 12 01 88 [20:23:57]Write i2c OK [20:23:57]MH_I2C_Read... [20:23:57]Read from MH i2c: D1 [20:23:57]MH_I2C_Read... [20:23:57]Read from MH i2c: D1 01 00 [20:23:57]MH_I2C_Read... [20:23:57]Read from MH i2c: D1 01 00 A4 12 00 87 [20:23:57]Write to MH i2c: 01 00 00 A5 12 B7 [20:23:57]Write i2c OK [20:23:57]MH_I2C_Read... [20:23:57]*** Cut start [20:23:57]*** Partial cut [20:23:57]*** CUTSNS_PIN = 1 [20:23:57]*** CUTSNS_PIN = 0 [20:23:58]*** Brake cut motor [20:23:58]Read from MH i2c: 01 [20:23:58]MH_I2C_Read... [20:23:58]*** Stop cut motor [20:23:58]*** Cut end [20:23:58]Read from MH i2c: 01 07 00 [20:23:58]MH_I2C_Read... [20:23:58]Read from MH i2c: 01 07 00 A5 12 00 00 00 00 00 FF 0F CC [20:23:58]process_action close_receipt done [20:23:58]requested_data is exist [20:23:58]produce_requested_data [20:23:58]requested_item fm.sn is exist - process it [20:23:58]wFMCommunicate request_size=4 [20:23:58]MH_SAM_APDU [20:23:58]CAPDU: 80 11 00 00 [20:23:58]Write to MH i2c: E2 08 00 A6 12 80 11 00 00 00 00 00 00 32 [20:23:58]Write i2c OK [20:23:58]MH_I2C_Read... [20:23:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:23:58]Read from MH i2c: E2 [20:23:58]MH_I2C_Read... [20:23:58]Read from MH i2c: E2 17 00 [20:23:58]MH_I2C_Read... [20:23:58]Read from MH i2c: E2 17 00 A6 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 85 [20:23:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [20:23:58]wFMCommunicate OK [20:23:58]requested_item fd.num is exist - process it [20:23:58]SAM_PROTO_GetFieldsCounters [20:23:58]wFMCommunicate request_size=4 [20:23:58]MH_SAM_APDU [20:23:58]CAPDU: 80 13 00 00 [20:23:58]Write to MH i2c: E2 08 00 A7 12 80 13 00 00 00 00 00 00 35 [20:23:58]Write i2c OK [20:23:58]MH_I2C_Read... [20:23:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:23:58]Read from MH i2c: E2 [20:23:58]MH_I2C_Read... [20:23:58]Read from MH i2c: E2 62 00 [20:23:58]MH_I2C_Read... [20:23:58]Read from MH i2c: E2 62 00 A7 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 72 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 E0 00 00 00 5E 04 04 00 E0 00 00 00 57 04 04 00 E1 00 00 00 19 04 04 00 00 00 00 00 90 00 66 [20:23: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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 72 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 E0 00 00 00 5E 04 04 00 E0 00 00 00 57 04 04 00 E1 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:23:58]wFMCommunicate OK [20:23:58]SAM_PROTO_GetFieldsCounters done [20:23:58]requested_item shift.num is exist - process it [20:23:58]requested_item shift.opened is exist - process it [20:23:58]req_shift_opened [20:23:58]FM_GetShiftState [20:23:58]SAM_PROTO_GetShiftState [20:23:58]wFMCommunicate request_size=4 [20:23:58]MH_SAM_APDU [20:23:58]CAPDU: 80 13 01 00 [20:23:58]Write to MH i2c: E2 08 00 A8 12 80 13 01 00 00 00 00 00 37 [20:23:58]Write i2c OK [20:23:58]MH_I2C_Read... [20:23:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:23:58]Read from MH i2c: E2 [20:23:58]MH_I2C_Read... [20:23:58]Read from MH i2c: E2 0E 00 [20:23:58]MH_I2C_Read... [20:23:58]Read from MH i2c: E2 0E 00 A8 12 00 09 00 01 04 26 72 66 00 00 00 00 90 00 45 [20:23:58]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [20:23:58]wFMCommunicate OK [20:23:58]SAM_PROTO_GetShiftState done [20:23:58]FM_GetShiftState done [20:23:58]req_shift_opened done [20:23:58]requested_item shift.open_date is exist - process it [20:23:58]req_shift_open_date [20:23:58]req_shift_open_date done [20:23:58]produce_requested_data done [20:23:58]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103794,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [20:23:58]process_action_free close_receipt [20:23:58]json_value_free [20:23:58]json_value_free done [20:23:58]process_json_proto returns [20:23:58]Send response to host [20:23:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103794,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [20:23:58]free response buf [20:23:58]execute_script done [20:23:58]execute_script returns [20:23:58]free content buf [20:23:58]Sock 9.Close socket [20:23:58]Sock 9.Thread stoped [20:23:59]accept exits with 8 [20:23:59]New connection [20:23:59]New thread 3066940772 created [20:23:59]Thread 3066797412 joined [20:23:59]Waiting for new connection... [20:23:59] Sock 8.Parse request [20:23:59]Sock 8.Check first char [20:23:59]Sock 8.First char is OK [20:23:59]request: POST /json_proto HTTP/1.0 [20:23:59]Method: POST [20:23:59]URL: /json_proto [20:23:59]Method is POST - this is cgi request [20:23:59]url: /json_proto [20:23:59]query_string will be loaded in cgi processing [20:23:59]execute_cgi json_proto POST (null) [20:23:59]execute_cgi path=json_proto method=POST [20:23:59]POST find Content-Length [20:23:59]Host: 172.17.38.133:8080 [20:23:59]Content-Length: 1206 [20:23:59]Content-Type: application/json [20:23:59] [20:23:59]POST finish read [20:23:59]Found Content-Length = 1206 [20:23:59]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 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. \u000A\u0421\u0447\u0435\u0442 N : (1)673090\u000A19.06.2024 20:01\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 32\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 10.450 x 66.40\u000A\u0418\u0422\u041E\u0413: 693.88\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\u000A35457\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:23:59]execute_script... [20:23:59]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 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. \u000A\u0421\u0447\u0435\u0442 N : (1)673090\u000A19.06.2024 20:01\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 32\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 10.450 x 66.40\u000A\u0418\u0422\u041E\u0413: 693.88\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\u000A35457\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:23:59]POST & json_proto [20:23:59]process_json_proto [20:23:59]json parsed OK: [20:23:59]protocol is kg_v1.0 [20:23:59]action value=print_text [20:23:59]process_action print_text [20:23:59]cmd_print_text [20:23:59]ExternCall_PrintAddStr [20:23:59]wPrintStart [20:23:59]Write to MH i2c: 01 00 00 A9 12 BB [20:23:59]Write i2c OK [20:23:59]MH_I2C_Read... [20:23:59]Read from MH i2c: 01 [20:23:59]MH_I2C_Read... [20:23:59]Read from MH i2c: 01 07 00 [20:23:59]MH_I2C_Read... [20:23:59]Read from MH i2c: 01 07 00 A9 12 00 00 00 00 00 FF 0F D0 [20:23:59]RasterBufferAndPrint [20:23:59]line *****ТОВАРНЫЙ ЧЕК***** [20:23:59]line АЗС 120 [20:23:59]line Партнер нефть [20:23:59]line 02508201610067 [20:23:59]line Кассир : Байбугуева Г. [20:23:59]line Счет N : (1)673090 [20:23:59]line 19.06.2024 20:01 [20:23:59]line ПРОДАЖА [20:23:59]line ТРК (МРК, ГНК): 32 [20:23:59]line Вид ГСМ : 2710124130 [20:23:59]line Аи-92-К-5 [20:23:59]line 10.450 x 66.40 [20:23:59]line ИТОГ: 693.88 [20:23:59]line Тип оплаты: Талоны: Топливная Карта [20:23:59]line 35457 [20:23:59]line ______________________ [20:23:59]line (подпись) [20:23:59]written 0, free lines is 4095 [20:23:59]Write to MH i2c: 01 00 00 BD 12 CF [20:23:59]Write i2c OK [20:23:59]MH_I2C_Read... [20:23:59]Read from MH i2c: 01 [20:23:59]MH_I2C_Read... [20:23:59]Read from MH i2c: 01 07 00 [20:23:59]MH_I2C_Read... [20:23:59]Read from MH i2c: 01 07 00 BD 12 00 00 00 00 00 13 0E F7 [20:23:59]RasterBufferAndPrint [20:23:59]line [20:23:59]line [20:23:59]line [20:23:59]line [20:23:59]line [20:23:59]written 0, free lines is 3605 [20:23:59]MH_Cut [20:23:59]Write to MH i2c: D1 01 00 C4 12 01 A8 [20:23:59]Write i2c OK [20:23:59]MH_I2C_Read... [20:23:59]Read from MH i2c: D1 [20:23:59]MH_I2C_Read... [20:23:59]Read from MH i2c: D1 01 00 [20:23:59]MH_I2C_Read... [20:23:59]Read from MH i2c: D1 01 00 C4 12 00 A7 [20:23:59]Write to MH i2c: 01 00 00 C5 12 D7 [20:23:59]Write i2c OK [20:23:59]MH_I2C_Read... [20:24:00]*** Cut start [20:24:00]*** Partial cut [20:24:00]*** CUTSNS_PIN = 1 [20:24:00]*** CUTSNS_PIN = 0 [20:24:00]*** Brake cut motor [20:24:01]Read from MH i2c: 01 [20:24:01]MH_I2C_Read... [20:24:01]*** Stop cut motor [20:24:01]*** Cut end [20:24:01]Read from MH i2c: 01 07 00 [20:24:01]MH_I2C_Read... [20:24:01]Read from MH i2c: 01 07 00 C5 12 00 00 00 00 00 FF 0F EC [20:24:01]process_action print_text done [20:24:01]requested_data is exist [20:24:01]produce_requested_data [20:24:01]requested_item fm.sn is exist - process it [20:24:01]wFMCommunicate request_size=4 [20:24:01]MH_SAM_APDU [20:24:01]CAPDU: 80 11 00 00 [20:24:01]Write to MH i2c: E2 08 00 C6 12 80 11 00 00 00 00 00 00 52 [20:24:01]Write i2c OK [20:24:01]MH_I2C_Read... [20:24:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:24:01]Read from MH i2c: E2 [20:24:01]MH_I2C_Read... [20:24:01]Read from MH i2c: E2 17 00 [20:24:01]MH_I2C_Read... [20:24:01]Read from MH i2c: E2 17 00 C6 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 A5 [20:24:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [20:24:01]wFMCommunicate OK [20:24:01]requested_item fd.num is exist - process it [20:24:01]SAM_PROTO_GetFieldsCounters [20:24:01]wFMCommunicate request_size=4 [20:24:01]MH_SAM_APDU [20:24:01]CAPDU: 80 13 00 00 [20:24:01]Write to MH i2c: E2 08 00 C7 12 80 13 00 00 00 00 00 00 55 [20:24:01]Write i2c OK [20:24:01]MH_I2C_Read... [20:24:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:24:01]Read from MH i2c: E2 [20:24:01]MH_I2C_Read... [20:24:01]Read from MH i2c: E2 62 00 [20:24:01]MH_I2C_Read... [20:24:01]Read from MH i2c: E2 62 00 C7 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 72 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 E0 00 00 00 5E 04 04 00 E0 00 00 00 57 04 04 00 E1 00 00 00 19 04 04 00 00 00 00 00 90 00 86 [20:24: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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 72 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 E0 00 00 00 5E 04 04 00 E0 00 00 00 57 04 04 00 E1 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:24:01]wFMCommunicate OK [20:24:01]SAM_PROTO_GetFieldsCounters done [20:24:01]requested_item shift.num is exist - process it [20:24:01]requested_item shift.opened is exist - process it [20:24:01]req_shift_opened [20:24:01]FM_GetShiftState [20:24:01]SAM_PROTO_GetShiftState [20:24:01]wFMCommunicate request_size=4 [20:24:01]MH_SAM_APDU [20:24:01]CAPDU: 80 13 01 00 [20:24:01]Write to MH i2c: E2 08 00 C8 12 80 13 01 00 00 00 00 00 57 [20:24:01]Write i2c OK [20:24:01]MH_I2C_Read... [20:24:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:24:01]Read from MH i2c: E2 [20:24:01]MH_I2C_Read... [20:24:01]Read from MH i2c: E2 0E 00 [20:24:01]MH_I2C_Read... [20:24:01]Read from MH i2c: E2 0E 00 C8 12 00 09 00 01 04 26 72 66 00 00 00 00 90 00 65 [20:24:01]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [20:24:01]wFMCommunicate OK [20:24:01]SAM_PROTO_GetShiftState done [20:24:01]FM_GetShiftState done [20:24:01]req_shift_opened done [20:24:01]requested_item shift.open_date is exist - process it [20:24:01]req_shift_open_date [20:24:01]req_shift_open_date done [20:24:01]produce_requested_data done [20:24:01]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103794,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [20:24:01]process_action_free print_text [20:24:01]json_value_free [20:24:01]json_value_free done [20:24:01]process_json_proto returns [20:24:01]Send response to host [20:24:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103794,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [20:24:01]free response buf [20:24:01]execute_script done [20:24:01]execute_script returns [20:24:01]free content buf [20:24:01]Sock 8.Close socket [20:24:01]Sock 8.Thread stoped [20:26:10]ConnectInit Can't connect to host [20:26:10]CommunicateWithHost connect error [20:26:10]CommunicateWithHost err = -1 [20:26:10]OFD Sender: Server communicate error [20:26:15]OFD Sender: Processing packet 103794 [packets to send 17, broken 16] [20:26:15]ProducePacketName [20:26:15]name=ofd_packets/00103794 [20:26:15]OFD Sender: To server: pG, [20:26:15]CommunicateWithHost lk.salyk.kg:30040 [20:26:15]ConnectInit lk.salyk.kg [20:26:15]Connected sock=8 [20:26:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 F8 1E 08 01 1E 25 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 4C 56 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 56 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8F 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B9 5A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4C 56 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 E0 00 00 00 F4 03 04 00 5B 3E 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 72 95 01 00 35 04 06 00 2B 32 28 20 D9 DD 43 2B 44 F1 63 65 DB 66 [20:26: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 39 33 4F 00 00 00 CF 2D 47 00 D4 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 39 33 10 04 04 00 72 95 01 00 F4 03 04 00 6E E5 72 66 B6 04 01 00 00 F9 31 59 E9 2C 32 E2 90 [20:26:15]CommunicateWithHost err = 0 [20:26:15]CheckOFDResponse [20:26:15]1017 (14) - 77093643461234 [20:26:15]1041 (16) - 0000000000875093 [20:26:15]1040 (4) - 103794 [20:26:15]1012 (4) - 19.06.2024 14:04 [20:26:15]1206 (1) - 0 [20:26:15]OFD Sender: Remove packet 103794 [20:26:15]ProducePacketName [20:26:15]name=ofd_packets/00103794 [20:26:15]NVStorageDeleteData [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:11]OFD Sender: No OFD packet to send [20:29:16]OFD Sender: No OFD packet to send [20:29:21]OFD Sender: No OFD packet to send [20:29:26]OFD Sender: No OFD packet to send [20:29:31]OFD Sender: No OFD packet to send [20:29:36]OFD Sender: No OFD packet to send [20:29:41]OFD Sender: No OFD packet to send [20:29:46]OFD Sender: No OFD packet to send [20:29:51]OFD Sender: No OFD packet to send [20:29:56]OFD Sender: No OFD packet to send [20:30:01]OFD Sender: No OFD packet to send [20:30:06]OFD Sender: No OFD packet to send [20:30:11]OFD Sender: No OFD packet to send [20:30:16]OFD Sender: No OFD packet to send [20:30:21]OFD Sender: No OFD packet to send [20:30:26]OFD Sender: No OFD packet to send [20:30:31]OFD Sender: No OFD packet to send [20:30:36]OFD Sender: No OFD packet to send [20:30:41]OFD Sender: No OFD packet to send [20:30:46]OFD Sender: No OFD packet to send [20:30:51]OFD Sender: No OFD packet to send [20:30:56]OFD Sender: No OFD packet to send [20:31:01]OFD Sender: No OFD packet to send [20:31:06]OFD Sender: No OFD packet to send [20:31:11]OFD Sender: No OFD packet to send [20:31:16]OFD Sender: No OFD packet to send [20:31:21]OFD Sender: No OFD packet to send [20:31:26]OFD Sender: No OFD packet to send [20:31:31]OFD Sender: No OFD packet to send [20:31:36]OFD Sender: No OFD packet to send [20:31:41]OFD Sender: No OFD packet to send [20:31:46]OFD Sender: No OFD packet to send [20:31:51]OFD Sender: No OFD packet to send [20:31:56]OFD Sender: No OFD packet to send [20:32:01]OFD Sender: No OFD packet to send [20:32:06]OFD Sender: No OFD packet to send [20:32:07]accept exits with 9 [20:32:07]New connection [20:32:07]New thread 3066797412 created [20:32:07]Thread 3066940772 joined [20:32:07]Waiting for new connection... [20:32:07] Sock 9.Parse request [20:32:07]Sock 9.Check first char [20:32:07]Sock 9.First char is OK [20:32:07]request: POST /json_proto HTTP/1.0 [20:32:07]Method: POST [20:32:07]URL: /json_proto [20:32:07]Method is POST - this is cgi request [20:32:07]url: /json_proto [20:32:07]query_string will be loaded in cgi processing [20:32:07]execute_cgi json_proto POST (null) [20:32:07]execute_cgi path=json_proto method=POST [20:32:07]POST find Content-Length [20:32:07]Host: 172.17.38.133:8080 [20:32:07]Content-Length: 682 [20:32:07]Content-Type: application/json [20:32:07] [20:32:07]POST finish read [20:32:07]Found Content-Length = 682 [20:32:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673091", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 22.600, "sum" : 1500.64, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:32:07]execute_script... [20:32: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)673091", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 22.600, "sum" : 1500.64, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:32:07]POST & json_proto [20:32:07]process_json_proto [20:32:07]json parsed OK: [20:32:07]protocol is kg_v1.0 [20:32:07]action value=close_receipt [20:32:07]process_action close_receipt [20:32:07]cmd_close_receipt [20:32:07]MH_GetDate [20:32:07]Write to MH i2c: F0 00 00 C9 12 CA [20:32:07]Write i2c OK [20:32:07]MH_I2C_Read... [20:32:07]Read from MH i2c: F0 [20:32:07]MH_I2C_Read... [20:32:07]Read from MH i2c: F0 09 00 [20:32:07]MH_I2C_Read... [20:32:07]Read from MH i2c: F0 09 00 C9 12 00 49 40 73 66 BD 8F 7C 64 61 [20:32:07]GetLastDocTimeStamp 1718828635 [20:32:07]current date 1718829129 [20:32:07]FM_GetShiftState [20:32:07]SAM_PROTO_GetShiftState [20:32:07]wFMCommunicate request_size=4 [20:32:07]MH_SAM_APDU [20:32:07]CAPDU: 80 13 01 00 [20:32:07]Write to MH i2c: E2 08 00 CA 12 80 13 01 00 00 00 00 00 59 [20:32:07]Write i2c OK [20:32:07]MH_I2C_Read... [20:32:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:32:08]Read from MH i2c: E2 [20:32:08]MH_I2C_Read... [20:32:08]Read from MH i2c: E2 0E 00 [20:32:08]MH_I2C_Read... [20:32:08]Read from MH i2c: E2 0E 00 CA 12 00 09 00 01 04 26 72 66 00 00 00 00 90 00 67 [20:32:08]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [20:32:08]wFMCommunicate OK [20:32:08]SAM_PROTO_GetShiftState done [20:32:08]FM_GetShiftState done [20:32:08]opened in 1718756868 [20:32:08]opened+sec_in_day 1718843268 [20:32:08]quantity*price = 150064 [20:32:08]sum+1 = 150065 [20:32:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.64 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.36 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 225 19.06.2024 20:32 Смена: 353 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103795 ФПД: 173335422454158 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T203209&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103795&fm=173335422454158&tin=02508201610067®Number=0000000000092785&sum=150000 [20:32:09]StoreToDocumentArchive [20:32:09]shift 353 fd 103795 [20:32:09]save to /storage/0353/doc_00103795 [20:32:09]save last doc name /storage/0353/doc_00103795 to /storage/kkm_last_doc_name [20:32:09]save OK [20:32:09]Clear old archive folders... [20:32:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:32:09]tlvbuf is 016EF1B0 [20:32:09]SAM_PROTO_ClearQueue [20:32:09]wFMCommunicate request_size=4 [20:32:09]MH_SAM_APDU [20:32:09]CAPDU: 80 09 00 00 [20:32:09]Write to MH i2c: E2 08 00 D7 12 80 09 00 00 00 00 00 00 5B [20:32:09]Write i2c OK [20:32:09]MH_I2C_Read... [20:32:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:32:09]Read from MH i2c: E2 [20:32:09]MH_I2C_Read... [20:32:09]Read from MH i2c: E2 03 00 [20:32:09]MH_I2C_Read... [20:32:09]Read from MH i2c: E2 03 00 D7 12 00 90 00 5D [20:32:09]RAPDU: 90 00 [20:32:09]wFMCommunicate OK [20:32:09]SAM_PROTO_ClearQueue done [20:32:09]KKMCreateOFDPacket [20:32:09]OFDProtocolAddRootSTLVToBuf [20:32:09]FM_MakeSignedData [20:32:09]FM_MakeSignedData [20:32:09]SAM_PROTO_SignData [20:32:09]wFMCommunicate request_size=4 [20:32:09]MH_SAM_APDU [20:32:09]CAPDU: 80 0D 01 02 [20:32:09]Write to MH i2c: E2 08 00 D8 12 80 0D 01 02 00 00 00 00 63 [20:32:09]Write i2c OK [20:32:09]MH_I2C_Read... [20:32:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:32:09]Read from MH i2c: E2 [20:32:09]MH_I2C_Read... [20:32:09]Read from MH i2c: E2 03 00 [20:32:09]MH_I2C_Read... [20:32:09]Read from MH i2c: E2 03 00 D8 12 00 90 00 5E [20:32:09]RAPDU: 90 00 [20:32:09]wFMCommunicate OK [20:32:09]wFMCommunicate request_size=255 [20:32:09]MH_SAM_APDU [20:32: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 48 58 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 30 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 40 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E1 00 00 00 F4 03 04 00 49 40 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 73 95 01 00 35 04 06 00 9D [20:32:09]Write to MH i2c: E2 02 01 D9 12 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 48 58 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 30 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 40 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E1 00 00 00 F4 03 04 00 49 40 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 73 95 01 00 35 04 06 00 9D 00 00 0C [20:32:09]Write i2c OK [20:32:09]MH_I2C_Read... [20:32:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:32:09]Read from MH i2c: E2 [20:32:09]MH_I2C_Read... [20:32:09]Read from MH i2c: E2 03 00 [20:32:09]MH_I2C_Read... [20:32:09]Read from MH i2c: E2 03 00 D9 12 00 90 00 5F [20:32:09]RAPDU: 90 00 [20:32:09]wFMCommunicate OK [20:32:09]wFMCommunicate request_size=10 [20:32:09]MH_SAM_APDU [20:32:09]CAPDU: 80 0D 02 02 05 A5 CC 48 49 8E [20:32:09]Write to MH i2c: E2 0D 00 DA 12 80 0D 02 02 05 00 A5 CC 48 49 8E 00 00 00 [20:32:09]Write i2c OK [20:32:09]MH_I2C_Read... [20:32:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:32:09]Read from MH i2c: E2 [20:32:09]MH_I2C_Read... [20:32:09]Read from MH i2c: E2 03 00 [20:32:09]MH_I2C_Read... [20:32:09]Read from MH i2c: E2 03 00 DA 12 00 90 00 60 [20:32:09]RAPDU: 90 00 [20:32:09]wFMCommunicate OK [20:32:09]wFMCommunicate request_size=4 [20:32:09]MH_SAM_APDU [20:32:09]CAPDU: 80 0D 03 02 [20:32:09]Write to MH i2c: E2 08 00 DB 12 80 0D 03 02 00 00 00 00 68 [20:32:09]Write i2c OK [20:32:09]MH_I2C_Read... [20:32:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:32:09]Read from MH i2c: E2 [20:32:09]MH_I2C_Read... [20:32:09]Read from MH i2c: E2 0B 00 [20:32:09]MH_I2C_Read... [20:32:09]Read from MH i2c: E2 0B 00 DB 12 00 63 7D 6A 96 14 89 27 4A 90 00 57 [20:32:09]RAPDU: 63 7D 6A 96 14 89 27 4A 90 00 [20:32:09]wFMCommunicate OK [20:32:09]SAM_PROTO_SignData done [20:32:09]FM_MakeSignedData done [20:32:09]CreateOFDProtocolMessage [20:32:09]wFMCommunicate request_size=4 [20:32:09]MH_SAM_APDU [20:32:09]CAPDU: 80 11 00 00 [20:32:09]Write to MH i2c: E2 08 00 DC 12 80 11 00 00 00 00 00 00 68 [20:32:09]Write i2c OK [20:32:09]MH_I2C_Read... [20:32:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:32:09]Read from MH i2c: E2 [20:32:09]MH_I2C_Read... [20:32:09]Read from MH i2c: E2 17 00 [20:32:09]MH_I2C_Read... [20:32:09]Read from MH i2c: E2 17 00 DC 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 BB [20:32:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [20:32:09]wFMCommunicate OK [20:32:09]CreateOFDProtocolMessage done [20:32:09]OFDSenderStorePacket 103795 [20:32:09]StoreOFDPacket docnum=103795 [20:32:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 3F 3F 07 01 45 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 48 58 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 30 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 40 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E1 00 00 00 F4 03 04 00 49 40 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 73 95 01 00 35 04 06 00 9D A5 CC 48 49 8E 63 7D 6A 96 14 89 27 4A [20:32:09]CheckFolder [20:32:09]dirname=/storage/ofd_packets [20:32:09]CheckFolder done [20:32:09]ProducePacketName [20:32:09]name=ofd_packets/00103795 [20:32:09]NVStorageSaveData ofd_packets/00103795 [20:32:09]File name is /storage/ofd_packets/00103795 [20:32:09]Write 301 bytes [20:32:09]NVStorageSaveData done [20:32:09]OFDSenderStorePacket done [20:32:09]KKMCreateOFDPacket done [20:32:09]NVStorageSaveData kkm_last_timestamp [20:32:09]File name is /storage/kkm_last_timestamp [20:32:09]Write 4 bytes [20:32:09]NVStorageSaveData done [20:32:09]ExternCall_PrintAddStr [20:32:09]wPrintStart [20:32:09]Write to MH i2c: 01 00 00 DD 12 EF [20:32:09]Write i2c OK [20:32:09]MH_I2C_Read... [20:32:09]Read from MH i2c: 01 [20:32:09]MH_I2C_Read... [20:32:09]Read from MH i2c: 01 07 00 [20:32:09]MH_I2C_Read... [20:32:09]Read from MH i2c: 01 07 00 DD 12 00 00 00 00 00 FF 0F 04 [20:32:09]RasterBufferAndPrint [20:32:09]line Счет N : (1)673091 [20:32:09]line ИНН: 02508201610067 [20:32:09]line Контрольно-Кассовый Чек [20:32:09]line ПРОДАЖА [20:32:09]line ТРК (МРК, ГНК) : 42 [20:32:09]line Товар: 2710124130 [20:32:09]line Аи-92-К-5 [20:32:09]line 22.600 * 66.40 [20:32:09]line = 1500.64 [20:32:09]line НДС 12% НСП 1% [20:32:09]line > о реализуемом товаре [20:32:09]line ОКРУГЛЕНИЕ: -0.64 [20:32:09]line ИТОГО: 1500.00 [20:32:09]line Внесено: 1500.00 [20:32:09]line СДАЧА: 0.00 [20:32:09]line НСП 1% : 13.28 [20:32:09]line НДС 12% : 159.36 [20:32:09]line Наличными: 1500.00 [20:32:09]line Безнал.: 0.00 [20:32:09]line Место: АЗС № 120 "Партнер Нефть" [20:32:09]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [20:32:09]line СНО: Общий режим [20:32:09]line Чек 225 19.06.2024 20:32 [20:32:09]line Смена: 353 ФФД: 1.0 [20:32:09]line ЗНМ: 0300000164 [20:32:09]line РНМ: 0000000000092785 [20:32:09]line Версия ККМ: 001 [20:32:09]line ФМ: 0000000000875093 [20:32:09]line ФД: 103795 [20:32:09]line ФПД: 173335422454158 [20:32:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T203209&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103795&fm=173335422454158&tin=02508201610067®Number=0000000000092785&sum=150000 [20:32:10]OFD Sender: Processing packet 103795 [packets to send 17, broken 16] [20:32:10]ProducePacketName [20:32:10]name=ofd_packets/00103795 [20:32:10]OFD Sender: To server: pG, [20:32:10]CommunicateWithHost lk.salyk.kg:30040 [20:32:10]ConnectInit lk.salyk.kg [20:32:10]written 0, free lines is 4095 [20:32:10]Connected sock=10 [20:32: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 39 33 0F 01 00 00 3F 3F 07 01 45 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 48 58 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 30 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 40 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E1 00 00 00 F4 03 04 00 49 40 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 73 95 01 00 35 04 06 00 9D A5 CC 48 49 8E 63 7D 6A 96 14 89 27 4A [20:32: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 39 33 4F 00 00 00 FE 52 47 00 9F 2A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 73 95 01 00 F4 03 04 00 D1 E6 72 66 B6 04 01 00 00 31 CC 1E 81 1E 96 70 30 [20:32:10]CommunicateWithHost err = 0 [20:32:10]CheckOFDResponse [20:32:10]1017 (14) - 77093643461234 [20:32:10]1041 (16) - 0000000000875093 [20:32:10]1040 (4) - 103795 [20:32:10]1012 (4) - 19.06.2024 14:10 [20:32:10]1206 (1) - 0 [20:32:10]OFD Sender: Remove packet 103795 [20:32:10]ProducePacketName [20:32:10]name=ofd_packets/00103795 [20:32:10]NVStorageDeleteData [20:32:10]Write to MH i2c: 01 00 00 08 13 1B [20:32:10]Write i2c OK [20:32:10]MH_I2C_Read... [20:32:10]Read from MH i2c: 01 [20:32:10]MH_I2C_Read... [20:32:10]Read from MH i2c: 01 07 00 [20:32:10]MH_I2C_Read... [20:32:10]Read from MH i2c: 01 07 00 08 13 00 00 00 00 00 EC 0C 1A [20:32:10]RasterBufferAndPrint [20:32:10]line [20:32:10]line [20:32:10]line [20:32:10]line [20:32:10]line [20:32:10]written 0, free lines is 3314 [20:32:10]MH_Cut [20:32:10]Write to MH i2c: D1 01 00 0F 13 01 F4 [20:32:10]Write i2c OK [20:32:10]MH_I2C_Read... [20:32:10]Read from MH i2c: D1 [20:32:10]MH_I2C_Read... [20:32:10]Read from MH i2c: D1 01 00 [20:32:10]MH_I2C_Read... [20:32:10]Read from MH i2c: D1 01 00 0F 13 00 F3 [20:32:10]Write to MH i2c: 01 00 00 10 13 23 [20:32:10]Write i2c OK [20:32:10]MH_I2C_Read... [20:32:10]OFD Sender: No OFD packet to send [20:32:11]*** Cut start [20:32:11]*** Partial cut [20:32:11]*** CUTSNS_PIN = 1 [20:32:11]*** CUTSNS_PIN = 0 [20:32:11]*** Brake cut motor [20:32:11]Read from MH i2c: 01 [20:32:11]MH_I2C_Read... [20:32:11]*** Stop cut motor [20:32:11]*** Cut end [20:32:11]Read from MH i2c: 01 07 00 [20:32:11]MH_I2C_Read... [20:32:11]Read from MH i2c: 01 07 00 10 13 00 00 00 00 00 FF 0F 38 [20:32:11]process_action close_receipt done [20:32:11]requested_data is exist [20:32:11]produce_requested_data [20:32:11]requested_item fm.sn is exist - process it [20:32:11]wFMCommunicate request_size=4 [20:32:11]MH_SAM_APDU [20:32:11]CAPDU: 80 11 00 00 [20:32:11]Write to MH i2c: E2 08 00 11 13 80 11 00 00 00 00 00 00 9E [20:32:11]Write i2c OK [20:32:11]MH_I2C_Read... [20:32:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:32:11]Read from MH i2c: E2 [20:32:11]MH_I2C_Read... [20:32:11]Read from MH i2c: E2 17 00 [20:32:11]MH_I2C_Read... [20:32:11]Read from MH i2c: E2 17 00 11 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 F1 [20:32:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [20:32:11]wFMCommunicate OK [20:32:11]requested_item fd.num is exist - process it [20:32:11]SAM_PROTO_GetFieldsCounters [20:32:11]wFMCommunicate request_size=4 [20:32:11]MH_SAM_APDU [20:32:11]CAPDU: 80 13 00 00 [20:32:11]Write to MH i2c: E2 08 00 12 13 80 13 00 00 00 00 00 00 A1 [20:32:11]Write i2c OK [20:32:11]MH_I2C_Read... [20:32:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:32:12]Read from MH i2c: E2 [20:32:12]MH_I2C_Read... [20:32:12]Read from MH i2c: E2 62 00 [20:32:12]MH_I2C_Read... [20:32:12]Read from MH i2c: E2 62 00 12 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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 73 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 E1 00 00 00 5E 04 04 00 E1 00 00 00 57 04 04 00 E2 00 00 00 19 04 04 00 00 00 00 00 90 00 D6 [20:32: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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 73 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 E1 00 00 00 5E 04 04 00 E1 00 00 00 57 04 04 00 E2 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:32:12]wFMCommunicate OK [20:32:12]SAM_PROTO_GetFieldsCounters done [20:32:12]requested_item shift.num is exist - process it [20:32:12]requested_item shift.opened is exist - process it [20:32:12]req_shift_opened [20:32:12]FM_GetShiftState [20:32:12]SAM_PROTO_GetShiftState [20:32:12]wFMCommunicate request_size=4 [20:32:12]MH_SAM_APDU [20:32:12]CAPDU: 80 13 01 00 [20:32:12]Write to MH i2c: E2 08 00 13 13 80 13 01 00 00 00 00 00 A3 [20:32:12]Write i2c OK [20:32:12]MH_I2C_Read... [20:32:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:32:12]Read from MH i2c: E2 [20:32:12]MH_I2C_Read... [20:32:12]Read from MH i2c: E2 0E 00 [20:32:12]MH_I2C_Read... [20:32:12]Read from MH i2c: E2 0E 00 13 13 00 09 00 01 04 26 72 66 00 00 00 00 90 00 B1 [20:32:12]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [20:32:12]wFMCommunicate OK [20:32:12]SAM_PROTO_GetShiftState done [20:32:12]FM_GetShiftState done [20:32:12]req_shift_opened done [20:32:12]requested_item shift.open_date is exist - process it [20:32:12]req_shift_open_date [20:32:12]req_shift_open_date done [20:32:12]produce_requested_data done [20:32:12]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103795,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [20:32:12]process_action_free close_receipt [20:32:12]json_value_free [20:32:12]json_value_free done [20:32:12]process_json_proto returns [20:32:12]Send response to host [20:32:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103795,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [20:32:12]free response buf [20:32:12]execute_script done [20:32:12]execute_script returns [20:32:12]free content buf [20:32:12]Sock 9.Close socket [20:32:12]Sock 9.Thread stoped [20:32:15]OFD Sender: No OFD packet to send [20:32:20]OFD Sender: No OFD packet to send [20:32:25]OFD Sender: No OFD packet to send [20:32:30]OFD Sender: No OFD packet to send [20:32:35]OFD Sender: No OFD packet to send [20:32:40]OFD Sender: No OFD packet to send [20:32:45]OFD Sender: No OFD packet to send [20:32:50]OFD Sender: No OFD packet to send [20:32:55]OFD Sender: No OFD packet to send [20:33:00]OFD Sender: No OFD packet to send [20:33:05]OFD Sender: No OFD packet to send [20:33:10]OFD Sender: No OFD packet to send [20:33:15]OFD Sender: No OFD packet to send [20:33:20]OFD Sender: No OFD packet to send [20:33:25]OFD Sender: No OFD packet to send [20:33:30]OFD Sender: No OFD packet to send [20:33:35]OFD Sender: No OFD packet to send [20:33:40]OFD Sender: No OFD packet to send [20:33:45]OFD Sender: No OFD packet to send [20:33:50]OFD Sender: No OFD packet to send [20:33:55]OFD Sender: No OFD packet to send [20:34:00]OFD Sender: No OFD packet to send [20:34:06]OFD Sender: No OFD packet to send [20:34:11]OFD Sender: No OFD packet to send [20:34:16]OFD Sender: No OFD packet to send [20:34:21]OFD Sender: No OFD packet to send [20:34:26]OFD Sender: No OFD packet to send [20:34:31]OFD Sender: No OFD packet to send [20:34:36]OFD Sender: No OFD packet to send [20:34:41]OFD Sender: No OFD packet to send [20:34:46]OFD Sender: No OFD packet to send [20:34:51]OFD Sender: No OFD packet to send [20:34:56]OFD Sender: No OFD packet to send [20:35:01]OFD Sender: No OFD packet to send [20:35:06]OFD Sender: No OFD packet to send [20:35:11]OFD Sender: No OFD packet to send [20:35:16]OFD Sender: No OFD packet to send [20:35:21]OFD Sender: No OFD packet to send [20:35:26]OFD Sender: No OFD packet to send [20:35:31]OFD Sender: No OFD packet to send [20:35:36]OFD Sender: No OFD packet to send [20:35:41]OFD Sender: No OFD packet to send [20:35:46]OFD Sender: No OFD packet to send [20:35:51]OFD Sender: No OFD packet to send [20:35:56]OFD Sender: No OFD packet to send [20:36:01]OFD Sender: No OFD packet to send [20:36:06]OFD Sender: No OFD packet to send [20:36:11]OFD Sender: No OFD packet to send [20:36:16]OFD Sender: No OFD packet to send [20:36:21]OFD Sender: No OFD packet to send [20:36:26]OFD Sender: No OFD packet to send [20:36:31]OFD Sender: No OFD packet to send [20:36:36]OFD Sender: No OFD packet to send [20:36:41]OFD Sender: No OFD packet to send [20:36:46]OFD Sender: No OFD packet to send [20:36:51]OFD Sender: No OFD packet to send [20:36:56]OFD Sender: No OFD packet to send [20:37:01]OFD Sender: No OFD packet to send [20:37:06]OFD Sender: No OFD packet to send [20:37:11]OFD Sender: No OFD packet to send [20:37:16]OFD Sender: No OFD packet to send [20:37:21]OFD Sender: No OFD packet to send [20:37:26]OFD Sender: No OFD packet to send [20:37:31]OFD Sender: No OFD packet to send [20:37:36]OFD Sender: No OFD packet to send [20:37:41]OFD Sender: No OFD packet to send [20:37:46]OFD Sender: No OFD packet to send [20:37:51]OFD Sender: No OFD packet to send [20:37:56]OFD Sender: No OFD packet to send [20:38:01]OFD Sender: No OFD packet to send [20:38:06]OFD Sender: No OFD packet to send [20:38:11]OFD Sender: No OFD packet to send [20:38:16]OFD Sender: No OFD packet to send [20:38:21]OFD Sender: No OFD packet to send [20:38:26]OFD Sender: No OFD packet to send [20:38:31]OFD Sender: No OFD packet to send [20:38:36]OFD Sender: No OFD packet to send [20:38:41]OFD Sender: No OFD packet to send [20:38:46]OFD Sender: No OFD packet to send [20:38:51]OFD Sender: No OFD packet to send [20:38:56]OFD Sender: No OFD packet to send [20:39:01]OFD Sender: No OFD packet to send [20:39:06]OFD Sender: No OFD packet to send [20:39:11]OFD Sender: No OFD packet to send [20:39:16]OFD Sender: No OFD packet to send [20:39:21]OFD Sender: No OFD packet to send [20:39:26]OFD Sender: No OFD packet to send [20:39:31]OFD Sender: No OFD packet to send [20:39:36]OFD Sender: No OFD packet to send [20:39:41]OFD Sender: No OFD packet to send [20:39:46]OFD Sender: No OFD packet to send [20:39:51]OFD Sender: No OFD packet to send [20:39:56]OFD Sender: No OFD packet to send [20:40:01]OFD Sender: No OFD packet to send [20:40:06]OFD Sender: No OFD packet to send [20:40:11]OFD Sender: No OFD packet to send [20:40:16]OFD Sender: No OFD packet to send [20:40:21]OFD Sender: No OFD packet to send [20:40:26]OFD Sender: No OFD packet to send [20:40:31]OFD Sender: No OFD packet to send [20:40:36]OFD Sender: No OFD packet to send [20:40:41]OFD Sender: No OFD packet to send [20:40:46]OFD Sender: No OFD packet to send [20:40:51]OFD Sender: No OFD packet to send [20:40:56]OFD Sender: No OFD packet to send [20:41:01]OFD Sender: No OFD packet to send [20:41:06]OFD Sender: No OFD packet to send [20:41:11]OFD Sender: No OFD packet to send [20:41:16]OFD Sender: No OFD packet to send [20:41:21]OFD Sender: No OFD packet to send [20:41:26]OFD Sender: No OFD packet to send [20:41:31]OFD Sender: No OFD packet to send [20:41:36]OFD Sender: No OFD packet to send [20:41:41]OFD Sender: No OFD packet to send [20:41:46]OFD Sender: No OFD packet to send [20:41:51]OFD Sender: No OFD packet to send [20:41:56]OFD Sender: No OFD packet to send [20:42:01]OFD Sender: No OFD packet to send [20:42:06]OFD Sender: No OFD packet to send [20:42:11]OFD Sender: No OFD packet to send [20:42:16]OFD Sender: No OFD packet to send [20:42:21]OFD Sender: No OFD packet to send [20:42:26]OFD Sender: No OFD packet to send [20:42:31]OFD Sender: No OFD packet to send [20:42:36]OFD Sender: No OFD packet to send [20:42:41]OFD Sender: No OFD packet to send [20:42:46]OFD Sender: No OFD packet to send [20:42:51]OFD Sender: No OFD packet to send [20:42:56]OFD Sender: No OFD packet to send [20:43:01]OFD Sender: No OFD packet to send [20:43:06]OFD Sender: No OFD packet to send [20:43:11]OFD Sender: No OFD packet to send [20:43:16]OFD Sender: No OFD packet to send [20:43:21]OFD Sender: No OFD packet to send [20:43:26]OFD Sender: No OFD packet to send [20:43:31]OFD Sender: No OFD packet to send [20:43:36]OFD Sender: No OFD packet to send [20:43:41]OFD Sender: No OFD packet to send [20:43:46]OFD Sender: No OFD packet to send [20:43:51]OFD Sender: No OFD packet to send [20:43:56]OFD Sender: No OFD packet to send [20:44:01]OFD Sender: No OFD packet to send [20:44:06]OFD Sender: No OFD packet to send [20:44:11]OFD Sender: No OFD packet to send [20:44:16]OFD Sender: No OFD packet to send [20:44:21]OFD Sender: No OFD packet to send [20:44:26]OFD Sender: No OFD packet to send [20:44:31]OFD Sender: No OFD packet to send [20:44:36]OFD Sender: No OFD packet to send [20:44:41]OFD Sender: No OFD packet to send [20:44:46]OFD Sender: No OFD packet to send [20:44:51]OFD Sender: No OFD packet to send [20:44:56]OFD Sender: No OFD packet to send [20:45:01]OFD Sender: No OFD packet to send [20:45:06]OFD Sender: No OFD packet to send [20:45:11]OFD Sender: No OFD packet to send [20:45:16]OFD Sender: No OFD packet to send [20:45:21]OFD Sender: No OFD packet to send [20:45:26]OFD Sender: No OFD packet to send [20:45:31]OFD Sender: No OFD packet to send [20:45:36]OFD Sender: No OFD packet to send [20:45:41]OFD Sender: No OFD packet to send [20:45:46]OFD Sender: No OFD packet to send [20:45:51]OFD Sender: No OFD packet to send [20:45:56]OFD Sender: No OFD packet to send [20:46:01]OFD Sender: No OFD packet to send [20:46:06]OFD Sender: No OFD packet to send [20:46:11]OFD Sender: No OFD packet to send [20:46:16]OFD Sender: No OFD packet to send [20:46:21]OFD Sender: No OFD packet to send [20:46:26]OFD Sender: No OFD packet to send [20:46:31]OFD Sender: No OFD packet to send [20:46:36]OFD Sender: No OFD packet to send [20:46:41]OFD Sender: No OFD packet to send [20:46:46]OFD Sender: No OFD packet to send [20:46:51]OFD Sender: No OFD packet to send [20:46:56]OFD Sender: No OFD packet to send [20:47:01]OFD Sender: No OFD packet to send [20:47:06]OFD Sender: No OFD packet to send [20:47:11]OFD Sender: No OFD packet to send [20:47:16]OFD Sender: No OFD packet to send [20:47:21]OFD Sender: No OFD packet to send [20:47:26]OFD Sender: No OFD packet to send [20:47:31]OFD Sender: No OFD packet to send [20:47:36]OFD Sender: No OFD packet to send [20:47:41]OFD Sender: No OFD packet to send [20:47:46]OFD Sender: No OFD packet to send [20:47:51]OFD Sender: No OFD packet to send [20:47:56]OFD Sender: No OFD packet to send [20:48:01]OFD Sender: No OFD packet to send [20:48:06]OFD Sender: No OFD packet to send [20:48:11]OFD Sender: No OFD packet to send [20:48:16]OFD Sender: No OFD packet to send [20:48:21]OFD Sender: No OFD packet to send [20:48:26]OFD Sender: No OFD packet to send [20:48:31]OFD Sender: No OFD packet to send [20:48:36]OFD Sender: No OFD packet to send [20:48:41]OFD Sender: No OFD packet to send [20:48:46]OFD Sender: No OFD packet to send [20:48:51]OFD Sender: No OFD packet to send [20:48:56]OFD Sender: No OFD packet to send [20:49:01]OFD Sender: No OFD packet to send [20:49:06]OFD Sender: No OFD packet to send [20:49:11]OFD Sender: No OFD packet to send [20:49:16]OFD Sender: No OFD packet to send [20:49:21]OFD Sender: No OFD packet to send [20:49:26]OFD Sender: No OFD packet to send [20:49:31]OFD Sender: No OFD packet to send [20:49:36]OFD Sender: No OFD packet to send [20:49:41]OFD Sender: No OFD packet to send [20:49:46]OFD Sender: No OFD packet to send [20:49:51]OFD Sender: No OFD packet to send [20:49:56]OFD Sender: No OFD packet to send [20:50:01]OFD Sender: No OFD packet to send [20:50:06]OFD Sender: No OFD packet to send [20:50:11]OFD Sender: No OFD packet to send [20:50:16]OFD Sender: No OFD packet to send [20:50:21]OFD Sender: No OFD packet to send [20:50:26]OFD Sender: No OFD packet to send [20:50:31]OFD Sender: No OFD packet to send [20:50:36]OFD Sender: No OFD packet to send [20:50:41]OFD Sender: No OFD packet to send [20:50:46]OFD Sender: No OFD packet to send [20:50:51]OFD Sender: No OFD packet to send [20:50:56]OFD Sender: No OFD packet to send [20:51:01]OFD Sender: No OFD packet to send [20:51:06]OFD Sender: No OFD packet to send [20:51:11]OFD Sender: No OFD packet to send [20:51:16]OFD Sender: No OFD packet to send [20:51:21]OFD Sender: No OFD packet to send [20:51:26]OFD Sender: No OFD packet to send [20:51:31]OFD Sender: No OFD packet to send [20:51:36]OFD Sender: No OFD packet to send [20:51:41]OFD Sender: No OFD packet to send [20:51:46]OFD Sender: No OFD packet to send [20:51:51]OFD Sender: No OFD packet to send [20:51:56]OFD Sender: No OFD packet to send [20:52:01]OFD Sender: No OFD packet to send [20:52:06]OFD Sender: No OFD packet to send [20:52:11]OFD Sender: No OFD packet to send [20:52:16]OFD Sender: No OFD packet to send [20:52:21]OFD Sender: No OFD packet to send [20:52:26]OFD Sender: No OFD packet to send [20:52:31]OFD Sender: No OFD packet to send [20:52:36]OFD Sender: No OFD packet to send [20:52:41]OFD Sender: No OFD packet to send [20:52:46]OFD Sender: No OFD packet to send [20:52:51]OFD Sender: No OFD packet to send [20:52:56]OFD Sender: No OFD packet to send [20:53:01]OFD Sender: No OFD packet to send [20:53:06]OFD Sender: No OFD packet to send [20:53:10]accept exits with 8 [20:53:10]New connection [20:53:10]New thread 3066940772 created [20:53:10]Thread 3066797412 joined [20:53:10]Waiting for new connection... [20:53:10] Sock 8.Parse request [20:53:10]Sock 8.Check first char [20:53:10]Sock 8.First char is OK [20:53:10]request: POST /json_proto HTTP/1.0 [20:53:10]Method: POST [20:53:10]URL: /json_proto [20:53:10]Method is POST - this is cgi request [20:53:10]url: /json_proto [20:53:10]query_string will be loaded in cgi processing [20:53:10]execute_cgi json_proto POST (null) [20:53:10]execute_cgi path=json_proto method=POST [20:53:10]POST find Content-Length [20:53:10]Host: 172.17.38.133:8080 [20:53:10]Content-Length: 677 [20:53:10]Content-Type: application/json [20:53:10] [20:53:10]POST finish read [20:53:10]Found Content-Length = 677 [20:53:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673092", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 3.020, "sum" : 200.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:53:10]execute_script... [20:53:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673092", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 3.020, "sum" : 200.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:53:10]POST & json_proto [20:53:10]process_json_proto [20:53:10]json parsed OK: [20:53:10]protocol is kg_v1.0 [20:53:10]action value=close_receipt [20:53:10]process_action close_receipt [20:53:10]cmd_close_receipt [20:53:10]MH_GetDate [20:53:10]Write to MH i2c: F0 00 00 14 13 16 [20:53:10]Write i2c OK [20:53:10]MH_I2C_Read... [20:53:10]Read from MH i2c: F0 [20:53:10]MH_I2C_Read... [20:53:10]Read from MH i2c: F0 09 00 [20:53:10]MH_I2C_Read... [20:53:10]Read from MH i2c: F0 09 00 14 13 00 37 45 73 66 BD 8F 7C 64 A0 [20:53:10]GetLastDocTimeStamp 1718829129 [20:53:10]current date 1718830391 [20:53:10]FM_GetShiftState [20:53:10]SAM_PROTO_GetShiftState [20:53:10]wFMCommunicate request_size=4 [20:53:10]MH_SAM_APDU [20:53:10]CAPDU: 80 13 01 00 [20:53:10]Write to MH i2c: E2 08 00 15 13 80 13 01 00 00 00 00 00 A5 [20:53:10]Write i2c OK [20:53:10]MH_I2C_Read... [20:53:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:53:10]Read from MH i2c: E2 [20:53:10]MH_I2C_Read... [20:53:10]Read from MH i2c: E2 0E 00 [20:53:10]MH_I2C_Read... [20:53:10]Read from MH i2c: E2 0E 00 15 13 00 09 00 01 04 26 72 66 00 00 00 00 90 00 B3 [20:53:10]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [20:53:10]wFMCommunicate OK [20:53:10]SAM_PROTO_GetShiftState done [20:53:10]FM_GetShiftState done [20:53:10]opened in 1718756868 [20:53:10]opened+sec_in_day 1718843268 [20:53:10]quantity*price = 20052 [20:53:10]sum+1 = 20054 [20:53:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.53 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.29 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 226 19.06.2024 20:53 Смена: 353 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103796 ФПД: 70566051639131 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T205311&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103796&fm=70566051639131&tin=02508201610067®Number=0000000000092785&sum=20000 [20:53:11]StoreToDocumentArchive [20:53:11]shift 353 fd 103796 [20:53:11]save to /storage/0353/doc_00103796 [20:53:11]save last doc name /storage/0353/doc_00103796 to /storage/kkm_last_doc_name [20:53:11]save OK [20:53:11]Clear old archive folders... [20:53:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:53:11]tlvbuf is 0169A7D0 [20:53:11]SAM_PROTO_ClearQueue [20:53:11]wFMCommunicate request_size=4 [20:53:11]MH_SAM_APDU [20:53:11]CAPDU: 80 09 00 00 [20:53:11]Write to MH i2c: E2 08 00 22 13 80 09 00 00 00 00 00 00 A7 [20:53:11]Write i2c OK [20:53:11]MH_I2C_Read... [20:53:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:53:11]Read from MH i2c: E2 [20:53:11]MH_I2C_Read... [20:53:11]Read from MH i2c: E2 03 00 [20:53:11]MH_I2C_Read... [20:53:11]Read from MH i2c: E2 03 00 22 13 00 90 00 A9 [20:53:11]RAPDU: 90 00 [20:53:11]wFMCommunicate OK [20:53:11]SAM_PROTO_ClearQueue done [20:53:11]KKMCreateOFDPacket [20:53:11]OFDProtocolAddRootSTLVToBuf [20:53:11]FM_MakeSignedData [20:53:11]FM_MakeSignedData [20:53:11]SAM_PROTO_SignData [20:53:11]wFMCommunicate request_size=4 [20:53:11]MH_SAM_APDU [20:53:11]CAPDU: 80 0D 01 02 [20:53:11]Write to MH i2c: E2 08 00 23 13 80 0D 01 02 00 00 00 00 AF [20:53:11]Write i2c OK [20:53:11]MH_I2C_Read... [20:53:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:53:11]Read from MH i2c: E2 [20:53:11]MH_I2C_Read... [20:53:11]Read from MH i2c: E2 03 00 [20:53:11]MH_I2C_Read... [20:53:11]Read from MH i2c: E2 03 00 23 13 00 90 00 AA [20:53:11]RAPDU: 90 00 [20:53:11]wFMCommunicate OK [20:53:11]wFMCommunicate request_size=255 [20:53:11]MH_SAM_APDU [20:53:11]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E2 00 00 00 F4 03 04 00 37 45 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 74 95 01 00 35 04 06 00 40 [20:53:11]Write to MH i2c: E2 02 01 24 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 CC 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E2 00 00 00 F4 03 04 00 37 45 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 74 95 01 00 35 04 06 00 40 00 00 0B [20:53:11]Write i2c OK [20:53:11]MH_I2C_Read... [20:53:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:53:11]Read from MH i2c: E2 [20:53:11]MH_I2C_Read... [20:53:11]Read from MH i2c: E2 03 00 [20:53:11]MH_I2C_Read... [20:53:11]Read from MH i2c: E2 03 00 24 13 00 90 00 AB [20:53:11]RAPDU: 90 00 [20:53:11]wFMCommunicate OK [20:53:11]wFMCommunicate request_size=10 [20:53:11]MH_SAM_APDU [20:53:11]CAPDU: 80 0D 02 02 05 2D F0 70 EF 5B [20:53:11]Write to MH i2c: E2 0D 00 25 13 80 0D 02 02 05 00 2D F0 70 EF 5B 00 00 93 [20:53:11]Write i2c OK [20:53:11]MH_I2C_Read... [20:53:11]OFD Sender: No OFD packet to send [20:53:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:53:11]Read from MH i2c: E2 [20:53:11]MH_I2C_Read... [20:53:11]Read from MH i2c: E2 03 00 [20:53:11]MH_I2C_Read... [20:53:11]Read from MH i2c: E2 03 00 25 13 00 90 00 AC [20:53:11]RAPDU: 90 00 [20:53:11]wFMCommunicate OK [20:53:11]wFMCommunicate request_size=4 [20:53:11]MH_SAM_APDU [20:53:11]CAPDU: 80 0D 03 02 [20:53:11]Write to MH i2c: E2 08 00 26 13 80 0D 03 02 00 00 00 00 B4 [20:53:11]Write i2c OK [20:53:11]MH_I2C_Read... [20:53:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:53:12]Read from MH i2c: E2 [20:53:12]MH_I2C_Read... [20:53:12]Read from MH i2c: E2 0B 00 [20:53:12]MH_I2C_Read... [20:53:12]Read from MH i2c: E2 0B 00 26 13 00 86 17 4D DA 7F 6E 6A 33 90 00 03 [20:53:12]RAPDU: 86 17 4D DA 7F 6E 6A 33 90 00 [20:53:12]wFMCommunicate OK [20:53:12]SAM_PROTO_SignData done [20:53:12]FM_MakeSignedData done [20:53:12]CreateOFDProtocolMessage [20:53:12]wFMCommunicate request_size=4 [20:53:12]MH_SAM_APDU [20:53:12]CAPDU: 80 11 00 00 [20:53:12]Write to MH i2c: E2 08 00 27 13 80 11 00 00 00 00 00 00 B4 [20:53:12]Write i2c OK [20:53:12]MH_I2C_Read... [20:53:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:53:12]Read from MH i2c: E2 [20:53:12]MH_I2C_Read... [20:53:12]Read from MH i2c: E2 17 00 [20:53:12]MH_I2C_Read... [20:53:12]Read from MH i2c: E2 17 00 27 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 07 [20:53:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [20:53:12]wFMCommunicate OK [20:53:12]CreateOFDProtocolMessage done [20:53:12]OFDSenderStorePacket 103796 [20:53:12]StoreOFDPacket docnum=103796 [20:53:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 15 5E 07 01 78 B6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E2 00 00 00 F4 03 04 00 37 45 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 74 95 01 00 35 04 06 00 40 2D F0 70 EF 5B 86 17 4D DA 7F 6E 6A 33 [20:53:12]CheckFolder [20:53:12]dirname=/storage/ofd_packets [20:53:12]CheckFolder done [20:53:12]ProducePacketName [20:53:12]name=ofd_packets/00103796 [20:53:12]NVStorageSaveData ofd_packets/00103796 [20:53:12]File name is /storage/ofd_packets/00103796 [20:53:12]Write 301 bytes [20:53:12]NVStorageSaveData done [20:53:12]OFDSenderStorePacket done [20:53:12]KKMCreateOFDPacket done [20:53:12]NVStorageSaveData kkm_last_timestamp [20:53:12]File name is /storage/kkm_last_timestamp [20:53:12]Write 4 bytes [20:53:12]NVStorageSaveData done [20:53:12]ExternCall_PrintAddStr [20:53:12]wPrintStart [20:53:12]Write to MH i2c: 01 00 00 28 13 3B [20:53:12]Write i2c OK [20:53:12]MH_I2C_Read... [20:53:12]Read from MH i2c: 01 [20:53:12]MH_I2C_Read... [20:53:12]Read from MH i2c: 01 07 00 [20:53:12]MH_I2C_Read... [20:53:12]Read from MH i2c: 01 07 00 28 13 00 00 00 00 00 FF 0F 50 [20:53:12]RasterBufferAndPrint [20:53:12]line Счет N : (1)673092 [20:53:12]line ИНН: 02508201610067 [20:53:12]line Контрольно-Кассовый Чек [20:53:12]line ПРОДАЖА [20:53:12]line ТРК (МРК, ГНК) : 32 [20:53:12]line Товар: 2710124130 [20:53:12]line Аи-92-К-5 [20:53:12]line 3.020 * 66.40 [20:53:12]line = 200.53 [20:53:12]line НДС 12% НСП 1% [20:53:12]line > о реализуемом товаре [20:53:12]line ОКРУГЛЕНИЕ: -0.53 [20:53:12]line ИТОГО: 200.00 [20:53:12]line Внесено: 200.00 [20:53:12]line СДАЧА: 0.00 [20:53:12]line НСП 1% : 1.77 [20:53:12]line НДС 12% : 21.29 [20:53:12]line Наличными: 200.00 [20:53:12]line Безнал.: 0.00 [20:53:12]line Место: АЗС № 120 "Партнер Нефть" [20:53:12]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [20:53:12]line СНО: Общий режим [20:53:12]line Чек 226 19.06.2024 20:53 [20:53:12]line Смена: 353 ФФД: 1.0 [20:53:12]line ЗНМ: 0300000164 [20:53:12]line РНМ: 0000000000092785 [20:53:12]line Версия ККМ: 001 [20:53:12]line ФМ: 0000000000875093 [20:53:12]line ФД: 103796 [20:53:12]line ФПД: 70566051639131 [20:53:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T205311&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103796&fm=70566051639131&tin=02508201610067®Number=0000000000092785&sum=20000 [20:53:12]OFD Sender: Processing packet 103796 [packets to send 17, broken 16] [20:53:12]ProducePacketName [20:53:12]name=ofd_packets/00103796 [20:53:12]OFD Sender: To server: pG, [20:53:12]CommunicateWithHost lk.salyk.kg:30040 [20:53:12]ConnectInit lk.salyk.kg [20:53:12]written 0, free lines is 4095 [20:53:12]Connected sock=10 [20:53:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 15 5E 07 01 78 B6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E2 00 00 00 F4 03 04 00 37 45 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 74 95 01 00 35 04 06 00 40 2D F0 70 EF 5B 86 17 4D DA 7F 6E 6A 33 [20:53: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 39 33 4F 00 00 00 23 B9 47 00 B9 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 39 33 10 04 04 00 74 95 01 00 F4 03 04 00 BF EB 72 66 B6 04 01 00 00 AC 75 79 AE 4E 1C 6F 45 [20:53:12]CommunicateWithHost err = 0 [20:53:12]CheckOFDResponse [20:53:12]1017 (14) - 77093643461234 [20:53:12]1041 (16) - 0000000000875093 [20:53:12]1040 (4) - 103796 [20:53:12]1012 (4) - 19.06.2024 14:31 [20:53:12]1206 (1) - 0 [20:53:12]OFD Sender: Remove packet 103796 [20:53:12]ProducePacketName [20:53:12]name=ofd_packets/00103796 [20:53:12]NVStorageDeleteData [20:53:12]Write to MH i2c: 01 00 00 53 13 66 [20:53:12]Write i2c OK [20:53:12]MH_I2C_Read... [20:53:12]Read from MH i2c: 01 [20:53:12]MH_I2C_Read... [20:53:12]Read from MH i2c: 01 07 00 [20:53:12]MH_I2C_Read... [20:53:12]Read from MH i2c: 01 07 00 53 13 00 00 00 00 00 D4 0C 4D [20:53:12]RasterBufferAndPrint [20:53:12]line [20:53:12]line [20:53:12]line [20:53:12]line [20:53:12]line [20:53:12]written 0, free lines is 3288 [20:53:12]MH_Cut [20:53:12]Write to MH i2c: D1 01 00 5A 13 01 3F [20:53:12]Write i2c OK [20:53:12]MH_I2C_Read... [20:53:12]Read from MH i2c: D1 [20:53:12]MH_I2C_Read... [20:53:12]Read from MH i2c: D1 01 00 [20:53:12]MH_I2C_Read... [20:53:12]Read from MH i2c: D1 01 00 5A 13 00 3E [20:53:12]Write to MH i2c: 01 00 00 5B 13 6E [20:53:12]Write i2c OK [20:53:12]MH_I2C_Read... [20:53:13]OFD Sender: No OFD packet to send [20:53:13]*** Cut start [20:53:13]*** Partial cut [20:53:13]*** CUTSNS_PIN = 1 [20:53:13]*** CUTSNS_PIN = 0 [20:53:13]*** Brake cut motor [20:53:14]Read from MH i2c: 01 [20:53:14]MH_I2C_Read... [20:53:14]*** Stop cut motor [20:53:14]*** Cut end [20:53:14]Read from MH i2c: 01 07 00 [20:53:14]MH_I2C_Read... [20:53:14]Read from MH i2c: 01 07 00 5B 13 00 00 00 00 00 FF 0F 83 [20:53:14]process_action close_receipt done [20:53:14]requested_data is exist [20:53:14]produce_requested_data [20:53:14]requested_item fm.sn is exist - process it [20:53:14]wFMCommunicate request_size=4 [20:53:14]MH_SAM_APDU [20:53:14]CAPDU: 80 11 00 00 [20:53:14]Write to MH i2c: E2 08 00 5C 13 80 11 00 00 00 00 00 00 E9 [20:53:14]Write i2c OK [20:53:14]MH_I2C_Read... [20:53:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:53:14]Read from MH i2c: E2 [20:53:14]MH_I2C_Read... [20:53:14]Read from MH i2c: E2 17 00 [20:53:14]MH_I2C_Read... [20:53:14]Read from MH i2c: E2 17 00 5C 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 3C [20:53:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [20:53:14]wFMCommunicate OK [20:53:14]requested_item fd.num is exist - process it [20:53:14]SAM_PROTO_GetFieldsCounters [20:53:14]wFMCommunicate request_size=4 [20:53:14]MH_SAM_APDU [20:53:14]CAPDU: 80 13 00 00 [20:53:14]Write to MH i2c: E2 08 00 5D 13 80 13 00 00 00 00 00 00 EC [20:53:14]Write i2c OK [20:53:14]MH_I2C_Read... [20:53:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:53:14]Read from MH i2c: E2 [20:53:14]MH_I2C_Read... [20:53:14]Read from MH i2c: E2 62 00 [20:53:14]MH_I2C_Read... [20:53:14]Read from MH i2c: E2 62 00 5D 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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 74 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 E2 00 00 00 5E 04 04 00 E2 00 00 00 57 04 04 00 E3 00 00 00 19 04 04 00 00 00 00 00 90 00 25 [20:53:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 74 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 E2 00 00 00 5E 04 04 00 E2 00 00 00 57 04 04 00 E3 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:53:14]wFMCommunicate OK [20:53:14]SAM_PROTO_GetFieldsCounters done [20:53:14]requested_item shift.num is exist - process it [20:53:14]requested_item shift.opened is exist - process it [20:53:14]req_shift_opened [20:53:14]FM_GetShiftState [20:53:14]SAM_PROTO_GetShiftState [20:53:14]wFMCommunicate request_size=4 [20:53:14]MH_SAM_APDU [20:53:14]CAPDU: 80 13 01 00 [20:53:14]Write to MH i2c: E2 08 00 5E 13 80 13 01 00 00 00 00 00 EE [20:53:14]Write i2c OK [20:53:14]MH_I2C_Read... [20:53:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:53:14]Read from MH i2c: E2 [20:53:14]MH_I2C_Read... [20:53:14]Read from MH i2c: E2 0E 00 [20:53:14]MH_I2C_Read... [20:53:14]Read from MH i2c: E2 0E 00 5E 13 00 09 00 01 04 26 72 66 00 00 00 00 90 00 FC [20:53:14]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [20:53:14]wFMCommunicate OK [20:53:14]SAM_PROTO_GetShiftState done [20:53:14]FM_GetShiftState done [20:53:14]req_shift_opened done [20:53:14]requested_item shift.open_date is exist - process it [20:53:14]req_shift_open_date [20:53:14]req_shift_open_date done [20:53:14]produce_requested_data done [20:53:14]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103796,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [20:53:14]process_action_free close_receipt [20:53:14]json_value_free [20:53:14]json_value_free done [20:53:14]process_json_proto returns [20:53:14]Send response to host [20:53:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103796,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [20:53:14]free response buf [20:53:14]execute_script done [20:53:14]execute_script returns [20:53:14]free content buf [20:53:14]Sock 8.Close socket [20:53:14]Sock 8.Thread stoped [20:53:18]OFD Sender: No OFD packet to send [20:53:23]OFD Sender: No OFD packet to send [20:53:28]OFD Sender: No OFD packet to send [20:53:33]OFD Sender: No OFD packet to send [20:53:38]OFD Sender: No OFD packet to send [20:53:43]OFD Sender: No OFD packet to send [20:53:48]OFD Sender: No OFD packet to send [20:53:53]OFD Sender: No OFD packet to send [20:53:58]OFD Sender: No OFD packet to send [20:54:03]OFD Sender: No OFD packet to send [20:54:08]OFD Sender: No OFD packet to send [20:54:13]OFD Sender: No OFD packet to send [20:54:18]OFD Sender: No OFD packet to send [20:54:23]OFD Sender: No OFD packet to send [20:54:28]OFD Sender: No OFD packet to send [20:54:33]OFD Sender: No OFD packet to send [20:54:38]OFD Sender: No OFD packet to send [20:54:43]OFD Sender: No OFD packet to send [20:54:48]OFD Sender: No OFD packet to send [20:54:53]OFD Sender: No OFD packet to send [20:54:58]OFD Sender: No OFD packet to send [20:55:03]OFD Sender: No OFD packet to send [20:55:08]OFD Sender: No OFD packet to send [20:55:13]OFD Sender: No OFD packet to send [20:55:18]OFD Sender: No OFD packet to send [20:55:23]OFD Sender: No OFD packet to send [20:55:28]OFD Sender: No OFD packet to send [20:55:33]OFD Sender: No OFD packet to send [20:55:38]OFD Sender: No OFD packet to send [20:55:43]OFD Sender: No OFD packet to send [20:55:48]OFD Sender: No OFD packet to send [20:55:53]OFD Sender: No OFD packet to send [20:55:58]OFD Sender: No OFD packet to send [20:56:03]OFD Sender: No OFD packet to send [20:56:08]OFD Sender: No OFD packet to send [20:56:13]OFD Sender: No OFD packet to send [20:56:18]OFD Sender: No OFD packet to send [20:56:23]OFD Sender: No OFD packet to send [20:56:28]OFD Sender: No OFD packet to send [20:56:33]OFD Sender: No OFD packet to send [20:56:38]OFD Sender: No OFD packet to send [20:56:43]OFD Sender: No OFD packet to send [20:56:48]OFD Sender: No OFD packet to send [20:56:53]OFD Sender: No OFD packet to send [20:56:58]OFD Sender: No OFD packet to send [20:57:03]OFD Sender: No OFD packet to send [20:57:08]OFD Sender: No OFD packet to send [20:57:13]OFD Sender: No OFD packet to send [20:57:18]OFD Sender: No OFD packet to send [20:57:23]OFD Sender: No OFD packet to send [20:57:28]OFD Sender: No OFD packet to send [20:57:33]OFD Sender: No OFD packet to send [20:57:38]OFD Sender: No OFD packet to send [20:57:43]OFD Sender: No OFD packet to send [20:57:48]OFD Sender: No OFD packet to send [20:57:53]OFD Sender: No OFD packet to send [20:57:58]OFD Sender: No OFD packet to send [20:58:03]OFD Sender: No OFD packet to send [20:58:08]OFD Sender: No OFD packet to send [20:58:13]OFD Sender: No OFD packet to send [20:58:18]OFD Sender: No OFD packet to send [20:58:23]OFD Sender: No OFD packet to send [20:58:28]OFD Sender: No OFD packet to send [20:58:33]OFD Sender: No OFD packet to send [20:58:38]OFD Sender: No OFD packet to send [20:58:43]OFD Sender: No OFD packet to send [20:58:48]OFD Sender: No OFD packet to send [20:58:53]OFD Sender: No OFD packet to send [20:58:58]OFD Sender: No OFD packet to send [20:59:03]OFD Sender: No OFD packet to send [20:59:08]OFD Sender: No OFD packet to send [20:59:13]OFD Sender: No OFD packet to send [20:59:18]OFD Sender: No OFD packet to send [20:59:23]OFD Sender: No OFD packet to send [20:59:28]OFD Sender: No OFD packet to send [20:59:33]OFD Sender: No OFD packet to send [20:59:38]OFD Sender: No OFD packet to send [20:59:43]OFD Sender: No OFD packet to send [20:59:48]OFD Sender: No OFD packet to send [20:59:53]OFD Sender: No OFD packet to send [20:59:58]OFD Sender: No OFD packet to send [21:00:03]OFD Sender: No OFD packet to send [21:00:08]OFD Sender: No OFD packet to send [21:00:13]OFD Sender: No OFD packet to send [21:00:18]OFD Sender: No OFD packet to send [21:00:23]OFD Sender: No OFD packet to send [21:00:28]OFD Sender: No OFD packet to send [21:00:33]OFD Sender: No OFD packet to send [21:00:38]OFD Sender: No OFD packet to send [21:00:43]OFD Sender: No OFD packet to send [21:00:48]OFD Sender: No OFD packet to send [21:00:53]OFD Sender: No OFD packet to send [21:00:58]OFD Sender: No OFD packet to send [21:01:03]OFD Sender: No OFD packet to send [21:01:08]OFD Sender: No OFD packet to send [21:01:13]OFD Sender: No OFD packet to send [21:01:18]OFD Sender: No OFD packet to send [21:01:23]OFD Sender: No OFD packet to send [21:01:28]OFD Sender: No OFD packet to send [21:01:33]OFD Sender: No OFD packet to send [21:01:38]OFD Sender: No OFD packet to send [21:01:43]OFD Sender: No OFD packet to send [21:01:48]OFD Sender: No OFD packet to send [21:01:53]OFD Sender: No OFD packet to send [21:01:58]OFD Sender: No OFD packet to send [21:02:03]OFD Sender: No OFD packet to send [21:02:08]OFD Sender: No OFD packet to send [21:02:13]OFD Sender: No OFD packet to send [21:02:18]OFD Sender: No OFD packet to send [21:02:23]OFD Sender: No OFD packet to send [21:02:28]OFD Sender: No OFD packet to send [21:02:33]OFD Sender: No OFD packet to send [21:02:38]OFD Sender: No OFD packet to send [21:02:43]OFD Sender: No OFD packet to send [21:02:48]OFD Sender: No OFD packet to send [21:02:53]OFD Sender: No OFD packet to send [21:02:58]OFD Sender: No OFD packet to send [21:03:03]OFD Sender: No OFD packet to send [21:03:08]OFD Sender: No OFD packet to send [21:03:13]OFD Sender: No OFD packet to send [21:03:18]OFD Sender: No OFD packet to send [21:03:23]OFD Sender: No OFD packet to send [21:03:28]OFD Sender: No OFD packet to send [21:03:33]OFD Sender: No OFD packet to send [21:03:38]OFD Sender: No OFD packet to send [21:03:43]OFD Sender: No OFD packet to send [21:03:48]OFD Sender: No OFD packet to send [21:03:53]OFD Sender: No OFD packet to send [21:03:58]OFD Sender: No OFD packet to send [21:04:03]OFD Sender: No OFD packet to send [21:04:08]OFD Sender: No OFD packet to send [21:04:13]OFD Sender: No OFD packet to send [21:04:18]OFD Sender: No OFD packet to send [21:04:23]OFD Sender: No OFD packet to send [21:04:28]OFD Sender: No OFD packet to send [21:04:33]OFD Sender: No OFD packet to send [21:04:38]OFD Sender: No OFD packet to send [21:04:43]OFD Sender: No OFD packet to send [21:04:48]OFD Sender: No OFD packet to send [21:04:53]OFD Sender: No OFD packet to send [21:04:58]OFD Sender: No OFD packet to send [21:05:03]OFD Sender: No OFD packet to send [21:05:04]accept exits with 9 [21:05:04]New connection [21:05:04]New thread 3066797412 created [21:05:04]Thread 3066940772 joined [21:05:04]Waiting for new connection... [21:05:04] Sock 9.Parse request [21:05:04]Sock 9.Check first char [21:05:04]Sock 9.First char is OK [21:05:04]request: POST /json_proto HTTP/1.0 [21:05:04]Method: POST [21:05:04]URL: /json_proto [21:05:04]Method is POST - this is cgi request [21:05:04]url: /json_proto [21:05:04]query_string will be loaded in cgi processing [21:05:04]execute_cgi json_proto POST (null) [21:05:04]execute_cgi path=json_proto method=POST [21:05:04]POST find Content-Length [21:05:04]Host: 172.17.38.133:8080 [21:05:04]Content-Length: 677 [21:05:04]Content-Type: application/json [21:05:04] [21:05:04]POST finish read [21:05:04]Found Content-Length = 677 [21:05:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673093", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:05:04]execute_script... [21:05:04]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673093", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:05:04]POST & json_proto [21:05:04]process_json_proto [21:05:04]json parsed OK: [21:05:04]protocol is kg_v1.0 [21:05:04]action value=close_receipt [21:05:04]process_action close_receipt [21:05:04]cmd_close_receipt [21:05:04]MH_GetDate [21:05:04]Write to MH i2c: F0 00 00 5F 13 61 [21:05:04]Write i2c OK [21:05:04]MH_I2C_Read... [21:05:04]Read from MH i2c: F0 [21:05:04]MH_I2C_Read... [21:05:04]Read from MH i2c: F0 09 00 [21:05:04]MH_I2C_Read... [21:05:04]Read from MH i2c: F0 09 00 5F 13 00 01 48 73 66 BD 8F 7C 64 B8 [21:05:04]GetLastDocTimeStamp 1718830391 [21:05:04]current date 1718831105 [21:05:04]FM_GetShiftState [21:05:04]SAM_PROTO_GetShiftState [21:05:04]wFMCommunicate request_size=4 [21:05:04]MH_SAM_APDU [21:05:04]CAPDU: 80 13 01 00 [21:05:04]Write to MH i2c: E2 08 00 60 13 80 13 01 00 00 00 00 00 F0 [21:05:04]Write i2c OK [21:05:04]MH_I2C_Read... [21:05:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:05:04]Read from MH i2c: E2 [21:05:04]MH_I2C_Read... [21:05:04]Read from MH i2c: E2 0E 00 [21:05:04]MH_I2C_Read... [21:05:04]Read from MH i2c: E2 0E 00 60 13 00 09 00 01 04 26 72 66 00 00 00 00 90 00 FE [21:05:04]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [21:05:04]wFMCommunicate OK [21:05:04]SAM_PROTO_GetShiftState done [21:05:04]FM_GetShiftState done [21:05:04]opened in 1718756868 [21:05:04]opened+sec_in_day 1718843268 [21:05:04]quantity*price = 50065 [21:05:04]sum+1 = 50067 [21:05:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.17 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 227 19.06.2024 21:05 Смена: 353 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103797 ФПД: 151812221216954 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T210505&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103797&fm=151812221216954&tin=02508201610067®Number=0000000000092785&sum=50000 [21:05:05]StoreToDocumentArchive [21:05:05]shift 353 fd 103797 [21:05:05]save to /storage/0353/doc_00103797 [21:05:05]save last doc name /storage/0353/doc_00103797 to /storage/kkm_last_doc_name [21:05:05]save OK [21:05:05]Clear old archive folders... [21:05:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:05:05]tlvbuf is 016B1780 [21:05:05]SAM_PROTO_ClearQueue [21:05:05]wFMCommunicate request_size=4 [21:05:05]MH_SAM_APDU [21:05:05]CAPDU: 80 09 00 00 [21:05:05]Write to MH i2c: E2 08 00 6D 13 80 09 00 00 00 00 00 00 F2 [21:05:05]Write i2c OK [21:05:05]MH_I2C_Read... [21:05:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:05:05]Read from MH i2c: E2 [21:05:05]MH_I2C_Read... [21:05:05]Read from MH i2c: E2 03 00 [21:05:05]MH_I2C_Read... [21:05:05]Read from MH i2c: E2 03 00 6D 13 00 90 00 F4 [21:05:05]RAPDU: 90 00 [21:05:05]wFMCommunicate OK [21:05:05]SAM_PROTO_ClearQueue done [21:05:05]KKMCreateOFDPacket [21:05:05]OFDProtocolAddRootSTLVToBuf [21:05:05]FM_MakeSignedData [21:05:05]FM_MakeSignedData [21:05:05]SAM_PROTO_SignData [21:05:05]wFMCommunicate request_size=4 [21:05:05]MH_SAM_APDU [21:05:05]CAPDU: 80 0D 01 02 [21:05:05]Write to MH i2c: E2 08 00 6E 13 80 0D 01 02 00 00 00 00 FA [21:05:05]Write i2c OK [21:05:05]MH_I2C_Read... [21:05:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:05:05]Read from MH i2c: E2 [21:05:05]MH_I2C_Read... [21:05:05]Read from MH i2c: E2 03 00 [21:05:05]MH_I2C_Read... [21:05:05]Read from MH i2c: E2 03 00 6E 13 00 90 00 F5 [21:05:05]RAPDU: 90 00 [21:05:05]wFMCommunicate OK [21:05:05]wFMCommunicate request_size=255 [21:05:05]MH_SAM_APDU [21:05:05]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E3 00 00 00 F4 03 04 00 01 48 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 75 95 01 00 35 04 06 00 8A [21:05:05]Write to MH i2c: E2 02 01 6F 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E3 00 00 00 F4 03 04 00 01 48 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 75 95 01 00 35 04 06 00 8A 00 00 B0 [21:05:05]Write i2c OK [21:05:05]MH_I2C_Read... [21:05:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:05:05]Read from MH i2c: E2 [21:05:05]MH_I2C_Read... [21:05:05]Read from MH i2c: E2 03 00 [21:05:05]MH_I2C_Read... [21:05:05]Read from MH i2c: E2 03 00 6F 13 00 90 00 F6 [21:05:05]RAPDU: 90 00 [21:05:05]wFMCommunicate OK [21:05:05]wFMCommunicate request_size=10 [21:05:05]MH_SAM_APDU [21:05:05]CAPDU: 80 0D 02 02 05 12 89 84 A8 BA [21:05:05]Write to MH i2c: E2 0D 00 70 13 80 0D 02 02 05 00 12 89 84 A8 BA 00 00 88 [21:05:05]Write i2c OK [21:05:05]MH_I2C_Read... [21:05:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:05:05]Read from MH i2c: E2 [21:05:05]MH_I2C_Read... [21:05:05]Read from MH i2c: E2 03 00 [21:05:05]MH_I2C_Read... [21:05:05]Read from MH i2c: E2 03 00 70 13 00 90 00 F7 [21:05:05]RAPDU: 90 00 [21:05:05]wFMCommunicate OK [21:05:05]wFMCommunicate request_size=4 [21:05:05]MH_SAM_APDU [21:05:05]CAPDU: 80 0D 03 02 [21:05:05]Write to MH i2c: E2 08 00 71 13 80 0D 03 02 00 00 00 00 FF [21:05:05]Write i2c OK [21:05:05]MH_I2C_Read... [21:05:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:05:05]Read from MH i2c: E2 [21:05:05]MH_I2C_Read... [21:05:05]Read from MH i2c: E2 0B 00 [21:05:05]MH_I2C_Read... [21:05:05]Read from MH i2c: E2 0B 00 71 13 00 F5 E7 7F C0 97 E7 83 19 90 00 35 [21:05:05]RAPDU: F5 E7 7F C0 97 E7 83 19 90 00 [21:05:05]wFMCommunicate OK [21:05:05]SAM_PROTO_SignData done [21:05:05]FM_MakeSignedData done [21:05:05]CreateOFDProtocolMessage [21:05:05]wFMCommunicate request_size=4 [21:05:05]MH_SAM_APDU [21:05:05]CAPDU: 80 11 00 00 [21:05:05]Write to MH i2c: E2 08 00 72 13 80 11 00 00 00 00 00 00 FF [21:05:05]Write i2c OK [21:05:05]MH_I2C_Read... [21:05:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:05:05]Read from MH i2c: E2 [21:05:05]MH_I2C_Read... [21:05:05]Read from MH i2c: E2 17 00 [21:05:05]MH_I2C_Read... [21:05:05]Read from MH i2c: E2 17 00 72 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 52 [21:05:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [21:05:05]wFMCommunicate OK [21:05:05]CreateOFDProtocolMessage done [21:05:05]OFDSenderStorePacket 103797 [21:05:05]StoreOFDPacket docnum=103797 [21:05:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 CC 6F 07 01 17 DF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E3 00 00 00 F4 03 04 00 01 48 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 75 95 01 00 35 04 06 00 8A 12 89 84 A8 BA F5 E7 7F C0 97 E7 83 19 [21:05:06]CheckFolder [21:05:06]dirname=/storage/ofd_packets [21:05:06]CheckFolder done [21:05:06]ProducePacketName [21:05:06]name=ofd_packets/00103797 [21:05:06]NVStorageSaveData ofd_packets/00103797 [21:05:06]File name is /storage/ofd_packets/00103797 [21:05:06]Write 301 bytes [21:05:06]NVStorageSaveData done [21:05:06]OFDSenderStorePacket done [21:05:06]KKMCreateOFDPacket done [21:05:06]NVStorageSaveData kkm_last_timestamp [21:05:06]File name is /storage/kkm_last_timestamp [21:05:06]Write 4 bytes [21:05:06]NVStorageSaveData done [21:05:06]ExternCall_PrintAddStr [21:05:06]wPrintStart [21:05:06]Write to MH i2c: 01 00 00 73 13 86 [21:05:06]Write i2c OK [21:05:06]MH_I2C_Read... [21:05:06]Read from MH i2c: 01 [21:05:06]MH_I2C_Read... [21:05:06]Read from MH i2c: 01 07 00 [21:05:06]MH_I2C_Read... [21:05:06]Read from MH i2c: 01 07 00 73 13 00 00 00 00 00 FF 0F 9B [21:05:06]RasterBufferAndPrint [21:05:06]line Счет N : (1)673093 [21:05:06]line ИНН: 02508201610067 [21:05:06]line Контрольно-Кассовый Чек [21:05:06]line ПРОДАЖА [21:05:06]line ТРК (МРК, ГНК) : 42 [21:05:06]line Товар: 2710124130 [21:05:06]line Аи-92-К-5 [21:05:06]line 7.540 * 66.40 [21:05:06]line = 500.66 [21:05:06]line НДС 12% НСП 1% [21:05:06]line > о реализуемом товаре [21:05:06]line ОКРУГЛЕНИЕ: -0.66 [21:05:06]line ИТОГО: 500.00 [21:05:06]line Внесено: 500.00 [21:05:06]line СДАЧА: 0.00 [21:05:06]line НСП 1% : 4.43 [21:05:06]line НДС 12% : 53.17 [21:05:06]line Наличными: 500.00 [21:05:06]line Безнал.: 0.00 [21:05:06]line Место: АЗС № 120 "Партнер Нефть" [21:05:06]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [21:05:06]line СНО: Общий режим [21:05:06]line Чек 227 19.06.2024 21:05 [21:05:06]line Смена: 353 ФФД: 1.0 [21:05:06]line ЗНМ: 0300000164 [21:05:06]line РНМ: 0000000000092785 [21:05:06]line Версия ККМ: 001 [21:05:06]line ФМ: 0000000000875093 [21:05:06]line ФД: 103797 [21:05:06]line ФПД: 151812221216954 [21:05:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T210505&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103797&fm=151812221216954&tin=02508201610067®Number=0000000000092785&sum=50000 [21:05:06]OFD Sender: Processing packet 103797 [packets to send 17, broken 16] [21:05:06]ProducePacketName [21:05:06]name=ofd_packets/00103797 [21:05:06]OFD Sender: To server: pG, [21:05:06]CommunicateWithHost lk.salyk.kg:30040 [21:05:06]ConnectInit lk.salyk.kg [21:05:06]written 0, free lines is 4095 [21:05:06]Connected sock=11 [21:05:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 CC 6F 07 01 17 DF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E3 00 00 00 F4 03 04 00 01 48 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 75 95 01 00 35 04 06 00 8A 12 89 84 A8 BA F5 E7 7F C0 97 E7 83 19 [21:05:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 D0 F4 47 00 E0 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 39 33 10 04 04 00 75 95 01 00 F4 03 04 00 89 EE 72 66 B6 04 01 00 00 81 64 5F A4 43 69 C2 3B [21:05:06]CommunicateWithHost err = 0 [21:05:06]CheckOFDResponse [21:05:06]1017 (14) - 77093643461234 [21:05:06]1041 (16) - 0000000000875093 [21:05:06]1040 (4) - 103797 [21:05:06]1012 (4) - 19.06.2024 14:43 [21:05:06]1206 (1) - 0 [21:05:06]OFD Sender: Remove packet 103797 [21:05:06]ProducePacketName [21:05:06]name=ofd_packets/00103797 [21:05:06]NVStorageDeleteData [21:05:06]Write to MH i2c: 01 00 00 9E 13 B1 [21:05:06]Write i2c OK [21:05:06]MH_I2C_Read... [21:05:06]Read from MH i2c: 01 [21:05:06]MH_I2C_Read... [21:05:06]Read from MH i2c: 01 07 00 [21:05:06]MH_I2C_Read... [21:05:06]Read from MH i2c: 01 07 00 9E 13 00 00 00 00 00 E1 0C A5 [21:05:06]RasterBufferAndPrint [21:05:06]line [21:05:06]line [21:05:06]line [21:05:06]line [21:05:06]line [21:05:06]written 0, free lines is 3303 [21:05:06]MH_Cut [21:05:06]Write to MH i2c: D1 01 00 A5 13 01 8A [21:05:06]Write i2c OK [21:05:06]MH_I2C_Read... [21:05:06]Read from MH i2c: D1 [21:05:06]MH_I2C_Read... [21:05:06]Read from MH i2c: D1 01 00 [21:05:06]MH_I2C_Read... [21:05:06]Read from MH i2c: D1 01 00 A5 13 00 89 [21:05:06]Write to MH i2c: 01 00 00 A6 13 B9 [21:05:06]Write i2c OK [21:05:06]MH_I2C_Read... [21:05:07]OFD Sender: No OFD packet to send [21:05:07]*** Cut start [21:05:07]*** Partial cut [21:05:07]*** CUTSNS_PIN = 1 [21:05:07]*** CUTSNS_PIN = 0 [21:05:07]*** Brake cut motor [21:05:08]Read from MH i2c: 01 [21:05:08]MH_I2C_Read... [21:05:08]*** Stop cut motor [21:05:08]*** Cut end [21:05:08]Read from MH i2c: 01 07 00 [21:05:08]MH_I2C_Read... [21:05:08]Read from MH i2c: 01 07 00 A6 13 00 00 00 00 00 FF 0F CE [21:05:08]process_action close_receipt done [21:05:08]requested_data is exist [21:05:08]produce_requested_data [21:05:08]requested_item fm.sn is exist - process it [21:05:08]wFMCommunicate request_size=4 [21:05:08]MH_SAM_APDU [21:05:08]CAPDU: 80 11 00 00 [21:05:08]Write to MH i2c: E2 08 00 A7 13 80 11 00 00 00 00 00 00 34 [21:05:08]Write i2c OK [21:05:08]MH_I2C_Read... [21:05:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:05:08]Read from MH i2c: E2 [21:05:08]MH_I2C_Read... [21:05:08]Read from MH i2c: E2 17 00 [21:05:08]MH_I2C_Read... [21:05:08]Read from MH i2c: E2 17 00 A7 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 87 [21:05:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [21:05:08]wFMCommunicate OK [21:05:08]requested_item fd.num is exist - process it [21:05:08]SAM_PROTO_GetFieldsCounters [21:05:08]wFMCommunicate request_size=4 [21:05:08]MH_SAM_APDU [21:05:08]CAPDU: 80 13 00 00 [21:05:08]Write to MH i2c: E2 08 00 A8 13 80 13 00 00 00 00 00 00 37 [21:05:08]Write i2c OK [21:05:08]MH_I2C_Read... [21:05:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:05:08]Read from MH i2c: E2 [21:05:08]MH_I2C_Read... [21:05:08]Read from MH i2c: E2 62 00 [21:05:08]MH_I2C_Read... [21:05:08]Read from MH i2c: E2 62 00 A8 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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 75 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 E3 00 00 00 5E 04 04 00 E3 00 00 00 57 04 04 00 E4 00 00 00 19 04 04 00 00 00 00 00 90 00 74 [21:05:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 75 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 E3 00 00 00 5E 04 04 00 E3 00 00 00 57 04 04 00 E4 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:05:08]wFMCommunicate OK [21:05:08]SAM_PROTO_GetFieldsCounters done [21:05:08]requested_item shift.num is exist - process it [21:05:08]requested_item shift.opened is exist - process it [21:05:08]req_shift_opened [21:05:08]FM_GetShiftState [21:05:08]SAM_PROTO_GetShiftState [21:05:08]wFMCommunicate request_size=4 [21:05:08]MH_SAM_APDU [21:05:08]CAPDU: 80 13 01 00 [21:05:08]Write to MH i2c: E2 08 00 A9 13 80 13 01 00 00 00 00 00 39 [21:05:08]Write i2c OK [21:05:08]MH_I2C_Read... [21:05:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:05:08]Read from MH i2c: E2 [21:05:08]MH_I2C_Read... [21:05:08]Read from MH i2c: E2 0E 00 [21:05:08]MH_I2C_Read... [21:05:08]Read from MH i2c: E2 0E 00 A9 13 00 09 00 01 04 26 72 66 00 00 00 00 90 00 47 [21:05:08]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [21:05:08]wFMCommunicate OK [21:05:08]SAM_PROTO_GetShiftState done [21:05:08]FM_GetShiftState done [21:05:08]req_shift_opened done [21:05:08]requested_item shift.open_date is exist - process it [21:05:08]req_shift_open_date [21:05:08]req_shift_open_date done [21:05:08]produce_requested_data done [21:05:08]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103797,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [21:05:08]process_action_free close_receipt [21:05:08]json_value_free [21:05:08]json_value_free done [21:05:08]process_json_proto returns [21:05:08]Send response to host [21:05:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103797,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [21:05:08]free response buf [21:05:08]execute_script done [21:05:08]execute_script returns [21:05:08]free content buf [21:05:08]Sock 9.Close socket [21:05:08]Sock 9.Thread stoped [21:05:12]OFD Sender: No OFD packet to send [21:05:17]OFD Sender: No OFD packet to send [21:05:20]accept exits with 10 [21:05:20]New connection [21:05:20]New thread 3066940772 created [21:05:20]Thread 3066797412 joined [21:05:20]Waiting for new connection... [21:05:20] Sock 10.Parse request [21:05:20]Sock 10.Check first char [21:05:20]Sock 10.First char is OK [21:05:20]request: POST /json_proto HTTP/1.0 [21:05:20]Method: POST [21:05:20]URL: /json_proto [21:05:20]Method is POST - this is cgi request [21:05:20]url: /json_proto [21:05:20]query_string will be loaded in cgi processing [21:05:20]execute_cgi json_proto POST (null) [21:05:20]execute_cgi path=json_proto method=POST [21:05:20]POST find Content-Length [21:05:20]Host: 172.17.38.133:8080 [21:05:20]Content-Length: 682 [21:05:20]Content-Type: application/json [21:05:20] [21:05:20]POST finish read [21:05:20]Found Content-Length = 682 [21:05:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673094", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:05:20]execute_script... [21:05: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)673094", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:05:20]POST & json_proto [21:05:20]process_json_proto [21:05:20]json parsed OK: [21:05:20]protocol is kg_v1.0 [21:05:20]action value=close_receipt [21:05:20]process_action close_receipt [21:05:20]cmd_close_receipt [21:05:20]MH_GetDate [21:05:20]Write to MH i2c: F0 00 00 AA 13 AC [21:05:20]Write i2c OK [21:05:20]MH_I2C_Read... [21:05:20]Read from MH i2c: F0 [21:05:20]MH_I2C_Read... [21:05:20]Read from MH i2c: F0 09 00 [21:05:20]MH_I2C_Read... [21:05:20]Read from MH i2c: F0 09 00 AA 13 00 11 48 73 66 BD 8F 7C 64 13 [21:05:20]GetLastDocTimeStamp 1718831105 [21:05:20]current date 1718831121 [21:05:20]FM_GetShiftState [21:05:20]SAM_PROTO_GetShiftState [21:05:20]wFMCommunicate request_size=4 [21:05:20]MH_SAM_APDU [21:05:20]CAPDU: 80 13 01 00 [21:05:20]Write to MH i2c: E2 08 00 AB 13 80 13 01 00 00 00 00 00 3B [21:05:20]Write i2c OK [21:05:20]MH_I2C_Read... [21:05:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:05:20]Read from MH i2c: E2 [21:05:20]MH_I2C_Read... [21:05:20]Read from MH i2c: E2 0E 00 [21:05:20]MH_I2C_Read... [21:05:20]Read from MH i2c: E2 0E 00 AB 13 00 09 00 01 04 26 72 66 00 00 00 00 90 00 49 [21:05:20]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [21:05:20]wFMCommunicate OK [21:05:20]SAM_PROTO_GetShiftState done [21:05:20]FM_GetShiftState done [21:05:20]opened in 1718756868 [21:05:20]opened+sec_in_day 1718843268 [21:05:20]quantity*price = 100064 [21:05:20]sum+1 = 100066 [21:05:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.65 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 228 19.06.2024 21:05 Смена: 353 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103798 ФПД: 138873619973650 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T210521&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103798&fm=138873619973650&tin=02508201610067®Number=0000000000092785&sum=100000 [21:05:21]StoreToDocumentArchive [21:05:21]shift 353 fd 103798 [21:05:21]save to /storage/0353/doc_00103798 [21:05:21]save last doc name /storage/0353/doc_00103798 to /storage/kkm_last_doc_name [21:05:21]save OK [21:05:21]Clear old archive folders... [21:05:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:05:21]tlvbuf is 017A4140 [21:05:21]SAM_PROTO_ClearQueue [21:05:21]wFMCommunicate request_size=4 [21:05:21]MH_SAM_APDU [21:05:21]CAPDU: 80 09 00 00 [21:05:21]Write to MH i2c: E2 08 00 B8 13 80 09 00 00 00 00 00 00 3D [21:05:21]Write i2c OK [21:05:21]MH_I2C_Read... [21:05:21]Read from MH i2c: E2 [21:05:21]MH_I2C_Read... [21:05:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:05:21]Read from MH i2c: E2 03 00 [21:05:21]MH_I2C_Read... [21:05:21]Read from MH i2c: E2 03 00 B8 13 00 90 00 3F [21:05:21]RAPDU: 90 00 [21:05:21]wFMCommunicate OK [21:05:21]SAM_PROTO_ClearQueue done [21:05:21]KKMCreateOFDPacket [21:05:21]OFDProtocolAddRootSTLVToBuf [21:05:21]FM_MakeSignedData [21:05:21]FM_MakeSignedData [21:05:21]SAM_PROTO_SignData [21:05:21]wFMCommunicate request_size=4 [21:05:21]MH_SAM_APDU [21:05:21]CAPDU: 80 0D 01 02 [21:05:21]Write to MH i2c: E2 08 00 B9 13 80 0D 01 02 00 00 00 00 45 [21:05:21]Write i2c OK [21:05:21]MH_I2C_Read... [21:05:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:05:21]Read from MH i2c: E2 [21:05:21]MH_I2C_Read... [21:05:21]Read from MH i2c: E2 03 00 [21:05:21]MH_I2C_Read... [21:05:21]Read from MH i2c: E2 03 00 B9 13 00 90 00 40 [21:05:21]RAPDU: 90 00 [21:05:21]wFMCommunicate OK [21:05:21]wFMCommunicate request_size=255 [21:05:21]MH_SAM_APDU [21:05: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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E4 00 00 00 F4 03 04 00 11 48 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 76 95 01 00 35 04 06 00 7E [21:05:21]Write to MH i2c: E2 02 01 BA 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E4 00 00 00 F4 03 04 00 11 48 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 76 95 01 00 35 04 06 00 7E 00 00 51 [21:05:21]Write i2c OK [21:05:21]MH_I2C_Read... [21:05:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:05:21]Read from MH i2c: E2 [21:05:21]MH_I2C_Read... [21:05:21]Read from MH i2c: E2 03 00 [21:05:21]MH_I2C_Read... [21:05:21]Read from MH i2c: E2 03 00 BA 13 00 90 00 41 [21:05:21]RAPDU: 90 00 [21:05:21]wFMCommunicate OK [21:05:21]wFMCommunicate request_size=10 [21:05:21]MH_SAM_APDU [21:05:21]CAPDU: 80 0D 02 02 05 4E 08 C9 86 12 [21:05:21]Write to MH i2c: E2 0D 00 BB 13 80 0D 02 02 05 00 4E 08 C9 86 12 00 00 09 [21:05:21]Write i2c OK [21:05:21]MH_I2C_Read... [21:05:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:05:21]Read from MH i2c: E2 [21:05:21]MH_I2C_Read... [21:05:21]Read from MH i2c: E2 03 00 [21:05:21]MH_I2C_Read... [21:05:21]Read from MH i2c: E2 03 00 BB 13 00 90 00 42 [21:05:21]RAPDU: 90 00 [21:05:21]wFMCommunicate OK [21:05:21]wFMCommunicate request_size=4 [21:05:21]MH_SAM_APDU [21:05:21]CAPDU: 80 0D 03 02 [21:05:21]Write to MH i2c: E2 08 00 BC 13 80 0D 03 02 00 00 00 00 4A [21:05:21]Write i2c OK [21:05:21]MH_I2C_Read... [21:05:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:05:21]Read from MH i2c: E2 [21:05:21]MH_I2C_Read... [21:05:21]Read from MH i2c: E2 0B 00 [21:05:21]MH_I2C_Read... [21:05:21]Read from MH i2c: E2 0B 00 BC 13 00 92 DD AA BF 46 66 8E 7A 90 00 D7 [21:05:21]RAPDU: 92 DD AA BF 46 66 8E 7A 90 00 [21:05:21]wFMCommunicate OK [21:05:21]SAM_PROTO_SignData done [21:05:21]FM_MakeSignedData done [21:05:21]CreateOFDProtocolMessage [21:05:21]wFMCommunicate request_size=4 [21:05:21]MH_SAM_APDU [21:05:21]CAPDU: 80 11 00 00 [21:05:21]Write to MH i2c: E2 08 00 BD 13 80 11 00 00 00 00 00 00 4A [21:05:21]Write i2c OK [21:05:21]MH_I2C_Read... [21:05:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:05:21]Read from MH i2c: E2 [21:05:21]MH_I2C_Read... [21:05:21]Read from MH i2c: E2 17 00 [21:05:21]MH_I2C_Read... [21:05:21]Read from MH i2c: E2 17 00 BD 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 9D [21:05:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [21:05:21]wFMCommunicate OK [21:05:21]CreateOFDProtocolMessage done [21:05:21]OFDSenderStorePacket 103798 [21:05:21]StoreOFDPacket docnum=103798 [21:05:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 7F 3D 07 01 81 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E4 00 00 00 F4 03 04 00 11 48 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 76 95 01 00 35 04 06 00 7E 4E 08 C9 86 12 92 DD AA BF 46 66 8E 7A [21:05:21]CheckFolder [21:05:21]dirname=/storage/ofd_packets [21:05:21]CheckFolder done [21:05:21]ProducePacketName [21:05:21]name=ofd_packets/00103798 [21:05:21]NVStorageSaveData ofd_packets/00103798 [21:05:21]File name is /storage/ofd_packets/00103798 [21:05:21]Write 301 bytes [21:05:21]NVStorageSaveData done [21:05:21]OFDSenderStorePacket done [21:05:21]KKMCreateOFDPacket done [21:05:21]NVStorageSaveData kkm_last_timestamp [21:05:21]File name is /storage/kkm_last_timestamp [21:05:21]Write 4 bytes [21:05:21]NVStorageSaveData done [21:05:21]ExternCall_PrintAddStr [21:05:21]wPrintStart [21:05:21]Write to MH i2c: 01 00 00 BE 13 D1 [21:05:21]Write i2c OK [21:05:21]MH_I2C_Read... [21:05:21]Read from MH i2c: 01 [21:05:21]MH_I2C_Read... [21:05:21]Read from MH i2c: 01 07 00 [21:05:21]MH_I2C_Read... [21:05:21]Read from MH i2c: 01 07 00 BE 13 00 00 00 00 00 FF 0F E6 [21:05:21]RasterBufferAndPrint [21:05:21]line Счет N : (1)673094 [21:05:21]line ИНН: 02508201610067 [21:05:21]line Контрольно-Кассовый Чек [21:05:21]line ПРОДАЖА [21:05:21]line ТРК (МРК, ГНК) : 32 [21:05:21]line Товар: 2710124130 [21:05:21]line Аи-92-К-5 [21:05:21]line 15.070 * 66.40 [21:05:21]line = 1000.65 [21:05:21]line НДС 12% НСП 1% [21:05:21]line > о реализуемом товаре [21:05:21]line ОКРУГЛЕНИЕ: -0.65 [21:05:21]line ИТОГО: 1000.00 [21:05:21]line Внесено: 1000.00 [21:05:21]line СДАЧА: 0.00 [21:05:21]line НСП 1% : 8.85 [21:05:21]line НДС 12% : 106.26 [21:05:21]line Наличными: 1000.00 [21:05:21]line Безнал.: 0.00 [21:05:21]line Место: АЗС № 120 "Партнер Нефть" [21:05:21]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [21:05:21]line СНО: Общий режим [21:05:21]line Чек 228 19.06.2024 21:05 [21:05:21]line Смена: 353 ФФД: 1.0 [21:05:21]line ЗНМ: 0300000164 [21:05:21]line РНМ: 0000000000092785 [21:05:21]line Версия ККМ: 001 [21:05:21]line ФМ: 0000000000875093 [21:05:21]line ФД: 103798 [21:05:21]line ФПД: 138873619973650 [21:05:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T210521&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103798&fm=138873619973650&tin=02508201610067®Number=0000000000092785&sum=100000 [21:05:21]written 0, free lines is 4095 [21:05:21]OFD Sender: Processing packet 103798 [packets to send 17, broken 16] [21:05:21]ProducePacketName [21:05:21]name=ofd_packets/00103798 [21:05:21]OFD Sender: To server: pG, [21:05:21]CommunicateWithHost lk.salyk.kg:30040 [21:05:21]ConnectInit lk.salyk.kg [21:05:22]Connected sock=11 [21:05: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 39 33 0F 01 00 00 7F 3D 07 01 81 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E4 00 00 00 F4 03 04 00 11 48 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 76 95 01 00 35 04 06 00 7E 4E 08 C9 86 12 92 DD AA BF 46 66 8E 7A [21:05: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 39 33 4F 00 00 00 1C 73 47 00 B2 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 39 33 10 04 04 00 76 95 01 00 F4 03 04 00 99 EE 72 66 B6 04 01 00 00 1D A5 82 3C 23 CA 4B E1 [21:05:22]CommunicateWithHost err = 0 [21:05:22]CheckOFDResponse [21:05:22]1017 (14) - 77093643461234 [21:05:22]1041 (16) - 0000000000875093 [21:05:22]1040 (4) - 103798 [21:05:22]1012 (4) - 19.06.2024 14:43 [21:05:22]1206 (1) - 0 [21:05:22]OFD Sender: Remove packet 103798 [21:05:22]ProducePacketName [21:05:22]name=ofd_packets/00103798 [21:05:22]NVStorageDeleteData [21:05:22]Write to MH i2c: 01 00 00 E9 13 FC [21:05:22]Write i2c OK [21:05:22]MH_I2C_Read... [21:05:22]Read from MH i2c: 01 [21:05:22]MH_I2C_Read... [21:05:22]Read from MH i2c: 01 07 00 [21:05:22]MH_I2C_Read... [21:05:22]Read from MH i2c: 01 07 00 E9 13 00 00 00 00 00 F9 0C 08 [21:05:22]RasterBufferAndPrint [21:05:22]line [21:05:22]line [21:05:22]line [21:05:22]line [21:05:22]line [21:05:22]written 0, free lines is 3337 [21:05:22]MH_Cut [21:05:22]Write to MH i2c: D1 01 00 F0 13 01 D5 [21:05:22]Write i2c OK [21:05:22]MH_I2C_Read... [21:05:22]Read from MH i2c: D1 [21:05:22]MH_I2C_Read... [21:05:22]Read from MH i2c: D1 01 00 [21:05:22]MH_I2C_Read... [21:05:22]Read from MH i2c: D1 01 00 F0 13 00 D4 [21:05:22]Write to MH i2c: 01 00 00 F1 13 04 [21:05:22]Write i2c OK [21:05:22]MH_I2C_Read... [21:05:22]OFD Sender: No OFD packet to send [21:05:23]*** Cut start [21:05:23]*** Partial cut [21:05:23]*** CUTSNS_PIN = 1 [21:05:23]*** CUTSNS_PIN = 0 [21:05:23]*** Brake cut motor [21:05:23]Read from MH i2c: 01 [21:05:23]MH_I2C_Read... [21:05:23]*** Stop cut motor [21:05:23]*** Cut end [21:05:23]Read from MH i2c: 01 07 00 [21:05:23]MH_I2C_Read... [21:05:23]Read from MH i2c: 01 07 00 F1 13 00 00 00 00 00 FF 0F 19 [21:05:23]process_action close_receipt done [21:05:23]requested_data is exist [21:05:23]produce_requested_data [21:05:23]requested_item fm.sn is exist - process it [21:05:23]wFMCommunicate request_size=4 [21:05:23]MH_SAM_APDU [21:05:23]CAPDU: 80 11 00 00 [21:05:23]Write to MH i2c: E2 08 00 F2 13 80 11 00 00 00 00 00 00 7F [21:05:23]Write i2c OK [21:05:23]MH_I2C_Read... [21:05:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:05:23]Read from MH i2c: E2 [21:05:23]MH_I2C_Read... [21:05:23]Read from MH i2c: E2 17 00 [21:05:23]MH_I2C_Read... [21:05:23]Read from MH i2c: E2 17 00 F2 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 D2 [21:05:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [21:05:23]wFMCommunicate OK [21:05:23]requested_item fd.num is exist - process it [21:05:23]SAM_PROTO_GetFieldsCounters [21:05:23]wFMCommunicate request_size=4 [21:05:23]MH_SAM_APDU [21:05:23]CAPDU: 80 13 00 00 [21:05:23]Write to MH i2c: E2 08 00 F3 13 80 13 00 00 00 00 00 00 82 [21:05:23]Write i2c OK [21:05:23]MH_I2C_Read... [21:05:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:05:23]Read from MH i2c: E2 [21:05:23]MH_I2C_Read... [21:05:23]Read from MH i2c: E2 62 00 [21:05:23]MH_I2C_Read... [21:05:23]Read from MH i2c: E2 62 00 F3 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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 76 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 E4 00 00 00 5E 04 04 00 E4 00 00 00 57 04 04 00 E5 00 00 00 19 04 04 00 00 00 00 00 90 00 C3 [21:05: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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 76 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 E4 00 00 00 5E 04 04 00 E4 00 00 00 57 04 04 00 E5 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:05:24]wFMCommunicate OK [21:05:24]SAM_PROTO_GetFieldsCounters done [21:05:24]requested_item shift.num is exist - process it [21:05:24]requested_item shift.opened is exist - process it [21:05:24]req_shift_opened [21:05:24]FM_GetShiftState [21:05:24]SAM_PROTO_GetShiftState [21:05:24]wFMCommunicate request_size=4 [21:05:24]MH_SAM_APDU [21:05:24]CAPDU: 80 13 01 00 [21:05:24]Write to MH i2c: E2 08 00 F4 13 80 13 01 00 00 00 00 00 84 [21:05:24]Write i2c OK [21:05:24]MH_I2C_Read... [21:05:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:05:24]Read from MH i2c: E2 [21:05:24]MH_I2C_Read... [21:05:24]Read from MH i2c: E2 0E 00 [21:05:24]MH_I2C_Read... [21:05:24]Read from MH i2c: E2 0E 00 F4 13 00 09 00 01 04 26 72 66 00 00 00 00 90 00 92 [21:05:24]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [21:05:24]wFMCommunicate OK [21:05:24]SAM_PROTO_GetShiftState done [21:05:24]FM_GetShiftState done [21:05:24]req_shift_opened done [21:05:24]requested_item shift.open_date is exist - process it [21:05:24]req_shift_open_date [21:05:24]req_shift_open_date done [21:05:24]produce_requested_data done [21:05:24]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103798,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [21:05:24]process_action_free close_receipt [21:05:24]json_value_free [21:05:24]json_value_free done [21:05:24]process_json_proto returns [21:05:24]Send response to host [21:05:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103798,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [21:05:24]free response buf [21:05:24]execute_script done [21:05:24]execute_script returns [21:05:24]free content buf [21:05:24]Sock 10.Close socket [21:05:24]Sock 10.Thread stoped [21:05:27]OFD Sender: No OFD packet to send [21:05:32]OFD Sender: No OFD packet to send [21:05:37]OFD Sender: No OFD packet to send [21:05:42]OFD Sender: No OFD packet to send [21:05:47]OFD Sender: No OFD packet to send [21:05:52]OFD Sender: No OFD packet to send [21:05:57]OFD Sender: No OFD packet to send [21:06:02]OFD Sender: No OFD packet to send [21:06:07]OFD Sender: No OFD packet to send [21:06:12]OFD Sender: No OFD packet to send [21:06:17]OFD Sender: No OFD packet to send [21:06:22]OFD Sender: No OFD packet to send [21:06:25]accept exits with 9 [21:06:25]New connection [21:06:25]New thread 3066797412 created [21:06:25]Thread 3066940772 joined [21:06:25]Waiting for new connection... [21:06:25] Sock 9.Parse request [21:06:25]Sock 9.Check first char [21:06:25]Sock 9.First char is OK [21:06:25]request: POST /json_proto HTTP/1.0 [21:06:25]Method: POST [21:06:25]URL: /json_proto [21:06:25]Method is POST - this is cgi request [21:06:25]url: /json_proto [21:06:25]query_string will be loaded in cgi processing [21:06:25]execute_cgi json_proto POST (null) [21:06:25]execute_cgi path=json_proto method=POST [21:06:25]POST find Content-Length [21:06:25]Host: 172.17.38.133:8080 [21:06:25]Content-Length: 677 [21:06:25]Content-Type: application/json [21:06:25] [21:06:25]POST finish read [21:06:25]Found Content-Length = 677 [21:06:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673095", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:06:25]execute_script... [21:06:25]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673095", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:06:25]POST & json_proto [21:06:25]process_json_proto [21:06:25]json parsed OK: [21:06:25]protocol is kg_v1.0 [21:06:25]action value=close_receipt [21:06:25]process_action close_receipt [21:06:25]cmd_close_receipt [21:06:25]MH_GetDate [21:06:25]Write to MH i2c: F0 00 00 F5 13 F7 [21:06:25]Write i2c OK [21:06:25]MH_I2C_Read... [21:06:25]Read from MH i2c: F0 [21:06:25]MH_I2C_Read... [21:06:25]Read from MH i2c: F0 09 00 [21:06:25]MH_I2C_Read... [21:06:25]Read from MH i2c: F0 09 00 F5 13 00 52 48 73 66 BD 8F 7C 64 9F [21:06:25]GetLastDocTimeStamp 1718831121 [21:06:25]current date 1718831186 [21:06:25]FM_GetShiftState [21:06:25]SAM_PROTO_GetShiftState [21:06:25]wFMCommunicate request_size=4 [21:06:25]MH_SAM_APDU [21:06:25]CAPDU: 80 13 01 00 [21:06:25]Write to MH i2c: E2 08 00 F6 13 80 13 01 00 00 00 00 00 86 [21:06:25]Write i2c OK [21:06:25]MH_I2C_Read... [21:06:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:06:25]Read from MH i2c: E2 [21:06:25]MH_I2C_Read... [21:06:25]Read from MH i2c: E2 0E 00 [21:06:25]MH_I2C_Read... [21:06:25]Read from MH i2c: E2 0E 00 F6 13 00 09 00 01 04 26 72 66 00 00 00 00 90 00 94 [21:06:25]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [21:06:25]wFMCommunicate OK [21:06:25]SAM_PROTO_GetShiftState done [21:06:25]FM_GetShiftState done [21:06:25]opened in 1718756868 [21:06:25]opened+sec_in_day 1718843268 [21:06:25]quantity*price = 50065 [21:06:25]sum+1 = 50067 [21:06:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.17 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 229 19.06.2024 21:06 Смена: 353 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103799 ФПД: 21489790297869 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T210626&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103799&fm=21489790297869&tin=02508201610067®Number=0000000000092785&sum=50000 [21:06:26]StoreToDocumentArchive [21:06:26]shift 353 fd 103799 [21:06:26]save to /storage/0353/doc_00103799 [21:06:26]save last doc name /storage/0353/doc_00103799 to /storage/kkm_last_doc_name [21:06:26]save OK [21:06:26]Clear old archive folders... [21:06:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:06:26]tlvbuf is 016BD140 [21:06:26]SAM_PROTO_ClearQueue [21:06:26]wFMCommunicate request_size=4 [21:06:26]MH_SAM_APDU [21:06:26]CAPDU: 80 09 00 00 [21:06:26]Write to MH i2c: E2 08 00 03 14 80 09 00 00 00 00 00 00 89 [21:06:26]Write i2c OK [21:06:26]MH_I2C_Read... [21:06:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:06:26]Read from MH i2c: E2 [21:06:26]MH_I2C_Read... [21:06:26]Read from MH i2c: E2 03 00 [21:06:26]MH_I2C_Read... [21:06:26]Read from MH i2c: E2 03 00 03 14 00 90 00 8B [21:06:26]RAPDU: 90 00 [21:06:26]wFMCommunicate OK [21:06:26]SAM_PROTO_ClearQueue done [21:06:26]KKMCreateOFDPacket [21:06:26]OFDProtocolAddRootSTLVToBuf [21:06:26]FM_MakeSignedData [21:06:26]FM_MakeSignedData [21:06:26]SAM_PROTO_SignData [21:06:26]wFMCommunicate request_size=4 [21:06:26]MH_SAM_APDU [21:06:26]CAPDU: 80 0D 01 02 [21:06:26]Write to MH i2c: E2 08 00 04 14 80 0D 01 02 00 00 00 00 91 [21:06:26]Write i2c OK [21:06:26]MH_I2C_Read... [21:06:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:06:26]Read from MH i2c: E2 [21:06:26]MH_I2C_Read... [21:06:26]Read from MH i2c: E2 03 00 [21:06:26]MH_I2C_Read... [21:06:26]Read from MH i2c: E2 03 00 04 14 00 90 00 8C [21:06:26]RAPDU: 90 00 [21:06:26]wFMCommunicate OK [21:06:26]wFMCommunicate request_size=255 [21:06:26]MH_SAM_APDU [21:06: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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E5 00 00 00 F4 03 04 00 52 48 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 77 95 01 00 35 04 06 00 13 [21:06:26]Write to MH i2c: E2 02 01 05 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E5 00 00 00 F4 03 04 00 52 48 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 77 95 01 00 35 04 06 00 13 00 00 25 [21:06:26]Write i2c OK [21:06:26]MH_I2C_Read... [21:06:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:06:27]Read from MH i2c: E2 [21:06:27]MH_I2C_Read... [21:06:27]Read from MH i2c: E2 03 00 [21:06:27]MH_I2C_Read... [21:06:27]Read from MH i2c: E2 03 00 05 14 00 90 00 8D [21:06:27]RAPDU: 90 00 [21:06:27]wFMCommunicate OK [21:06:27]wFMCommunicate request_size=10 [21:06:27]MH_SAM_APDU [21:06:27]CAPDU: 80 0D 02 02 05 8B 7B 51 27 0D [21:06:27]Write to MH i2c: E2 0D 00 06 14 80 0D 02 02 05 00 8B 7B 51 27 0D 00 00 29 [21:06:27]Write i2c OK [21:06:27]MH_I2C_Read... [21:06:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:06:27]Read from MH i2c: E2 [21:06:27]MH_I2C_Read... [21:06:27]Read from MH i2c: E2 03 00 [21:06:27]MH_I2C_Read... [21:06:27]Read from MH i2c: E2 03 00 06 14 00 90 00 8E [21:06:27]RAPDU: 90 00 [21:06:27]wFMCommunicate OK [21:06:27]wFMCommunicate request_size=4 [21:06:27]MH_SAM_APDU [21:06:27]CAPDU: 80 0D 03 02 [21:06:27]Write to MH i2c: E2 08 00 07 14 80 0D 03 02 00 00 00 00 96 [21:06:27]Write i2c OK [21:06:27]MH_I2C_Read... [21:06:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:06:27]Read from MH i2c: E2 [21:06:27]MH_I2C_Read... [21:06:27]Read from MH i2c: E2 0B 00 [21:06:27]MH_I2C_Read... [21:06:27]Read from MH i2c: E2 0B 00 07 14 00 98 F9 07 5C 80 3E FE 65 90 00 AC [21:06:27]RAPDU: 98 F9 07 5C 80 3E FE 65 90 00 [21:06:27]wFMCommunicate OK [21:06:27]SAM_PROTO_SignData done [21:06:27]FM_MakeSignedData done [21:06:27]CreateOFDProtocolMessage [21:06:27]wFMCommunicate request_size=4 [21:06:27]MH_SAM_APDU [21:06:27]CAPDU: 80 11 00 00 [21:06:27]Write to MH i2c: E2 08 00 08 14 80 11 00 00 00 00 00 00 96 [21:06:27]Write i2c OK [21:06:27]MH_I2C_Read... [21:06:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:06:27]Read from MH i2c: E2 [21:06:27]MH_I2C_Read... [21:06:27]Read from MH i2c: E2 17 00 [21:06:27]MH_I2C_Read... [21:06:27]Read from MH i2c: E2 17 00 08 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 E9 [21:06:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [21:06:27]wFMCommunicate OK [21:06:27]CreateOFDProtocolMessage done [21:06:27]OFDSenderStorePacket 103799 [21:06:27]StoreOFDPacket docnum=103799 [21:06:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 31 CE 07 01 3D 3E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E5 00 00 00 F4 03 04 00 52 48 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 77 95 01 00 35 04 06 00 13 8B 7B 51 27 0D 98 F9 07 5C 80 3E FE 65 [21:06:27]CheckFolder [21:06:27]dirname=/storage/ofd_packets [21:06:27]CheckFolder done [21:06:27]ProducePacketName [21:06:27]name=ofd_packets/00103799 [21:06:27]NVStorageSaveData ofd_packets/00103799 [21:06:27]File name is /storage/ofd_packets/00103799 [21:06:27]Write 301 bytes [21:06:27]NVStorageSaveData done [21:06:27]OFDSenderStorePacket done [21:06:27]KKMCreateOFDPacket done [21:06:27]NVStorageSaveData kkm_last_timestamp [21:06:27]File name is /storage/kkm_last_timestamp [21:06:27]Write 4 bytes [21:06:27]NVStorageSaveData done [21:06:27]ExternCall_PrintAddStr [21:06:27]wPrintStart [21:06:27]Write to MH i2c: 01 00 00 09 14 1D [21:06:27]Write i2c OK [21:06:27]MH_I2C_Read... [21:06:27]Read from MH i2c: 01 [21:06:27]MH_I2C_Read... [21:06:27]Read from MH i2c: 01 07 00 [21:06:27]MH_I2C_Read... [21:06:27]Read from MH i2c: 01 07 00 09 14 00 00 00 00 00 FF 0F 32 [21:06:27]RasterBufferAndPrint [21:06:27]line Счет N : (1)673095 [21:06:27]line ИНН: 02508201610067 [21:06:27]line Контрольно-Кассовый Чек [21:06:27]line ПРОДАЖА [21:06:27]line ТРК (МРК, ГНК) : 32 [21:06:27]line Товар: 2710124130 [21:06:27]line Аи-92-К-5 [21:06:27]line 7.540 * 66.40 [21:06:27]line = 500.66 [21:06:27]line НДС 12% НСП 1% [21:06:27]line > о реализуемом товаре [21:06:27]line ОКРУГЛЕНИЕ: -0.66 [21:06:27]line ИТОГО: 500.00 [21:06:27]line Внесено: 500.00 [21:06:27]line СДАЧА: 0.00 [21:06:27]line НСП 1% : 4.43 [21:06:27]line НДС 12% : 53.17 [21:06:27]line Наличными: 500.00 [21:06:27]line Безнал.: 0.00 [21:06:27]line Место: АЗС № 120 "Партнер Нефть" [21:06:27]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [21:06:27]line СНО: Общий режим [21:06:27]line Чек 229 19.06.2024 21:06 [21:06:27]line Смена: 353 ФФД: 1.0 [21:06:27]line ЗНМ: 0300000164 [21:06:27]line РНМ: 0000000000092785 [21:06:27]line Версия ККМ: 001 [21:06:27]line ФМ: 0000000000875093 [21:06:27]line ФД: 103799 [21:06:27]line ФПД: 21489790297869 [21:06:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T210626&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103799&fm=21489790297869&tin=02508201610067®Number=0000000000092785&sum=50000 [21:06:27]OFD Sender: Processing packet 103799 [packets to send 17, broken 16] [21:06:27]ProducePacketName [21:06:27]name=ofd_packets/00103799 [21:06:27]OFD Sender: To server: pG, [21:06:27]CommunicateWithHost lk.salyk.kg:30040 [21:06:27]ConnectInit lk.salyk.kg [21:06:27]written 0, free lines is 4095 [21:06:27]Connected sock=10 [21:06:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 31 CE 07 01 3D 3E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E5 00 00 00 F4 03 04 00 52 48 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 77 95 01 00 35 04 06 00 13 8B 7B 51 27 0D 98 F9 07 5C 80 3E FE 65 [21:06:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 73 D6 47 00 08 76 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 77 95 01 00 F4 03 04 00 DA EE 72 66 B6 04 01 00 00 42 55 0F 10 F2 02 0E 18 [21:06:28]CommunicateWithHost err = 0 [21:06:28]CheckOFDResponse [21:06:28]1017 (14) - 77093643461234 [21:06:28]1041 (16) - 0000000000875093 [21:06:28]1040 (4) - 103799 [21:06:28]1012 (4) - 19.06.2024 14:44 [21:06:28]1206 (1) - 0 [21:06:28]OFD Sender: Remove packet 103799 [21:06:28]ProducePacketName [21:06:28]name=ofd_packets/00103799 [21:06:28]NVStorageDeleteData [21:06:28]Write to MH i2c: 01 00 00 34 14 48 [21:06:28]Write i2c OK [21:06:28]MH_I2C_Read... [21:06:28]Read from MH i2c: 01 [21:06:28]MH_I2C_Read... [21:06:28]Read from MH i2c: 01 07 00 [21:06:28]MH_I2C_Read... [21:06:28]Read from MH i2c: 01 07 00 34 14 00 00 00 00 00 ED 0C 48 [21:06:28]RasterBufferAndPrint [21:06:28]line [21:06:28]line [21:06:28]line [21:06:28]line [21:06:28]line [21:06:28]written 0, free lines is 3318 [21:06:28]MH_Cut [21:06:28]Write to MH i2c: D1 01 00 3B 14 01 21 [21:06:28]Write i2c OK [21:06:28]MH_I2C_Read... [21:06:28]Read from MH i2c: D1 [21:06:28]MH_I2C_Read... [21:06:28]Read from MH i2c: D1 01 00 [21:06:28]MH_I2C_Read... [21:06:28]Read from MH i2c: D1 01 00 3B 14 00 20 [21:06:28]Write to MH i2c: 01 00 00 3C 14 50 [21:06:28]Write i2c OK [21:06:28]MH_I2C_Read... [21:06:28]OFD Sender: No OFD packet to send [21:06:28]*** Cut start [21:06:28]*** Partial cut [21:06:28]*** CUTSNS_PIN = 1 [21:06:28]*** CUTSNS_PIN = 0 [21:06:29]*** Brake cut motor [21:06:29]Read from MH i2c: 01 [21:06:29]MH_I2C_Read... [21:06:29]*** Stop cut motor [21:06:29]*** Cut end [21:06:29]Read from MH i2c: 01 07 00 [21:06:29]MH_I2C_Read... [21:06:29]Read from MH i2c: 01 07 00 3C 14 00 00 00 00 00 FF 0F 65 [21:06:29]process_action close_receipt done [21:06:29]requested_data is exist [21:06:29]produce_requested_data [21:06:29]requested_item fm.sn is exist - process it [21:06:29]wFMCommunicate request_size=4 [21:06:29]MH_SAM_APDU [21:06:29]CAPDU: 80 11 00 00 [21:06:29]Write to MH i2c: E2 08 00 3D 14 80 11 00 00 00 00 00 00 CB [21:06:29]Write i2c OK [21:06:29]MH_I2C_Read... [21:06:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:06:29]Read from MH i2c: E2 [21:06:29]MH_I2C_Read... [21:06:29]Read from MH i2c: E2 17 00 [21:06:29]MH_I2C_Read... [21:06:29]Read from MH i2c: E2 17 00 3D 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 1E [21:06:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [21:06:29]wFMCommunicate OK [21:06:29]requested_item fd.num is exist - process it [21:06:29]SAM_PROTO_GetFieldsCounters [21:06:29]wFMCommunicate request_size=4 [21:06:29]MH_SAM_APDU [21:06:29]CAPDU: 80 13 00 00 [21:06:29]Write to MH i2c: E2 08 00 3E 14 80 13 00 00 00 00 00 00 CE [21:06:29]Write i2c OK [21:06:29]MH_I2C_Read... [21:06:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:06:29]Read from MH i2c: E2 [21:06:29]MH_I2C_Read... [21:06:29]Read from MH i2c: E2 62 00 [21:06:29]MH_I2C_Read... [21:06:29]Read from MH i2c: E2 62 00 3E 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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 77 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 E5 00 00 00 5E 04 04 00 E5 00 00 00 57 04 04 00 E6 00 00 00 19 04 04 00 00 00 00 00 90 00 13 [21:06:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 77 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 E5 00 00 00 5E 04 04 00 E5 00 00 00 57 04 04 00 E6 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:06:29]wFMCommunicate OK [21:06:29]SAM_PROTO_GetFieldsCounters done [21:06:29]requested_item shift.num is exist - process it [21:06:29]requested_item shift.opened is exist - process it [21:06:29]req_shift_opened [21:06:29]FM_GetShiftState [21:06:29]SAM_PROTO_GetShiftState [21:06:29]wFMCommunicate request_size=4 [21:06:29]MH_SAM_APDU [21:06:29]CAPDU: 80 13 01 00 [21:06:29]Write to MH i2c: E2 08 00 3F 14 80 13 01 00 00 00 00 00 D0 [21:06:29]Write i2c OK [21:06:29]MH_I2C_Read... [21:06:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:06:29]Read from MH i2c: E2 [21:06:29]MH_I2C_Read... [21:06:29]Read from MH i2c: E2 0E 00 [21:06:29]MH_I2C_Read... [21:06:29]Read from MH i2c: E2 0E 00 3F 14 00 09 00 01 04 26 72 66 00 00 00 00 90 00 DE [21:06:29]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [21:06:29]wFMCommunicate OK [21:06:29]SAM_PROTO_GetShiftState done [21:06:29]FM_GetShiftState done [21:06:29]req_shift_opened done [21:06:29]requested_item shift.open_date is exist - process it [21:06:29]req_shift_open_date [21:06:29]req_shift_open_date done [21:06:29]produce_requested_data done [21:06:29]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103799,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [21:06:29]process_action_free close_receipt [21:06:29]json_value_free [21:06:29]json_value_free done [21:06:29]process_json_proto returns [21:06:29]Send response to host [21:06:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103799,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [21:06:29]free response buf [21:06:29]execute_script done [21:06:29]execute_script returns [21:06:29]free content buf [21:06:29]Sock 9.Close socket [21:06:29]Sock 9.Thread stoped [21:06:33]OFD Sender: No OFD packet to send [21:06:38]OFD Sender: No OFD packet to send [21:06:43]OFD Sender: No OFD packet to send [21:06:48]OFD Sender: No OFD packet to send [21:06:53]OFD Sender: No OFD packet to send [21:06:58]OFD Sender: No OFD packet to send [21:07:03]OFD Sender: No OFD packet to send [21:07:08]OFD Sender: No OFD packet to send [21:07:13]OFD Sender: No OFD packet to send [21:07:18]OFD Sender: No OFD packet to send [21:07:23]OFD Sender: No OFD packet to send [21:07:28]OFD Sender: No OFD packet to send [21:07:33]OFD Sender: No OFD packet to send [21:07:38]OFD Sender: No OFD packet to send [21:07:43]OFD Sender: No OFD packet to send [21:07:48]OFD Sender: No OFD packet to send [21:07:53]OFD Sender: No OFD packet to send [21:07:58]OFD Sender: No OFD packet to send [21:08:03]OFD Sender: No OFD packet to send [21:08:08]OFD Sender: No OFD packet to send [21:08:13]OFD Sender: No OFD packet to send [21:08:18]OFD Sender: No OFD packet to send [21:08:23]OFD Sender: No OFD packet to send [21:08:28]OFD Sender: No OFD packet to send [21:08:33]OFD Sender: No OFD packet to send [21:08:38]OFD Sender: No OFD packet to send [21:08:43]OFD Sender: No OFD packet to send [21:08:48]OFD Sender: No OFD packet to send [21:08:53]OFD Sender: No OFD packet to send [21:08:58]OFD Sender: No OFD packet to send [21:09:03]OFD Sender: No OFD packet to send [21:09:08]OFD Sender: No OFD packet to send [21:09:13]OFD Sender: No OFD packet to send [21:09:18]OFD Sender: No OFD packet to send [21:09:23]OFD Sender: No OFD packet to send [21:09:28]OFD Sender: No OFD packet to send [21:09:33]OFD Sender: No OFD packet to send [21:09:38]OFD Sender: No OFD packet to send [21:09:43]OFD Sender: No OFD packet to send [21:09:48]OFD Sender: No OFD packet to send [21:09:53]OFD Sender: No OFD packet to send [21:09:58]OFD Sender: No OFD packet to send [21:10:03]OFD Sender: No OFD packet to send [21:10:08]OFD Sender: No OFD packet to send [21:10:13]OFD Sender: No OFD packet to send [21:10:18]OFD Sender: No OFD packet to send [21:10:23]OFD Sender: No OFD packet to send [21:10:28]OFD Sender: No OFD packet to send [21:10:33]OFD Sender: No OFD packet to send [21:10:38]OFD Sender: No OFD packet to send [21:10:43]OFD Sender: No OFD packet to send [21:10:48]OFD Sender: No OFD packet to send [21:10:53]OFD Sender: No OFD packet to send [21:10:58]OFD Sender: No OFD packet to send [21:11:03]OFD Sender: No OFD packet to send [21:11:08]OFD Sender: No OFD packet to send [21:11:13]OFD Sender: No OFD packet to send [21:11:18]OFD Sender: No OFD packet to send [21:11:23]OFD Sender: No OFD packet to send [21:11:28]OFD Sender: No OFD packet to send [21:11:33]OFD Sender: No OFD packet to send [21:11:38]OFD Sender: No OFD packet to send [21:11:43]OFD Sender: No OFD packet to send [21:11:48]OFD Sender: No OFD packet to send [21:11:53]OFD Sender: No OFD packet to send [21:11:58]OFD Sender: No OFD packet to send [21:12:03]OFD Sender: No OFD packet to send [21:12:08]OFD Sender: No OFD packet to send [21:12:13]OFD Sender: No OFD packet to send [21:12:18]OFD Sender: No OFD packet to send [21:12:23]OFD Sender: No OFD packet to send [21:12:28]OFD Sender: No OFD packet to send [21:12:33]OFD Sender: No OFD packet to send [21:12:38]OFD Sender: No OFD packet to send [21:12:43]OFD Sender: No OFD packet to send [21:12:48]OFD Sender: No OFD packet to send [21:12:53]OFD Sender: No OFD packet to send [21:12:58]OFD Sender: No OFD packet to send [21:13:03]OFD Sender: No OFD packet to send [21:13:08]OFD Sender: No OFD packet to send [21:13:13]OFD Sender: No OFD packet to send [21:13:18]OFD Sender: No OFD packet to send [21:13:23]OFD Sender: No OFD packet to send [21:13:28]OFD Sender: No OFD packet to send [21:13:33]OFD Sender: No OFD packet to send [21:13:38]OFD Sender: No OFD packet to send [21:13:43]OFD Sender: No OFD packet to send [21:13:48]OFD Sender: No OFD packet to send [21:13:53]OFD Sender: No OFD packet to send [21:13:58]OFD Sender: No OFD packet to send [21:14:03]OFD Sender: No OFD packet to send [21:14:08]OFD Sender: No OFD packet to send [21:14:13]OFD Sender: No OFD packet to send [21:14:18]OFD Sender: No OFD packet to send [21:14:23]OFD Sender: No OFD packet to send [21:14:28]OFD Sender: No OFD packet to send [21:14:33]OFD Sender: No OFD packet to send [21:14:38]OFD Sender: No OFD packet to send [21:14:43]OFD Sender: No OFD packet to send [21:14:48]OFD Sender: No OFD packet to send [21:14:53]OFD Sender: No OFD packet to send [21:14:58]OFD Sender: No OFD packet to send [21:15:03]OFD Sender: No OFD packet to send [21:15:08]OFD Sender: No OFD packet to send [21:15:13]OFD Sender: No OFD packet to send [21:15:18]OFD Sender: No OFD packet to send [21:15:23]OFD Sender: No OFD packet to send [21:15:28]OFD Sender: No OFD packet to send [21:15:33]OFD Sender: No OFD packet to send [21:15:38]OFD Sender: No OFD packet to send [21:15:41]accept exits with 8 [21:15:41]New connection [21:15:41]New thread 3066940772 created [21:15:41]Thread 3066797412 joined [21:15:41]Waiting for new connection... [21:15:41] Sock 8.Parse request [21:15:41]Sock 8.Check first char [21:15:41]Sock 8.First char is OK [21:15:41]request: POST /json_proto HTTP/1.0 [21:15:41]Method: POST [21:15:41]URL: /json_proto [21:15:41]Method is POST - this is cgi request [21:15:41]url: /json_proto [21:15:41]query_string will be loaded in cgi processing [21:15:41]execute_cgi json_proto POST (null) [21:15:41]execute_cgi path=json_proto method=POST [21:15:41]POST find Content-Length [21:15:41]Host: 172.17.38.133:8080 [21:15:41]Content-Length: 677 [21:15:41]Content-Type: application/json [21:15:41] [21:15:41]POST finish read [21:15:41]Found Content-Length = 677 [21:15:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673096", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 9.480, "sum" : 700.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:15:41]execute_script... [21:15: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)673096", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 9.480, "sum" : 700.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:15:41]POST & json_proto [21:15:41]process_json_proto [21:15:41]json parsed OK: [21:15:41]protocol is kg_v1.0 [21:15:41]action value=close_receipt [21:15:41]process_action close_receipt [21:15:41]cmd_close_receipt [21:15:41]MH_GetDate [21:15:41]Write to MH i2c: F0 00 00 40 14 43 [21:15:41]Write i2c OK [21:15:41]MH_I2C_Read... [21:15:41]Read from MH i2c: F0 [21:15:41]MH_I2C_Read... [21:15:41]Read from MH i2c: F0 09 00 [21:15:41]MH_I2C_Read... [21:15:41]Read from MH i2c: F0 09 00 40 14 00 7E 4A 73 66 BD 8F 7C 64 19 [21:15:41]GetLastDocTimeStamp 1718831186 [21:15:41]current date 1718831742 [21:15:41]FM_GetShiftState [21:15:41]SAM_PROTO_GetShiftState [21:15:41]wFMCommunicate request_size=4 [21:15:41]MH_SAM_APDU [21:15:41]CAPDU: 80 13 01 00 [21:15:41]Write to MH i2c: E2 08 00 41 14 80 13 01 00 00 00 00 00 D2 [21:15:41]Write i2c OK [21:15:41]MH_I2C_Read... [21:15:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:15:41]Read from MH i2c: E2 [21:15:41]MH_I2C_Read... [21:15:41]Read from MH i2c: E2 0E 00 [21:15:41]MH_I2C_Read... [21:15:41]Read from MH i2c: E2 0E 00 41 14 00 09 00 01 04 26 72 66 00 00 00 00 90 00 E0 [21:15:41]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [21:15:41]wFMCommunicate OK [21:15:41]SAM_PROTO_GetShiftState done [21:15:41]FM_GetShiftState done [21:15:41]opened in 1718756868 [21:15:41]opened+sec_in_day 1718843268 [21:15:41]quantity*price = 70057 [21:15:41]sum+1 = 70058 [21:15:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.57 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.40 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 230 19.06.2024 21:15 Смена: 353 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103800 ФПД: 247965561806259 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T211543&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103800&fm=247965561806259&tin=02508201610067®Number=0000000000092785&sum=70000 [21:15:42]StoreToDocumentArchive [21:15:42]shift 353 fd 103800 [21:15:42]save to /storage/0353/doc_00103800 [21:15:42]save last doc name /storage/0353/doc_00103800 to /storage/kkm_last_doc_name [21:15:42]save OK [21:15:42]Clear old archive folders... [21:15:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:15:42]tlvbuf is 016BC060 [21:15:42]SAM_PROTO_ClearQueue [21:15:42]wFMCommunicate request_size=4 [21:15:42]MH_SAM_APDU [21:15:42]CAPDU: 80 09 00 00 [21:15:42]Write to MH i2c: E2 08 00 4E 14 80 09 00 00 00 00 00 00 D4 [21:15:42]Write i2c OK [21:15:42]MH_I2C_Read... [21:15:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:15:42]Read from MH i2c: E2 [21:15:42]MH_I2C_Read... [21:15:42]Read from MH i2c: E2 03 00 [21:15:42]MH_I2C_Read... [21:15:42]Read from MH i2c: E2 03 00 4E 14 00 90 00 D6 [21:15:42]RAPDU: 90 00 [21:15:42]wFMCommunicate OK [21:15:42]SAM_PROTO_ClearQueue done [21:15:42]KKMCreateOFDPacket [21:15:42]OFDProtocolAddRootSTLVToBuf [21:15:42]FM_MakeSignedData [21:15:42]FM_MakeSignedData [21:15:42]SAM_PROTO_SignData [21:15:42]wFMCommunicate request_size=4 [21:15:42]MH_SAM_APDU [21:15:42]CAPDU: 80 0D 01 02 [21:15:42]Write to MH i2c: E2 08 00 4F 14 80 0D 01 02 00 00 00 00 DC [21:15:42]Write i2c OK [21:15:42]MH_I2C_Read... [21:15:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:15:42]Read from MH i2c: E2 [21:15:42]MH_I2C_Read... [21:15:42]Read from MH i2c: E2 03 00 [21:15:42]MH_I2C_Read... [21:15:42]Read from MH i2c: E2 03 00 4F 14 00 90 00 D7 [21:15:42]RAPDU: 90 00 [21:15:42]wFMCommunicate OK [21:15:42]wFMCommunicate request_size=255 [21:15:42]MH_SAM_APDU [21:15:42]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 08 25 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 A9 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 10 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E6 00 00 00 F4 03 04 00 7F 4A 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 78 95 01 00 35 04 06 00 E1 [21:15:42]Write to MH i2c: E2 02 01 50 14 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 08 25 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 A9 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 10 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E6 00 00 00 F4 03 04 00 7F 4A 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 78 95 01 00 35 04 06 00 E1 00 00 4A [21:15:42]Write i2c OK [21:15:42]MH_I2C_Read... [21:15:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:15:43]Read from MH i2c: E2 [21:15:43]MH_I2C_Read... [21:15:43]Read from MH i2c: E2 03 00 [21:15:43]MH_I2C_Read... [21:15:43]Read from MH i2c: E2 03 00 50 14 00 90 00 D8 [21:15:43]RAPDU: 90 00 [21:15:43]wFMCommunicate OK [21:15:43]wFMCommunicate request_size=10 [21:15:43]MH_SAM_APDU [21:15:43]CAPDU: 80 0D 02 02 05 85 FB 3A 5D B3 [21:15:43]Write to MH i2c: E2 0D 00 51 14 80 0D 02 02 05 00 85 FB 3A 5D B3 00 00 B3 [21:15:43]Write i2c OK [21:15:43]MH_I2C_Read... [21:15:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:15:43]Read from MH i2c: E2 [21:15:43]MH_I2C_Read... [21:15:43]Read from MH i2c: E2 03 00 [21:15:43]MH_I2C_Read... [21:15:43]Read from MH i2c: E2 03 00 51 14 00 90 00 D9 [21:15:43]RAPDU: 90 00 [21:15:43]wFMCommunicate OK [21:15:43]wFMCommunicate request_size=4 [21:15:43]MH_SAM_APDU [21:15:43]CAPDU: 80 0D 03 02 [21:15:43]Write to MH i2c: E2 08 00 52 14 80 0D 03 02 00 00 00 00 E1 [21:15:43]Write i2c OK [21:15:43]MH_I2C_Read... [21:15:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:15:43]Read from MH i2c: E2 [21:15:43]MH_I2C_Read... [21:15:43]Read from MH i2c: E2 0B 00 [21:15:43]MH_I2C_Read... [21:15:43]Read from MH i2c: E2 0B 00 52 14 00 46 18 F6 38 22 C3 37 07 90 00 91 [21:15:43]RAPDU: 46 18 F6 38 22 C3 37 07 90 00 [21:15:43]wFMCommunicate OK [21:15:43]SAM_PROTO_SignData done [21:15:43]FM_MakeSignedData done [21:15:43]CreateOFDProtocolMessage [21:15:43]wFMCommunicate request_size=4 [21:15:43]MH_SAM_APDU [21:15:43]CAPDU: 80 11 00 00 [21:15:43]Write to MH i2c: E2 08 00 53 14 80 11 00 00 00 00 00 00 E1 [21:15:43]Write i2c OK [21:15:43]MH_I2C_Read... [21:15:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:15:43]Read from MH i2c: E2 [21:15:43]MH_I2C_Read... [21:15:43]Read from MH i2c: E2 17 00 [21:15:43]MH_I2C_Read... [21:15:43]Read from MH i2c: E2 17 00 53 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 34 [21:15:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [21:15:43]wFMCommunicate OK [21:15:43]CreateOFDProtocolMessage done [21:15:43]OFDSenderStorePacket 103800 [21:15:43]StoreOFDPacket docnum=103800 [21:15:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 50 09 07 01 A0 FC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 08 25 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 A9 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 10 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E6 00 00 00 F4 03 04 00 7F 4A 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 78 95 01 00 35 04 06 00 E1 85 FB 3A 5D B3 46 18 F6 38 22 C3 37 07 [21:15:43]CheckFolder [21:15:43]dirname=/storage/ofd_packets [21:15:43]CheckFolder done [21:15:43]ProducePacketName [21:15:43]name=ofd_packets/00103800 [21:15:43]NVStorageSaveData ofd_packets/00103800 [21:15:43]File name is /storage/ofd_packets/00103800 [21:15:43]Write 301 bytes [21:15:43]NVStorageSaveData done [21:15:43]OFDSenderStorePacket done [21:15:43]KKMCreateOFDPacket done [21:15:43]NVStorageSaveData kkm_last_timestamp [21:15:43]File name is /storage/kkm_last_timestamp [21:15:43]Write 4 bytes [21:15:43]NVStorageSaveData done [21:15:43]ExternCall_PrintAddStr [21:15:43]wPrintStart [21:15:43]Write to MH i2c: 01 00 00 54 14 68 [21:15:43]Write i2c OK [21:15:43]MH_I2C_Read... [21:15:43]Read from MH i2c: 01 [21:15:43]MH_I2C_Read... [21:15:43]Read from MH i2c: 01 07 00 [21:15:43]MH_I2C_Read... [21:15:43]Read from MH i2c: 01 07 00 54 14 00 00 00 00 00 FF 0F 7D [21:15:43]RasterBufferAndPrint [21:15:43]line Счет N : (1)673096 [21:15:43]line ИНН: 02508201610067 [21:15:43]line Контрольно-Кассовый Чек [21:15:43]line ПРОДАЖА [21:15:43]line ТРК (МРК, ГНК) : 31 [21:15:43]line Товар: 2710124500 [21:15:43]line Аи-95-К-5 [21:15:43]line 9.480 * 73.90 [21:15:43]line = 700.57 [21:15:43]line НДС 12% НСП 1% [21:15:43]line > о реализуемом товаре [21:15:43]line ОКРУГЛЕНИЕ: -0.57 [21:15:43]line ИТОГО: 700.00 [21:15:43]line Внесено: 700.00 [21:15:43]line СДАЧА: 0.00 [21:15:43]line НСП 1% : 6.20 [21:15:43]line НДС 12% : 74.40 [21:15:43]line Наличными: 700.00 [21:15:43]line Безнал.: 0.00 [21:15:43]line Место: АЗС № 120 "Партнер Нефть" [21:15:43]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [21:15:43]line СНО: Общий режим [21:15:43]line Чек 230 19.06.2024 21:15 [21:15:43]line Смена: 353 ФФД: 1.0 [21:15:43]line ЗНМ: 0300000164 [21:15:43]line РНМ: 0000000000092785 [21:15:43]line Версия ККМ: 001 [21:15:43]line ФМ: 0000000000875093 [21:15:43]line ФД: 103800 [21:15:43]line ФПД: 247965561806259 [21:15:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T211543&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103800&fm=247965561806259&tin=02508201610067®Number=0000000000092785&sum=70000 [21:15:43]OFD Sender: Processing packet 103800 [packets to send 17, broken 16] [21:15:43]ProducePacketName [21:15:43]name=ofd_packets/00103800 [21:15:43]OFD Sender: To server: pG, [21:15:43]CommunicateWithHost lk.salyk.kg:30040 [21:15:43]ConnectInit lk.salyk.kg [21:15:43]written 0, free lines is 4095 [21:15:43]Connected sock=10 [21:15: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 39 33 0F 01 00 00 50 09 07 01 A0 FC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 08 25 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 A9 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 10 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E6 00 00 00 F4 03 04 00 7F 4A 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 78 95 01 00 35 04 06 00 E1 85 FB 3A 5D B3 46 18 F6 38 22 C3 37 07 [21:15: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 39 33 4F 00 00 00 3E F7 47 00 D6 62 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 78 95 01 00 F4 03 04 00 06 F1 72 66 B6 04 01 00 00 74 BB E8 81 67 25 85 3E [21:15:44]CommunicateWithHost err = 0 [21:15:44]CheckOFDResponse [21:15:44]1017 (14) - 77093643461234 [21:15:44]1041 (16) - 0000000000875093 [21:15:44]1040 (4) - 103800 [21:15:44]1012 (4) - 19.06.2024 14:53 [21:15:44]1206 (1) - 0 [21:15:44]OFD Sender: Remove packet 103800 [21:15:44]ProducePacketName [21:15:44]name=ofd_packets/00103800 [21:15:44]NVStorageDeleteData [21:15:44]Write to MH i2c: 01 00 00 7F 14 93 [21:15:44]Write i2c OK [21:15:44]MH_I2C_Read... [21:15:44]Read from MH i2c: 01 [21:15:44]MH_I2C_Read... [21:15:44]Read from MH i2c: 01 07 00 [21:15:44]MH_I2C_Read... [21:15:44]Read from MH i2c: 01 07 00 7F 14 00 00 00 00 00 E9 0C 8F [21:15:44]RasterBufferAndPrint [21:15:44]line [21:15:44]line [21:15:44]line [21:15:44]line [21:15:44]line [21:15:44]written 0, free lines is 3311 [21:15:44]MH_Cut [21:15:44]Write to MH i2c: D1 01 00 86 14 01 6C [21:15:44]Write i2c OK [21:15:44]MH_I2C_Read... [21:15:44]Read from MH i2c: D1 [21:15:44]MH_I2C_Read... [21:15:44]Read from MH i2c: D1 01 00 [21:15:44]MH_I2C_Read... [21:15:44]Read from MH i2c: D1 01 00 86 14 00 6B [21:15:44]Write to MH i2c: 01 00 00 87 14 9B [21:15:44]Write i2c OK [21:15:44]MH_I2C_Read... [21:15:44]OFD Sender: No OFD packet to send [21:15:44]*** Cut start [21:15:44]*** Partial cut [21:15:44]*** CUTSNS_PIN = 1 [21:15:44]*** CUTSNS_PIN = 0 [21:15:45]*** Brake cut motor [21:15:45]Read from MH i2c: 01 [21:15:45]MH_I2C_Read... [21:15:45]*** Stop cut motor [21:15:45]*** Cut end [21:15:45]Read from MH i2c: 01 07 00 [21:15:45]MH_I2C_Read... [21:15:45]Read from MH i2c: 01 07 00 87 14 00 00 00 00 00 FF 0F B0 [21:15:45]process_action close_receipt done [21:15:45]requested_data is exist [21:15:45]produce_requested_data [21:15:45]requested_item fm.sn is exist - process it [21:15:45]wFMCommunicate request_size=4 [21:15:45]MH_SAM_APDU [21:15:45]CAPDU: 80 11 00 00 [21:15:45]Write to MH i2c: E2 08 00 88 14 80 11 00 00 00 00 00 00 16 [21:15:45]Write i2c OK [21:15:45]MH_I2C_Read... [21:15:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:15:45]Read from MH i2c: E2 [21:15:45]MH_I2C_Read... [21:15:45]Read from MH i2c: E2 17 00 [21:15:45]MH_I2C_Read... [21:15:45]Read from MH i2c: E2 17 00 88 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 69 [21:15:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [21:15:45]wFMCommunicate OK [21:15:45]requested_item fd.num is exist - process it [21:15:45]SAM_PROTO_GetFieldsCounters [21:15:45]wFMCommunicate request_size=4 [21:15:45]MH_SAM_APDU [21:15:45]CAPDU: 80 13 00 00 [21:15:45]Write to MH i2c: E2 08 00 89 14 80 13 00 00 00 00 00 00 19 [21:15:45]Write i2c OK [21:15:45]MH_I2C_Read... [21:15:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:15:45]Read from MH i2c: E2 [21:15:45]MH_I2C_Read... [21:15:45]Read from MH i2c: E2 62 00 [21:15:45]MH_I2C_Read... [21:15:45]Read from MH i2c: E2 62 00 89 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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 78 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 E6 00 00 00 5E 04 04 00 E6 00 00 00 57 04 04 00 E7 00 00 00 19 04 04 00 00 00 00 00 90 00 62 [21:15: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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 78 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 E6 00 00 00 5E 04 04 00 E6 00 00 00 57 04 04 00 E7 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:15:45]wFMCommunicate OK [21:15:45]SAM_PROTO_GetFieldsCounters done [21:15:45]requested_item shift.num is exist - process it [21:15:45]requested_item shift.opened is exist - process it [21:15:45]req_shift_opened [21:15:45]FM_GetShiftState [21:15:45]SAM_PROTO_GetShiftState [21:15:45]wFMCommunicate request_size=4 [21:15:45]MH_SAM_APDU [21:15:45]CAPDU: 80 13 01 00 [21:15:45]Write to MH i2c: E2 08 00 8A 14 80 13 01 00 00 00 00 00 1B [21:15:45]Write i2c OK [21:15:45]MH_I2C_Read... [21:15:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:15:45]Read from MH i2c: E2 [21:15:45]MH_I2C_Read... [21:15:45]Read from MH i2c: E2 0E 00 [21:15:45]MH_I2C_Read... [21:15:45]Read from MH i2c: E2 0E 00 8A 14 00 09 00 01 04 26 72 66 00 00 00 00 90 00 29 [21:15:45]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [21:15:45]wFMCommunicate OK [21:15:45]SAM_PROTO_GetShiftState done [21:15:45]FM_GetShiftState done [21:15:45]req_shift_opened done [21:15:45]requested_item shift.open_date is exist - process it [21:15:45]req_shift_open_date [21:15:45]req_shift_open_date done [21:15:45]produce_requested_data done [21:15:45]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103800,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [21:15:45]process_action_free close_receipt [21:15:45]json_value_free [21:15:45]json_value_free done [21:15:45]process_json_proto returns [21:15:45]Send response to host [21:15:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103800,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [21:15:45]free response buf [21:15:45]execute_script done [21:15:45]execute_script returns [21:15:45]free content buf [21:15:45]Sock 8.Close socket [21:15:45]Sock 8.Thread stoped [21:15:49]OFD Sender: No OFD packet to send [21:15:54]OFD Sender: No OFD packet to send [21:15:59]OFD Sender: No OFD packet to send [21:16:04]OFD Sender: No OFD packet to send [21:16:09]OFD Sender: No OFD packet to send [21:16:14]OFD Sender: No OFD packet to send [21:16:19]OFD Sender: No OFD packet to send [21:16:24]OFD Sender: No OFD packet to send [21:16:29]OFD Sender: No OFD packet to send [21:16:34]OFD Sender: No OFD packet to send [21:16:39]OFD Sender: No OFD packet to send [21:16:44]OFD Sender: No OFD packet to send [21:16:49]OFD Sender: No OFD packet to send [21:16:54]OFD Sender: No OFD packet to send [21:16:58]accept exits with 9 [21:16:58]New connection [21:16:58]New thread 3066797412 created [21:16:58]Thread 3066940772 joined [21:16:58]Waiting for new connection... [21:16:58] Sock 9.Parse request [21:16:58]Sock 9.Check first char [21:16:58]Sock 9.First char is OK [21:16:58]request: POST /json_proto HTTP/1.0 [21:16:58]Method: POST [21:16:58]URL: /json_proto [21:16:58]Method is POST - this is cgi request [21:16:58]url: /json_proto [21:16:58]query_string will be loaded in cgi processing [21:16:58]execute_cgi json_proto POST (null) [21:16:58]execute_cgi path=json_proto method=POST [21:16:58]POST find Content-Length [21:16:58]Host: 172.17.38.133:8080 [21:16:58]Content-Length: 678 [21:16:58]Content-Type: application/json [21:16:58] [21:16:58]POST finish read [21:16:58]Found Content-Length = 678 [21:16:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673097", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 10.550, "sum" : 700.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:16:58]execute_script... [21:16: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)673097", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 10.550, "sum" : 700.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:16:58]POST & json_proto [21:16:58]process_json_proto [21:16:58]json parsed OK: [21:16:58]protocol is kg_v1.0 [21:16:58]action value=close_receipt [21:16:58]process_action close_receipt [21:16:58]cmd_close_receipt [21:16:58]MH_GetDate [21:16:58]Write to MH i2c: F0 00 00 8B 14 8E [21:16:58]Write i2c OK [21:16:58]MH_I2C_Read... [21:16:58]Read from MH i2c: F0 [21:16:58]MH_I2C_Read... [21:16:58]Read from MH i2c: F0 09 00 [21:16:58]MH_I2C_Read... [21:16:58]Read from MH i2c: F0 09 00 8B 14 00 CB 4A 73 66 BD 8F 7C 64 B1 [21:16:58]GetLastDocTimeStamp 1718831743 [21:16:58]current date 1718831819 [21:16:58]FM_GetShiftState [21:16:58]SAM_PROTO_GetShiftState [21:16:58]wFMCommunicate request_size=4 [21:16:58]MH_SAM_APDU [21:16:58]CAPDU: 80 13 01 00 [21:16:58]Write to MH i2c: E2 08 00 8C 14 80 13 01 00 00 00 00 00 1D [21:16:58]Write i2c OK [21:16:58]MH_I2C_Read... [21:16:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:16:58]Read from MH i2c: E2 [21:16:58]MH_I2C_Read... [21:16:58]Read from MH i2c: E2 0E 00 [21:16:58]MH_I2C_Read... [21:16:58]Read from MH i2c: E2 0E 00 8C 14 00 09 00 01 04 26 72 66 00 00 00 00 90 00 2B [21:16:58]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [21:16:58]wFMCommunicate OK [21:16:58]SAM_PROTO_GetShiftState done [21:16:58]FM_GetShiftState done [21:16:58]opened in 1718756868 [21:16:58]opened+sec_in_day 1718843268 [21:16:58]quantity*price = 70052 [21:16:58]sum+1 = 70053 [21:16:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.52 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.39 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 231 19.06.2024 21:16 Смена: 353 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103801 ФПД: 278534936788682 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T211659&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103801&fm=278534936788682&tin=02508201610067®Number=0000000000092785&sum=70000 [21:16:59]StoreToDocumentArchive [21:16:59]shift 353 fd 103801 [21:16:59]save to /storage/0353/doc_00103801 [21:16:59]save last doc name /storage/0353/doc_00103801 to /storage/kkm_last_doc_name [21:16:59]save OK [21:16:59]Clear old archive folders... [21:16:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:16:59]tlvbuf is B6F52710 [21:16:59]SAM_PROTO_ClearQueue [21:16:59]wFMCommunicate request_size=4 [21:16:59]MH_SAM_APDU [21:16:59]CAPDU: 80 09 00 00 [21:16:59]Write to MH i2c: E2 08 00 99 14 80 09 00 00 00 00 00 00 1F [21:16:59]Write i2c OK [21:16:59]MH_I2C_Read... [21:16:59]OFD Sender: No OFD packet to send [21:16:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:16:59]Read from MH i2c: E2 [21:16:59]MH_I2C_Read... [21:16:59]Read from MH i2c: E2 03 00 [21:16:59]MH_I2C_Read... [21:16:59]Read from MH i2c: E2 03 00 99 14 00 90 00 21 [21:16:59]RAPDU: 90 00 [21:16:59]wFMCommunicate OK [21:16:59]SAM_PROTO_ClearQueue done [21:16:59]KKMCreateOFDPacket [21:16:59]OFDProtocolAddRootSTLVToBuf [21:16:59]FM_MakeSignedData [21:16:59]FM_MakeSignedData [21:16:59]SAM_PROTO_SignData [21:16:59]wFMCommunicate request_size=4 [21:16:59]MH_SAM_APDU [21:16:59]CAPDU: 80 0D 01 02 [21:16:59]Write to MH i2c: E2 08 00 9A 14 80 0D 01 02 00 00 00 00 27 [21:16:59]Write i2c OK [21:16:59]MH_I2C_Read... [21:16:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:16:59]Read from MH i2c: E2 [21:16:59]MH_I2C_Read... [21:16:59]Read from MH i2c: E2 03 00 [21:16:59]MH_I2C_Read... [21:16:59]Read from MH i2c: E2 03 00 9A 14 00 90 00 22 [21:16:59]RAPDU: 90 00 [21:16:59]wFMCommunicate OK [21:16:59]wFMCommunicate request_size=255 [21:16:59]MH_SAM_APDU [21:16: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 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E7 00 00 00 F4 03 04 00 CB 4A 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 79 95 01 00 35 04 06 00 FD [21:16:59]Write to MH i2c: E2 02 01 9B 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 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E7 00 00 00 F4 03 04 00 CB 4A 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 79 95 01 00 35 04 06 00 FD 00 00 36 [21:16:59]Write i2c OK [21:16:59]MH_I2C_Read... [21:16:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:16:59]Read from MH i2c: E2 [21:16:59]MH_I2C_Read... [21:16:59]Read from MH i2c: E2 03 00 [21:16:59]MH_I2C_Read... [21:16:59]Read from MH i2c: E2 03 00 9B 14 00 90 00 23 [21:16:59]RAPDU: 90 00 [21:16:59]wFMCommunicate OK [21:16:59]wFMCommunicate request_size=10 [21:16:59]MH_SAM_APDU [21:16:59]CAPDU: 80 0D 02 02 05 53 77 F6 FE CA [21:16:59]Write to MH i2c: E2 0D 00 9C 14 80 0D 02 02 05 00 53 77 F6 FE CA 00 00 BC [21:16:59]Write i2c OK [21:16:59]MH_I2C_Read... [21:17:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:17:00]Read from MH i2c: E2 [21:17:00]MH_I2C_Read... [21:17:00]Read from MH i2c: E2 03 00 [21:17:00]MH_I2C_Read... [21:17:00]Read from MH i2c: E2 03 00 9C 14 00 90 00 24 [21:17:00]RAPDU: 90 00 [21:17:00]wFMCommunicate OK [21:17:00]wFMCommunicate request_size=4 [21:17:00]MH_SAM_APDU [21:17:00]CAPDU: 80 0D 03 02 [21:17:00]Write to MH i2c: E2 08 00 9D 14 80 0D 03 02 00 00 00 00 2C [21:17:00]Write i2c OK [21:17:00]MH_I2C_Read... [21:17:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:17:00]Read from MH i2c: E2 [21:17:00]MH_I2C_Read... [21:17:00]Read from MH i2c: E2 0B 00 [21:17:00]MH_I2C_Read... [21:17:00]Read from MH i2c: E2 0B 00 9D 14 00 02 28 6D 2B 3A 42 A8 AA 90 00 BD [21:17:00]RAPDU: 02 28 6D 2B 3A 42 A8 AA 90 00 [21:17:00]wFMCommunicate OK [21:17:00]SAM_PROTO_SignData done [21:17:00]FM_MakeSignedData done [21:17:00]CreateOFDProtocolMessage [21:17:00]wFMCommunicate request_size=4 [21:17:00]MH_SAM_APDU [21:17:00]CAPDU: 80 11 00 00 [21:17:00]Write to MH i2c: E2 08 00 9E 14 80 11 00 00 00 00 00 00 2C [21:17:00]Write i2c OK [21:17:00]MH_I2C_Read... [21:17:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:17:00]Read from MH i2c: E2 [21:17:00]MH_I2C_Read... [21:17:00]Read from MH i2c: E2 17 00 [21:17:00]MH_I2C_Read... [21:17:00]Read from MH i2c: E2 17 00 9E 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 7F [21:17:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [21:17:00]wFMCommunicate OK [21:17:00]CreateOFDProtocolMessage done [21:17:00]OFDSenderStorePacket 103801 [21:17:00]StoreOFDPacket docnum=103801 [21:17:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 5B BF 07 01 83 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 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E7 00 00 00 F4 03 04 00 CB 4A 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 79 95 01 00 35 04 06 00 FD 53 77 F6 FE CA 02 28 6D 2B 3A 42 A8 AA [21:17:00]CheckFolder [21:17:00]dirname=/storage/ofd_packets [21:17:00]CheckFolder done [21:17:00]ProducePacketName [21:17:00]name=ofd_packets/00103801 [21:17:00]NVStorageSaveData ofd_packets/00103801 [21:17:00]File name is /storage/ofd_packets/00103801 [21:17:00]Write 301 bytes [21:17:00]NVStorageSaveData done [21:17:00]OFDSenderStorePacket done [21:17:00]KKMCreateOFDPacket done [21:17:00]NVStorageSaveData kkm_last_timestamp [21:17:00]File name is /storage/kkm_last_timestamp [21:17:00]Write 4 bytes [21:17:00]NVStorageSaveData done [21:17:00]ExternCall_PrintAddStr [21:17:00]wPrintStart [21:17:00]Write to MH i2c: 01 00 00 9F 14 B3 [21:17:00]Write i2c OK [21:17:00]MH_I2C_Read... [21:17:00]Read from MH i2c: 01 [21:17:00]MH_I2C_Read... [21:17:00]Read from MH i2c: 01 07 00 [21:17:00]MH_I2C_Read... [21:17:00]Read from MH i2c: 01 07 00 9F 14 00 00 00 00 00 FF 0F C8 [21:17:00]RasterBufferAndPrint [21:17:00]line Счет N : (1)673097 [21:17:00]line ИНН: 02508201610067 [21:17:00]line Контрольно-Кассовый Чек [21:17:00]line ПРОДАЖА [21:17:00]line ТРК (МРК, ГНК) : 42 [21:17:00]line Товар: 2710124130 [21:17:00]line Аи-92-К-5 [21:17:00]line 10.550 * 66.40 [21:17:00]line = 700.52 [21:17:00]line НДС 12% НСП 1% [21:17:00]line > о реализуемом товаре [21:17:00]line ОКРУГЛЕНИЕ: -0.52 [21:17:00]line ИТОГО: 700.00 [21:17:00]line Внесено: 700.00 [21:17:00]line СДАЧА: 0.00 [21:17:00]line НСП 1% : 6.20 [21:17:00]line НДС 12% : 74.39 [21:17:00]line Наличными: 700.00 [21:17:00]line Безнал.: 0.00 [21:17:00]line Место: АЗС № 120 "Партнер Нефть" [21:17:00]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [21:17:00]line СНО: Общий режим [21:17:00]line Чек 231 19.06.2024 21:16 [21:17:00]line Смена: 353 ФФД: 1.0 [21:17:00]line ЗНМ: 0300000164 [21:17:00]line РНМ: 0000000000092785 [21:17:00]line Версия ККМ: 001 [21:17:00]line ФМ: 0000000000875093 [21:17:00]line ФД: 103801 [21:17:00]line ФПД: 278534936788682 [21:17:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T211659&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103801&fm=278534936788682&tin=02508201610067®Number=0000000000092785&sum=70000 [21:17:00]OFD Sender: Processing packet 103801 [packets to send 17, broken 16] [21:17:00]ProducePacketName [21:17:00]name=ofd_packets/00103801 [21:17:00]OFD Sender: To server: pG, [21:17:00]CommunicateWithHost lk.salyk.kg:30040 [21:17:00]ConnectInit lk.salyk.kg [21:17:00]written 0, free lines is 4095 [21:17:00]Connected sock=10 [21:17: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 39 33 0F 01 00 00 5B BF 07 01 83 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 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E7 00 00 00 F4 03 04 00 CB 4A 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 79 95 01 00 35 04 06 00 FD 53 77 F6 FE CA 02 28 6D 2B 3A 42 A8 AA [21:17: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 39 33 4F 00 00 00 7D A5 47 00 56 BC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 79 95 01 00 F4 03 04 00 53 F1 72 66 B6 04 01 00 00 59 7D 42 C2 76 DA D2 75 [21:17:00]CommunicateWithHost err = 0 [21:17:00]CheckOFDResponse [21:17:00]1017 (14) - 77093643461234 [21:17:00]1041 (16) - 0000000000875093 [21:17:00]1040 (4) - 103801 [21:17:00]1012 (4) - 19.06.2024 14:55 [21:17:00]1206 (1) - 0 [21:17:00]OFD Sender: Remove packet 103801 [21:17:00]ProducePacketName [21:17:00]name=ofd_packets/00103801 [21:17:00]NVStorageDeleteData [21:17:00]Write to MH i2c: 01 00 00 CA 14 DE [21:17:00]Write i2c OK [21:17:00]MH_I2C_Read... [21:17:00]Read from MH i2c: 01 [21:17:00]MH_I2C_Read... [21:17:00]Read from MH i2c: 01 07 00 [21:17:00]MH_I2C_Read... [21:17:00]Read from MH i2c: 01 07 00 CA 14 00 00 00 00 00 E8 0C D9 [21:17:00]RasterBufferAndPrint [21:17:00]line [21:17:00]line [21:17:00]line [21:17:00]line [21:17:00]line [21:17:00]written 0, free lines is 3310 [21:17:00]MH_Cut [21:17:00]Write to MH i2c: D1 01 00 D1 14 01 B7 [21:17:00]Write i2c OK [21:17:00]MH_I2C_Read... [21:17:00]Read from MH i2c: D1 [21:17:00]MH_I2C_Read... [21:17:00]Read from MH i2c: D1 01 00 [21:17:00]MH_I2C_Read... [21:17:00]Read from MH i2c: D1 01 00 D1 14 00 B6 [21:17:00]Write to MH i2c: 01 00 00 D2 14 E6 [21:17:00]Write i2c OK [21:17:00]MH_I2C_Read... [21:17:01]OFD Sender: No OFD packet to send [21:17:01]*** Cut start [21:17:01]*** Partial cut [21:17:01]*** CUTSNS_PIN = 1 [21:17:01]*** CUTSNS_PIN = 0 [21:17:01]*** Brake cut motor [21:17:02]Read from MH i2c: 01 [21:17:02]MH_I2C_Read... [21:17:02]*** Stop cut motor [21:17:02]*** Cut end [21:17:02]Read from MH i2c: 01 07 00 [21:17:02]MH_I2C_Read... [21:17:02]Read from MH i2c: 01 07 00 D2 14 00 00 00 00 00 FF 0F FB [21:17:02]process_action close_receipt done [21:17:02]requested_data is exist [21:17:02]produce_requested_data [21:17:02]requested_item fm.sn is exist - process it [21:17:02]wFMCommunicate request_size=4 [21:17:02]MH_SAM_APDU [21:17:02]CAPDU: 80 11 00 00 [21:17:02]Write to MH i2c: E2 08 00 D3 14 80 11 00 00 00 00 00 00 61 [21:17:02]Write i2c OK [21:17:02]MH_I2C_Read... [21:17:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:17:02]Read from MH i2c: E2 [21:17:02]MH_I2C_Read... [21:17:02]Read from MH i2c: E2 17 00 [21:17:02]MH_I2C_Read... [21:17:02]Read from MH i2c: E2 17 00 D3 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 B4 [21:17:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [21:17:02]wFMCommunicate OK [21:17:02]requested_item fd.num is exist - process it [21:17:02]SAM_PROTO_GetFieldsCounters [21:17:02]wFMCommunicate request_size=4 [21:17:02]MH_SAM_APDU [21:17:02]CAPDU: 80 13 00 00 [21:17:02]Write to MH i2c: E2 08 00 D4 14 80 13 00 00 00 00 00 00 64 [21:17:02]Write i2c OK [21:17:02]MH_I2C_Read... [21:17:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:17:02]Read from MH i2c: E2 [21:17:02]MH_I2C_Read... [21:17:02]Read from MH i2c: E2 62 00 [21:17:02]MH_I2C_Read... [21:17:02]Read from MH i2c: E2 62 00 D4 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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 79 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 E7 00 00 00 5E 04 04 00 E7 00 00 00 57 04 04 00 E8 00 00 00 19 04 04 00 00 00 00 00 90 00 B1 [21:17:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 79 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 E7 00 00 00 5E 04 04 00 E7 00 00 00 57 04 04 00 E8 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:17:02]wFMCommunicate OK [21:17:02]SAM_PROTO_GetFieldsCounters done [21:17:02]requested_item shift.num is exist - process it [21:17:02]requested_item shift.opened is exist - process it [21:17:02]req_shift_opened [21:17:02]FM_GetShiftState [21:17:02]SAM_PROTO_GetShiftState [21:17:02]wFMCommunicate request_size=4 [21:17:02]MH_SAM_APDU [21:17:02]CAPDU: 80 13 01 00 [21:17:02]Write to MH i2c: E2 08 00 D5 14 80 13 01 00 00 00 00 00 66 [21:17:02]Write i2c OK [21:17:02]MH_I2C_Read... [21:17:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:17:02]Read from MH i2c: E2 [21:17:02]MH_I2C_Read... [21:17:02]Read from MH i2c: E2 0E 00 [21:17:02]MH_I2C_Read... [21:17:02]Read from MH i2c: E2 0E 00 D5 14 00 09 00 01 04 26 72 66 00 00 00 00 90 00 74 [21:17:02]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [21:17:02]wFMCommunicate OK [21:17:02]SAM_PROTO_GetShiftState done [21:17:02]FM_GetShiftState done [21:17:02]req_shift_opened done [21:17:02]requested_item shift.open_date is exist - process it [21:17:02]req_shift_open_date [21:17:02]req_shift_open_date done [21:17:02]produce_requested_data done [21:17:02]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103801,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [21:17:02]process_action_free close_receipt [21:17:02]json_value_free [21:17:02]json_value_free done [21:17:02]process_json_proto returns [21:17:02]Send response to host [21:17:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103801,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [21:17:02]free response buf [21:17:02]execute_script done [21:17:02]execute_script returns [21:17:02]free content buf [21:17:02]Sock 9.Close socket [21:17:02]Sock 9.Thread stoped [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:02]accept exits with 8 [21:22:02]New connection [21:22:02]New thread 3066940772 created [21:22:02]Thread 3066797412 joined [21:22:02]Waiting for new connection... [21:22:02] Sock 8.Parse request [21:22:02]Sock 8.Check first char [21:22:02]Sock 8.First char is OK [21:22:02]request: POST /json_proto HTTP/1.0 [21:22:02]Method: POST [21:22:02]URL: /json_proto [21:22:02]Method is POST - this is cgi request [21:22:02]url: /json_proto [21:22:02]query_string will be loaded in cgi processing [21:22:02]execute_cgi json_proto POST (null) [21:22:02]execute_cgi path=json_proto method=POST [21:22:02]POST find Content-Length [21:22:02]Host: 172.17.38.133:8080 [21:22:02]Content-Length: 1206 [21:22:02]Content-Type: application/json [21:22:02] [21:22:02]POST finish read [21:22:02]Found Content-Length = 1206 [21:22:02]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 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. \u000A\u0421\u0447\u0435\u0442 N : (1)673098\u000A19.06.2024 20:59\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 41\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124500\u000A\u0410\u0438-95-\u041A-5\u000A 13.530 x 73.90\u000A\u0418\u0422\u041E\u0413: 999.87\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\u000A76487\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:22:02]execute_script... [21:22:02]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 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. \u000A\u0421\u0447\u0435\u0442 N : (1)673098\u000A19.06.2024 20:59\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 41\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124500\u000A\u0410\u0438-95-\u041A-5\u000A 13.530 x 73.90\u000A\u0418\u0422\u041E\u0413: 999.87\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\u000A76487\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:22:02]POST & json_proto [21:22:02]process_json_proto [21:22:02]json parsed OK: [21:22:02]protocol is kg_v1.0 [21:22:02]action value=print_text [21:22:02]process_action print_text [21:22:02]cmd_print_text [21:22:02]ExternCall_PrintAddStr [21:22:02]wPrintStart [21:22:02]Write to MH i2c: 01 00 00 D6 14 EA [21:22:02]Write i2c OK [21:22:02]MH_I2C_Read... [21:22:02]Read from MH i2c: 01 [21:22:02]MH_I2C_Read... [21:22:02]Read from MH i2c: 01 07 00 [21:22:02]MH_I2C_Read... [21:22:02]Read from MH i2c: 01 07 00 D6 14 00 00 00 00 00 FF 0F FF [21:22:02]RasterBufferAndPrint [21:22:02]line *****ТОВАРНЫЙ ЧЕК***** [21:22:02]line АЗС 120 [21:22:02]line Партнер нефть [21:22:02]line 02508201610067 [21:22:02]line Кассир : Байбугуева Г. [21:22:02]line Счет N : (1)673098 [21:22:02]line 19.06.2024 20:59 [21:22:02]line ПРОДАЖА [21:22:02]line ТРК (МРК, ГНК): 41 [21:22:02]line Вид ГСМ : 2710124500 [21:22:02]line Аи-95-К-5 [21:22:02]line 13.530 x 73.90 [21:22:02]line ИТОГ: 999.87 [21:22:02]line Тип оплаты: Талоны: Топливная Карта [21:22:02]line 76487 [21:22:02]line ______________________ [21:22:02]line (подпись) [21:22:02]written 0, free lines is 4095 [21:22:02]Write to MH i2c: 01 00 00 EA 14 FE [21:22:02]Write i2c OK [21:22:02]MH_I2C_Read... [21:22:02]Read from MH i2c: 01 [21:22:02]MH_I2C_Read... [21:22:02]Read from MH i2c: 01 07 00 [21:22:02]MH_I2C_Read... [21:22:02]Read from MH i2c: 01 07 00 EA 14 00 00 00 00 00 13 0E 26 [21:22:02]RasterBufferAndPrint [21:22:02]line [21:22:02]line [21:22:02]line [21:22:02]line [21:22:02]line [21:22:02]written 0, free lines is 3605 [21:22:02]MH_Cut [21:22:02]Write to MH i2c: D1 01 00 F1 14 01 D7 [21:22:02]Write i2c OK [21:22:02]MH_I2C_Read... [21:22:02]Read from MH i2c: D1 [21:22:02]MH_I2C_Read... [21:22:02]Read from MH i2c: D1 01 00 [21:22:02]MH_I2C_Read... [21:22:02]Read from MH i2c: D1 01 00 F1 14 00 D6 [21:22:02]Write to MH i2c: 01 00 00 F2 14 06 [21:22:02]Write i2c OK [21:22:02]MH_I2C_Read... [21:22:03]*** Cut start [21:22:03]*** Partial cut [21:22:03]*** CUTSNS_PIN = 1 [21:22:03]*** CUTSNS_PIN = 0 [21:22:03]*** Brake cut motor [21:22:04]Read from MH i2c: 01 [21:22:04]MH_I2C_Read... [21:22:04]*** Stop cut motor [21:22:04]*** Cut end [21:22:04]Read from MH i2c: 01 07 00 [21:22:04]MH_I2C_Read... [21:22:04]Read from MH i2c: 01 07 00 F2 14 00 00 00 00 00 FF 0F 1B [21:22:04]process_action print_text done [21:22:04]requested_data is exist [21:22:04]produce_requested_data [21:22:04]requested_item fm.sn is exist - process it [21:22:04]wFMCommunicate request_size=4 [21:22:04]MH_SAM_APDU [21:22:04]CAPDU: 80 11 00 00 [21:22:04]Write to MH i2c: E2 08 00 F3 14 80 11 00 00 00 00 00 00 81 [21:22:04]Write i2c OK [21:22:04]MH_I2C_Read... [21:22:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:22:04]Read from MH i2c: E2 [21:22:04]MH_I2C_Read... [21:22:04]Read from MH i2c: E2 17 00 [21:22:04]MH_I2C_Read... [21:22:04]Read from MH i2c: E2 17 00 F3 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 D4 [21:22:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [21:22:04]wFMCommunicate OK [21:22:04]requested_item fd.num is exist - process it [21:22:04]SAM_PROTO_GetFieldsCounters [21:22:04]wFMCommunicate request_size=4 [21:22:04]MH_SAM_APDU [21:22:04]CAPDU: 80 13 00 00 [21:22:04]Write to MH i2c: E2 08 00 F4 14 80 13 00 00 00 00 00 00 84 [21:22:04]Write i2c OK [21:22:04]MH_I2C_Read... [21:22:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:22:04]Read from MH i2c: E2 [21:22:04]MH_I2C_Read... [21:22:04]Read from MH i2c: E2 62 00 [21:22:04]MH_I2C_Read... [21:22:04]Read from MH i2c: E2 62 00 F4 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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 79 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 E7 00 00 00 5E 04 04 00 E7 00 00 00 57 04 04 00 E8 00 00 00 19 04 04 00 00 00 00 00 90 00 D1 [21:22: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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 79 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 E7 00 00 00 5E 04 04 00 E7 00 00 00 57 04 04 00 E8 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:22:04]wFMCommunicate OK [21:22:04]SAM_PROTO_GetFieldsCounters done [21:22:04]requested_item shift.num is exist - process it [21:22:04]requested_item shift.opened is exist - process it [21:22:04]req_shift_opened [21:22:04]FM_GetShiftState [21:22:04]SAM_PROTO_GetShiftState [21:22:04]wFMCommunicate request_size=4 [21:22:04]MH_SAM_APDU [21:22:04]CAPDU: 80 13 01 00 [21:22:04]Write to MH i2c: E2 08 00 F5 14 80 13 01 00 00 00 00 00 86 [21:22:04]Write i2c OK [21:22:04]MH_I2C_Read... [21:22:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:22:04]Read from MH i2c: E2 [21:22:04]MH_I2C_Read... [21:22:04]Read from MH i2c: E2 0E 00 [21:22:04]MH_I2C_Read... [21:22:04]Read from MH i2c: E2 0E 00 F5 14 00 09 00 01 04 26 72 66 00 00 00 00 90 00 94 [21:22:04]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [21:22:04]wFMCommunicate OK [21:22:04]SAM_PROTO_GetShiftState done [21:22:04]FM_GetShiftState done [21:22:04]req_shift_opened done [21:22:04]requested_item shift.open_date is exist - process it [21:22:04]req_shift_open_date [21:22:04]req_shift_open_date done [21:22:04]produce_requested_data done [21:22:04]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103801,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [21:22:04]process_action_free print_text [21:22:04]json_value_free [21:22:04]json_value_free done [21:22:04]process_json_proto returns [21:22:04]Send response to host [21:22:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103801,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [21:22:04]free response buf [21:22:04]execute_script done [21:22:04]execute_script returns [21:22:04]free content buf [21:22:04]Sock 8.Close socket [21:22:04]Sock 8.Thread stoped [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:49]accept exits with 9 [21:22:49]New connection [21:22:49]New thread 3066797412 created [21:22:49]Thread 3066940772 joined [21:22:49]Waiting for new connection... [21:22:49] Sock 9.Parse request [21:22:49]Sock 9.Check first char [21:22:49]Sock 9.First char is OK [21:22:49]request: POST /json_proto HTTP/1.0 [21:22:49]Method: POST [21:22:49]URL: /json_proto [21:22:49]Method is POST - this is cgi request [21:22:49]url: /json_proto [21:22:49]query_string will be loaded in cgi processing [21:22:49]execute_cgi json_proto POST (null) [21:22:49]execute_cgi path=json_proto method=POST [21:22:49]POST find Content-Length [21:22:49]Host: 172.17.38.133:8080 [21:22:49]Content-Length: 1205 [21:22:49]Content-Type: application/json [21:22:49] [21:22:49]POST finish read [21:22:49]Found Content-Length = 1205 [21:22:49]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 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. \u000A\u0421\u0447\u0435\u0442 N : (1)673099\u000A19.06.2024 21:00\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 32\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 66.40\u000A\u0418\u0422\u041E\u0413: 1328.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\u000A4101432:4101433\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:22:49]execute_script... [21:22:49]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 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. \u000A\u0421\u0447\u0435\u0442 N : (1)673099\u000A19.06.2024 21:00\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 32\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 66.40\u000A\u0418\u0422\u041E\u0413: 1328.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\u000A4101432:4101433\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:22:49]POST & json_proto [21:22:49]process_json_proto [21:22:49]json parsed OK: [21:22:49]protocol is kg_v1.0 [21:22:49]action value=print_text [21:22:49]process_action print_text [21:22:49]cmd_print_text [21:22:49]ExternCall_PrintAddStr [21:22:49]wPrintStart [21:22:49]Write to MH i2c: 01 00 00 F6 14 0A [21:22:49]Write i2c OK [21:22:49]MH_I2C_Read... [21:22:49]Read from MH i2c: 01 [21:22:49]MH_I2C_Read... [21:22:49]Read from MH i2c: 01 07 00 [21:22:49]MH_I2C_Read... [21:22:49]Read from MH i2c: 01 07 00 F6 14 00 00 00 00 00 FF 0F 1F [21:22:49]RasterBufferAndPrint [21:22:49]line *****ТОВАРНЫЙ ЧЕК***** [21:22:49]line АЗС 120 [21:22:49]line Партнер нефть [21:22:49]line 02508201610067 [21:22:49]line Кассир : Байбугуева Г. [21:22:49]line Счет N : (1)673099 [21:22:49]line 19.06.2024 21:00 [21:22:49]line ПРОДАЖА [21:22:49]line ТРК (МРК, ГНК): 32 [21:22:49]line Вид ГСМ : 2710124130 [21:22:49]line Аи-92-К-5 [21:22:49]line 20.000 x 66.40 [21:22:49]line ИТОГ: 1328.00 [21:22:49]line Тип оплаты: Талоны: Партнер нефть [21:22:49]line 4101432:4101433 [21:22:49]line ______________________ [21:22:49]line (подпись) [21:22:49]written 0, free lines is 4095 [21:22:50]Write to MH i2c: 01 00 00 0A 15 1F [21:22:50]Write i2c OK [21:22:50]MH_I2C_Read... [21:22:50]Read from MH i2c: 01 [21:22:50]MH_I2C_Read... [21:22:50]Read from MH i2c: 01 07 00 [21:22:50]MH_I2C_Read... [21:22:50]Read from MH i2c: 01 07 00 0A 15 00 00 00 00 00 17 0E 4B [21:22:50]RasterBufferAndPrint [21:22:50]line [21:22:50]line [21:22:50]line [21:22:50]line [21:22:50]line [21:22:50]written 0, free lines is 3609 [21:22:50]MH_Cut [21:22:50]Write to MH i2c: D1 01 00 11 15 01 F8 [21:22:50]Write i2c OK [21:22:50]MH_I2C_Read... [21:22:50]Read from MH i2c: D1 [21:22:50]MH_I2C_Read... [21:22:50]Read from MH i2c: D1 01 00 [21:22:50]MH_I2C_Read... [21:22:50]Read from MH i2c: D1 01 00 11 15 00 F7 [21:22:50]Write to MH i2c: 01 00 00 12 15 27 [21:22:50]Write i2c OK [21:22:50]MH_I2C_Read... [21:22:50]*** Cut start [21:22:50]*** Partial cut [21:22:50]*** CUTSNS_PIN = 1 [21:22:50]*** CUTSNS_PIN = 0 [21:22:50]*** Brake cut motor [21:22:51]Read from MH i2c: 01 [21:22:51]MH_I2C_Read... [21:22:51]*** Stop cut motor [21:22:51]*** Cut end [21:22:51]Read from MH i2c: 01 07 00 [21:22:51]MH_I2C_Read... [21:22:51]Read from MH i2c: 01 07 00 12 15 00 00 00 00 00 FF 0F 3C [21:22:51]process_action print_text done [21:22:51]requested_data is exist [21:22:51]produce_requested_data [21:22:51]requested_item fm.sn is exist - process it [21:22:51]wFMCommunicate request_size=4 [21:22:51]MH_SAM_APDU [21:22:51]CAPDU: 80 11 00 00 [21:22:51]Write to MH i2c: E2 08 00 13 15 80 11 00 00 00 00 00 00 A2 [21:22:51]Write i2c OK [21:22:51]MH_I2C_Read... [21:22:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:22:51]Read from MH i2c: E2 [21:22:51]MH_I2C_Read... [21:22:51]Read from MH i2c: E2 17 00 [21:22:51]MH_I2C_Read... [21:22:51]Read from MH i2c: E2 17 00 13 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 F5 [21:22:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [21:22:51]wFMCommunicate OK [21:22:51]requested_item fd.num is exist - process it [21:22:51]SAM_PROTO_GetFieldsCounters [21:22:51]wFMCommunicate request_size=4 [21:22:51]MH_SAM_APDU [21:22:51]CAPDU: 80 13 00 00 [21:22:51]Write to MH i2c: E2 08 00 14 15 80 13 00 00 00 00 00 00 A5 [21:22:51]Write i2c OK [21:22:51]MH_I2C_Read... [21:22:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:22:51]Read from MH i2c: E2 [21:22:51]MH_I2C_Read... [21:22:51]Read from MH i2c: E2 62 00 [21:22:51]MH_I2C_Read... [21:22:51]Read from MH i2c: E2 62 00 14 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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 79 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 E7 00 00 00 5E 04 04 00 E7 00 00 00 57 04 04 00 E8 00 00 00 19 04 04 00 00 00 00 00 90 00 F2 [21:22:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 79 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 E7 00 00 00 5E 04 04 00 E7 00 00 00 57 04 04 00 E8 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:22:51]wFMCommunicate OK [21:22:51]SAM_PROTO_GetFieldsCounters done [21:22:51]requested_item shift.num is exist - process it [21:22:51]requested_item shift.opened is exist - process it [21:22:51]req_shift_opened [21:22:51]FM_GetShiftState [21:22:51]SAM_PROTO_GetShiftState [21:22:51]wFMCommunicate request_size=4 [21:22:51]MH_SAM_APDU [21:22:51]CAPDU: 80 13 01 00 [21:22:51]Write to MH i2c: E2 08 00 15 15 80 13 01 00 00 00 00 00 A7 [21:22:51]Write i2c OK [21:22:51]MH_I2C_Read... [21:22:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:22:51]Read from MH i2c: E2 [21:22:51]MH_I2C_Read... [21:22:51]Read from MH i2c: E2 0E 00 [21:22:51]MH_I2C_Read... [21:22:51]Read from MH i2c: E2 0E 00 15 15 00 09 00 01 04 26 72 66 00 00 00 00 90 00 B5 [21:22:51]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [21:22:51]wFMCommunicate OK [21:22:51]SAM_PROTO_GetShiftState done [21:22:51]FM_GetShiftState done [21:22:51]req_shift_opened done [21:22:51]requested_item shift.open_date is exist - process it [21:22:51]req_shift_open_date [21:22:51]req_shift_open_date done [21:22:51]produce_requested_data done [21:22:51]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103801,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [21:22:51]process_action_free print_text [21:22:51]json_value_free [21:22:51]json_value_free done [21:22:51]process_json_proto returns [21:22:51]Send response to host [21:22:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103801,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [21:22:51]free response buf [21:22:51]execute_script done [21:22:51]execute_script returns [21:22:51]free content buf [21:22:51]Sock 9.Close socket [21:22:51]Sock 9.Thread stoped [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:00]accept exits with 8 [21:24:00]New connection [21:24:00]New thread 3066940772 created [21:24:00]Thread 3066797412 joined [21:24:00]Waiting for new connection... [21:24:00] Sock 8.Parse request [21:24:00]Sock 8.Check first char [21:24:00]Sock 8.First char is OK [21:24:00]request: POST /json_proto HTTP/1.0 [21:24:00]Method: POST [21:24:00]URL: /json_proto [21:24:00]Method is POST - this is cgi request [21:24:00]url: /json_proto [21:24:00]query_string will be loaded in cgi processing [21:24:00]execute_cgi json_proto POST (null) [21:24:00]execute_cgi path=json_proto method=POST [21:24:00]POST find Content-Length [21:24:00]Host: 172.17.38.133:8080 [21:24:00]Content-Length: 1205 [21:24:00]Content-Type: application/json [21:24:00] [21:24:00]POST finish read [21:24:00]Found Content-Length = 1205 [21:24:00]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 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. \u000A\u0421\u0447\u0435\u0442 N : (1)673100\u000A19.06.2024 21:01\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 32\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 66.40\u000A\u0418\u0422\u041E\u0413: 1328.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\u000A4101434:4101435\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:24:00]execute_script... [21:24:00]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 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. \u000A\u0421\u0447\u0435\u0442 N : (1)673100\u000A19.06.2024 21:01\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 32\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 66.40\u000A\u0418\u0422\u041E\u0413: 1328.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\u000A4101434:4101435\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:24:00]POST & json_proto [21:24:00]process_json_proto [21:24:00]json parsed OK: [21:24:00]protocol is kg_v1.0 [21:24:00]action value=print_text [21:24:00]process_action print_text [21:24:00]cmd_print_text [21:24:00]ExternCall_PrintAddStr [21:24:00]wPrintStart [21:24:00]Write to MH i2c: 01 00 00 16 15 2B [21:24:00]Write i2c OK [21:24:00]MH_I2C_Read... [21:24:00]Read from MH i2c: 01 [21:24:00]MH_I2C_Read... [21:24:00]Read from MH i2c: 01 07 00 [21:24:00]MH_I2C_Read... [21:24:00]Read from MH i2c: 01 07 00 16 15 00 00 00 00 00 FF 0F 40 [21:24:00]RasterBufferAndPrint [21:24:00]line *****ТОВАРНЫЙ ЧЕК***** [21:24:00]line АЗС 120 [21:24:00]line Партнер нефть [21:24:00]line 02508201610067 [21:24:00]line Кассир : Байбугуева Г. [21:24:00]line Счет N : (1)673100 [21:24:00]line 19.06.2024 21:01 [21:24:00]line ПРОДАЖА [21:24:00]line ТРК (МРК, ГНК): 32 [21:24:00]line Вид ГСМ : 2710124130 [21:24:00]line Аи-92-К-5 [21:24:00]line 20.000 x 66.40 [21:24:00]line ИТОГ: 1328.00 [21:24:00]line Тип оплаты: Талоны: Партнер нефть [21:24:00]line 4101434:4101435 [21:24:00]line ______________________ [21:24:00]line (подпись) [21:24:00]written 0, free lines is 4095 [21:24:00]Write to MH i2c: 01 00 00 2A 15 3F [21:24:00]Write i2c OK [21:24:00]MH_I2C_Read... [21:24:00]Read from MH i2c: 01 [21:24:00]MH_I2C_Read... [21:24:00]Read from MH i2c: 01 07 00 [21:24:00]MH_I2C_Read... [21:24:00]Read from MH i2c: 01 07 00 2A 15 00 00 00 00 00 16 0E 6A [21:24:00]RasterBufferAndPrint [21:24:00]line [21:24:00]line [21:24:00]line [21:24:00]line [21:24:00]line [21:24:00]written 0, free lines is 3608 [21:24:00]MH_Cut [21:24:00]Write to MH i2c: D1 01 00 31 15 01 18 [21:24:00]Write i2c OK [21:24:00]MH_I2C_Read... [21:24:00]Read from MH i2c: D1 [21:24:00]MH_I2C_Read... [21:24:00]Read from MH i2c: D1 01 00 [21:24:00]MH_I2C_Read... [21:24:00]Read from MH i2c: D1 01 00 31 15 00 17 [21:24:00]Write to MH i2c: 01 00 00 32 15 47 [21:24:00]Write i2c OK [21:24:00]MH_I2C_Read... [21:24:01]*** Cut start [21:24:01]*** Partial cut [21:24:01]*** CUTSNS_PIN = 1 [21:24:01]*** CUTSNS_PIN = 0 [21:24:01]*** Brake cut motor [21:24:01]OFD Sender: No OFD packet to send [21:24:01]Read from MH i2c: 01 [21:24:01]MH_I2C_Read... [21:24:01]*** Stop cut motor [21:24:01]*** Cut end [21:24:01]Read from MH i2c: 01 07 00 [21:24:01]MH_I2C_Read... [21:24:01]Read from MH i2c: 01 07 00 32 15 00 00 00 00 00 FF 0F 5C [21:24:01]process_action print_text done [21:24:01]requested_data is exist [21:24:01]produce_requested_data [21:24:01]requested_item fm.sn is exist - process it [21:24:01]wFMCommunicate request_size=4 [21:24:01]MH_SAM_APDU [21:24:01]CAPDU: 80 11 00 00 [21:24:01]Write to MH i2c: E2 08 00 33 15 80 11 00 00 00 00 00 00 C2 [21:24:01]Write i2c OK [21:24:01]MH_I2C_Read... [21:24:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:24:01]Read from MH i2c: E2 [21:24:01]MH_I2C_Read... [21:24:01]Read from MH i2c: E2 17 00 [21:24:01]MH_I2C_Read... [21:24:01]Read from MH i2c: E2 17 00 33 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 15 [21:24:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [21:24:01]wFMCommunicate OK [21:24:01]requested_item fd.num is exist - process it [21:24:01]SAM_PROTO_GetFieldsCounters [21:24:01]wFMCommunicate request_size=4 [21:24:01]MH_SAM_APDU [21:24:01]CAPDU: 80 13 00 00 [21:24:01]Write to MH i2c: E2 08 00 34 15 80 13 00 00 00 00 00 00 C5 [21:24:01]Write i2c OK [21:24:01]MH_I2C_Read... [21:24:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:24:02]Read from MH i2c: E2 [21:24:02]MH_I2C_Read... [21:24:02]Read from MH i2c: E2 62 00 [21:24:02]MH_I2C_Read... [21:24:02]Read from MH i2c: E2 62 00 34 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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 79 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 E7 00 00 00 5E 04 04 00 E7 00 00 00 57 04 04 00 E8 00 00 00 19 04 04 00 00 00 00 00 90 00 12 [21:24:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 79 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 E7 00 00 00 5E 04 04 00 E7 00 00 00 57 04 04 00 E8 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:24:02]wFMCommunicate OK [21:24:02]SAM_PROTO_GetFieldsCounters done [21:24:02]requested_item shift.num is exist - process it [21:24:02]requested_item shift.opened is exist - process it [21:24:02]req_shift_opened [21:24:02]FM_GetShiftState [21:24:02]SAM_PROTO_GetShiftState [21:24:02]wFMCommunicate request_size=4 [21:24:02]MH_SAM_APDU [21:24:02]CAPDU: 80 13 01 00 [21:24:02]Write to MH i2c: E2 08 00 35 15 80 13 01 00 00 00 00 00 C7 [21:24:02]Write i2c OK [21:24:02]MH_I2C_Read... [21:24:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:24:02]Read from MH i2c: E2 [21:24:02]MH_I2C_Read... [21:24:02]Read from MH i2c: E2 0E 00 [21:24:02]MH_I2C_Read... [21:24:02]Read from MH i2c: E2 0E 00 35 15 00 09 00 01 04 26 72 66 00 00 00 00 90 00 D5 [21:24:02]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [21:24:02]wFMCommunicate OK [21:24:02]SAM_PROTO_GetShiftState done [21:24:02]FM_GetShiftState done [21:24:02]req_shift_opened done [21:24:02]requested_item shift.open_date is exist - process it [21:24:02]req_shift_open_date [21:24:02]req_shift_open_date done [21:24:02]produce_requested_data done [21:24:02]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103801,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [21:24:02]process_action_free print_text [21:24:02]json_value_free [21:24:02]json_value_free done [21:24:02]process_json_proto returns [21:24:02]Send response to host [21:24:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103801,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [21:24:02]free response buf [21:24:02]execute_script done [21:24:02]execute_script returns [21:24:02]free content buf [21:24:02]Sock 8.Close socket [21:24:02]Sock 8.Thread stoped [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:19]accept exits with 9 [21:28:19]New connection [21:28:19]New thread 3066797412 created [21:28:19]Thread 3066940772 joined [21:28:19]Waiting for new connection... [21:28:19] Sock 9.Parse request [21:28:19]Sock 9.Check first char [21:28:19]Sock 9.First char is OK [21:28:19]request: POST /json_proto HTTP/1.0 [21:28:19]Method: POST [21:28:19]URL: /json_proto [21:28:19]Method is POST - this is cgi request [21:28:19]url: /json_proto [21:28:19]query_string will be loaded in cgi processing [21:28:19]execute_cgi json_proto POST (null) [21:28:19]execute_cgi path=json_proto method=POST [21:28:19]POST find Content-Length [21:28:19]Host: 172.17.38.133:8080 [21:28:19]Content-Length: 1207 [21:28:19]Content-Type: application/json [21:28:19] [21:28:19]POST finish read [21:28:19]Found Content-Length = 1207 [21:28:19]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 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. \u000A\u0421\u0447\u0435\u0442 N : (1)673101\u000A19.06.2024 21:05\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 41\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124500\u000A\u0410\u0438-95-\u041A-5\u000A 13.540 x 73.90\u000A\u0418\u0422\u041E\u0413: 1000.61\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\u000A76487\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:28:19]execute_script... [21:28:19]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 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. \u000A\u0421\u0447\u0435\u0442 N : (1)673101\u000A19.06.2024 21:05\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 41\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124500\u000A\u0410\u0438-95-\u041A-5\u000A 13.540 x 73.90\u000A\u0418\u0422\u041E\u0413: 1000.61\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\u000A76487\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:28:19]POST & json_proto [21:28:19]process_json_proto [21:28:19]json parsed OK: [21:28:19]protocol is kg_v1.0 [21:28:19]action value=print_text [21:28:19]process_action print_text [21:28:19]cmd_print_text [21:28:19]ExternCall_PrintAddStr [21:28:19]wPrintStart [21:28:19]Write to MH i2c: 01 00 00 36 15 4B [21:28:19]Write i2c OK [21:28:19]MH_I2C_Read... [21:28:19]Read from MH i2c: 01 [21:28:19]MH_I2C_Read... [21:28:19]Read from MH i2c: 01 07 00 [21:28:19]MH_I2C_Read... [21:28:19]Read from MH i2c: 01 07 00 36 15 00 00 00 00 00 FF 0F 60 [21:28:19]RasterBufferAndPrint [21:28:19]line *****ТОВАРНЫЙ ЧЕК***** [21:28:19]line АЗС 120 [21:28:19]line Партнер нефть [21:28:19]line 02508201610067 [21:28:19]line Кассир : Байбугуева Г. [21:28:19]line Счет N : (1)673101 [21:28:19]line 19.06.2024 21:05 [21:28:19]line ПРОДАЖА [21:28:19]line ТРК (МРК, ГНК): 41 [21:28:19]line Вид ГСМ : 2710124500 [21:28:19]line Аи-95-К-5 [21:28:19]line 13.540 x 73.90 [21:28:19]line ИТОГ: 1000.61 [21:28:19]line Тип оплаты: Талоны: Топливная Карта [21:28:19]line 76487 [21:28:19]line ______________________ [21:28:19]line (подпись) [21:28:19]written 0, free lines is 4095 [21:28:19]Write to MH i2c: 01 00 00 4A 15 5F [21:28:19]Write i2c OK [21:28:19]MH_I2C_Read... [21:28:19]Read from MH i2c: 01 [21:28:19]MH_I2C_Read... [21:28:19]Read from MH i2c: 01 07 00 [21:28:19]MH_I2C_Read... [21:28:19]Read from MH i2c: 01 07 00 4A 15 00 00 00 00 00 11 0E 85 [21:28:19]RasterBufferAndPrint [21:28:19]line [21:28:19]line [21:28:19]line [21:28:19]line [21:28:19]line [21:28:19]written 0, free lines is 3603 [21:28:19]MH_Cut [21:28:19]Write to MH i2c: D1 01 00 51 15 01 38 [21:28:19]Write i2c OK [21:28:19]MH_I2C_Read... [21:28:19]Read from MH i2c: D1 [21:28:19]MH_I2C_Read... [21:28:19]Read from MH i2c: D1 01 00 [21:28:19]MH_I2C_Read... [21:28:19]Read from MH i2c: D1 01 00 51 15 00 37 [21:28:19]Write to MH i2c: 01 00 00 52 15 67 [21:28:19]Write i2c OK [21:28:19]MH_I2C_Read... [21:28:20]*** Cut start [21:28:20]*** Partial cut [21:28:20]*** CUTSNS_PIN = 1 [21:28:20]*** CUTSNS_PIN = 0 [21:28:20]*** Brake cut motor [21:28:20]Read from MH i2c: 01 [21:28:20]MH_I2C_Read... [21:28:20]*** Stop cut motor [21:28:20]*** Cut end [21:28:20]Read from MH i2c: 01 07 00 [21:28:20]MH_I2C_Read... [21:28:20]Read from MH i2c: 01 07 00 52 15 00 00 00 00 00 FF 0F 7C [21:28:20]process_action print_text done [21:28:20]requested_data is exist [21:28:20]produce_requested_data [21:28:20]requested_item fm.sn is exist - process it [21:28:20]wFMCommunicate request_size=4 [21:28:20]MH_SAM_APDU [21:28:20]CAPDU: 80 11 00 00 [21:28:20]Write to MH i2c: E2 08 00 53 15 80 11 00 00 00 00 00 00 E2 [21:28:20]Write i2c OK [21:28:20]MH_I2C_Read... [21:28:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:28:21]Read from MH i2c: E2 [21:28:21]MH_I2C_Read... [21:28:21]Read from MH i2c: E2 17 00 [21:28:21]MH_I2C_Read... [21:28:21]Read from MH i2c: E2 17 00 53 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 35 [21:28:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [21:28:21]wFMCommunicate OK [21:28:21]requested_item fd.num is exist - process it [21:28:21]SAM_PROTO_GetFieldsCounters [21:28:21]wFMCommunicate request_size=4 [21:28:21]MH_SAM_APDU [21:28:21]CAPDU: 80 13 00 00 [21:28:21]Write to MH i2c: E2 08 00 54 15 80 13 00 00 00 00 00 00 E5 [21:28:21]Write i2c OK [21:28:21]MH_I2C_Read... [21:28:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:28:21]Read from MH i2c: E2 [21:28:21]MH_I2C_Read... [21:28:21]Read from MH i2c: E2 62 00 [21:28:21]MH_I2C_Read... [21:28:21]Read from MH i2c: E2 62 00 54 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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 79 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 E7 00 00 00 5E 04 04 00 E7 00 00 00 57 04 04 00 E8 00 00 00 19 04 04 00 00 00 00 00 90 00 32 [21:28: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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 79 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 E7 00 00 00 5E 04 04 00 E7 00 00 00 57 04 04 00 E8 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:28:21]wFMCommunicate OK [21:28:21]SAM_PROTO_GetFieldsCounters done [21:28:21]requested_item shift.num is exist - process it [21:28:21]requested_item shift.opened is exist - process it [21:28:21]req_shift_opened [21:28:21]FM_GetShiftState [21:28:21]SAM_PROTO_GetShiftState [21:28:21]wFMCommunicate request_size=4 [21:28:21]MH_SAM_APDU [21:28:21]CAPDU: 80 13 01 00 [21:28:21]Write to MH i2c: E2 08 00 55 15 80 13 01 00 00 00 00 00 E7 [21:28:21]Write i2c OK [21:28:21]MH_I2C_Read... [21:28:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:28:21]Read from MH i2c: E2 [21:28:21]MH_I2C_Read... [21:28:21]Read from MH i2c: E2 0E 00 [21:28:21]MH_I2C_Read... [21:28:21]Read from MH i2c: E2 0E 00 55 15 00 09 00 01 04 26 72 66 00 00 00 00 90 00 F5 [21:28:21]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [21:28:21]wFMCommunicate OK [21:28:21]SAM_PROTO_GetShiftState done [21:28:21]FM_GetShiftState done [21:28:21]req_shift_opened done [21:28:21]requested_item shift.open_date is exist - process it [21:28:21]req_shift_open_date [21:28:21]req_shift_open_date done [21:28:21]produce_requested_data done [21:28:21]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103801,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [21:28:21]process_action_free print_text [21:28:21]json_value_free [21:28:21]json_value_free done [21:28:21]process_json_proto returns [21:28:21]Send response to host [21:28:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103801,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [21:28:21]free response buf [21:28:21]execute_script done [21:28:21]execute_script returns [21:28:21]free content buf [21:28:21]Sock 9.Close socket [21:28:21]Sock 9.Thread stoped [21:28:21]OFD Sender: No OFD packet to send [21:28:26]OFD Sender: No OFD packet to send [21:28:31]OFD Sender: No OFD packet to send [21:28:36]OFD Sender: No OFD packet to send [21:28:41]OFD Sender: No OFD packet to send [21:28:46]OFD Sender: No OFD packet to send [21:28:51]OFD Sender: No OFD packet to send [21:28:56]OFD Sender: No OFD packet to send [21:29:01]OFD Sender: No OFD packet to send [21:29:06]OFD Sender: No OFD packet to send [21:29:11]OFD Sender: No OFD packet to send [21:29:16]OFD Sender: No OFD packet to send [21:29:21]OFD Sender: No OFD packet to send [21:29:26]OFD Sender: No OFD packet to send [21:29:31]OFD Sender: No OFD packet to send [21:29:36]OFD Sender: No OFD packet to send [21:29:42]OFD Sender: No OFD packet to send [21:29:47]OFD Sender: No OFD packet to send [21:29:52]OFD Sender: No OFD packet to send [21:29:57]OFD Sender: No OFD packet to send [21:30:02]OFD Sender: No OFD packet to send [21:30:07]OFD Sender: No OFD packet to send [21:30:12]OFD Sender: No OFD packet to send [21:30:17]OFD Sender: No OFD packet to send [21:30:22]OFD Sender: No OFD packet to send [21:30:27]OFD Sender: No OFD packet to send [21:30:32]OFD Sender: No OFD packet to send [21:30:37]OFD Sender: No OFD packet to send [21:30:42]OFD Sender: No OFD packet to send [21:30:47]OFD Sender: No OFD packet to send [21:30:52]OFD Sender: No OFD packet to send [21:30:57]OFD Sender: No OFD packet to send [21:31:02]OFD Sender: No OFD packet to send [21:31:07]OFD Sender: No OFD packet to send [21:31:12]OFD Sender: No OFD packet to send [21:31:17]OFD Sender: No OFD packet to send [21:31:22]OFD Sender: No OFD packet to send [21:31:27]OFD Sender: No OFD packet to send [21:31:32]OFD Sender: No OFD packet to send [21:31:37]OFD Sender: No OFD packet to send [21:31:42]OFD Sender: No OFD packet to send [21:31:47]OFD Sender: No OFD packet to send [21:31:52]OFD Sender: No OFD packet to send [21:31:57]OFD Sender: No OFD packet to send [21:32:02]OFD Sender: No OFD packet to send [21:32:07]OFD Sender: No OFD packet to send [21:32:12]OFD Sender: No OFD packet to send [21:32:17]OFD Sender: No OFD packet to send [21:32:22]OFD Sender: No OFD packet to send [21:32:27]OFD Sender: No OFD packet to send [21:32:32]OFD Sender: No OFD packet to send [21:32:37]OFD Sender: No OFD packet to send [21:32:42]OFD Sender: No OFD packet to send [21:32:47]OFD Sender: No OFD packet to send [21:32:52]OFD Sender: No OFD packet to send [21:32:57]OFD Sender: No OFD packet to send [21:33:02]OFD Sender: No OFD packet to send [21:33:07]OFD Sender: No OFD packet to send [21:33:12]OFD Sender: No OFD packet to send [21:33:17]OFD Sender: No OFD packet to send [21:33:22]OFD Sender: No OFD packet to send [21:33:27]OFD Sender: No OFD packet to send [21:33:32]OFD Sender: No OFD packet to send [21:33:37]OFD Sender: No OFD packet to send [21:33:42]OFD Sender: No OFD packet to send [21:33:47]OFD Sender: No OFD packet to send [21:33:52]OFD Sender: No OFD packet to send [21:33:57]OFD Sender: No OFD packet to send [21:34:02]OFD Sender: No OFD packet to send [21:34:07]OFD Sender: No OFD packet to send [21:34:12]OFD Sender: No OFD packet to send [21:34:17]OFD Sender: No OFD packet to send [21:34:22]OFD Sender: No OFD packet to send [21:34:27]OFD Sender: No OFD packet to send [21:34:32]OFD Sender: No OFD packet to send [21:34:37]OFD Sender: No OFD packet to send [21:34:42]OFD Sender: No OFD packet to send [21:34:47]OFD Sender: No OFD packet to send [21:34:52]OFD Sender: No OFD packet to send [21:34:57]OFD Sender: No OFD packet to send [21:35:02]OFD Sender: No OFD packet to send [21:35:07]OFD Sender: No OFD packet to send [21:35:12]OFD Sender: No OFD packet to send [21:35:17]OFD Sender: No OFD packet to send [21:35:22]OFD Sender: No OFD packet to send [21:35:27]OFD Sender: No OFD packet to send [21:35:32]OFD Sender: No OFD packet to send [21:35:37]OFD Sender: No OFD packet to send [21:35:42]OFD Sender: No OFD packet to send [21:35:47]OFD Sender: No OFD packet to send [21:35:52]OFD Sender: No OFD packet to send [21:35:57]OFD Sender: No OFD packet to send [21:36:02]OFD Sender: No OFD packet to send [21:36:07]OFD Sender: No OFD packet to send [21:36:12]OFD Sender: No OFD packet to send [21:36:17]OFD Sender: No OFD packet to send [21:36:22]OFD Sender: No OFD packet to send [21:36:27]OFD Sender: No OFD packet to send [21:36:32]OFD Sender: No OFD packet to send [21:36:37]OFD Sender: No OFD packet to send [21:36:42]OFD Sender: No OFD packet to send [21:36:47]OFD Sender: No OFD packet to send [21:36:52]OFD Sender: No OFD packet to send [21:36:57]OFD Sender: No OFD packet to send [21:37:02]OFD Sender: No OFD packet to send [21:37:07]OFD Sender: No OFD packet to send [21:37:11]accept exits with 8 [21:37:11]New connection [21:37:11]New thread 3066940772 created [21:37:11]Thread 3066797412 joined [21:37:11]Waiting for new connection... [21:37:11] Sock 8.Parse request [21:37:11]Sock 8.Check first char [21:37:11]Sock 8.First char is OK [21:37:11]request: POST /json_proto HTTP/1.0 [21:37:11]Method: POST [21:37:11]URL: /json_proto [21:37:11]Method is POST - this is cgi request [21:37:11]url: /json_proto [21:37:11]query_string will be loaded in cgi processing [21:37:11]execute_cgi json_proto POST (null) [21:37:11]execute_cgi path=json_proto method=POST [21:37:11]POST find Content-Length [21:37:11]Host: 172.17.38.133:8080 [21:37:11]Content-Length: 1205 [21:37:11]Content-Type: application/json [21:37:11] [21:37:11]POST finish read [21:37:11]Found Content-Length = 1205 [21:37:11]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 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. \u000A\u0421\u0447\u0435\u0442 N : (1)673102\u000A19.06.2024 21:14\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 42\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 4.610 x 66.40\u000A\u0418\u0422\u041E\u0413: 306.10\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\u000A35457\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:37:11]execute_script... [21:37:11]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 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. \u000A\u0421\u0447\u0435\u0442 N : (1)673102\u000A19.06.2024 21:14\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 42\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 4.610 x 66.40\u000A\u0418\u0422\u041E\u0413: 306.10\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\u000A35457\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:37:11]POST & json_proto [21:37:11]process_json_proto [21:37:11]json parsed OK: [21:37:11]protocol is kg_v1.0 [21:37:11]action value=print_text [21:37:11]process_action print_text [21:37:11]cmd_print_text [21:37:11]ExternCall_PrintAddStr [21:37:11]wPrintStart [21:37:11]Write to MH i2c: 01 00 00 56 15 6B [21:37:11]Write i2c OK [21:37:11]MH_I2C_Read... [21:37:11]Read from MH i2c: 01 [21:37:11]MH_I2C_Read... [21:37:11]Read from MH i2c: 01 07 00 [21:37:11]MH_I2C_Read... [21:37:11]Read from MH i2c: 01 07 00 56 15 00 00 00 00 00 FF 0F 80 [21:37:11]RasterBufferAndPrint [21:37:11]line *****ТОВАРНЫЙ ЧЕК***** [21:37:11]line АЗС 120 [21:37:11]line Партнер нефть [21:37:11]line 02508201610067 [21:37:11]line Кассир : Байбугуева Г. [21:37:11]line Счет N : (1)673102 [21:37:11]line 19.06.2024 21:14 [21:37:11]line ПРОДАЖА [21:37:11]line ТРК (МРК, ГНК): 42 [21:37:11]line Вид ГСМ : 2710124130 [21:37:11]line Аи-92-К-5 [21:37:11]line 4.610 x 66.40 [21:37:11]line ИТОГ: 306.10 [21:37:11]line Тип оплаты: Талоны: Топливная Карта [21:37:11]line 35457 [21:37:11]line ______________________ [21:37:11]line (подпись) [21:37:11]written 0, free lines is 4095 [21:37:11]Write to MH i2c: 01 00 00 6A 15 7F [21:37:11]Write i2c OK [21:37:11]MH_I2C_Read... [21:37:11]Read from MH i2c: 01 [21:37:11]MH_I2C_Read... [21:37:11]Read from MH i2c: 01 07 00 [21:37:11]MH_I2C_Read... [21:37:11]Read from MH i2c: 01 07 00 6A 15 00 00 00 00 00 11 0E A5 [21:37:11]RasterBufferAndPrint [21:37:11]line [21:37:11]line [21:37:11]line [21:37:11]line [21:37:11]line [21:37:11]written 0, free lines is 3602 [21:37:11]MH_Cut [21:37:11]Write to MH i2c: D1 01 00 71 15 01 58 [21:37:11]Write i2c OK [21:37:11]MH_I2C_Read... [21:37:11]Read from MH i2c: D1 [21:37:11]MH_I2C_Read... [21:37:11]Read from MH i2c: D1 01 00 [21:37:11]MH_I2C_Read... [21:37:11]Read from MH i2c: D1 01 00 71 15 00 57 [21:37:11]Write to MH i2c: 01 00 00 72 15 87 [21:37:11]Write i2c OK [21:37:11]MH_I2C_Read... [21:37:12]*** Cut start [21:37:12]*** Partial cut [21:37:12]*** CUTSNS_PIN = 1 [21:37:12]*** CUTSNS_PIN = 0 [21:37:12]OFD Sender: No OFD packet to send [21:37:12]*** Brake cut motor [21:37:12]Read from MH i2c: 01 [21:37:12]MH_I2C_Read... [21:37:12]*** Stop cut motor [21:37:12]*** Cut end [21:37:12]Read from MH i2c: 01 07 00 [21:37:12]MH_I2C_Read... [21:37:12]Read from MH i2c: 01 07 00 72 15 00 00 00 00 00 FF 0F 9C [21:37:12]process_action print_text done [21:37:12]requested_data is exist [21:37:12]produce_requested_data [21:37:12]requested_item fm.sn is exist - process it [21:37:12]wFMCommunicate request_size=4 [21:37:12]MH_SAM_APDU [21:37:12]CAPDU: 80 11 00 00 [21:37:12]Write to MH i2c: E2 08 00 73 15 80 11 00 00 00 00 00 00 02 [21:37:12]Write i2c OK [21:37:12]MH_I2C_Read... [21:37:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:37:12]Read from MH i2c: E2 [21:37:12]MH_I2C_Read... [21:37:12]Read from MH i2c: E2 17 00 [21:37:12]MH_I2C_Read... [21:37:12]Read from MH i2c: E2 17 00 73 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 55 [21:37:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [21:37:12]wFMCommunicate OK [21:37:12]requested_item fd.num is exist - process it [21:37:12]SAM_PROTO_GetFieldsCounters [21:37:12]wFMCommunicate request_size=4 [21:37:12]MH_SAM_APDU [21:37:12]CAPDU: 80 13 00 00 [21:37:12]Write to MH i2c: E2 08 00 74 15 80 13 00 00 00 00 00 00 05 [21:37:12]Write i2c OK [21:37:12]MH_I2C_Read... [21:37:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:37:12]Read from MH i2c: E2 [21:37:12]MH_I2C_Read... [21:37:12]Read from MH i2c: E2 62 00 [21:37:12]MH_I2C_Read... [21:37:12]Read from MH i2c: E2 62 00 74 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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 79 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 E7 00 00 00 5E 04 04 00 E7 00 00 00 57 04 04 00 E8 00 00 00 19 04 04 00 00 00 00 00 90 00 52 [21:37: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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 79 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 E7 00 00 00 5E 04 04 00 E7 00 00 00 57 04 04 00 E8 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:37:12]wFMCommunicate OK [21:37:12]SAM_PROTO_GetFieldsCounters done [21:37:12]requested_item shift.num is exist - process it [21:37:12]requested_item shift.opened is exist - process it [21:37:12]req_shift_opened [21:37:12]FM_GetShiftState [21:37:12]SAM_PROTO_GetShiftState [21:37:12]wFMCommunicate request_size=4 [21:37:12]MH_SAM_APDU [21:37:12]CAPDU: 80 13 01 00 [21:37:12]Write to MH i2c: E2 08 00 75 15 80 13 01 00 00 00 00 00 07 [21:37:12]Write i2c OK [21:37:12]MH_I2C_Read... [21:37:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:37:13]Read from MH i2c: E2 [21:37:13]MH_I2C_Read... [21:37:13]Read from MH i2c: E2 0E 00 [21:37:13]MH_I2C_Read... [21:37:13]Read from MH i2c: E2 0E 00 75 15 00 09 00 01 04 26 72 66 00 00 00 00 90 00 15 [21:37:13]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [21:37:13]wFMCommunicate OK [21:37:13]SAM_PROTO_GetShiftState done [21:37:13]FM_GetShiftState done [21:37:13]req_shift_opened done [21:37:13]requested_item shift.open_date is exist - process it [21:37:13]req_shift_open_date [21:37:13]req_shift_open_date done [21:37:13]produce_requested_data done [21:37:13]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103801,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [21:37:13]process_action_free print_text [21:37:13]json_value_free [21:37:13]json_value_free done [21:37:13]process_json_proto returns [21:37:13]Send response to host [21:37:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103801,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [21:37:13]free response buf [21:37:13]execute_script done [21:37:13]execute_script returns [21:37:13]free content buf [21:37:13]Sock 8.Close socket [21:37:13]Sock 8.Thread stoped [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:52]OFD Sender: No OFD packet to send [21:39:57]OFD Sender: No OFD packet to send [21:40:02]OFD Sender: No OFD packet to send [21:40:07]OFD Sender: No OFD packet to send [21:40:12]OFD Sender: No OFD packet to send [21:40:17]OFD Sender: No OFD packet to send [21:40:22]OFD Sender: No OFD packet to send [21:40:27]OFD Sender: No OFD packet to send [21:40:32]OFD Sender: No OFD packet to send [21:40:37]OFD Sender: No OFD packet to send [21:40:42]OFD Sender: No OFD packet to send [21:40:47]OFD Sender: No OFD packet to send [21:40:52]OFD Sender: No OFD packet to send [21:40:57]OFD Sender: No OFD packet to send [21:41:02]OFD Sender: No OFD packet to send [21:41:07]OFD Sender: No OFD packet to send [21:41:12]OFD Sender: No OFD packet to send [21:41:17]OFD Sender: No OFD packet to send [21:41:22]OFD Sender: No OFD packet to send [21:41:27]OFD Sender: No OFD packet to send [21:41:32]OFD Sender: No OFD packet to send [21:41:37]OFD Sender: No OFD packet to send [21:41:42]OFD Sender: No OFD packet to send [21:41:47]OFD Sender: No OFD packet to send [21:41:52]accept exits with 10 [21:41:52]New connection [21:41:52]New thread 3066797412 created [21:41:52]Thread 3066940772 joined [21:41:52]Waiting for new connection... [21:41:52] Sock 10.Parse request [21:41:52]Sock 10.Check first char [21:41:52]Sock 10.First char is OK [21:41:52]request: POST /json_proto HTTP/1.0 [21:41:52]Method: POST [21:41:52]URL: /json_proto [21:41:52]Method is POST - this is cgi request [21:41:52]url: /json_proto [21:41:52]query_string will be loaded in cgi processing [21:41:52]execute_cgi json_proto POST (null) [21:41:52]execute_cgi path=json_proto method=POST [21:41:52]POST find Content-Length [21:41:52]Host: 172.17.38.133:8080 [21:41:52]Content-Length: 800 [21:41:52]Content-Type: application/json [21:41:52] [21:41:52]POST finish read [21:41:52]Found Content-Length = 800 [21:41:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673103", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 6.030, "sum" : 400.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 400.39 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:41:52]execute_script... [21:41: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)673103", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 6.030, "sum" : 400.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 400.39 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:41:52]POST & json_proto [21:41:52]process_json_proto [21:41:52]json parsed OK: [21:41:52]protocol is kg_v1.0 [21:41:52]action value=close_receipt [21:41:52]process_action close_receipt [21:41:52]cmd_close_receipt [21:41:52]MH_GetDate [21:41:52]Write to MH i2c: F0 00 00 76 15 7A [21:41:52]Write i2c OK [21:41:52]MH_I2C_Read... [21:41:52]Read from MH i2c: F0 [21:41:52]MH_I2C_Read... [21:41:52]Read from MH i2c: F0 09 00 [21:41:52]MH_I2C_Read... [21:41:52]Read from MH i2c: F0 09 00 76 15 00 A1 50 73 66 BD 8F 7C 64 79 [21:41:52]GetLastDocTimeStamp 1718831819 [21:41:52]current date 1718833313 [21:41:52]FM_GetShiftState [21:41:52]SAM_PROTO_GetShiftState [21:41:52]wFMCommunicate request_size=4 [21:41:52]MH_SAM_APDU [21:41:52]CAPDU: 80 13 01 00 [21:41:52]Write to MH i2c: E2 08 00 77 15 80 13 01 00 00 00 00 00 09 [21:41:52]Write i2c OK [21:41:52]MH_I2C_Read... [21:41:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:41:52]Read from MH i2c: E2 [21:41:52]MH_I2C_Read... [21:41:52]Read from MH i2c: E2 0E 00 [21:41:52]MH_I2C_Read... [21:41:52]Read from MH i2c: E2 0E 00 77 15 00 09 00 01 04 26 72 66 00 00 00 00 90 00 17 [21:41:52]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [21:41:52]wFMCommunicate OK [21:41:52]SAM_PROTO_GetShiftState done [21:41:52]FM_GetShiftState done [21:41:52]opened in 1718756868 [21:41:52]opened+sec_in_day 1718843268 [21:41:52]quantity*price = 40039 [21:41:52]sum+1 = 40040 [21:41:52]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 400.39 НСП 1% : 3.54 НДС 12% : 42.52 Наличными: 0.00 Безнал.: 400.39 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 232 19.06.2024 21:41 Смена: 353 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000875093 ФД: 103802 ФПД: 215138458688454 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T214153&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103802&fm=215138458688454&tin=02508201610067®Number=0000000000092785&sum=40039 [21:41:53]StoreToDocumentArchive [21:41:53]shift 353 fd 103802 [21:41:53]save to /storage/0353/doc_00103802 [21:41:53]save last doc name /storage/0353/doc_00103802 to /storage/kkm_last_doc_name [21:41:53]save OK [21:41:53]Clear old archive folders... [21:41:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:41:53]tlvbuf is 016EEC40 [21:41:53]SAM_PROTO_ClearQueue [21:41:53]wFMCommunicate request_size=4 [21:41:53]MH_SAM_APDU [21:41:53]CAPDU: 80 09 00 00 [21:41:53]Write to MH i2c: E2 08 00 84 15 80 09 00 00 00 00 00 00 0B [21:41:53]Write i2c OK [21:41:53]MH_I2C_Read... [21:41:53]Read from MH i2c: E2 [21:41:53]MH_I2C_Read... [21:41:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:41:53]Read from MH i2c: E2 03 00 [21:41:53]MH_I2C_Read... [21:41:53]Read from MH i2c: E2 03 00 84 15 00 90 00 0D [21:41:53]RAPDU: 90 00 [21:41:53]wFMCommunicate OK [21:41:53]SAM_PROTO_ClearQueue done [21:41:53]KKMCreateOFDPacket [21:41:53]OFDProtocolAddRootSTLVToBuf [21:41:53]FM_MakeSignedData [21:41:53]FM_MakeSignedData [21:41:53]SAM_PROTO_SignData [21:41:53]wFMCommunicate request_size=4 [21:41:53]MH_SAM_APDU [21:41:53]CAPDU: 80 0D 01 02 [21:41:53]Write to MH i2c: E2 08 00 85 15 80 0D 01 02 00 00 00 00 13 [21:41:53]Write i2c OK [21:41:53]MH_I2C_Read... [21:41:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:41:53]Read from MH i2c: E2 [21:41:53]MH_I2C_Read... [21:41:53]Read from MH i2c: E2 03 00 [21:41:53]MH_I2C_Read... [21:41:53]Read from MH i2c: E2 03 00 85 15 00 90 00 0E [21:41:53]RAPDU: 90 00 [21:41:53]wFMCommunicate OK [21:41:53]wFMCommunicate request_size=255 [21:41:53]MH_SAM_APDU [21:41: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 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 67 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 67 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E8 00 00 00 F4 03 04 00 A1 50 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 7A 95 01 00 35 04 06 00 C3 [21:41:53]Write to MH i2c: E2 02 01 86 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 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 67 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 67 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E8 00 00 00 F4 03 04 00 A1 50 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 7A 95 01 00 35 04 06 00 C3 00 00 D0 [21:41:53]Write i2c OK [21:41:53]MH_I2C_Read... [21:41:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:41:53]Read from MH i2c: E2 [21:41:53]MH_I2C_Read... [21:41:53]Read from MH i2c: E2 03 00 [21:41:53]MH_I2C_Read... [21:41:53]Read from MH i2c: E2 03 00 86 15 00 90 00 0F [21:41:53]RAPDU: 90 00 [21:41:53]wFMCommunicate OK [21:41:53]wFMCommunicate request_size=10 [21:41:53]MH_SAM_APDU [21:41:53]CAPDU: 80 0D 02 02 05 AA D3 68 5B C6 [21:41:53]Write to MH i2c: E2 0D 00 87 15 80 0D 02 02 05 00 AA D3 68 5B C6 00 00 26 [21:41:53]Write i2c OK [21:41:53]MH_I2C_Read... [21:41:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:41:53]Read from MH i2c: E2 [21:41:53]MH_I2C_Read... [21:41:53]Read from MH i2c: E2 03 00 [21:41:53]MH_I2C_Read... [21:41:53]Read from MH i2c: E2 03 00 87 15 00 90 00 10 [21:41:53]RAPDU: 90 00 [21:41:53]wFMCommunicate OK [21:41:53]wFMCommunicate request_size=4 [21:41:53]MH_SAM_APDU [21:41:53]CAPDU: 80 0D 03 02 [21:41:53]Write to MH i2c: E2 08 00 88 15 80 0D 03 02 00 00 00 00 18 [21:41:53]Write i2c OK [21:41:53]MH_I2C_Read... [21:41:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:41:53]Read from MH i2c: E2 [21:41:53]MH_I2C_Read... [21:41:53]Read from MH i2c: E2 0B 00 [21:41:53]MH_I2C_Read... [21:41:53]Read from MH i2c: E2 0B 00 88 15 00 3B 83 FE 9A F9 92 9E 95 90 00 2D [21:41:53]RAPDU: 3B 83 FE 9A F9 92 9E 95 90 00 [21:41:53]wFMCommunicate OK [21:41:53]SAM_PROTO_SignData done [21:41:53]FM_MakeSignedData done [21:41:53]CreateOFDProtocolMessage [21:41:53]wFMCommunicate request_size=4 [21:41:53]MH_SAM_APDU [21:41:53]CAPDU: 80 11 00 00 [21:41:53]Write to MH i2c: E2 08 00 89 15 80 11 00 00 00 00 00 00 18 [21:41:53]Write i2c OK [21:41:53]MH_I2C_Read... [21:41:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:41:53]Read from MH i2c: E2 [21:41:53]MH_I2C_Read... [21:41:53]Read from MH i2c: E2 17 00 [21:41:53]MH_I2C_Read... [21:41:53]Read from MH i2c: E2 17 00 89 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 6B [21:41:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [21:41:53]wFMCommunicate OK [21:41:53]CreateOFDProtocolMessage done [21:41:53]OFDSenderStorePacket 103802 [21:41:53]StoreOFDPacket docnum=103802 [21:41:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 E6 76 07 01 CD CB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 67 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 67 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E8 00 00 00 F4 03 04 00 A1 50 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 7A 95 01 00 35 04 06 00 C3 AA D3 68 5B C6 3B 83 FE 9A F9 92 9E 95 [21:41:53]CheckFolder [21:41:53]dirname=/storage/ofd_packets [21:41:53]CheckFolder done [21:41:53]ProducePacketName [21:41:53]name=ofd_packets/00103802 [21:41:53]NVStorageSaveData ofd_packets/00103802 [21:41:53]File name is /storage/ofd_packets/00103802 [21:41:53]Write 301 bytes [21:41:53]NVStorageSaveData done [21:41:53]OFDSenderStorePacket done [21:41:53]KKMCreateOFDPacket done [21:41:53]NVStorageSaveData kkm_last_timestamp [21:41:53]File name is /storage/kkm_last_timestamp [21:41:53]Write 4 bytes [21:41:53]NVStorageSaveData done [21:41:53]ExternCall_PrintAddStr [21:41:53]wPrintStart [21:41:53]Write to MH i2c: 01 00 00 8A 15 9F [21:41:53]Write i2c OK [21:41:53]MH_I2C_Read... [21:41:53]Read from MH i2c: 01 [21:41:53]MH_I2C_Read... [21:41:53]Read from MH i2c: 01 07 00 [21:41:53]MH_I2C_Read... [21:41:53]Read from MH i2c: 01 07 00 8A 15 00 00 00 00 00 FF 0F B4 [21:41:53]RasterBufferAndPrint [21:41:53]line Счет N : (1)673103 [21:41:53]line ИНН: 02508201610067 [21:41:53]line Контрольно-Кассовый Чек [21:41:53]line ПРОДАЖА [21:41:53]line ТРК (МРК, ГНК) : 42 [21:41:53]line Товар: 2710124130 [21:41:53]line Аи-92-К-5 [21:41:53]line 6.030 * 66.40 [21:41:53]line = 400.39 [21:41:53]line НДС 12% НСП 1% [21:41:53]line > о реализуемом товаре [21:41:53]line ИТОГО: 400.39 [21:41:53]line НСП 1% : 3.54 [21:41:53]line НДС 12% : 42.52 [21:41:53]line Наличными: 0.00 [21:41:53]line Безнал.: 400.39 [21:41:53]line Место: АЗС № 120 "Партнер Нефть" [21:41:53]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [21:41:53]line СНО: Общий режим [21:41:53]line Чек 232 19.06.2024 21:41 [21:41:53]line Смена: 353 ФФД: 1.0 [21:41:53]line ЗНМ: 0300000164 [21:41:53]line РНМ: 0000000000092785 [21:41:53]line Версия ККМ: 001 [21:41:53]line Платежная система: O! деньги [21:41:53]line ФМ: 0000000000875093 [21:41:53]line ФД: 103802 [21:41:53]line ФПД: 215138458688454 [21:41:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T214153&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103802&fm=215138458688454&tin=02508201610067®Number=0000000000092785&sum=40039 [21:41:54]written 0, free lines is 4095 [21:41:54]OFD Sender: Processing packet 103802 [packets to send 17, broken 16] [21:41:54]ProducePacketName [21:41:54]name=ofd_packets/00103802 [21:41:54]OFD Sender: To server: pG, [21:41:54]CommunicateWithHost lk.salyk.kg:30040 [21:41:54]ConnectInit lk.salyk.kg [21:41:54]Connected sock=9 [21:41: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 39 33 0F 01 00 00 E6 76 07 01 CD CB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 67 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 67 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E8 00 00 00 F4 03 04 00 A1 50 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 7A 95 01 00 35 04 06 00 C3 AA D3 68 5B C6 3B 83 FE 9A F9 92 9E 95 [21:41: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 39 33 4F 00 00 00 B0 0B 47 00 4D DF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 7A 95 01 00 F4 03 04 00 29 F7 72 66 B6 04 01 00 00 4A 4E 79 21 EB 64 69 DE [21:41:54]CommunicateWithHost err = 0 [21:41:54]CheckOFDResponse [21:41:54]1017 (14) - 77093643461234 [21:41:54]1041 (16) - 0000000000875093 [21:41:54]1040 (4) - 103802 [21:41:54]1012 (4) - 19.06.2024 15:20 [21:41:54]1206 (1) - 0 [21:41:54]OFD Sender: Remove packet 103802 [21:41:54]ProducePacketName [21:41:54]name=ofd_packets/00103802 [21:41:54]NVStorageDeleteData [21:41:54]Write to MH i2c: 01 00 00 B4 15 C9 [21:41:54]Write i2c OK [21:41:54]MH_I2C_Read... [21:41:54]Read from MH i2c: 01 [21:41:54]MH_I2C_Read... [21:41:54]Read from MH i2c: 01 07 00 [21:41:54]MH_I2C_Read... [21:41:54]Read from MH i2c: 01 07 00 B4 15 00 00 00 00 00 EC 0C C8 [21:41:54]RasterBufferAndPrint [21:41:54]line [21:41:54]line [21:41:54]line [21:41:54]line [21:41:54]line [21:41:54]written 0, free lines is 3314 [21:41:54]MH_Cut [21:41:54]Write to MH i2c: D1 01 00 BB 15 01 A2 [21:41:54]Write i2c OK [21:41:54]MH_I2C_Read... [21:41:54]Read from MH i2c: D1 [21:41:54]MH_I2C_Read... [21:41:54]Read from MH i2c: D1 01 00 [21:41:54]MH_I2C_Read... [21:41:54]Read from MH i2c: D1 01 00 BB 15 00 A1 [21:41:54]Write to MH i2c: 01 00 00 BC 15 D1 [21:41:54]Write i2c OK [21:41:54]MH_I2C_Read... [21:41:55]OFD Sender: No OFD packet to send [21:41:55]*** Cut start [21:41:55]*** Partial cut [21:41:55]*** CUTSNS_PIN = 1 [21:41:55]*** CUTSNS_PIN = 0 [21:41:55]*** Brake cut motor [21:41:56]Read from MH i2c: 01 [21:41:56]MH_I2C_Read... [21:41:56]*** Stop cut motor [21:41:56]*** Cut end [21:41:56]Read from MH i2c: 01 07 00 [21:41:56]MH_I2C_Read... [21:41:56]Read from MH i2c: 01 07 00 BC 15 00 00 00 00 00 FF 0F E6 [21:41:56]process_action close_receipt done [21:41:56]requested_data is exist [21:41:56]produce_requested_data [21:41:56]requested_item fm.sn is exist - process it [21:41:56]wFMCommunicate request_size=4 [21:41:56]MH_SAM_APDU [21:41:56]CAPDU: 80 11 00 00 [21:41:56]Write to MH i2c: E2 08 00 BD 15 80 11 00 00 00 00 00 00 4C [21:41:56]Write i2c OK [21:41:56]MH_I2C_Read... [21:41:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:41:56]Read from MH i2c: E2 [21:41:56]MH_I2C_Read... [21:41:56]Read from MH i2c: E2 17 00 [21:41:56]MH_I2C_Read... [21:41:56]Read from MH i2c: E2 17 00 BD 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 9F [21:41:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [21:41:56]wFMCommunicate OK [21:41:56]requested_item fd.num is exist - process it [21:41:56]SAM_PROTO_GetFieldsCounters [21:41:56]wFMCommunicate request_size=4 [21:41:56]MH_SAM_APDU [21:41:56]CAPDU: 80 13 00 00 [21:41:56]Write to MH i2c: E2 08 00 BE 15 80 13 00 00 00 00 00 00 4F [21:41:56]Write i2c OK [21:41:56]MH_I2C_Read... [21:41:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:41:56]Read from MH i2c: E2 [21:41:56]MH_I2C_Read... [21:41:56]Read from MH i2c: E2 62 00 [21:41:56]MH_I2C_Read... [21:41:56]Read from MH i2c: E2 62 00 BE 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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 7A 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 E8 00 00 00 5E 04 04 00 E8 00 00 00 57 04 04 00 E9 00 00 00 19 04 04 00 00 00 00 00 90 00 A0 [21:41: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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 7A 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 E8 00 00 00 5E 04 04 00 E8 00 00 00 57 04 04 00 E9 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:41:56]wFMCommunicate OK [21:41:56]SAM_PROTO_GetFieldsCounters done [21:41:56]requested_item shift.num is exist - process it [21:41:56]requested_item shift.opened is exist - process it [21:41:56]req_shift_opened [21:41:56]FM_GetShiftState [21:41:56]SAM_PROTO_GetShiftState [21:41:56]wFMCommunicate request_size=4 [21:41:56]MH_SAM_APDU [21:41:56]CAPDU: 80 13 01 00 [21:41:56]Write to MH i2c: E2 08 00 BF 15 80 13 01 00 00 00 00 00 51 [21:41:56]Write i2c OK [21:41:56]MH_I2C_Read... [21:41:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:41:56]Read from MH i2c: E2 [21:41:56]MH_I2C_Read... [21:41:56]Read from MH i2c: E2 0E 00 [21:41:56]MH_I2C_Read... [21:41:56]Read from MH i2c: E2 0E 00 BF 15 00 09 00 01 04 26 72 66 00 00 00 00 90 00 5F [21:41:56]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [21:41:56]wFMCommunicate OK [21:41:56]SAM_PROTO_GetShiftState done [21:41:56]FM_GetShiftState done [21:41:56]req_shift_opened done [21:41:56]requested_item shift.open_date is exist - process it [21:41:56]req_shift_open_date [21:41:56]req_shift_open_date done [21:41:56]produce_requested_data done [21:41:56]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103802,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [21:41:56]process_action_free close_receipt [21:41:56]json_value_free [21:41:56]json_value_free done [21:41:56]process_json_proto returns [21:41:56]Send response to host [21:41:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103802,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [21:41:56]free response buf [21:41:56]execute_script done [21:41:56]execute_script returns [21:41:56]free content buf [21:41:56]Sock 10.Close socket [21:41:56]Sock 10.Thread stoped [21:42:00]OFD Sender: No OFD packet to send [21:42:05]OFD Sender: No OFD packet to send [21:42:10]OFD Sender: No OFD packet to send [21:42:15]OFD Sender: No OFD packet to send [21:42:20]OFD Sender: No OFD packet to send [21:42:25]OFD Sender: No OFD packet to send [21:42:30]OFD Sender: No OFD packet to send [21:42:35]OFD Sender: No OFD packet to send [21:42:40]OFD Sender: No OFD packet to send [21:42:45]OFD Sender: No OFD packet to send [21:42:50]OFD Sender: No OFD packet to send [21:42:55]OFD Sender: No OFD packet to send [21:43:00]OFD Sender: No OFD packet to send [21:43:05]OFD Sender: No OFD packet to send [21:43:10]OFD Sender: No OFD packet to send [21:43:15]OFD Sender: No OFD packet to send [21:43:20]OFD Sender: No OFD packet to send [21:43:25]OFD Sender: No OFD packet to send [21:43:30]OFD Sender: No OFD packet to send [21:43:35]OFD Sender: No OFD packet to send [21:43:40]OFD Sender: No OFD packet to send [21:43:45]OFD Sender: No OFD packet to send [21:43:50]OFD Sender: No OFD packet to send [21:43:55]OFD Sender: No OFD packet to send [21:44:00]OFD Sender: No OFD packet to send [21:44:05]OFD Sender: No OFD packet to send [21:44:10]OFD Sender: No OFD packet to send [21:44:15]OFD Sender: No OFD packet to send [21:44:20]OFD Sender: No OFD packet to send [21:44:25]OFD Sender: No OFD packet to send [21:44:30]OFD Sender: No OFD packet to send [21:44:35]OFD Sender: No OFD packet to send [21:44:40]OFD Sender: No OFD packet to send [21:44:45]OFD Sender: No OFD packet to send [21:44:50]OFD Sender: No OFD packet to send [21:44:55]OFD Sender: No OFD packet to send [21:45:00]OFD Sender: No OFD packet to send [21:45:05]OFD Sender: No OFD packet to send [21:45:10]OFD Sender: No OFD packet to send [21:45:15]OFD Sender: No OFD packet to send [21:45:20]OFD Sender: No OFD packet to send [21:45:25]OFD Sender: No OFD packet to send [21:45:30]OFD Sender: No OFD packet to send [21:45:35]OFD Sender: No OFD packet to send [21:45:40]OFD Sender: No OFD packet to send [21:45:45]OFD Sender: No OFD packet to send [21:45:50]OFD Sender: No OFD packet to send [21:45:55]OFD Sender: No OFD packet to send [21:46:00]OFD Sender: No OFD packet to send [21:46:05]OFD Sender: No OFD packet to send [21:46:10]OFD Sender: No OFD packet to send [21:46:15]OFD Sender: No OFD packet to send [21:46:20]OFD Sender: No OFD packet to send [21:46:25]OFD Sender: No OFD packet to send [21:46:30]OFD Sender: No OFD packet to send [21:46:35]OFD Sender: No OFD packet to send [21:46:40]OFD Sender: No OFD packet to send [21:46:45]OFD Sender: No OFD packet to send [21:46:50]OFD Sender: No OFD packet to send [21:46:55]OFD Sender: No OFD packet to send [21:47:00]OFD Sender: No OFD packet to send [21:47:01]accept exits with 8 [21:47:01]New connection [21:47:01]New thread 3066940772 created [21:47:01]Thread 3066797412 joined [21:47:01]Waiting for new connection... [21:47:01] Sock 8.Parse request [21:47:01]Sock 8.Check first char [21:47:01]Sock 8.First char is OK [21:47:01]request: POST /json_proto HTTP/1.0 [21:47:01]Method: POST [21:47:01]URL: /json_proto [21:47:01]Method is POST - this is cgi request [21:47:01]url: /json_proto [21:47:01]query_string will be loaded in cgi processing [21:47:01]execute_cgi json_proto POST (null) [21:47:01]execute_cgi path=json_proto method=POST [21:47:01]POST find Content-Length [21:47:01]Host: 172.17.38.133:8080 [21:47:01]Content-Length: 677 [21:47:01]Content-Type: application/json [21:47:01] [21:47:01]POST finish read [21:47:01]Found Content-Length = 677 [21:47:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673104", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:47:01]execute_script... [21:47:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673104", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:47:01]POST & json_proto [21:47:01]process_json_proto [21:47:01]json parsed OK: [21:47:01]protocol is kg_v1.0 [21:47:01]action value=close_receipt [21:47:01]process_action close_receipt [21:47:01]cmd_close_receipt [21:47:01]MH_GetDate [21:47:01]Write to MH i2c: F0 00 00 C0 15 C4 [21:47:01]Write i2c OK [21:47:01]MH_I2C_Read... [21:47:01]Read from MH i2c: F0 [21:47:01]MH_I2C_Read... [21:47:01]Read from MH i2c: F0 09 00 [21:47:01]MH_I2C_Read... [21:47:01]Read from MH i2c: F0 09 00 C0 15 00 D6 51 73 66 BD 8F 7C 64 F9 [21:47:01]GetLastDocTimeStamp 1718833313 [21:47:01]current date 1718833622 [21:47:01]FM_GetShiftState [21:47:01]SAM_PROTO_GetShiftState [21:47:01]wFMCommunicate request_size=4 [21:47:01]MH_SAM_APDU [21:47:01]CAPDU: 80 13 01 00 [21:47:01]Write to MH i2c: E2 08 00 C1 15 80 13 01 00 00 00 00 00 53 [21:47:01]Write i2c OK [21:47:01]MH_I2C_Read... [21:47:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:47:01]Read from MH i2c: E2 [21:47:01]MH_I2C_Read... [21:47:01]Read from MH i2c: E2 0E 00 [21:47:01]MH_I2C_Read... [21:47:01]Read from MH i2c: E2 0E 00 C1 15 00 09 00 01 04 26 72 66 00 00 00 00 90 00 61 [21:47:01]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [21:47:01]wFMCommunicate OK [21:47:01]SAM_PROTO_GetShiftState done [21:47:01]FM_GetShiftState done [21:47:01]opened in 1718756868 [21:47:01]opened+sec_in_day 1718843268 [21:47:01]quantity*price = 50065 [21:47:01]sum+1 = 50067 [21:47:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.17 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 233 19.06.2024 21:47 Смена: 353 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103803 ФПД: 14348358094675 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T214702&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103803&fm=14348358094675&tin=02508201610067®Number=0000000000092785&sum=50000 [21:47:02]StoreToDocumentArchive [21:47:02]shift 353 fd 103803 [21:47:02]save to /storage/0353/doc_00103803 [21:47:02]save last doc name /storage/0353/doc_00103803 to /storage/kkm_last_doc_name [21:47:02]save OK [21:47:02]Clear old archive folders... [21:47:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:47:02]tlvbuf is B6EA5C10 [21:47:02]SAM_PROTO_ClearQueue [21:47:02]wFMCommunicate request_size=4 [21:47:02]MH_SAM_APDU [21:47:02]CAPDU: 80 09 00 00 [21:47:02]Write to MH i2c: E2 08 00 CE 15 80 09 00 00 00 00 00 00 55 [21:47:02]Write i2c OK [21:47:02]MH_I2C_Read... [21:47:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:47:02]Read from MH i2c: E2 [21:47:02]MH_I2C_Read... [21:47:02]Read from MH i2c: E2 03 00 [21:47:02]MH_I2C_Read... [21:47:02]Read from MH i2c: E2 03 00 CE 15 00 90 00 57 [21:47:02]RAPDU: 90 00 [21:47:02]wFMCommunicate OK [21:47:02]SAM_PROTO_ClearQueue done [21:47:02]KKMCreateOFDPacket [21:47:02]OFDProtocolAddRootSTLVToBuf [21:47:02]FM_MakeSignedData [21:47:02]FM_MakeSignedData [21:47:02]SAM_PROTO_SignData [21:47:02]wFMCommunicate request_size=4 [21:47:02]MH_SAM_APDU [21:47:02]CAPDU: 80 0D 01 02 [21:47:02]Write to MH i2c: E2 08 00 CF 15 80 0D 01 02 00 00 00 00 5D [21:47:02]Write i2c OK [21:47:02]MH_I2C_Read... [21:47:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:47:02]Read from MH i2c: E2 [21:47:02]MH_I2C_Read... [21:47:02]Read from MH i2c: E2 03 00 [21:47:02]MH_I2C_Read... [21:47:02]Read from MH i2c: E2 03 00 CF 15 00 90 00 58 [21:47:02]RAPDU: 90 00 [21:47:02]wFMCommunicate OK [21:47:02]wFMCommunicate request_size=255 [21:47:02]MH_SAM_APDU [21:47: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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E9 00 00 00 F4 03 04 00 D6 51 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 7B 95 01 00 35 04 06 00 0D [21:47:02]Write to MH i2c: E2 02 01 D0 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E9 00 00 00 F4 03 04 00 D6 51 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 7B 95 01 00 35 04 06 00 0D 00 00 80 [21:47:02]Write i2c OK [21:47:02]MH_I2C_Read... [21:47:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:47:02]Read from MH i2c: E2 [21:47:02]MH_I2C_Read... [21:47:02]Read from MH i2c: E2 03 00 [21:47:02]MH_I2C_Read... [21:47:02]Read from MH i2c: E2 03 00 D0 15 00 90 00 59 [21:47:02]RAPDU: 90 00 [21:47:02]wFMCommunicate OK [21:47:02]wFMCommunicate request_size=10 [21:47:02]MH_SAM_APDU [21:47:02]CAPDU: 80 0D 02 02 05 0C BC C9 8F 53 [21:47:02]Write to MH i2c: E2 0D 00 D1 15 80 0D 02 02 05 00 0C BC C9 8F 53 00 00 DD [21:47:02]Write i2c OK [21:47:02]MH_I2C_Read... [21:47:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:47:02]Read from MH i2c: E2 [21:47:02]MH_I2C_Read... [21:47:02]Read from MH i2c: E2 03 00 [21:47:02]MH_I2C_Read... [21:47:02]Read from MH i2c: E2 03 00 D1 15 00 90 00 5A [21:47:02]RAPDU: 90 00 [21:47:02]wFMCommunicate OK [21:47:02]wFMCommunicate request_size=4 [21:47:02]MH_SAM_APDU [21:47:02]CAPDU: 80 0D 03 02 [21:47:02]Write to MH i2c: E2 08 00 D2 15 80 0D 03 02 00 00 00 00 62 [21:47:02]Write i2c OK [21:47:02]MH_I2C_Read... [21:47:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:47:02]Read from MH i2c: E2 [21:47:02]MH_I2C_Read... [21:47:02]Read from MH i2c: E2 0B 00 [21:47:02]MH_I2C_Read... [21:47:02]Read from MH i2c: E2 0B 00 D2 15 00 22 23 80 48 6D 98 BC 01 90 00 32 [21:47:02]RAPDU: 22 23 80 48 6D 98 BC 01 90 00 [21:47:02]wFMCommunicate OK [21:47:02]SAM_PROTO_SignData done [21:47:02]FM_MakeSignedData done [21:47:02]CreateOFDProtocolMessage [21:47:02]wFMCommunicate request_size=4 [21:47:02]MH_SAM_APDU [21:47:02]CAPDU: 80 11 00 00 [21:47:02]Write to MH i2c: E2 08 00 D3 15 80 11 00 00 00 00 00 00 62 [21:47:02]Write i2c OK [21:47:02]MH_I2C_Read... [21:47:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:47:02]Read from MH i2c: E2 [21:47:02]MH_I2C_Read... [21:47:02]Read from MH i2c: E2 17 00 [21:47:02]MH_I2C_Read... [21:47:02]Read from MH i2c: E2 17 00 D3 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 B5 [21:47:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [21:47:02]wFMCommunicate OK [21:47:02]CreateOFDProtocolMessage done [21:47:02]OFDSenderStorePacket 103803 [21:47:02]StoreOFDPacket docnum=103803 [21:47:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 52 8A 07 01 A9 F9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E9 00 00 00 F4 03 04 00 D6 51 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 7B 95 01 00 35 04 06 00 0D 0C BC C9 8F 53 22 23 80 48 6D 98 BC 01 [21:47:02]CheckFolder [21:47:02]dirname=/storage/ofd_packets [21:47:02]CheckFolder done [21:47:02]ProducePacketName [21:47:02]name=ofd_packets/00103803 [21:47:02]NVStorageSaveData ofd_packets/00103803 [21:47:02]File name is /storage/ofd_packets/00103803 [21:47:02]Write 301 bytes [21:47:02]NVStorageSaveData done [21:47:02]OFDSenderStorePacket done [21:47:02]KKMCreateOFDPacket done [21:47:02]NVStorageSaveData kkm_last_timestamp [21:47:02]File name is /storage/kkm_last_timestamp [21:47:02]Write 4 bytes [21:47:02]NVStorageSaveData done [21:47:02]ExternCall_PrintAddStr [21:47:02]wPrintStart [21:47:02]Write to MH i2c: 01 00 00 D4 15 E9 [21:47:02]OFD Sender: Processing packet 103803 [packets to send 17, broken 16] [21:47:02]ProducePacketName [21:47:02]name=ofd_packets/00103803 [21:47:02]OFD Sender: To server: pG, [21:47:02]CommunicateWithHost lk.salyk.kg:30040 [21:47:02]ConnectInit lk.salyk.kg [21:47:02]Write i2c OK [21:47:02]MH_I2C_Read... [21:47:02]Read from MH i2c: 01 [21:47:02]MH_I2C_Read... [21:47:02]Read from MH i2c: 01 07 00 [21:47:02]MH_I2C_Read... [21:47:02]Read from MH i2c: 01 07 00 D4 15 00 00 00 00 00 FF 0F FE [21:47:02]RasterBufferAndPrint [21:47:02]line Счет N : (1)673104 [21:47:02]line ИНН: 02508201610067 [21:47:02]line Контрольно-Кассовый Чек [21:47:02]line ПРОДАЖА [21:47:02]line ТРК (МРК, ГНК) : 42 [21:47:02]line Товар: 2710124130 [21:47:02]line Аи-92-К-5 [21:47:02]line 7.540 * 66.40 [21:47:02]line = 500.66 [21:47:02]line НДС 12% НСП 1% [21:47:02]line > о реализуемом товаре [21:47:02]line ОКРУГЛЕНИЕ: -0.66 [21:47:02]line ИТОГО: 500.00 [21:47:02]line Внесено: 500.00 [21:47:02]line СДАЧА: 0.00 [21:47:02]line НСП 1% : 4.43 [21:47:02]line НДС 12% : 53.17 [21:47:02]line Наличными: 500.00 [21:47:02]line Безнал.: 0.00 [21:47:02]line Место: АЗС № 120 "Партнер Нефть" [21:47:02]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [21:47:02]line СНО: Общий режим [21:47:02]line Чек 233 19.06.2024 21:47 [21:47:02]line Смена: 353 ФФД: 1.0 [21:47:02]line ЗНМ: 0300000164 [21:47:02]line РНМ: 0000000000092785 [21:47:02]line Версия ККМ: 001 [21:47:02]line ФМ: 0000000000875093 [21:47:02]line ФД: 103803 [21:47:02]line ФПД: 14348358094675 [21:47:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T214702&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103803&fm=14348358094675&tin=02508201610067®Number=0000000000092785&sum=50000 [21:47:02]written 0, free lines is 4095 [21:47:02]Connected sock=10 [21:47:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 52 8A 07 01 A9 F9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E9 00 00 00 F4 03 04 00 D6 51 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 7B 95 01 00 35 04 06 00 0D 0C BC C9 8F 53 22 23 80 48 6D 98 BC 01 [21:47: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 39 33 4F 00 00 00 E0 37 47 00 FA 48 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 7B 95 01 00 F4 03 04 00 5E F8 72 66 B6 04 01 00 00 AF F6 02 EE 11 A2 A8 35 [21:47:03]CommunicateWithHost err = 0 [21:47:03]CheckOFDResponse [21:47:03]1017 (14) - 77093643461234 [21:47:03]1041 (16) - 0000000000875093 [21:47:03]1040 (4) - 103803 [21:47:03]1012 (4) - 19.06.2024 15:25 [21:47:03]1206 (1) - 0 [21:47:03]OFD Sender: Remove packet 103803 [21:47:03]ProducePacketName [21:47:03]name=ofd_packets/00103803 [21:47:03]NVStorageDeleteData [21:47:03]Write to MH i2c: 01 00 00 FF 15 14 [21:47:03]Write i2c OK [21:47:03]MH_I2C_Read... [21:47:03]Read from MH i2c: 01 [21:47:03]MH_I2C_Read... [21:47:03]Read from MH i2c: 01 07 00 [21:47:03]MH_I2C_Read... [21:47:03]Read from MH i2c: 01 07 00 FF 15 00 00 00 00 00 ED 0C 14 [21:47:03]RasterBufferAndPrint [21:47:03]line [21:47:03]line [21:47:03]line [21:47:03]line [21:47:03]line [21:47:03]written 0, free lines is 3315 [21:47:03]MH_Cut [21:47:03]Write to MH i2c: D1 01 00 06 16 01 EE [21:47:03]Write i2c OK [21:47:03]MH_I2C_Read... [21:47:03]Read from MH i2c: D1 [21:47:03]MH_I2C_Read... [21:47:03]Read from MH i2c: D1 01 00 [21:47:03]MH_I2C_Read... [21:47:03]Read from MH i2c: D1 01 00 06 16 00 ED [21:47:03]Write to MH i2c: 01 00 00 07 16 1D [21:47:03]Write i2c OK [21:47:03]MH_I2C_Read... [21:47:03]OFD Sender: No OFD packet to send [21:47:04]*** Cut start [21:47:04]*** Partial cut [21:47:04]*** CUTSNS_PIN = 1 [21:47:04]*** CUTSNS_PIN = 0 [21:47:04]*** Brake cut motor [21:47:04]Read from MH i2c: 01 [21:47:04]MH_I2C_Read... [21:47:04]*** Stop cut motor [21:47:04]*** Cut end [21:47:04]Read from MH i2c: 01 07 00 [21:47:04]MH_I2C_Read... [21:47:04]Read from MH i2c: 01 07 00 07 16 00 00 00 00 00 FF 0F 32 [21:47:04]process_action close_receipt done [21:47:04]requested_data is exist [21:47:04]produce_requested_data [21:47:04]requested_item fm.sn is exist - process it [21:47:04]wFMCommunicate request_size=4 [21:47:04]MH_SAM_APDU [21:47:04]CAPDU: 80 11 00 00 [21:47:04]Write to MH i2c: E2 08 00 08 16 80 11 00 00 00 00 00 00 98 [21:47:04]Write i2c OK [21:47:04]MH_I2C_Read... [21:47:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:47:04]Read from MH i2c: E2 [21:47:04]MH_I2C_Read... [21:47:04]Read from MH i2c: E2 17 00 [21:47:04]MH_I2C_Read... [21:47:04]Read from MH i2c: E2 17 00 08 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 EB [21:47:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [21:47:04]wFMCommunicate OK [21:47:04]requested_item fd.num is exist - process it [21:47:04]SAM_PROTO_GetFieldsCounters [21:47:04]wFMCommunicate request_size=4 [21:47:04]MH_SAM_APDU [21:47:04]CAPDU: 80 13 00 00 [21:47:04]Write to MH i2c: E2 08 00 09 16 80 13 00 00 00 00 00 00 9B [21:47:04]Write i2c OK [21:47:04]MH_I2C_Read... [21:47:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:47:04]Read from MH i2c: E2 [21:47:04]MH_I2C_Read... [21:47:04]Read from MH i2c: E2 62 00 [21:47:04]MH_I2C_Read... [21:47:04]Read from MH i2c: E2 62 00 09 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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 7B 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 E9 00 00 00 5E 04 04 00 E9 00 00 00 57 04 04 00 EA 00 00 00 19 04 04 00 00 00 00 00 90 00 F0 [21:47:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 7B 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 E9 00 00 00 5E 04 04 00 E9 00 00 00 57 04 04 00 EA 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:47:04]wFMCommunicate OK [21:47:04]SAM_PROTO_GetFieldsCounters done [21:47:04]requested_item shift.num is exist - process it [21:47:04]requested_item shift.opened is exist - process it [21:47:04]req_shift_opened [21:47:04]FM_GetShiftState [21:47:04]SAM_PROTO_GetShiftState [21:47:04]wFMCommunicate request_size=4 [21:47:04]MH_SAM_APDU [21:47:04]CAPDU: 80 13 01 00 [21:47:04]Write to MH i2c: E2 08 00 0A 16 80 13 01 00 00 00 00 00 9D [21:47:04]Write i2c OK [21:47:04]MH_I2C_Read... [21:47:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:47:04]Read from MH i2c: E2 [21:47:04]MH_I2C_Read... [21:47:04]Read from MH i2c: E2 0E 00 [21:47:04]MH_I2C_Read... [21:47:04]Read from MH i2c: E2 0E 00 0A 16 00 09 00 01 04 26 72 66 00 00 00 00 90 00 AB [21:47:04]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [21:47:04]wFMCommunicate OK [21:47:04]SAM_PROTO_GetShiftState done [21:47:04]FM_GetShiftState done [21:47:04]req_shift_opened done [21:47:04]requested_item shift.open_date is exist - process it [21:47:04]req_shift_open_date [21:47:04]req_shift_open_date done [21:47:04]produce_requested_data done [21:47:04]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103803,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [21:47:04]process_action_free close_receipt [21:47:04]json_value_free [21:47:04]json_value_free done [21:47:04]process_json_proto returns [21:47:04]Send response to host [21:47:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103803,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [21:47:04]free response buf [21:47:04]execute_script done [21:47:04]execute_script returns [21:47:04]free content buf [21:47:04]Sock 8.Close socket [21:47:04]Sock 8.Thread stoped [21:47:08]OFD Sender: No OFD packet to send [21:47:13]OFD Sender: No OFD packet to send [21:47:18]OFD Sender: No OFD packet to send [21:47:23]OFD Sender: No OFD packet to send [21:47:28]OFD Sender: No OFD packet to send [21:47:33]OFD Sender: No OFD packet to send [21:47:38]OFD Sender: No OFD packet to send [21:47:43]OFD Sender: No OFD packet to send [21:47:48]OFD Sender: No OFD packet to send [21:47:53]OFD Sender: No OFD packet to send [21:47:58]OFD Sender: No OFD packet to send [21:48:03]OFD Sender: No OFD packet to send [21:48:08]OFD Sender: No OFD packet to send [21:48:13]OFD Sender: No OFD packet to send [21:48:18]OFD Sender: No OFD packet to send [21:48:23]OFD Sender: No OFD packet to send [21:48:28]OFD Sender: No OFD packet to send [21:48:33]OFD Sender: No OFD packet to send [21:48:38]OFD Sender: No OFD packet to send [21:48:43]OFD Sender: No OFD packet to send [21:48:48]OFD Sender: No OFD packet to send [21:48:53]OFD Sender: No OFD packet to send [21:48:58]OFD Sender: No OFD packet to send [21:49:03]OFD Sender: No OFD packet to send [21:49:08]OFD Sender: No OFD packet to send [21:49:13]OFD Sender: No OFD packet to send [21:49:18]OFD Sender: No OFD packet to send [21:49:23]OFD Sender: No OFD packet to send [21:49:28]OFD Sender: No OFD packet to send [21:49:33]OFD Sender: No OFD packet to send [21:49:38]OFD Sender: No OFD packet to send [21:49:43]OFD Sender: No OFD packet to send [21:49:48]OFD Sender: No OFD packet to send [21:49:53]OFD Sender: No OFD packet to send [21:49:58]OFD Sender: No OFD packet to send [21:50:03]OFD Sender: No OFD packet to send [21:50:08]OFD Sender: No OFD packet to send [21:50:13]OFD Sender: No OFD packet to send [21:50:18]OFD Sender: No OFD packet to send [21:50:23]OFD Sender: No OFD packet to send [21:50:28]OFD Sender: No OFD packet to send [21:50:33]OFD Sender: No OFD packet to send [21:50:38]OFD Sender: No OFD packet to send [21:50:43]OFD Sender: No OFD packet to send [21:50:48]OFD Sender: No OFD packet to send [21:50:53]OFD Sender: No OFD packet to send [21:50:58]OFD Sender: No OFD packet to send [21:51:03]OFD Sender: No OFD packet to send [21:51:08]OFD Sender: No OFD packet to send [21:51:13]OFD Sender: No OFD packet to send [21:51:18]OFD Sender: No OFD packet to send [21:51:23]OFD Sender: No OFD packet to send [21:51:28]OFD Sender: No OFD packet to send [21:51:33]OFD Sender: No OFD packet to send [21:51:38]OFD Sender: No OFD packet to send [21:51:43]OFD Sender: No OFD packet to send [21:51:48]OFD Sender: No OFD packet to send [21:51:53]OFD Sender: No OFD packet to send [21:51:58]OFD Sender: No OFD packet to send [21:52:03]OFD Sender: No OFD packet to send [21:52:08]OFD Sender: No OFD packet to send [21:52:14]OFD Sender: No OFD packet to send [21:52:19]OFD Sender: No OFD packet to send [21:52:24]OFD Sender: No OFD packet to send [21:52:29]OFD Sender: No OFD packet to send [21:52:34]OFD Sender: No OFD packet to send [21:52:39]OFD Sender: No OFD packet to send [21:52:44]OFD Sender: No OFD packet to send [21:52:49]OFD Sender: No OFD packet to send [21:52:54]OFD Sender: No OFD packet to send [21:52:59]OFD Sender: No OFD packet to send [21:53:04]OFD Sender: No OFD packet to send [21:53:09]OFD Sender: No OFD packet to send [21:53:14]OFD Sender: No OFD packet to send [21:53:19]OFD Sender: No OFD packet to send [21:53:24]OFD Sender: No OFD packet to send [21:53:29]OFD Sender: No OFD packet to send [21:53:34]OFD Sender: No OFD packet to send [21:53:39]OFD Sender: No OFD packet to send [21:53:44]OFD Sender: No OFD packet to send [21:53:49]OFD Sender: No OFD packet to send [21:53:54]OFD Sender: No OFD packet to send [21:53:59]OFD Sender: No OFD packet to send [21:54:04]OFD Sender: No OFD packet to send [21:54:09]OFD Sender: No OFD packet to send [21:54:14]OFD Sender: No OFD packet to send [21:54:19]OFD Sender: No OFD packet to send [21:54:24]OFD Sender: No OFD packet to send [21:54:29]OFD Sender: No OFD packet to send [21:54:34]OFD Sender: No OFD packet to send [21:54:39]OFD Sender: No OFD packet to send [21:54:44]OFD Sender: No OFD packet to send [21:54:49]OFD Sender: No OFD packet to send [21:54:54]OFD Sender: No OFD packet to send [21:54:59]OFD Sender: No OFD packet to send [21:55:04]OFD Sender: No OFD packet to send [21:55:09]OFD Sender: No OFD packet to send [21:55:14]OFD Sender: No OFD packet to send [21:55:19]OFD Sender: No OFD packet to send [21:55:24]OFD Sender: No OFD packet to send [21:55:29]OFD Sender: No OFD packet to send [21:55:34]OFD Sender: No OFD packet to send [21:55:39]OFD Sender: No OFD packet to send [21:55:44]OFD Sender: No OFD packet to send [21:55:49]OFD Sender: No OFD packet to send [21:55:54]OFD Sender: No OFD packet to send [21:55:59]OFD Sender: No OFD packet to send [21:56:04]OFD Sender: No OFD packet to send [21:56:09]OFD Sender: No OFD packet to send [21:56:14]OFD Sender: No OFD packet to send [21:56:19]OFD Sender: No OFD packet to send [21:56:24]OFD Sender: No OFD packet to send [21:56:29]OFD Sender: No OFD packet to send [21:56:34]OFD Sender: No OFD packet to send [21:56:39]OFD Sender: No OFD packet to send [21:56:40]accept exits with 9 [21:56:40]New connection [21:56:40]New thread 3066797412 created [21:56:40]Thread 3066940772 joined [21:56:40]Waiting for new connection... [21:56:40] Sock 9.Parse request [21:56:40]Sock 9.Check first char [21:56:40]Sock 9.First char is OK [21:56:40]request: POST /json_proto HTTP/1.0 [21:56:40]Method: POST [21:56:40]URL: /json_proto [21:56:40]Method is POST - this is cgi request [21:56:40]url: /json_proto [21:56:40]query_string will be loaded in cgi processing [21:56:40]execute_cgi json_proto POST (null) [21:56:40]execute_cgi path=json_proto method=POST [21:56:40]POST find Content-Length [21:56:40]Host: 172.17.38.133:8080 [21:56:40]Content-Length: 660 [21:56:40]Content-Type: application/json [21:56:40] [21:56:40]POST finish read [21:56:40]Found Content-Length = 660 [21:56:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673105", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 10.000, "sum" : 664.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "payments": [ { "type": 0, "sum" : 664.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:56:40]execute_script... [21:56: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)673105", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 10.000, "sum" : 664.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "payments": [ { "type": 0, "sum" : 664.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:56:40]POST & json_proto [21:56:40]process_json_proto [21:56:40]json parsed OK: [21:56:40]protocol is kg_v1.0 [21:56:40]action value=close_receipt [21:56:40]process_action close_receipt [21:56:40]cmd_close_receipt [21:56:40]MH_GetDate [21:56:40]Write to MH i2c: F0 00 00 0B 16 10 [21:56:40]Write i2c OK [21:56:40]MH_I2C_Read... [21:56:40]Read from MH i2c: F0 [21:56:40]MH_I2C_Read... [21:56:40]Read from MH i2c: F0 09 00 [21:56:40]MH_I2C_Read... [21:56:40]Read from MH i2c: F0 09 00 0B 16 00 1A 54 73 66 BD 8F 7C 64 8C [21:56:40]GetLastDocTimeStamp 1718833622 [21:56:40]current date 1718834202 [21:56:40]FM_GetShiftState [21:56:40]SAM_PROTO_GetShiftState [21:56:40]wFMCommunicate request_size=4 [21:56:40]MH_SAM_APDU [21:56:40]CAPDU: 80 13 01 00 [21:56:40]Write to MH i2c: E2 08 00 0C 16 80 13 01 00 00 00 00 00 9F [21:56:40]Write i2c OK [21:56:40]MH_I2C_Read... [21:56:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:56:40]Read from MH i2c: E2 [21:56:40]MH_I2C_Read... [21:56:40]Read from MH i2c: E2 0E 00 [21:56:40]MH_I2C_Read... [21:56:40]Read from MH i2c: E2 0E 00 0C 16 00 09 00 01 04 26 72 66 00 00 00 00 90 00 AD [21:56:40]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [21:56:40]wFMCommunicate OK [21:56:40]SAM_PROTO_GetShiftState done [21:56:40]FM_GetShiftState done [21:56:40]opened in 1718756868 [21:56:40]opened+sec_in_day 1718843268 [21:56:40]quantity*price = 66400 [21:56:40]sum+1 = 66401 [21:56:40]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 664.00 Внесено: 700.00 СДАЧА: 36.00 НСП 1% : 5.88 НДС 12% : 70.51 Наличными: 664.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 234 19.06.2024 21:56 Смена: 353 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103804 ФПД: 55656987127865 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T215642&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103804&fm=55656987127865&tin=02508201610067®Number=0000000000092785&sum=66400 [21:56:41]StoreToDocumentArchive [21:56:41]shift 353 fd 103804 [21:56:41]save to /storage/0353/doc_00103804 [21:56:41]save last doc name /storage/0353/doc_00103804 to /storage/kkm_last_doc_name [21:56:41]save OK [21:56:41]Clear old archive folders... [21:56:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:56:41]tlvbuf is 017308B0 [21:56:41]SAM_PROTO_ClearQueue [21:56:41]wFMCommunicate request_size=4 [21:56:41]MH_SAM_APDU [21:56:41]CAPDU: 80 09 00 00 [21:56:41]Write to MH i2c: E2 08 00 19 16 80 09 00 00 00 00 00 00 A1 [21:56:41]Write i2c OK [21:56:41]MH_I2C_Read... [21:56:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:56:41]Read from MH i2c: E2 [21:56:41]MH_I2C_Read... [21:56:41]Read from MH i2c: E2 03 00 [21:56:41]MH_I2C_Read... [21:56:41]Read from MH i2c: E2 03 00 19 16 00 90 00 A3 [21:56:41]RAPDU: 90 00 [21:56:41]wFMCommunicate OK [21:56:41]SAM_PROTO_ClearQueue done [21:56:41]KKMCreateOFDPacket [21:56:41]OFDProtocolAddRootSTLVToBuf [21:56:41]FM_MakeSignedData [21:56:41]FM_MakeSignedData [21:56:41]SAM_PROTO_SignData [21:56:41]wFMCommunicate request_size=4 [21:56:41]MH_SAM_APDU [21:56:41]CAPDU: 80 0D 01 02 [21:56:41]Write to MH i2c: E2 08 00 1A 16 80 0D 01 02 00 00 00 00 A9 [21:56:41]Write i2c OK [21:56:41]MH_I2C_Read... [21:56:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:56:41]Read from MH i2c: E2 [21:56:41]MH_I2C_Read... [21:56:41]Read from MH i2c: E2 03 00 [21:56:41]MH_I2C_Read... [21:56:41]Read from MH i2c: E2 03 00 1A 16 00 90 00 A4 [21:56:41]RAPDU: 90 00 [21:56:41]wFMCommunicate OK [21:56:41]wFMCommunicate request_size=255 [21:56:41]MH_SAM_APDU [21:56:41]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 60 03 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 03 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 1B 00 00 00 00 07 04 06 00 60 03 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EA 00 00 00 F4 03 04 00 1A 54 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 7C 95 01 00 35 04 06 00 32 [21:56:41]Write to MH i2c: E2 02 01 1B 16 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 60 03 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 03 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 1B 00 00 00 00 07 04 06 00 60 03 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EA 00 00 00 F4 03 04 00 1A 54 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 7C 95 01 00 35 04 06 00 32 00 00 F0 [21:56:41]Write i2c OK [21:56:41]MH_I2C_Read... [21:56:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:56:41]Read from MH i2c: E2 [21:56:41]MH_I2C_Read... [21:56:41]Read from MH i2c: E2 03 00 [21:56:41]MH_I2C_Read... [21:56:41]Read from MH i2c: E2 03 00 1B 16 00 90 00 A5 [21:56:41]RAPDU: 90 00 [21:56:41]wFMCommunicate OK [21:56:41]wFMCommunicate request_size=10 [21:56:41]MH_SAM_APDU [21:56:41]CAPDU: 80 0D 02 02 05 9E A6 F2 70 39 [21:56:41]Write to MH i2c: E2 0D 00 1C 16 80 0D 02 02 05 00 9E A6 F2 70 39 00 00 95 [21:56:41]Write i2c OK [21:56:41]MH_I2C_Read... [21:56:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:56:42]Read from MH i2c: E2 [21:56:42]MH_I2C_Read... [21:56:42]Read from MH i2c: E2 03 00 [21:56:42]MH_I2C_Read... [21:56:42]Read from MH i2c: E2 03 00 1C 16 00 90 00 A6 [21:56:42]RAPDU: 90 00 [21:56:42]wFMCommunicate OK [21:56:42]wFMCommunicate request_size=4 [21:56:42]MH_SAM_APDU [21:56:42]CAPDU: 80 0D 03 02 [21:56:42]Write to MH i2c: E2 08 00 1D 16 80 0D 03 02 00 00 00 00 AE [21:56:42]Write i2c OK [21:56:42]MH_I2C_Read... [21:56:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:56:42]Read from MH i2c: E2 [21:56:42]MH_I2C_Read... [21:56:42]Read from MH i2c: E2 0B 00 [21:56:42]MH_I2C_Read... [21:56:42]Read from MH i2c: E2 0B 00 1D 16 00 45 64 88 49 30 9E 3A DA 90 00 0B [21:56:42]RAPDU: 45 64 88 49 30 9E 3A DA 90 00 [21:56:42]wFMCommunicate OK [21:56:42]SAM_PROTO_SignData done [21:56:42]FM_MakeSignedData done [21:56:42]CreateOFDProtocolMessage [21:56:42]wFMCommunicate request_size=4 [21:56:42]MH_SAM_APDU [21:56:42]CAPDU: 80 11 00 00 [21:56:42]Write to MH i2c: E2 08 00 1E 16 80 11 00 00 00 00 00 00 AE [21:56:42]Write i2c OK [21:56:42]MH_I2C_Read... [21:56:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:56:42]Read from MH i2c: E2 [21:56:42]MH_I2C_Read... [21:56:42]Read from MH i2c: E2 17 00 [21:56:42]MH_I2C_Read... [21:56:42]Read from MH i2c: E2 17 00 1E 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 01 [21:56:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [21:56:42]wFMCommunicate OK [21:56:42]CreateOFDProtocolMessage done [21:56:42]OFDSenderStorePacket 103804 [21:56:42]StoreOFDPacket docnum=103804 [21:56:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 37 BC 07 01 4A AC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 60 03 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 03 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 1B 00 00 00 00 07 04 06 00 60 03 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EA 00 00 00 F4 03 04 00 1A 54 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 7C 95 01 00 35 04 06 00 32 9E A6 F2 70 39 45 64 88 49 30 9E 3A DA [21:56:42]CheckFolder [21:56:42]dirname=/storage/ofd_packets [21:56:42]CheckFolder done [21:56:42]ProducePacketName [21:56:42]name=ofd_packets/00103804 [21:56:42]NVStorageSaveData ofd_packets/00103804 [21:56:42]File name is /storage/ofd_packets/00103804 [21:56:42]Write 301 bytes [21:56:42]NVStorageSaveData done [21:56:42]OFDSenderStorePacket done [21:56:42]KKMCreateOFDPacket done [21:56:42]NVStorageSaveData kkm_last_timestamp [21:56:42]File name is /storage/kkm_last_timestamp [21:56:42]Write 4 bytes [21:56:42]NVStorageSaveData done [21:56:42]ExternCall_PrintAddStr [21:56:42]wPrintStart [21:56:42]Write to MH i2c: 01 00 00 1F 16 35 [21:56:42]Write i2c OK [21:56:42]MH_I2C_Read... [21:56:42]Read from MH i2c: 01 [21:56:42]MH_I2C_Read... [21:56:42]Read from MH i2c: 01 07 00 [21:56:42]MH_I2C_Read... [21:56:42]Read from MH i2c: 01 07 00 1F 16 00 00 00 00 00 FF 0F 4A [21:56:42]RasterBufferAndPrint [21:56:42]line Счет N : (1)673105 [21:56:42]line ИНН: 02508201610067 [21:56:42]line Контрольно-Кассовый Чек [21:56:42]line ПРОДАЖА [21:56:42]line ТРК (МРК, ГНК) : 32 [21:56:42]line Товар: 2710124130 [21:56:42]line Аи-92-К-5 [21:56:42]line 10.000 * 66.40 [21:56:42]line = 664.00 [21:56:42]line НДС 12% НСП 1% [21:56:42]line > о реализуемом товаре [21:56:42]line ИТОГО: 664.00 [21:56:42]line Внесено: 700.00 [21:56:42]line СДАЧА: 36.00 [21:56:42]line НСП 1% : 5.88 [21:56:42]line НДС 12% : 70.51 [21:56:42]line Наличными: 664.00 [21:56:42]line Безнал.: 0.00 [21:56:42]line Место: АЗС № 120 "Партнер Нефть" [21:56:42]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [21:56:42]line СНО: Общий режим [21:56:42]line Чек 234 19.06.2024 21:56 [21:56:42]line Смена: 353 ФФД: 1.0 [21:56:42]line ЗНМ: 0300000164 [21:56:42]line РНМ: 0000000000092785 [21:56:42]line Версия ККМ: 001 [21:56:42]line ФМ: 0000000000875093 [21:56:42]line ФД: 103804 [21:56:42]line ФПД: 55656987127865 [21:56:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T215642&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103804&fm=55656987127865&tin=02508201610067®Number=0000000000092785&sum=66400 [21:56:42]OFD Sender: Processing packet 103804 [packets to send 17, broken 16] [21:56:42]ProducePacketName [21:56:42]name=ofd_packets/00103804 [21:56:42]OFD Sender: To server: pG, [21:56:42]CommunicateWithHost lk.salyk.kg:30040 [21:56:42]ConnectInit lk.salyk.kg [21:56:42]written 0, free lines is 4095 [21:56:42]Connected sock=10 [21:56:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 37 BC 07 01 4A AC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 60 03 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 03 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 1B 00 00 00 00 07 04 06 00 60 03 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EA 00 00 00 F4 03 04 00 1A 54 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 7C 95 01 00 35 04 06 00 32 9E A6 F2 70 39 45 64 88 49 30 9E 3A DA [21:56: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 39 33 4F 00 00 00 50 4B 47 00 0F 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 39 33 10 04 04 00 7C 95 01 00 F4 03 04 00 A1 FA 72 66 B6 04 01 00 00 D7 4A 94 FE 5A F0 2C 76 [21:56:42]CommunicateWithHost err = 0 [21:56:42]CheckOFDResponse [21:56:42]1017 (14) - 77093643461234 [21:56:42]1041 (16) - 0000000000875093 [21:56:42]1040 (4) - 103804 [21:56:42]1012 (4) - 19.06.2024 15:34 [21:56:42]1206 (1) - 0 [21:56:42]OFD Sender: Remove packet 103804 [21:56:42]ProducePacketName [21:56:42]name=ofd_packets/00103804 [21:56:42]NVStorageDeleteData [21:56:42]Write to MH i2c: 01 00 00 49 16 5F [21:56:42]Write i2c OK [21:56:42]MH_I2C_Read... [21:56:42]Read from MH i2c: 01 [21:56:42]MH_I2C_Read... [21:56:42]Read from MH i2c: 01 07 00 [21:56:42]MH_I2C_Read... [21:56:42]Read from MH i2c: 01 07 00 49 16 00 00 00 00 00 F4 0C 66 [21:56:42]RasterBufferAndPrint [21:56:42]line [21:56:42]line [21:56:42]line [21:56:42]line [21:56:42]line [21:56:42]written 0, free lines is 3323 [21:56:42]MH_Cut [21:56:42]Write to MH i2c: D1 01 00 50 16 01 38 [21:56:42]Write i2c OK [21:56:42]MH_I2C_Read... [21:56:42]Read from MH i2c: D1 [21:56:42]MH_I2C_Read... [21:56:42]Read from MH i2c: D1 01 00 [21:56:42]MH_I2C_Read... [21:56:42]Read from MH i2c: D1 01 00 50 16 00 37 [21:56:42]Write to MH i2c: 01 00 00 51 16 67 [21:56:42]Write i2c OK [21:56:42]MH_I2C_Read... [21:56:43]OFD Sender: No OFD packet to send [21:56:43]*** Cut start [21:56:43]*** Partial cut [21:56:43]*** CUTSNS_PIN = 1 [21:56:43]*** CUTSNS_PIN = 0 [21:56:43]*** Brake cut motor [21:56:44]Read from MH i2c: 01 [21:56:44]MH_I2C_Read... [21:56:44]*** Stop cut motor [21:56:44]*** Cut end [21:56:44]Read from MH i2c: 01 07 00 [21:56:44]MH_I2C_Read... [21:56:44]Read from MH i2c: 01 07 00 51 16 00 00 00 00 00 FF 0F 7C [21:56:44]process_action close_receipt done [21:56:44]requested_data is exist [21:56:44]produce_requested_data [21:56:44]requested_item fm.sn is exist - process it [21:56:44]wFMCommunicate request_size=4 [21:56:44]MH_SAM_APDU [21:56:44]CAPDU: 80 11 00 00 [21:56:44]Write to MH i2c: E2 08 00 52 16 80 11 00 00 00 00 00 00 E2 [21:56:44]Write i2c OK [21:56:44]MH_I2C_Read... [21:56:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:56:44]Read from MH i2c: E2 [21:56:44]MH_I2C_Read... [21:56:44]Read from MH i2c: E2 17 00 [21:56:44]MH_I2C_Read... [21:56:44]Read from MH i2c: E2 17 00 52 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 35 [21:56:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [21:56:44]wFMCommunicate OK [21:56:44]requested_item fd.num is exist - process it [21:56:44]SAM_PROTO_GetFieldsCounters [21:56:44]wFMCommunicate request_size=4 [21:56:44]MH_SAM_APDU [21:56:44]CAPDU: 80 13 00 00 [21:56:44]Write to MH i2c: E2 08 00 53 16 80 13 00 00 00 00 00 00 E5 [21:56:44]Write i2c OK [21:56:44]MH_I2C_Read... [21:56:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:56:44]Read from MH i2c: E2 [21:56:44]MH_I2C_Read... [21:56:44]Read from MH i2c: E2 62 00 [21:56:44]MH_I2C_Read... [21:56:44]Read from MH i2c: E2 62 00 53 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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 7C 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 EA 00 00 00 5E 04 04 00 EA 00 00 00 57 04 04 00 EB 00 00 00 19 04 04 00 00 00 00 00 90 00 3E [21:56:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 7C 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 EA 00 00 00 5E 04 04 00 EA 00 00 00 57 04 04 00 EB 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:56:44]wFMCommunicate OK [21:56:44]SAM_PROTO_GetFieldsCounters done [21:56:44]requested_item shift.num is exist - process it [21:56:44]requested_item shift.opened is exist - process it [21:56:44]req_shift_opened [21:56:44]FM_GetShiftState [21:56:44]SAM_PROTO_GetShiftState [21:56:44]wFMCommunicate request_size=4 [21:56:44]MH_SAM_APDU [21:56:44]CAPDU: 80 13 01 00 [21:56:44]Write to MH i2c: E2 08 00 54 16 80 13 01 00 00 00 00 00 E7 [21:56:44]Write i2c OK [21:56:44]MH_I2C_Read... [21:56:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:56:44]Read from MH i2c: E2 [21:56:44]MH_I2C_Read... [21:56:44]Read from MH i2c: E2 0E 00 [21:56:44]MH_I2C_Read... [21:56:44]Read from MH i2c: E2 0E 00 54 16 00 09 00 01 04 26 72 66 00 00 00 00 90 00 F5 [21:56:44]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [21:56:44]wFMCommunicate OK [21:56:44]SAM_PROTO_GetShiftState done [21:56:44]FM_GetShiftState done [21:56:44]req_shift_opened done [21:56:44]requested_item shift.open_date is exist - process it [21:56:44]req_shift_open_date [21:56:44]req_shift_open_date done [21:56:44]produce_requested_data done [21:56:44]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103804,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [21:56:44]process_action_free close_receipt [21:56:44]json_value_free [21:56:44]json_value_free done [21:56:44]process_json_proto returns [21:56:44]Send response to host [21:56:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103804,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [21:56:44]free response buf [21:56:44]execute_script done [21:56:44]execute_script returns [21:56:44]free content buf [21:56:44]Sock 9.Close socket [21:56:44]Sock 9.Thread stoped [21:56:48]OFD Sender: No OFD packet to send [21:56:53]OFD Sender: No OFD packet to send [21:56:58]OFD Sender: No OFD packet to send [21:57:03]OFD Sender: No OFD packet to send [21:57:08]OFD Sender: No OFD packet to send [21:57:13]OFD Sender: No OFD packet to send [21:57:18]OFD Sender: No OFD packet to send [21:57:23]OFD Sender: No OFD packet to send [21:57:28]OFD Sender: No OFD packet to send [21:57:33]OFD Sender: No OFD packet to send [21:57:38]OFD Sender: No OFD packet to send [21:57:43]OFD Sender: No OFD packet to send [21:57:48]OFD Sender: No OFD packet to send [21:57:53]OFD Sender: No OFD packet to send [21:57:58]OFD Sender: No OFD packet to send [21:58:03]OFD Sender: No OFD packet to send [21:58:08]OFD Sender: No OFD packet to send [21:58:13]OFD Sender: No OFD packet to send [21:58:18]OFD Sender: No OFD packet to send [21:58:23]OFD Sender: No OFD packet to send [21:58:28]OFD Sender: No OFD packet to send [21:58:33]OFD Sender: No OFD packet to send [21:58:38]OFD Sender: No OFD packet to send [21:58:43]OFD Sender: No OFD packet to send [21:58:48]OFD Sender: No OFD packet to send [21:58:53]OFD Sender: No OFD packet to send [21:58:58]OFD Sender: No OFD packet to send [21:59:03]OFD Sender: No OFD packet to send [21:59:08]OFD Sender: No OFD packet to send [21:59:13]OFD Sender: No OFD packet to send [21:59:18]OFD Sender: No OFD packet to send [21:59:23]OFD Sender: No OFD packet to send [21:59:28]OFD Sender: No OFD packet to send [21:59:33]OFD Sender: No OFD packet to send [21:59:38]OFD Sender: No OFD packet to send [21:59:43]OFD Sender: No OFD packet to send [21:59:48]OFD Sender: No OFD packet to send [21:59:53]OFD Sender: No OFD packet to send [21:59:58]OFD Sender: No OFD packet to send [22:00:03]OFD Sender: No OFD packet to send [22:00:08]OFD Sender: No OFD packet to send [22:00:08]accept exits with 8 [22:00:08]New connection [22:00:08]New thread 3066940772 created [22:00:08]Thread 3066797412 joined [22:00:08]Waiting for new connection... [22:00:08] Sock 8.Parse request [22:00:08]Sock 8.Check first char [22:00:08]Sock 8.First char is OK [22:00:08]request: POST /json_proto HTTP/1.0 [22:00:08]Method: POST [22:00:08]URL: /json_proto [22:00:08]Method is POST - this is cgi request [22:00:08]url: /json_proto [22:00:08]query_string will be loaded in cgi processing [22:00:08]execute_cgi json_proto POST (null) [22:00:08]execute_cgi path=json_proto method=POST [22:00:08]POST find Content-Length [22:00:08]Host: 172.17.38.133:8080 [22:00:08]Content-Length: 803 [22:00:08]Content-Type: application/json [22:00:08] [22:00:08]POST finish read [22:00:08]Found Content-Length = 803 [22:00:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673106", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 30.130, "sum" : 2000.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2000.63 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:00:08]execute_script... [22:00: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)673106", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 30.130, "sum" : 2000.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2000.63 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:00:08]POST & json_proto [22:00:08]process_json_proto [22:00:08]json parsed OK: [22:00:08]protocol is kg_v1.0 [22:00:08]action value=close_receipt [22:00:08]process_action close_receipt [22:00:08]cmd_close_receipt [22:00:08]MH_GetDate [22:00:08]Write to MH i2c: F0 00 00 55 16 5A [22:00:08]Write i2c OK [22:00:08]MH_I2C_Read... [22:00:08]Read from MH i2c: F0 [22:00:08]MH_I2C_Read... [22:00:08]Read from MH i2c: F0 09 00 [22:00:08]MH_I2C_Read... [22:00:08]Read from MH i2c: F0 09 00 55 16 00 EA 54 73 66 BD 8F 7C 64 A6 [22:00:08]GetLastDocTimeStamp 1718834202 [22:00:08]current date 1718834410 [22:00:08]FM_GetShiftState [22:00:08]SAM_PROTO_GetShiftState [22:00:08]wFMCommunicate request_size=4 [22:00:08]MH_SAM_APDU [22:00:08]CAPDU: 80 13 01 00 [22:00:08]Write to MH i2c: E2 08 00 56 16 80 13 01 00 00 00 00 00 E9 [22:00:08]Write i2c OK [22:00:08]MH_I2C_Read... [22:00:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:00:09]Read from MH i2c: E2 [22:00:09]MH_I2C_Read... [22:00:09]Read from MH i2c: E2 0E 00 [22:00:09]MH_I2C_Read... [22:00:09]Read from MH i2c: E2 0E 00 56 16 00 09 00 01 04 26 72 66 00 00 00 00 90 00 F7 [22:00:09]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [22:00:09]wFMCommunicate OK [22:00:09]SAM_PROTO_GetShiftState done [22:00:09]FM_GetShiftState done [22:00:09]opened in 1718756868 [22:00:09]opened+sec_in_day 1718843268 [22:00:09]quantity*price = 200063 [22:00:09]sum+1 = 200064 [22:00:09]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.63 НСП 1% : 17.70 НДС 12% : 212.46 Наличными: 0.00 Безнал.: 2000.63 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 235 19.06.2024 22:00 Смена: 353 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000875093 ФД: 103805 ФПД: 261234040319895 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T220010&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103805&fm=261234040319895&tin=02508201610067®Number=0000000000092785&sum=200063 [22:00:10]StoreToDocumentArchive [22:00:10]shift 353 fd 103805 [22:00:10]save to /storage/0353/doc_00103805 [22:00:10]save last doc name /storage/0353/doc_00103805 to /storage/kkm_last_doc_name [22:00:10]save OK [22:00:10]Clear old archive folders... [22:00:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:00:10]tlvbuf is 016D1BD0 [22:00:10]SAM_PROTO_ClearQueue [22:00:10]wFMCommunicate request_size=4 [22:00:10]MH_SAM_APDU [22:00:10]CAPDU: 80 09 00 00 [22:00:10]Write to MH i2c: E2 08 00 63 16 80 09 00 00 00 00 00 00 EB [22:00:10]Write i2c OK [22:00:10]MH_I2C_Read... [22:00:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:00:10]Read from MH i2c: E2 [22:00:10]MH_I2C_Read... [22:00:10]Read from MH i2c: E2 03 00 [22:00:10]MH_I2C_Read... [22:00:10]Read from MH i2c: E2 03 00 63 16 00 90 00 ED [22:00:10]RAPDU: 90 00 [22:00:10]wFMCommunicate OK [22:00:10]SAM_PROTO_ClearQueue done [22:00:10]KKMCreateOFDPacket [22:00:10]OFDProtocolAddRootSTLVToBuf [22:00:10]FM_MakeSignedData [22:00:10]FM_MakeSignedData [22:00:10]SAM_PROTO_SignData [22:00:10]wFMCommunicate request_size=4 [22:00:10]MH_SAM_APDU [22:00:10]CAPDU: 80 0D 01 02 [22:00:10]Write to MH i2c: E2 08 00 64 16 80 0D 01 02 00 00 00 00 F3 [22:00:10]Write i2c OK [22:00:10]MH_I2C_Read... [22:00:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:00:10]Read from MH i2c: E2 [22:00:10]MH_I2C_Read... [22:00:10]Read from MH i2c: E2 03 00 [22:00:10]MH_I2C_Read... [22:00:10]Read from MH i2c: E2 03 00 64 16 00 90 00 EE [22:00:10]RAPDU: 90 00 [22:00:10]wFMCommunicate OK [22:00:10]wFMCommunicate request_size=255 [22:00:10]MH_SAM_APDU [22:00:10]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B2 75 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7F 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FE 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7F 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 EB 00 00 00 F4 03 04 00 EA 54 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 7D 95 01 00 35 04 06 00 ED [22:00:10]Write to MH i2c: E2 02 01 65 16 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B2 75 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7F 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FE 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7F 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 EB 00 00 00 F4 03 04 00 EA 54 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 7D 95 01 00 35 04 06 00 ED 00 00 84 [22:00:10]Write i2c OK [22:00:10]MH_I2C_Read... [22:00:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:00:10]Read from MH i2c: E2 [22:00:10]MH_I2C_Read... [22:00:10]Read from MH i2c: E2 03 00 [22:00:10]MH_I2C_Read... [22:00:10]Read from MH i2c: E2 03 00 65 16 00 90 00 EF [22:00:10]RAPDU: 90 00 [22:00:10]wFMCommunicate OK [22:00:10]wFMCommunicate request_size=10 [22:00:10]MH_SAM_APDU [22:00:10]CAPDU: 80 0D 02 02 05 97 4A 2D 2F 97 [22:00:10]Write to MH i2c: E2 0D 00 66 16 80 0D 02 02 05 00 97 4A 2D 2F 97 00 00 D4 [22:00:10]Write i2c OK [22:00:10]MH_I2C_Read... [22:00:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:00:10]Read from MH i2c: E2 [22:00:10]MH_I2C_Read... [22:00:10]Read from MH i2c: E2 03 00 [22:00:10]MH_I2C_Read... [22:00:10]Read from MH i2c: E2 03 00 66 16 00 90 00 F0 [22:00:10]RAPDU: 90 00 [22:00:10]wFMCommunicate OK [22:00:10]wFMCommunicate request_size=4 [22:00:10]MH_SAM_APDU [22:00:10]CAPDU: 80 0D 03 02 [22:00:10]Write to MH i2c: E2 08 00 67 16 80 0D 03 02 00 00 00 00 F8 [22:00:10]Write i2c OK [22:00:10]MH_I2C_Read... [22:00:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:00:10]Read from MH i2c: E2 [22:00:10]MH_I2C_Read... [22:00:10]Read from MH i2c: E2 0B 00 [22:00:10]MH_I2C_Read... [22:00:10]Read from MH i2c: E2 0B 00 67 16 00 68 35 B8 8E 56 8B 42 DF 90 00 DE [22:00:10]RAPDU: 68 35 B8 8E 56 8B 42 DF 90 00 [22:00:10]wFMCommunicate OK [22:00:10]SAM_PROTO_SignData done [22:00:10]FM_MakeSignedData done [22:00:10]CreateOFDProtocolMessage [22:00:10]wFMCommunicate request_size=4 [22:00:10]MH_SAM_APDU [22:00:10]CAPDU: 80 11 00 00 [22:00:10]Write to MH i2c: E2 08 00 68 16 80 11 00 00 00 00 00 00 F8 [22:00:10]Write i2c OK [22:00:10]MH_I2C_Read... [22:00:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:00:10]Read from MH i2c: E2 [22:00:10]MH_I2C_Read... [22:00:10]Read from MH i2c: E2 17 00 [22:00:10]MH_I2C_Read... [22:00:10]Read from MH i2c: E2 17 00 68 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 4B [22:00:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [22:00:10]wFMCommunicate OK [22:00:10]CreateOFDProtocolMessage done [22:00:10]OFDSenderStorePacket 103805 [22:00:10]StoreOFDPacket docnum=103805 [22:00:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 4D 06 07 01 1B 28 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B2 75 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7F 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FE 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7F 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 EB 00 00 00 F4 03 04 00 EA 54 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 7D 95 01 00 35 04 06 00 ED 97 4A 2D 2F 97 68 35 B8 8E 56 8B 42 DF [22:00:10]CheckFolder [22:00:10]dirname=/storage/ofd_packets [22:00:10]CheckFolder done [22:00:10]ProducePacketName [22:00:10]name=ofd_packets/00103805 [22:00:10]NVStorageSaveData ofd_packets/00103805 [22:00:10]File name is /storage/ofd_packets/00103805 [22:00:10]Write 301 bytes [22:00:10]NVStorageSaveData done [22:00:10]OFDSenderStorePacket done [22:00:10]KKMCreateOFDPacket done [22:00:10]NVStorageSaveData kkm_last_timestamp [22:00:10]File name is /storage/kkm_last_timestamp [22:00:10]Write 4 bytes [22:00:10]NVStorageSaveData done [22:00:10]ExternCall_PrintAddStr [22:00:10]wPrintStart [22:00:10]Write to MH i2c: 01 00 00 69 16 7F [22:00:10]Write i2c OK [22:00:10]MH_I2C_Read... [22:00:10]Read from MH i2c: 01 [22:00:10]MH_I2C_Read... [22:00:10]Read from MH i2c: 01 07 00 [22:00:10]MH_I2C_Read... [22:00:10]Read from MH i2c: 01 07 00 69 16 00 00 00 00 00 FF 0F 94 [22:00:10]RasterBufferAndPrint [22:00:10]line Счет N : (1)673106 [22:00:10]line ИНН: 02508201610067 [22:00:10]line Контрольно-Кассовый Чек [22:00:10]line ПРОДАЖА [22:00:10]line ТРК (МРК, ГНК) : 42 [22:00:10]line Товар: 2710124130 [22:00:10]line Аи-92-К-5 [22:00:10]line 30.130 * 66.40 [22:00:10]line = 2000.63 [22:00:10]line НДС 12% НСП 1% [22:00:10]line > о реализуемом товаре [22:00:10]line ИТОГО: 2000.63 [22:00:10]line НСП 1% : 17.70 [22:00:10]line НДС 12% : 212.46 [22:00:10]line Наличными: 0.00 [22:00:10]line Безнал.: 2000.63 [22:00:10]line Место: АЗС № 120 "Партнер Нефть" [22:00:10]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [22:00:10]line СНО: Общий режим [22:00:10]line Чек 235 19.06.2024 22:00 [22:00:10]line Смена: 353 ФФД: 1.0 [22:00:10]line ЗНМ: 0300000164 [22:00:10]line РНМ: 0000000000092785 [22:00:10]line Версия ККМ: 001 [22:00:10]line Платежная система: O! деньги [22:00:10]line ФМ: 0000000000875093 [22:00:10]line ФД: 103805 [22:00:10]line ФПД: 261234040319895 [22:00:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T220010&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103805&fm=261234040319895&tin=02508201610067®Number=0000000000092785&sum=200063 [22:00:10]OFD Sender: Processing packet 103805 [packets to send 17, broken 16] [22:00:10]ProducePacketName [22:00:10]name=ofd_packets/00103805 [22:00:10]OFD Sender: To server: pG, [22:00:10]CommunicateWithHost lk.salyk.kg:30040 [22:00:10]ConnectInit lk.salyk.kg [22:00:10]written 0, free lines is 4095 [22:00:11]Connected sock=10 [22:00:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 4D 06 07 01 1B 28 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B2 75 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7F 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FE 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7F 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 EB 00 00 00 F4 03 04 00 EA 54 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 7D 95 01 00 35 04 06 00 ED 97 4A 2D 2F 97 68 35 B8 8E 56 8B 42 DF [22:00: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 39 33 4F 00 00 00 ED 0F 47 00 30 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 39 33 10 04 04 00 7D 95 01 00 F4 03 04 00 72 FB 72 66 B6 04 01 00 00 6F 43 D0 07 1A 58 29 76 [22:00:11]CommunicateWithHost err = 0 [22:00:11]CheckOFDResponse [22:00:11]1017 (14) - 77093643461234 [22:00:11]1041 (16) - 0000000000875093 [22:00:11]1040 (4) - 103805 [22:00:11]1012 (4) - 19.06.2024 15:38 [22:00:11]1206 (1) - 0 [22:00:11]OFD Sender: Remove packet 103805 [22:00:11]ProducePacketName [22:00:11]name=ofd_packets/00103805 [22:00:11]NVStorageDeleteData [22:00:11]Write to MH i2c: 01 00 00 93 16 A9 [22:00:11]Write i2c OK [22:00:11]MH_I2C_Read... [22:00:11]Read from MH i2c: 01 [22:00:11]MH_I2C_Read... [22:00:11]Read from MH i2c: 01 07 00 [22:00:11]MH_I2C_Read... [22:00:11]Read from MH i2c: 01 07 00 93 16 00 00 00 00 00 02 0D BF [22:00:11]RasterBufferAndPrint [22:00:11]line [22:00:11]line [22:00:11]line [22:00:11]line [22:00:11]line [22:00:11]written 0, free lines is 3336 [22:00:11]MH_Cut [22:00:11]Write to MH i2c: D1 01 00 9A 16 01 82 [22:00:11]Write i2c OK [22:00:11]MH_I2C_Read... [22:00:11]Read from MH i2c: D1 [22:00:11]MH_I2C_Read... [22:00:11]Read from MH i2c: D1 01 00 [22:00:11]MH_I2C_Read... [22:00:11]Read from MH i2c: D1 01 00 9A 16 00 81 [22:00:11]Write to MH i2c: 01 00 00 9B 16 B1 [22:00:11]Write i2c OK [22:00:11]MH_I2C_Read... [22:00:11]OFD Sender: No OFD packet to send [22:00:12]*** Cut start [22:00:12]*** Partial cut [22:00:12]*** CUTSNS_PIN = 1 [22:00:12]*** CUTSNS_PIN = 0 [22:00:12]*** Brake cut motor [22:00:12]Read from MH i2c: 01 [22:00:12]MH_I2C_Read... [22:00:12]*** Stop cut motor [22:00:12]*** Cut end [22:00:12]Read from MH i2c: 01 07 00 [22:00:12]MH_I2C_Read... [22:00:12]Read from MH i2c: 01 07 00 9B 16 00 00 00 00 00 FF 0F C6 [22:00:12]process_action close_receipt done [22:00:12]requested_data is exist [22:00:12]produce_requested_data [22:00:12]requested_item fm.sn is exist - process it [22:00:12]wFMCommunicate request_size=4 [22:00:12]MH_SAM_APDU [22:00:12]CAPDU: 80 11 00 00 [22:00:12]Write to MH i2c: E2 08 00 9C 16 80 11 00 00 00 00 00 00 2C [22:00:12]Write i2c OK [22:00:12]MH_I2C_Read... [22:00:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:00:12]Read from MH i2c: E2 [22:00:12]MH_I2C_Read... [22:00:12]Read from MH i2c: E2 17 00 [22:00:12]MH_I2C_Read... [22:00:12]Read from MH i2c: E2 17 00 9C 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 7F [22:00:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [22:00:12]wFMCommunicate OK [22:00:12]requested_item fd.num is exist - process it [22:00:12]SAM_PROTO_GetFieldsCounters [22:00:12]wFMCommunicate request_size=4 [22:00:12]MH_SAM_APDU [22:00:12]CAPDU: 80 13 00 00 [22:00:12]Write to MH i2c: E2 08 00 9D 16 80 13 00 00 00 00 00 00 2F [22:00:12]Write i2c OK [22:00:12]MH_I2C_Read... [22:00:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:00:12]Read from MH i2c: E2 [22:00:12]MH_I2C_Read... [22:00:12]Read from MH i2c: E2 62 00 [22:00:12]MH_I2C_Read... [22:00:12]Read from MH i2c: E2 62 00 9D 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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 7D 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 EB 00 00 00 5E 04 04 00 EB 00 00 00 57 04 04 00 EC 00 00 00 19 04 04 00 00 00 00 00 90 00 8C [22:00: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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 7D 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 EB 00 00 00 5E 04 04 00 EB 00 00 00 57 04 04 00 EC 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:00:12]wFMCommunicate OK [22:00:12]SAM_PROTO_GetFieldsCounters done [22:00:12]requested_item shift.num is exist - process it [22:00:12]requested_item shift.opened is exist - process it [22:00:12]req_shift_opened [22:00:12]FM_GetShiftState [22:00:12]SAM_PROTO_GetShiftState [22:00:12]wFMCommunicate request_size=4 [22:00:12]MH_SAM_APDU [22:00:12]CAPDU: 80 13 01 00 [22:00:12]Write to MH i2c: E2 08 00 9E 16 80 13 01 00 00 00 00 00 31 [22:00:12]Write i2c OK [22:00:12]MH_I2C_Read... [22:00:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:00:13]Read from MH i2c: E2 [22:00:13]MH_I2C_Read... [22:00:13]Read from MH i2c: E2 0E 00 [22:00:13]MH_I2C_Read... [22:00:13]Read from MH i2c: E2 0E 00 9E 16 00 09 00 01 04 26 72 66 00 00 00 00 90 00 3F [22:00:13]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [22:00:13]wFMCommunicate OK [22:00:13]SAM_PROTO_GetShiftState done [22:00:13]FM_GetShiftState done [22:00:13]req_shift_opened done [22:00:13]requested_item shift.open_date is exist - process it [22:00:13]req_shift_open_date [22:00:13]req_shift_open_date done [22:00:13]produce_requested_data done [22:00:13]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103805,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [22:00:13]process_action_free close_receipt [22:00:13]json_value_free [22:00:13]json_value_free done [22:00:13]process_json_proto returns [22:00:13]Send response to host [22:00:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103805,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [22:00:13]free response buf [22:00:13]execute_script done [22:00:13]execute_script returns [22:00:13]free content buf [22:00:13]Sock 8.Close socket [22:00:13]Sock 8.Thread stoped [22:00:16]OFD Sender: No OFD packet to send [22:00:21]OFD Sender: No OFD packet to send [22:00:26]OFD Sender: No OFD packet to send [22:00:31]OFD Sender: No OFD packet to send [22:00:36]OFD Sender: No OFD packet to send [22:00:41]OFD Sender: No OFD packet to send [22:00:46]OFD Sender: No OFD packet to send [22:00:51]OFD Sender: No OFD packet to send [22:00:56]OFD Sender: No OFD packet to send [22:01:01]OFD Sender: No OFD packet to send [22:01:06]OFD Sender: No OFD packet to send [22:01:11]OFD Sender: No OFD packet to send [22:01:16]OFD Sender: No OFD packet to send [22:01:21]OFD Sender: No OFD packet to send [22:01:26]OFD Sender: No OFD packet to send [22:01:31]OFD Sender: No OFD packet to send [22:01:36]OFD Sender: No OFD packet to send [22:01:41]OFD Sender: No OFD packet to send [22:01:46]OFD Sender: No OFD packet to send [22:01:51]OFD Sender: No OFD packet to send [22:01:52]accept exits with 9 [22:01:52]New connection [22:01:52]New thread 3066797412 created [22:01:52]Thread 3066940772 joined [22:01:52]Waiting for new connection... [22:01:52] Sock 9.Parse request [22:01:52]Sock 9.Check first char [22:01:52]Sock 9.First char is OK [22:01:52]request: POST /json_proto HTTP/1.0 [22:01:52]Method: POST [22:01:52]URL: /json_proto [22:01:52]Method is POST - this is cgi request [22:01:52]url: /json_proto [22:01:52]query_string will be loaded in cgi processing [22:01:52]execute_cgi json_proto POST (null) [22:01:52]execute_cgi path=json_proto method=POST [22:01:52]POST find Content-Length [22:01:52]Host: 172.17.38.133:8080 [22:01:52]Content-Length: 678 [22:01:52]Content-Type: application/json [22:01:52] [22:01:52]POST finish read [22:01:52]Found Content-Length = 678 [22:01:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673107", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 10.550, "sum" : 700.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:01:52]execute_script... [22:01:52]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673107", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 10.550, "sum" : 700.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:01:52]POST & json_proto [22:01:52]process_json_proto [22:01:52]json parsed OK: [22:01:52]protocol is kg_v1.0 [22:01:52]action value=close_receipt [22:01:52]process_action close_receipt [22:01:52]cmd_close_receipt [22:01:52]MH_GetDate [22:01:52]Write to MH i2c: F0 00 00 9F 16 A4 [22:01:52]Write i2c OK [22:01:52]MH_I2C_Read... [22:01:52]Read from MH i2c: F0 [22:01:52]MH_I2C_Read... [22:01:52]Read from MH i2c: F0 09 00 [22:01:52]MH_I2C_Read... [22:01:52]Read from MH i2c: F0 09 00 9F 16 00 51 55 73 66 BD 8F 7C 64 58 [22:01:52]GetLastDocTimeStamp 1718834410 [22:01:52]current date 1718834513 [22:01:52]FM_GetShiftState [22:01:52]SAM_PROTO_GetShiftState [22:01:52]wFMCommunicate request_size=4 [22:01:52]MH_SAM_APDU [22:01:52]CAPDU: 80 13 01 00 [22:01:52]Write to MH i2c: E2 08 00 A0 16 80 13 01 00 00 00 00 00 33 [22:01:52]Write i2c OK [22:01:52]MH_I2C_Read... [22:01:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:01:52]Read from MH i2c: E2 [22:01:52]MH_I2C_Read... [22:01:52]Read from MH i2c: E2 0E 00 [22:01:52]MH_I2C_Read... [22:01:52]Read from MH i2c: E2 0E 00 A0 16 00 09 00 01 04 26 72 66 00 00 00 00 90 00 41 [22:01:52]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [22:01:52]wFMCommunicate OK [22:01:52]SAM_PROTO_GetShiftState done [22:01:52]FM_GetShiftState done [22:01:52]opened in 1718756868 [22:01:52]opened+sec_in_day 1718843268 [22:01:52]quantity*price = 70052 [22:01:52]sum+1 = 70053 [22:01:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.52 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.39 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 236 19.06.2024 22:01 Смена: 353 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103806 ФПД: 18857456935752 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T220153&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103806&fm=18857456935752&tin=02508201610067®Number=0000000000092785&sum=70000 [22:01:53]StoreToDocumentArchive [22:01:53]shift 353 fd 103806 [22:01:53]save to /storage/0353/doc_00103806 [22:01:53]save last doc name /storage/0353/doc_00103806 to /storage/kkm_last_doc_name [22:01:53]save OK [22:01:53]Clear old archive folders... [22:01:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:01:53]tlvbuf is B6EBE950 [22:01:53]SAM_PROTO_ClearQueue [22:01:53]wFMCommunicate request_size=4 [22:01:53]MH_SAM_APDU [22:01:53]CAPDU: 80 09 00 00 [22:01:53]Write to MH i2c: E2 08 00 AD 16 80 09 00 00 00 00 00 00 35 [22:01:53]Write i2c OK [22:01:53]MH_I2C_Read... [22:01:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:01:53]Read from MH i2c: E2 [22:01:53]MH_I2C_Read... [22:01:53]Read from MH i2c: E2 03 00 [22:01:53]MH_I2C_Read... [22:01:53]Read from MH i2c: E2 03 00 AD 16 00 90 00 37 [22:01:53]RAPDU: 90 00 [22:01:53]wFMCommunicate OK [22:01:53]SAM_PROTO_ClearQueue done [22:01:53]KKMCreateOFDPacket [22:01:53]OFDProtocolAddRootSTLVToBuf [22:01:53]FM_MakeSignedData [22:01:53]FM_MakeSignedData [22:01:53]SAM_PROTO_SignData [22:01:53]wFMCommunicate request_size=4 [22:01:53]MH_SAM_APDU [22:01:53]CAPDU: 80 0D 01 02 [22:01:53]Write to MH i2c: E2 08 00 AE 16 80 0D 01 02 00 00 00 00 3D [22:01:53]Write i2c OK [22:01:53]MH_I2C_Read... [22:01:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:01:53]Read from MH i2c: E2 [22:01:53]MH_I2C_Read... [22:01:53]Read from MH i2c: E2 03 00 [22:01:53]MH_I2C_Read... [22:01:53]Read from MH i2c: E2 03 00 AE 16 00 90 00 38 [22:01:53]RAPDU: 90 00 [22:01:53]wFMCommunicate OK [22:01:53]wFMCommunicate request_size=255 [22:01:53]MH_SAM_APDU [22:01: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 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EC 00 00 00 F4 03 04 00 51 55 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 7E 95 01 00 35 04 06 00 11 [22:01:53]Write to MH i2c: E2 02 01 AF 16 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EC 00 00 00 F4 03 04 00 51 55 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 7E 95 01 00 35 04 06 00 11 00 00 FB [22:01:53]Write i2c OK [22:01:53]MH_I2C_Read... [22:01:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:01:53]Read from MH i2c: E2 [22:01:53]MH_I2C_Read... [22:01:53]Read from MH i2c: E2 03 00 [22:01:53]MH_I2C_Read... [22:01:53]Read from MH i2c: E2 03 00 AF 16 00 90 00 39 [22:01:53]RAPDU: 90 00 [22:01:53]wFMCommunicate OK [22:01:53]wFMCommunicate request_size=10 [22:01:53]MH_SAM_APDU [22:01:53]CAPDU: 80 0D 02 02 05 26 98 05 A3 48 [22:01:53]Write to MH i2c: E2 0D 00 B0 16 80 0D 02 02 05 00 26 98 05 A3 48 00 00 F8 [22:01:53]Write i2c OK [22:01:53]MH_I2C_Read... [22:01:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:01:53]Read from MH i2c: E2 [22:01:53]MH_I2C_Read... [22:01:53]Read from MH i2c: E2 03 00 [22:01:53]MH_I2C_Read... [22:01:53]Read from MH i2c: E2 03 00 B0 16 00 90 00 3A [22:01:53]RAPDU: 90 00 [22:01:53]wFMCommunicate OK [22:01:53]wFMCommunicate request_size=4 [22:01:53]MH_SAM_APDU [22:01:53]CAPDU: 80 0D 03 02 [22:01:53]Write to MH i2c: E2 08 00 B1 16 80 0D 03 02 00 00 00 00 42 [22:01:53]Write i2c OK [22:01:53]MH_I2C_Read... [22:01:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:01:53]Read from MH i2c: E2 [22:01:53]MH_I2C_Read... [22:01:53]Read from MH i2c: E2 0B 00 [22:01:53]MH_I2C_Read... [22:01:53]Read from MH i2c: E2 0B 00 B1 16 00 0D 9E F8 B5 5D A9 68 1C 90 00 25 [22:01:53]RAPDU: 0D 9E F8 B5 5D A9 68 1C 90 00 [22:01:53]wFMCommunicate OK [22:01:53]SAM_PROTO_SignData done [22:01:53]FM_MakeSignedData done [22:01:53]CreateOFDProtocolMessage [22:01:53]wFMCommunicate request_size=4 [22:01:53]MH_SAM_APDU [22:01:53]CAPDU: 80 11 00 00 [22:01:53]Write to MH i2c: E2 08 00 B2 16 80 11 00 00 00 00 00 00 42 [22:01:53]Write i2c OK [22:01:53]MH_I2C_Read... [22:01:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:01:53]Read from MH i2c: E2 [22:01:53]MH_I2C_Read... [22:01:53]Read from MH i2c: E2 17 00 [22:01:53]MH_I2C_Read... [22:01:53]Read from MH i2c: E2 17 00 B2 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 95 [22:01:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [22:01:53]wFMCommunicate OK [22:01:53]CreateOFDProtocolMessage done [22:01:53]OFDSenderStorePacket 103806 [22:01:53]StoreOFDPacket docnum=103806 [22:01:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 05 7D 07 01 78 5D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EC 00 00 00 F4 03 04 00 51 55 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 7E 95 01 00 35 04 06 00 11 26 98 05 A3 48 0D 9E F8 B5 5D A9 68 1C [22:01:53]CheckFolder [22:01:53]dirname=/storage/ofd_packets [22:01:53]CheckFolder done [22:01:53]ProducePacketName [22:01:53]name=ofd_packets/00103806 [22:01:53]NVStorageSaveData ofd_packets/00103806 [22:01:53]File name is /storage/ofd_packets/00103806 [22:01:53]Write 301 bytes [22:01:53]NVStorageSaveData done [22:01:53]OFDSenderStorePacket done [22:01:53]KKMCreateOFDPacket done [22:01:53]NVStorageSaveData kkm_last_timestamp [22:01:53]File name is /storage/kkm_last_timestamp [22:01:53]Write 4 bytes [22:01:53]NVStorageSaveData done [22:01:53]ExternCall_PrintAddStr [22:01:53]wPrintStart [22:01:53]Write to MH i2c: 01 00 00 B3 16 C9 [22:01:53]Write i2c OK [22:01:53]MH_I2C_Read... [22:01:53]Read from MH i2c: 01 [22:01:53]MH_I2C_Read... [22:01:53]Read from MH i2c: 01 07 00 [22:01:53]MH_I2C_Read... [22:01:53]Read from MH i2c: 01 07 00 B3 16 00 00 00 00 00 FF 0F DE [22:01:53]RasterBufferAndPrint [22:01:53]line Счет N : (1)673107 [22:01:53]line ИНН: 02508201610067 [22:01:53]line Контрольно-Кассовый Чек [22:01:53]line ПРОДАЖА [22:01:53]line ТРК (МРК, ГНК) : 32 [22:01:53]line Товар: 2710124130 [22:01:53]line Аи-92-К-5 [22:01:53]line 10.550 * 66.40 [22:01:53]line = 700.52 [22:01:53]line НДС 12% НСП 1% [22:01:53]line > о реализуемом товаре [22:01:53]line ОКРУГЛЕНИЕ: -0.52 [22:01:53]line ИТОГО: 700.00 [22:01:53]line Внесено: 700.00 [22:01:53]line СДАЧА: 0.00 [22:01:53]line НСП 1% : 6.20 [22:01:53]line НДС 12% : 74.39 [22:01:53]line Наличными: 700.00 [22:01:53]line Безнал.: 0.00 [22:01:53]line Место: АЗС № 120 "Партнер Нефть" [22:01:53]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [22:01:53]line СНО: Общий режим [22:01:53]line Чек 236 19.06.2024 22:01 [22:01:53]line Смена: 353 ФФД: 1.0 [22:01:53]line ЗНМ: 0300000164 [22:01:53]line РНМ: 0000000000092785 [22:01:53]line Версия ККМ: 001 [22:01:53]line ФМ: 0000000000875093 [22:01:53]line ФД: 103806 [22:01:53]line ФПД: 18857456935752 [22:01:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T220153&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103806&fm=18857456935752&tin=02508201610067®Number=0000000000092785&sum=70000 [22:01:54]OFD Sender: Processing packet 103806 [packets to send 17, broken 16] [22:01:54]ProducePacketName [22:01:54]name=ofd_packets/00103806 [22:01:54]OFD Sender: To server: pG, [22:01:54]CommunicateWithHost lk.salyk.kg:30040 [22:01:54]ConnectInit lk.salyk.kg [22:01:54]written 0, free lines is 4095 [22:01:54]Connected sock=10 [22:01:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 05 7D 07 01 78 5D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EC 00 00 00 F4 03 04 00 51 55 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 7E 95 01 00 35 04 06 00 11 26 98 05 A3 48 0D 9E F8 B5 5D A9 68 1C [22:01: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 39 33 4F 00 00 00 37 0D 47 00 A7 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 39 33 10 04 04 00 7E 95 01 00 F4 03 04 00 D9 FB 72 66 B6 04 01 00 00 92 85 92 AB 93 02 58 C4 [22:01:54]CommunicateWithHost err = 0 [22:01:54]CheckOFDResponse [22:01:54]1017 (14) - 77093643461234 [22:01:54]1041 (16) - 0000000000875093 [22:01:54]1040 (4) - 103806 [22:01:54]1012 (4) - 19.06.2024 15:40 [22:01:54]1206 (1) - 0 [22:01:54]OFD Sender: Remove packet 103806 [22:01:54]ProducePacketName [22:01:54]name=ofd_packets/00103806 [22:01:54]NVStorageDeleteData [22:01:54]Write to MH i2c: 01 00 00 DE 16 F4 [22:01:54]Write i2c OK [22:01:54]MH_I2C_Read... [22:01:54]Read from MH i2c: 01 [22:01:54]MH_I2C_Read... [22:01:54]Read from MH i2c: 01 07 00 [22:01:54]MH_I2C_Read... [22:01:54]Read from MH i2c: 01 07 00 DE 16 00 00 00 00 00 ED 0C F4 [22:01:54]RasterBufferAndPrint [22:01:54]line [22:01:54]line [22:01:54]line [22:01:54]line [22:01:54]line [22:01:54]written 0, free lines is 3315 [22:01:54]MH_Cut [22:01:54]Write to MH i2c: D1 01 00 E5 16 01 CD [22:01:54]Write i2c OK [22:01:54]MH_I2C_Read... [22:01:54]Read from MH i2c: D1 [22:01:54]MH_I2C_Read... [22:01:54]Read from MH i2c: D1 01 00 [22:01:54]MH_I2C_Read... [22:01:54]Read from MH i2c: D1 01 00 E5 16 00 CC [22:01:54]Write to MH i2c: 01 00 00 E6 16 FC [22:01:54]Write i2c OK [22:01:54]MH_I2C_Read... [22:01:55]OFD Sender: No OFD packet to send [22:01:55]*** Cut start [22:01:55]*** Partial cut [22:01:55]*** CUTSNS_PIN = 1 [22:01:55]*** CUTSNS_PIN = 0 [22:01:55]*** Brake cut motor [22:01:55]Read from MH i2c: 01 [22:01:55]MH_I2C_Read... [22:01:55]*** Stop cut motor [22:01:55]*** Cut end [22:01:55]Read from MH i2c: 01 07 00 [22:01:55]MH_I2C_Read... [22:01:55]Read from MH i2c: 01 07 00 E6 16 00 00 00 00 00 FF 0F 11 [22:01:55]process_action close_receipt done [22:01:55]requested_data is exist [22:01:55]produce_requested_data [22:01:55]requested_item fm.sn is exist - process it [22:01:55]wFMCommunicate request_size=4 [22:01:55]MH_SAM_APDU [22:01:55]CAPDU: 80 11 00 00 [22:01:55]Write to MH i2c: E2 08 00 E7 16 80 11 00 00 00 00 00 00 77 [22:01:55]Write i2c OK [22:01:55]MH_I2C_Read... [22:01:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:01:55]Read from MH i2c: E2 [22:01:55]MH_I2C_Read... [22:01:55]Read from MH i2c: E2 17 00 [22:01:55]MH_I2C_Read... [22:01:55]Read from MH i2c: E2 17 00 E7 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 CA [22:01:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [22:01:55]wFMCommunicate OK [22:01:55]requested_item fd.num is exist - process it [22:01:55]SAM_PROTO_GetFieldsCounters [22:01:55]wFMCommunicate request_size=4 [22:01:55]MH_SAM_APDU [22:01:55]CAPDU: 80 13 00 00 [22:01:55]Write to MH i2c: E2 08 00 E8 16 80 13 00 00 00 00 00 00 7A [22:01:55]Write i2c OK [22:01:55]MH_I2C_Read... [22:01:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:01:56]Read from MH i2c: E2 [22:01:56]MH_I2C_Read... [22:01:56]Read from MH i2c: E2 62 00 [22:01:56]MH_I2C_Read... [22:01:56]Read from MH i2c: E2 62 00 E8 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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 7E 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 EC 00 00 00 5E 04 04 00 EC 00 00 00 57 04 04 00 ED 00 00 00 19 04 04 00 00 00 00 00 90 00 DB [22:01:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 7E 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 EC 00 00 00 5E 04 04 00 EC 00 00 00 57 04 04 00 ED 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:01:56]wFMCommunicate OK [22:01:56]SAM_PROTO_GetFieldsCounters done [22:01:56]requested_item shift.num is exist - process it [22:01:56]requested_item shift.opened is exist - process it [22:01:56]req_shift_opened [22:01:56]FM_GetShiftState [22:01:56]SAM_PROTO_GetShiftState [22:01:56]wFMCommunicate request_size=4 [22:01:56]MH_SAM_APDU [22:01:56]CAPDU: 80 13 01 00 [22:01:56]Write to MH i2c: E2 08 00 E9 16 80 13 01 00 00 00 00 00 7C [22:01:56]Write i2c OK [22:01:56]MH_I2C_Read... [22:01:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:01:56]Read from MH i2c: E2 [22:01:56]MH_I2C_Read... [22:01:56]Read from MH i2c: E2 0E 00 [22:01:56]MH_I2C_Read... [22:01:56]Read from MH i2c: E2 0E 00 E9 16 00 09 00 01 04 26 72 66 00 00 00 00 90 00 8A [22:01:56]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [22:01:56]wFMCommunicate OK [22:01:56]SAM_PROTO_GetShiftState done [22:01:56]FM_GetShiftState done [22:01:56]req_shift_opened done [22:01:56]requested_item shift.open_date is exist - process it [22:01:56]req_shift_open_date [22:01:56]req_shift_open_date done [22:01:56]produce_requested_data done [22:01:56]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103806,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [22:01:56]process_action_free close_receipt [22:01:56]json_value_free [22:01:56]json_value_free done [22:01:56]process_json_proto returns [22:01:56]Send response to host [22:01:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103806,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [22:01:56]free response buf [22:01:56]execute_script done [22:01:56]execute_script returns [22:01:56]free content buf [22:01:56]Sock 9.Close socket [22:01:56]Sock 9.Thread stoped [22:02:00]OFD Sender: No OFD packet to send [22:02:05]OFD Sender: No OFD packet to send [22:02:10]OFD Sender: No OFD packet to send [22:02:15]OFD Sender: No OFD packet to send [22:02:20]OFD Sender: No OFD packet to send [22:02:25]OFD Sender: No OFD packet to send [22:02:30]OFD Sender: No OFD packet to send [22:02:35]OFD Sender: No OFD packet to send [22:02:40]OFD Sender: No OFD packet to send [22:02:45]OFD Sender: No OFD packet to send [22:02:50]OFD Sender: No OFD packet to send [22:02:55]OFD Sender: No OFD packet to send [22:03:00]OFD Sender: No OFD packet to send [22:03:05]OFD Sender: No OFD packet to send [22:03:10]OFD Sender: No OFD packet to send [22:03:15]OFD Sender: No OFD packet to send [22:03:20]OFD Sender: No OFD packet to send [22:03:25]OFD Sender: No OFD packet to send [22:03:30]OFD Sender: No OFD packet to send [22:03:35]OFD Sender: No OFD packet to send [22:03:40]OFD Sender: No OFD packet to send [22:03:45]OFD Sender: No OFD packet to send [22:03:50]OFD Sender: No OFD packet to send [22:03:55]OFD Sender: No OFD packet to send [22:04:00]OFD Sender: No OFD packet to send [22:04:05]OFD Sender: No OFD packet to send [22:04:10]OFD Sender: No OFD packet to send [22:04:15]OFD Sender: No OFD packet to send [22:04:20]OFD Sender: No OFD packet to send [22:04:25]OFD Sender: No OFD packet to send [22:04:30]OFD Sender: No OFD packet to send [22:04:35]OFD Sender: No OFD packet to send [22:04:40]OFD Sender: No OFD packet to send [22:04:45]OFD Sender: No OFD packet to send [22:04:50]OFD Sender: No OFD packet to send [22:04:55]OFD Sender: No OFD packet to send [22:05:00]OFD Sender: No OFD packet to send [22:05:05]OFD Sender: No OFD packet to send [22:05:10]OFD Sender: No OFD packet to send [22:05:15]OFD Sender: No OFD packet to send [22:05:20]OFD Sender: No OFD packet to send [22:05:25]OFD Sender: No OFD packet to send [22:05:30]OFD Sender: No OFD packet to send [22:05:35]OFD Sender: No OFD packet to send [22:05:35]accept exits with 8 [22:05:35]New connection [22:05:35]New thread 3066940772 created [22:05:35]Thread 3066797412 joined [22:05:35]Waiting for new connection... [22:05:35] Sock 8.Parse request [22:05:35]Sock 8.Check first char [22:05:35]Sock 8.First char is OK [22:05:35]request: POST /json_proto HTTP/1.0 [22:05:35]Method: POST [22:05:35]URL: /json_proto [22:05:35]Method is POST - this is cgi request [22:05:35]url: /json_proto [22:05:35]query_string will be loaded in cgi processing [22:05:35]execute_cgi json_proto POST (null) [22:05:35]execute_cgi path=json_proto method=POST [22:05:35]POST find Content-Length [22:05:35]Host: 172.17.38.133:8080 [22:05:35]Content-Length: 819 [22:05:35]Content-Type: application/json [22:05:35] [22:05:35]POST finish read [22:05:35]Found Content-Length = 819 [22:05:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673109", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.65 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:05:35]execute_script... [22:05:35]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673109", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.65 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:05:35]POST & json_proto [22:05:35]process_json_proto [22:05:35]json parsed OK: [22:05:35]protocol is kg_v1.0 [22:05:35]action value=close_receipt [22:05:35]process_action close_receipt [22:05:35]cmd_close_receipt [22:05:35]MH_GetDate [22:05:35]Write to MH i2c: F0 00 00 EA 16 EF [22:05:35]Write i2c OK [22:05:35]MH_I2C_Read... [22:05:35]Read from MH i2c: F0 [22:05:35]MH_I2C_Read... [22:05:35]Read from MH i2c: F0 09 00 [22:05:35]MH_I2C_Read... [22:05:35]Read from MH i2c: F0 09 00 EA 16 00 30 56 73 66 BD 8F 7C 64 83 [22:05:35]GetLastDocTimeStamp 1718834513 [22:05:35]current date 1718834736 [22:05:35]FM_GetShiftState [22:05:35]SAM_PROTO_GetShiftState [22:05:35]wFMCommunicate request_size=4 [22:05:35]MH_SAM_APDU [22:05:35]CAPDU: 80 13 01 00 [22:05:35]Write to MH i2c: E2 08 00 EB 16 80 13 01 00 00 00 00 00 7E [22:05:35]Write i2c OK [22:05:35]MH_I2C_Read... [22:05:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:05:35]Read from MH i2c: E2 [22:05:35]MH_I2C_Read... [22:05:35]Read from MH i2c: E2 0E 00 [22:05:35]MH_I2C_Read... [22:05:35]Read from MH i2c: E2 0E 00 EB 16 00 09 00 01 04 26 72 66 00 00 00 00 90 00 8C [22:05:35]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [22:05:35]wFMCommunicate OK [22:05:35]SAM_PROTO_GetShiftState done [22:05:35]FM_GetShiftState done [22:05:35]opened in 1718756868 [22:05:35]opened+sec_in_day 1718843268 [22:05:35]quantity*price = 100064 [22:05:35]sum+1 = 100066 [22:05:35]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.65 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 0.00 Безнал.: 1000.65 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 237 19.06.2024 22:05 Смена: 353 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000875093 ФД: 103807 ФПД: 156394308863135 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T220536&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103807&fm=156394308863135&tin=02508201610067®Number=0000000000092785&sum=100065 [22:05:36]StoreToDocumentArchive [22:05:36]shift 353 fd 103807 [22:05:36]save to /storage/0353/doc_00103807 [22:05:36]save last doc name /storage/0353/doc_00103807 to /storage/kkm_last_doc_name [22:05:36]save OK [22:05:36]Clear old archive folders... [22:05:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:05:36]tlvbuf is 016A0AF0 [22:05:36]SAM_PROTO_ClearQueue [22:05:36]wFMCommunicate request_size=4 [22:05:36]MH_SAM_APDU [22:05:36]CAPDU: 80 09 00 00 [22:05:36]Write to MH i2c: E2 08 00 F8 16 80 09 00 00 00 00 00 00 80 [22:05:36]Write i2c OK [22:05:36]MH_I2C_Read... [22:05:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:05:36]Read from MH i2c: E2 [22:05:36]MH_I2C_Read... [22:05:36]Read from MH i2c: E2 03 00 [22:05:36]MH_I2C_Read... [22:05:36]Read from MH i2c: E2 03 00 F8 16 00 90 00 82 [22:05:36]RAPDU: 90 00 [22:05:36]wFMCommunicate OK [22:05:36]SAM_PROTO_ClearQueue done [22:05:36]KKMCreateOFDPacket [22:05:36]OFDProtocolAddRootSTLVToBuf [22:05:36]FM_MakeSignedData [22:05:36]FM_MakeSignedData [22:05:36]SAM_PROTO_SignData [22:05:36]wFMCommunicate request_size=4 [22:05:36]MH_SAM_APDU [22:05:36]CAPDU: 80 0D 01 02 [22:05:36]Write to MH i2c: E2 08 00 F9 16 80 0D 01 02 00 00 00 00 88 [22:05:36]Write i2c OK [22:05:36]MH_I2C_Read... [22:05:36]Read from MH i2c: E2 [22:05:36]MH_I2C_Read... [22:05:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:05:36]Read from MH i2c: E2 03 00 [22:05:36]MH_I2C_Read... [22:05:36]Read from MH i2c: E2 03 00 F9 16 00 90 00 83 [22:05:36]RAPDU: 90 00 [22:05:36]wFMCommunicate OK [22:05:36]wFMCommunicate request_size=255 [22:05:36]MH_SAM_APDU [22:05:36]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E1 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E1 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 ED 00 00 00 F4 03 04 00 30 56 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 7F 95 01 00 35 04 06 00 8E [22:05:36]Write to MH i2c: E2 02 01 FA 16 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E1 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E1 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 ED 00 00 00 F4 03 04 00 30 56 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 7F 95 01 00 35 04 06 00 8E 00 00 65 [22:05:36]Write i2c OK [22:05:36]MH_I2C_Read... [22:05:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:05:36]Read from MH i2c: E2 [22:05:36]MH_I2C_Read... [22:05:36]Read from MH i2c: E2 03 00 [22:05:36]MH_I2C_Read... [22:05:36]Read from MH i2c: E2 03 00 FA 16 00 90 00 84 [22:05:36]RAPDU: 90 00 [22:05:36]wFMCommunicate OK [22:05:36]wFMCommunicate request_size=10 [22:05:36]MH_SAM_APDU [22:05:36]CAPDU: 80 0D 02 02 05 3D 63 39 84 9F [22:05:36]Write to MH i2c: E2 0D 00 FB 16 80 0D 02 02 05 00 3D 63 39 84 9F 00 00 91 [22:05:36]Write i2c OK [22:05:36]MH_I2C_Read... [22:05:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:05:36]Read from MH i2c: E2 [22:05:36]MH_I2C_Read... [22:05:36]Read from MH i2c: E2 03 00 [22:05:36]MH_I2C_Read... [22:05:36]Read from MH i2c: E2 03 00 FB 16 00 90 00 85 [22:05:36]RAPDU: 90 00 [22:05:36]wFMCommunicate OK [22:05:36]wFMCommunicate request_size=4 [22:05:36]MH_SAM_APDU [22:05:36]CAPDU: 80 0D 03 02 [22:05:36]Write to MH i2c: E2 08 00 FC 16 80 0D 03 02 00 00 00 00 8D [22:05:36]Write i2c OK [22:05:36]MH_I2C_Read... [22:05:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:05:36]Read from MH i2c: E2 [22:05:36]MH_I2C_Read... [22:05:36]Read from MH i2c: E2 0B 00 [22:05:36]MH_I2C_Read... [22:05:36]Read from MH i2c: E2 0B 00 FC 16 00 8E D1 F8 18 52 0E EA 11 90 00 58 [22:05:36]RAPDU: 8E D1 F8 18 52 0E EA 11 90 00 [22:05:36]wFMCommunicate OK [22:05:36]SAM_PROTO_SignData done [22:05:36]FM_MakeSignedData done [22:05:36]CreateOFDProtocolMessage [22:05:36]wFMCommunicate request_size=4 [22:05:36]MH_SAM_APDU [22:05:36]CAPDU: 80 11 00 00 [22:05:36]Write to MH i2c: E2 08 00 FD 16 80 11 00 00 00 00 00 00 8D [22:05:36]Write i2c OK [22:05:36]MH_I2C_Read... [22:05:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:05:36]Read from MH i2c: E2 [22:05:36]MH_I2C_Read... [22:05:36]Read from MH i2c: E2 17 00 [22:05:36]MH_I2C_Read... [22:05:36]Read from MH i2c: E2 17 00 FD 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 E0 [22:05:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [22:05:36]wFMCommunicate OK [22:05:36]CreateOFDProtocolMessage done [22:05:36]OFDSenderStorePacket 103807 [22:05:36]StoreOFDPacket docnum=103807 [22:05:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 7C C2 07 01 F0 0A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E1 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E1 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 ED 00 00 00 F4 03 04 00 30 56 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 7F 95 01 00 35 04 06 00 8E 3D 63 39 84 9F 8E D1 F8 18 52 0E EA 11 [22:05:36]CheckFolder [22:05:36]dirname=/storage/ofd_packets [22:05:36]CheckFolder done [22:05:36]ProducePacketName [22:05:36]name=ofd_packets/00103807 [22:05:36]NVStorageSaveData ofd_packets/00103807 [22:05:36]File name is /storage/ofd_packets/00103807 [22:05:36]Write 301 bytes [22:05:36]NVStorageSaveData done [22:05:36]OFDSenderStorePacket done [22:05:36]KKMCreateOFDPacket done [22:05:36]NVStorageSaveData kkm_last_timestamp [22:05:36]File name is /storage/kkm_last_timestamp [22:05:36]Write 4 bytes [22:05:36]NVStorageSaveData done [22:05:36]ExternCall_PrintAddStr [22:05:36]wPrintStart [22:05:36]Write to MH i2c: 01 00 00 FE 16 14 [22:05:36]Write i2c OK [22:05:36]MH_I2C_Read... [22:05:36]Read from MH i2c: 01 [22:05:36]MH_I2C_Read... [22:05:36]Read from MH i2c: 01 07 00 [22:05:36]MH_I2C_Read... [22:05:36]Read from MH i2c: 01 07 00 FE 16 00 00 00 00 00 FF 0F 29 [22:05:36]RasterBufferAndPrint [22:05:36]line Счет N : (1)673109 [22:05:36]line ИНН: 02508201610067 [22:05:36]line Контрольно-Кассовый Чек [22:05:36]line ПРОДАЖА [22:05:36]line ТРК (МРК, ГНК) : 42 [22:05:36]line Товар: 2710124130 [22:05:36]line Аи-92-К-5 [22:05:36]line 15.070 * 66.40 [22:05:36]line = 1000.65 [22:05:36]line НДС 12% НСП 1% [22:05:36]line > о реализуемом товаре [22:05:36]line ИТОГО: 1000.65 [22:05:36]line НСП 1% : 8.85 [22:05:36]line НДС 12% : 106.26 [22:05:36]line Наличными: 0.00 [22:05:36]line Безнал.: 1000.65 [22:05:36]line Место: АЗС № 120 "Партнер Нефть" [22:05:36]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [22:05:36]line СНО: Общий режим [22:05:36]line Чек 237 19.06.2024 22:05 [22:05:36]line Смена: 353 ФФД: 1.0 [22:05:36]line ЗНМ: 0300000164 [22:05:36]line РНМ: 0000000000092785 [22:05:36]line Версия ККМ: 001 [22:05:37]line Платежная система: Бакай Банк [22:05:37]line ФМ: 0000000000875093 [22:05:37]line ФД: 103807 [22:05:37]line ФПД: 156394308863135 [22:05:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T220536&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103807&fm=156394308863135&tin=02508201610067®Number=0000000000092785&sum=100065 [22:05:37]OFD Sender: Processing packet 103807 [packets to send 17, broken 16] [22:05:37]ProducePacketName [22:05:37]name=ofd_packets/00103807 [22:05:37]OFD Sender: To server: pG, [22:05:37]CommunicateWithHost lk.salyk.kg:30040 [22:05:37]ConnectInit lk.salyk.kg [22:05:37]written 0, free lines is 4095 [22:05:37]Connected sock=10 [22:05:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 7C C2 07 01 F0 0A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E1 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E1 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 ED 00 00 00 F4 03 04 00 30 56 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 7F 95 01 00 35 04 06 00 8E 3D 63 39 84 9F 8E D1 F8 18 52 0E EA 11 [22:05:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 EC 6E 47 00 D8 0A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 7F 95 01 00 F4 03 04 00 B8 FC 72 66 B6 04 01 00 00 F8 03 E6 3E 90 39 D5 48 [22:05:37]CommunicateWithHost err = 0 [22:05:37]CheckOFDResponse [22:05:37]1017 (14) - 77093643461234 [22:05:37]1041 (16) - 0000000000875093 [22:05:37]1040 (4) - 103807 [22:05:37]1012 (4) - 19.06.2024 15:43 [22:05:37]1206 (1) - 0 [22:05:37]OFD Sender: Remove packet 103807 [22:05:37]ProducePacketName [22:05:37]name=ofd_packets/00103807 [22:05:37]NVStorageDeleteData [22:05:37]Write to MH i2c: 01 00 00 28 17 3F [22:05:37]Write i2c OK [22:05:37]MH_I2C_Read... [22:05:37]Read from MH i2c: 01 [22:05:37]MH_I2C_Read... [22:05:37]Read from MH i2c: 01 07 00 [22:05:37]MH_I2C_Read... [22:05:37]Read from MH i2c: 01 07 00 28 17 00 00 00 00 00 01 0D 54 [22:05:37]RasterBufferAndPrint [22:05:37]line [22:05:37]line [22:05:37]line [22:05:37]line [22:05:37]line [22:05:37]written 0, free lines is 3335 [22:05:37]MH_Cut [22:05:37]Write to MH i2c: D1 01 00 2F 17 01 18 [22:05:37]Write i2c OK [22:05:37]MH_I2C_Read... [22:05:37]Read from MH i2c: D1 [22:05:37]MH_I2C_Read... [22:05:37]Read from MH i2c: D1 01 00 [22:05:37]MH_I2C_Read... [22:05:37]Read from MH i2c: D1 01 00 2F 17 00 17 [22:05:37]Write to MH i2c: 01 00 00 30 17 47 [22:05:37]Write i2c OK [22:05:37]MH_I2C_Read... [22:05:38]OFD Sender: No OFD packet to send [22:05:38]*** Cut start [22:05:38]*** Partial cut [22:05:38]*** CUTSNS_PIN = 1 [22:05:38]*** CUTSNS_PIN = 0 [22:05:38]*** Brake cut motor [22:05:39]Read from MH i2c: 01 [22:05:39]MH_I2C_Read... [22:05:39]*** Stop cut motor [22:05:39]*** Cut end [22:05:39]Read from MH i2c: 01 07 00 [22:05:39]MH_I2C_Read... [22:05:39]Read from MH i2c: 01 07 00 30 17 00 00 00 00 00 FF 0F 5C [22:05:39]process_action close_receipt done [22:05:39]requested_data is exist [22:05:39]produce_requested_data [22:05:39]requested_item fm.sn is exist - process it [22:05:39]wFMCommunicate request_size=4 [22:05:39]MH_SAM_APDU [22:05:39]CAPDU: 80 11 00 00 [22:05:39]Write to MH i2c: E2 08 00 31 17 80 11 00 00 00 00 00 00 C2 [22:05:39]Write i2c OK [22:05:39]MH_I2C_Read... [22:05:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:05:39]Read from MH i2c: E2 [22:05:39]MH_I2C_Read... [22:05:39]Read from MH i2c: E2 17 00 [22:05:39]MH_I2C_Read... [22:05:39]Read from MH i2c: E2 17 00 31 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 15 [22:05:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [22:05:39]wFMCommunicate OK [22:05:39]requested_item fd.num is exist - process it [22:05:39]SAM_PROTO_GetFieldsCounters [22:05:39]wFMCommunicate request_size=4 [22:05:39]MH_SAM_APDU [22:05:39]CAPDU: 80 13 00 00 [22:05:39]Write to MH i2c: E2 08 00 32 17 80 13 00 00 00 00 00 00 C5 [22:05:39]Write i2c OK [22:05:39]MH_I2C_Read... [22:05:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:05:39]Read from MH i2c: E2 [22:05:39]MH_I2C_Read... [22:05:39]Read from MH i2c: E2 62 00 [22:05:39]MH_I2C_Read... [22:05:39]Read from MH i2c: E2 62 00 32 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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 7F 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 ED 00 00 00 5E 04 04 00 ED 00 00 00 57 04 04 00 EE 00 00 00 19 04 04 00 00 00 00 00 90 00 2A [22:05: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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 7F 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 ED 00 00 00 5E 04 04 00 ED 00 00 00 57 04 04 00 EE 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:05:39]wFMCommunicate OK [22:05:39]SAM_PROTO_GetFieldsCounters done [22:05:39]requested_item shift.num is exist - process it [22:05:39]requested_item shift.opened is exist - process it [22:05:39]req_shift_opened [22:05:39]FM_GetShiftState [22:05:39]SAM_PROTO_GetShiftState [22:05:39]wFMCommunicate request_size=4 [22:05:39]MH_SAM_APDU [22:05:39]CAPDU: 80 13 01 00 [22:05:39]Write to MH i2c: E2 08 00 33 17 80 13 01 00 00 00 00 00 C7 [22:05:39]Write i2c OK [22:05:39]MH_I2C_Read... [22:05:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:05:39]Read from MH i2c: E2 [22:05:39]MH_I2C_Read... [22:05:39]Read from MH i2c: E2 0E 00 [22:05:39]MH_I2C_Read... [22:05:39]Read from MH i2c: E2 0E 00 33 17 00 09 00 01 04 26 72 66 00 00 00 00 90 00 D5 [22:05:39]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [22:05:39]wFMCommunicate OK [22:05:39]SAM_PROTO_GetShiftState done [22:05:39]FM_GetShiftState done [22:05:39]req_shift_opened done [22:05:39]requested_item shift.open_date is exist - process it [22:05:39]req_shift_open_date [22:05:39]req_shift_open_date done [22:05:39]produce_requested_data done [22:05:39]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103807,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [22:05:39]process_action_free close_receipt [22:05:39]json_value_free [22:05:39]json_value_free done [22:05:39]process_json_proto returns [22:05:39]Send response to host [22:05:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103807,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [22:05:39]free response buf [22:05:39]execute_script done [22:05:39]execute_script returns [22:05:39]free content buf [22:05:39]Sock 8.Close socket [22:05:39]Sock 8.Thread stoped [22:05:43]OFD Sender: No OFD packet to send [22:05:47]accept exits with 9 [22:05:47]New connection [22:05:47]New thread 3066797412 created [22:05:47]Thread 3066940772 joined [22:05:47]Waiting for new connection... [22:05:47] Sock 9.Parse request [22:05:47]Sock 9.Check first char [22:05:47]Sock 9.First char is OK [22:05:47]request: POST /json_proto HTTP/1.0 [22:05:47]Method: POST [22:05:47]URL: /json_proto [22:05:47]Method is POST - this is cgi request [22:05:47]url: /json_proto [22:05:47]query_string will be loaded in cgi processing [22:05:47]execute_cgi json_proto POST (null) [22:05:47]execute_cgi path=json_proto method=POST [22:05:47]POST find Content-Length [22:05:47]Host: 172.17.38.133:8080 [22:05:47]Content-Length: 1207 [22:05:47]Content-Type: application/json [22:05:47] [22:05:47]POST finish read [22:05:47]Found Content-Length = 1207 [22:05:47]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 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. \u000A\u0421\u0447\u0435\u0442 N : (1)673108\u000A19.06.2024 21:43\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 32\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 30.000 x 66.40\u000A\u0418\u0422\u041E\u0413: 1992.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\u000A54650\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:05:47]execute_script... [22:05:47]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 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. \u000A\u0421\u0447\u0435\u0442 N : (1)673108\u000A19.06.2024 21:43\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 32\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 30.000 x 66.40\u000A\u0418\u0422\u041E\u0413: 1992.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\u000A54650\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:05:47]POST & json_proto [22:05:47]process_json_proto [22:05:47]json parsed OK: [22:05:47]protocol is kg_v1.0 [22:05:47]action value=print_text [22:05:47]process_action print_text [22:05:47]cmd_print_text [22:05:47]ExternCall_PrintAddStr [22:05:47]wPrintStart [22:05:47]Write to MH i2c: 01 00 00 34 17 4B [22:05:47]Write i2c OK [22:05:47]MH_I2C_Read... [22:05:47]Read from MH i2c: 01 [22:05:47]MH_I2C_Read... [22:05:47]Read from MH i2c: 01 07 00 [22:05:47]MH_I2C_Read... [22:05:47]Read from MH i2c: 01 07 00 34 17 00 00 00 00 00 FF 0F 60 [22:05:47]RasterBufferAndPrint [22:05:47]line *****ТОВАРНЫЙ ЧЕК***** [22:05:47]line АЗС 120 [22:05:47]line Партнер нефть [22:05:47]line 02508201610067 [22:05:47]line Кассир : Байбугуева Г. [22:05:47]line Счет N : (1)673108 [22:05:47]line 19.06.2024 21:43 [22:05:47]line ПРОДАЖА [22:05:47]line ТРК (МРК, ГНК): 32 [22:05:47]line Вид ГСМ : 2710124130 [22:05:47]line Аи-92-К-5 [22:05:47]line 30.000 x 66.40 [22:05:47]line ИТОГ: 1992.00 [22:05:47]line Тип оплаты: Талоны: Топливная Карта [22:05:47]line 54650 [22:05:47]line ______________________ [22:05:47]line (подпись) [22:05:47]written 0, free lines is 4095 [22:05:47]Write to MH i2c: 01 00 00 48 17 5F [22:05:47]Write i2c OK [22:05:47]MH_I2C_Read... [22:05:47]Read from MH i2c: 01 [22:05:47]MH_I2C_Read... [22:05:47]Read from MH i2c: 01 07 00 [22:05:47]MH_I2C_Read... [22:05:47]Read from MH i2c: 01 07 00 48 17 00 00 00 00 00 13 0E 87 [22:05:47]RasterBufferAndPrint [22:05:47]line [22:05:47]line [22:05:47]line [22:05:47]line [22:05:47]line [22:05:47]written 0, free lines is 3605 [22:05:47]MH_Cut [22:05:47]Write to MH i2c: D1 01 00 4F 17 01 38 [22:05:47]Write i2c OK [22:05:47]MH_I2C_Read... [22:05:47]Read from MH i2c: D1 [22:05:47]MH_I2C_Read... [22:05:47]Read from MH i2c: D1 01 00 [22:05:47]MH_I2C_Read... [22:05:47]Read from MH i2c: D1 01 00 4F 17 00 37 [22:05:47]Write to MH i2c: 01 00 00 50 17 67 [22:05:47]Write i2c OK [22:05:47]MH_I2C_Read... [22:05:48]OFD Sender: No OFD packet to send [22:05:48]*** Cut start [22:05:48]*** Partial cut [22:05:48]*** CUTSNS_PIN = 1 [22:05:48]*** CUTSNS_PIN = 0 [22:05:48]*** Brake cut motor [22:05:48]Read from MH i2c: 01 [22:05:48]MH_I2C_Read... [22:05:48]*** Stop cut motor [22:05:48]*** Cut end [22:05:48]Read from MH i2c: 01 07 00 [22:05:48]MH_I2C_Read... [22:05:48]Read from MH i2c: 01 07 00 50 17 00 00 00 00 00 FF 0F 7C [22:05:48]process_action print_text done [22:05:48]requested_data is exist [22:05:48]produce_requested_data [22:05:48]requested_item fm.sn is exist - process it [22:05:48]wFMCommunicate request_size=4 [22:05:48]MH_SAM_APDU [22:05:48]CAPDU: 80 11 00 00 [22:05:48]Write to MH i2c: E2 08 00 51 17 80 11 00 00 00 00 00 00 E2 [22:05:48]Write i2c OK [22:05:48]MH_I2C_Read... [22:05:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:05:48]Read from MH i2c: E2 [22:05:48]MH_I2C_Read... [22:05:48]Read from MH i2c: E2 17 00 [22:05:48]MH_I2C_Read... [22:05:48]Read from MH i2c: E2 17 00 51 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 35 [22:05:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [22:05:48]wFMCommunicate OK [22:05:48]requested_item fd.num is exist - process it [22:05:48]SAM_PROTO_GetFieldsCounters [22:05:48]wFMCommunicate request_size=4 [22:05:48]MH_SAM_APDU [22:05:48]CAPDU: 80 13 00 00 [22:05:48]Write to MH i2c: E2 08 00 52 17 80 13 00 00 00 00 00 00 E5 [22:05:48]Write i2c OK [22:05:48]MH_I2C_Read... [22:05:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:05:48]Read from MH i2c: E2 [22:05:48]MH_I2C_Read... [22:05:48]Read from MH i2c: E2 62 00 [22:05:48]MH_I2C_Read... [22:05:48]Read from MH i2c: E2 62 00 52 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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 7F 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 ED 00 00 00 5E 04 04 00 ED 00 00 00 57 04 04 00 EE 00 00 00 19 04 04 00 00 00 00 00 90 00 4A [22:05: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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 7F 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 ED 00 00 00 5E 04 04 00 ED 00 00 00 57 04 04 00 EE 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:05:48]wFMCommunicate OK [22:05:48]SAM_PROTO_GetFieldsCounters done [22:05:48]requested_item shift.num is exist - process it [22:05:48]requested_item shift.opened is exist - process it [22:05:48]req_shift_opened [22:05:48]FM_GetShiftState [22:05:48]SAM_PROTO_GetShiftState [22:05:48]wFMCommunicate request_size=4 [22:05:48]MH_SAM_APDU [22:05:48]CAPDU: 80 13 01 00 [22:05:48]Write to MH i2c: E2 08 00 53 17 80 13 01 00 00 00 00 00 E7 [22:05:48]Write i2c OK [22:05:48]MH_I2C_Read... [22:05:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:05:49]Read from MH i2c: E2 [22:05:49]MH_I2C_Read... [22:05:49]Read from MH i2c: E2 0E 00 [22:05:49]MH_I2C_Read... [22:05:49]Read from MH i2c: E2 0E 00 53 17 00 09 00 01 04 26 72 66 00 00 00 00 90 00 F5 [22:05:49]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [22:05:49]wFMCommunicate OK [22:05:49]SAM_PROTO_GetShiftState done [22:05:49]FM_GetShiftState done [22:05:49]req_shift_opened done [22:05:49]requested_item shift.open_date is exist - process it [22:05:49]req_shift_open_date [22:05:49]req_shift_open_date done [22:05:49]produce_requested_data done [22:05:49]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103807,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [22:05:49]process_action_free print_text [22:05:49]json_value_free [22:05:49]json_value_free done [22:05:49]process_json_proto returns [22:05:49]Send response to host [22:05:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103807,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [22:05:49]free response buf [22:05:49]execute_script done [22:05:49]execute_script returns [22:05:49]free content buf [22:05:49]Sock 9.Close socket [22:05:49]Sock 9.Thread stoped [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:03]OFD Sender: No OFD packet to send [22:10:08]OFD Sender: No OFD packet to send [22:10:13]OFD Sender: No OFD packet to send [22:10:18]OFD Sender: No OFD packet to send [22:10:23]OFD Sender: No OFD packet to send [22:10:28]OFD Sender: No OFD packet to send [22:10:33]OFD Sender: No OFD packet to send [22:10:38]OFD Sender: No OFD packet to send [22:10:43]OFD Sender: No OFD packet to send [22:10:48]OFD Sender: No OFD packet to send [22:10:53]OFD Sender: No OFD packet to send [22:10:58]OFD Sender: No OFD packet to send [22:11:03]OFD Sender: No OFD packet to send [22:11:08]OFD Sender: No OFD packet to send [22:11:13]OFD Sender: No OFD packet to send [22:11:18]OFD Sender: No OFD packet to send [22:11:23]OFD Sender: No OFD packet to send [22:11:28]OFD Sender: No OFD packet to send [22:11:33]OFD Sender: No OFD packet to send [22:11:38]OFD Sender: No OFD packet to send [22:11:43]OFD Sender: No OFD packet to send [22:11:48]OFD Sender: No OFD packet to send [22:11:53]OFD Sender: No OFD packet to send [22:11:58]OFD Sender: No OFD packet to send [22:12:03]OFD Sender: No OFD packet to send [22:12:08]OFD Sender: No OFD packet to send [22:12:13]OFD Sender: No OFD packet to send [22:12:18]OFD Sender: No OFD packet to send [22:12:23]OFD Sender: No OFD packet to send [22:12:28]OFD Sender: No OFD packet to send [22:12:33]OFD Sender: No OFD packet to send [22:12:38]OFD Sender: No OFD packet to send [22:12:43]OFD Sender: No OFD packet to send [22:12:48]OFD Sender: No OFD packet to send [22:12:53]OFD Sender: No OFD packet to send [22:12:58]OFD Sender: No OFD packet to send [22:13:03]OFD Sender: No OFD packet to send [22:13:08]OFD Sender: No OFD packet to send [22:13:13]OFD Sender: No OFD packet to send [22:13:18]OFD Sender: No OFD packet to send [22:13:23]OFD Sender: No OFD packet to send [22:13:28]OFD Sender: No OFD packet to send [22:13:33]OFD Sender: No OFD packet to send [22:13:38]OFD Sender: No OFD packet to send [22:13:43]OFD Sender: No OFD packet to send [22:13:48]OFD Sender: No OFD packet to send [22:13:53]OFD Sender: No OFD packet to send [22:13:58]OFD Sender: No OFD packet to send [22:14:03]OFD Sender: No OFD packet to send [22:14:08]OFD Sender: No OFD packet to send [22:14:13]OFD Sender: No OFD packet to send [22:14:18]OFD Sender: No OFD packet to send [22:14:23]OFD Sender: No OFD packet to send [22:14:28]OFD Sender: No OFD packet to send [22:14:33]OFD Sender: No OFD packet to send [22:14:38]OFD Sender: No OFD packet to send [22:14:43]OFD Sender: No OFD packet to send [22:14:48]OFD Sender: No OFD packet to send [22:14:53]OFD Sender: No OFD packet to send [22:14:58]OFD Sender: No OFD packet to send [22:15:03]OFD Sender: No OFD packet to send [22:15:08]OFD Sender: No OFD packet to send [22:15:13]OFD Sender: No OFD packet to send [22:15:18]OFD Sender: No OFD packet to send [22:15:23]OFD Sender: No OFD packet to send [22:15:28]OFD Sender: No OFD packet to send [22:15:33]OFD Sender: No OFD packet to send [22:15:38]OFD Sender: No OFD packet to send [22:15:43]OFD Sender: No OFD packet to send [22:15:48]OFD Sender: No OFD packet to send [22:15:53]OFD Sender: No OFD packet to send [22:15:58]OFD Sender: No OFD packet to send [22:16:03]OFD Sender: No OFD packet to send [22:16:08]OFD Sender: No OFD packet to send [22:16:13]OFD Sender: No OFD packet to send [22:16:18]OFD Sender: No OFD packet to send [22:16:23]OFD Sender: No OFD packet to send [22:16:28]OFD Sender: No OFD packet to send [22:16:33]OFD Sender: No OFD packet to send [22:16:38]OFD Sender: No OFD packet to send [22:16:43]OFD Sender: No OFD packet to send [22:16:48]OFD Sender: No OFD packet to send [22:16:53]OFD Sender: No OFD packet to send [22:16:58]OFD Sender: No OFD packet to send [22:17:03]OFD Sender: No OFD packet to send [22:17:08]OFD Sender: No OFD packet to send [22:17:13]OFD Sender: No OFD packet to send [22:17:18]OFD Sender: No OFD packet to send [22:17:23]OFD Sender: No OFD packet to send [22:17:28]OFD Sender: No OFD packet to send [22:17:33]OFD Sender: No OFD packet to send [22:17:38]OFD Sender: No OFD packet to send [22:17:43]OFD Sender: No OFD packet to send [22:17:48]OFD Sender: No OFD packet to send [22:17:53]OFD Sender: No OFD packet to send [22:17:58]OFD Sender: No OFD packet to send [22:18:03]OFD Sender: No OFD packet to send [22:18:08]OFD Sender: No OFD packet to send [22:18:13]OFD Sender: No OFD packet to send [22:18:18]OFD Sender: No OFD packet to send [22:18:23]OFD Sender: No OFD packet to send [22:18:28]OFD Sender: No OFD packet to send [22:18:33]OFD Sender: No OFD packet to send [22:18:38]OFD Sender: No OFD packet to send [22:18:43]OFD Sender: No OFD packet to send [22:18:48]OFD Sender: No OFD packet to send [22:18:53]OFD Sender: No OFD packet to send [22:18:58]OFD Sender: No OFD packet to send [22:19:03]OFD Sender: No OFD packet to send [22:19:08]OFD Sender: No OFD packet to send [22:19:13]OFD Sender: No OFD packet to send [22:19:18]OFD Sender: No OFD packet to send [22:19:23]OFD Sender: No OFD packet to send [22:19:28]OFD Sender: No OFD packet to send [22:19:33]OFD Sender: No OFD packet to send [22:19:38]OFD Sender: No OFD packet to send [22:19:43]OFD Sender: No OFD packet to send [22:19:48]OFD Sender: No OFD packet to send [22:19:53]OFD Sender: No OFD packet to send [22:19:58]OFD Sender: No OFD packet to send [22:20:03]OFD Sender: No OFD packet to send [22:20:08]OFD Sender: No OFD packet to send [22:20:13]OFD Sender: No OFD packet to send [22:20:18]OFD Sender: No OFD packet to send [22:20:23]OFD Sender: No OFD packet to send [22:20:28]OFD Sender: No OFD packet to send [22:20:33]OFD Sender: No OFD packet to send [22:20:38]OFD Sender: No OFD packet to send [22:20:43]OFD Sender: No OFD packet to send [22:20:48]OFD Sender: No OFD packet to send [22:20:53]OFD Sender: No OFD packet to send [22:20:58]OFD Sender: No OFD packet to send [22:21:03]OFD Sender: No OFD packet to send [22:21:08]OFD Sender: No OFD packet to send [22:21:13]OFD Sender: No OFD packet to send [22:21:18]OFD Sender: No OFD packet to send [22:21:23]OFD Sender: No OFD packet to send [22:21:28]OFD Sender: No OFD packet to send [22:21:33]OFD Sender: No OFD packet to send [22:21:38]OFD Sender: No OFD packet to send [22:21:43]OFD Sender: No OFD packet to send [22:21:48]OFD Sender: No OFD packet to send [22:21:53]OFD Sender: No OFD packet to send [22:21:58]OFD Sender: No OFD packet to send [22:22:03]OFD Sender: No OFD packet to send [22:22:08]OFD Sender: No OFD packet to send [22:22:13]OFD Sender: No OFD packet to send [22:22:18]OFD Sender: No OFD packet to send [22:22:23]OFD Sender: No OFD packet to send [22:22:28]OFD Sender: No OFD packet to send [22:22:33]OFD Sender: No OFD packet to send [22:22:38]OFD Sender: No OFD packet to send [22:22:43]OFD Sender: No OFD packet to send [22:22:48]OFD Sender: No OFD packet to send [22:22:53]OFD Sender: No OFD packet to send [22:22:58]OFD Sender: No OFD packet to send [22:23:03]OFD Sender: No OFD packet to send [22:23:08]OFD Sender: No OFD packet to send [22:23:13]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:33]accept exits with 8 [22:24:33]New connection [22:24:33]New thread 3066940772 created [22:24:33]Thread 3066797412 joined [22:24:33]Waiting for new connection... [22:24:33] Sock 8.Parse request [22:24:33]Sock 8.Check first char [22:24:33]Sock 8.First char is OK [22:24:33]request: POST /json_proto HTTP/1.0 [22:24:33]Method: POST [22:24:33]URL: /json_proto [22:24:33]Method is POST - this is cgi request [22:24:33]url: /json_proto [22:24:33]query_string will be loaded in cgi processing [22:24:33]execute_cgi json_proto POST (null) [22:24:33]execute_cgi path=json_proto method=POST [22:24:33]POST find Content-Length [22:24:33]Host: 172.17.38.133:8080 [22:24:33]Content-Length: 1169 [22:24:33]Content-Type: application/json [22:24:33] [22:24:33]POST finish read [22:24:33]Found Content-Length = 1169 [22:24:33]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 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. \u000A\u0421\u0447\u0435\u0442 N : (1)673110\u000A19.06.2024 22:01\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 41\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124500\u000A\u0410\u0438-95-\u041A-5\u000A 41.510 x 73.90\u000A\u0418\u0422\u041E\u0413: 3067.59\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30083531\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:24:33]execute_script... [22:24:33]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 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. \u000A\u0421\u0447\u0435\u0442 N : (1)673110\u000A19.06.2024 22:01\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 41\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124500\u000A\u0410\u0438-95-\u041A-5\u000A 41.510 x 73.90\u000A\u0418\u0422\u041E\u0413: 3067.59\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30083531\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:24:33]POST & json_proto [22:24:33]process_json_proto [22:24:33]json parsed OK: [22:24:33]protocol is kg_v1.0 [22:24:33]action value=print_text [22:24:33]process_action print_text [22:24:33]cmd_print_text [22:24:33]ExternCall_PrintAddStr [22:24:33]wPrintStart [22:24:33]Write to MH i2c: 01 00 00 54 17 6B [22:24:33]Write i2c OK [22:24:33]MH_I2C_Read... [22:24:33]Read from MH i2c: 01 [22:24:33]MH_I2C_Read... [22:24:33]Read from MH i2c: 01 07 00 [22:24:33]MH_I2C_Read... [22:24:33]Read from MH i2c: 01 07 00 54 17 00 00 00 00 00 FF 0F 80 [22:24:33]RasterBufferAndPrint [22:24:33]line *****ТОВАРНЫЙ ЧЕК***** [22:24:33]line АЗС 120 [22:24:33]line Партнер нефть [22:24:33]line 02508201610067 [22:24:33]line Кассир : Байбугуева Г. [22:24:33]line Счет N : (1)673110 [22:24:33]line 19.06.2024 22:01 [22:24:33]line ПРОДАЖА [22:24:33]line ТРК (МРК, ГНК): 41 [22:24:33]line Вид ГСМ : 2710124500 [22:24:33]line Аи-95-К-5 [22:24:33]line 41.510 x 73.90 [22:24:33]line ИТОГ: 3067.59 [22:24:33]line Тип оплаты: Талоны: ТК ГПНА Online [22:24:33]line 30083531 [22:24:33]line ______________________ [22:24:33]line (подпись) [22:24:33]written 0, free lines is 4095 [22:24:34]OFD Sender: No OFD packet to send [22:24:34]Write to MH i2c: 01 00 00 68 17 7F [22:24:34]Write i2c OK [22:24:34]MH_I2C_Read... [22:24:34]Read from MH i2c: 01 [22:24:34]MH_I2C_Read... [22:24:34]Read from MH i2c: 01 07 00 [22:24:34]MH_I2C_Read... [22:24:34]Read from MH i2c: 01 07 00 68 17 00 00 00 00 00 11 0E A5 [22:24:34]RasterBufferAndPrint [22:24:34]line [22:24:34]line [22:24:34]line [22:24:34]line [22:24:34]line [22:24:34]written 0, free lines is 3603 [22:24:34]MH_Cut [22:24:34]Write to MH i2c: D1 01 00 6F 17 01 58 [22:24:34]Write i2c OK [22:24:34]MH_I2C_Read... [22:24:34]Read from MH i2c: D1 [22:24:34]MH_I2C_Read... [22:24:34]Read from MH i2c: D1 01 00 [22:24:34]MH_I2C_Read... [22:24:34]Read from MH i2c: D1 01 00 6F 17 00 57 [22:24:34]Write to MH i2c: 01 00 00 70 17 87 [22:24:34]Write i2c OK [22:24:34]MH_I2C_Read... [22:24:34]*** Cut start [22:24:34]*** Partial cut [22:24:34]*** CUTSNS_PIN = 1 [22:24:34]*** CUTSNS_PIN = 0 [22:24:34]*** Brake cut motor [22:24:35]Read from MH i2c: 01 [22:24:35]MH_I2C_Read... [22:24:35]*** Stop cut motor [22:24:35]*** Cut end [22:24:35]Read from MH i2c: 01 07 00 [22:24:35]MH_I2C_Read... [22:24:35]Read from MH i2c: 01 07 00 70 17 00 00 00 00 00 FF 0F 9C [22:24:35]process_action print_text done [22:24:35]requested_data is exist [22:24:35]produce_requested_data [22:24:35]requested_item fm.sn is exist - process it [22:24:35]wFMCommunicate request_size=4 [22:24:35]MH_SAM_APDU [22:24:35]CAPDU: 80 11 00 00 [22:24:35]Write to MH i2c: E2 08 00 71 17 80 11 00 00 00 00 00 00 02 [22:24:35]Write i2c OK [22:24:35]MH_I2C_Read... [22:24:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:24:35]Read from MH i2c: E2 [22:24:35]MH_I2C_Read... [22:24:35]Read from MH i2c: E2 17 00 [22:24:35]MH_I2C_Read... [22:24:35]Read from MH i2c: E2 17 00 71 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 55 [22:24:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [22:24:35]wFMCommunicate OK [22:24:35]requested_item fd.num is exist - process it [22:24:35]SAM_PROTO_GetFieldsCounters [22:24:35]wFMCommunicate request_size=4 [22:24:35]MH_SAM_APDU [22:24:35]CAPDU: 80 13 00 00 [22:24:35]Write to MH i2c: E2 08 00 72 17 80 13 00 00 00 00 00 00 05 [22:24:35]Write i2c OK [22:24:35]MH_I2C_Read... [22:24:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:24:35]Read from MH i2c: E2 [22:24:35]MH_I2C_Read... [22:24:35]Read from MH i2c: E2 62 00 [22:24:35]MH_I2C_Read... [22:24:35]Read from MH i2c: E2 62 00 72 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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 7F 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 ED 00 00 00 5E 04 04 00 ED 00 00 00 57 04 04 00 EE 00 00 00 19 04 04 00 00 00 00 00 90 00 6A [22:24: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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 7F 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 ED 00 00 00 5E 04 04 00 ED 00 00 00 57 04 04 00 EE 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:24:35]wFMCommunicate OK [22:24:35]SAM_PROTO_GetFieldsCounters done [22:24:35]requested_item shift.num is exist - process it [22:24:35]requested_item shift.opened is exist - process it [22:24:35]req_shift_opened [22:24:35]FM_GetShiftState [22:24:35]SAM_PROTO_GetShiftState [22:24:35]wFMCommunicate request_size=4 [22:24:35]MH_SAM_APDU [22:24:35]CAPDU: 80 13 01 00 [22:24:35]Write to MH i2c: E2 08 00 73 17 80 13 01 00 00 00 00 00 07 [22:24:35]Write i2c OK [22:24:35]MH_I2C_Read... [22:24:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:24:35]Read from MH i2c: E2 [22:24:35]MH_I2C_Read... [22:24:35]Read from MH i2c: E2 0E 00 [22:24:35]MH_I2C_Read... [22:24:35]Read from MH i2c: E2 0E 00 73 17 00 09 00 01 04 26 72 66 00 00 00 00 90 00 15 [22:24:35]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [22:24:35]wFMCommunicate OK [22:24:35]SAM_PROTO_GetShiftState done [22:24:35]FM_GetShiftState done [22:24:35]req_shift_opened done [22:24:35]requested_item shift.open_date is exist - process it [22:24:35]req_shift_open_date [22:24:35]req_shift_open_date done [22:24:35]produce_requested_data done [22:24:35]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103807,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [22:24:35]process_action_free print_text [22:24:35]json_value_free [22:24:35]json_value_free done [22:24:35]process_json_proto returns [22:24:35]Send response to host [22:24:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103807,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [22:24:35]free response buf [22:24:35]execute_script done [22:24:35]execute_script returns [22:24:35]free content buf [22:24:35]Sock 8.Close socket [22:24:35]Sock 8.Thread stoped [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:57]accept exits with 9 [22:24:57]New connection [22:24:57]New thread 3066797412 created [22:24:57]Thread 3066940772 joined [22:24:57]Waiting for new connection... [22:24:57] Sock 9.Parse request [22:24:57]Sock 9.Check first char [22:24:57]Sock 9.First char is OK [22:24:57]request: POST /json_proto HTTP/1.0 [22:24:57]Method: POST [22:24:57]URL: /json_proto [22:24:57]Method is POST - this is cgi request [22:24:57]url: /json_proto [22:24:57]query_string will be loaded in cgi processing [22:24:57]execute_cgi json_proto POST (null) [22:24:57]execute_cgi path=json_proto method=POST [22:24:57]POST find Content-Length [22:24:57]Host: 172.17.38.133:8080 [22:24:57]Content-Length: 677 [22:24:57]Content-Type: application/json [22:24:57] [22:24:57]POST finish read [22:24:57]Found Content-Length = 677 [22:24:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673111", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 8.120, "sum" : 600.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:24:57]execute_script... [22:24: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)673111", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 8.120, "sum" : 600.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:24:57]POST & json_proto [22:24:57]process_json_proto [22:24:57]json parsed OK: [22:24:57]protocol is kg_v1.0 [22:24:57]action value=close_receipt [22:24:57]process_action close_receipt [22:24:57]cmd_close_receipt [22:24:57]MH_GetDate [22:24:57]Write to MH i2c: F0 00 00 74 17 7A [22:24:57]Write i2c OK [22:24:57]MH_I2C_Read... [22:24:57]Read from MH i2c: F0 [22:24:57]MH_I2C_Read... [22:24:57]Read from MH i2c: F0 09 00 [22:24:57]MH_I2C_Read... [22:24:57]Read from MH i2c: F0 09 00 74 17 00 BB 5A 73 66 BD 8F 7C 64 9D [22:24:57]GetLastDocTimeStamp 1718834736 [22:24:57]current date 1718835899 [22:24:57]FM_GetShiftState [22:24:57]SAM_PROTO_GetShiftState [22:24:57]wFMCommunicate request_size=4 [22:24:57]MH_SAM_APDU [22:24:57]CAPDU: 80 13 01 00 [22:24:57]Write to MH i2c: E2 08 00 75 17 80 13 01 00 00 00 00 00 09 [22:24:57]Write i2c OK [22:24:57]MH_I2C_Read... [22:24:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:24:57]Read from MH i2c: E2 [22:24:57]MH_I2C_Read... [22:24:57]Read from MH i2c: E2 0E 00 [22:24:57]MH_I2C_Read... [22:24:57]Read from MH i2c: E2 0E 00 75 17 00 09 00 01 04 26 72 66 00 00 00 00 90 00 17 [22:24:57]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [22:24:57]wFMCommunicate OK [22:24:57]SAM_PROTO_GetShiftState done [22:24:57]FM_GetShiftState done [22:24:57]opened in 1718756868 [22:24:57]opened+sec_in_day 1718843268 [22:24:57]quantity*price = 60006 [22:24:57]sum+1 = 60008 [22:24:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.07 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.72 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 238 19.06.2024 22:24 Смена: 353 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103808 ФПД: 137273366721961 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T222459&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103808&fm=137273366721961&tin=02508201610067®Number=0000000000092785&sum=60000 [22:24:58]StoreToDocumentArchive [22:24:58]shift 353 fd 103808 [22:24:58]save to /storage/0353/doc_00103808 [22:24:58]save last doc name /storage/0353/doc_00103808 to /storage/kkm_last_doc_name [22:24:58]save OK [22:24:58]Clear old archive folders... [22:24:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:24:58]tlvbuf is 016901B0 [22:24:58]SAM_PROTO_ClearQueue [22:24:58]wFMCommunicate request_size=4 [22:24:58]MH_SAM_APDU [22:24:58]CAPDU: 80 09 00 00 [22:24:58]Write to MH i2c: E2 08 00 82 17 80 09 00 00 00 00 00 00 0B [22:24:58]Write i2c OK [22:24:58]MH_I2C_Read... [22:24:58]Read from MH i2c: E2 [22:24:58]MH_I2C_Read... [22:24:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:24:58]Read from MH i2c: E2 03 00 [22:24:58]MH_I2C_Read... [22:24:58]Read from MH i2c: E2 03 00 82 17 00 90 00 0D [22:24:58]RAPDU: 90 00 [22:24:58]wFMCommunicate OK [22:24:58]SAM_PROTO_ClearQueue done [22:24:58]KKMCreateOFDPacket [22:24:58]OFDProtocolAddRootSTLVToBuf [22:24:58]FM_MakeSignedData [22:24:58]FM_MakeSignedData [22:24:58]SAM_PROTO_SignData [22:24:58]wFMCommunicate request_size=4 [22:24:58]MH_SAM_APDU [22:24:58]CAPDU: 80 0D 01 02 [22:24:58]Write to MH i2c: E2 08 00 83 17 80 0D 01 02 00 00 00 00 13 [22:24:58]Write i2c OK [22:24:58]MH_I2C_Read... [22:24:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:24:58]Read from MH i2c: E2 [22:24:58]MH_I2C_Read... [22:24:58]Read from MH i2c: E2 03 00 [22:24:58]MH_I2C_Read... [22:24:58]Read from MH i2c: E2 03 00 83 17 00 90 00 0E [22:24:58]RAPDU: 90 00 [22:24:58]wFMCommunicate OK [22:24:58]wFMCommunicate request_size=255 [22:24:58]MH_SAM_APDU [22:24: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 B8 1F 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 67 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EE 00 00 00 F4 03 04 00 BB 5A 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 80 95 01 00 35 04 06 00 7C [22:24:58]Write to MH i2c: E2 02 01 84 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 B8 1F 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 67 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EE 00 00 00 F4 03 04 00 BB 5A 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 80 95 01 00 35 04 06 00 7C 00 00 BE [22:24:58]Write i2c OK [22:24:58]MH_I2C_Read... [22:24:59]OFD Sender: No OFD packet to send [22:24:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:24:59]Read from MH i2c: E2 [22:24:59]MH_I2C_Read... [22:24:59]Read from MH i2c: E2 03 00 [22:24:59]MH_I2C_Read... [22:24:59]Read from MH i2c: E2 03 00 84 17 00 90 00 0F [22:24:59]RAPDU: 90 00 [22:24:59]wFMCommunicate OK [22:24:59]wFMCommunicate request_size=10 [22:24:59]MH_SAM_APDU [22:24:59]CAPDU: 80 0D 02 02 05 D9 72 42 B5 A9 [22:24:59]Write to MH i2c: E2 0D 00 85 17 80 0D 02 02 05 00 D9 72 42 B5 A9 00 00 0B [22:24:59]Write i2c OK [22:24:59]MH_I2C_Read... [22:24:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:24:59]Read from MH i2c: E2 [22:24:59]MH_I2C_Read... [22:24:59]Read from MH i2c: E2 03 00 [22:24:59]MH_I2C_Read... [22:24:59]Read from MH i2c: E2 03 00 85 17 00 90 00 10 [22:24:59]RAPDU: 90 00 [22:24:59]wFMCommunicate OK [22:24:59]wFMCommunicate request_size=4 [22:24:59]MH_SAM_APDU [22:24:59]CAPDU: 80 0D 03 02 [22:24:59]Write to MH i2c: E2 08 00 86 17 80 0D 03 02 00 00 00 00 18 [22:24:59]Write i2c OK [22:24:59]MH_I2C_Read... [22:24:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:24:59]Read from MH i2c: E2 [22:24:59]MH_I2C_Read... [22:24:59]Read from MH i2c: E2 0B 00 [22:24:59]MH_I2C_Read... [22:24:59]Read from MH i2c: E2 0B 00 86 17 00 6C 7B 14 1A 96 4F 41 76 90 00 CA [22:24:59]RAPDU: 6C 7B 14 1A 96 4F 41 76 90 00 [22:24:59]wFMCommunicate OK [22:24:59]SAM_PROTO_SignData done [22:24:59]FM_MakeSignedData done [22:24:59]CreateOFDProtocolMessage [22:24:59]wFMCommunicate request_size=4 [22:24:59]MH_SAM_APDU [22:24:59]CAPDU: 80 11 00 00 [22:24:59]Write to MH i2c: E2 08 00 87 17 80 11 00 00 00 00 00 00 18 [22:24:59]Write i2c OK [22:24:59]MH_I2C_Read... [22:24:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:24:59]Read from MH i2c: E2 [22:24:59]MH_I2C_Read... [22:24:59]Read from MH i2c: E2 17 00 [22:24:59]MH_I2C_Read... [22:24:59]Read from MH i2c: E2 17 00 87 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 6B [22:24:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [22:24:59]wFMCommunicate OK [22:24:59]CreateOFDProtocolMessage done [22:24:59]OFDSenderStorePacket 103808 [22:24:59]StoreOFDPacket docnum=103808 [22:24:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 21 7D 07 01 B2 30 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 B8 1F 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 67 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EE 00 00 00 F4 03 04 00 BB 5A 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 80 95 01 00 35 04 06 00 7C D9 72 42 B5 A9 6C 7B 14 1A 96 4F 41 76 [22:24:59]CheckFolder [22:24:59]dirname=/storage/ofd_packets [22:24:59]CheckFolder done [22:24:59]ProducePacketName [22:24:59]name=ofd_packets/00103808 [22:24:59]NVStorageSaveData ofd_packets/00103808 [22:24:59]File name is /storage/ofd_packets/00103808 [22:24:59]Write 301 bytes [22:24:59]NVStorageSaveData done [22:24:59]OFDSenderStorePacket done [22:24:59]KKMCreateOFDPacket done [22:24:59]NVStorageSaveData kkm_last_timestamp [22:24:59]File name is /storage/kkm_last_timestamp [22:24:59]Write 4 bytes [22:24:59]NVStorageSaveData done [22:24:59]ExternCall_PrintAddStr [22:24:59]wPrintStart [22:24:59]Write to MH i2c: 01 00 00 88 17 9F [22:24:59]Write i2c OK [22:24:59]MH_I2C_Read... [22:24:59]Read from MH i2c: 01 [22:24:59]MH_I2C_Read... [22:24:59]Read from MH i2c: 01 07 00 [22:24:59]MH_I2C_Read... [22:24:59]Read from MH i2c: 01 07 00 88 17 00 00 00 00 00 FF 0F B4 [22:24:59]RasterBufferAndPrint [22:24:59]line Счет N : (1)673111 [22:24:59]line ИНН: 02508201610067 [22:24:59]line Контрольно-Кассовый Чек [22:24:59]line ПРОДАЖА [22:24:59]line ТРК (МРК, ГНК) : 31 [22:24:59]line Товар: 2710124500 [22:24:59]line Аи-95-К-5 [22:24:59]line 8.120 * 73.90 [22:24:59]line = 600.07 [22:24:59]line НДС 12% НСП 1% [22:24:59]line > о реализуемом товаре [22:24:59]line ОКРУГЛЕНИЕ: -0.07 [22:24:59]line ИТОГО: 600.00 [22:24:59]line Внесено: 600.00 [22:24:59]line СДАЧА: 0.00 [22:24:59]line НСП 1% : 5.31 [22:24:59]line НДС 12% : 63.72 [22:24:59]line Наличными: 600.00 [22:24:59]line Безнал.: 0.00 [22:24:59]line Место: АЗС № 120 "Партнер Нефть" [22:24:59]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [22:24:59]line СНО: Общий режим [22:24:59]line Чек 238 19.06.2024 22:24 [22:24:59]line Смена: 353 ФФД: 1.0 [22:24:59]line ЗНМ: 0300000164 [22:24:59]line РНМ: 0000000000092785 [22:24:59]line Версия ККМ: 001 [22:24:59]line ФМ: 0000000000875093 [22:24:59]line ФД: 103808 [22:24:59]line ФПД: 137273366721961 [22:24:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T222459&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103808&fm=137273366721961&tin=02508201610067®Number=0000000000092785&sum=60000 [22:24:59]OFD Sender: Processing packet 103808 [packets to send 17, broken 16] [22:24:59]ProducePacketName [22:24:59]name=ofd_packets/00103808 [22:24:59]OFD Sender: To server: pG, [22:24:59]CommunicateWithHost lk.salyk.kg:30040 [22:24:59]ConnectInit lk.salyk.kg [22:24:59]written 0, free lines is 4095 [22:25:00]Connected sock=11 [22:25:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 21 7D 07 01 B2 30 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 B8 1F 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 67 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EE 00 00 00 F4 03 04 00 BB 5A 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 80 95 01 00 35 04 06 00 7C D9 72 42 B5 A9 6C 7B 14 1A 96 4F 41 76 [22:25:00]Write to MH i2c: 01 00 00 B3 17 CA [22:25:00]Write i2c OK [22:25:00]MH_I2C_Read... [22:25:00]Read from MH i2c: 01 [22:25:00]MH_I2C_Read... [22:25:00]Read from MH i2c: 01 07 00 [22:25:00]MH_I2C_Read... [22:25:00]Read from MH i2c: 01 07 00 B3 17 00 00 00 00 00 E2 0C BF [22:25:00]RasterBufferAndPrint [22:25:00]line [22:25:00]line [22:25:00]line [22:25:00]line [22:25:00]line [22:25:00]written 0, free lines is 3304 [22:25:00]MH_Cut [22:25:00]Write to MH i2c: D1 01 00 BA 17 01 A3 [22:25:00]Write i2c OK [22:25:00]MH_I2C_Read... [22:25:00]Read from MH i2c: D1 [22:25:00]MH_I2C_Read... [22:25:00]Read from MH i2c: D1 01 00 [22:25:00]MH_I2C_Read... [22:25:00]Read from MH i2c: D1 01 00 BA 17 00 A2 [22:25:00]Write to MH i2c: 01 00 00 BB 17 D2 [22:25:00]Write i2c OK [22:25:00]MH_I2C_Read... [22:25: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 39 33 4F 00 00 00 4C 2F 47 00 FE E9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 80 95 01 00 F4 03 04 00 43 01 73 66 B6 04 01 00 00 FF 9A F6 76 27 4B CA 24 [22:25:00]CommunicateWithHost err = 0 [22:25:00]CheckOFDResponse [22:25:00]1017 (14) - 77093643461234 [22:25:00]1041 (16) - 0000000000875093 [22:25:00]1040 (4) - 103808 [22:25:00]1012 (4) - 19.06.2024 16:03 [22:25:00]1206 (1) - 0 [22:25:00]OFD Sender: Remove packet 103808 [22:25:00]ProducePacketName [22:25:00]name=ofd_packets/00103808 [22:25:00]NVStorageDeleteData [22:25:00]OFD Sender: No OFD packet to send [22:25:00]*** Cut start [22:25:00]*** Partial cut [22:25:00]*** CUTSNS_PIN = 1 [22:25:00]*** CUTSNS_PIN = 0 [22:25:01]*** Brake cut motor [22:25:01]Read from MH i2c: 01 [22:25:01]MH_I2C_Read... [22:25:01]*** Stop cut motor [22:25:01]*** Cut end [22:25:01]Read from MH i2c: 01 07 00 [22:25:01]MH_I2C_Read... [22:25:01]Read from MH i2c: 01 07 00 BB 17 00 00 00 00 00 FF 0F E7 [22:25:01]process_action close_receipt done [22:25:01]requested_data is exist [22:25:01]produce_requested_data [22:25:01]requested_item fm.sn is exist - process it [22:25:01]wFMCommunicate request_size=4 [22:25:01]MH_SAM_APDU [22:25:01]CAPDU: 80 11 00 00 [22:25:01]Write to MH i2c: E2 08 00 BC 17 80 11 00 00 00 00 00 00 4D [22:25:01]Write i2c OK [22:25:01]MH_I2C_Read... [22:25:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:25:01]Read from MH i2c: E2 [22:25:01]MH_I2C_Read... [22:25:01]Read from MH i2c: E2 17 00 [22:25:01]MH_I2C_Read... [22:25:01]Read from MH i2c: E2 17 00 BC 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 A0 [22:25:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [22:25:01]wFMCommunicate OK [22:25:01]requested_item fd.num is exist - process it [22:25:01]SAM_PROTO_GetFieldsCounters [22:25:01]wFMCommunicate request_size=4 [22:25:01]MH_SAM_APDU [22:25:01]CAPDU: 80 13 00 00 [22:25:01]Write to MH i2c: E2 08 00 BD 17 80 13 00 00 00 00 00 00 50 [22:25:01]Write i2c OK [22:25:01]MH_I2C_Read... [22:25:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:25:01]Read from MH i2c: E2 [22:25:01]MH_I2C_Read... [22:25:01]Read from MH i2c: E2 62 00 [22:25:01]MH_I2C_Read... [22:25:01]Read from MH i2c: E2 62 00 BD 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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 80 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 EE 00 00 00 5E 04 04 00 EE 00 00 00 57 04 04 00 EF 00 00 00 19 04 04 00 00 00 00 00 90 00 B9 [22:25: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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 80 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 EE 00 00 00 5E 04 04 00 EE 00 00 00 57 04 04 00 EF 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:25:01]wFMCommunicate OK [22:25:01]SAM_PROTO_GetFieldsCounters done [22:25:01]requested_item shift.num is exist - process it [22:25:01]requested_item shift.opened is exist - process it [22:25:01]req_shift_opened [22:25:01]FM_GetShiftState [22:25:01]SAM_PROTO_GetShiftState [22:25:01]wFMCommunicate request_size=4 [22:25:01]MH_SAM_APDU [22:25:01]CAPDU: 80 13 01 00 [22:25:01]Write to MH i2c: E2 08 00 BE 17 80 13 01 00 00 00 00 00 52 [22:25:01]Write i2c OK [22:25:01]MH_I2C_Read... [22:25:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:25:01]Read from MH i2c: E2 [22:25:01]MH_I2C_Read... [22:25:01]Read from MH i2c: E2 0E 00 [22:25:01]MH_I2C_Read... [22:25:01]Read from MH i2c: E2 0E 00 BE 17 00 09 00 01 04 26 72 66 00 00 00 00 90 00 60 [22:25:01]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [22:25:01]wFMCommunicate OK [22:25:01]SAM_PROTO_GetShiftState done [22:25:01]FM_GetShiftState done [22:25:01]req_shift_opened done [22:25:01]requested_item shift.open_date is exist - process it [22:25:01]req_shift_open_date [22:25:01]req_shift_open_date done [22:25:01]produce_requested_data done [22:25:01]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103808,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [22:25:01]process_action_free close_receipt [22:25:01]json_value_free [22:25:01]json_value_free done [22:25:01]process_json_proto returns [22:25:01]Send response to host [22:25:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103808,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [22:25:01]free response buf [22:25:01]execute_script done [22:25:01]execute_script returns [22:25:01]free content buf [22:25:01]Sock 9.Close socket [22:25:01]Sock 9.Thread stoped [22:25:05]OFD Sender: No OFD packet to send [22:25:10]OFD Sender: No OFD packet to send [22:25:15]OFD Sender: No OFD packet to send [22:25:20]OFD Sender: No OFD packet to send [22:25:25]OFD Sender: No OFD packet to send [22:25:30]OFD Sender: No OFD packet to send [22:25:35]OFD Sender: No OFD packet to send [22:25:40]OFD Sender: No OFD packet to send [22:25:45]OFD Sender: No OFD packet to send [22:25:50]OFD Sender: No OFD packet to send [22:25:55]OFD Sender: No OFD packet to send [22:26:00]OFD Sender: No OFD packet to send [22:26:05]OFD Sender: No OFD packet to send [22:26:10]OFD Sender: No OFD packet to send [22:26:15]OFD Sender: No OFD packet to send [22:26:20]OFD Sender: No OFD packet to send [22:26:25]OFD Sender: No OFD packet to send [22:26:30]OFD Sender: No OFD packet to send [22:26:35]OFD Sender: No OFD packet to send [22:26:40]OFD Sender: No OFD packet to send [22:26:45]OFD Sender: No OFD packet to send [22:26:50]OFD Sender: No OFD packet to send [22:26:55]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:36]OFD Sender: No OFD packet to send [22:28:41]OFD Sender: No OFD packet to send [22:28:46]OFD Sender: No OFD packet to send [22:28:51]OFD Sender: No OFD packet to send [22:28:56]OFD Sender: No OFD packet to send [22:29:01]OFD Sender: No OFD packet to send [22:29:06]OFD Sender: No OFD packet to send [22:29:11]OFD Sender: No OFD packet to send [22:29:16]OFD Sender: No OFD packet to send [22:29:21]OFD Sender: No OFD packet to send [22:29:26]OFD Sender: No OFD packet to send [22:29:31]OFD Sender: No OFD packet to send [22:29:36]OFD Sender: No OFD packet to send [22:29:41]OFD Sender: No OFD packet to send [22:29:46]OFD Sender: No OFD packet to send [22:29:51]OFD Sender: No OFD packet to send [22:29:56]OFD Sender: No OFD packet to send [22:30:01]OFD Sender: No OFD packet to send [22:30:06]OFD Sender: No OFD packet to send [22:30:11]OFD Sender: No OFD packet to send [22:30:16]OFD Sender: No OFD packet to send [22:30:21]OFD Sender: No OFD packet to send [22:30:26]OFD Sender: No OFD packet to send [22:30:30]accept exits with 8 [22:30:30]New connection [22:30:30]New thread 3066940772 created [22:30:30]Thread 3066797412 joined [22:30:30]Waiting for new connection... [22:30:30] Sock 8.Parse request [22:30:30]Sock 8.Check first char [22:30:30]Sock 8.First char is OK [22:30:30]request: POST /json_proto HTTP/1.0 [22:30:30]Method: POST [22:30:30]URL: /json_proto [22:30:30]Method is POST - this is cgi request [22:30:30]url: /json_proto [22:30:30]query_string will be loaded in cgi processing [22:30:30]execute_cgi json_proto POST (null) [22:30:30]execute_cgi path=json_proto method=POST [22:30:30]POST find Content-Length [22:30:30]Host: 172.17.38.133:8080 [22:30:30]Content-Length: 800 [22:30:30]Content-Type: application/json [22:30:30] [22:30:30]POST finish read [22:30:30]Found Content-Length = 800 [22:30:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673112", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 4.520, "sum" : 300.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 300.13 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:30:30]execute_script... [22:30:30]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673112", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 4.520, "sum" : 300.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 300.13 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:30:30]POST & json_proto [22:30:30]process_json_proto [22:30:30]json parsed OK: [22:30:30]protocol is kg_v1.0 [22:30:30]action value=close_receipt [22:30:30]process_action close_receipt [22:30:30]cmd_close_receipt [22:30:30]MH_GetDate [22:30:30]Write to MH i2c: F0 00 00 BF 17 C5 [22:30:30]Write i2c OK [22:30:30]MH_I2C_Read... [22:30:30]Read from MH i2c: F0 [22:30:30]MH_I2C_Read... [22:30:30]Read from MH i2c: F0 09 00 [22:30:30]MH_I2C_Read... [22:30:30]Read from MH i2c: F0 09 00 BF 17 00 08 5C 73 66 BD 8F 7C 64 37 [22:30:30]GetLastDocTimeStamp 1718835899 [22:30:30]current date 1718836232 [22:30:30]FM_GetShiftState [22:30:30]SAM_PROTO_GetShiftState [22:30:30]wFMCommunicate request_size=4 [22:30:30]MH_SAM_APDU [22:30:30]CAPDU: 80 13 01 00 [22:30:30]Write to MH i2c: E2 08 00 C0 17 80 13 01 00 00 00 00 00 54 [22:30:30]Write i2c OK [22:30:30]MH_I2C_Read... [22:30:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:30:30]Read from MH i2c: E2 [22:30:30]MH_I2C_Read... [22:30:30]Read from MH i2c: E2 0E 00 [22:30:30]MH_I2C_Read... [22:30:30]Read from MH i2c: E2 0E 00 C0 17 00 09 00 01 04 26 72 66 00 00 00 00 90 00 62 [22:30:30]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [22:30:30]wFMCommunicate OK [22:30:30]SAM_PROTO_GetShiftState done [22:30:30]FM_GetShiftState done [22:30:30]opened in 1718756868 [22:30:30]opened+sec_in_day 1718843268 [22:30:30]quantity*price = 30012 [22:30:30]sum+1 = 30014 [22:30:30]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 300.13 НСП 1% : 2.66 НДС 12% : 31.87 Наличными: 0.00 Безнал.: 300.13 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 239 19.06.2024 22:30 Смена: 353 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000875093 ФД: 103809 ФПД: 214790086223391 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T223032&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103809&fm=214790086223391&tin=02508201610067®Number=0000000000092785&sum=30013 [22:30:31]StoreToDocumentArchive [22:30:31]shift 353 fd 103809 [22:30:31]save to /storage/0353/doc_00103809 [22:30:31]save last doc name /storage/0353/doc_00103809 to /storage/kkm_last_doc_name [22:30:31]save OK [22:30:31]Clear old archive folders... [22:30:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:30:31]tlvbuf is 01735BC0 [22:30:31]SAM_PROTO_ClearQueue [22:30:31]wFMCommunicate request_size=4 [22:30:31]MH_SAM_APDU [22:30:31]CAPDU: 80 09 00 00 [22:30:31]Write to MH i2c: E2 08 00 CD 17 80 09 00 00 00 00 00 00 56 [22:30:31]Write i2c OK [22:30:31]MH_I2C_Read... [22:30:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:30:31]Read from MH i2c: E2 [22:30:31]MH_I2C_Read... [22:30:31]Read from MH i2c: E2 03 00 [22:30:31]MH_I2C_Read... [22:30:31]Read from MH i2c: E2 03 00 CD 17 00 90 00 58 [22:30:31]RAPDU: 90 00 [22:30:31]wFMCommunicate OK [22:30:31]SAM_PROTO_ClearQueue done [22:30:31]KKMCreateOFDPacket [22:30:31]OFDProtocolAddRootSTLVToBuf [22:30:31]FM_MakeSignedData [22:30:31]FM_MakeSignedData [22:30:31]SAM_PROTO_SignData [22:30:31]wFMCommunicate request_size=4 [22:30:31]MH_SAM_APDU [22:30:31]CAPDU: 80 0D 01 02 [22:30:31]Write to MH i2c: E2 08 00 CE 17 80 0D 01 02 00 00 00 00 5E [22:30:31]Write i2c OK [22:30:31]MH_I2C_Read... [22:30:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:30:31]Read from MH i2c: E2 [22:30:31]MH_I2C_Read... [22:30:31]Read from MH i2c: E2 03 00 [22:30:31]MH_I2C_Read... [22:30:31]Read from MH i2c: E2 03 00 CE 17 00 90 00 59 [22:30:31]RAPDU: 90 00 [22:30:31]wFMCommunicate OK [22:30:31]wFMCommunicate request_size=255 [22:30:31]MH_SAM_APDU [22:30:31]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3D 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 3D 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EF 00 00 00 F4 03 04 00 08 5C 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 81 95 01 00 35 04 06 00 C3 [22:30:31]Write to MH i2c: E2 02 01 CF 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 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3D 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 3D 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EF 00 00 00 F4 03 04 00 08 5C 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 81 95 01 00 35 04 06 00 C3 00 00 38 [22:30:31]Write i2c OK [22:30:31]MH_I2C_Read... [22:30:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:30:32]Read from MH i2c: E2 [22:30:32]MH_I2C_Read... [22:30:32]Read from MH i2c: E2 03 00 [22:30:32]MH_I2C_Read... [22:30:32]Read from MH i2c: E2 03 00 CF 17 00 90 00 5A [22:30:32]RAPDU: 90 00 [22:30:32]wFMCommunicate OK [22:30:32]wFMCommunicate request_size=10 [22:30:32]MH_SAM_APDU [22:30:32]CAPDU: 80 0D 02 02 05 59 B6 CA 66 1F [22:30:32]Write to MH i2c: E2 0D 00 D0 17 80 0D 02 02 05 00 59 B6 CA 66 1F 00 00 C9 [22:30:32]Write i2c OK [22:30:32]MH_I2C_Read... [22:30:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:30:32]Read from MH i2c: E2 [22:30:32]MH_I2C_Read... [22:30:32]Read from MH i2c: E2 03 00 [22:30:32]MH_I2C_Read... [22:30:32]Read from MH i2c: E2 03 00 D0 17 00 90 00 5B [22:30:32]RAPDU: 90 00 [22:30:32]wFMCommunicate OK [22:30:32]wFMCommunicate request_size=4 [22:30:32]MH_SAM_APDU [22:30:32]CAPDU: 80 0D 03 02 [22:30:32]Write to MH i2c: E2 08 00 D1 17 80 0D 03 02 00 00 00 00 63 [22:30:32]Write i2c OK [22:30:32]MH_I2C_Read... [22:30:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:30:32]Read from MH i2c: E2 [22:30:32]MH_I2C_Read... [22:30:32]Read from MH i2c: E2 0B 00 [22:30:32]MH_I2C_Read... [22:30:32]Read from MH i2c: E2 0B 00 D1 17 00 7C 9E C9 FB 54 38 BB 6A 90 00 F3 [22:30:32]RAPDU: 7C 9E C9 FB 54 38 BB 6A 90 00 [22:30:32]wFMCommunicate OK [22:30:32]SAM_PROTO_SignData done [22:30:32]FM_MakeSignedData done [22:30:32]CreateOFDProtocolMessage [22:30:32]wFMCommunicate request_size=4 [22:30:32]MH_SAM_APDU [22:30:32]CAPDU: 80 11 00 00 [22:30:32]Write to MH i2c: E2 08 00 D2 17 80 11 00 00 00 00 00 00 63 [22:30:32]Write i2c OK [22:30:32]MH_I2C_Read... [22:30:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:30:32]Read from MH i2c: E2 [22:30:32]MH_I2C_Read... [22:30:32]Read from MH i2c: E2 17 00 [22:30:32]MH_I2C_Read... [22:30:32]Read from MH i2c: E2 17 00 D2 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 B6 [22:30:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [22:30:32]wFMCommunicate OK [22:30:32]CreateOFDProtocolMessage done [22:30:32]OFDSenderStorePacket 103809 [22:30:32]StoreOFDPacket docnum=103809 [22:30:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 C0 F9 07 01 5A D2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3D 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 3D 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EF 00 00 00 F4 03 04 00 08 5C 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 81 95 01 00 35 04 06 00 C3 59 B6 CA 66 1F 7C 9E C9 FB 54 38 BB 6A [22:30:32]CheckFolder [22:30:32]dirname=/storage/ofd_packets [22:30:32]CheckFolder done [22:30:32]ProducePacketName [22:30:32]name=ofd_packets/00103809 [22:30:32]NVStorageSaveData ofd_packets/00103809 [22:30:32]File name is /storage/ofd_packets/00103809 [22:30:32]Write 301 bytes [22:30:32]NVStorageSaveData done [22:30:32]OFDSenderStorePacket done [22:30:32]KKMCreateOFDPacket done [22:30:32]NVStorageSaveData kkm_last_timestamp [22:30:32]File name is /storage/kkm_last_timestamp [22:30:32]Write 4 bytes [22:30:32]NVStorageSaveData done [22:30:32]OFD Sender: Processing packet 103809 [packets to send 17, broken 16] [22:30:32]ProducePacketName [22:30:32]name=ofd_packets/00103809 [22:30:32]OFD Sender: To server: pG, [22:30:32]CommunicateWithHost lk.salyk.kg:30040 [22:30:32]ConnectInit lk.salyk.kg [22:30:32]ExternCall_PrintAddStr [22:30:32]wPrintStart [22:30:32]Write to MH i2c: 01 00 00 D3 17 EA [22:30:32]Write i2c OK [22:30:32]MH_I2C_Read... [22:30:32]Read from MH i2c: 01 [22:30:32]MH_I2C_Read... [22:30:32]Read from MH i2c: 01 07 00 [22:30:32]MH_I2C_Read... [22:30:32]Read from MH i2c: 01 07 00 D3 17 00 00 00 00 00 FF 0F FF [22:30:32]RasterBufferAndPrint [22:30:32]line Счет N : (1)673112 [22:30:32]line ИНН: 02508201610067 [22:30:32]line Контрольно-Кассовый Чек [22:30:32]line ПРОДАЖА [22:30:32]line ТРК (МРК, ГНК) : 32 [22:30:32]line Товар: 2710124130 [22:30:32]line Аи-92-К-5 [22:30:32]line 4.520 * 66.40 [22:30:32]line = 300.13 [22:30:32]line НДС 12% НСП 1% [22:30:32]line > о реализуемом товаре [22:30:32]line ИТОГО: 300.13 [22:30:32]line НСП 1% : 2.66 [22:30:32]line НДС 12% : 31.87 [22:30:32]line Наличными: 0.00 [22:30:32]line Безнал.: 300.13 [22:30:32]line Место: АЗС № 120 "Партнер Нефть" [22:30:32]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [22:30:32]line СНО: Общий режим [22:30:32]line Чек 239 19.06.2024 22:30 [22:30:32]line Смена: 353 ФФД: 1.0 [22:30:32]line ЗНМ: 0300000164 [22:30:32]line РНМ: 0000000000092785 [22:30:32]line Версия ККМ: 001 [22:30:32]line Платежная система: O! деньги [22:30:32]line ФМ: 0000000000875093 [22:30:32]line ФД: 103809 [22:30:32]line ФПД: 214790086223391 [22:30:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T223032&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103809&fm=214790086223391&tin=02508201610067®Number=0000000000092785&sum=30013 [22:30:32]Connected sock=11 [22:30:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 C0 F9 07 01 5A D2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3D 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 3D 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EF 00 00 00 F4 03 04 00 08 5C 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 81 95 01 00 35 04 06 00 C3 59 B6 CA 66 1F 7C 9E C9 FB 54 38 BB 6A [22:30:32]written 0, free lines is 4095 [22:30: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 39 33 4F 00 00 00 EE 74 47 00 8E 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 39 33 10 04 04 00 81 95 01 00 F4 03 04 00 8F 02 73 66 B6 04 01 00 00 DA 5C AC 6C E1 64 A4 99 [22:30:32]CommunicateWithHost err = 0 [22:30:32]CheckOFDResponse [22:30:32]1017 (14) - 77093643461234 [22:30:32]1041 (16) - 0000000000875093 [22:30:32]1040 (4) - 103809 [22:30:32]1012 (4) - 19.06.2024 16:08 [22:30:32]1206 (1) - 0 [22:30:32]OFD Sender: Remove packet 103809 [22:30:32]ProducePacketName [22:30:32]name=ofd_packets/00103809 [22:30:32]NVStorageDeleteData [22:30:33]Write to MH i2c: 01 00 00 FD 17 14 [22:30:33]Write i2c OK [22:30:33]MH_I2C_Read... [22:30:33]Read from MH i2c: 01 [22:30:33]MH_I2C_Read... [22:30:33]Read from MH i2c: 01 07 00 [22:30:33]MH_I2C_Read... [22:30:33]Read from MH i2c: 01 07 00 FD 17 00 00 00 00 00 FA 0C 21 [22:30:33]RasterBufferAndPrint [22:30:33]line [22:30:33]line [22:30:33]line [22:30:33]line [22:30:33]line [22:30:33]written 0, free lines is 3329 [22:30:33]MH_Cut [22:30:33]Write to MH i2c: D1 01 00 04 18 01 EE [22:30:33]Write i2c OK [22:30:33]MH_I2C_Read... [22:30:33]Read from MH i2c: D1 [22:30:33]MH_I2C_Read... [22:30:33]Read from MH i2c: D1 01 00 [22:30:33]MH_I2C_Read... [22:30:33]Read from MH i2c: D1 01 00 04 18 00 ED [22:30:33]Write to MH i2c: 01 00 00 05 18 1D [22:30:33]Write i2c OK [22:30:33]MH_I2C_Read... [22:30:33]OFD Sender: No OFD packet to send [22:30:33]*** Cut start [22:30:33]*** Partial cut [22:30:33]*** CUTSNS_PIN = 1 [22:30:33]*** CUTSNS_PIN = 0 [22:30:34]*** Brake cut motor [22:30:34]Read from MH i2c: 01 [22:30:34]MH_I2C_Read... [22:30:34]*** Stop cut motor [22:30:34]*** Cut end [22:30:34]Read from MH i2c: 01 07 00 [22:30:34]MH_I2C_Read... [22:30:34]Read from MH i2c: 01 07 00 05 18 00 00 00 00 00 FF 0F 32 [22:30:34]process_action close_receipt done [22:30:34]requested_data is exist [22:30:34]produce_requested_data [22:30:34]requested_item fm.sn is exist - process it [22:30:34]wFMCommunicate request_size=4 [22:30:34]MH_SAM_APDU [22:30:34]CAPDU: 80 11 00 00 [22:30:34]Write to MH i2c: E2 08 00 06 18 80 11 00 00 00 00 00 00 98 [22:30:34]Write i2c OK [22:30:34]MH_I2C_Read... [22:30:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:30:34]Read from MH i2c: E2 [22:30:34]MH_I2C_Read... [22:30:34]Read from MH i2c: E2 17 00 [22:30:34]MH_I2C_Read... [22:30:34]Read from MH i2c: E2 17 00 06 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 EB [22:30:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [22:30:34]wFMCommunicate OK [22:30:34]requested_item fd.num is exist - process it [22:30:34]SAM_PROTO_GetFieldsCounters [22:30:34]wFMCommunicate request_size=4 [22:30:34]MH_SAM_APDU [22:30:34]CAPDU: 80 13 00 00 [22:30:34]Write to MH i2c: E2 08 00 07 18 80 13 00 00 00 00 00 00 9B [22:30:34]Write i2c OK [22:30:34]MH_I2C_Read... [22:30:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:30:34]Read from MH i2c: E2 [22:30:34]MH_I2C_Read... [22:30:34]Read from MH i2c: E2 62 00 [22:30:34]MH_I2C_Read... [22:30:34]Read from MH i2c: E2 62 00 07 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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 81 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 EF 00 00 00 5E 04 04 00 EF 00 00 00 57 04 04 00 F0 00 00 00 19 04 04 00 00 00 00 00 90 00 08 [22:30:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 81 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 EF 00 00 00 5E 04 04 00 EF 00 00 00 57 04 04 00 F0 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:30:34]wFMCommunicate OK [22:30:34]SAM_PROTO_GetFieldsCounters done [22:30:34]requested_item shift.num is exist - process it [22:30:34]requested_item shift.opened is exist - process it [22:30:34]req_shift_opened [22:30:34]FM_GetShiftState [22:30:34]SAM_PROTO_GetShiftState [22:30:34]wFMCommunicate request_size=4 [22:30:34]MH_SAM_APDU [22:30:34]CAPDU: 80 13 01 00 [22:30:34]Write to MH i2c: E2 08 00 08 18 80 13 01 00 00 00 00 00 9D [22:30:34]Write i2c OK [22:30:34]MH_I2C_Read... [22:30:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:30:34]Read from MH i2c: E2 [22:30:34]MH_I2C_Read... [22:30:34]Read from MH i2c: E2 0E 00 [22:30:34]MH_I2C_Read... [22:30:34]Read from MH i2c: E2 0E 00 08 18 00 09 00 01 04 26 72 66 00 00 00 00 90 00 AB [22:30:34]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [22:30:34]wFMCommunicate OK [22:30:34]SAM_PROTO_GetShiftState done [22:30:34]FM_GetShiftState done [22:30:34]req_shift_opened done [22:30:34]requested_item shift.open_date is exist - process it [22:30:34]req_shift_open_date [22:30:34]req_shift_open_date done [22:30:34]produce_requested_data done [22:30:34]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103809,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [22:30:34]process_action_free close_receipt [22:30:34]json_value_free [22:30:34]json_value_free done [22:30:34]process_json_proto returns [22:30:34]Send response to host [22:30:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103809,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [22:30:34]free response buf [22:30:34]execute_script done [22:30:34]execute_script returns [22:30:34]free content buf [22:30:34]Sock 8.Close socket [22:30:34]Sock 8.Thread stoped [22:30:38]OFD Sender: No OFD packet to send [22:30:43]OFD Sender: No OFD packet to send [22:30:48]OFD Sender: No OFD packet to send [22:30:53]OFD Sender: No OFD packet to send [22:30:58]OFD Sender: No OFD packet to send [22:31:03]OFD Sender: No OFD packet to send [22:31:08]OFD Sender: No OFD packet to send [22:31:13]OFD Sender: No OFD packet to send [22:31:18]OFD Sender: No OFD packet to send [22:31:23]OFD Sender: No OFD packet to send [22:31:28]OFD Sender: No OFD packet to send [22:31:33]OFD Sender: No OFD packet to send [22:31:38]OFD Sender: No OFD packet to send [22:31:43]OFD Sender: No OFD packet to send [22:31:48]OFD Sender: No OFD packet to send [22:31:53]OFD Sender: No OFD packet to send [22:31:58]OFD Sender: No OFD packet to send [22:32:03]OFD Sender: No OFD packet to send [22:32:08]OFD Sender: No OFD packet to send [22:32:13]OFD Sender: No OFD packet to send [22:32:18]OFD Sender: No OFD packet to send [22:32:23]OFD Sender: No OFD packet to send [22:32:28]OFD Sender: No OFD packet to send [22:32:33]OFD Sender: No OFD packet to send [22:32:38]OFD Sender: No OFD packet to send [22:32:43]OFD Sender: No OFD packet to send [22:32:48]OFD Sender: No OFD packet to send [22:32:53]OFD Sender: No OFD packet to send [22:32:58]OFD Sender: No OFD packet to send [22:33:03]OFD Sender: No OFD packet to send [22:33:08]OFD Sender: No OFD packet to send [22:33:13]OFD Sender: No OFD packet to send [22:33:18]OFD Sender: No OFD packet to send [22:33:23]OFD Sender: No OFD packet to send [22:33:28]OFD Sender: No OFD packet to send [22:33:33]OFD Sender: No OFD packet to send [22:33:38]OFD Sender: No OFD packet to send [22:33:43]OFD Sender: No OFD packet to send [22:33:48]OFD Sender: No OFD packet to send [22:33:53]OFD Sender: No OFD packet to send [22:33:58]OFD Sender: No OFD packet to send [22:34:03]OFD Sender: No OFD packet to send [22:34:08]OFD Sender: No OFD packet to send [22:34:13]OFD Sender: No OFD packet to send [22:34:18]OFD Sender: No OFD packet to send [22:34:23]OFD Sender: No OFD packet to send [22:34:28]OFD Sender: No OFD packet to send [22:34:33]OFD Sender: No OFD packet to send [22:34:38]OFD Sender: No OFD packet to send [22:34:43]OFD Sender: No OFD packet to send [22:34:48]OFD Sender: No OFD packet to send [22:34:53]OFD Sender: No OFD packet to send [22:34:58]OFD Sender: No OFD packet to send [22:35:03]OFD Sender: No OFD packet to send [22:35:08]OFD Sender: No OFD packet to send [22:35:13]OFD Sender: No OFD packet to send [22:35:18]OFD Sender: No OFD packet to send [22:35:23]OFD Sender: No OFD packet to send [22:35:28]OFD Sender: No OFD packet to send [22:35:33]OFD Sender: No OFD packet to send [22:35:38]OFD Sender: No OFD packet to send [22:35:43]OFD Sender: No OFD packet to send [22:35:48]OFD Sender: No OFD packet to send [22:35:53]OFD Sender: No OFD packet to send [22:35:58]OFD Sender: No OFD packet to send [22:36:03]OFD Sender: No OFD packet to send [22:36:08]OFD Sender: No OFD packet to send [22:36:13]OFD Sender: No OFD packet to send [22:36:18]OFD Sender: No OFD packet to send [22:36:23]OFD Sender: No OFD packet to send [22:36:28]OFD Sender: No OFD packet to send [22:36:33]OFD Sender: No OFD packet to send [22:36:38]OFD Sender: No OFD packet to send [22:36:43]OFD Sender: No OFD packet to send [22:36:48]OFD Sender: No OFD packet to send [22:36:53]OFD Sender: No OFD packet to send [22:36:58]OFD Sender: No OFD packet to send [22:37:03]OFD Sender: No OFD packet to send [22:37:08]OFD Sender: No OFD packet to send [22:37:13]OFD Sender: No OFD packet to send [22:37:18]OFD Sender: No OFD packet to send [22:37:23]OFD Sender: No OFD packet to send [22:37:28]OFD Sender: No OFD packet to send [22:37:33]OFD Sender: No OFD packet to send [22:37:38]OFD Sender: No OFD packet to send [22:37:43]OFD Sender: No OFD packet to send [22:37:48]OFD Sender: No OFD packet to send [22:37:53]OFD Sender: No OFD packet to send [22:37:58]OFD Sender: No OFD packet to send [22:38:03]OFD Sender: No OFD packet to send [22:38:08]OFD Sender: No OFD packet to send [22:38:13]OFD Sender: No OFD packet to send [22:38:18]OFD Sender: No OFD packet to send [22:38:23]OFD Sender: No OFD packet to send [22:38:28]OFD Sender: No OFD packet to send [22:38:33]OFD Sender: No OFD packet to send [22:38:38]OFD Sender: No OFD packet to send [22:38:43]OFD Sender: No OFD packet to send [22:38:48]OFD Sender: No OFD packet to send [22:38:53]OFD Sender: No OFD packet to send [22:38:58]OFD Sender: No OFD packet to send [22:39:03]OFD Sender: No OFD packet to send [22:39:08]OFD Sender: No OFD packet to send [22:39:13]OFD Sender: No OFD packet to send [22:39:18]OFD Sender: No OFD packet to send [22:39:23]OFD Sender: No OFD packet to send [22:39:28]OFD Sender: No OFD packet to send [22:39:33]OFD Sender: No OFD packet to send [22:39:38]OFD Sender: No OFD packet to send [22:39:43]OFD Sender: No OFD packet to send [22:39:48]OFD Sender: No OFD packet to send [22:39:53]OFD Sender: No OFD packet to send [22:39:58]OFD Sender: No OFD packet to send [22:40:03]OFD Sender: No OFD packet to send [22:40:08]OFD Sender: No OFD packet to send [22:40:13]OFD Sender: No OFD packet to send [22:40:18]OFD Sender: No OFD packet to send [22:40:23]OFD Sender: No OFD packet to send [22:40:28]OFD Sender: No OFD packet to send [22:40:33]OFD Sender: No OFD packet to send [22:40:38]OFD Sender: No OFD packet to send [22:40:43]OFD Sender: No OFD packet to send [22:40:48]OFD Sender: No OFD packet to send [22:40:53]OFD Sender: No OFD packet to send [22:40:58]OFD Sender: No OFD packet to send [22:41:03]OFD Sender: No OFD packet to send [22:41:08]OFD Sender: No OFD packet to send [22:41:13]OFD Sender: No OFD packet to send [22:41:18]OFD Sender: No OFD packet to send [22:41:23]OFD Sender: No OFD packet to send [22:41:28]OFD Sender: No OFD packet to send [22:41:33]OFD Sender: No OFD packet to send [22:41:38]OFD Sender: No OFD packet to send [22:41:43]OFD Sender: No OFD packet to send [22:41:48]OFD Sender: No OFD packet to send [22:41:53]OFD Sender: No OFD packet to send [22:41:58]OFD Sender: No OFD packet to send [22:42:03]OFD Sender: No OFD packet to send [22:42:08]OFD Sender: No OFD packet to send [22:42:11]accept exits with 9 [22:42:11]New connection [22:42:11]New thread 3066797412 created [22:42:11]Thread 3066940772 joined [22:42:11]Waiting for new connection... [22:42:11] Sock 9.Parse request [22:42:11]Sock 9.Check first char [22:42:11]Sock 9.First char is OK [22:42:11]request: POST /json_proto HTTP/1.0 [22:42:11]Method: POST [22:42:11]URL: /json_proto [22:42:11]Method is POST - this is cgi request [22:42:11]url: /json_proto [22:42:11]query_string will be loaded in cgi processing [22:42:11]execute_cgi json_proto POST (null) [22:42:11]execute_cgi path=json_proto method=POST [22:42:11]POST find Content-Length [22:42:11]Host: 172.17.38.133:8080 [22:42:11]Content-Length: 640 [22:42:11]Content-Type: application/json [22:42:11] [22:42:11]POST finish read [22:42:11]Found Content-Length = 640 [22:42:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673115", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 10.000, "sum" : 664.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 664.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:42:11]execute_script... [22:42: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)673115", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 10.000, "sum" : 664.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 664.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:42:11]POST & json_proto [22:42:11]process_json_proto [22:42:11]json parsed OK: [22:42:11]protocol is kg_v1.0 [22:42:11]action value=close_receipt [22:42:11]process_action close_receipt [22:42:11]cmd_close_receipt [22:42:11]MH_GetDate [22:42:11]Write to MH i2c: F0 00 00 09 18 10 [22:42:11]Write i2c OK [22:42:11]MH_I2C_Read... [22:42:11]Read from MH i2c: F0 [22:42:11]MH_I2C_Read... [22:42:11]Read from MH i2c: F0 09 00 [22:42:11]MH_I2C_Read... [22:42:11]Read from MH i2c: F0 09 00 09 18 00 C5 5E 73 66 BD 8F 7C 64 41 [22:42:11]GetLastDocTimeStamp 1718836232 [22:42:11]current date 1718836933 [22:42:11]FM_GetShiftState [22:42:11]SAM_PROTO_GetShiftState [22:42:11]wFMCommunicate request_size=4 [22:42:11]MH_SAM_APDU [22:42:11]CAPDU: 80 13 01 00 [22:42:11]Write to MH i2c: E2 08 00 0A 18 80 13 01 00 00 00 00 00 9F [22:42:11]Write i2c OK [22:42:11]MH_I2C_Read... [22:42:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:42:11]Read from MH i2c: E2 [22:42:11]MH_I2C_Read... [22:42:11]Read from MH i2c: E2 0E 00 [22:42:11]MH_I2C_Read... [22:42:11]Read from MH i2c: E2 0E 00 0A 18 00 09 00 01 04 26 72 66 00 00 00 00 90 00 AD [22:42:11]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [22:42:11]wFMCommunicate OK [22:42:11]SAM_PROTO_GetShiftState done [22:42:11]FM_GetShiftState done [22:42:11]opened in 1718756868 [22:42:11]opened+sec_in_day 1718843268 [22:42:11]quantity*price = 66400 [22:42:11]sum+1 = 66401 [22:42:11]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 664.00 НСП 1% : 5.88 НДС 12% : 70.51 Наличными: 664.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 240 19.06.2024 22:42 Смена: 353 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103810 ФПД: 246808272648031 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T224213&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103810&fm=246808272648031&tin=02508201610067®Number=0000000000092785&sum=66400 [22:42:12]StoreToDocumentArchive [22:42:12]shift 353 fd 103810 [22:42:12]save to /storage/0353/doc_00103810 [22:42:12]save last doc name /storage/0353/doc_00103810 to /storage/kkm_last_doc_name [22:42:12]save OK [22:42:12]Clear old archive folders... [22:42:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:42:12]tlvbuf is B6EBE6D0 [22:42:12]SAM_PROTO_ClearQueue [22:42:12]wFMCommunicate request_size=4 [22:42:12]MH_SAM_APDU [22:42:12]CAPDU: 80 09 00 00 [22:42:12]Write to MH i2c: E2 08 00 17 18 80 09 00 00 00 00 00 00 A1 [22:42:12]Write i2c OK [22:42:12]MH_I2C_Read... [22:42:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:42:12]Read from MH i2c: E2 [22:42:12]MH_I2C_Read... [22:42:12]Read from MH i2c: E2 03 00 [22:42:12]MH_I2C_Read... [22:42:12]Read from MH i2c: E2 03 00 17 18 00 90 00 A3 [22:42:12]RAPDU: 90 00 [22:42:12]wFMCommunicate OK [22:42:12]SAM_PROTO_ClearQueue done [22:42:12]KKMCreateOFDPacket [22:42:12]OFDProtocolAddRootSTLVToBuf [22:42:12]FM_MakeSignedData [22:42:12]FM_MakeSignedData [22:42:12]SAM_PROTO_SignData [22:42:12]wFMCommunicate request_size=4 [22:42:12]MH_SAM_APDU [22:42:12]CAPDU: 80 0D 01 02 [22:42:12]Write to MH i2c: E2 08 00 18 18 80 0D 01 02 00 00 00 00 A9 [22:42:12]Write i2c OK [22:42:12]MH_I2C_Read... [22:42:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:42:12]Read from MH i2c: E2 [22:42:12]MH_I2C_Read... [22:42:12]Read from MH i2c: E2 03 00 [22:42:12]MH_I2C_Read... [22:42:12]Read from MH i2c: E2 03 00 18 18 00 90 00 A4 [22:42:12]RAPDU: 90 00 [22:42:12]wFMCommunicate OK [22:42:12]wFMCommunicate request_size=255 [22:42:12]MH_SAM_APDU [22:42: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 10 27 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 60 03 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 03 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 1B 00 00 00 00 07 04 06 00 60 03 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F0 00 00 00 F4 03 04 00 C5 5E 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 82 95 01 00 35 04 06 00 E0 [22:42:12]Write to MH i2c: E2 02 01 19 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 10 27 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 60 03 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 03 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 1B 00 00 00 00 07 04 06 00 60 03 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F0 00 00 00 F4 03 04 00 C5 5E 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 82 95 01 00 35 04 06 00 E0 00 00 5F [22:42:12]Write i2c OK [22:42:12]MH_I2C_Read... [22:42:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:42:12]Read from MH i2c: E2 [22:42:12]MH_I2C_Read... [22:42:12]Read from MH i2c: E2 03 00 [22:42:12]MH_I2C_Read... [22:42:12]Read from MH i2c: E2 03 00 19 18 00 90 00 A5 [22:42:12]RAPDU: 90 00 [22:42:12]wFMCommunicate OK [22:42:12]wFMCommunicate request_size=10 [22:42:12]MH_SAM_APDU [22:42:12]CAPDU: 80 0D 02 02 05 78 87 6B 37 5F [22:42:12]Write to MH i2c: E2 0D 00 1A 18 80 0D 02 02 05 00 78 87 6B 37 5F 00 00 B6 [22:42:12]Write i2c OK [22:42:12]MH_I2C_Read... [22:42:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:42:13]Read from MH i2c: E2 [22:42:13]MH_I2C_Read... [22:42:13]Read from MH i2c: E2 03 00 [22:42:13]MH_I2C_Read... [22:42:13]Read from MH i2c: E2 03 00 1A 18 00 90 00 A6 [22:42:13]RAPDU: 90 00 [22:42:13]wFMCommunicate OK [22:42:13]wFMCommunicate request_size=4 [22:42:13]MH_SAM_APDU [22:42:13]CAPDU: 80 0D 03 02 [22:42:13]Write to MH i2c: E2 08 00 1B 18 80 0D 03 02 00 00 00 00 AE [22:42:13]Write i2c OK [22:42:13]MH_I2C_Read... [22:42:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:42:13]Read from MH i2c: E2 [22:42:13]MH_I2C_Read... [22:42:13]Read from MH i2c: E2 0B 00 [22:42:13]MH_I2C_Read... [22:42:13]Read from MH i2c: E2 0B 00 1B 18 00 F2 0A C7 79 0B B3 60 49 90 00 52 [22:42:13]RAPDU: F2 0A C7 79 0B B3 60 49 90 00 [22:42:13]wFMCommunicate OK [22:42:13]SAM_PROTO_SignData done [22:42:13]FM_MakeSignedData done [22:42:13]CreateOFDProtocolMessage [22:42:13]wFMCommunicate request_size=4 [22:42:13]MH_SAM_APDU [22:42:13]CAPDU: 80 11 00 00 [22:42:13]Write to MH i2c: E2 08 00 1C 18 80 11 00 00 00 00 00 00 AE [22:42:13]Write i2c OK [22:42:13]MH_I2C_Read... [22:42:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:42:13]Read from MH i2c: E2 [22:42:13]MH_I2C_Read... [22:42:13]Read from MH i2c: E2 17 00 [22:42:13]MH_I2C_Read... [22:42:13]Read from MH i2c: E2 17 00 1C 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 01 [22:42:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [22:42:13]wFMCommunicate OK [22:42:13]CreateOFDProtocolMessage done [22:42:13]OFDSenderStorePacket 103810 [22:42:13]StoreOFDPacket docnum=103810 [22:42:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 73 E3 07 01 59 F3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 60 03 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 03 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 1B 00 00 00 00 07 04 06 00 60 03 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F0 00 00 00 F4 03 04 00 C5 5E 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 82 95 01 00 35 04 06 00 E0 78 87 6B 37 5F F2 0A C7 79 0B B3 60 49 [22:42:13]CheckFolder [22:42:13]dirname=/storage/ofd_packets [22:42:13]CheckFolder done [22:42:13]ProducePacketName [22:42:13]name=ofd_packets/00103810 [22:42:13]NVStorageSaveData ofd_packets/00103810 [22:42:13]File name is /storage/ofd_packets/00103810 [22:42:13]Write 301 bytes [22:42:13]NVStorageSaveData done [22:42:13]OFDSenderStorePacket done [22:42:13]KKMCreateOFDPacket done [22:42:13]NVStorageSaveData kkm_last_timestamp [22:42:13]File name is /storage/kkm_last_timestamp [22:42:13]Write 4 bytes [22:42:13]NVStorageSaveData done [22:42:13]ExternCall_PrintAddStr [22:42:13]wPrintStart [22:42:13]Write to MH i2c: 01 00 00 1D 18 35 [22:42:13]Write i2c OK [22:42:13]MH_I2C_Read... [22:42:13]Read from MH i2c: 01 [22:42:13]MH_I2C_Read... [22:42:13]Read from MH i2c: 01 07 00 [22:42:13]MH_I2C_Read... [22:42:13]Read from MH i2c: 01 07 00 1D 18 00 00 00 00 00 FF 0F 4A [22:42:13]RasterBufferAndPrint [22:42:13]line Счет N : (1)673115 [22:42:13]line ИНН: 02508201610067 [22:42:13]line Контрольно-Кассовый Чек [22:42:13]line ПРОДАЖА [22:42:13]line ТРК (МРК, ГНК) : 42 [22:42:13]line Товар: 2710124130 [22:42:13]line Аи-92-К-5 [22:42:13]line 10.000 * 66.40 [22:42:13]line = 664.00 [22:42:13]line НДС 12% НСП 1% [22:42:13]line > о реализуемом товаре [22:42:13]line ИТОГО: 664.00 [22:42:13]line НСП 1% : 5.88 [22:42:13]line НДС 12% : 70.51 [22:42:13]line Наличными: 664.00 [22:42:13]line Безнал.: 0.00 [22:42:13]line Место: АЗС № 120 "Партнер Нефть" [22:42:13]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [22:42:13]line СНО: Общий режим [22:42:13]line Чек 240 19.06.2024 22:42 [22:42:13]line Смена: 353 ФФД: 1.0 [22:42:13]line ЗНМ: 0300000164 [22:42:13]line РНМ: 0000000000092785 [22:42:13]line Версия ККМ: 001 [22:42:13]line ФМ: 0000000000875093 [22:42:13]line ФД: 103810 [22:42:13]line ФПД: 246808272648031 [22:42:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T224213&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103810&fm=246808272648031&tin=02508201610067®Number=0000000000092785&sum=66400 [22:42:13]OFD Sender: Processing packet 103810 [packets to send 17, broken 16] [22:42:13]ProducePacketName [22:42:13]name=ofd_packets/00103810 [22:42:13]OFD Sender: To server: pG, [22:42:13]CommunicateWithHost lk.salyk.kg:30040 [22:42:13]ConnectInit lk.salyk.kg [22:42:13]written 0, free lines is 4095 [22:42:13]Connected sock=10 [22:42: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 39 33 0F 01 00 00 73 E3 07 01 59 F3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 60 03 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 03 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 1B 00 00 00 00 07 04 06 00 60 03 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F0 00 00 00 F4 03 04 00 C5 5E 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 82 95 01 00 35 04 06 00 E0 78 87 6B 37 5F F2 0A C7 79 0B B3 60 49 [22:42: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 39 33 4F 00 00 00 EC 15 47 00 C2 0A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 82 95 01 00 F4 03 04 00 4C 05 73 66 B6 04 01 00 00 54 4E D4 A5 96 EF BF 7A [22:42:13]CommunicateWithHost err = 0 [22:42:13]CheckOFDResponse [22:42:13]1017 (14) - 77093643461234 [22:42:13]1041 (16) - 0000000000875093 [22:42:13]1040 (4) - 103810 [22:42:13]1012 (4) - 19.06.2024 16:20 [22:42:13]1206 (1) - 0 [22:42:13]OFD Sender: Remove packet 103810 [22:42:13]ProducePacketName [22:42:13]name=ofd_packets/00103810 [22:42:13]NVStorageDeleteData [22:42:13]Write to MH i2c: 01 00 00 45 18 5D [22:42:13]Write i2c OK [22:42:13]MH_I2C_Read... [22:42:13]Read from MH i2c: 01 [22:42:13]MH_I2C_Read... [22:42:13]Read from MH i2c: 01 07 00 [22:42:13]MH_I2C_Read... [22:42:13]Read from MH i2c: 01 07 00 45 18 00 00 00 00 00 14 0D 85 [22:42:13]RasterBufferAndPrint [22:42:13]line [22:42:13]line [22:42:13]line [22:42:13]line [22:42:13]line [22:42:13]written 0, free lines is 3358 [22:42:13]MH_Cut [22:42:13]Write to MH i2c: D1 01 00 4C 18 01 36 [22:42:13]Write i2c OK [22:42:13]MH_I2C_Read... [22:42:13]Read from MH i2c: D1 [22:42:13]MH_I2C_Read... [22:42:13]Read from MH i2c: D1 01 00 [22:42:13]MH_I2C_Read... [22:42:13]Read from MH i2c: D1 01 00 4C 18 00 35 [22:42:13]Write to MH i2c: 01 00 00 4D 18 65 [22:42:13]Write i2c OK [22:42:13]MH_I2C_Read... [22:42:14]OFD Sender: No OFD packet to send [22:42:14]*** Cut start [22:42:14]*** Partial cut [22:42:14]*** CUTSNS_PIN = 1 [22:42:14]*** CUTSNS_PIN = 0 [22:42:14]*** Brake cut motor [22:42:15]Read from MH i2c: 01 [22:42:15]MH_I2C_Read... [22:42:15]*** Stop cut motor [22:42:15]*** Cut end [22:42:15]Read from MH i2c: 01 07 00 [22:42:15]MH_I2C_Read... [22:42:15]Read from MH i2c: 01 07 00 4D 18 00 00 00 00 00 FF 0F 7A [22:42:15]process_action close_receipt done [22:42:15]requested_data is exist [22:42:15]produce_requested_data [22:42:15]requested_item fm.sn is exist - process it [22:42:15]wFMCommunicate request_size=4 [22:42:15]MH_SAM_APDU [22:42:15]CAPDU: 80 11 00 00 [22:42:15]Write to MH i2c: E2 08 00 4E 18 80 11 00 00 00 00 00 00 E0 [22:42:15]Write i2c OK [22:42:15]MH_I2C_Read... [22:42:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:42:15]Read from MH i2c: E2 [22:42:15]MH_I2C_Read... [22:42:15]Read from MH i2c: E2 17 00 [22:42:15]MH_I2C_Read... [22:42:15]Read from MH i2c: E2 17 00 4E 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 33 [22:42:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [22:42:15]wFMCommunicate OK [22:42:15]requested_item fd.num is exist - process it [22:42:15]SAM_PROTO_GetFieldsCounters [22:42:15]wFMCommunicate request_size=4 [22:42:15]MH_SAM_APDU [22:42:15]CAPDU: 80 13 00 00 [22:42:15]Write to MH i2c: E2 08 00 4F 18 80 13 00 00 00 00 00 00 E3 [22:42:15]Write i2c OK [22:42:15]MH_I2C_Read... [22:42:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:42:15]Read from MH i2c: E2 [22:42:15]MH_I2C_Read... [22:42:15]Read from MH i2c: E2 62 00 [22:42:15]MH_I2C_Read... [22:42:15]Read from MH i2c: E2 62 00 4F 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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 82 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 F0 00 00 00 5E 04 04 00 F0 00 00 00 57 04 04 00 F1 00 00 00 19 04 04 00 00 00 00 00 90 00 54 [22:42: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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 82 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 F0 00 00 00 5E 04 04 00 F0 00 00 00 57 04 04 00 F1 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:42:15]wFMCommunicate OK [22:42:15]SAM_PROTO_GetFieldsCounters done [22:42:15]requested_item shift.num is exist - process it [22:42:15]requested_item shift.opened is exist - process it [22:42:15]req_shift_opened [22:42:15]FM_GetShiftState [22:42:15]SAM_PROTO_GetShiftState [22:42:15]wFMCommunicate request_size=4 [22:42:15]MH_SAM_APDU [22:42:15]CAPDU: 80 13 01 00 [22:42:15]Write to MH i2c: E2 08 00 50 18 80 13 01 00 00 00 00 00 E5 [22:42:15]Write i2c OK [22:42:15]MH_I2C_Read... [22:42:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:42:15]Read from MH i2c: E2 [22:42:15]MH_I2C_Read... [22:42:15]Read from MH i2c: E2 0E 00 [22:42:15]MH_I2C_Read... [22:42:15]Read from MH i2c: E2 0E 00 50 18 00 09 00 01 04 26 72 66 00 00 00 00 90 00 F3 [22:42:15]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [22:42:15]wFMCommunicate OK [22:42:15]SAM_PROTO_GetShiftState done [22:42:15]FM_GetShiftState done [22:42:15]req_shift_opened done [22:42:15]requested_item shift.open_date is exist - process it [22:42:15]req_shift_open_date [22:42:15]req_shift_open_date done [22:42:15]produce_requested_data done [22:42:15]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103810,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [22:42:15]process_action_free close_receipt [22:42:15]json_value_free [22:42:15]json_value_free done [22:42:15]process_json_proto returns [22:42:15]Send response to host [22:42:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103810,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [22:42:15]free response buf [22:42:15]execute_script done [22:42:15]execute_script returns [22:42:15]free content buf [22:42:15]Sock 9.Close socket [22:42:15]Sock 9.Thread stoped [22:42:17]accept exits with 8 [22:42:17]New connection [22:42:17]New thread 3066940772 created [22:42:17]Thread 3066797412 joined [22:42:17]Waiting for new connection... [22:42:17] Sock 8.Parse request [22:42:17]Sock 8.Check first char [22:42:17]Sock 8.First char is OK [22:42:17]request: POST /json_proto HTTP/1.0 [22:42:17]Method: POST [22:42:17]URL: /json_proto [22:42:17]Method is POST - this is cgi request [22:42:17]url: /json_proto [22:42:17]query_string will be loaded in cgi processing [22:42:17]execute_cgi json_proto POST (null) [22:42:17]execute_cgi path=json_proto method=POST [22:42:17]POST find Content-Length [22:42:17]Host: 172.17.38.133:8080 [22:42:17]Content-Length: 677 [22:42:17]Content-Type: application/json [22:42:17] [22:42:17]POST finish read [22:42:17]Found Content-Length = 677 [22:42:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673116", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:42:17]execute_script... [22:42:17]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673116", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:42:17]POST & json_proto [22:42:17]process_json_proto [22:42:17]json parsed OK: [22:42:17]protocol is kg_v1.0 [22:42:17]action value=close_receipt [22:42:17]process_action close_receipt [22:42:17]cmd_close_receipt [22:42:17]MH_GetDate [22:42:17]Write to MH i2c: F0 00 00 51 18 58 [22:42:17]Write i2c OK [22:42:17]MH_I2C_Read... [22:42:17]Read from MH i2c: F0 [22:42:17]MH_I2C_Read... [22:42:17]Read from MH i2c: F0 09 00 [22:42:17]MH_I2C_Read... [22:42:17]Read from MH i2c: F0 09 00 51 18 00 CA 5E 73 66 BD 8F 7C 64 8E [22:42:17]GetLastDocTimeStamp 1718836933 [22:42:17]current date 1718836938 [22:42:17]FM_GetShiftState [22:42:17]SAM_PROTO_GetShiftState [22:42:17]wFMCommunicate request_size=4 [22:42:17]MH_SAM_APDU [22:42:17]CAPDU: 80 13 01 00 [22:42:17]Write to MH i2c: E2 08 00 52 18 80 13 01 00 00 00 00 00 E7 [22:42:17]Write i2c OK [22:42:17]MH_I2C_Read... [22:42:17]Read from MH i2c: E2 [22:42:17]MH_I2C_Read... [22:42:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:42:17]Read from MH i2c: E2 0E 00 [22:42:17]MH_I2C_Read... [22:42:17]Read from MH i2c: E2 0E 00 52 18 00 09 00 01 04 26 72 66 00 00 00 00 90 00 F5 [22:42:17]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [22:42:17]wFMCommunicate OK [22:42:17]SAM_PROTO_GetShiftState done [22:42:17]FM_GetShiftState done [22:42:17]opened in 1718756868 [22:42:17]opened+sec_in_day 1718843268 [22:42:17]quantity*price = 50065 [22:42:17]sum+1 = 50067 [22:42:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.17 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 241 19.06.2024 22:42 Смена: 353 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103811 ФПД: 170623594136368 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T224218&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103811&fm=170623594136368&tin=02508201610067®Number=0000000000092785&sum=50000 [22:42:18]StoreToDocumentArchive [22:42:18]shift 353 fd 103811 [22:42:18]save to /storage/0353/doc_00103811 [22:42:18]save last doc name /storage/0353/doc_00103811 to /storage/kkm_last_doc_name [22:42:18]save OK [22:42:18]Clear old archive folders... [22:42:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:42:18]tlvbuf is 017303F0 [22:42:18]SAM_PROTO_ClearQueue [22:42:18]wFMCommunicate request_size=4 [22:42:18]MH_SAM_APDU [22:42:18]CAPDU: 80 09 00 00 [22:42:18]Write to MH i2c: E2 08 00 5F 18 80 09 00 00 00 00 00 00 E9 [22:42:18]Write i2c OK [22:42:18]MH_I2C_Read... [22:42:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:42:18]Read from MH i2c: E2 [22:42:18]MH_I2C_Read... [22:42:18]Read from MH i2c: E2 03 00 [22:42:18]MH_I2C_Read... [22:42:18]Read from MH i2c: E2 03 00 5F 18 00 90 00 EB [22:42:18]RAPDU: 90 00 [22:42:18]wFMCommunicate OK [22:42:18]SAM_PROTO_ClearQueue done [22:42:18]KKMCreateOFDPacket [22:42:18]OFDProtocolAddRootSTLVToBuf [22:42:18]FM_MakeSignedData [22:42:18]FM_MakeSignedData [22:42:18]SAM_PROTO_SignData [22:42:18]wFMCommunicate request_size=4 [22:42:18]MH_SAM_APDU [22:42:18]CAPDU: 80 0D 01 02 [22:42:18]Write to MH i2c: E2 08 00 60 18 80 0D 01 02 00 00 00 00 F1 [22:42:18]Write i2c OK [22:42:18]MH_I2C_Read... [22:42:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:42:18]Read from MH i2c: E2 [22:42:18]MH_I2C_Read... [22:42:18]Read from MH i2c: E2 03 00 [22:42:18]MH_I2C_Read... [22:42:18]Read from MH i2c: E2 03 00 60 18 00 90 00 EC [22:42:18]RAPDU: 90 00 [22:42:18]wFMCommunicate OK [22:42:18]wFMCommunicate request_size=255 [22:42:18]MH_SAM_APDU [22:42:18]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F1 00 00 00 F4 03 04 00 CA 5E 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 83 95 01 00 35 04 06 00 9B [22:42:18]Write to MH i2c: E2 02 01 61 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F1 00 00 00 F4 03 04 00 CA 5E 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 83 95 01 00 35 04 06 00 9B 00 00 B3 [22:42:18]Write i2c OK [22:42:18]MH_I2C_Read... [22:42:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:42:19]Read from MH i2c: E2 [22:42:19]MH_I2C_Read... [22:42:19]Read from MH i2c: E2 03 00 [22:42:19]MH_I2C_Read... [22:42:19]Read from MH i2c: E2 03 00 61 18 00 90 00 ED [22:42:19]RAPDU: 90 00 [22:42:19]wFMCommunicate OK [22:42:19]wFMCommunicate request_size=10 [22:42:19]MH_SAM_APDU [22:42:19]CAPDU: 80 0D 02 02 05 2E 66 B8 03 30 [22:42:19]Write to MH i2c: E2 0D 00 62 18 80 0D 02 02 05 00 2E 66 B8 03 30 00 00 7D [22:42:19]Write i2c OK [22:42:19]MH_I2C_Read... [22:42:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:42:19]Read from MH i2c: E2 [22:42:19]MH_I2C_Read... [22:42:19]Read from MH i2c: E2 03 00 [22:42:19]MH_I2C_Read... [22:42:19]Read from MH i2c: E2 03 00 62 18 00 90 00 EE [22:42:19]RAPDU: 90 00 [22:42:19]wFMCommunicate OK [22:42:19]wFMCommunicate request_size=4 [22:42:19]MH_SAM_APDU [22:42:19]CAPDU: 80 0D 03 02 [22:42:19]Write to MH i2c: E2 08 00 63 18 80 0D 03 02 00 00 00 00 F6 [22:42:19]Write i2c OK [22:42:19]MH_I2C_Read... [22:42:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:42:19]Read from MH i2c: E2 [22:42:19]MH_I2C_Read... [22:42:19]Read from MH i2c: E2 0B 00 [22:42:19]MH_I2C_Read... [22:42:19]Read from MH i2c: E2 0B 00 63 18 00 0B 6B 98 00 D7 59 83 B5 90 00 6D [22:42:19]RAPDU: 0B 6B 98 00 D7 59 83 B5 90 00 [22:42:19]wFMCommunicate OK [22:42:19]SAM_PROTO_SignData done [22:42:19]FM_MakeSignedData done [22:42:19]CreateOFDProtocolMessage [22:42:19]wFMCommunicate request_size=4 [22:42:19]MH_SAM_APDU [22:42:19]CAPDU: 80 11 00 00 [22:42:19]Write to MH i2c: E2 08 00 64 18 80 11 00 00 00 00 00 00 F6 [22:42:19]Write i2c OK [22:42:19]MH_I2C_Read... [22:42:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:42:19]Read from MH i2c: E2 [22:42:19]MH_I2C_Read... [22:42:19]Read from MH i2c: E2 17 00 [22:42:19]MH_I2C_Read... [22:42:19]Read from MH i2c: E2 17 00 64 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 49 [22:42:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [22:42:19]wFMCommunicate OK [22:42:19]CreateOFDProtocolMessage done [22:42:19]OFDSenderStorePacket 103811 [22:42:19]StoreOFDPacket docnum=103811 [22:42:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 6F F0 07 01 52 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F1 00 00 00 F4 03 04 00 CA 5E 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 83 95 01 00 35 04 06 00 9B 2E 66 B8 03 30 0B 6B 98 00 D7 59 83 B5 [22:42:19]CheckFolder [22:42:19]dirname=/storage/ofd_packets [22:42:19]CheckFolder done [22:42:19]ProducePacketName [22:42:19]name=ofd_packets/00103811 [22:42:19]NVStorageSaveData ofd_packets/00103811 [22:42:19]File name is /storage/ofd_packets/00103811 [22:42:19]Write 301 bytes [22:42:19]NVStorageSaveData done [22:42:19]OFDSenderStorePacket done [22:42:19]KKMCreateOFDPacket done [22:42:19]NVStorageSaveData kkm_last_timestamp [22:42:19]File name is /storage/kkm_last_timestamp [22:42:19]Write 4 bytes [22:42:19]NVStorageSaveData done [22:42:19]ExternCall_PrintAddStr [22:42:19]wPrintStart [22:42:19]Write to MH i2c: 01 00 00 65 18 7D [22:42:19]Write i2c OK [22:42:19]MH_I2C_Read... [22:42:19]Read from MH i2c: 01 [22:42:19]MH_I2C_Read... [22:42:19]Read from MH i2c: 01 07 00 [22:42:19]MH_I2C_Read... [22:42:19]Read from MH i2c: 01 07 00 65 18 00 00 00 00 00 FF 0F 92 [22:42:19]RasterBufferAndPrint [22:42:19]line Счет N : (1)673116 [22:42:19]line ИНН: 02508201610067 [22:42:19]line Контрольно-Кассовый Чек [22:42:19]line ПРОДАЖА [22:42:19]line ТРК (МРК, ГНК) : 32 [22:42:19]line Товар: 2710124130 [22:42:19]line Аи-92-К-5 [22:42:19]line 7.540 * 66.40 [22:42:19]line = 500.66 [22:42:19]line НДС 12% НСП 1% [22:42:19]line > о реализуемом товаре [22:42:19]line ОКРУГЛЕНИЕ: -0.66 [22:42:19]line ИТОГО: 500.00 [22:42:19]line Внесено: 500.00 [22:42:19]line СДАЧА: 0.00 [22:42:19]line НСП 1% : 4.43 [22:42:19]line НДС 12% : 53.17 [22:42:19]line Наличными: 500.00 [22:42:19]line Безнал.: 0.00 [22:42:19]line Место: АЗС № 120 "Партнер Нефть" [22:42:19]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [22:42:19]line СНО: Общий режим [22:42:19]line Чек 241 19.06.2024 22:42 [22:42:19]line Смена: 353 ФФД: 1.0 [22:42:19]line ЗНМ: 0300000164 [22:42:19]line РНМ: 0000000000092785 [22:42:19]line Версия ККМ: 001 [22:42:19]line ФМ: 0000000000875093 [22:42:19]line ФД: 103811 [22:42:19]line ФПД: 170623594136368 [22:42:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T224218&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103811&fm=170623594136368&tin=02508201610067®Number=0000000000092785&sum=50000 [22:42:19]written 0, free lines is 4095 [22:42:19]OFD Sender: Processing packet 103811 [packets to send 17, broken 16] [22:42:19]ProducePacketName [22:42:19]name=ofd_packets/00103811 [22:42:19]OFD Sender: To server: pG, [22:42:19]CommunicateWithHost lk.salyk.kg:30040 [22:42:19]ConnectInit lk.salyk.kg [22:42:19]Connected sock=10 [22:42:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 6F F0 07 01 52 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F1 00 00 00 F4 03 04 00 CA 5E 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 83 95 01 00 35 04 06 00 9B 2E 66 B8 03 30 0B 6B 98 00 D7 59 83 B5 [22:42:19]Write to MH i2c: 01 00 00 90 18 A8 [22:42:19]Write i2c OK [22:42:19]MH_I2C_Read... [22:42:19]Read from MH i2c: 01 [22:42:19]MH_I2C_Read... [22:42:19]Read from MH i2c: 01 07 00 [22:42:19]MH_I2C_Read... [22:42:19]Read from MH i2c: 01 07 00 90 18 00 00 00 00 00 E7 0C A2 [22:42:19]RasterBufferAndPrint [22:42:19]line [22:42:19]line [22:42:19]line [22:42:19]line [22:42:19]line [22:42:19]written 0, free lines is 3315 [22:42:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 A6 3F 47 00 97 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 39 33 10 04 04 00 83 95 01 00 F4 03 04 00 52 05 73 66 B6 04 01 00 00 D9 B8 F1 19 59 B5 28 95 [22:42:19]CommunicateWithHost err = 0 [22:42:19]CheckOFDResponse [22:42:19]1017 (14) - 77093643461234 [22:42:19]1041 (16) - 0000000000875093 [22:42:19]1040 (4) - 103811 [22:42:19]1012 (4) - 19.06.2024 16:20 [22:42:19]1206 (1) - 0 [22:42:19]OFD Sender: Remove packet 103811 [22:42:19]ProducePacketName [22:42:19]name=ofd_packets/00103811 [22:42:19]NVStorageDeleteData [22:42:19]MH_Cut [22:42:19]Write to MH i2c: D1 01 00 97 18 01 81 [22:42:19]Write i2c OK [22:42:19]MH_I2C_Read... [22:42:19]Read from MH i2c: D1 [22:42:19]MH_I2C_Read... [22:42:19]Read from MH i2c: D1 01 00 [22:42:19]MH_I2C_Read... [22:42:19]Read from MH i2c: D1 01 00 97 18 00 80 [22:42:19]Write to MH i2c: 01 00 00 98 18 B0 [22:42:19]Write i2c OK [22:42:19]MH_I2C_Read... [22:42:20]OFD Sender: No OFD packet to send [22:42:20]*** Cut start [22:42:20]*** Partial cut [22:42:20]*** CUTSNS_PIN = 1 [22:42:20]*** CUTSNS_PIN = 0 [22:42:20]*** Brake cut motor [22:42:21]Read from MH i2c: 01 [22:42:21]MH_I2C_Read... [22:42:21]*** Stop cut motor [22:42:21]*** Cut end [22:42:21]Read from MH i2c: 01 07 00 [22:42:21]MH_I2C_Read... [22:42:21]Read from MH i2c: 01 07 00 98 18 00 00 00 00 00 FF 0F C5 [22:42:21]process_action close_receipt done [22:42:21]requested_data is exist [22:42:21]produce_requested_data [22:42:21]requested_item fm.sn is exist - process it [22:42:21]wFMCommunicate request_size=4 [22:42:21]MH_SAM_APDU [22:42:21]CAPDU: 80 11 00 00 [22:42:21]Write to MH i2c: E2 08 00 99 18 80 11 00 00 00 00 00 00 2B [22:42:21]Write i2c OK [22:42:21]MH_I2C_Read... [22:42:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:42:21]Read from MH i2c: E2 [22:42:21]MH_I2C_Read... [22:42:21]Read from MH i2c: E2 17 00 [22:42:21]MH_I2C_Read... [22:42:21]Read from MH i2c: E2 17 00 99 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 7E [22:42:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [22:42:21]wFMCommunicate OK [22:42:21]requested_item fd.num is exist - process it [22:42:21]SAM_PROTO_GetFieldsCounters [22:42:21]wFMCommunicate request_size=4 [22:42:21]MH_SAM_APDU [22:42:21]CAPDU: 80 13 00 00 [22:42:21]Write to MH i2c: E2 08 00 9A 18 80 13 00 00 00 00 00 00 2E [22:42:21]Write i2c OK [22:42:21]MH_I2C_Read... [22:42:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:42:21]Read from MH i2c: E2 [22:42:21]MH_I2C_Read... [22:42:21]Read from MH i2c: E2 62 00 [22:42:21]MH_I2C_Read... [22:42:21]Read from MH i2c: E2 62 00 9A 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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 83 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 F1 00 00 00 5E 04 04 00 F1 00 00 00 57 04 04 00 F2 00 00 00 19 04 04 00 00 00 00 00 90 00 A3 [22:42:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 83 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 F1 00 00 00 5E 04 04 00 F1 00 00 00 57 04 04 00 F2 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:42:21]wFMCommunicate OK [22:42:21]SAM_PROTO_GetFieldsCounters done [22:42:21]requested_item shift.num is exist - process it [22:42:21]requested_item shift.opened is exist - process it [22:42:21]req_shift_opened [22:42:21]FM_GetShiftState [22:42:21]SAM_PROTO_GetShiftState [22:42:21]wFMCommunicate request_size=4 [22:42:21]MH_SAM_APDU [22:42:21]CAPDU: 80 13 01 00 [22:42:21]Write to MH i2c: E2 08 00 9B 18 80 13 01 00 00 00 00 00 30 [22:42:21]Write i2c OK [22:42:21]MH_I2C_Read... [22:42:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:42:21]Read from MH i2c: E2 [22:42:21]MH_I2C_Read... [22:42:21]Read from MH i2c: E2 0E 00 [22:42:21]MH_I2C_Read... [22:42:21]Read from MH i2c: E2 0E 00 9B 18 00 09 00 01 04 26 72 66 00 00 00 00 90 00 3E [22:42:21]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [22:42:21]wFMCommunicate OK [22:42:21]SAM_PROTO_GetShiftState done [22:42:21]FM_GetShiftState done [22:42:21]req_shift_opened done [22:42:21]requested_item shift.open_date is exist - process it [22:42:21]req_shift_open_date [22:42:21]req_shift_open_date done [22:42:21]produce_requested_data done [22:42:21]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103811,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [22:42:21]process_action_free close_receipt [22:42:21]json_value_free [22:42:21]json_value_free done [22:42:21]process_json_proto returns [22:42:21]Send response to host [22:42:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103811,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [22:42:21]free response buf [22:42:21]execute_script done [22:42:21]execute_script returns [22:42:21]free content buf [22:42:21]Sock 8.Close socket [22:42:21]Sock 8.Thread stoped [22:42:25]OFD Sender: No OFD packet to send [22:42:30]OFD Sender: No OFD packet to send [22:42:35]OFD Sender: No OFD packet to send [22:42:35]accept exits with 9 [22:42:35]New connection [22:42:35]New thread 3066797412 created [22:42:35]Thread 3066940772 joined [22:42:35]Waiting for new connection... [22:42:35] Sock 9.Parse request [22:42:35]Sock 9.Check first char [22:42:35]Sock 9.First char is OK [22:42:35]request: POST /json_proto HTTP/1.0 [22:42:35]Method: POST [22:42:35]URL: /json_proto [22:42:35]Method is POST - this is cgi request [22:42:35]url: /json_proto [22:42:35]query_string will be loaded in cgi processing [22:42:35]execute_cgi json_proto POST (null) [22:42:35]execute_cgi path=json_proto method=POST [22:42:35]POST find Content-Length [22:42:35]Host: 172.17.38.133:8080 [22:42:35]Content-Length: 1176 [22:42:35]Content-Type: application/json [22:42:35] [22:42:35]POST finish read [22:42:35]Found Content-Length = 1176 [22:42:35]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 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. \u000A\u0421\u0447\u0435\u0442 N : (1)673114\u000A19.06.2024 22:19\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-5\u000A 137.180 x 72.90\u000A\u0418\u0422\u041E\u0413: 10000.42\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30084240\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:42:35]execute_script... [22:42:35]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 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. \u000A\u0421\u0447\u0435\u0442 N : (1)673114\u000A19.06.2024 22:19\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-5\u000A 137.180 x 72.90\u000A\u0418\u0422\u041E\u0413: 10000.42\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30084240\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:42:35]POST & json_proto [22:42:35]process_json_proto [22:42:35]json parsed OK: [22:42:35]protocol is kg_v1.0 [22:42:35]action value=print_text [22:42:35]process_action print_text [22:42:35]cmd_print_text [22:42:35]ExternCall_PrintAddStr [22:42:35]wPrintStart [22:42:35]Write to MH i2c: 01 00 00 9C 18 B4 [22:42:35]Write i2c OK [22:42:35]MH_I2C_Read... [22:42:35]Read from MH i2c: 01 [22:42:35]MH_I2C_Read... [22:42:35]Read from MH i2c: 01 07 00 [22:42:35]MH_I2C_Read... [22:42:35]Read from MH i2c: 01 07 00 9C 18 00 00 00 00 00 FF 0F C9 [22:42:35]RasterBufferAndPrint [22:42:35]line *****ТОВАРНЫЙ ЧЕК***** [22:42:35]line АЗС 120 [22:42:35]line Партнер нефть [22:42:35]line 02508201610067 [22:42:35]line Кассир : Байбугуева Г. [22:42:35]line Счет N : (1)673114 [22:42:35]line 19.06.2024 22:19 [22:42:35]line ПРОДАЖА [22:42:35]line ТРК (МРК, ГНК): 11 [22:42:35]line Вид ГСМ : 2710194210 [22:42:35]line ДТ(л)-К-5 [22:42:35]line 137.180 x 72.90 [22:42:35]line ИТОГ: 10000.42 [22:42:35]line Тип оплаты: Талоны: ТК ГПНА Online [22:42:35]line 30084240 [22:42:35]line ______________________ [22:42:35]line (подпись) [22:42:35]written 0, free lines is 4095 [22:42:35]Write to MH i2c: 01 00 00 B0 18 C8 [22:42:35]Write i2c OK [22:42:35]MH_I2C_Read... [22:42:35]Read from MH i2c: 01 [22:42:35]MH_I2C_Read... [22:42:35]Read from MH i2c: 01 07 00 [22:42:35]MH_I2C_Read... [22:42:35]Read from MH i2c: 01 07 00 B0 18 00 00 00 00 00 12 0E EF [22:42:35]RasterBufferAndPrint [22:42:35]line [22:42:35]line [22:42:35]line [22:42:35]line [22:42:35]line [22:42:35]written 0, free lines is 3605 [22:42:35]MH_Cut [22:42:35]Write to MH i2c: D1 01 00 B7 18 01 A1 [22:42:35]Write i2c OK [22:42:35]MH_I2C_Read... [22:42:35]Read from MH i2c: D1 [22:42:35]MH_I2C_Read... [22:42:35]Read from MH i2c: D1 01 00 [22:42:35]MH_I2C_Read... [22:42:35]Read from MH i2c: D1 01 00 B7 18 00 A0 [22:42:35]Write to MH i2c: 01 00 00 B8 18 D0 [22:42:35]Write i2c OK [22:42:35]MH_I2C_Read... [22:42:36]*** Cut start [22:42:36]*** Partial cut [22:42:36]*** CUTSNS_PIN = 1 [22:42:36]*** CUTSNS_PIN = 0 [22:42:36]*** Brake cut motor [22:42:36]Read from MH i2c: 01 [22:42:36]MH_I2C_Read... [22:42:36]*** Stop cut motor [22:42:36]*** Cut end [22:42:36]Read from MH i2c: 01 07 00 [22:42:36]MH_I2C_Read... [22:42:36]Read from MH i2c: 01 07 00 B8 18 00 00 00 00 00 FF 0F E5 [22:42:36]process_action print_text done [22:42:36]requested_data is exist [22:42:36]produce_requested_data [22:42:36]requested_item fm.sn is exist - process it [22:42:36]wFMCommunicate request_size=4 [22:42:36]MH_SAM_APDU [22:42:36]CAPDU: 80 11 00 00 [22:42:36]Write to MH i2c: E2 08 00 B9 18 80 11 00 00 00 00 00 00 4B [22:42:36]Write i2c OK [22:42:36]MH_I2C_Read... [22:42:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:42:36]Read from MH i2c: E2 [22:42:36]MH_I2C_Read... [22:42:36]Read from MH i2c: E2 17 00 [22:42:36]MH_I2C_Read... [22:42:36]Read from MH i2c: E2 17 00 B9 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 9E [22:42:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [22:42:36]wFMCommunicate OK [22:42:36]requested_item fd.num is exist - process it [22:42:36]SAM_PROTO_GetFieldsCounters [22:42:36]wFMCommunicate request_size=4 [22:42:36]MH_SAM_APDU [22:42:36]CAPDU: 80 13 00 00 [22:42:36]Write to MH i2c: E2 08 00 BA 18 80 13 00 00 00 00 00 00 4E [22:42:36]Write i2c OK [22:42:36]MH_I2C_Read... [22:42:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:42:37]Read from MH i2c: E2 [22:42:37]MH_I2C_Read... [22:42:37]Read from MH i2c: E2 62 00 [22:42:37]MH_I2C_Read... [22:42:37]Read from MH i2c: E2 62 00 BA 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 83 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 F1 00 00 00 5E 04 04 00 F1 00 00 00 57 04 04 00 F2 00 00 00 19 04 04 00 00 00 00 00 90 00 C3 [22:42:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 83 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 F1 00 00 00 5E 04 04 00 F1 00 00 00 57 04 04 00 F2 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:42:37]wFMCommunicate OK [22:42:37]SAM_PROTO_GetFieldsCounters done [22:42:37]requested_item shift.num is exist - process it [22:42:37]requested_item shift.opened is exist - process it [22:42:37]req_shift_opened [22:42:37]FM_GetShiftState [22:42:37]SAM_PROTO_GetShiftState [22:42:37]wFMCommunicate request_size=4 [22:42:37]MH_SAM_APDU [22:42:37]CAPDU: 80 13 01 00 [22:42:37]Write to MH i2c: E2 08 00 BB 18 80 13 01 00 00 00 00 00 50 [22:42:37]Write i2c OK [22:42:37]MH_I2C_Read... [22:42:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:42:37]Read from MH i2c: E2 [22:42:37]MH_I2C_Read... [22:42:37]Read from MH i2c: E2 0E 00 [22:42:37]MH_I2C_Read... [22:42:37]Read from MH i2c: E2 0E 00 BB 18 00 09 00 01 04 26 72 66 00 00 00 00 90 00 5E [22:42:37]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [22:42:37]wFMCommunicate OK [22:42:37]SAM_PROTO_GetShiftState done [22:42:37]FM_GetShiftState done [22:42:37]req_shift_opened done [22:42:37]requested_item shift.open_date is exist - process it [22:42:37]req_shift_open_date [22:42:37]req_shift_open_date done [22:42:37]produce_requested_data done [22:42:37]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103811,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [22:42:37]process_action_free print_text [22:42:37]json_value_free [22:42:37]json_value_free done [22:42:37]process_json_proto returns [22:42:37]Send response to host [22:42:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103811,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [22:42:37]free response buf [22:42:37]execute_script done [22:42:37]execute_script returns [22:42:37]free content buf [22:42:37]Sock 9.Close socket [22:42:37]Sock 9.Thread stoped [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:27]accept exits with 8 [22:43:27]New connection [22:43:27]New thread 3066940772 created [22:43:27]Thread 3066797412 joined [22:43:27]Waiting for new connection... [22:43:27] Sock 8.Parse request [22:43:27]Sock 8.Check first char [22:43:27]Sock 8.First char is OK [22:43:27]request: POST /json_proto HTTP/1.0 [22:43:27]Method: POST [22:43:27]URL: /json_proto [22:43:27]Method is POST - this is cgi request [22:43:27]url: /json_proto [22:43:27]query_string will be loaded in cgi processing [22:43:27]execute_cgi json_proto POST (null) [22:43:27]execute_cgi path=json_proto method=POST [22:43:27]POST find Content-Length [22:43:27]Host: 172.17.38.133:8080 [22:43:27]Content-Length: 1176 [22:43:27]Content-Type: application/json [22:43:27] [22:43:27]POST finish read [22:43:27]Found Content-Length = 1176 [22:43:27]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 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. \u000A\u0421\u0447\u0435\u0442 N : (1)673113\u000A19.06.2024 22:20\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 21\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-5\u000A 199.710 x 72.90\u000A\u0418\u0422\u041E\u0413: 14558.86\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30084240\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:43:27]execute_script... [22:43:27]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 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. \u000A\u0421\u0447\u0435\u0442 N : (1)673113\u000A19.06.2024 22:20\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 21\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-5\u000A 199.710 x 72.90\u000A\u0418\u0422\u041E\u0413: 14558.86\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30084240\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:43:27]POST & json_proto [22:43:27]process_json_proto [22:43:27]json parsed OK: [22:43:27]protocol is kg_v1.0 [22:43:27]action value=print_text [22:43:27]process_action print_text [22:43:27]cmd_print_text [22:43:27]ExternCall_PrintAddStr [22:43:27]wPrintStart [22:43:27]Write to MH i2c: 01 00 00 BC 18 D4 [22:43:27]Write i2c OK [22:43:27]MH_I2C_Read... [22:43:27]Read from MH i2c: 01 [22:43:27]MH_I2C_Read... [22:43:27]Read from MH i2c: 01 07 00 [22:43:27]MH_I2C_Read... [22:43:27]Read from MH i2c: 01 07 00 BC 18 00 00 00 00 00 FF 0F E9 [22:43:27]RasterBufferAndPrint [22:43:27]line *****ТОВАРНЫЙ ЧЕК***** [22:43:27]line АЗС 120 [22:43:27]line Партнер нефть [22:43:27]line 02508201610067 [22:43:27]line Кассир : Байбугуева Г. [22:43:27]line Счет N : (1)673113 [22:43:27]line 19.06.2024 22:20 [22:43:27]line ПРОДАЖА [22:43:27]line ТРК (МРК, ГНК): 21 [22:43:27]line Вид ГСМ : 2710194210 [22:43:27]line ДТ(л)-К-5 [22:43:27]line 199.710 x 72.90 [22:43:27]line ИТОГ: 14558.86 [22:43:27]line Тип оплаты: Талоны: ТК ГПНА Online [22:43:27]line 30084240 [22:43:27]line ______________________ [22:43:27]line (подпись) [22:43:27]written 0, free lines is 4095 [22:43:27]Write to MH i2c: 01 00 00 D0 18 E8 [22:43:27]Write i2c OK [22:43:27]MH_I2C_Read... [22:43:27]Read from MH i2c: 01 [22:43:27]MH_I2C_Read... [22:43:27]Read from MH i2c: 01 07 00 [22:43:27]MH_I2C_Read... [22:43:27]Read from MH i2c: 01 07 00 D0 18 00 00 00 00 00 13 0E 10 [22:43:27]RasterBufferAndPrint [22:43:27]line [22:43:27]line [22:43:27]line [22:43:27]line [22:43:27]line [22:43:27]written 0, free lines is 3604 [22:43:27]MH_Cut [22:43:27]Write to MH i2c: D1 01 00 D7 18 01 C1 [22:43:27]Write i2c OK [22:43:27]MH_I2C_Read... [22:43:27]Read from MH i2c: D1 [22:43:27]MH_I2C_Read... [22:43:27]Read from MH i2c: D1 01 00 [22:43:27]MH_I2C_Read... [22:43:27]Read from MH i2c: D1 01 00 D7 18 00 C0 [22:43:27]Write to MH i2c: 01 00 00 D8 18 F0 [22:43:27]Write i2c OK [22:43:27]MH_I2C_Read... [22:43:27]*** Cut start [22:43:27]*** Partial cut [22:43:27]*** CUTSNS_PIN = 1 [22:43:28]*** CUTSNS_PIN = 0 [22:43:28]*** Brake cut motor [22:43:28]Read from MH i2c: 01 [22:43:28]MH_I2C_Read... [22:43:28]*** Stop cut motor [22:43:28]*** Cut end [22:43:28]Read from MH i2c: 01 07 00 [22:43:28]MH_I2C_Read... [22:43:28]Read from MH i2c: 01 07 00 D8 18 00 00 00 00 00 FF 0F 05 [22:43:28]process_action print_text done [22:43:28]requested_data is exist [22:43:28]produce_requested_data [22:43:28]requested_item fm.sn is exist - process it [22:43:28]wFMCommunicate request_size=4 [22:43:28]MH_SAM_APDU [22:43:28]CAPDU: 80 11 00 00 [22:43:28]Write to MH i2c: E2 08 00 D9 18 80 11 00 00 00 00 00 00 6B [22:43:28]Write i2c OK [22:43:28]MH_I2C_Read... [22:43:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:43:28]Read from MH i2c: E2 [22:43:28]MH_I2C_Read... [22:43:28]Read from MH i2c: E2 17 00 [22:43:28]MH_I2C_Read... [22:43:28]Read from MH i2c: E2 17 00 D9 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 BE [22:43:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [22:43:28]wFMCommunicate OK [22:43:28]requested_item fd.num is exist - process it [22:43:28]SAM_PROTO_GetFieldsCounters [22:43:28]wFMCommunicate request_size=4 [22:43:28]MH_SAM_APDU [22:43:28]CAPDU: 80 13 00 00 [22:43:28]Write to MH i2c: E2 08 00 DA 18 80 13 00 00 00 00 00 00 6E [22:43:28]Write i2c OK [22:43:28]MH_I2C_Read... [22:43:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:43:28]Read from MH i2c: E2 [22:43:28]MH_I2C_Read... [22:43:28]Read from MH i2c: E2 62 00 [22:43:28]MH_I2C_Read... [22:43:28]Read from MH i2c: E2 62 00 DA 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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 83 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 F1 00 00 00 5E 04 04 00 F1 00 00 00 57 04 04 00 F2 00 00 00 19 04 04 00 00 00 00 00 90 00 E3 [22:43:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 83 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 F1 00 00 00 5E 04 04 00 F1 00 00 00 57 04 04 00 F2 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:43:28]wFMCommunicate OK [22:43:28]SAM_PROTO_GetFieldsCounters done [22:43:28]requested_item shift.num is exist - process it [22:43:28]requested_item shift.opened is exist - process it [22:43:28]req_shift_opened [22:43:28]FM_GetShiftState [22:43:28]SAM_PROTO_GetShiftState [22:43:28]wFMCommunicate request_size=4 [22:43:28]MH_SAM_APDU [22:43:28]CAPDU: 80 13 01 00 [22:43:28]Write to MH i2c: E2 08 00 DB 18 80 13 01 00 00 00 00 00 70 [22:43:28]Write i2c OK [22:43:28]MH_I2C_Read... [22:43:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:43:28]Read from MH i2c: E2 [22:43:28]MH_I2C_Read... [22:43:28]Read from MH i2c: E2 0E 00 [22:43:28]MH_I2C_Read... [22:43:28]Read from MH i2c: E2 0E 00 DB 18 00 09 00 01 04 26 72 66 00 00 00 00 90 00 7E [22:43:28]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [22:43:28]wFMCommunicate OK [22:43:28]SAM_PROTO_GetShiftState done [22:43:28]FM_GetShiftState done [22:43:28]req_shift_opened done [22:43:28]requested_item shift.open_date is exist - process it [22:43:28]req_shift_open_date [22:43:28]req_shift_open_date done [22:43:28]produce_requested_data done [22:43:28]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103811,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [22:43:28]process_action_free print_text [22:43:28]json_value_free [22:43:28]json_value_free done [22:43:28]process_json_proto returns [22:43:28]Send response to host [22:43:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103811,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [22:43:28]free response buf [22:43:28]execute_script done [22:43:28]execute_script returns [22:43:28]free content buf [22:43:28]Sock 8.Close socket [22:43:28]Sock 8.Thread stoped [22:43:30]OFD Sender: No OFD packet to send [22:43:35]OFD Sender: No OFD packet to send [22:43:40]OFD Sender: No OFD packet to send [22:43:45]OFD Sender: No OFD packet to send [22:43:50]OFD Sender: No OFD packet to send [22:43:55]OFD Sender: No OFD packet to send [22:44:00]OFD Sender: No OFD packet to send [22:44:05]OFD Sender: No OFD packet to send [22:44:10]OFD Sender: No OFD packet to send [22:44:15]OFD Sender: No OFD packet to send [22:44:20]OFD Sender: No OFD packet to send [22:44:25]OFD Sender: No OFD packet to send [22:44:30]OFD Sender: No OFD packet to send [22:44:35]OFD Sender: No OFD packet to send [22:44:40]OFD Sender: No OFD packet to send [22:44:45]OFD Sender: No OFD packet to send [22:44:50]OFD Sender: No OFD packet to send [22:44:55]OFD Sender: No OFD packet to send [22:45:00]OFD Sender: No OFD packet to send [22:45:05]OFD Sender: No OFD packet to send [22:45:10]OFD Sender: No OFD packet to send [22:45:15]OFD Sender: No OFD packet to send [22:45:20]OFD Sender: No OFD packet to send [22:45:25]OFD Sender: No OFD packet to send [22:45:30]OFD Sender: No OFD packet to send [22:45:35]OFD Sender: No OFD packet to send [22:45:40]OFD Sender: No OFD packet to send [22:45:45]OFD Sender: No OFD packet to send [22:45:50]OFD Sender: No OFD packet to send [22:45:55]OFD Sender: No OFD packet to send [22:46:00]OFD Sender: No OFD packet to send [22:46:05]OFD Sender: No OFD packet to send [22:46:10]OFD Sender: No OFD packet to send [22:46:15]OFD Sender: No OFD packet to send [22:46:20]OFD Sender: No OFD packet to send [22:46:25]OFD Sender: No OFD packet to send [22:46:30]OFD Sender: No OFD packet to send [22:46:35]OFD Sender: No OFD packet to send [22:46:40]OFD Sender: No OFD packet to send [22:46:45]OFD Sender: No OFD packet to send [22:46:50]OFD Sender: No OFD packet to send [22:46:55]OFD Sender: No OFD packet to send [22:47:00]OFD Sender: No OFD packet to send [22:47:05]OFD Sender: No OFD packet to send [22:47:10]OFD Sender: No OFD packet to send [22:47:15]OFD Sender: No OFD packet to send [22:47:20]OFD Sender: No OFD packet to send [22:47:25]OFD Sender: No OFD packet to send [22:47:30]OFD Sender: No OFD packet to send [22:47:35]OFD Sender: No OFD packet to send [22:47:40]OFD Sender: No OFD packet to send [22:47:45]OFD Sender: No OFD packet to send [22:47:50]OFD Sender: No OFD packet to send [22:47:55]OFD Sender: No OFD packet to send [22:48:00]OFD Sender: No OFD packet to send [22:48:05]OFD Sender: No OFD packet to send [22:48:10]OFD Sender: No OFD packet to send [22:48:13]accept exits with 9 [22:48:13]New connection [22:48:13]New thread 3066797412 created [22:48:13]Thread 3066940772 joined [22:48:13]Waiting for new connection... [22:48:13] Sock 9.Parse request [22:48:13]Sock 9.Check first char [22:48:13]Sock 9.First char is OK [22:48:13]request: POST /json_proto HTTP/1.0 [22:48:13]Method: POST [22:48:13]URL: /json_proto [22:48:13]Method is POST - this is cgi request [22:48:13]url: /json_proto [22:48:13]query_string will be loaded in cgi processing [22:48:13]execute_cgi json_proto POST (null) [22:48:13]execute_cgi path=json_proto method=POST [22:48:13]POST find Content-Length [22:48:13]Host: 172.17.38.133:8080 [22:48:13]Content-Length: 1168 [22:48:13]Content-Type: application/json [22:48:13] [22:48:13]POST finish read [22:48:13]Found Content-Length = 1168 [22:48:13]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 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. \u000A\u0421\u0447\u0435\u0442 N : (1)673118\u000A19.06.2024 22:25\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 42\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 15.000 x 66.40\u000A\u0418\u0422\u041E\u0413: 996.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30076980\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:48:13]execute_script... [22:48:13]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 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. \u000A\u0421\u0447\u0435\u0442 N : (1)673118\u000A19.06.2024 22:25\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 42\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 15.000 x 66.40\u000A\u0418\u0422\u041E\u0413: 996.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30076980\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:48:13]POST & json_proto [22:48:13]process_json_proto [22:48:13]json parsed OK: [22:48:13]protocol is kg_v1.0 [22:48:13]action value=print_text [22:48:13]process_action print_text [22:48:13]cmd_print_text [22:48:13]ExternCall_PrintAddStr [22:48:13]wPrintStart [22:48:13]Write to MH i2c: 01 00 00 DC 18 F4 [22:48:13]Write i2c OK [22:48:13]MH_I2C_Read... [22:48:13]Read from MH i2c: 01 [22:48:13]MH_I2C_Read... [22:48:13]Read from MH i2c: 01 07 00 [22:48:13]MH_I2C_Read... [22:48:13]Read from MH i2c: 01 07 00 DC 18 00 00 00 00 00 FF 0F 09 [22:48:13]RasterBufferAndPrint [22:48:13]line *****ТОВАРНЫЙ ЧЕК***** [22:48:13]line АЗС 120 [22:48:13]line Партнер нефть [22:48:13]line 02508201610067 [22:48:13]line Кассир : Байбугуева Г. [22:48:13]line Счет N : (1)673118 [22:48:13]line 19.06.2024 22:25 [22:48:13]line ПРОДАЖА [22:48:13]line ТРК (МРК, ГНК): 42 [22:48:13]line Вид ГСМ : 2710124130 [22:48:13]line Аи-92-К-5 [22:48:13]line 15.000 x 66.40 [22:48:13]line ИТОГ: 996.00 [22:48:13]line Тип оплаты: Талоны: ТК ГПНА Online [22:48:13]line 30076980 [22:48:13]line ______________________ [22:48:13]line (подпись) [22:48:13]written 0, free lines is 4095 [22:48:13]Write to MH i2c: 01 00 00 F0 18 08 [22:48:13]Write i2c OK [22:48:13]MH_I2C_Read... [22:48:13]Read from MH i2c: 01 [22:48:13]MH_I2C_Read... [22:48:13]Read from MH i2c: 01 07 00 [22:48:13]MH_I2C_Read... [22:48:13]Read from MH i2c: 01 07 00 F0 18 00 00 00 00 00 12 0E 2F [22:48:13]RasterBufferAndPrint [22:48:13]line [22:48:13]line [22:48:13]line [22:48:13]line [22:48:13]line [22:48:13]written 0, free lines is 3604 [22:48:13]MH_Cut [22:48:13]Write to MH i2c: D1 01 00 F7 18 01 E1 [22:48:13]Write i2c OK [22:48:13]MH_I2C_Read... [22:48:13]Read from MH i2c: D1 [22:48:13]MH_I2C_Read... [22:48:13]Read from MH i2c: D1 01 00 [22:48:13]MH_I2C_Read... [22:48:13]Read from MH i2c: D1 01 00 F7 18 00 E0 [22:48:13]Write to MH i2c: 01 00 00 F8 18 10 [22:48:13]Write i2c OK [22:48:13]MH_I2C_Read... [22:48:14]*** Cut start [22:48:14]*** Partial cut [22:48:14]*** CUTSNS_PIN = 1 [22:48:14]*** CUTSNS_PIN = 0 [22:48:14]*** Brake cut motor [22:48:14]Read from MH i2c: 01 [22:48:14]MH_I2C_Read... [22:48:14]Read from MH i2c: 01 07 00 [22:48:14]MH_I2C_Read... [22:48:14]*** Stop cut motor [22:48:14]*** Cut end [22:48:14]Read from MH i2c: 01 07 00 F8 18 00 00 00 00 00 FF 0F 25 [22:48:14]process_action print_text done [22:48:14]requested_data is exist [22:48:14]produce_requested_data [22:48:14]requested_item fm.sn is exist - process it [22:48:14]wFMCommunicate request_size=4 [22:48:14]MH_SAM_APDU [22:48:14]CAPDU: 80 11 00 00 [22:48:14]Write to MH i2c: E2 08 00 F9 18 80 11 00 00 00 00 00 00 8B [22:48:14]Write i2c OK [22:48:14]MH_I2C_Read... [22:48:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:48:14]Read from MH i2c: E2 [22:48:14]MH_I2C_Read... [22:48:14]Read from MH i2c: E2 17 00 [22:48:14]MH_I2C_Read... [22:48:14]Read from MH i2c: E2 17 00 F9 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 DE [22:48:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [22:48:14]wFMCommunicate OK [22:48:14]requested_item fd.num is exist - process it [22:48:14]SAM_PROTO_GetFieldsCounters [22:48:14]wFMCommunicate request_size=4 [22:48:14]MH_SAM_APDU [22:48:14]CAPDU: 80 13 00 00 [22:48:14]Write to MH i2c: E2 08 00 FA 18 80 13 00 00 00 00 00 00 8E [22:48:14]Write i2c OK [22:48:14]MH_I2C_Read... [22:48:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:48:14]Read from MH i2c: E2 [22:48:14]MH_I2C_Read... [22:48:14]Read from MH i2c: E2 62 00 [22:48:14]MH_I2C_Read... [22:48:14]Read from MH i2c: E2 62 00 FA 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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 83 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 F1 00 00 00 5E 04 04 00 F1 00 00 00 57 04 04 00 F2 00 00 00 19 04 04 00 00 00 00 00 90 00 03 [22:48: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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 83 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 F1 00 00 00 5E 04 04 00 F1 00 00 00 57 04 04 00 F2 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:48:14]wFMCommunicate OK [22:48:14]SAM_PROTO_GetFieldsCounters done [22:48:14]requested_item shift.num is exist - process it [22:48:14]requested_item shift.opened is exist - process it [22:48:14]req_shift_opened [22:48:14]FM_GetShiftState [22:48:14]SAM_PROTO_GetShiftState [22:48:14]wFMCommunicate request_size=4 [22:48:14]MH_SAM_APDU [22:48:14]CAPDU: 80 13 01 00 [22:48:14]Write to MH i2c: E2 08 00 FB 18 80 13 01 00 00 00 00 00 90 [22:48:14]Write i2c OK [22:48:14]MH_I2C_Read... [22:48:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:48:14]Read from MH i2c: E2 [22:48:14]MH_I2C_Read... [22:48:14]Read from MH i2c: E2 0E 00 [22:48:14]MH_I2C_Read... [22:48:14]Read from MH i2c: E2 0E 00 FB 18 00 09 00 01 04 26 72 66 00 00 00 00 90 00 9E [22:48:14]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [22:48:14]wFMCommunicate OK [22:48:14]SAM_PROTO_GetShiftState done [22:48:14]FM_GetShiftState done [22:48:14]req_shift_opened done [22:48:14]requested_item shift.open_date is exist - process it [22:48:14]req_shift_open_date [22:48:14]req_shift_open_date done [22:48:14]produce_requested_data done [22:48:14]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103811,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [22:48:14]process_action_free print_text [22:48:14]json_value_free [22:48:14]json_value_free done [22:48:14]process_json_proto returns [22:48:14]Send response to host [22:48:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103811,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [22:48:14]free response buf [22:48:14]execute_script done [22:48:14]execute_script returns [22:48:14]free content buf [22:48:14]Sock 9.Close socket [22:48:14]Sock 9.Thread stoped [22:48:15]OFD Sender: No OFD packet to send [22:48:20]OFD Sender: No OFD packet to send [22:48:25]OFD Sender: No OFD packet to send [22:48:30]OFD Sender: No OFD packet to send [22:48:35]OFD Sender: No OFD packet to send [22:48:40]OFD Sender: No OFD packet to send [22:48:45]OFD Sender: No OFD packet to send [22:48:50]OFD Sender: No OFD packet to send [22:48:55]OFD Sender: No OFD packet to send [22:49:00]OFD Sender: No OFD packet to send [22:49:05]OFD Sender: No OFD packet to send [22:49:10]OFD Sender: No OFD packet to send [22:49:15]OFD Sender: No OFD packet to send [22:49:20]OFD Sender: No OFD packet to send [22:49:25]OFD Sender: No OFD packet to send [22:49:30]OFD Sender: No OFD packet to send [22:49:35]OFD Sender: No OFD packet to send [22:49:40]OFD Sender: No OFD packet to send [22:49:45]OFD Sender: No OFD packet to send [22:49:50]OFD Sender: No OFD packet to send [22:49:55]OFD Sender: No OFD packet to send [22:50:00]OFD Sender: No OFD packet to send [22:50:05]OFD Sender: No OFD packet to send [22:50:10]OFD Sender: No OFD packet to send [22:50:13]accept exits with 10 [22:50:13]New connection [22:50:13]New thread 3066940772 created [22:50:13]Thread 3066797412 joined [22:50:13]Waiting for new connection... [22:50:13] Sock 10.Parse request [22:50:13]Sock 10.Check first char [22:50:13]Sock 10.First char is OK [22:50:13]request: POST /json_proto HTTP/1.0 [22:50:13]Method: POST [22:50:13]URL: /json_proto [22:50:13]Method is POST - this is cgi request [22:50:13]url: /json_proto [22:50:13]query_string will be loaded in cgi processing [22:50:13]execute_cgi json_proto POST (null) [22:50:13]execute_cgi path=json_proto method=POST [22:50:13]POST find Content-Length [22:50:13]Host: 172.17.38.133:8080 [22:50:13]Content-Length: 1175 [22:50:13]Content-Type: application/json [22:50:13] [22:50:13]POST finish read [22:50:13]Found Content-Length = 1175 [22:50:13]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 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. \u000A\u0421\u0447\u0435\u0442 N : (1)673117\u000A19.06.2024 22:27\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 21\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-5\u000A 100.290 x 72.90\u000A\u0418\u0422\u041E\u0413: 7311.14\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30084240\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:50:13]execute_script... [22:50:13]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 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. \u000A\u0421\u0447\u0435\u0442 N : (1)673117\u000A19.06.2024 22:27\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 21\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-5\u000A 100.290 x 72.90\u000A\u0418\u0422\u041E\u0413: 7311.14\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30084240\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:50:13]POST & json_proto [22:50:13]process_json_proto [22:50:13]json parsed OK: [22:50:13]protocol is kg_v1.0 [22:50:13]action value=print_text [22:50:13]process_action print_text [22:50:13]cmd_print_text [22:50:13]ExternCall_PrintAddStr [22:50:13]wPrintStart [22:50:13]Write to MH i2c: 01 00 00 FC 18 14 [22:50:13]Write i2c OK [22:50:13]MH_I2C_Read... [22:50:13]Read from MH i2c: 01 [22:50:13]MH_I2C_Read... [22:50:13]Read from MH i2c: 01 07 00 [22:50:13]MH_I2C_Read... [22:50:13]Read from MH i2c: 01 07 00 FC 18 00 00 00 00 00 FF 0F 29 [22:50:13]RasterBufferAndPrint [22:50:13]line *****ТОВАРНЫЙ ЧЕК***** [22:50:13]line АЗС 120 [22:50:13]line Партнер нефть [22:50:13]line 02508201610067 [22:50:13]line Кассир : Байбугуева Г. [22:50:13]line Счет N : (1)673117 [22:50:13]line 19.06.2024 22:27 [22:50:13]line ПРОДАЖА [22:50:13]line ТРК (МРК, ГНК): 21 [22:50:13]line Вид ГСМ : 2710194210 [22:50:13]line ДТ(л)-К-5 [22:50:13]line 100.290 x 72.90 [22:50:13]line ИТОГ: 7311.14 [22:50:13]line Тип оплаты: Талоны: ТК ГПНА Online [22:50:13]line 30084240 [22:50:13]line ______________________ [22:50:13]line (подпись) [22:50:13]written 0, free lines is 4095 [22:50:13]Write to MH i2c: 01 00 00 10 19 29 [22:50:13]Write i2c OK [22:50:13]MH_I2C_Read... [22:50:13]Read from MH i2c: 01 [22:50:13]MH_I2C_Read... [22:50:13]Read from MH i2c: 01 07 00 [22:50:13]MH_I2C_Read... [22:50:13]Read from MH i2c: 01 07 00 10 19 00 00 00 00 00 11 0E 4F [22:50:13]RasterBufferAndPrint [22:50:13]line [22:50:13]line [22:50:13]line [22:50:13]line [22:50:13]line [22:50:13]written 0, free lines is 3603 [22:50:13]MH_Cut [22:50:13]Write to MH i2c: D1 01 00 17 19 01 02 [22:50:13]Write i2c OK [22:50:13]MH_I2C_Read... [22:50:13]Read from MH i2c: D1 [22:50:13]MH_I2C_Read... [22:50:13]Read from MH i2c: D1 01 00 [22:50:13]MH_I2C_Read... [22:50:13]Read from MH i2c: D1 01 00 17 19 00 01 [22:50:13]Write to MH i2c: 01 00 00 18 19 31 [22:50:13]Write i2c OK [22:50:13]MH_I2C_Read... [22:50:14]*** Cut start [22:50:14]*** Partial cut [22:50:14]*** CUTSNS_PIN = 1 [22:50:14]*** CUTSNS_PIN = 0 [22:50:14]*** Brake cut motor [22:50:14]Read from MH i2c: 01 [22:50:14]MH_I2C_Read... [22:50:14]*** Stop cut motor [22:50:14]*** Cut end [22:50:14]Read from MH i2c: 01 07 00 [22:50:14]MH_I2C_Read... [22:50:14]Read from MH i2c: 01 07 00 18 19 00 00 00 00 00 FF 0F 46 [22:50:14]process_action print_text done [22:50:14]requested_data is exist [22:50:14]produce_requested_data [22:50:14]requested_item fm.sn is exist - process it [22:50:14]wFMCommunicate request_size=4 [22:50:14]MH_SAM_APDU [22:50:14]CAPDU: 80 11 00 00 [22:50:14]Write to MH i2c: E2 08 00 19 19 80 11 00 00 00 00 00 00 AC [22:50:14]Write i2c OK [22:50:14]MH_I2C_Read... [22:50:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:50:14]Read from MH i2c: E2 [22:50:14]MH_I2C_Read... [22:50:14]Read from MH i2c: E2 17 00 [22:50:14]MH_I2C_Read... [22:50:14]Read from MH i2c: E2 17 00 19 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 FF [22:50:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [22:50:14]wFMCommunicate OK [22:50:14]requested_item fd.num is exist - process it [22:50:14]SAM_PROTO_GetFieldsCounters [22:50:14]wFMCommunicate request_size=4 [22:50:14]MH_SAM_APDU [22:50:14]CAPDU: 80 13 00 00 [22:50:14]Write to MH i2c: E2 08 00 1A 19 80 13 00 00 00 00 00 00 AF [22:50:14]Write i2c OK [22:50:14]MH_I2C_Read... [22:50:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:50:15]Read from MH i2c: E2 [22:50:15]MH_I2C_Read... [22:50:15]Read from MH i2c: E2 62 00 [22:50:15]MH_I2C_Read... [22:50:15]Read from MH i2c: E2 62 00 1A 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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 83 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 F1 00 00 00 5E 04 04 00 F1 00 00 00 57 04 04 00 F2 00 00 00 19 04 04 00 00 00 00 00 90 00 24 [22:50: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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 83 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 F1 00 00 00 5E 04 04 00 F1 00 00 00 57 04 04 00 F2 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:50:15]wFMCommunicate OK [22:50:15]SAM_PROTO_GetFieldsCounters done [22:50:15]requested_item shift.num is exist - process it [22:50:15]requested_item shift.opened is exist - process it [22:50:15]req_shift_opened [22:50:15]FM_GetShiftState [22:50:15]SAM_PROTO_GetShiftState [22:50:15]wFMCommunicate request_size=4 [22:50:15]MH_SAM_APDU [22:50:15]CAPDU: 80 13 01 00 [22:50:15]Write to MH i2c: E2 08 00 1B 19 80 13 01 00 00 00 00 00 B1 [22:50:15]Write i2c OK [22:50:15]MH_I2C_Read... [22:50:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:50:15]Read from MH i2c: E2 [22:50:15]MH_I2C_Read... [22:50:15]Read from MH i2c: E2 0E 00 [22:50:15]MH_I2C_Read... [22:50:15]Read from MH i2c: E2 0E 00 1B 19 00 09 00 01 04 26 72 66 00 00 00 00 90 00 BF [22:50:15]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [22:50:15]wFMCommunicate OK [22:50:15]SAM_PROTO_GetShiftState done [22:50:15]FM_GetShiftState done [22:50:15]req_shift_opened done [22:50:15]requested_item shift.open_date is exist - process it [22:50:15]req_shift_open_date [22:50:15]req_shift_open_date done [22:50:15]produce_requested_data done [22:50:15]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103811,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [22:50:15]process_action_free print_text [22:50:15]json_value_free [22:50:15]json_value_free done [22:50:15]process_json_proto returns [22:50:15]Send response to host [22:50:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103811,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [22:50:15]free response buf [22:50:15]execute_script done [22:50:15]execute_script returns [22:50:15]free content buf [22:50:15]Sock 10.Close socket [22:50:15]Sock 10.Thread stoped [22:50:15]OFD Sender: No OFD packet to send [22:50:20]OFD Sender: No OFD packet to send [22:50:25]OFD Sender: No OFD packet to send [22:50:30]OFD Sender: No OFD packet to send [22:50:35]OFD Sender: No OFD packet to send [22:50:40]OFD Sender: No OFD packet to send [22:50:45]OFD Sender: No OFD packet to send [22:50:50]OFD Sender: No OFD packet to send [22:50:55]OFD Sender: No OFD packet to send [22:51:00]OFD Sender: No OFD packet to send [22:51:05]OFD Sender: No OFD packet to send [22:51:10]OFD Sender: No OFD packet to send [22:51:15]OFD Sender: No OFD packet to send [22:51:20]OFD Sender: No OFD packet to send [22:51:25]OFD Sender: No OFD packet to send [22:51:30]OFD Sender: No OFD packet to send [22:51:35]OFD Sender: No OFD packet to send [22:51:40]OFD Sender: No OFD packet to send [22:51:45]OFD Sender: No OFD packet to send [22:51:50]OFD Sender: No OFD packet to send [22:51:55]OFD Sender: No OFD packet to send [22:52:00]OFD Sender: No OFD packet to send [22:52:05]OFD Sender: No OFD packet to send [22:52:10]OFD Sender: No OFD packet to send [22:52:15]OFD Sender: No OFD packet to send [22:52:20]OFD Sender: No OFD packet to send [22:52:25]OFD Sender: No OFD packet to send [22:52:30]OFD Sender: No OFD packet to send [22:52:35]OFD Sender: No OFD packet to send [22:52:40]OFD Sender: No OFD packet to send [22:52:45]OFD Sender: No OFD packet to send [22:52:50]OFD Sender: No OFD packet to send [22:52:55]OFD Sender: No OFD packet to send [22:53:00]OFD Sender: No OFD packet to send [22:53:05]OFD Sender: No OFD packet to send [22:53:10]OFD Sender: No OFD packet to send [22:53:15]OFD Sender: No OFD packet to send [22:53:20]OFD Sender: No OFD packet to send [22:53:25]OFD Sender: No OFD packet to send [22:53:30]OFD Sender: No OFD packet to send [22:53:35]OFD Sender: No OFD packet to send [22:53:40]OFD Sender: No OFD packet to send [22:53:45]OFD Sender: No OFD packet to send [22:53:50]OFD Sender: No OFD packet to send [22:53:55]OFD Sender: No OFD packet to send [22:54:00]OFD Sender: No OFD packet to send [22:54:05]OFD Sender: No OFD packet to send [22:54:10]OFD Sender: No OFD packet to send [22:54:15]OFD Sender: No OFD packet to send [22:54:20]OFD Sender: No OFD packet to send [22:54:25]OFD Sender: No OFD packet to send [22:54:30]OFD Sender: No OFD packet to send [22:54:35]OFD Sender: No OFD packet to send [22:54:40]OFD Sender: No OFD packet to send [22:54:45]OFD Sender: No OFD packet to send [22:54:50]OFD Sender: No OFD packet to send [22:54:55]OFD Sender: No OFD packet to send [22:55:00]OFD Sender: No OFD packet to send [22:55:05]OFD Sender: No OFD packet to send [22:55:10]OFD Sender: No OFD packet to send [22:55:15]OFD Sender: No OFD packet to send [22:55:20]OFD Sender: No OFD packet to send [22:55:25]OFD Sender: No OFD packet to send [22:55:30]OFD Sender: No OFD packet to send [22:55:35]OFD Sender: No OFD packet to send [22:55:40]OFD Sender: No OFD packet to send [22:55:45]OFD Sender: No OFD packet to send [22:55:50]OFD Sender: No OFD packet to send [22:55:51]accept exits with 8 [22:55:51]New connection [22:55:51]New thread 3066797412 created [22:55:51]Thread 3066940772 joined [22:55:51]Waiting for new connection... [22:55:51] Sock 8.Parse request [22:55:51]Sock 8.Check first char [22:55:51]Sock 8.First char is OK [22:55:51]request: POST /json_proto HTTP/1.0 [22:55:51]Method: POST [22:55:51]URL: /json_proto [22:55:51]Method is POST - this is cgi request [22:55:51]url: /json_proto [22:55:51]query_string will be loaded in cgi processing [22:55:51]execute_cgi json_proto POST (null) [22:55:51]execute_cgi path=json_proto method=POST [22:55:51]POST find Content-Length [22:55:51]Host: 172.17.38.133:8080 [22:55:51]Content-Length: 1175 [22:55:51]Content-Type: application/json [22:55:51] [22:55:51]POST finish read [22:55:51]Found Content-Length = 1175 [22:55:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. \u000A\u0421\u0447\u0435\u0442 N : (1)673119\u000A19.06.2024 22:33\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 21\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-5\u000A 100.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 7290.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30084240\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:55:51]execute_script... [22:55:51]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. \u000A\u0421\u0447\u0435\u0442 N : (1)673119\u000A19.06.2024 22:33\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 21\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-5\u000A 100.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 7290.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30084240\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:55:51]POST & json_proto [22:55:51]process_json_proto [22:55:51]json parsed OK: [22:55:51]protocol is kg_v1.0 [22:55:51]action value=print_text [22:55:51]process_action print_text [22:55:51]cmd_print_text [22:55:51]ExternCall_PrintAddStr [22:55:51]wPrintStart [22:55:51]Write to MH i2c: 01 00 00 1C 19 35 [22:55:51]Write i2c OK [22:55:51]MH_I2C_Read... [22:55:51]Read from MH i2c: 01 [22:55:51]MH_I2C_Read... [22:55:51]Read from MH i2c: 01 07 00 [22:55:51]MH_I2C_Read... [22:55:51]Read from MH i2c: 01 07 00 1C 19 00 00 00 00 00 FF 0F 4A [22:55:51]RasterBufferAndPrint [22:55:51]line *****ТОВАРНЫЙ ЧЕК***** [22:55:51]line АЗС 120 [22:55:51]line Партнер нефть [22:55:51]line 02508201610067 [22:55:51]line Кассир : Байбугуева Г. [22:55:51]line Счет N : (1)673119 [22:55:51]line 19.06.2024 22:33 [22:55:51]line ПРОДАЖА [22:55:51]line ТРК (МРК, ГНК): 21 [22:55:51]line Вид ГСМ : 2710194210 [22:55:51]line ДТ(л)-К-5 [22:55:51]line 100.000 x 72.90 [22:55:51]line ИТОГ: 7290.00 [22:55:51]line Тип оплаты: Талоны: ТК ГПНА Online [22:55:51]line 30084240 [22:55:51]line ______________________ [22:55:51]line (подпись) [22:55:51]written 0, free lines is 4095 [22:55:52]Write to MH i2c: 01 00 00 30 19 49 [22:55:52]Write i2c OK [22:55:52]MH_I2C_Read... [22:55:52]Read from MH i2c: 01 [22:55:52]MH_I2C_Read... [22:55:52]Read from MH i2c: 01 07 00 [22:55:52]MH_I2C_Read... [22:55:52]Read from MH i2c: 01 07 00 30 19 00 00 00 00 00 12 0E 70 [22:55:52]RasterBufferAndPrint [22:55:52]line [22:55:52]line [22:55:52]line [22:55:52]line [22:55:52]line [22:55:52]written 0, free lines is 3604 [22:55:52]MH_Cut [22:55:52]Write to MH i2c: D1 01 00 37 19 01 22 [22:55:52]Write i2c OK [22:55:52]MH_I2C_Read... [22:55:52]Read from MH i2c: D1 [22:55:52]MH_I2C_Read... [22:55:52]Read from MH i2c: D1 01 00 [22:55:52]MH_I2C_Read... [22:55:52]Read from MH i2c: D1 01 00 37 19 00 21 [22:55:52]Write to MH i2c: 01 00 00 38 19 51 [22:55:52]Write i2c OK [22:55:52]MH_I2C_Read... [22:55:52]*** Cut start [22:55:52]*** Partial cut [22:55:52]*** CUTSNS_PIN = 1 [22:55:52]*** CUTSNS_PIN = 0 [22:55:52]*** Brake cut motor [22:55:53]Read from MH i2c: 01 [22:55:53]MH_I2C_Read... [22:55:53]*** Stop cut motor [22:55:53]*** Cut end [22:55:53]Read from MH i2c: 01 07 00 [22:55:53]MH_I2C_Read... [22:55:53]Read from MH i2c: 01 07 00 38 19 00 00 00 00 00 FF 0F 66 [22:55:53]process_action print_text done [22:55:53]requested_data is exist [22:55:53]produce_requested_data [22:55:53]requested_item fm.sn is exist - process it [22:55:53]wFMCommunicate request_size=4 [22:55:53]MH_SAM_APDU [22:55:53]CAPDU: 80 11 00 00 [22:55:53]Write to MH i2c: E2 08 00 39 19 80 11 00 00 00 00 00 00 CC [22:55:53]Write i2c OK [22:55:53]MH_I2C_Read... [22:55:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:55:53]Read from MH i2c: E2 [22:55:53]MH_I2C_Read... [22:55:53]Read from MH i2c: E2 17 00 [22:55:53]MH_I2C_Read... [22:55:53]Read from MH i2c: E2 17 00 39 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 1F [22:55:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [22:55:53]wFMCommunicate OK [22:55:53]requested_item fd.num is exist - process it [22:55:53]SAM_PROTO_GetFieldsCounters [22:55:53]wFMCommunicate request_size=4 [22:55:53]MH_SAM_APDU [22:55:53]CAPDU: 80 13 00 00 [22:55:53]Write to MH i2c: E2 08 00 3A 19 80 13 00 00 00 00 00 00 CF [22:55:53]Write i2c OK [22:55:53]MH_I2C_Read... [22:55:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:55:53]Read from MH i2c: E2 [22:55:53]MH_I2C_Read... [22:55:53]Read from MH i2c: E2 62 00 [22:55:53]MH_I2C_Read... [22:55:53]Read from MH i2c: E2 62 00 3A 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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 83 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 F1 00 00 00 5E 04 04 00 F1 00 00 00 57 04 04 00 F2 00 00 00 19 04 04 00 00 00 00 00 90 00 44 [22:55: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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 83 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 F1 00 00 00 5E 04 04 00 F1 00 00 00 57 04 04 00 F2 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:55:53]wFMCommunicate OK [22:55:53]SAM_PROTO_GetFieldsCounters done [22:55:53]requested_item shift.num is exist - process it [22:55:53]requested_item shift.opened is exist - process it [22:55:53]req_shift_opened [22:55:53]FM_GetShiftState [22:55:53]SAM_PROTO_GetShiftState [22:55:53]wFMCommunicate request_size=4 [22:55:53]MH_SAM_APDU [22:55:53]CAPDU: 80 13 01 00 [22:55:53]Write to MH i2c: E2 08 00 3B 19 80 13 01 00 00 00 00 00 D1 [22:55:53]Write i2c OK [22:55:53]MH_I2C_Read... [22:55:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:55:53]Read from MH i2c: E2 [22:55:53]MH_I2C_Read... [22:55:53]Read from MH i2c: E2 0E 00 [22:55:53]MH_I2C_Read... [22:55:53]Read from MH i2c: E2 0E 00 3B 19 00 09 00 01 04 26 72 66 00 00 00 00 90 00 DF [22:55:53]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [22:55:53]wFMCommunicate OK [22:55:53]SAM_PROTO_GetShiftState done [22:55:53]FM_GetShiftState done [22:55:53]req_shift_opened done [22:55:53]requested_item shift.open_date is exist - process it [22:55:53]req_shift_open_date [22:55:53]req_shift_open_date done [22:55:53]produce_requested_data done [22:55:53]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103811,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [22:55:53]process_action_free print_text [22:55:53]json_value_free [22:55:53]json_value_free done [22:55:53]process_json_proto returns [22:55:53]Send response to host [22:55:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103811,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [22:55:53]free response buf [22:55:53]execute_script done [22:55:53]execute_script returns [22:55:53]free content buf [22:55:53]Sock 8.Close socket [22:55:53]Sock 8.Thread stoped [22:55:55]OFD Sender: No OFD packet to send [22:56:00]OFD Sender: No OFD packet to send [22:56:05]OFD Sender: No OFD packet to send [22:56:10]OFD Sender: No OFD packet to send [22:56:15]OFD Sender: No OFD packet to send [22:56:20]OFD Sender: No OFD packet to send [22:56:25]OFD Sender: No OFD packet to send [22:56:30]OFD Sender: No OFD packet to send [22:56:35]OFD Sender: No OFD packet to send [22:56:40]OFD Sender: No OFD packet to send [22:56:45]OFD Sender: No OFD packet to send [22:56:50]OFD Sender: No OFD packet to send [22:56:55]OFD Sender: No OFD packet to send [22:57:00]OFD Sender: No OFD packet to send [22:57:05]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:31]OFD Sender: No OFD packet to send [23:00:36]OFD Sender: No OFD packet to send [23:00:41]OFD Sender: No OFD packet to send [23:00:46]OFD Sender: No OFD packet to send [23:00:51]OFD Sender: No OFD packet to send [23:00:56]OFD Sender: No OFD packet to send [23:01:01]OFD Sender: No OFD packet to send [23:01:06]OFD Sender: No OFD packet to send [23:01:11]OFD Sender: No OFD packet to send [23:01:16]OFD Sender: No OFD packet to send [23:01:21]OFD Sender: No OFD packet to send [23:01:26]OFD Sender: No OFD packet to send [23:01:31]OFD Sender: No OFD packet to send [23:01:36]OFD Sender: No OFD packet to send [23:01:41]OFD Sender: No OFD packet to send [23:01:46]OFD Sender: No OFD packet to send [23:01:51]OFD Sender: No OFD packet to send [23:01:56]OFD Sender: No OFD packet to send [23:02:01]OFD Sender: No OFD packet to send [23:02:06]OFD Sender: No OFD packet to send [23:02:11]OFD Sender: No OFD packet to send [23:02:16]OFD Sender: No OFD packet to send [23:02:21]OFD Sender: No OFD packet to send [23:02:26]OFD Sender: No OFD packet to send [23:02:31]OFD Sender: No OFD packet to send [23:02:36]OFD Sender: No OFD packet to send [23:02:41]OFD Sender: No OFD packet to send [23:02:46]OFD Sender: No OFD packet to send [23:02:51]OFD Sender: No OFD packet to send [23:02:56]OFD Sender: No OFD packet to send [23:03:01]OFD Sender: No OFD packet to send [23:03:06]OFD Sender: No OFD packet to send [23:03:11]OFD Sender: No OFD packet to send [23:03:16]OFD Sender: No OFD packet to send [23:03:21]OFD Sender: No OFD packet to send [23:03:26]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:51]OFD Sender: No OFD packet to send [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 [23:06:51]OFD Sender: No OFD packet to send [23:06:56]OFD Sender: No OFD packet to send [23:06:58]accept exits with 9 [23:06:58]New connection [23:06:58]New thread 3066940772 created [23:06:58]Thread 3066797412 joined [23:06:58]Waiting for new connection... [23:06:58] Sock 9.Parse request [23:06:58]Sock 9.Check first char [23:06:58]Sock 9.First char is OK [23:06:58]request: POST /json_proto HTTP/1.0 [23:06:58]Method: POST [23:06:58]URL: /json_proto [23:06:58]Method is POST - this is cgi request [23:06:58]url: /json_proto [23:06:58]query_string will be loaded in cgi processing [23:06:58]execute_cgi json_proto POST (null) [23:06:58]execute_cgi path=json_proto method=POST [23:06:58]POST find Content-Length [23:06:58]Host: 172.17.38.133:8080 [23:06:58]Content-Length: 1212 [23:06:58]Content-Type: application/json [23:06:58] [23:06:58]POST finish read [23:06:58]Found Content-Length = 1212 [23:06:58]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 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. \u000A\u0421\u0447\u0435\u0442 N : (1)673120\u000A19.06.2024 22:44\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-5\u000A 68.590 x 72.90\u000A\u0418\u0422\u041E\u0413: 5000.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\u000A76488\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:06:58]execute_script... [23:06:58]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 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. \u000A\u0421\u0447\u0435\u0442 N : (1)673120\u000A19.06.2024 22:44\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-5\u000A 68.590 x 72.90\u000A\u0418\u0422\u041E\u0413: 5000.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\u000A76488\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:06:58]POST & json_proto [23:06:58]process_json_proto [23:06:58]json parsed OK: [23:06:58]protocol is kg_v1.0 [23:06:58]action value=print_text [23:06:58]process_action print_text [23:06:58]cmd_print_text [23:06:58]ExternCall_PrintAddStr [23:06:58]wPrintStart [23:06:58]Write to MH i2c: 01 00 00 3C 19 55 [23:06:58]Write i2c OK [23:06:58]MH_I2C_Read... [23:06:58]Read from MH i2c: 01 [23:06:58]MH_I2C_Read... [23:06:58]Read from MH i2c: 01 07 00 [23:06:58]MH_I2C_Read... [23:06:58]Read from MH i2c: 01 07 00 3C 19 00 00 00 00 00 FF 0F 6A [23:06:58]RasterBufferAndPrint [23:06:58]line *****ТОВАРНЫЙ ЧЕК***** [23:06:58]line АЗС 120 [23:06:58]line Партнер нефть [23:06:58]line 02508201610067 [23:06:58]line Кассир : Байбугуева Г. [23:06:58]line Счет N : (1)673120 [23:06:58]line 19.06.2024 22:44 [23:06:58]line ПРОДАЖА [23:06:58]line ТРК (МРК, ГНК): 11 [23:06:58]line Вид ГСМ : 2710194210 [23:06:58]line ДТ(л)-К-5 [23:06:58]line 68.590 x 72.90 [23:06:58]line ИТОГ: 5000.21 [23:06:58]line Тип оплаты: Талоны: Топливная Карта [23:06:58]line 76488 [23:06:58]line ______________________ [23:06:58]line (подпись) [23:06:58]written 0, free lines is 4095 [23:06:59]Write to MH i2c: 01 00 00 50 19 69 [23:06:59]Write i2c OK [23:06:59]MH_I2C_Read... [23:06:59]Read from MH i2c: 01 [23:06:59]MH_I2C_Read... [23:06:59]Read from MH i2c: 01 07 00 [23:06:59]MH_I2C_Read... [23:06:59]Read from MH i2c: 01 07 00 50 19 00 00 00 00 00 12 0E 90 [23:06:59]RasterBufferAndPrint [23:06:59]line [23:06:59]line [23:06:59]line [23:06:59]line [23:06:59]line [23:06:59]written 0, free lines is 3604 [23:06:59]MH_Cut [23:06:59]Write to MH i2c: D1 01 00 57 19 01 42 [23:06:59]Write i2c OK [23:06:59]MH_I2C_Read... [23:06:59]Read from MH i2c: D1 [23:06:59]MH_I2C_Read... [23:06:59]Read from MH i2c: D1 01 00 [23:06:59]MH_I2C_Read... [23:06:59]Read from MH i2c: D1 01 00 57 19 00 41 [23:06:59]Write to MH i2c: 01 00 00 58 19 71 [23:06:59]Write i2c OK [23:06:59]MH_I2C_Read... [23:06:59]*** Cut start [23:06:59]*** Partial cut [23:06:59]*** CUTSNS_PIN = 1 [23:06:59]*** CUTSNS_PIN = 0 [23:06:59]*** Brake cut motor [23:07:00]Read from MH i2c: 01 [23:07:00]MH_I2C_Read... [23:07:00]*** Stop cut motor [23:07:00]*** Cut end [23:07:00]Read from MH i2c: 01 07 00 [23:07:00]MH_I2C_Read... [23:07:00]Read from MH i2c: 01 07 00 58 19 00 00 00 00 00 FF 0F 86 [23:07:00]process_action print_text done [23:07:00]requested_data is exist [23:07:00]produce_requested_data [23:07:00]requested_item fm.sn is exist - process it [23:07:00]wFMCommunicate request_size=4 [23:07:00]MH_SAM_APDU [23:07:00]CAPDU: 80 11 00 00 [23:07:00]Write to MH i2c: E2 08 00 59 19 80 11 00 00 00 00 00 00 EC [23:07:00]Write i2c OK [23:07:00]MH_I2C_Read... [23:07:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:07:00]Read from MH i2c: E2 [23:07:00]MH_I2C_Read... [23:07:00]Read from MH i2c: E2 17 00 [23:07:00]MH_I2C_Read... [23:07:00]Read from MH i2c: E2 17 00 59 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 3F [23:07:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [23:07:00]wFMCommunicate OK [23:07:00]requested_item fd.num is exist - process it [23:07:00]SAM_PROTO_GetFieldsCounters [23:07:00]wFMCommunicate request_size=4 [23:07:00]MH_SAM_APDU [23:07:00]CAPDU: 80 13 00 00 [23:07:00]Write to MH i2c: E2 08 00 5A 19 80 13 00 00 00 00 00 00 EF [23:07:00]Write i2c OK [23:07:00]MH_I2C_Read... [23:07:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:07:00]Read from MH i2c: E2 [23:07:00]MH_I2C_Read... [23:07:00]Read from MH i2c: E2 62 00 [23:07:00]MH_I2C_Read... [23:07:00]Read from MH i2c: E2 62 00 5A 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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 83 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 F1 00 00 00 5E 04 04 00 F1 00 00 00 57 04 04 00 F2 00 00 00 19 04 04 00 00 00 00 00 90 00 64 [23:07:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 83 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 F1 00 00 00 5E 04 04 00 F1 00 00 00 57 04 04 00 F2 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:07:00]wFMCommunicate OK [23:07:00]SAM_PROTO_GetFieldsCounters done [23:07:00]requested_item shift.num is exist - process it [23:07:00]requested_item shift.opened is exist - process it [23:07:00]req_shift_opened [23:07:00]FM_GetShiftState [23:07:00]SAM_PROTO_GetShiftState [23:07:00]wFMCommunicate request_size=4 [23:07:00]MH_SAM_APDU [23:07:00]CAPDU: 80 13 01 00 [23:07:00]Write to MH i2c: E2 08 00 5B 19 80 13 01 00 00 00 00 00 F1 [23:07:00]Write i2c OK [23:07:00]MH_I2C_Read... [23:07:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:07:00]Read from MH i2c: E2 [23:07:00]MH_I2C_Read... [23:07:00]Read from MH i2c: E2 0E 00 [23:07:00]MH_I2C_Read... [23:07:00]Read from MH i2c: E2 0E 00 5B 19 00 09 00 01 04 26 72 66 00 00 00 00 90 00 FF [23:07:00]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [23:07:00]wFMCommunicate OK [23:07:00]SAM_PROTO_GetShiftState done [23:07:00]FM_GetShiftState done [23:07:00]req_shift_opened done [23:07:00]requested_item shift.open_date is exist - process it [23:07:00]req_shift_open_date [23:07:00]req_shift_open_date done [23:07:00]produce_requested_data done [23:07:00]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103811,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [23:07:00]process_action_free print_text [23:07:00]json_value_free [23:07:00]json_value_free done [23:07:00]process_json_proto returns [23:07:00]Send response to host [23:07:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103811,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [23:07:00]free response buf [23:07:00]execute_script done [23:07:00]execute_script returns [23:07:00]free content buf [23:07:00]Sock 9.Close socket [23:07:00]Sock 9.Thread stoped [23:07:01]OFD Sender: No OFD packet to send [23:07:06]OFD Sender: No OFD packet to send [23:07:11]OFD Sender: No OFD packet to send [23:07:16]OFD Sender: No OFD packet to send [23:07:21]OFD Sender: No OFD packet to send [23:07:26]OFD Sender: No OFD packet to send [23:07:31]OFD Sender: No OFD packet to send [23:07:36]OFD Sender: No OFD packet to send [23:07:41]OFD Sender: No OFD packet to send [23:07:46]OFD Sender: No OFD packet to send [23:07:51]OFD Sender: No OFD packet to send [23:07:56]OFD Sender: No OFD packet to send [23:08:01]OFD Sender: No OFD packet to send [23:08:06]OFD Sender: No OFD packet to send [23:08:11]OFD Sender: No OFD packet to send [23:08:15]accept exits with 8 [23:08:15]New connection [23:08:15]New thread 3066797412 created [23:08:15]Thread 3066940772 joined [23:08:15]Waiting for new connection... [23:08:15] Sock 8.Parse request [23:08:15]Sock 8.Check first char [23:08:15]Sock 8.First char is OK [23:08:15]request: POST /json_proto HTTP/1.0 [23:08:15]Method: POST [23:08:15]URL: /json_proto [23:08:15]Method is POST - this is cgi request [23:08:15]url: /json_proto [23:08:15]query_string will be loaded in cgi processing [23:08:15]execute_cgi json_proto POST (null) [23:08:15]execute_cgi path=json_proto method=POST [23:08:15]POST find Content-Length [23:08:15]Host: 172.17.38.133:8080 [23:08:15]Content-Length: 687 [23:08:15]Content-Type: application/json [23:08:15] [23:08:15]POST finish read [23:08:15]Found Content-Length = 687 [23:08:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673121", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 13.720, "sum" : 1000.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:08:15]execute_script... [23: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)673121", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 13.720, "sum" : 1000.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:08:15]POST & json_proto [23:08:15]process_json_proto [23:08:15]json parsed OK: [23:08:15]protocol is kg_v1.0 [23:08:15]action value=close_receipt [23:08:15]process_action close_receipt [23:08:15]cmd_close_receipt [23:08:15]MH_GetDate [23:08:15]Write to MH i2c: F0 00 00 5C 19 64 [23:08:15]Write i2c OK [23:08:15]MH_I2C_Read... [23:08:15]Read from MH i2c: F0 [23:08:15]MH_I2C_Read... [23:08:15]Read from MH i2c: F0 09 00 [23:08:15]MH_I2C_Read... [23:08:15]Read from MH i2c: F0 09 00 5C 19 00 E1 64 73 66 BD 8F 7C 64 B7 [23:08:15]GetLastDocTimeStamp 1718836938 [23:08:15]current date 1718838497 [23:08:15]FM_GetShiftState [23:08:15]SAM_PROTO_GetShiftState [23:08:15]wFMCommunicate request_size=4 [23:08:15]MH_SAM_APDU [23:08:15]CAPDU: 80 13 01 00 [23:08:15]Write to MH i2c: E2 08 00 5D 19 80 13 01 00 00 00 00 00 F3 [23:08:15]Write i2c OK [23:08:15]MH_I2C_Read... [23:08:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:08:15]Read from MH i2c: E2 [23:08:15]MH_I2C_Read... [23:08:15]Read from MH i2c: E2 0E 00 [23:08:15]MH_I2C_Read... [23:08:15]Read from MH i2c: E2 0E 00 5D 19 00 09 00 01 04 26 72 66 00 00 00 00 90 00 01 [23:08:15]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [23:08:15]wFMCommunicate OK [23:08:15]SAM_PROTO_GetShiftState done [23:08:15]FM_GetShiftState done [23:08:15]opened in 1718756868 [23:08:15]opened+sec_in_day 1718843268 [23:08:15]quantity*price = 100018 [23:08:15]sum+1 = 100020 [23:08:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.19 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 242 19.06.2024 23:08 Смена: 353 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103812 ФПД: 231718489128098 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T230817&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103812&fm=231718489128098&tin=02508201610067®Number=0000000000092785&sum=100000 [23:08:16]StoreToDocumentArchive [23:08:16]shift 353 fd 103812 [23:08:16]save to /storage/0353/doc_00103812 [23:08:16]save last doc name /storage/0353/doc_00103812 to /storage/kkm_last_doc_name [23:08:16]save OK [23:08:16]Clear old archive folders... [23:08:16]ProcessDocumentItem done err = 0, tmpTLVsize=252 [23:08:16]tlvbuf is 01742160 [23:08:16]SAM_PROTO_ClearQueue [23:08:16]wFMCommunicate request_size=4 [23:08:16]MH_SAM_APDU [23:08:16]CAPDU: 80 09 00 00 [23:08:16]Write to MH i2c: E2 08 00 6A 19 80 09 00 00 00 00 00 00 F5 [23:08:16]Write i2c OK [23:08:16]MH_I2C_Read... [23:08:16]Read from MH i2c: E2 [23:08:16]MH_I2C_Read... [23:08:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:08:17]Read from MH i2c: E2 03 00 [23:08:17]MH_I2C_Read... [23:08:17]Read from MH i2c: E2 03 00 6A 19 00 90 00 F7 [23:08:17]RAPDU: 90 00 [23:08:17]wFMCommunicate OK [23:08:17]SAM_PROTO_ClearQueue done [23:08:17]KKMCreateOFDPacket [23:08:17]OFDProtocolAddRootSTLVToBuf [23:08:17]FM_MakeSignedData [23:08:17]FM_MakeSignedData [23:08:17]SAM_PROTO_SignData [23:08:17]wFMCommunicate request_size=4 [23:08:17]MH_SAM_APDU [23:08:17]CAPDU: 80 0D 01 02 [23:08:17]Write to MH i2c: E2 08 00 6B 19 80 0D 01 02 00 00 00 00 FD [23:08:17]Write i2c OK [23:08:17]MH_I2C_Read... [23:08:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:08:17]Read from MH i2c: E2 [23:08:17]MH_I2C_Read... [23:08:17]Read from MH i2c: E2 03 00 [23:08:17]MH_I2C_Read... [23:08:17]Read from MH i2c: E2 03 00 6B 19 00 90 00 F8 [23:08:17]RAPDU: 90 00 [23:08:17]wFMCommunicate OK [23:08:17]wFMCommunicate request_size=255 [23:08:17]MH_SAM_APDU [23:08:17]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F2 00 00 00 F4 03 04 00 E1 64 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 84 95 01 00 35 04 06 00 [23:08:17]Write to MH i2c: E2 02 01 6C 19 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F2 00 00 00 F4 03 04 00 E1 64 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 84 95 01 00 35 04 06 00 00 00 DD [23:08:17]Write i2c OK [23:08:17]MH_I2C_Read... [23:08:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:08:17]Read from MH i2c: E2 [23:08:17]MH_I2C_Read... [23:08:17]Read from MH i2c: E2 03 00 [23:08:17]MH_I2C_Read... [23:08:17]Read from MH i2c: E2 03 00 6C 19 00 90 00 F9 [23:08:17]RAPDU: 90 00 [23:08:17]wFMCommunicate OK [23:08:17]wFMCommunicate request_size=11 [23:08:17]MH_SAM_APDU [23:08:17]CAPDU: 80 0D 02 02 06 D2 BF 2A 3B 7C A2 [23:08:17]Write to MH i2c: E2 0E 00 6D 19 80 0D 02 02 06 00 D2 BF 2A 3B 7C A2 00 00 20 [23:08:17]Write i2c OK [23:08:17]MH_I2C_Read... [23:08:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:08:17]Read from MH i2c: E2 [23:08:17]MH_I2C_Read... [23:08:17]Read from MH i2c: E2 03 00 [23:08:17]MH_I2C_Read... [23:08:17]Read from MH i2c: E2 03 00 6D 19 00 90 00 FA [23:08:17]RAPDU: 90 00 [23:08:17]wFMCommunicate OK [23:08:17]wFMCommunicate request_size=4 [23:08:17]MH_SAM_APDU [23:08:17]CAPDU: 80 0D 03 02 [23:08:17]Write to MH i2c: E2 08 00 6E 19 80 0D 03 02 00 00 00 00 02 [23:08:17]Write i2c OK [23:08:17]MH_I2C_Read... [23:08:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:08:17]Read from MH i2c: E2 [23:08:17]MH_I2C_Read... [23:08:17]Read from MH i2c: E2 0B 00 [23:08:17]MH_I2C_Read... [23:08:17]Read from MH i2c: E2 0B 00 6E 19 00 66 39 B3 5F D2 EF 95 6A 90 00 74 [23:08:17]RAPDU: 66 39 B3 5F D2 EF 95 6A 90 00 [23:08:17]wFMCommunicate OK [23:08:17]SAM_PROTO_SignData done [23:08:17]FM_MakeSignedData done [23:08:17]CreateOFDProtocolMessage [23:08:17]wFMCommunicate request_size=4 [23:08:17]MH_SAM_APDU [23:08:17]CAPDU: 80 11 00 00 [23:08:17]Write to MH i2c: E2 08 00 6F 19 80 11 00 00 00 00 00 00 02 [23:08:17]Write i2c OK [23:08:17]MH_I2C_Read... [23:08:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:08:17]Read from MH i2c: E2 [23:08:17]MH_I2C_Read... [23:08:17]Read from MH i2c: E2 17 00 [23:08:17]MH_I2C_Read... [23:08:17]Read from MH i2c: E2 17 00 6F 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 55 [23:08:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [23:08:17]wFMCommunicate OK [23:08:17]CreateOFDProtocolMessage done [23:08:17]OFDSenderStorePacket 103812 [23:08:17]StoreOFDPacket docnum=103812 [23:08:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 7F F0 08 01 0E 14 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F2 00 00 00 F4 03 04 00 E1 64 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 84 95 01 00 35 04 06 00 D2 BF 2A 3B 7C A2 66 39 B3 5F D2 EF 95 6A [23:08:17]CheckFolder [23:08:17]dirname=/storage/ofd_packets [23:08:17]CheckFolder done [23:08:17]ProducePacketName [23:08:17]name=ofd_packets/00103812 [23:08:17]NVStorageSaveData ofd_packets/00103812 [23:08:17]File name is /storage/ofd_packets/00103812 [23:08:17]Write 302 bytes [23:08:17]NVStorageSaveData done [23:08:17]OFDSenderStorePacket done [23:08:17]KKMCreateOFDPacket done [23:08:17]NVStorageSaveData kkm_last_timestamp [23:08:17]File name is /storage/kkm_last_timestamp [23:08:17]Write 4 bytes [23:08:17]NVStorageSaveData done [23:08:17]ExternCall_PrintAddStr [23:08:17]wPrintStart [23:08:17]Write to MH i2c: 01 00 00 70 19 89 [23:08:17]Write i2c OK [23:08:17]MH_I2C_Read... [23:08:17]Read from MH i2c: 01 [23:08:17]MH_I2C_Read... [23:08:17]Read from MH i2c: 01 07 00 [23:08:17]MH_I2C_Read... [23:08:17]Read from MH i2c: 01 07 00 70 19 00 00 00 00 00 FF 0F 9E [23:08:17]RasterBufferAndPrint [23:08:17]line Счет N : (1)673121 [23:08:17]line ИНН: 02508201610067 [23:08:17]line Контрольно-Кассовый Чек [23:08:17]line ПРОДАЖА [23:08:17]line ТРК (МРК, ГНК) : 11 [23:08:17]line Товар: 2710194210 [23:08:17]line ДТ(л)-К-5 [23:08:17]line 13.720 * 72.90 [23:08:17]line = 1000.19 [23:08:17]line НДС 12% НСП 1% [23:08:17]line > о реализуемом товаре [23:08:17]line ОКРУГЛЕНИЕ: -0.19 [23:08:17]line ИТОГО: 1000.00 [23:08:17]line Внесено: 1000.00 [23:08:17]line СДАЧА: 0.00 [23:08:17]line НСП 1% : 8.85 [23:08:17]line НДС 12% : 106.21 [23:08:17]line Наличными: 1000.00 [23:08:17]line Безнал.: 0.00 [23:08:17]line Место: АЗС № 120 "Партнер Нефть" [23:08:17]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [23:08:17]line СНО: Общий режим [23:08:17]line Чек 242 19.06.2024 23:08 [23:08:17]line Смена: 353 ФФД: 1.0 [23:08:17]line ЗНМ: 0300000164 [23:08:17]line РНМ: 0000000000092785 [23:08:17]line Версия ККМ: 001 [23:08:17]line ФМ: 0000000000875093 [23:08:17]line ФД: 103812 [23:08:17]line ФПД: 231718489128098 [23:08:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T230817&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103812&fm=231718489128098&tin=02508201610067®Number=0000000000092785&sum=100000 [23:08:17]OFD Sender: Processing packet 103812 [packets to send 17, broken 16] [23:08:17]ProducePacketName [23:08:17]name=ofd_packets/00103812 [23:08:17]OFD Sender: To server: pG, [23:08:17]CommunicateWithHost lk.salyk.kg:30040 [23:08:17]ConnectInit lk.salyk.kg [23:08:17]written 0, free lines is 4095 [23:08:17]Connected sock=10 [23: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 39 33 10 01 00 00 7F F0 08 01 0E 14 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F2 00 00 00 F4 03 04 00 E1 64 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 84 95 01 00 35 04 06 00 D2 BF 2A 3B 7C A2 66 39 B3 5F D2 EF 95 6A [23:08:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 CE 7F 47 00 87 B6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 84 95 01 00 F4 03 04 00 69 0B 73 66 B6 04 01 00 00 D7 AD 9D 57 E6 AE C9 B9 [23:08:18]CommunicateWithHost err = 0 [23:08:18]CheckOFDResponse [23:08:18]1017 (14) - 77093643461234 [23:08:18]1041 (16) - 0000000000875093 [23:08:18]1040 (4) - 103812 [23:08:18]1012 (4) - 19.06.2024 16:46 [23:08:18]1206 (1) - 0 [23:08:18]OFD Sender: Remove packet 103812 [23:08:18]ProducePacketName [23:08:18]name=ofd_packets/00103812 [23:08:18]NVStorageDeleteData [23:08:18]Write to MH i2c: 01 00 00 9B 19 B4 [23:08:18]Write i2c OK [23:08:18]MH_I2C_Read... [23:08:18]Read from MH i2c: 01 [23:08:18]MH_I2C_Read... [23:08:18]Read from MH i2c: 01 07 00 [23:08:18]MH_I2C_Read... [23:08:18]Read from MH i2c: 01 07 00 9B 19 00 00 00 00 00 EF 0C B6 [23:08:18]RasterBufferAndPrint [23:08:18]line [23:08:18]line [23:08:18]line [23:08:18]line [23:08:18]line [23:08:18]written 0, free lines is 3320 [23:08:18]MH_Cut [23:08:18]Write to MH i2c: D1 01 00 A2 19 01 8D [23:08:18]Write i2c OK [23:08:18]MH_I2C_Read... [23:08:18]Read from MH i2c: D1 [23:08:18]MH_I2C_Read... [23:08:18]Read from MH i2c: D1 01 00 [23:08:18]MH_I2C_Read... [23:08:18]Read from MH i2c: D1 01 00 A2 19 00 8C [23:08:18]Write to MH i2c: 01 00 00 A3 19 BC [23:08:18]Write i2c OK [23:08:18]MH_I2C_Read... [23:08:18]OFD Sender: No OFD packet to send [23:08:19]*** Cut start [23:08:19]*** Partial cut [23:08:19]*** CUTSNS_PIN = 1 [23:08:19]*** CUTSNS_PIN = 0 [23:08:19]*** Brake cut motor [23:08:19]Read from MH i2c: 01 [23:08:19]MH_I2C_Read... [23:08:19]*** Stop cut motor [23:08:19]*** Cut end [23:08:19]Read from MH i2c: 01 07 00 [23:08:19]MH_I2C_Read... [23:08:19]Read from MH i2c: 01 07 00 A3 19 00 00 00 00 00 FF 0F D1 [23:08:19]process_action close_receipt done [23:08:19]requested_data is exist [23:08:19]produce_requested_data [23:08:19]requested_item fm.sn is exist - process it [23:08:19]wFMCommunicate request_size=4 [23:08:19]MH_SAM_APDU [23:08:19]CAPDU: 80 11 00 00 [23:08:19]Write to MH i2c: E2 08 00 A4 19 80 11 00 00 00 00 00 00 37 [23:08:19]Write i2c OK [23:08:19]MH_I2C_Read... [23:08:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:08:19]Read from MH i2c: E2 [23:08:19]MH_I2C_Read... [23:08:19]Read from MH i2c: E2 17 00 [23:08:19]MH_I2C_Read... [23:08:19]Read from MH i2c: E2 17 00 A4 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 8A [23:08:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [23:08:19]wFMCommunicate OK [23:08:19]requested_item fd.num is exist - process it [23:08:19]SAM_PROTO_GetFieldsCounters [23:08:19]wFMCommunicate request_size=4 [23:08:19]MH_SAM_APDU [23:08:19]CAPDU: 80 13 00 00 [23:08:19]Write to MH i2c: E2 08 00 A5 19 80 13 00 00 00 00 00 00 3A [23:08:19]Write i2c OK [23:08:19]MH_I2C_Read... [23:08:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:08:19]Read from MH i2c: E2 [23:08:19]MH_I2C_Read... [23:08:19]Read from MH i2c: E2 62 00 [23:08:19]MH_I2C_Read... [23:08:19]Read from MH i2c: E2 62 00 A5 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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 84 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 F2 00 00 00 5E 04 04 00 F2 00 00 00 57 04 04 00 F3 00 00 00 19 04 04 00 00 00 00 00 90 00 B3 [23:08: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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 84 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 F2 00 00 00 5E 04 04 00 F2 00 00 00 57 04 04 00 F3 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:08:19]wFMCommunicate OK [23:08:19]SAM_PROTO_GetFieldsCounters done [23:08:19]requested_item shift.num is exist - process it [23:08:19]requested_item shift.opened is exist - process it [23:08:19]req_shift_opened [23:08:19]FM_GetShiftState [23:08:19]SAM_PROTO_GetShiftState [23:08:19]wFMCommunicate request_size=4 [23:08:19]MH_SAM_APDU [23:08:19]CAPDU: 80 13 01 00 [23:08:19]Write to MH i2c: E2 08 00 A6 19 80 13 01 00 00 00 00 00 3C [23:08:19]Write i2c OK [23:08:19]MH_I2C_Read... [23:08:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:08:19]Read from MH i2c: E2 [23:08:19]MH_I2C_Read... [23:08:19]Read from MH i2c: E2 0E 00 [23:08:19]MH_I2C_Read... [23:08:19]Read from MH i2c: E2 0E 00 A6 19 00 09 00 01 04 26 72 66 00 00 00 00 90 00 4A [23:08:19]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [23:08:19]wFMCommunicate OK [23:08:19]SAM_PROTO_GetShiftState done [23:08:19]FM_GetShiftState done [23:08:19]req_shift_opened done [23:08:19]requested_item shift.open_date is exist - process it [23:08:19]req_shift_open_date [23:08:19]req_shift_open_date done [23:08:19]produce_requested_data done [23:08:19]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103812,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [23:08:19]process_action_free close_receipt [23:08:19]json_value_free [23:08:19]json_value_free done [23:08:19]process_json_proto returns [23:08:19]Send response to host [23:08:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103812,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [23:08:19]free response buf [23:08:19]execute_script done [23:08:19]execute_script returns [23:08:19]free content buf [23:08:19]Sock 8.Close socket [23:08:19]Sock 8.Thread stoped [23:08:23]OFD Sender: No OFD packet to send [23:08:28]OFD Sender: No OFD packet to send [23:08:33]OFD Sender: No OFD packet to send [23:08:38]OFD Sender: No OFD packet to send [23:08:43]OFD Sender: No OFD packet to send [23:08:48]OFD Sender: No OFD packet to send [23:08:53]OFD Sender: No OFD packet to send [23:08:58]OFD Sender: No OFD packet to send [23:09:03]OFD Sender: No OFD packet to send [23:09:08]OFD Sender: No OFD packet to send [23:09:13]OFD Sender: No OFD packet to send [23:09:18]OFD Sender: No OFD packet to send [23:09:23]OFD Sender: No OFD packet to send [23:09:28]OFD Sender: No OFD packet to send [23:09:33]OFD Sender: No OFD packet to send [23:09:38]OFD Sender: No OFD packet to send [23:09:43]OFD Sender: No OFD packet to send [23:09:48]OFD Sender: No OFD packet to send [23:09:53]OFD Sender: No OFD packet to send [23:09:58]OFD Sender: No OFD packet to send [23:10:03]OFD Sender: No OFD packet to send [23:10:08]OFD Sender: No OFD packet to send [23:10:13]OFD Sender: No OFD packet to send [23:10:18]OFD Sender: No OFD packet to send [23:10:23]OFD Sender: No OFD packet to send [23:10:28]OFD Sender: No OFD packet to send [23:10:33]OFD Sender: No OFD packet to send [23:10:38]OFD Sender: No OFD packet to send [23:10:43]OFD Sender: No OFD packet to send [23:10:48]OFD Sender: No OFD packet to send [23:10:53]OFD Sender: No OFD packet to send [23:10:58]OFD Sender: No OFD packet to send [23:11:03]OFD Sender: No OFD packet to send [23:11:08]OFD Sender: No OFD packet to send [23:11:13]OFD Sender: No OFD packet to send [23:11:18]OFD Sender: No OFD packet to send [23:11:23]OFD Sender: No OFD packet to send [23:11:28]OFD Sender: No OFD packet to send [23:11:33]OFD Sender: No OFD packet to send [23:11:38]OFD Sender: No OFD packet to send [23:11:43]OFD Sender: No OFD packet to send [23:11:48]OFD Sender: No OFD packet to send [23:11:53]OFD Sender: No OFD packet to send [23:11:58]OFD Sender: No OFD packet to send [23:12:03]OFD Sender: No OFD packet to send [23:12:08]OFD Sender: No OFD packet to send [23:12:13]OFD Sender: No OFD packet to send [23:12:18]OFD Sender: No OFD packet to send [23:12:23]OFD Sender: No OFD packet to send [23:12:28]OFD Sender: No OFD packet to send [23:12:33]OFD Sender: No OFD packet to send [23:12:38]OFD Sender: No OFD packet to send [23:12:43]OFD Sender: No OFD packet to send [23:12:48]OFD Sender: No OFD packet to send [23:12:53]OFD Sender: No OFD packet to send [23:12:58]OFD Sender: No OFD packet to send [23:13:03]OFD Sender: No OFD packet to send [23:13:08]OFD Sender: No OFD packet to send [23:13:13]OFD Sender: No OFD packet to send [23:13:18]OFD Sender: No OFD packet to send [23:13:23]OFD Sender: No OFD packet to send [23:13:28]OFD Sender: No OFD packet to send [23:13:33]OFD Sender: No OFD packet to send [23:13:38]OFD Sender: No OFD packet to send [23:13:43]OFD Sender: No OFD packet to send [23:13:48]OFD Sender: No OFD packet to send [23:13:53]OFD Sender: No OFD packet to send [23:13:58]OFD Sender: No OFD packet to send [23:14:03]OFD Sender: No OFD packet to send [23:14:08]OFD Sender: No OFD packet to send [23:14:13]OFD Sender: No OFD packet to send [23:14:18]OFD Sender: No OFD packet to send [23:14:23]OFD Sender: No OFD packet to send [23:14:28]OFD Sender: No OFD packet to send [23:14:33]OFD Sender: No OFD packet to send [23:14:38]OFD Sender: No OFD packet to send [23:14:43]OFD Sender: No OFD packet to send [23:14:48]OFD Sender: No OFD packet to send [23:14:54]OFD Sender: No OFD packet to send [23:14:59]OFD Sender: No OFD packet to send [23:15:04]OFD Sender: No OFD packet to send [23:15:09]OFD Sender: No OFD packet to send [23:15:14]OFD Sender: No OFD packet to send [23:15:19]OFD Sender: No OFD packet to send [23:15:24]OFD Sender: No OFD packet to send [23:15:29]OFD Sender: No OFD packet to send [23:15:34]OFD Sender: No OFD packet to send [23:15:39]OFD Sender: No OFD packet to send [23:15:44]OFD Sender: No OFD packet to send [23:15:49]OFD Sender: No OFD packet to send [23:15:54]OFD Sender: No OFD packet to send [23:15:59]OFD Sender: No OFD packet to send [23:16:04]OFD Sender: No OFD packet to send [23:16:09]OFD Sender: No OFD packet to send [23:16:14]OFD Sender: No OFD packet to send [23:16:19]OFD Sender: No OFD packet to send [23:16:24]OFD Sender: No OFD packet to send [23:16:29]OFD Sender: No OFD packet to send [23:16:34]OFD Sender: No OFD packet to send [23:16:39]OFD Sender: No OFD packet to send [23:16:44]OFD Sender: No OFD packet to send [23:16:49]OFD Sender: No OFD packet to send [23:16:54]OFD Sender: No OFD packet to send [23:16:59]OFD Sender: No OFD packet to send [23:17:04]OFD Sender: No OFD packet to send [23:17:09]OFD Sender: No OFD packet to send [23:17:14]OFD Sender: No OFD packet to send [23:17:14]accept exits with 9 [23:17:14]New connection [23:17:14]New thread 3066940772 created [23:17:14]Thread 3066797412 joined [23:17:14]Waiting for new connection... [23:17:14] Sock 9.Parse request [23:17:14]Sock 9.Check first char [23:17:14]Sock 9.First char is OK [23:17:14]request: POST /json_proto HTTP/1.0 [23:17:14]Method: POST [23:17:14]URL: /json_proto [23:17:14]Method is POST - this is cgi request [23:17:14]url: /json_proto [23:17:14]query_string will be loaded in cgi processing [23:17:14]execute_cgi json_proto POST (null) [23:17:14]execute_cgi path=json_proto method=POST [23:17:14]POST find Content-Length [23:17:14]Host: 172.17.38.133:8080 [23:17:14]Content-Length: 816 [23:17:14]Content-Type: application/json [23:17:14] [23:17:14]POST finish read [23:17:14]Found Content-Length = 816 [23:17:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673122", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 9.040, "sum" : 600.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 600.26 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:17:14]execute_script... [23:17: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)673122", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 9.040, "sum" : 600.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 600.26 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:17:14]POST & json_proto [23:17:14]process_json_proto [23:17:14]json parsed OK: [23:17:14]protocol is kg_v1.0 [23:17:14]action value=close_receipt [23:17:14]process_action close_receipt [23:17:14]cmd_close_receipt [23:17:14]MH_GetDate [23:17:14]Write to MH i2c: F0 00 00 A7 19 AF [23:17:14]Write i2c OK [23:17:14]MH_I2C_Read... [23:17:14]Read from MH i2c: F0 [23:17:14]MH_I2C_Read... [23:17:14]Read from MH i2c: F0 09 00 [23:17:14]MH_I2C_Read... [23:17:14]Read from MH i2c: F0 09 00 A7 19 00 FC 66 73 66 BD 8F 7C 64 1F [23:17:14]GetLastDocTimeStamp 1718838497 [23:17:14]current date 1718839036 [23:17:14]FM_GetShiftState [23:17:14]SAM_PROTO_GetShiftState [23:17:14]wFMCommunicate request_size=4 [23:17:14]MH_SAM_APDU [23:17:14]CAPDU: 80 13 01 00 [23:17:14]Write to MH i2c: E2 08 00 A8 19 80 13 01 00 00 00 00 00 3E [23:17:14]Write i2c OK [23:17:14]MH_I2C_Read... [23:17:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:17:14]Read from MH i2c: E2 [23:17:14]MH_I2C_Read... [23:17:14]Read from MH i2c: E2 0E 00 [23:17:14]MH_I2C_Read... [23:17:14]Read from MH i2c: E2 0E 00 A8 19 00 09 00 01 04 26 72 66 00 00 00 00 90 00 4C [23:17:14]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [23:17:14]wFMCommunicate OK [23:17:14]SAM_PROTO_GetShiftState done [23:17:14]FM_GetShiftState done [23:17:14]opened in 1718756868 [23:17:14]opened+sec_in_day 1718843268 [23:17:14]quantity*price = 60025 [23:17:14]sum+1 = 60027 [23:17:14]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 600.26 НСП 1% : 5.31 НДС 12% : 63.74 Наличными: 0.00 Безнал.: 600.26 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 243 19.06.2024 23:17 Смена: 353 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000875093 ФД: 103813 ФПД: 177423949426317 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T231716&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103813&fm=177423949426317&tin=02508201610067®Number=0000000000092785&sum=60026 [23:17:15]StoreToDocumentArchive [23:17:15]shift 353 fd 103813 [23:17:15]save to /storage/0353/doc_00103813 [23:17:15]save last doc name /storage/0353/doc_00103813 to /storage/kkm_last_doc_name [23:17:15]save OK [23:17:15]Clear old archive folders... [23:17:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:17:15]tlvbuf is 016BA3F0 [23:17:15]SAM_PROTO_ClearQueue [23:17:15]wFMCommunicate request_size=4 [23:17:15]MH_SAM_APDU [23:17:15]CAPDU: 80 09 00 00 [23:17:15]Write to MH i2c: E2 08 00 B5 19 80 09 00 00 00 00 00 00 40 [23:17:15]Write i2c OK [23:17:15]MH_I2C_Read... [23:17:15]Read from MH i2c: E2 [23:17:15]MH_I2C_Read... [23:17:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:17:15]Read from MH i2c: E2 03 00 [23:17:15]MH_I2C_Read... [23:17:15]Read from MH i2c: E2 03 00 B5 19 00 90 00 42 [23:17:15]RAPDU: 90 00 [23:17:15]wFMCommunicate OK [23:17:15]SAM_PROTO_ClearQueue done [23:17:15]KKMCreateOFDPacket [23:17:15]OFDProtocolAddRootSTLVToBuf [23:17:15]FM_MakeSignedData [23:17:15]FM_MakeSignedData [23:17:15]SAM_PROTO_SignData [23:17:15]wFMCommunicate request_size=4 [23:17:15]MH_SAM_APDU [23:17:15]CAPDU: 80 0D 01 02 [23:17:15]Write to MH i2c: E2 08 00 B6 19 80 0D 01 02 00 00 00 00 48 [23:17:15]Write i2c OK [23:17:15]MH_I2C_Read... [23:17:15]Read from MH i2c: E2 [23:17:15]MH_I2C_Read... [23:17:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:17:15]Read from MH i2c: E2 03 00 [23:17:15]MH_I2C_Read... [23:17:15]Read from MH i2c: E2 03 00 B6 19 00 90 00 43 [23:17:15]RAPDU: 90 00 [23:17:15]wFMCommunicate OK [23:17:15]wFMCommunicate request_size=255 [23:17:15]MH_SAM_APDU [23:17: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 50 23 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7A EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7A EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F3 00 00 00 F4 03 04 00 FC 66 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 85 95 01 00 35 04 06 00 A1 [23:17:15]Write to MH i2c: E2 02 01 B7 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 50 23 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7A EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7A EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F3 00 00 00 F4 03 04 00 FC 66 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 85 95 01 00 35 04 06 00 A1 00 00 5F [23:17:15]Write i2c OK [23:17:15]MH_I2C_Read... [23:17:15]Read from MH i2c: E2 [23:17:15]MH_I2C_Read... [23:17:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:17:15]Read from MH i2c: E2 03 00 [23:17:15]MH_I2C_Read... [23:17:15]Read from MH i2c: E2 03 00 B7 19 00 90 00 44 [23:17:15]RAPDU: 90 00 [23:17:15]wFMCommunicate OK [23:17:15]wFMCommunicate request_size=10 [23:17:15]MH_SAM_APDU [23:17:15]CAPDU: 80 0D 02 02 05 5D BB 7A EE 8D [23:17:15]Write to MH i2c: E2 0D 00 B8 19 80 0D 02 02 05 00 5D BB 7A EE 8D 00 00 62 [23:17:15]Write i2c OK [23:17:15]MH_I2C_Read... [23:17:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:17:15]Read from MH i2c: E2 [23:17:15]MH_I2C_Read... [23:17:15]Read from MH i2c: E2 03 00 [23:17:15]MH_I2C_Read... [23:17:15]Read from MH i2c: E2 03 00 B8 19 00 90 00 45 [23:17:15]RAPDU: 90 00 [23:17:15]wFMCommunicate OK [23:17:15]wFMCommunicate request_size=4 [23:17:15]MH_SAM_APDU [23:17:15]CAPDU: 80 0D 03 02 [23:17:15]Write to MH i2c: E2 08 00 B9 19 80 0D 03 02 00 00 00 00 4D [23:17:15]Write i2c OK [23:17:15]MH_I2C_Read... [23:17:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:17:15]Read from MH i2c: E2 [23:17:15]MH_I2C_Read... [23:17:15]Read from MH i2c: E2 0B 00 [23:17:15]MH_I2C_Read... [23:17:15]Read from MH i2c: E2 0B 00 B9 19 00 FF 4C 4A B2 A4 F4 89 BF 90 00 75 [23:17:15]RAPDU: FF 4C 4A B2 A4 F4 89 BF 90 00 [23:17:15]wFMCommunicate OK [23:17:15]SAM_PROTO_SignData done [23:17:15]FM_MakeSignedData done [23:17:15]CreateOFDProtocolMessage [23:17:15]wFMCommunicate request_size=4 [23:17:15]MH_SAM_APDU [23:17:15]CAPDU: 80 11 00 00 [23:17:15]Write to MH i2c: E2 08 00 BA 19 80 11 00 00 00 00 00 00 4D [23:17:15]Write i2c OK [23:17:15]MH_I2C_Read... [23:17:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:17:15]Read from MH i2c: E2 [23:17:15]MH_I2C_Read... [23:17:15]Read from MH i2c: E2 17 00 [23:17:15]MH_I2C_Read... [23:17:15]Read from MH i2c: E2 17 00 BA 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 A0 [23:17:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [23:17:15]wFMCommunicate OK [23:17:15]CreateOFDProtocolMessage done [23:17:15]OFDSenderStorePacket 103813 [23:17:15]StoreOFDPacket docnum=103813 [23:17:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 52 91 07 01 1F 79 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 50 23 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7A EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7A EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F3 00 00 00 F4 03 04 00 FC 66 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 85 95 01 00 35 04 06 00 A1 5D BB 7A EE 8D FF 4C 4A B2 A4 F4 89 BF [23:17:15]CheckFolder [23:17:15]dirname=/storage/ofd_packets [23:17:15]CheckFolder done [23:17:15]ProducePacketName [23:17:15]name=ofd_packets/00103813 [23:17:15]NVStorageSaveData ofd_packets/00103813 [23:17:15]File name is /storage/ofd_packets/00103813 [23:17:15]Write 301 bytes [23:17:15]NVStorageSaveData done [23:17:15]OFDSenderStorePacket done [23:17:15]KKMCreateOFDPacket done [23:17:15]NVStorageSaveData kkm_last_timestamp [23:17:15]File name is /storage/kkm_last_timestamp [23:17:15]Write 4 bytes [23:17:15]NVStorageSaveData done [23:17:15]ExternCall_PrintAddStr [23:17:15]wPrintStart [23:17:15]Write to MH i2c: 01 00 00 BB 19 D4 [23:17:15]Write i2c OK [23:17:15]MH_I2C_Read... [23:17:15]Read from MH i2c: 01 [23:17:15]MH_I2C_Read... [23:17:15]Read from MH i2c: 01 07 00 [23:17:15]MH_I2C_Read... [23:17:15]Read from MH i2c: 01 07 00 BB 19 00 00 00 00 00 FF 0F E9 [23:17:15]RasterBufferAndPrint [23:17:15]line Счет N : (1)673122 [23:17:15]line ИНН: 02508201610067 [23:17:15]line Контрольно-Кассовый Чек [23:17:15]line ПРОДАЖА [23:17:15]line ТРК (МРК, ГНК) : 32 [23:17:15]line Товар: 2710124130 [23:17:15]line Аи-92-К-5 [23:17:15]line 9.040 * 66.40 [23:17:15]line = 600.26 [23:17:15]line НДС 12% НСП 1% [23:17:15]line > о реализуемом товаре [23:17:15]line ИТОГО: 600.26 [23:17:15]line НСП 1% : 5.31 [23:17:15]line НДС 12% : 63.74 [23:17:15]line Наличными: 0.00 [23:17:15]line Безнал.: 600.26 [23:17:15]line Место: АЗС № 120 "Партнер Нефть" [23:17:15]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [23:17:15]line СНО: Общий режим [23:17:15]line Чек 243 19.06.2024 23:17 [23:17:15]line Смена: 353 ФФД: 1.0 [23:17:15]line ЗНМ: 0300000164 [23:17:15]line РНМ: 0000000000092785 [23:17:15]line Версия ККМ: 001 [23:17:15]line Платежная система: Бакай Банк [23:17:15]line ФМ: 0000000000875093 [23:17:15]line ФД: 103813 [23:17:15]line ФПД: 177423949426317 [23:17:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T231716&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103813&fm=177423949426317&tin=02508201610067®Number=0000000000092785&sum=60026 [23:17:16]written 0, free lines is 4095 [23:17:16]OFD Sender: Processing packet 103813 [packets to send 17, broken 16] [23:17:16]ProducePacketName [23:17:16]name=ofd_packets/00103813 [23:17:16]OFD Sender: To server: pG, [23:17:16]CommunicateWithHost lk.salyk.kg:30040 [23:17:16]ConnectInit lk.salyk.kg [23:17:16]Connected sock=10 [23:17: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 39 33 0F 01 00 00 52 91 07 01 1F 79 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 50 23 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7A EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7A EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F3 00 00 00 F4 03 04 00 FC 66 73 66 0E 04 04 00 61 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 85 95 01 00 35 04 06 00 A1 5D BB 7A EE 8D FF 4C 4A B2 A4 F4 89 BF [23:17: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 39 33 4F 00 00 00 33 12 47 00 86 69 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 85 95 01 00 F4 03 04 00 83 0D 73 66 B6 04 01 00 00 8C 30 77 E1 85 17 F3 93 [23:17:16]CommunicateWithHost err = 0 [23:17:16]CheckOFDResponse [23:17:16]1017 (14) - 77093643461234 [23:17:16]1041 (16) - 0000000000875093 [23:17:16]1040 (4) - 103813 [23:17:16]1012 (4) - 19.06.2024 16:55 [23:17:16]1206 (1) - 0 [23:17:16]OFD Sender: Remove packet 103813 [23:17:16]ProducePacketName [23:17:16]name=ofd_packets/00103813 [23:17:16]NVStorageDeleteData [23:17:16]Write to MH i2c: 01 00 00 E5 19 FE [23:17:16]Write i2c OK [23:17:16]MH_I2C_Read... [23:17:16]Read from MH i2c: 01 [23:17:16]MH_I2C_Read... [23:17:16]Read from MH i2c: 01 07 00 [23:17:16]MH_I2C_Read... [23:17:16]Read from MH i2c: 01 07 00 E5 19 00 00 00 00 00 E4 0C F5 [23:17:16]RasterBufferAndPrint [23:17:16]line [23:17:16]line [23:17:16]line [23:17:16]line [23:17:16]line [23:17:16]written 0, free lines is 3307 [23:17:16]MH_Cut [23:17:16]Write to MH i2c: D1 01 00 EC 19 01 D7 [23:17:16]Write i2c OK [23:17:16]MH_I2C_Read... [23:17:16]Read from MH i2c: D1 [23:17:16]MH_I2C_Read... [23:17:16]Read from MH i2c: D1 01 00 [23:17:16]MH_I2C_Read... [23:17:16]Read from MH i2c: D1 01 00 EC 19 00 D6 [23:17:16]Write to MH i2c: 01 00 00 ED 19 06 [23:17:16]Write i2c OK [23:17:16]MH_I2C_Read... [23:17:17]OFD Sender: No OFD packet to send [23:17:17]*** Cut start [23:17:17]*** Partial cut [23:17:17]*** CUTSNS_PIN = 1 [23:17:17]*** CUTSNS_PIN = 0 [23:17:17]*** Brake cut motor [23:17:18]Read from MH i2c: 01 [23:17:18]MH_I2C_Read... [23:17:18]*** Stop cut motor [23:17:18]*** Cut end [23:17:18]Read from MH i2c: 01 07 00 [23:17:18]MH_I2C_Read... [23:17:18]Read from MH i2c: 01 07 00 ED 19 00 00 00 00 00 FF 0F 1B [23:17:18]process_action close_receipt done [23:17:18]requested_data is exist [23:17:18]produce_requested_data [23:17:18]requested_item fm.sn is exist - process it [23:17:18]wFMCommunicate request_size=4 [23:17:18]MH_SAM_APDU [23:17:18]CAPDU: 80 11 00 00 [23:17:18]Write to MH i2c: E2 08 00 EE 19 80 11 00 00 00 00 00 00 81 [23:17:18]Write i2c OK [23:17:18]MH_I2C_Read... [23:17:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:17:18]Read from MH i2c: E2 [23:17:18]MH_I2C_Read... [23:17:18]Read from MH i2c: E2 17 00 [23:17:18]MH_I2C_Read... [23:17:18]Read from MH i2c: E2 17 00 EE 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 D4 [23:17:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [23:17:18]wFMCommunicate OK [23:17:18]requested_item fd.num is exist - process it [23:17:18]SAM_PROTO_GetFieldsCounters [23:17:18]wFMCommunicate request_size=4 [23:17:18]MH_SAM_APDU [23:17:18]CAPDU: 80 13 00 00 [23:17:18]Write to MH i2c: E2 08 00 EF 19 80 13 00 00 00 00 00 00 84 [23:17:18]Write i2c OK [23:17:18]MH_I2C_Read... [23:17:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:17:18]Read from MH i2c: E2 [23:17:18]MH_I2C_Read... [23:17:18]Read from MH i2c: E2 62 00 [23:17:18]MH_I2C_Read... [23:17:18]Read from MH i2c: E2 62 00 EF 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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 85 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 F3 00 00 00 5E 04 04 00 F3 00 00 00 57 04 04 00 F4 00 00 00 19 04 04 00 00 00 00 00 90 00 01 [23:17: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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 85 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 F3 00 00 00 5E 04 04 00 F3 00 00 00 57 04 04 00 F4 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:17:18]wFMCommunicate OK [23:17:18]SAM_PROTO_GetFieldsCounters done [23:17:18]requested_item shift.num is exist - process it [23:17:18]requested_item shift.opened is exist - process it [23:17:18]req_shift_opened [23:17:18]FM_GetShiftState [23:17:18]SAM_PROTO_GetShiftState [23:17:18]wFMCommunicate request_size=4 [23:17:18]MH_SAM_APDU [23:17:18]CAPDU: 80 13 01 00 [23:17:18]Write to MH i2c: E2 08 00 F0 19 80 13 01 00 00 00 00 00 86 [23:17:18]Write i2c OK [23:17:18]MH_I2C_Read... [23:17:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:17:18]Read from MH i2c: E2 [23:17:18]MH_I2C_Read... [23:17:18]Read from MH i2c: E2 0E 00 [23:17:18]MH_I2C_Read... [23:17:18]Read from MH i2c: E2 0E 00 F0 19 00 09 00 01 04 26 72 66 00 00 00 00 90 00 94 [23:17:18]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [23:17:18]wFMCommunicate OK [23:17:18]SAM_PROTO_GetShiftState done [23:17:18]FM_GetShiftState done [23:17:18]req_shift_opened done [23:17:18]requested_item shift.open_date is exist - process it [23:17:18]req_shift_open_date [23:17:18]req_shift_open_date done [23:17:18]produce_requested_data done [23:17:18]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103813,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [23:17:18]process_action_free close_receipt [23:17:18]json_value_free [23:17:18]json_value_free done [23:17:18]process_json_proto returns [23:17:18]Send response to host [23:17:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103813,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [23:17:18]free response buf [23:17:18]execute_script done [23:17:18]execute_script returns [23:17:18]free content buf [23:17:18]Sock 9.Close socket [23:17:18]Sock 9.Thread stoped [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:32]OFD Sender: No OFD packet to send [23:26:37]OFD Sender: No OFD packet to send [23:26:42]OFD Sender: No OFD packet to send [23:26:47]OFD Sender: No OFD packet to send [23:26:52]OFD Sender: No OFD packet to send [23:26:57]OFD Sender: No OFD packet to send [23:27:02]OFD Sender: No OFD packet to send [23:27:07]OFD Sender: No OFD packet to send [23:27:12]OFD Sender: No OFD packet to send [23:27:17]OFD Sender: No OFD packet to send [23:27:22]OFD Sender: No OFD packet to send [23:27:27]OFD Sender: No OFD packet to send [23:27:32]OFD Sender: No OFD packet to send [23:27:37]OFD Sender: No OFD packet to send [23:27:42]OFD Sender: No OFD packet to send [23:27:47]OFD Sender: No OFD packet to send [23:27:52]OFD Sender: No OFD packet to send [23:27:57]OFD Sender: No OFD packet to send [23:28:02]OFD Sender: No OFD packet to send [23:28:07]OFD Sender: No OFD packet to send [23:28:12]OFD Sender: No OFD packet to send [23:28:17]OFD Sender: No OFD packet to send [23:28:22]OFD Sender: No OFD packet to send [23:28:27]OFD Sender: No OFD packet to send [23:28:32]OFD Sender: No OFD packet to send [23:28:37]OFD Sender: No OFD packet to send [23:28:42]OFD Sender: No OFD packet to send [23:28:47]OFD Sender: No OFD packet to send [23:28:52]OFD Sender: No OFD packet to send [23:28:57]OFD Sender: No OFD packet to send [23:29:02]OFD Sender: No OFD packet to send [23:29:07]OFD Sender: No OFD packet to send [23:29:12]OFD Sender: No OFD packet to send [23:29:17]OFD Sender: No OFD packet to send [23:29:22]OFD Sender: No OFD packet to send [23:29:27]OFD Sender: No OFD packet to send [23:29:32]OFD Sender: No OFD packet to send [23:29:37]OFD Sender: No OFD packet to send [23:29:42]OFD Sender: No OFD packet to send [23:29:47]OFD Sender: No OFD packet to send [23:29:52]OFD Sender: No OFD packet to send [23:29:57]OFD Sender: No OFD packet to send [23:30:02]OFD Sender: No OFD packet to send [23:30:07]OFD Sender: No OFD packet to send [23:30:12]OFD Sender: No OFD packet to send [23:30:17]OFD Sender: No OFD packet to send [23:30:22]OFD Sender: No OFD packet to send [23:30:27]OFD Sender: No OFD packet to send [23:30:32]OFD Sender: No OFD packet to send [23:30:37]OFD Sender: No OFD packet to send [23:30:42]OFD Sender: No OFD packet to send [23:30:47]OFD Sender: No OFD packet to send [23:30:52]OFD Sender: No OFD packet to send [23:30:57]OFD Sender: No OFD packet to send [23:31:02]OFD Sender: No OFD packet to send [23:31:07]OFD Sender: No OFD packet to send [23:31:12]OFD Sender: No OFD packet to send [23:31:17]OFD Sender: No OFD packet to send [23:31:22]OFD Sender: No OFD packet to send [23:31:27]OFD Sender: No OFD packet to send [23:31:32]OFD Sender: No OFD packet to send [23:31:37]OFD Sender: No OFD packet to send [23:31:42]OFD Sender: No OFD packet to send [23:31:47]OFD Sender: No OFD packet to send [23:31:52]OFD Sender: No OFD packet to send [23:31:57]OFD Sender: No OFD packet to send [23:32:02]OFD Sender: No OFD packet to send [23:32:07]OFD Sender: No OFD packet to send [23:32:12]OFD Sender: No OFD packet to send [23:32:17]OFD Sender: No OFD packet to send [23:32:22]OFD Sender: No OFD packet to send [23:32:27]OFD Sender: No OFD packet to send [23:32:32]OFD Sender: No OFD packet to send [23:32:37]OFD Sender: No OFD packet to send [23:32:42]OFD Sender: No OFD packet to send [23:32:47]OFD Sender: No OFD packet to send [23:32:52]OFD Sender: No OFD packet to send [23:32:57]OFD Sender: No OFD packet to send [23:33:02]OFD Sender: No OFD packet to send [23:33:07]OFD Sender: No OFD packet to send [23:33:12]OFD Sender: No OFD packet to send [23:33:17]OFD Sender: No OFD packet to send [23:33:22]OFD Sender: No OFD packet to send [23:33:27]OFD Sender: No OFD packet to send [23:33:32]OFD Sender: No OFD packet to send [23:33:37]OFD Sender: No OFD packet to send [23:33:42]OFD Sender: No OFD packet to send [23:33:47]OFD Sender: No OFD packet to send [23:33:52]OFD Sender: No OFD packet to send [23:33:57]OFD Sender: No OFD packet to send [23:34:02]OFD Sender: No OFD packet to send [23:34:07]OFD Sender: No OFD packet to send [23:34:12]OFD Sender: No OFD packet to send [23:34:17]OFD Sender: No OFD packet to send [23:34:22]OFD Sender: No OFD packet to send [23:34:27]OFD Sender: No OFD packet to send [23:34:32]OFD Sender: No OFD packet to send [23:34:37]OFD Sender: No OFD packet to send [23:34:42]OFD Sender: No OFD packet to send [23:34:47]OFD Sender: No OFD packet to send [23:34:52]OFD Sender: No OFD packet to send [23:34:57]OFD Sender: No OFD packet to send [23:35:02]OFD Sender: No OFD packet to send [23:35:07]OFD Sender: No OFD packet to send [23:35:12]OFD Sender: No OFD packet to send [23:35:17]OFD Sender: No OFD packet to send [23:35:22]OFD Sender: No OFD packet to send [23:35:27]OFD Sender: No OFD packet to send [23:35:32]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:03]OFD Sender: No OFD packet to send [23:45:08]OFD Sender: No OFD packet to send [23:45:13]OFD Sender: No OFD packet to send [23:45:18]OFD Sender: No OFD packet to send [23:45:23]OFD Sender: No OFD packet to send [23:45:28]OFD Sender: No OFD packet to send [23:45:33]OFD Sender: No OFD packet to send [23:45:38]OFD Sender: No OFD packet to send [23:45:43]OFD Sender: No OFD packet to send [23:45:48]OFD Sender: No OFD packet to send [23:45:53]OFD Sender: No OFD packet to send [23:45:58]OFD Sender: No OFD packet to send [23:46:03]OFD Sender: No OFD packet to send [23:46:08]OFD Sender: No OFD packet to send [23:46:13]OFD Sender: No OFD packet to send [23:46:18]OFD Sender: No OFD packet to send [23:46:23]OFD Sender: No OFD packet to send [23:46:28]OFD Sender: No OFD packet to send [23:46:33]OFD Sender: No OFD packet to send [23:46:38]OFD Sender: No OFD packet to send [23:46:43]OFD Sender: No OFD packet to send [23:46:48]OFD Sender: No OFD packet to send [23:46:53]OFD Sender: No OFD packet to send [23:46:58]OFD Sender: No OFD packet to send [23:47:03]OFD Sender: No OFD packet to send [23:47:08]OFD Sender: No OFD packet to send [23:47:13]OFD Sender: No OFD packet to send [23:47:18]OFD Sender: No OFD packet to send [23:47:23]OFD Sender: No OFD packet to send [23:47:28]OFD Sender: No OFD packet to send [23:47:33]OFD Sender: No OFD packet to send [23:47:38]OFD Sender: No OFD packet to send [23:47:43]OFD Sender: No OFD packet to send [23:47:48]OFD Sender: No OFD packet to send [23:47:53]OFD Sender: No OFD packet to send [23:47:58]OFD Sender: No OFD packet to send [23:48:03]OFD Sender: No OFD packet to send [23:48:08]OFD Sender: No OFD packet to send [23:48:13]OFD Sender: No OFD packet to send [23:48:18]OFD Sender: No OFD packet to send [23:48:23]OFD Sender: No OFD packet to send [23:48:28]OFD Sender: No OFD packet to send [23:48:33]OFD Sender: No OFD packet to send [23:48:38]OFD Sender: No OFD packet to send [23:48:43]OFD Sender: No OFD packet to send [23:48:48]OFD Sender: No OFD packet to send [23:48:53]OFD Sender: No OFD packet to send [23:48:58]OFD Sender: No OFD packet to send [23:49:03]OFD Sender: No OFD packet to send [23:49:08]OFD Sender: No OFD packet to send [23:49:13]OFD Sender: No OFD packet to send [23:49:18]OFD Sender: No OFD packet to send [23:49:23]OFD Sender: No OFD packet to send [23:49:28]OFD Sender: No OFD packet to send [23:49:33]OFD Sender: No OFD packet to send [23:49:38]OFD Sender: No OFD packet to send [23:49:43]OFD Sender: No OFD packet to send [23:49:48]OFD Sender: No OFD packet to send [23:49:53]OFD Sender: No OFD packet to send [23:49:58]OFD Sender: No OFD packet to send [23:50:03]OFD Sender: No OFD packet to send [23:50:08]OFD Sender: No OFD packet to send [23:50:13]OFD Sender: No OFD packet to send [23:50:18]OFD Sender: No OFD packet to send [23:50:23]OFD Sender: No OFD packet to send [23:50:28]OFD Sender: No OFD packet to send [23:50:33]OFD Sender: No OFD packet to send [23:50:38]OFD Sender: No OFD packet to send [23:50:43]OFD Sender: No OFD packet to send [23:50:48]OFD Sender: No OFD packet to send [23:50:53]OFD Sender: No OFD packet to send [23:50:58]OFD Sender: No OFD packet to send [23:51:03]OFD Sender: No OFD packet to send [23:51:08]OFD Sender: No OFD packet to send [23:51:13]OFD Sender: No OFD packet to send [23:51:18]OFD Sender: No OFD packet to send [23:51:23]OFD Sender: No OFD packet to send [23:51:28]OFD Sender: No OFD packet to send [23:51:33]OFD Sender: No OFD packet to send [23:51:38]OFD Sender: No OFD packet to send [23:51:43]OFD Sender: No OFD packet to send [23:51:48]OFD Sender: No OFD packet to send [23:51:53]OFD Sender: No OFD packet to send [23:51:58]OFD Sender: No OFD packet to send [23:52:03]OFD Sender: No OFD packet to send [23:52:08]OFD Sender: No OFD packet to send [23:52:13]OFD Sender: No OFD packet to send [23:52:18]OFD Sender: No OFD packet to send [23:52:23]OFD Sender: No OFD packet to send [23:52:28]OFD Sender: No OFD packet to send [23:52:33]OFD Sender: No OFD packet to send [23:52:38]OFD Sender: No OFD packet to send [23:52:43]OFD Sender: No OFD packet to send [23:52:48]OFD Sender: No OFD packet to send [23:52:53]OFD Sender: No OFD packet to send [23:52:58]OFD Sender: No OFD packet to send [23:53:03]OFD Sender: No OFD packet to send [23:53:08]OFD Sender: No OFD packet to send [23:53:13]OFD Sender: No OFD packet to send [23:53:18]OFD Sender: No OFD packet to send [23:53:23]OFD Sender: No OFD packet to send [23:53:28]OFD Sender: No OFD packet to send [23:53:33]OFD Sender: No OFD packet to send [23:53:38]OFD Sender: No OFD packet to send [23:53:43]OFD Sender: No OFD packet to send [23:53:48]OFD Sender: No OFD packet to send [23:53:53]OFD Sender: No OFD packet to send [23:53:58]OFD Sender: No OFD packet to send [23:54:03]OFD Sender: No OFD packet to send [23:54:08]OFD Sender: No OFD packet to send [23:54:13]OFD Sender: No OFD packet to send [23:54:18]OFD Sender: No OFD packet to send [23:54:23]OFD Sender: No OFD packet to send [23:54:28]OFD Sender: No OFD packet to send [23:54:33]OFD Sender: No OFD packet to send [23:54:38]OFD Sender: No OFD packet to send [23:54:43]OFD Sender: No OFD packet to send [23:54:48]OFD Sender: No OFD packet to send [23:54:53]OFD Sender: No OFD packet to send [23:54:58]OFD Sender: No OFD packet to send [23:55:03]OFD Sender: No OFD packet to send [23:55:08]OFD Sender: No OFD packet to send [23:55:13]OFD Sender: No OFD packet to send [23:55:18]OFD Sender: No OFD packet to send [23:55:23]OFD Sender: No OFD packet to send [23:55:28]OFD Sender: No OFD packet to send [23:55:33]OFD Sender: No OFD packet to send [23:55:38]OFD Sender: No OFD packet to send [23:55:43]OFD Sender: No OFD packet to send [23:55:48]OFD Sender: No OFD packet to send [23:55:53]OFD Sender: No OFD packet to send [23:55:58]OFD Sender: No OFD packet to send [23:56:04]OFD Sender: No OFD packet to send [23:56:09]OFD Sender: No OFD packet to send [23:56:14]OFD Sender: No OFD packet to send [23:56:19]OFD Sender: No OFD packet to send [23:56:24]OFD Sender: No OFD packet to send [23:56:29]OFD Sender: No OFD packet to send [23:56:34]OFD Sender: No OFD packet to send [23:56:39]OFD Sender: No OFD packet to send [23:56:44]OFD Sender: No OFD packet to send [23:56:49]OFD Sender: No OFD packet to send [23:56:54]OFD Sender: No OFD packet to send [23:56:59]OFD Sender: No OFD packet to send [23:57:04]OFD Sender: No OFD packet to send [23:57:09]OFD Sender: No OFD packet to send [23:57:14]OFD Sender: No OFD packet to send [23:57:19]OFD Sender: No OFD packet to send [23:57:24]OFD Sender: No OFD packet to send [23:57:29]OFD Sender: No OFD packet to send [23:57:34]OFD Sender: No OFD packet to send [23:57:39]OFD Sender: No OFD packet to send [23:57:44]OFD Sender: No OFD packet to send [23:57:49]OFD Sender: No OFD packet to send [23:57:54]OFD Sender: No OFD packet to send [23:57:59]OFD Sender: No OFD packet to send [23:58:04]OFD Sender: No OFD packet to send [23:58:09]OFD Sender: No OFD packet to send [23:58:14]OFD Sender: No OFD packet to send [23:58:19]OFD Sender: No OFD packet to send [23:58:24]OFD Sender: No OFD packet to send [23:58:29]OFD Sender: No OFD packet to send [23:58:34]OFD Sender: No OFD packet to send [23:58:39]OFD Sender: No OFD packet to send [23:58:44]OFD Sender: No OFD packet to send [23:58:49]OFD Sender: No OFD packet to send [23:58:54]OFD Sender: No OFD packet to send [23:58:59]OFD Sender: No OFD packet to send [23:59:04]OFD Sender: No OFD packet to send [23:59:09]OFD Sender: No OFD packet to send [23:59:14]OFD Sender: No OFD packet to send [23:59:19]OFD Sender: No OFD packet to send [23:59:24]OFD Sender: No OFD packet to send [23:59:29]OFD Sender: No OFD packet to send [23:59:34]OFD Sender: No OFD packet to send [23:59:39]OFD Sender: No OFD packet to send [23:59:44]OFD Sender: No OFD packet to send [23:59:49]OFD Sender: No OFD packet to send [23:59:54]OFD Sender: No OFD packet to send [23:59:59]OFD Sender: No OFD packet to send [00:00:04]OFD Sender: No OFD packet to send [00:00:09]OFD Sender: No OFD packet to send [00:00:14]OFD Sender: No OFD packet to send [00:00:19]OFD Sender: No OFD packet to send [00:00:24]OFD Sender: No OFD packet to send [00:00:29]OFD Sender: No OFD packet to send [00:00:34]OFD Sender: No OFD packet to send [00:00:39]OFD Sender: No OFD packet to send [00:00:44]OFD Sender: No OFD packet to send [00:00:49]OFD Sender: No OFD packet to send [00:00:54]OFD Sender: No OFD packet to send [00:00:59]OFD Sender: No OFD packet to send [00:01:04]OFD Sender: No OFD packet to send [00:01:09]OFD Sender: No OFD packet to send [00:01:14]OFD Sender: No OFD packet to send [00:01:19]OFD Sender: No OFD packet to send [00:01:24]OFD Sender: No OFD packet to send [00:01:29]OFD Sender: No OFD packet to send [00:01:34]OFD Sender: No OFD packet to send [00:01:39]OFD Sender: No OFD packet to send [00:01:44]OFD Sender: No OFD packet to send [00:01:49]OFD Sender: No OFD packet to send [00:01:54]OFD Sender: No OFD packet to send [00:01:59]OFD Sender: No OFD packet to send [00:02:04]OFD Sender: No OFD packet to send [00:02:09]OFD Sender: No OFD packet to send [00:02:14]OFD Sender: No OFD packet to send [00:02:19]OFD Sender: No OFD packet to send [00:02:24]OFD Sender: No OFD packet to send [00:02:29]OFD Sender: No OFD packet to send [00:02:34]OFD Sender: No OFD packet to send [00:02:39]OFD Sender: No OFD packet to send [00:02:44]OFD Sender: No OFD packet to send [00:02:49]OFD Sender: No OFD packet to send [00:02:54]OFD Sender: No OFD packet to send [00:02:59]OFD Sender: No OFD packet to send [00:03:04]OFD Sender: No OFD packet to send [00:03:09]OFD Sender: No OFD packet to send [00:03:14]OFD Sender: No OFD packet to send [00:03:19]OFD Sender: No OFD packet to send [00:03:24]OFD Sender: No OFD packet to send [00:03:29]OFD Sender: No OFD packet to send [00:03:34]OFD Sender: No OFD packet to send [00:03:39]OFD Sender: No OFD packet to send [00:03:44]OFD Sender: No OFD packet to send [00:03:49]OFD Sender: No OFD packet to send [00:03:54]OFD Sender: No OFD packet to send [00:03:59]OFD Sender: No OFD packet to send [00:04:04]OFD Sender: No OFD packet to send [00:04:09]OFD Sender: No OFD packet to send [00:04:14]OFD Sender: No OFD packet to send [00:04:19]OFD Sender: No OFD packet to send [00:04:24]OFD Sender: No OFD packet to send [00:04:29]OFD Sender: No OFD packet to send [00:04:34]OFD Sender: No OFD packet to send [00:04:39]OFD Sender: No OFD packet to send [00:04:44]OFD Sender: No OFD packet to send [00:04:49]OFD Sender: No OFD packet to send [00:04:54]OFD Sender: No OFD packet to send [00:04:59]OFD Sender: No OFD packet to send [00:05:04]OFD Sender: No OFD packet to send [00:05:09]OFD Sender: No OFD packet to send [00:05:14]OFD Sender: No OFD packet to send [00:05:19]OFD Sender: No OFD packet to send [00:05:24]OFD Sender: No OFD packet to send [00:05:29]OFD Sender: No OFD packet to send [00:05:34]OFD Sender: No OFD packet to send [00:05:39]OFD Sender: No OFD packet to send [00:05:44]OFD Sender: No OFD packet to send [00:05:49]OFD Sender: No OFD packet to send [00:05:54]OFD Sender: No OFD packet to send [00:05:59]OFD Sender: No OFD packet to send [00:06:04]OFD Sender: No OFD packet to send [00:06:09]OFD Sender: No OFD packet to send [00:06:14]OFD Sender: No OFD packet to send [00:06:19]OFD Sender: No OFD packet to send [00:06:24]OFD Sender: No OFD packet to send [00:06:29]OFD Sender: No OFD packet to send [00:06:34]OFD Sender: No OFD packet to send [00:06:39]OFD Sender: No OFD packet to send [00:06:44]OFD Sender: No OFD packet to send [00:06:49]OFD Sender: No OFD packet to send [00:06:54]OFD Sender: No OFD packet to send [00:06:59]OFD Sender: No OFD packet to send [00:07:04]OFD Sender: No OFD packet to send [00:07:09]OFD Sender: No OFD packet to send [00:07:14]OFD Sender: No OFD packet to send [00:07:19]OFD Sender: No OFD packet to send [00:07:24]OFD Sender: No OFD packet to send [00:07:29]OFD Sender: No OFD packet to send [00:07:34]OFD Sender: No OFD packet to send [00:07:39]OFD Sender: No OFD packet to send [00:07:44]OFD Sender: No OFD packet to send [00:07:49]OFD Sender: No OFD packet to send [00:07:54]OFD Sender: No OFD packet to send [00:07:59]OFD Sender: No OFD packet to send [00:08:04]OFD Sender: No OFD packet to send [00:08:09]OFD Sender: No OFD packet to send [00:08:14]OFD Sender: No OFD packet to send [00:08:19]OFD Sender: No OFD packet to send [00:08:24]OFD Sender: No OFD packet to send [00:08:29]OFD Sender: No OFD packet to send [00:08:34]OFD Sender: No OFD packet to send [00:08:39]OFD Sender: No OFD packet to send [00:08:44]OFD Sender: No OFD packet to send [00:08:49]OFD Sender: No OFD packet to send [00:08:54]OFD Sender: No OFD packet to send [00:08:59]OFD Sender: No OFD packet to send [00:09:04]OFD Sender: No OFD packet to send [00:09:09]OFD Sender: No OFD packet to send [00:09:14]OFD Sender: No OFD packet to send [00:09:19]OFD Sender: No OFD packet to send [00:09:24]OFD Sender: No OFD packet to send [00:09:29]OFD Sender: No OFD packet to send [00:09:34]OFD Sender: No OFD packet to send [00:09:39]OFD Sender: No OFD packet to send [00:09:44]OFD Sender: No OFD packet to send [00:09:49]OFD Sender: No OFD packet to send [00:09:54]OFD Sender: No OFD packet to send [00:09:59]OFD Sender: No OFD packet to send [00:10:04]OFD Sender: No OFD packet to send [00:10:09]OFD Sender: No OFD packet to send [00:10:14]OFD Sender: No OFD packet to send [00:10:19]OFD Sender: No OFD packet to send [00:10:24]OFD Sender: No OFD packet to send [00:10:29]OFD Sender: No OFD packet to send [00:10:34]OFD Sender: No OFD packet to send [00:10:39]OFD Sender: No OFD packet to send [00:10:44]OFD Sender: No OFD packet to send [00:10:49]OFD Sender: No OFD packet to send [00:10:54]OFD Sender: No OFD packet to send [00:10:57]accept exits with 8 [00:10:57]New connection [00:10:57]New thread 3066797412 created [00:10:57]Thread 3066940772 joined [00:10:57]Waiting for new connection... [00:10:57] Sock 8.Parse request [00:10:57]Sock 8.Check first char [00:10:57]Sock 8.First char is OK [00:10:57]request: POST /json_proto HTTP/1.0 [00:10:57]Method: POST [00:10:57]URL: /json_proto [00:10:57]Method is POST - this is cgi request [00:10:57]url: /json_proto [00:10:57]query_string will be loaded in cgi processing [00:10:57]execute_cgi json_proto POST (null) [00:10:57]execute_cgi path=json_proto method=POST [00:10:57]POST find Content-Length [00:10:57]Host: 172.17.38.133:8080 [00:10:57]Content-Length: 215 [00:10:57]Content-Type: application/json [00:10:57] [00:10:57]POST finish read [00:10:57]Found Content-Length = 215 [00:10:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:10:57]execute_script... [00:10:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:10:57]POST & json_proto [00:10:57]process_json_proto [00:10:57]json parsed OK: [00:10:57]protocol is kg_v1.0 [00:10:57]action value=get_value [00:10:57]process_action get_value [00:10:57]cmd_get_value [00:10:57]process_action get_value done [00:10:57]requested_data is exist [00:10:57]produce_requested_data [00:10:57]requested_item kkm.sn is exist - process it [00:10:57]requested_item kkm.ver is exist - process it [00:10:57]requested_item fm.sn is exist - process it [00:10:57]wFMCommunicate request_size=4 [00:10:57]MH_SAM_APDU [00:10:57]CAPDU: 80 11 00 00 [00:10:57]Write to MH i2c: E2 08 00 F1 19 80 11 00 00 00 00 00 00 84 [00:10:57]Write i2c OK [00:10:57]MH_I2C_Read... [00:10:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:10:57]Read from MH i2c: E2 [00:10:57]MH_I2C_Read... [00:10:57]Read from MH i2c: E2 17 00 [00:10:57]MH_I2C_Read... [00:10:57]Read from MH i2c: E2 17 00 F1 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 D7 [00:10:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [00:10:57]wFMCommunicate OK [00:10:57]requested_item fd.num is exist - process it [00:10:57]SAM_PROTO_GetFieldsCounters [00:10:57]wFMCommunicate request_size=4 [00:10:57]MH_SAM_APDU [00:10:57]CAPDU: 80 13 00 00 [00:10:57]Write to MH i2c: E2 08 00 F2 19 80 13 00 00 00 00 00 00 87 [00:10:57]Write i2c OK [00:10:57]MH_I2C_Read... [00:10:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:10:58]Read from MH i2c: E2 [00:10:58]MH_I2C_Read... [00:10:58]Read from MH i2c: E2 62 00 [00:10:58]MH_I2C_Read... [00:10:58]Read from MH i2c: E2 62 00 F2 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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 85 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 F3 00 00 00 5E 04 04 00 F3 00 00 00 57 04 04 00 F4 00 00 00 19 04 04 00 00 00 00 00 90 00 04 [00:10: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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 85 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 F3 00 00 00 5E 04 04 00 F3 00 00 00 57 04 04 00 F4 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:10:58]wFMCommunicate OK [00:10:58]SAM_PROTO_GetFieldsCounters done [00:10:58]requested_item shift.num is exist - process it [00:10:58]requested_item shift.opened is exist - process it [00:10:58]req_shift_opened [00:10:58]FM_GetShiftState [00:10:58]SAM_PROTO_GetShiftState [00:10:58]wFMCommunicate request_size=4 [00:10:58]MH_SAM_APDU [00:10:58]CAPDU: 80 13 01 00 [00:10:58]Write to MH i2c: E2 08 00 F3 19 80 13 01 00 00 00 00 00 89 [00:10:58]Write i2c OK [00:10:58]MH_I2C_Read... [00:10:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:10:58]Read from MH i2c: E2 [00:10:58]MH_I2C_Read... [00:10:58]Read from MH i2c: E2 0E 00 [00:10:58]MH_I2C_Read... [00:10:58]Read from MH i2c: E2 0E 00 F3 19 00 09 00 01 04 26 72 66 00 00 00 00 90 00 97 [00:10:58]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [00:10:58]wFMCommunicate OK [00:10:58]SAM_PROTO_GetShiftState done [00:10:58]FM_GetShiftState done [00:10:58]req_shift_opened done [00:10:58]requested_item shift.open_date is exist - process it [00:10:58]req_shift_open_date [00:10:58]req_shift_open_date done [00:10:58]produce_requested_data done [00:10:58]produce_requested_data return {"kkm.sn":"0300000164","kkm.ver":"001","fm.sn":"0000000000875093","fd.num":103813,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [00:10:58]process_action_free get_value [00:10:58]json_value_free [00:10:58]json_value_free done [00:10:58]process_json_proto returns [00:10:58]Send response to host [00:10:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000164","kkm.ver":"001","fm.sn":"0000000000875093","fd.num":103813,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [00:10:58]free response buf [00:10:58]execute_script done [00:10:58]execute_script returns [00:10:58]free content buf [00:10:58]Sock 8.Close socket [00:10:58]Sock 8.Thread stoped [00:10:58]accept exits with 9 [00:10:58]New connection [00:10:58]New thread 3066940772 created [00:10:58]Thread 3066797412 joined [00:10:58]Waiting for new connection... [00:10:58] Sock 9.Parse request [00:10:58]Sock 9.Check first char [00:10:58]Sock 9.First char is OK [00:10:58]request: POST /json_proto HTTP/1.0 [00:10:58]Method: POST [00:10:58]URL: /json_proto [00:10:58]Method is POST - this is cgi request [00:10:58]url: /json_proto [00:10:58]query_string will be loaded in cgi processing [00:10:58]execute_cgi json_proto POST (null) [00:10:58]execute_cgi path=json_proto method=POST [00:10:58]POST find Content-Length [00:10:58]Host: 172.17.38.133:8080 [00:10:58]Content-Length: 331 [00:10:58]Content-Type: application/json [00:10:58] [00:10:58]POST finish read [00:10:58]Found Content-Length = 331 [00:10:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:10:58]execute_script... [00:10:58]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:10:58]POST & json_proto [00:10:58]process_json_proto [00:10:58]json parsed OK: [00:10:58]protocol is kg_v1.0 [00:10:58]action value=get_value [00:10:58]process_action get_value [00:10:58]cmd_get_value [00:10:58]process_action get_value done [00:10:58]requested_data is exist [00:10:58]produce_requested_data [00:10:58]requested_item fm.sale.total is exist - process it [00:10:58]SAM_PROTO_GetFMData [00:10:58]wFMCommunicate request_size=4 [00:10:58]MH_SAM_APDU [00:10:58]CAPDU: 80 13 03 00 [00:10:58]Write to MH i2c: E2 08 00 F4 19 80 13 03 00 00 00 00 00 8C [00:10:58]Write i2c OK [00:10:58]MH_I2C_Read... [00:10:58]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:10:58]Read from MH i2c: E2 [00:10:58]MH_I2C_Read... [00:10:58]Read from MH i2c: E2 FD 00 [00:10:58]MH_I2C_Read... [00:10:58]Read from MH i2c: E2 FD 00 F4 19 00 C5 04 85 04 C1 04 6E 04 04 00 C3 92 01 00 69 04 A3 00 6F 04 04 00 6E 8E 01 00 B1 04 05 00 99 FC A3 3C 04 70 04 05 00 94 41 19 59 03 72 04 04 00 05 BB 8A E3 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 F7 D9 32 73 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 AB 70 99 09 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9C 00 6F 04 04 00 55 04 00 00 B1 04 04 00 58 9A 0E 18 70 04 04 00 58 9A 0E 18 72 04 00 00 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 06 0E 8E 02 EF 03 09 90 00 51 [00:10:58]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 C3 92 01 00 69 04 A3 00 6F 04 04 00 6E 8E 01 00 B1 04 05 00 99 FC A3 3C 04 70 04 05 00 94 41 19 59 03 72 04 04 00 05 BB 8A E3 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 F7 D9 32 73 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 AB 70 99 09 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9C 00 6F 04 04 00 55 04 00 00 B1 04 04 00 58 9A 0E 18 70 04 04 00 58 9A 0E 18 72 04 00 00 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 06 0E 8E 02 EF 03 09 90 00 [00:10:58]wFMCommunicate OK [00:10:58]wFMCommunicate request_size=4 [00:10:58]MH_SAM_APDU [00:10:58]CAPDU: 80 17 00 00 [00:10:58]Write to MH i2c: E2 08 00 F5 19 80 17 00 00 00 00 00 00 8E [00:10:58]Write i2c OK [00:10:58]MH_I2C_Read... [00:10:59]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:10:59]Read from MH i2c: E2 [00:10:59]MH_I2C_Read... [00:10:59]Read from MH i2c: E2 FD 00 [00:10:59]MH_I2C_Read... [00:10:59]Read from MH i2c: E2 FD 00 F5 19 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 DB 80 36 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 D5 [00:10:59]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 DB 80 36 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:10:59]wFMCommunicate OK [00:10:59]wFMCommunicate request_size=4 [00:10:59]MH_SAM_APDU [00:10:59]CAPDU: 80 17 00 00 [00:10:59]Write to MH i2c: E2 08 00 F6 19 80 17 00 00 00 00 00 00 8F [00:10:59]Write i2c OK [00:10:59]MH_I2C_Read... [00:10:59]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:10:59]Read from MH i2c: E2 [00:10:59]MH_I2C_Read... [00:10:59]Read from MH i2c: E2 FD 00 [00:10:59]MH_I2C_Read... [00:10:59]Read from MH i2c: E2 FD 00 F6 19 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 A1 [00:10:59]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:10:59]wFMCommunicate OK [00:10:59]wFMCommunicate request_size=4 [00:10:59]MH_SAM_APDU [00:10:59]CAPDU: 80 17 00 00 [00:10:59]Write to MH i2c: E2 08 00 F7 19 80 17 00 00 00 00 00 00 90 [00:10:59]Write i2c OK [00:10:59]MH_I2C_Read... [00:10:59]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:10:59]Read from MH i2c: E2 [00:10:59]MH_I2C_Read... [00:10:59]Read from MH i2c: E2 FD 00 [00:10:59]MH_I2C_Read... [00:10:59]Read from MH i2c: E2 FD 00 F7 19 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 1C [00:10:59]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:10:59]wFMCommunicate OK [00:10:59]wFMCommunicate request_size=4 [00:10:59]MH_SAM_APDU [00:10:59]CAPDU: 80 17 00 00 [00:10:59]Write to MH i2c: E2 08 00 F8 19 80 17 00 00 00 00 00 00 91 [00:10:59]Write i2c OK [00:10:59]MH_I2C_Read... [00:10:59]OFD Sender: No OFD packet to send [00:10:59]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [00:10:59]Read from MH i2c: E2 [00:10:59]MH_I2C_Read... [00:10:59]Read from MH i2c: E2 E2 00 [00:10:59]MH_I2C_Read... [00:10:59]Read from MH i2c: E2 E2 00 F8 19 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 6F [00:10:59]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:10:59]wFMCommunicate OK [00:10:59]SAM_PROTO_GetFMData done [00:10:59]requested_item fm.sale_refund.total is exist - process it [00:10:59]requested_item fm.buy.total is exist - process it [00:10:59]requested_item shift.sale.total is exist - process it [00:10:59]SAM_PROTO_GetShiftData [00:10:59]wFMCommunicate request_size=4 [00:10:59]MH_SAM_APDU [00:10:59]CAPDU: 80 13 02 00 [00:10:59]Write to MH i2c: E2 08 00 F9 19 80 13 02 00 00 00 00 00 90 [00:10:59]Write i2c OK [00:10:59]MH_I2C_Read... [00:11:00]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:11:00]Read from MH i2c: E2 [00:11:00]MH_I2C_Read... [00:11:00]Read from MH i2c: E2 FD 00 [00:11:00]MH_I2C_Read... [00:11:00]Read from MH i2c: E2 FD 00 F9 19 00 BB 04 AA 04 B7 04 6E 04 04 00 F3 00 00 00 69 04 9E 00 6F 04 04 00 F0 00 00 00 B1 04 04 00 6B 2A 58 02 70 04 04 00 C4 AA BC 01 72 04 03 00 A7 7F 9B 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 57 BF 3F 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 CE 4F 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 03 00 00 00 B1 04 03 00 CC C1 08 70 04 03 00 CC C1 08 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 1A EE EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 08 [00:11:00]RAPDU: BB 04 AA 04 B7 04 6E 04 04 00 F3 00 00 00 69 04 9E 00 6F 04 04 00 F0 00 00 00 B1 04 04 00 6B 2A 58 02 70 04 04 00 C4 AA BC 01 72 04 03 00 A7 7F 9B 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 57 BF 3F 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 CE 4F 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 03 00 00 00 B1 04 03 00 CC C1 08 70 04 03 00 CC C1 08 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 1A EE EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 [00:11:00]wFMCommunicate OK [00:11:00]wFMCommunicate request_size=4 [00:11:00]MH_SAM_APDU [00:11:00]CAPDU: 80 17 00 00 [00:11:00]Write to MH i2c: E2 08 00 FA 19 80 17 00 00 00 00 00 00 93 [00:11:00]Write i2c OK [00:11:00]MH_I2C_Read... [00:11:00]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:11:00]Read from MH i2c: E2 [00:11:00]MH_I2C_Read... [00:11:00]Read from MH i2c: E2 FD 00 [00:11:00]MH_I2C_Read... [00:11:00]Read from MH i2c: E2 FD 00 FA 19 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 D7 13 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 27 [00:11:00]RAPDU: 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 D7 13 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:11:00]wFMCommunicate OK [00:11:00]wFMCommunicate request_size=4 [00:11:00]MH_SAM_APDU [00:11:00]CAPDU: 80 17 00 00 [00:11:00]Write to MH i2c: E2 08 00 FB 19 80 17 00 00 00 00 00 00 94 [00:11:00]Write i2c OK [00:11:00]MH_I2C_Read... [00:11:00]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:11:00]Read from MH i2c: E2 [00:11:00]MH_I2C_Read... [00:11:00]Read from MH i2c: E2 FD 00 [00:11:00]MH_I2C_Read... [00:11:00]Read from MH i2c: E2 FD 00 FB 19 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 C0 [00:11:00]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 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 90 00 [00:11:00]wFMCommunicate OK [00:11:00]wFMCommunicate request_size=4 [00:11:00]MH_SAM_APDU [00:11:00]CAPDU: 80 17 00 00 [00:11:00]Write to MH i2c: E2 08 00 FC 19 80 17 00 00 00 00 00 00 95 [00:11:00]Write i2c OK [00:11:00]MH_I2C_Read... [00:11:01]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:11:01]Read from MH i2c: E2 [00:11:01]MH_I2C_Read... [00:11:01]Read from MH i2c: E2 FD 00 [00:11:01]MH_I2C_Read... [00:11:01]Read from MH i2c: E2 FD 00 FC 19 00 00 00 EF 03 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 90 00 0A [00:11:01]RAPDU: 00 00 EF 03 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 90 00 [00:11:01]wFMCommunicate OK [00:11:01]wFMCommunicate request_size=4 [00:11:01]MH_SAM_APDU [00:11:01]CAPDU: 80 17 00 00 [00:11:01]Write to MH i2c: E2 08 00 FD 19 80 17 00 00 00 00 00 00 96 [00:11:01]Write i2c OK [00:11:01]MH_I2C_Read... [00:11:01]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 213! [00:11:01]Read from MH i2c: E2 [00:11:01]MH_I2C_Read... [00:11:01]Read from MH i2c: E2 D8 00 [00:11:01]MH_I2C_Read... [00:11:01]Read from MH i2c: E2 D8 00 FD 19 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 7D [00:11:01]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:11:01]wFMCommunicate OK [00:11:01]SAM_PROTO_GetShiftData done [00:11:01]requested_item shift.sale.total_cash is exist - process it [00:11:01]requested_item shift.sale_refund.total is exist - process it [00:11:01]requested_item shift.sale_refund.total_cash is exist - process it [00:11:01]requested_item shift.buy.total is exist - process it [00:11:01]requested_item shift.buy.total_cash is exist - process it [00:11:01]produce_requested_data done [00:11:01]produce_requested_data return {"fm.sale.total":181972491.77,"fm.sale_refund.total":4036102.00,"fm.buy.total":0.00,"shift.sale.total":393324.59,"shift.sale.total_cash":291417.00,"shift.sale_refund.total":5739.00,"shift.sale_refund.total_cash":5739.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:11:01]process_action_free get_value [00:11:01]json_value_free [00:11:01]json_value_free done [00:11:01]process_json_proto returns [00:11:01]Send response to host [00:11:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":181972491.77,"fm.sale_refund.total":4036102.00,"fm.buy.total":0.00,"shift.sale.total":393324.59,"shift.sale.total_cash":291417.00,"shift.sale_refund.total":5739.00,"shift.sale_refund.total_cash":5739.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:11:01]free response buf [00:11:01]execute_script done [00:11:01]execute_script returns [00:11:01]free content buf [00:11:01]Sock 9.Close socket [00:11:01]Sock 9.Thread stoped [00:11:01]accept exits with 8 [00:11:01]New connection [00:11:01]New thread 3066797412 created [00:11:01]Thread 3066940772 joined [00:11:01]Waiting for new connection... [00:11:01] Sock 8.Parse request [00:11:01]Sock 8.Check first char [00:11:01]Sock 8.First char is OK [00:11:01]request: POST /json_proto HTTP/1.0 [00:11:01]Method: POST [00:11:01]URL: /json_proto [00:11:01]Method is POST - this is cgi request [00:11:01]url: /json_proto [00:11:01]query_string will be loaded in cgi processing [00:11:01]execute_cgi json_proto POST (null) [00:11:01]execute_cgi path=json_proto method=POST [00:11:01]POST find Content-Length [00:11:01]Host: 172.17.38.133:8080 [00:11:01]Content-Length: 331 [00:11:01]Content-Type: application/json [00:11:01] [00:11:01]POST finish read [00:11:01]Found Content-Length = 331 [00:11:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:11:01]execute_script... [00:11:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:11:01]POST & json_proto [00:11:01]process_json_proto [00:11:01]json parsed OK: [00:11:01]protocol is kg_v1.0 [00:11:01]action value=get_value [00:11:01]process_action get_value [00:11:01]cmd_get_value [00:11:01]process_action get_value done [00:11:01]requested_data is exist [00:11:01]produce_requested_data [00:11:01]requested_item fm.sale.total is exist - process it [00:11:01]SAM_PROTO_GetFMData [00:11:01]wFMCommunicate request_size=4 [00:11:01]MH_SAM_APDU [00:11:01]CAPDU: 80 13 03 00 [00:11:01]Write to MH i2c: E2 08 00 FE 19 80 13 03 00 00 00 00 00 96 [00:11:01]Write i2c OK [00:11:01]MH_I2C_Read... [00:11:02]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:11:02]Read from MH i2c: E2 [00:11:02]MH_I2C_Read... [00:11:02]Read from MH i2c: E2 FD 00 [00:11:02]MH_I2C_Read... [00:11:02]Read from MH i2c: E2 FD 00 FE 19 00 C5 04 85 04 C1 04 6E 04 04 00 C3 92 01 00 69 04 A3 00 6F 04 04 00 6E 8E 01 00 B1 04 05 00 99 FC A3 3C 04 70 04 05 00 94 41 19 59 03 72 04 04 00 05 BB 8A E3 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 F7 D9 32 73 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 AB 70 99 09 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9C 00 6F 04 04 00 55 04 00 00 B1 04 04 00 58 9A 0E 18 70 04 04 00 58 9A 0E 18 72 04 00 00 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 06 0E 8E 02 EF 03 09 90 00 5B [00:11:02]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 C3 92 01 00 69 04 A3 00 6F 04 04 00 6E 8E 01 00 B1 04 05 00 99 FC A3 3C 04 70 04 05 00 94 41 19 59 03 72 04 04 00 05 BB 8A E3 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 F7 D9 32 73 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 AB 70 99 09 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9C 00 6F 04 04 00 55 04 00 00 B1 04 04 00 58 9A 0E 18 70 04 04 00 58 9A 0E 18 72 04 00 00 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 06 0E 8E 02 EF 03 09 90 00 [00:11:02]wFMCommunicate OK [00:11:02]wFMCommunicate request_size=4 [00:11:02]MH_SAM_APDU [00:11:02]CAPDU: 80 17 00 00 [00:11:02]Write to MH i2c: E2 08 00 FF 19 80 17 00 00 00 00 00 00 98 [00:11:02]Write i2c OK [00:11:02]MH_I2C_Read... [00:11:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:11:02]Read from MH i2c: E2 [00:11:02]MH_I2C_Read... [00:11:02]Read from MH i2c: E2 FD 00 [00:11:02]MH_I2C_Read... [00:11:02]Read from MH i2c: E2 FD 00 FF 19 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 DB 80 36 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 DF [00:11:02]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 DB 80 36 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:11:02]wFMCommunicate OK [00:11:02]wFMCommunicate request_size=4 [00:11:02]MH_SAM_APDU [00:11:02]CAPDU: 80 17 00 00 [00:11:02]Write to MH i2c: E2 08 00 00 1A 80 17 00 00 00 00 00 00 9A [00:11:02]Write i2c OK [00:11:02]MH_I2C_Read... [00:11:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:11:02]Read from MH i2c: E2 [00:11:02]MH_I2C_Read... [00:11:02]Read from MH i2c: E2 FD 00 [00:11:02]MH_I2C_Read... [00:11:02]Read from MH i2c: E2 FD 00 00 1A 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 AC [00:11:02]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:11:02]wFMCommunicate OK [00:11:02]wFMCommunicate request_size=4 [00:11:02]MH_SAM_APDU [00:11:02]CAPDU: 80 17 00 00 [00:11:02]Write to MH i2c: E2 08 00 01 1A 80 17 00 00 00 00 00 00 9B [00:11:02]Write i2c OK [00:11:02]MH_I2C_Read... [00:11:03]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:11:03]Read from MH i2c: E2 [00:11:03]MH_I2C_Read... [00:11:03]Read from MH i2c: E2 FD 00 [00:11:03]MH_I2C_Read... [00:11:03]Read from MH i2c: E2 FD 00 01 1A 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 27 [00:11:03]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:11:03]wFMCommunicate OK [00:11:03]wFMCommunicate request_size=4 [00:11:03]MH_SAM_APDU [00:11:03]CAPDU: 80 17 00 00 [00:11:03]Write to MH i2c: E2 08 00 02 1A 80 17 00 00 00 00 00 00 9C [00:11:03]Write i2c OK [00:11:03]MH_I2C_Read... [00:11:03]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [00:11:03]Read from MH i2c: E2 [00:11:03]MH_I2C_Read... [00:11:03]Read from MH i2c: E2 E2 00 [00:11:03]MH_I2C_Read... [00:11:03]Read from MH i2c: E2 E2 00 02 1A 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 7A [00:11:03]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:11:03]wFMCommunicate OK [00:11:03]SAM_PROTO_GetFMData done [00:11:03]requested_item fm.sale_refund.total is exist - process it [00:11:03]requested_item fm.buy.total is exist - process it [00:11:03]requested_item shift.sale.total is exist - process it [00:11:03]SAM_PROTO_GetShiftData [00:11:03]wFMCommunicate request_size=4 [00:11:03]MH_SAM_APDU [00:11:03]CAPDU: 80 13 02 00 [00:11:03]Write to MH i2c: E2 08 00 03 1A 80 13 02 00 00 00 00 00 9B [00:11:03]Write i2c OK [00:11:03]MH_I2C_Read... [00:11:04]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:11:04]Read from MH i2c: E2 [00:11:04]MH_I2C_Read... [00:11:04]Read from MH i2c: E2 FD 00 [00:11:04]MH_I2C_Read... [00:11:04]Read from MH i2c: E2 FD 00 03 1A 00 BB 04 AA 04 B7 04 6E 04 04 00 F3 00 00 00 69 04 9E 00 6F 04 04 00 F0 00 00 00 B1 04 04 00 6B 2A 58 02 70 04 04 00 C4 AA BC 01 72 04 03 00 A7 7F 9B 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 57 BF 3F 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 CE 4F 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 03 00 00 00 B1 04 03 00 CC C1 08 70 04 03 00 CC C1 08 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 1A EE EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 13 [00:11:04]RAPDU: BB 04 AA 04 B7 04 6E 04 04 00 F3 00 00 00 69 04 9E 00 6F 04 04 00 F0 00 00 00 B1 04 04 00 6B 2A 58 02 70 04 04 00 C4 AA BC 01 72 04 03 00 A7 7F 9B 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 57 BF 3F 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 CE 4F 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 03 00 00 00 B1 04 03 00 CC C1 08 70 04 03 00 CC C1 08 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 1A EE EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 [00:11:04]wFMCommunicate OK [00:11:04]wFMCommunicate request_size=4 [00:11:04]MH_SAM_APDU [00:11:04]CAPDU: 80 17 00 00 [00:11:04]Write to MH i2c: E2 08 00 04 1A 80 17 00 00 00 00 00 00 9E [00:11:04]Write i2c OK [00:11:04]MH_I2C_Read... [00:11:04]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:11:04]Read from MH i2c: E2 [00:11:04]MH_I2C_Read... [00:11:04]Read from MH i2c: E2 FD 00 [00:11:04]MH_I2C_Read... [00:11:04]Read from MH i2c: E2 FD 00 04 1A 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 D7 13 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 32 [00:11:04]RAPDU: 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 D7 13 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:11:04]wFMCommunicate OK [00:11:04]wFMCommunicate request_size=4 [00:11:04]MH_SAM_APDU [00:11:04]CAPDU: 80 17 00 00 [00:11:04]Write to MH i2c: E2 08 00 05 1A 80 17 00 00 00 00 00 00 9F [00:11:04]Write i2c OK [00:11:04]MH_I2C_Read... [00:11:04]OFD Sender: No OFD packet to send [00:11:04]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:11:04]Read from MH i2c: E2 [00:11:04]MH_I2C_Read... [00:11:04]Read from MH i2c: E2 FD 00 [00:11:04]MH_I2C_Read... [00:11:04]Read from MH i2c: E2 FD 00 05 1A 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 CB [00:11:04]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 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 90 00 [00:11:05]wFMCommunicate OK [00:11:05]wFMCommunicate request_size=4 [00:11:05]MH_SAM_APDU [00:11:05]CAPDU: 80 17 00 00 [00:11:05]Write to MH i2c: E2 08 00 06 1A 80 17 00 00 00 00 00 00 A0 [00:11:05]Write i2c OK [00:11:05]MH_I2C_Read... [00:11:05]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:11:05]Read from MH i2c: E2 [00:11:05]MH_I2C_Read... [00:11:05]Read from MH i2c: E2 FD 00 [00:11:05]MH_I2C_Read... [00:11:05]Read from MH i2c: E2 FD 00 06 1A 00 00 00 EF 03 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 90 00 15 [00:11:05]RAPDU: 00 00 EF 03 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 90 00 [00:11:05]wFMCommunicate OK [00:11:05]wFMCommunicate request_size=4 [00:11:05]MH_SAM_APDU [00:11:05]CAPDU: 80 17 00 00 [00:11:05]Write to MH i2c: E2 08 00 07 1A 80 17 00 00 00 00 00 00 A1 [00:11:05]Write i2c OK [00:11:05]MH_I2C_Read... [00:11:05]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 213! [00:11:05]Read from MH i2c: E2 [00:11:05]MH_I2C_Read... [00:11:05]Read from MH i2c: E2 D8 00 [00:11:05]MH_I2C_Read... [00:11:05]Read from MH i2c: E2 D8 00 07 1A 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 88 [00:11:05]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:11:05]wFMCommunicate OK [00:11:05]SAM_PROTO_GetShiftData done [00:11:05]requested_item shift.sale.total_cash is exist - process it [00:11:05]requested_item shift.sale_refund.total is exist - process it [00:11:05]requested_item shift.sale_refund.total_cash is exist - process it [00:11:05]requested_item shift.buy.total is exist - process it [00:11:05]requested_item shift.buy.total_cash is exist - process it [00:11:05]produce_requested_data done [00:11:05]produce_requested_data return {"fm.sale.total":181972491.77,"fm.sale_refund.total":4036102.00,"fm.buy.total":0.00,"shift.sale.total":393324.59,"shift.sale.total_cash":291417.00,"shift.sale_refund.total":5739.00,"shift.sale_refund.total_cash":5739.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:11:05]process_action_free get_value [00:11:05]json_value_free [00:11:05]json_value_free done [00:11:05]process_json_proto returns [00:11:05]Send response to host [00:11:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":181972491.77,"fm.sale_refund.total":4036102.00,"fm.buy.total":0.00,"shift.sale.total":393324.59,"shift.sale.total_cash":291417.00,"shift.sale_refund.total":5739.00,"shift.sale_refund.total_cash":5739.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:11:05]free response buf [00:11:05]execute_script done [00:11:05]execute_script returns [00:11:05]free content buf [00:11:05]Sock 8.Close socket [00:11:05]Sock 8.Thread stoped [00:11:05]accept exits with 9 [00:11:05]New connection [00:11:05]New thread 3066940772 created [00:11:05]Thread 3066797412 joined [00:11:05]Waiting for new connection... [00:11:05] Sock 9.Parse request [00:11:05]Sock 9.Check first char [00:11:05]Sock 9.First char is OK [00:11:05]request: POST /json_proto HTTP/1.0 [00:11:05]Method: POST [00:11:05]URL: /json_proto [00:11:05]Method is POST - this is cgi request [00:11:05]url: /json_proto [00:11:05]query_string will be loaded in cgi processing [00:11:05]execute_cgi json_proto POST (null) [00:11:05]execute_cgi path=json_proto method=POST [00:11:05]POST find Content-Length [00:11:05]Host: 172.17.38.133:8080 [00:11:05]Content-Length: 269 [00:11:05]Content-Type: application/json [00:11:05] [00:11:05]POST finish read [00:11:05]Found Content-Length = 269 [00:11:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:11:05]execute_script... [00:11:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:11:05]POST & json_proto [00:11:05]process_json_proto [00:11:05]json parsed OK: [00:11:05]protocol is kg_v1.0 [00:11:05]action value=x_report [00:11:05]process_action x_report [00:11:05]cmd_x_report [00:11:05]MH_GetDate [00:11:05]Write to MH i2c: F0 00 00 08 1A 11 [00:11:05]Write i2c OK [00:11:05]MH_I2C_Read... [00:11:05]Read from MH i2c: F0 [00:11:05]MH_I2C_Read... [00:11:05]Read from MH i2c: F0 09 00 [00:11:05]MH_I2C_Read... [00:11:05]Read from MH i2c: F0 09 00 08 1A 00 9C 73 73 66 BD 8F 7C 64 2E [00:11:05]GetLastDocTimeStamp 1718839036 [00:11:05]current date 1718842268 [00:11:05]FM_GetShiftState [00:11:05]SAM_PROTO_GetShiftState [00:11:05]wFMCommunicate request_size=4 [00:11:05]MH_SAM_APDU [00:11:05]CAPDU: 80 13 01 00 [00:11:05]Write to MH i2c: E2 08 00 09 1A 80 13 01 00 00 00 00 00 A0 [00:11:05]Write i2c OK [00:11:05]MH_I2C_Read... [00:11:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:11:06]Read from MH i2c: E2 [00:11:06]MH_I2C_Read... [00:11:06]Read from MH i2c: E2 0E 00 [00:11:06]MH_I2C_Read... [00:11:06]Read from MH i2c: E2 0E 00 09 1A 00 09 00 01 04 26 72 66 00 00 00 00 90 00 AE [00:11:06]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [00:11:06]wFMCommunicate OK [00:11:06]SAM_PROTO_GetShiftState done [00:11:06]FM_GetShiftState done [00:11:06]KKMCreateXReportDocument [00:11:06]Load OK [00:11:06]Malloc new data [00:11:06]MH_GetDate [00:11:06]Write to MH i2c: F0 00 00 0A 1A 13 [00:11:06]Write i2c OK [00:11:06]MH_I2C_Read... [00:11:06]Read from MH i2c: F0 [00:11:06]MH_I2C_Read... [00:11:06]Read from MH i2c: F0 09 00 [00:11:06]MH_I2C_Read... [00:11:06]Read from MH i2c: F0 09 00 0A 1A 00 9C 73 73 66 BD 8F 7C 64 30 [00:11:06]Malloc new data [00:11:06]Malloc new data [00:11:06]wFMCommunicate request_size=4 [00:11:06]MH_SAM_APDU [00:11:06]CAPDU: 80 11 00 00 [00:11:06]Write to MH i2c: E2 08 00 0B 1A 80 11 00 00 00 00 00 00 9F [00:11:06]Write i2c OK [00:11:06]MH_I2C_Read... [00:11:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:11:06]Read from MH i2c: E2 [00:11:06]MH_I2C_Read... [00:11:06]Read from MH i2c: E2 17 00 [00:11:06]MH_I2C_Read... [00:11:06]Read from MH i2c: E2 17 00 0B 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 F2 [00:11:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [00:11:06]wFMCommunicate OK [00:11:06]SAM_PROTO_GetFieldsCounters [00:11:06]wFMCommunicate request_size=4 [00:11:06]MH_SAM_APDU [00:11:06]CAPDU: 80 13 00 00 [00:11:06]Write to MH i2c: E2 08 00 0C 1A 80 13 00 00 00 00 00 00 A2 [00:11:06]Write i2c OK [00:11:06]MH_I2C_Read... [00:11:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:11:06]Read from MH i2c: E2 [00:11:06]MH_I2C_Read... [00:11:06]Read from MH i2c: E2 62 00 [00:11:06]MH_I2C_Read... [00:11:06]Read from MH i2c: E2 62 00 0C 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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 85 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 F3 00 00 00 5E 04 04 00 F3 00 00 00 57 04 04 00 F4 00 00 00 19 04 04 00 00 00 00 00 90 00 1F [00:11:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 85 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 F3 00 00 00 5E 04 04 00 F3 00 00 00 57 04 04 00 F4 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:11:06]wFMCommunicate OK [00:11:06]SAM_PROTO_GetFieldsCounters done [00:11:06]Malloc new data [00:11:06]Malloc new data [00:11:06]Malloc new data [00:11:06]KKMCreateXReportDocument OK [00:11:06]KKMSetXReportData OK [00:11:06]KKMPrepareXReportFMData [00:11:06]SAM_PROTO_GetShiftData [00:11:06]wFMCommunicate request_size=4 [00:11:06]MH_SAM_APDU [00:11:06]CAPDU: 80 13 02 00 [00:11:06]Write to MH i2c: E2 08 00 0D 1A 80 13 02 00 00 00 00 00 A5 [00:11:06]Write i2c OK [00:11:06]MH_I2C_Read... [00:11:06]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:11:06]Read from MH i2c: E2 [00:11:06]MH_I2C_Read... [00:11:06]Read from MH i2c: E2 FD 00 [00:11:06]MH_I2C_Read... [00:11:06]Read from MH i2c: E2 FD 00 0D 1A 00 BB 04 AA 04 B7 04 6E 04 04 00 F3 00 00 00 69 04 9E 00 6F 04 04 00 F0 00 00 00 B1 04 04 00 6B 2A 58 02 70 04 04 00 C4 AA BC 01 72 04 03 00 A7 7F 9B 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 57 BF 3F 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 CE 4F 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 03 00 00 00 B1 04 03 00 CC C1 08 70 04 03 00 CC C1 08 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 1A EE EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 1D [00:11:06]RAPDU: BB 04 AA 04 B7 04 6E 04 04 00 F3 00 00 00 69 04 9E 00 6F 04 04 00 F0 00 00 00 B1 04 04 00 6B 2A 58 02 70 04 04 00 C4 AA BC 01 72 04 03 00 A7 7F 9B 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 57 BF 3F 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 CE 4F 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 03 00 00 00 B1 04 03 00 CC C1 08 70 04 03 00 CC C1 08 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 1A EE EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 [00:11:07]wFMCommunicate OK [00:11:07]wFMCommunicate request_size=4 [00:11:07]MH_SAM_APDU [00:11:07]CAPDU: 80 17 00 00 [00:11:07]Write to MH i2c: E2 08 00 0E 1A 80 17 00 00 00 00 00 00 A8 [00:11:07]Write i2c OK [00:11:07]MH_I2C_Read... [00:11:07]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:11:07]Read from MH i2c: E2 [00:11:07]MH_I2C_Read... [00:11:07]Read from MH i2c: E2 FD 00 [00:11:07]MH_I2C_Read... [00:11:07]Read from MH i2c: E2 FD 00 0E 1A 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 D7 13 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 3C [00:11:07]RAPDU: 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 D7 13 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:11:07]wFMCommunicate OK [00:11:07]wFMCommunicate request_size=4 [00:11:07]MH_SAM_APDU [00:11:07]CAPDU: 80 17 00 00 [00:11:07]Write to MH i2c: E2 08 00 0F 1A 80 17 00 00 00 00 00 00 A9 [00:11:07]Write i2c OK [00:11:07]MH_I2C_Read... [00:11:07]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:11:07]Read from MH i2c: E2 [00:11:07]MH_I2C_Read... [00:11:07]Read from MH i2c: E2 FD 00 [00:11:07]MH_I2C_Read... [00:11:07]Read from MH i2c: E2 FD 00 0F 1A 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 D5 [00:11:07]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 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 90 00 [00:11:07]wFMCommunicate OK [00:11:07]wFMCommunicate request_size=4 [00:11:07]MH_SAM_APDU [00:11:07]CAPDU: 80 17 00 00 [00:11:07]Write to MH i2c: E2 08 00 10 1A 80 17 00 00 00 00 00 00 AA [00:11:07]Write i2c OK [00:11:07]MH_I2C_Read... [00:11:08]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:11:08]Read from MH i2c: E2 [00:11:08]MH_I2C_Read... [00:11:08]Read from MH i2c: E2 FD 00 [00:11:08]MH_I2C_Read... [00:11:08]Read from MH i2c: E2 FD 00 10 1A 00 00 00 EF 03 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 90 00 1F [00:11:08]RAPDU: 00 00 EF 03 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 90 00 [00:11:08]wFMCommunicate OK [00:11:08]wFMCommunicate request_size=4 [00:11:08]MH_SAM_APDU [00:11:08]CAPDU: 80 17 00 00 [00:11:08]Write to MH i2c: E2 08 00 11 1A 80 17 00 00 00 00 00 00 AB [00:11:08]Write i2c OK [00:11:08]MH_I2C_Read... [00:11:08]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 213! [00:11:08]Read from MH i2c: E2 [00:11:08]MH_I2C_Read... [00:11:08]Read from MH i2c: E2 D8 00 [00:11:08]MH_I2C_Read... [00:11:08]Read from MH i2c: E2 D8 00 11 1A 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 92 [00:11:08]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:11:08]wFMCommunicate OK [00:11:08]SAM_PROTO_GetShiftData done [00:11:08]1194 (1207) - счетчики итогов смены [00:11:08] 1134 (4) - 243 - количество чеков со всеми признаками расчетов [00:11:08] 1129 (158) - счетчики операций «приход» [00:11:08] 1135 (4) - 240 - количество чеков по признаку расчетов [00:11:08] 1201 (4) - 393324.59 - общая итоговая сумма в чеках [00:11:08] 1136 (4) - 291417.00 - итоговая сумма в чеках наличными [00:11:08] 1138 (3) - 101907.59 - итоговая сумма в чеках безналичными [00:11:08] 1024 (123) - суммы налогов [00:11:08] 1006 (9) - суммы НДС [00:11:08] 1010 (1) - 0% - код ставки НДС [00:11:08] 1011 (0) - 0.00 - сумма НДС по ставке [00:11:08] 1006 (12) - суммы НДС [00:11:08] 1010 (1) - 12% - код ставки НДС [00:11:08] 1011 (3) - 41777.51 - сумма НДС по ставке [00:11:08] 1007 (9) - суммы НСП [00:11:08] 1014 (1) - 0% - код ставки НСП [00:11:08] 1015 (0) - 0.00 - сумма НСП по ставке [00:11:08] 1007 (12) - суммы НСП [00:11:08] 1014 (1) - 1% - код ставки НСП [00:11:08] 1015 (3) - 3481.10 - сумма НСП по ставке [00:11:08] 1007 (9) - суммы НСП [00:11:08] 1014 (1) - 2% - код ставки НСП [00:11:08] 1015 (0) - 0.00 - сумма НСП по ставке [00:11:08] 1007 (9) - суммы НСП [00:11:08] 1014 (1) - 3% - код ставки НСП [00:11:08] 1015 (0) - 0.00 - сумма НСП по ставке [00:11:08] 1007 (9) - суммы НСП [00:11:08] 1014 (1) - 5% - код ставки НСП [00:11:08] 1015 (0) - 0.00 - сумма НСП по ставке [00:11:08] 1007 (9) - суммы НСП [00:11:08] 1014 (1) - 0,50% - код ставки НСП [00:11:08] 1015 (0) - 0.00 - сумма НСП по ставке [00:11:08] 1007 (9) - суммы НСП [00:11:08] 1014 (1) - 1,50% - код ставки НСП [00:11:08] 1015 (0) - 0.00 - сумма НСП по ставке [00:11:08] 1130 (151) - счетчики операций «возврат прихода» [00:11:08] 1135 (4) - 3 - количество чеков по признаку расчетов [00:11:08] 1201 (3) - 5739.00 - общая итоговая сумма в чеках [00:11:08] 1136 (3) - 5739.00 - итоговая сумма в чеках наличными [00:11:08] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:11:08] 1024 (121) - суммы налогов [00:11:08] 1006 (9) - суммы НДС [00:11:08] 1010 (1) - 0% - код ставки НДС [00:11:08] 1011 (0) - 0.00 - сумма НДС по ставке [00:11:08] 1006 (11) - суммы НДС [00:11:08] 1010 (1) - 12% - код ставки НДС [00:11:08] 1011 (2) - 609.54 - сумма НДС по ставке [00:11:08] 1007 (9) - суммы НСП [00:11:08] 1014 (1) - 0% - код ставки НСП [00:11:08] 1015 (0) - 0.00 - сумма НСП по ставке [00:11:08] 1007 (11) - суммы НСП [00:11:08] 1014 (1) - 1% - код ставки НСП [00:11:08] 1015 (2) - 50.79 - сумма НСП по ставке [00:11:08] 1007 (9) - суммы НСП [00:11:08] 1014 (1) - 2% - код ставки НСП [00:11:08] 1015 (0) - 0.00 - сумма НСП по ставке [00:11:08] 1007 (9) - суммы НСП [00:11:08] 1014 (1) - 3% - код ставки НСП [00:11:08] 1015 (0) - 0.00 - сумма НСП по ставке [00:11:08] 1007 (9) - суммы НСП [00:11:08] 1014 (1) - 5% - код ставки НСП [00:11:08] 1015 (0) - 0.00 - сумма НСП по ставке [00:11:08] 1007 (9) - суммы НСП [00:11:08] 1014 (1) - 0,50% - код ставки НСП [00:11:08] 1015 (0) - 0.00 - сумма НСП по ставке [00:11:08] 1007 (9) - суммы НСП [00:11:08] 1014 (1) - 1,50% - код ставки НСП [00:11:08] 1015 (0) - 0.00 - сумма НСП по ставке [00:11:08] 1131 (141) - счетчики операций «расход» [00:11:08] 1135 (4) - 0 - количество чеков по признаку расчетов [00:11:08] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:11:08] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:11:08] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:11:08] 1024 (117) - суммы налогов [00:11:08] 1006 (9) - суммы НДС [00:11:08] 1010 (1) - 0% - код ставки НДС [00:11:08] 1011 (0) - 0.00 - сумма НДС по ставке [00:11:08] 1006 (9) - суммы НДС [00:11:08] 1010 (1) - 12% - код ставки НДС [00:11:08] 1011 (0) - 0.00 - сумма НДС по ставке [00:11:08] 1007 (9) - суммы НСП [00:11:08] 1014 (1) - 0% - код ставки НСП [00:11:08] 1015 (0) - 0.00 - сумма НСП по ставке [00:11:08] 1007 (9) - суммы НСП [00:11:08] 1014 (1) - 1% - код ставки НСП [00:11:08] 1015 (0) - 0.00 - сумма НСП по ставке [00:11:08] 1007 (9) - суммы НСП [00:11:08] 1014 (1) - 2% - код ставки НСП [00:11:08] 1015 (0) - 0.00 - сумма НСП по ставке [00:11:08] 1007 (9) - суммы НСП [00:11:08] 1014 (1) - 3% - код ставки НСП [00:11:08] 1015 (0) - 0.00 - сумма НСП по ставке [00:11:08] 1007 (9) - суммы НСП [00:11:08] 1014 (1) - 5% - код ставки НСП [00:11:09] 1015 (0) - 0.00 - сумма НСП по ставке [00:11:09] 1007 (9) - суммы НСП [00:11:09] 1014 (1) - 0,50% - код ставки НСП [00:11:09] 1015 (0) - 0.00 - сумма НСП по ставке [00:11:09] 1007 (9) - суммы НСП [00:11:09] 1014 (1) - 1,50% - код ставки НСП [00:11:09] 1015 (0) - 0.00 - сумма НСП по ставке [00:11:09] 1132 (141) - счетчики операций «возврат расхода» [00:11:09] 1135 (4) - 0 - количество чеков по признаку расчетов [00:11:09] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:11:09] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:11:09] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:11:09] 1024 (117) - суммы налогов [00:11:09] 1006 (9) - суммы НДС [00:11:09] 1010 (1) - 0% - код ставки НДС [00:11:09] 1011 (0) - 0.00 - сумма НДС по ставке [00:11:09] 1006 (9) - суммы НДС [00:11:09] 1010 (1) - 12% - код ставки НДС [00:11:09] 1011 (0) - 0.00 - сумма НДС по ставке [00:11:09] 1007 (9) - суммы НСП [00:11:09] 1014 (1) - 0% - код ставки НСП [00:11:09] 1015 (0) - 0.00 - сумма НСП по ставке [00:11:09] 1007 (9) - суммы НСП [00:11:09] 1014 (1) - 1% - код ставки НСП [00:11:09] 1015 (0) - 0.00 - сумма НСП по ставке [00:11:09] 1007 (9) - суммы НСП [00:11:09] 1014 (1) - 2% - код ставки НСП [00:11:09] 1015 (0) - 0.00 - сумма НСП по ставке [00:11:09] 1007 (9) - суммы НСП [00:11:09] 1014 (1) - 3% - код ставки НСП [00:11:09] 1015 (0) - 0.00 - сумма НСП по ставке [00:11:09] 1007 (9) - суммы НСП [00:11:09] 1014 (1) - 5% - код ставки НСП [00:11:09] 1015 (0) - 0.00 - сумма НСП по ставке [00:11:09] 1007 (9) - суммы НСП [00:11:09] 1014 (1) - 0,50% - код ставки НСП [00:11:09] 1015 (0) - 0.00 - сумма НСП по ставке [00:11:09] 1007 (9) - суммы НСП [00:11:09] 1014 (1) - 1,50% - код ставки НСП [00:11:09] 1015 (0) - 0.00 - сумма НСП по ставке [00:11:09] 1133 (588) - - счетчики коррекции - не используются [00:11:09]SetTLVBufToDocument [00:11:09]Processing tag 1194 (04AA) [00:11:09]Load OK [00:11:09]SetTLVBufToDocument [00:11:09]Processing tag 1134 (046E) [00:11:09]Malloc new data [00:11:09]Processing tag 1129 (0469) [00:11:09]Load OK [00:11:09]SetTLVBufToDocument [00:11:09]Processing tag 1135 (046F) [00:11:09]Malloc new data [00:11:09]Processing tag 1201 (04B1) [00:11:09]Malloc new data [00:11:09]Processing tag 1136 (0470) [00:11:09]Malloc new data [00:11:09]Processing tag 1138 (0472) [00:11:09]Malloc new data [00:11:09]Processing tag 1024 (0400) [00:11:09]Load OK [00:11:09]SetTLVBufToDocument [00:11:09]Processing tag 1006 (03EE) [00:11:09]Load OK [00:11:09]SetTLVBufToDocument [00:11:09]Processing tag 1010 (03F2) [00:11:09]Malloc new data [00:11:09]Processing tag 1011 (03F3) [00:11:09]Malloc new data [00:11:09]SetTLVBufToDocument err=0 [00:11:09]Processing tag 1006 (03EE) [00:11:09]Load OK [00:11:09]SetTLVBufToDocument [00:11:09]Processing tag 1010 (03F2) [00:11:09]Malloc new data [00:11:09]Processing tag 1011 (03F3) [00:11:09]Malloc new data [00:11:09]SetTLVBufToDocument err=0 [00:11:09]Processing tag 1007 (03EF) [00:11:09]Load OK [00:11:09]SetTLVBufToDocument [00:11:09]Processing tag 1014 (03F6) [00:11:09]Malloc new data [00:11:09]Processing tag 1015 (03F7) [00:11:09]Malloc new data [00:11:09]SetTLVBufToDocument err=0 [00:11:09]Processing tag 1007 (03EF) [00:11:09]Load OK [00:11:09]SetTLVBufToDocument [00:11:09]Processing tag 1014 (03F6) [00:11:09]Malloc new data [00:11:09]Processing tag 1015 (03F7) [00:11:09]Malloc new data [00:11:09]SetTLVBufToDocument err=0 [00:11:09]Processing tag 1007 (03EF) [00:11:09]Load OK [00:11:09]SetTLVBufToDocument [00:11:09]Processing tag 1014 (03F6) [00:11:09]Malloc new data [00:11:09]Processing tag 1015 (03F7) [00:11:09]Malloc new data [00:11:09]SetTLVBufToDocument err=0 [00:11:09]Processing tag 1007 (03EF) [00:11:09]Load OK [00:11:09]SetTLVBufToDocument [00:11:09]Processing tag 1014 (03F6) [00:11:09]Malloc new data [00:11:09]Processing tag 1015 (03F7) [00:11:09]Malloc new data [00:11:09]SetTLVBufToDocument err=0 [00:11:09]Processing tag 1007 (03EF) [00:11:09]Load OK [00:11:09]SetTLVBufToDocument [00:11:09]Processing tag 1014 (03F6) [00:11:09]Malloc new data [00:11:09]Processing tag 1015 (03F7) [00:11:09]Malloc new data [00:11:09]SetTLVBufToDocument err=0 [00:11:09]Processing tag 1007 (03EF) [00:11:09]Load OK [00:11:09]SetTLVBufToDocument [00:11:09]Processing tag 1014 (03F6) [00:11:09]Malloc new data [00:11:09]Processing tag 1015 (03F7) [00:11:09]Malloc new data [00:11:09]SetTLVBufToDocument err=0 [00:11:09]Processing tag 1007 (03EF) [00:11:09]Load OK [00:11:09]SetTLVBufToDocument [00:11:09]Processing tag 1014 (03F6) [00:11:09]Malloc new data [00:11:09]Processing tag 1015 (03F7) [00:11:09]Malloc new data [00:11:09]SetTLVBufToDocument err=0 [00:11:09]SetTLVBufToDocument err=0 [00:11:09]SetTLVBufToDocument err=0 [00:11:09]Processing tag 1130 (046A) [00:11:09]Load OK [00:11:09]SetTLVBufToDocument [00:11:09]Processing tag 1135 (046F) [00:11:09]Malloc new data [00:11:09]Processing tag 1201 (04B1) [00:11:09]Malloc new data [00:11:09]Processing tag 1136 (0470) [00:11:09]Malloc new data [00:11:09]Processing tag 1138 (0472) [00:11:09]Malloc new data [00:11:09]Processing tag 1024 (0400) [00:11:09]Load OK [00:11:09]SetTLVBufToDocument [00:11:09]Processing tag 1006 (03EE) [00:11:09]Load OK [00:11:09]SetTLVBufToDocument [00:11:09]Processing tag 1010 (03F2) [00:11:09]Malloc new data [00:11:09]Processing tag 1011 (03F3) [00:11:09]Malloc new data [00:11:09]SetTLVBufToDocument err=0 [00:11:09]Processing tag 1006 (03EE) [00:11:09]Load OK [00:11:09]SetTLVBufToDocument [00:11:09]Processing tag 1010 (03F2) [00:11:09]Malloc new data [00:11:09]Processing tag 1011 (03F3) [00:11:09]Malloc new data [00:11:09]SetTLVBufToDocument err=0 [00:11:09]Processing tag 1007 (03EF) [00:11:09]Load OK [00:11:09]SetTLVBufToDocument [00:11:09]Processing tag 1014 (03F6) [00:11:09]Malloc new data [00:11:09]Processing tag 1015 (03F7) [00:11:09]Malloc new data [00:11:09]SetTLVBufToDocument err=0 [00:11:09]Processing tag 1007 (03EF) [00:11:09]Load OK [00:11:09]SetTLVBufToDocument [00:11:09]Processing tag 1014 (03F6) [00:11:09]Malloc new data [00:11:09]Processing tag 1015 (03F7) [00:11:09]Malloc new data [00:11:09]SetTLVBufToDocument err=0 [00:11:09]Processing tag 1007 (03EF) [00:11:09]Load OK [00:11:09]SetTLVBufToDocument [00:11:09]Processing tag 1014 (03F6) [00:11:09]Malloc new data [00:11:09]Processing tag 1015 (03F7) [00:11:09]Malloc new data [00:11:09]SetTLVBufToDocument err=0 [00:11:09]Processing tag 1007 (03EF) [00:11:09]Load OK [00:11:09]SetTLVBufToDocument [00:11:09]Processing tag 1014 (03F6) [00:11:09]Malloc new data [00:11:09]Processing tag 1015 (03F7) [00:11:09]Malloc new data [00:11:09]SetTLVBufToDocument err=0 [00:11:09]Processing tag 1007 (03EF) [00:11:09]Load OK [00:11:09]SetTLVBufToDocument [00:11:09]Processing tag 1014 (03F6) [00:11:09]Malloc new data [00:11:09]Processing tag 1015 (03F7) [00:11:09]Malloc new data [00:11:09]SetTLVBufToDocument err=0 [00:11:09]Processing tag 1007 (03EF) [00:11:09]Load OK [00:11:09]SetTLVBufToDocument [00:11:09]Processing tag 1014 (03F6) [00:11:09]Malloc new data [00:11:09]Processing tag 1015 (03F7) [00:11:09]Malloc new data [00:11:09]SetTLVBufToDocument err=0 [00:11:09]Processing tag 1007 (03EF) [00:11:09]Load OK [00:11:09]SetTLVBufToDocument [00:11:09]Processing tag 1014 (03F6) [00:11:09]Malloc new data [00:11:09]Processing tag 1015 (03F7) [00:11:09]Malloc new data [00:11:09]SetTLVBufToDocument err=0 [00:11:09]SetTLVBufToDocument err=0 [00:11:09]SetTLVBufToDocument err=0 [00:11:09]Processing tag 1131 (046B) [00:11:09]Load OK [00:11:09]SetTLVBufToDocument [00:11:09]Processing tag 1135 (046F) [00:11:09]Malloc new data [00:11:09]Processing tag 1201 (04B1) [00:11:09]Malloc new data [00:11:09]Processing tag 1136 (0470) [00:11:09]Malloc new data [00:11:09]Processing tag 1138 (0472) [00:11:09]Malloc new data [00:11:09]Processing tag 1024 (0400) [00:11:09]Load OK [00:11:09]SetTLVBufToDocument [00:11:09]Processing tag 1006 (03EE) [00:11:09]Load OK [00:11:09]SetTLVBufToDocument [00:11:09]Processing tag 1010 (03F2) [00:11:09]Malloc new data [00:11:09]Processing tag 1011 (03F3) [00:11:09]Malloc new data [00:11:09]SetTLVBufToDocument err=0 [00:11:09]Processing tag 1006 (03EE) [00:11:09]Load OK [00:11:09]SetTLVBufToDocument [00:11:09]Processing tag 1010 (03F2) [00:11:09]Malloc new data [00:11:09]Processing tag 1011 (03F3) [00:11:09]Malloc new data [00:11:09]SetTLVBufToDocument err=0 [00:11:09]Processing tag 1007 (03EF) [00:11:09]Load OK [00:11:09]SetTLVBufToDocument [00:11:09]Processing tag 1014 (03F6) [00:11:09]Malloc new data [00:11:09]Processing tag 1015 (03F7) [00:11:09]Malloc new data [00:11:09]SetTLVBufToDocument err=0 [00:11:09]Processing tag 1007 (03EF) [00:11:09]Load OK [00:11:09]SetTLVBufToDocument [00:11:09]Processing tag 1014 (03F6) [00:11:09]Malloc new data [00:11:09]Processing tag 1015 (03F7) [00:11:09]Malloc new data [00:11:09]SetTLVBufToDocument err=0 [00:11:09]Processing tag 1007 (03EF) [00:11:09]Load OK [00:11:09]SetTLVBufToDocument [00:11:09]Processing tag 1014 (03F6) [00:11:09]Malloc new data [00:11:09]Processing tag 1015 (03F7) [00:11:09]Malloc new data [00:11:09]SetTLVBufToDocument err=0 [00:11:09]Processing tag 1007 (03EF) [00:11:09]Load OK [00:11:09]SetTLVBufToDocument [00:11:09]Processing tag 1014 (03F6) [00:11:09]Malloc new data [00:11:09]Processing tag 1015 (03F7) [00:11:09]Malloc new data [00:11:09]SetTLVBufToDocument err=0 [00:11:09]Processing tag 1007 (03EF) [00:11:09]Load OK [00:11:09]SetTLVBufToDocument [00:11:09]Processing tag 1014 (03F6) [00:11:09]Malloc new data [00:11:09]Processing tag 1015 (03F7) [00:11:09]Malloc new data [00:11:09]SetTLVBufToDocument err=0 [00:11:09]Processing tag 1007 (03EF) [00:11:09]Load OK [00:11:09]SetTLVBufToDocument [00:11:09]Processing tag 1014 (03F6) [00:11:09]Malloc new data [00:11:09]Processing tag 1015 (03F7) [00:11:09]Malloc new data [00:11:09]SetTLVBufToDocument err=0 [00:11:09]Processing tag 1007 (03EF) [00:11:09]Load OK [00:11:09]SetTLVBufToDocument [00:11:09]Processing tag 1014 (03F6) [00:11:09]Malloc new data [00:11:09]Processing tag 1015 (03F7) [00:11:09]Malloc new data [00:11:09]SetTLVBufToDocument err=0 [00:11:09]SetTLVBufToDocument err=0 [00:11:09]SetTLVBufToDocument err=0 [00:11:09]Processing tag 1132 (046C) [00:11:09]Load OK [00:11:09]SetTLVBufToDocument [00:11:09]Processing tag 1135 (046F) [00:11:09]Malloc new data [00:11:09]Processing tag 1201 (04B1) [00:11:09]Malloc new data [00:11:09]Processing tag 1136 (0470) [00:11:09]Malloc new data [00:11:09]Processing tag 1138 (0472) [00:11:09]Malloc new data [00:11:09]Processing tag 1024 (0400) [00:11:09]Load OK [00:11:09]SetTLVBufToDocument [00:11:09]Processing tag 1006 (03EE) [00:11:09]Load OK [00:11:09]SetTLVBufToDocument [00:11:09]Processing tag 1010 (03F2) [00:11:09]Malloc new data [00:11:09]Processing tag 1011 (03F3) [00:11:09]Malloc new data [00:11:09]SetTLVBufToDocument err=0 [00:11:09]Processing tag 1006 (03EE) [00:11:09]Load OK [00:11:09]SetTLVBufToDocument [00:11:09]Processing tag 1010 (03F2) [00:11:09]Malloc new data [00:11:09]Processing tag 1011 (03F3) [00:11:09]Malloc new data [00:11:09]SetTLVBufToDocument err=0 [00:11:09]Processing tag 1007 (03EF) [00:11:09]Load OK [00:11:09]SetTLVBufToDocument [00:11:09]Processing tag 1014 (03F6) [00:11:09]Malloc new data [00:11:09]Processing tag 1015 (03F7) [00:11:09]Malloc new data [00:11:09]SetTLVBufToDocument err=0 [00:11:09]Processing tag 1007 (03EF) [00:11:09]Load OK [00:11:09]SetTLVBufToDocument [00:11:09]Processing tag 1014 (03F6) [00:11:09]Malloc new data [00:11:09]Processing tag 1015 (03F7) [00:11:09]Malloc new data [00:11:09]SetTLVBufToDocument err=0 [00:11:09]Processing tag 1007 (03EF) [00:11:09]Load OK [00:11:09]SetTLVBufToDocument [00:11:09]Processing tag 1014 (03F6) [00:11:09]Malloc new data [00:11:09]Processing tag 1015 (03F7) [00:11:09]Malloc new data [00:11:09]SetTLVBufToDocument err=0 [00:11:09]Processing tag 1007 (03EF) [00:11:09]Load OK [00:11:09]SetTLVBufToDocument [00:11:09]Processing tag 1014 (03F6) [00:11:09]Malloc new data [00:11:09]Processing tag 1015 (03F7) [00:11:09]Malloc new data [00:11:09]SetTLVBufToDocument err=0 [00:11:09]Processing tag 1007 (03EF) [00:11:09]Load OK [00:11:09]SetTLVBufToDocument [00:11:09]Processing tag 1014 (03F6) [00:11:09]Malloc new data [00:11:09]Processing tag 1015 (03F7) [00:11:09]Malloc new data [00:11:09]SetTLVBufToDocument err=0 [00:11:09]Processing tag 1007 (03EF) [00:11:09]Load OK [00:11:09]SetTLVBufToDocument [00:11:09]Processing tag 1014 (03F6) [00:11:09]Malloc new data [00:11:09]Processing tag 1015 (03F7) [00:11:09]Malloc new data [00:11:09]SetTLVBufToDocument err=0 [00:11:09]Processing tag 1007 (03EF) [00:11:09]Load OK [00:11:09]SetTLVBufToDocument [00:11:09]Processing tag 1014 (03F6) [00:11:09]Malloc new data [00:11:09]Processing tag 1015 (03F7) [00:11:09]Malloc new data [00:11:09]SetTLVBufToDocument err=0 [00:11:09]SetTLVBufToDocument err=0 [00:11:10]SetTLVBufToDocument err=0 [00:11:10]Processing tag 1133 (046D) [00:11:10]Malloc new data [00:11:10]SetTLVBufToDocument err=0 [00:11:10]SetTLVBufToDocument err=0 [00:11:10]Malloc new data [00:11:10]SAM_PROTO_GetFMData [00:11:10]wFMCommunicate request_size=4 [00:11:10]MH_SAM_APDU [00:11:10]CAPDU: 80 13 03 00 [00:11:10]Write to MH i2c: E2 08 00 12 1A 80 13 03 00 00 00 00 00 AB [00:11:10]OFD Sender: No OFD packet to send [00:11:10]Write i2c OK [00:11:10]MH_I2C_Read... [00:11:10]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:11:10]Read from MH i2c: E2 [00:11:10]MH_I2C_Read... [00:11:10]Read from MH i2c: E2 FD 00 [00:11:10]MH_I2C_Read... [00:11:10]Read from MH i2c: E2 FD 00 12 1A 00 C5 04 85 04 C1 04 6E 04 04 00 C3 92 01 00 69 04 A3 00 6F 04 04 00 6E 8E 01 00 B1 04 05 00 99 FC A3 3C 04 70 04 05 00 94 41 19 59 03 72 04 04 00 05 BB 8A E3 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 F7 D9 32 73 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 AB 70 99 09 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9C 00 6F 04 04 00 55 04 00 00 B1 04 04 00 58 9A 0E 18 70 04 04 00 58 9A 0E 18 72 04 00 00 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 06 0E 8E 02 EF 03 09 90 00 70 [00:11:10]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 C3 92 01 00 69 04 A3 00 6F 04 04 00 6E 8E 01 00 B1 04 05 00 99 FC A3 3C 04 70 04 05 00 94 41 19 59 03 72 04 04 00 05 BB 8A E3 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 F7 D9 32 73 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 AB 70 99 09 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9C 00 6F 04 04 00 55 04 00 00 B1 04 04 00 58 9A 0E 18 70 04 04 00 58 9A 0E 18 72 04 00 00 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 06 0E 8E 02 EF 03 09 90 00 [00:11:10]wFMCommunicate OK [00:11:10]wFMCommunicate request_size=4 [00:11:10]MH_SAM_APDU [00:11:10]CAPDU: 80 17 00 00 [00:11:10]Write to MH i2c: E2 08 00 13 1A 80 17 00 00 00 00 00 00 AD [00:11:10]Write i2c OK [00:11:10]MH_I2C_Read... [00:11:10]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:11:10]Read from MH i2c: E2 [00:11:10]MH_I2C_Read... [00:11:10]Read from MH i2c: E2 FD 00 [00:11:10]MH_I2C_Read... [00:11:10]Read from MH i2c: E2 FD 00 13 1A 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 DB 80 36 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 F4 [00:11:11]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 DB 80 36 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:11:11]wFMCommunicate OK [00:11:11]wFMCommunicate request_size=4 [00:11:11]MH_SAM_APDU [00:11:11]CAPDU: 80 17 00 00 [00:11:11]Write to MH i2c: E2 08 00 14 1A 80 17 00 00 00 00 00 00 AE [00:11:11]Write i2c OK [00:11:11]MH_I2C_Read... [00:11:11]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:11:11]Read from MH i2c: E2 [00:11:11]MH_I2C_Read... [00:11:11]Read from MH i2c: E2 FD 00 [00:11:11]MH_I2C_Read... [00:11:11]Read from MH i2c: E2 FD 00 14 1A 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 C0 [00:11:11]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:11:11]wFMCommunicate OK [00:11:11]wFMCommunicate request_size=4 [00:11:11]MH_SAM_APDU [00:11:11]CAPDU: 80 17 00 00 [00:11:11]Write to MH i2c: E2 08 00 15 1A 80 17 00 00 00 00 00 00 AF [00:11:11]Write i2c OK [00:11:11]MH_I2C_Read... [00:11:12]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:11:12]Read from MH i2c: E2 [00:11:12]MH_I2C_Read... [00:11:12]Read from MH i2c: E2 FD 00 [00:11:12]MH_I2C_Read... [00:11:12]Read from MH i2c: E2 FD 00 15 1A 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 3B [00:11:12]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:11:12]wFMCommunicate OK [00:11:12]wFMCommunicate request_size=4 [00:11:12]MH_SAM_APDU [00:11:12]CAPDU: 80 17 00 00 [00:11:12]Write to MH i2c: E2 08 00 16 1A 80 17 00 00 00 00 00 00 B0 [00:11:12]Write i2c OK [00:11:12]MH_I2C_Read... [00:11:12]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [00:11:12]Read from MH i2c: E2 [00:11:12]MH_I2C_Read... [00:11:12]Read from MH i2c: E2 E2 00 [00:11:12]MH_I2C_Read... [00:11:12]Read from MH i2c: E2 E2 00 16 1A 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 8E [00:11:12]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:11:12]wFMCommunicate OK [00:11:12]SAM_PROTO_GetFMData done [00:11:12]FM_GetFMData:85 04 C1 04 6E 04 04 00 C3 92 01 00 69 04 A3 00 6F 04 04 00 6E 8E 01 00 B1 04 05 00 99 FC A3 3C 04 70 04 05 00 94 41 19 59 03 72 04 04 00 05 BB 8A E3 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 F7 D9 32 73 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 AB 70 99 09 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9C 00 6F 04 04 00 55 04 00 00 B1 04 04 00 58 9A 0E 18 70 04 04 00 58 9A 0E 18 72 04 00 00 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 06 0E 8E 02 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 DB 80 36 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [00:11:13]oper:6F 04 04 00 6E 8E 01 00 B1 04 05 00 99 FC A3 3C 04 70 04 05 00 94 41 19 59 03 72 04 04 00 05 BB 8A E3 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 F7 D9 32 73 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 AB 70 99 09 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [00:11:13]total:99 FC A3 3C 04 [00:11:13]Malloc new data [00:11:13]oper:6F 04 04 00 55 04 00 00 B1 04 04 00 58 9A 0E 18 70 04 04 00 58 9A 0E 18 72 04 00 00 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 06 0E 8E 02 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 DB 80 36 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [00:11:13]total:58 9A 0E 18 [00:11:13]Malloc new data [00:11:13]oper:6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [00:11:13]total: [00:11:13]Malloc new data [00:11:13]oper:6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [00:11:13]total: [00:11:13]Malloc new data [00:11:13]KKMPrepareXReportFMData err=0 [00:11:13]Х отчет ИНН: 02508201610067 Кассир: Байбугуева Г. 20.06.2024 00:11 Смена: 266 РНМ: 0000000000092785 ЗНМ: 0300000164 СНО: Общий режим Всего чеков: 243 ИТОГИ ПРИХОД Чеков: 240 Общий итог: 393324.59 Итого наличными: 291417.00 Итого безнал.: 101907.59 НДС 0% : 0.00 НДС 12% : 41777.51 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 3481.10 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 3 Общий итог: 5739.00 Итого наличными: 5739.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 609.54 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 50.79 ИТОГИ РАСХОД Чеков: 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 Нал. в кассе: 285678.00 НС Приход: 181972491.77 НС Возвр.Прихода: 4036102.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФМ: 0000000000875093 [00:11:13]StoreToDocumentArchive [00:11:13]MH_GetDate [00:11:13]Write to MH i2c: F0 00 00 17 1A 20 [00:11:13]Write i2c OK [00:11:13]MH_I2C_Read... [00:11:13]Read from MH i2c: F0 [00:11:13]MH_I2C_Read... [00:11:13]Read from MH i2c: F0 09 00 [00:11:13]MH_I2C_Read... [00:11:13]Read from MH i2c: F0 09 00 17 1A 00 A4 73 73 66 BD 8F 7C 64 45 [00:11:13]shift 266 fd 1718842276 [00:11:13]Create dir for shift 0266 [00:11:13]save to /storage/0266/doc_1718842276 [00:11:13]save last doc name /storage/0266/doc_1718842276 to /storage/kkm_last_doc_name [00:11:13]save OK [00:11:13]Clear old archive folders... [00:11:13]NVStorageSaveData kkm_last_timestamp [00:11:13]File name is /storage/kkm_last_timestamp [00:11:13]Write 4 bytes [00:11:13]NVStorageSaveData done [00:11:13]ExternCall_PrintAddStr [00:11:13]wPrintStart [00:11:14]Write to MH i2c: 01 00 00 18 1A 32 [00:11:14]Write i2c OK [00:11:14]MH_I2C_Read... [00:11:14]Read from MH i2c: 01 [00:11:14]MH_I2C_Read... [00:11:14]Read from MH i2c: 01 07 00 [00:11:14]MH_I2C_Read... [00:11:14]Read from MH i2c: 01 07 00 18 1A 00 00 00 00 00 FF 0F 47 [00:11:14]RasterBufferAndPrint [00:11:14]line Х отчет [00:11:14]line ИНН: 02508201610067 [00:11:14]line Кассир: Байбугуева Г. [00:11:14]line 20.06.2024 00:11 [00:11:14]line Смена: 266 [00:11:14]line РНМ: 0000000000092785 [00:11:14]line ЗНМ: 0300000164 [00:11:14]line СНО: Общий режим [00:11:14]line Всего чеков: 243 [00:11:14]line ИТОГИ ПРИХОД [00:11:14]line Чеков: 240 [00:11:14]line Общий итог: 393324.59 [00:11:14]line Итого наличными: 291417.00 [00:11:14]line Итого безнал.: 101907.59 [00:11:14]line НДС 0% : 0.00 [00:11:14]line НДС 12% : 41777.51 [00:11:14]line НСП 0% : 0.00 [00:11:14]line НСП 1,50% : 0.00 [00:11:14]line НСП 0,50% : 0.00 [00:11:14]line НСП 5% : 0.00 [00:11:14]line НСП 3% : 0.00 [00:11:14]line НСП 2% : 0.00 [00:11:14]line НСП 1% : 3481.10 [00:11:14]line ИТОГИ ВОЗВРАТ ПРИХОДА [00:11:14]line Чеков: 3 [00:11:14]line Общий итог: 5739.00 [00:11:14]line Итого наличными: 5739.00 [00:11:14]line Итого безнал.: 0.00 [00:11:14]line НДС 0% : 0.00 [00:11:14]line НДС 12% : 609.54 [00:11:14]line НСП 0% : 0.00 [00:11:14]line НСП 1,50% : 0.00 [00:11:14]line НСП 0,50% : 0.00 [00:11:14]line НСП 5% : 0.00 [00:11:14]line НСП 3% : 0.00 [00:11:14]line НСП 2% : 0.00 [00:11:14]line НСП 1% : 50.79 [00:11:14]line ИТОГИ РАСХОД [00:11:14]line Чеков: 0 [00:11:14]line Общий итог: 0.00 [00:11:14]line Итого наличными: 0.00 [00:11:14]line Итого безнал.: 0.00 [00:11:14]line НДС 0% : 0.00 [00:11:14]line НДС 12% : 0.00 [00:11:14]line НСП 0% : 0.00 [00:11:14]line НСП 1,50% : 0.00 [00:11:14]line НСП 0,50% : 0.00 [00:11:14]line НСП 5% : 0.00 [00:11:14]line НСП 3% : 0.00 [00:11:14]line НСП 2% : 0.00 [00:11:14]line НСП 1% : 0.00 [00:11:14]line ИТОГИ ВОЗВРАТ РАСХОДА [00:11:14]line Чеков: 0 [00:11:14]line Общий итог: 0.00 [00:11:14]line Итого наличными: 0.00 [00:11:14]line Итого безнал.: 0.00 [00:11:14]line НДС 0% : 0.00 [00:11:14]line НДС 12% : 0.00 [00:11:14]line НСП 0% : 0.00 [00:11:14]line НСП 1,50% : 0.00 [00:11:14]line НСП 0,50% : 0.00 [00:11:14]line НСП 5% : 0.00 [00:11:14]line НСП 3% : 0.00 [00:11:14]line НСП 2% : 0.00 [00:11:14]line НСП 1% : 0.00 [00:11:14]line Сумма внесений: 0.00 [00:11:14]line Сумма выплат: 0.00 [00:11:14]line Нал. в кассе: 285678.00 [00:11:14]line НС Приход: 181972491.77 [00:11:14]line НС Возвр.Прихода: 4036102.00 [00:11:14]line НС Расход: 0.00 [00:11:14]line НС Возвр.Расхода: 0.00 [00:11:14]line ФМ: 0000000000875093 [00:11:14]written 0, free lines is 4095 [00:11:14]Write to MH i2c: 01 00 00 63 1A 7D [00:11:14]Write i2c OK [00:11:14]MH_I2C_Read... [00:11:14]Read from MH i2c: 01 [00:11:14]MH_I2C_Read... [00:11:14]Read from MH i2c: 01 07 00 [00:11:14]MH_I2C_Read... [00:11:14]Read from MH i2c: 01 07 00 63 1A 00 00 00 00 00 BB 0A 49 [00:11:14]RasterBufferAndPrint [00:11:14]line [00:11:14]line [00:11:14]line [00:11:14]line [00:11:14]line [00:11:14]written 0, free lines is 2783 [00:11:14]MH_Cut [00:11:14]Write to MH i2c: D1 01 00 6A 1A 01 56 [00:11:14]Write i2c OK [00:11:14]MH_I2C_Read... [00:11:14]Read from MH i2c: D1 [00:11:14]MH_I2C_Read... [00:11:14]Read from MH i2c: D1 01 00 [00:11:14]MH_I2C_Read... [00:11:14]Read from MH i2c: D1 01 00 6A 1A 00 55 [00:11:14]Write to MH i2c: 01 00 00 6B 1A 85 [00:11:14]Write i2c OK [00:11:14]MH_I2C_Read... [00:11:15]OFD Sender: No OFD packet to send [00:11:15]*** Cut start [00:11:15]*** Partial cut [00:11:15]*** CUTSNS_PIN = 1 [00:11:15]*** CUTSNS_PIN = 0 [00:11:16]*** Brake cut motor [00:11:16]Read from MH i2c: 01 [00:11:16]MH_I2C_Read... [00:11:16]*** Stop cut motor [00:11:16]*** Cut end [00:11:16]Read from MH i2c: 01 07 00 [00:11:16]MH_I2C_Read... [00:11:16]Read from MH i2c: 01 07 00 6B 1A 00 00 00 00 00 FF 0F 9A [00:11:16]process_action x_report done [00:11:16]requested_data is exist [00:11:16]produce_requested_data [00:11:16]requested_item fd.num is exist - process it [00:11:16]SAM_PROTO_GetFieldsCounters [00:11:16]wFMCommunicate request_size=4 [00:11:16]MH_SAM_APDU [00:11:16]CAPDU: 80 13 00 00 [00:11:16]Write to MH i2c: E2 08 00 6C 1A 80 13 00 00 00 00 00 00 02 [00:11:16]Write i2c OK [00:11:16]MH_I2C_Read... [00:11:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:11:16]Read from MH i2c: E2 [00:11:16]MH_I2C_Read... [00:11:16]Read from MH i2c: E2 62 00 [00:11:16]MH_I2C_Read... [00:11:16]Read from MH i2c: E2 62 00 6C 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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 85 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 F3 00 00 00 5E 04 04 00 F3 00 00 00 57 04 04 00 F4 00 00 00 19 04 04 00 00 00 00 00 90 00 7F [00:11: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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 85 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 F3 00 00 00 5E 04 04 00 F3 00 00 00 57 04 04 00 F4 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:11:16]wFMCommunicate OK [00:11:16]SAM_PROTO_GetFieldsCounters done [00:11:16]requested_item shift.num is exist - process it [00:11:16]requested_item shift.opened is exist - process it [00:11:16]req_shift_opened [00:11:16]FM_GetShiftState [00:11:16]SAM_PROTO_GetShiftState [00:11:16]wFMCommunicate request_size=4 [00:11:16]MH_SAM_APDU [00:11:16]CAPDU: 80 13 01 00 [00:11:16]Write to MH i2c: E2 08 00 6D 1A 80 13 01 00 00 00 00 00 04 [00:11:16]Write i2c OK [00:11:16]MH_I2C_Read... [00:11:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:11:16]Read from MH i2c: E2 [00:11:16]MH_I2C_Read... [00:11:16]Read from MH i2c: E2 0E 00 [00:11:16]MH_I2C_Read... [00:11:16]Read from MH i2c: E2 0E 00 6D 1A 00 09 00 01 04 26 72 66 00 00 00 00 90 00 12 [00:11:16]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [00:11:16]wFMCommunicate OK [00:11:16]SAM_PROTO_GetShiftState done [00:11:16]FM_GetShiftState done [00:11:16]req_shift_opened done [00:11:16]requested_item shift.open_date is exist - process it [00:11:16]req_shift_open_date [00:11:16]req_shift_open_date done [00:11:16]produce_requested_data done [00:11:16]produce_requested_data return {"fd.num":103813,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [00:11:16]process_action_free x_report [00:11:16]json_value_free [00:11:16]json_value_free done [00:11:16]process_json_proto returns [00:11:16]Send response to host [00:11:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":103813,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [00:11:16]free response buf [00:11:16]execute_script done [00:11:16]execute_script returns [00:11:16]free content buf [00:11:16]Sock 9.Close socket [00:11:16]Sock 9.Thread stoped [00:11:20]OFD Sender: No OFD packet to send [00:11:25]OFD Sender: No OFD packet to send [00:11:30]OFD Sender: No OFD packet to send [00:11:35]OFD Sender: No OFD packet to send [00:11:39]accept exits with 8 [00:11:39]New connection [00:11:39]New thread 3066797412 created [00:11:39]Thread 3066940772 joined [00:11:39]Waiting for new connection... [00:11:39] Sock 8.Parse request [00:11:39]Sock 8.Check first char [00:11:39]Sock 8.First char is OK [00:11:39]request: POST /json_proto HTTP/1.0 [00:11:39]Method: POST [00:11:39]URL: /json_proto [00:11:39]Method is POST - this is cgi request [00:11:39]url: /json_proto [00:11:39]query_string will be loaded in cgi processing [00:11:39]execute_cgi json_proto POST (null) [00:11:39]execute_cgi path=json_proto method=POST [00:11:39]POST find Content-Length [00:11:39]Host: 172.17.38.133:8080 [00:11:39]Content-Length: 215 [00:11:39]Content-Type: application/json [00:11:39] [00:11:39]POST finish read [00:11:39]Found Content-Length = 215 [00:11:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:11:39]execute_script... [00:11:39]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:11:39]POST & json_proto [00:11:39]process_json_proto [00:11:39]json parsed OK: [00:11:39]protocol is kg_v1.0 [00:11:39]action value=get_value [00:11:39]process_action get_value [00:11:39]cmd_get_value [00:11:39]process_action get_value done [00:11:39]requested_data is exist [00:11:39]produce_requested_data [00:11:39]requested_item kkm.sn is exist - process it [00:11:39]requested_item kkm.ver is exist - process it [00:11:39]requested_item fm.sn is exist - process it [00:11:39]wFMCommunicate request_size=4 [00:11:39]MH_SAM_APDU [00:11:39]CAPDU: 80 11 00 00 [00:11:39]Write to MH i2c: E2 08 00 6E 1A 80 11 00 00 00 00 00 00 02 [00:11:39]Write i2c OK [00:11:39]MH_I2C_Read... [00:11:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:11:39]Read from MH i2c: E2 [00:11:39]MH_I2C_Read... [00:11:39]Read from MH i2c: E2 17 00 [00:11:39]MH_I2C_Read... [00:11:39]Read from MH i2c: E2 17 00 6E 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 55 [00:11:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [00:11:39]wFMCommunicate OK [00:11:39]requested_item fd.num is exist - process it [00:11:39]SAM_PROTO_GetFieldsCounters [00:11:39]wFMCommunicate request_size=4 [00:11:39]MH_SAM_APDU [00:11:39]CAPDU: 80 13 00 00 [00:11:39]Write to MH i2c: E2 08 00 6F 1A 80 13 00 00 00 00 00 00 05 [00:11:39]Write i2c OK [00:11:39]MH_I2C_Read... [00:11:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:11:39]Read from MH i2c: E2 [00:11:39]MH_I2C_Read... [00:11:39]Read from MH i2c: E2 62 00 [00:11:39]MH_I2C_Read... [00:11:39]Read from MH i2c: E2 62 00 6F 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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 85 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 F3 00 00 00 5E 04 04 00 F3 00 00 00 57 04 04 00 F4 00 00 00 19 04 04 00 00 00 00 00 90 00 82 [00:11: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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 85 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 F3 00 00 00 5E 04 04 00 F3 00 00 00 57 04 04 00 F4 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:11:39]wFMCommunicate OK [00:11:39]SAM_PROTO_GetFieldsCounters done [00:11:39]requested_item shift.num is exist - process it [00:11:39]requested_item shift.opened is exist - process it [00:11:39]req_shift_opened [00:11:39]FM_GetShiftState [00:11:39]SAM_PROTO_GetShiftState [00:11:39]wFMCommunicate request_size=4 [00:11:39]MH_SAM_APDU [00:11:39]CAPDU: 80 13 01 00 [00:11:39]Write to MH i2c: E2 08 00 70 1A 80 13 01 00 00 00 00 00 07 [00:11:39]Write i2c OK [00:11:39]MH_I2C_Read... [00:11:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:11:39]Read from MH i2c: E2 [00:11:39]MH_I2C_Read... [00:11:39]Read from MH i2c: E2 0E 00 [00:11:39]MH_I2C_Read... [00:11:39]Read from MH i2c: E2 0E 00 70 1A 00 09 00 01 04 26 72 66 00 00 00 00 90 00 15 [00:11:39]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [00:11:39]wFMCommunicate OK [00:11:39]SAM_PROTO_GetShiftState done [00:11:39]FM_GetShiftState done [00:11:39]req_shift_opened done [00:11:39]requested_item shift.open_date is exist - process it [00:11:39]req_shift_open_date [00:11:39]req_shift_open_date done [00:11:39]produce_requested_data done [00:11:39]produce_requested_data return {"kkm.sn":"0300000164","kkm.ver":"001","fm.sn":"0000000000875093","fd.num":103813,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868} [00:11:39]process_action_free get_value [00:11:39]json_value_free [00:11:39]json_value_free done [00:11:39]process_json_proto returns [00:11:39]Send response to host [00:11:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000164","kkm.ver":"001","fm.sn":"0000000000875093","fd.num":103813,"shift.num":353,"shift.opened":1,"shift.open_date":1718756868}}} [00:11:39]free response buf [00:11:39]execute_script done [00:11:39]execute_script returns [00:11:39]free content buf [00:11:39]Sock 8.Close socket [00:11:39]Sock 8.Thread stoped [00:11:39]accept exits with 9 [00:11:39]New connection [00:11:39]New thread 3066940772 created [00:11:39]Thread 3066797412 joined [00:11:39]Waiting for new connection... [00:11:39] Sock 9.Parse request [00:11:39]Sock 9.Check first char [00:11:39]Sock 9.First char is OK [00:11:39]request: POST /json_proto HTTP/1.0 [00:11:39]Method: POST [00:11:39]URL: /json_proto [00:11:39]Method is POST - this is cgi request [00:11:39]url: /json_proto [00:11:39]query_string will be loaded in cgi processing [00:11:39]execute_cgi json_proto POST (null) [00:11:39]execute_cgi path=json_proto method=POST [00:11:39]POST find Content-Length [00:11:39]Host: 172.17.38.133:8080 [00:11:39]Content-Length: 331 [00:11:39]Content-Type: application/json [00:11:39] [00:11:39]POST finish read [00:11:39]Found Content-Length = 331 [00:11:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:11:39]execute_script... [00:11:39]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:11:39]POST & json_proto [00:11:39]process_json_proto [00:11:39]json parsed OK: [00:11:39]protocol is kg_v1.0 [00:11:39]action value=get_value [00:11:39]process_action get_value [00:11:39]cmd_get_value [00:11:39]process_action get_value done [00:11:39]requested_data is exist [00:11:39]produce_requested_data [00:11:39]requested_item fm.sale.total is exist - process it [00:11:39]SAM_PROTO_GetFMData [00:11:39]wFMCommunicate request_size=4 [00:11:39]MH_SAM_APDU [00:11:39]CAPDU: 80 13 03 00 [00:11:39]Write to MH i2c: E2 08 00 71 1A 80 13 03 00 00 00 00 00 0A [00:11:39]Write i2c OK [00:11:39]MH_I2C_Read... [00:11:39]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:11:39]Read from MH i2c: E2 [00:11:39]MH_I2C_Read... [00:11:39]Read from MH i2c: E2 FD 00 [00:11:39]MH_I2C_Read... [00:11:39]Read from MH i2c: E2 FD 00 71 1A 00 C5 04 85 04 C1 04 6E 04 04 00 C3 92 01 00 69 04 A3 00 6F 04 04 00 6E 8E 01 00 B1 04 05 00 99 FC A3 3C 04 70 04 05 00 94 41 19 59 03 72 04 04 00 05 BB 8A E3 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 F7 D9 32 73 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 AB 70 99 09 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9C 00 6F 04 04 00 55 04 00 00 B1 04 04 00 58 9A 0E 18 70 04 04 00 58 9A 0E 18 72 04 00 00 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 06 0E 8E 02 EF 03 09 90 00 CF [00:11:39]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 C3 92 01 00 69 04 A3 00 6F 04 04 00 6E 8E 01 00 B1 04 05 00 99 FC A3 3C 04 70 04 05 00 94 41 19 59 03 72 04 04 00 05 BB 8A E3 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 F7 D9 32 73 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 AB 70 99 09 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9C 00 6F 04 04 00 55 04 00 00 B1 04 04 00 58 9A 0E 18 70 04 04 00 58 9A 0E 18 72 04 00 00 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 06 0E 8E 02 EF 03 09 90 00 [00:11:39]wFMCommunicate OK [00:11:39]wFMCommunicate request_size=4 [00:11:39]MH_SAM_APDU [00:11:39]CAPDU: 80 17 00 00 [00:11:39]Write to MH i2c: E2 08 00 72 1A 80 17 00 00 00 00 00 00 0C [00:11:39]Write i2c OK [00:11:39]MH_I2C_Read... [00:11:40]OFD Sender: No OFD packet to send [00:11:40]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:11:40]Read from MH i2c: E2 [00:11:40]MH_I2C_Read... [00:11:40]Read from MH i2c: E2 FD 00 [00:11:40]MH_I2C_Read... [00:11:40]Read from MH i2c: E2 FD 00 72 1A 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 DB 80 36 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 53 [00:11:40]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 DB 80 36 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:11:40]wFMCommunicate OK [00:11:40]wFMCommunicate request_size=4 [00:11:40]MH_SAM_APDU [00:11:40]CAPDU: 80 17 00 00 [00:11:40]Write to MH i2c: E2 08 00 73 1A 80 17 00 00 00 00 00 00 0D [00:11:40]Write i2c OK [00:11:40]MH_I2C_Read... [00:11:40]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:11:40]Read from MH i2c: E2 [00:11:40]MH_I2C_Read... [00:11:40]Read from MH i2c: E2 FD 00 [00:11:40]MH_I2C_Read... [00:11:40]Read from MH i2c: E2 FD 00 73 1A 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 1F [00:11:40]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:11:40]wFMCommunicate OK [00:11:40]wFMCommunicate request_size=4 [00:11:40]MH_SAM_APDU [00:11:40]CAPDU: 80 17 00 00 [00:11:40]Write to MH i2c: E2 08 00 74 1A 80 17 00 00 00 00 00 00 0E [00:11:40]Write i2c OK [00:11:40]MH_I2C_Read... [00:11:41]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:11:41]Read from MH i2c: E2 [00:11:41]MH_I2C_Read... [00:11:41]Read from MH i2c: E2 FD 00 [00:11:41]MH_I2C_Read... [00:11:41]Read from MH i2c: E2 FD 00 74 1A 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 9A [00:11:41]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:11:41]wFMCommunicate OK [00:11:41]wFMCommunicate request_size=4 [00:11:41]MH_SAM_APDU [00:11:41]CAPDU: 80 17 00 00 [00:11:41]Write to MH i2c: E2 08 00 75 1A 80 17 00 00 00 00 00 00 0F [00:11:41]Write i2c OK [00:11:41]MH_I2C_Read... [00:11:41]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [00:11:41]Read from MH i2c: E2 [00:11:41]MH_I2C_Read... [00:11:41]Read from MH i2c: E2 E2 00 [00:11:41]MH_I2C_Read... [00:11:41]Read from MH i2c: E2 E2 00 75 1A 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 ED [00:11:41]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:11:41]wFMCommunicate OK [00:11:41]SAM_PROTO_GetFMData done [00:11:41]requested_item fm.sale_refund.total is exist - process it [00:11:41]requested_item fm.buy.total is exist - process it [00:11:41]requested_item shift.sale.total is exist - process it [00:11:41]SAM_PROTO_GetShiftData [00:11:41]wFMCommunicate request_size=4 [00:11:41]MH_SAM_APDU [00:11:41]CAPDU: 80 13 02 00 [00:11:41]Write to MH i2c: E2 08 00 76 1A 80 13 02 00 00 00 00 00 0E [00:11:41]Write i2c OK [00:11:41]MH_I2C_Read... [00:11:42]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:11:42]Read from MH i2c: E2 [00:11:42]MH_I2C_Read... [00:11:42]Read from MH i2c: E2 FD 00 [00:11:42]MH_I2C_Read... [00:11:42]Read from MH i2c: E2 FD 00 76 1A 00 BB 04 AA 04 B7 04 6E 04 04 00 F3 00 00 00 69 04 9E 00 6F 04 04 00 F0 00 00 00 B1 04 04 00 6B 2A 58 02 70 04 04 00 C4 AA BC 01 72 04 03 00 A7 7F 9B 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 57 BF 3F 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 CE 4F 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 03 00 00 00 B1 04 03 00 CC C1 08 70 04 03 00 CC C1 08 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 1A EE EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 86 [00:11:42]RAPDU: BB 04 AA 04 B7 04 6E 04 04 00 F3 00 00 00 69 04 9E 00 6F 04 04 00 F0 00 00 00 B1 04 04 00 6B 2A 58 02 70 04 04 00 C4 AA BC 01 72 04 03 00 A7 7F 9B 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 57 BF 3F 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 CE 4F 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 03 00 00 00 B1 04 03 00 CC C1 08 70 04 03 00 CC C1 08 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 1A EE EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 [00:11:42]wFMCommunicate OK [00:11:42]wFMCommunicate request_size=4 [00:11:42]MH_SAM_APDU [00:11:42]CAPDU: 80 17 00 00 [00:11:42]Write to MH i2c: E2 08 00 77 1A 80 17 00 00 00 00 00 00 11 [00:11:42]Write i2c OK [00:11:42]MH_I2C_Read... [00:11:42]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:11:42]Read from MH i2c: E2 [00:11:42]MH_I2C_Read... [00:11:42]Read from MH i2c: E2 FD 00 [00:11:42]MH_I2C_Read... [00:11:42]Read from MH i2c: E2 FD 00 77 1A 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 D7 13 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 A5 [00:11:42]RAPDU: 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 D7 13 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:11:42]wFMCommunicate OK [00:11:42]wFMCommunicate request_size=4 [00:11:42]MH_SAM_APDU [00:11:42]CAPDU: 80 17 00 00 [00:11:42]Write to MH i2c: E2 08 00 78 1A 80 17 00 00 00 00 00 00 12 [00:11:42]Write i2c OK [00:11:42]MH_I2C_Read... [00:11:43]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:11:43]Read from MH i2c: E2 [00:11:43]MH_I2C_Read... [00:11:43]Read from MH i2c: E2 FD 00 [00:11:43]MH_I2C_Read... [00:11:43]Read from MH i2c: E2 FD 00 78 1A 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 3E [00:11:43]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 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 90 00 [00:11:43]wFMCommunicate OK [00:11:43]wFMCommunicate request_size=4 [00:11:43]MH_SAM_APDU [00:11:43]CAPDU: 80 17 00 00 [00:11:43]Write to MH i2c: E2 08 00 79 1A 80 17 00 00 00 00 00 00 13 [00:11:43]Write i2c OK [00:11:43]MH_I2C_Read... [00:11:43]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:11:43]Read from MH i2c: E2 [00:11:43]MH_I2C_Read... [00:11:43]Read from MH i2c: E2 FD 00 [00:11:43]MH_I2C_Read... [00:11:43]Read from MH i2c: E2 FD 00 79 1A 00 00 00 EF 03 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 90 00 88 [00:11:43]RAPDU: 00 00 EF 03 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 90 00 [00:11:43]wFMCommunicate OK [00:11:43]wFMCommunicate request_size=4 [00:11:43]MH_SAM_APDU [00:11:43]CAPDU: 80 17 00 00 [00:11:43]Write to MH i2c: E2 08 00 7A 1A 80 17 00 00 00 00 00 00 14 [00:11:43]Write i2c OK [00:11:43]MH_I2C_Read... [00:11:44]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 213! [00:11:44]Read from MH i2c: E2 [00:11:44]MH_I2C_Read... [00:11:44]Read from MH i2c: E2 D8 00 [00:11:44]MH_I2C_Read... [00:11:44]Read from MH i2c: E2 D8 00 7A 1A 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 FB [00:11:44]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:11:44]wFMCommunicate OK [00:11:44]SAM_PROTO_GetShiftData done [00:11:44]requested_item shift.sale.total_cash is exist - process it [00:11:44]requested_item shift.sale_refund.total is exist - process it [00:11:44]requested_item shift.sale_refund.total_cash is exist - process it [00:11:44]requested_item shift.buy.total is exist - process it [00:11:44]requested_item shift.buy.total_cash is exist - process it [00:11:44]produce_requested_data done [00:11:44]produce_requested_data return {"fm.sale.total":181972491.77,"fm.sale_refund.total":4036102.00,"fm.buy.total":0.00,"shift.sale.total":393324.59,"shift.sale.total_cash":291417.00,"shift.sale_refund.total":5739.00,"shift.sale_refund.total_cash":5739.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:11:44]process_action_free get_value [00:11:44]json_value_free [00:11:44]json_value_free done [00:11:44]process_json_proto returns [00:11:44]Send response to host [00:11:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":181972491.77,"fm.sale_refund.total":4036102.00,"fm.buy.total":0.00,"shift.sale.total":393324.59,"shift.sale.total_cash":291417.00,"shift.sale_refund.total":5739.00,"shift.sale_refund.total_cash":5739.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:11:44]free response buf [00:11:44]execute_script done [00:11:44]execute_script returns [00:11:44]free content buf [00:11:44]Sock 9.Close socket [00:11:44]Sock 9.Thread stoped [00:11:44]accept exits with 8 [00:11:44]New connection [00:11:44]New thread 3066797412 created [00:11:44]Thread 3066940772 joined [00:11:44]Waiting for new connection... [00:11:44] Sock 8.Parse request [00:11:44]Sock 8.Check first char [00:11:44]Sock 8.First char is OK [00:11:44]request: POST /json_proto HTTP/1.0 [00:11:44]Method: POST [00:11:44]URL: /json_proto [00:11:44]Method is POST - this is cgi request [00:11:44]url: /json_proto [00:11:44]query_string will be loaded in cgi processing [00:11:44]execute_cgi json_proto POST (null) [00:11:44]execute_cgi path=json_proto method=POST [00:11:44]POST find Content-Length [00:11:44]Host: 172.17.38.133:8080 [00:11:44]Content-Length: 331 [00:11:44]Content-Type: application/json [00:11:44] [00:11:44]POST finish read [00:11:44]Found Content-Length = 331 [00:11:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:11:44]execute_script... [00:11:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:11:44]POST & json_proto [00:11:44]process_json_proto [00:11:44]json parsed OK: [00:11:44]protocol is kg_v1.0 [00:11:44]action value=get_value [00:11:44]process_action get_value [00:11:44]cmd_get_value [00:11:44]process_action get_value done [00:11:44]requested_data is exist [00:11:44]produce_requested_data [00:11:44]requested_item fm.sale.total is exist - process it [00:11:44]SAM_PROTO_GetFMData [00:11:44]wFMCommunicate request_size=4 [00:11:44]MH_SAM_APDU [00:11:44]CAPDU: 80 13 03 00 [00:11:44]Write to MH i2c: E2 08 00 7B 1A 80 13 03 00 00 00 00 00 14 [00:11:44]Write i2c OK [00:11:44]MH_I2C_Read... [00:11:44]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:11:44]Read from MH i2c: E2 [00:11:44]MH_I2C_Read... [00:11:44]Read from MH i2c: E2 FD 00 [00:11:44]MH_I2C_Read... [00:11:44]Read from MH i2c: E2 FD 00 7B 1A 00 C5 04 85 04 C1 04 6E 04 04 00 C3 92 01 00 69 04 A3 00 6F 04 04 00 6E 8E 01 00 B1 04 05 00 99 FC A3 3C 04 70 04 05 00 94 41 19 59 03 72 04 04 00 05 BB 8A E3 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 F7 D9 32 73 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 AB 70 99 09 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9C 00 6F 04 04 00 55 04 00 00 B1 04 04 00 58 9A 0E 18 70 04 04 00 58 9A 0E 18 72 04 00 00 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 06 0E 8E 02 EF 03 09 90 00 D9 [00:11:44]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 C3 92 01 00 69 04 A3 00 6F 04 04 00 6E 8E 01 00 B1 04 05 00 99 FC A3 3C 04 70 04 05 00 94 41 19 59 03 72 04 04 00 05 BB 8A E3 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 F7 D9 32 73 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 AB 70 99 09 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9C 00 6F 04 04 00 55 04 00 00 B1 04 04 00 58 9A 0E 18 70 04 04 00 58 9A 0E 18 72 04 00 00 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 06 0E 8E 02 EF 03 09 90 00 [00:11:45]wFMCommunicate OK [00:11:45]wFMCommunicate request_size=4 [00:11:45]MH_SAM_APDU [00:11:45]CAPDU: 80 17 00 00 [00:11:45]Write to MH i2c: E2 08 00 7C 1A 80 17 00 00 00 00 00 00 16 [00:11:45]Write i2c OK [00:11:45]MH_I2C_Read... [00:11:45]OFD Sender: No OFD packet to send [00:11:45]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:11:45]Read from MH i2c: E2 [00:11:45]MH_I2C_Read... [00:11:45]Read from MH i2c: E2 FD 00 [00:11:45]MH_I2C_Read... [00:11:45]Read from MH i2c: E2 FD 00 7C 1A 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 DB 80 36 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 5D [00:11:45]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 DB 80 36 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:11:45]wFMCommunicate OK [00:11:45]wFMCommunicate request_size=4 [00:11:45]MH_SAM_APDU [00:11:45]CAPDU: 80 17 00 00 [00:11:45]Write to MH i2c: E2 08 00 7D 1A 80 17 00 00 00 00 00 00 17 [00:11:45]Write i2c OK [00:11:45]MH_I2C_Read... [00:11:45]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:11:45]Read from MH i2c: E2 [00:11:45]MH_I2C_Read... [00:11:45]Read from MH i2c: E2 FD 00 [00:11:45]MH_I2C_Read... [00:11:45]Read from MH i2c: E2 FD 00 7D 1A 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 29 [00:11:46]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:11:46]wFMCommunicate OK [00:11:46]wFMCommunicate request_size=4 [00:11:46]MH_SAM_APDU [00:11:46]CAPDU: 80 17 00 00 [00:11:46]Write to MH i2c: E2 08 00 7E 1A 80 17 00 00 00 00 00 00 18 [00:11:46]Write i2c OK [00:11:46]MH_I2C_Read... [00:11:46]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:11:46]Read from MH i2c: E2 [00:11:46]MH_I2C_Read... [00:11:46]Read from MH i2c: E2 FD 00 [00:11:46]MH_I2C_Read... [00:11:46]Read from MH i2c: E2 FD 00 7E 1A 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 A4 [00:11:46]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:11:46]wFMCommunicate OK [00:11:46]wFMCommunicate request_size=4 [00:11:46]MH_SAM_APDU [00:11:46]CAPDU: 80 17 00 00 [00:11:46]Write to MH i2c: E2 08 00 7F 1A 80 17 00 00 00 00 00 00 19 [00:11:46]Write i2c OK [00:11:46]MH_I2C_Read... [00:11:47]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [00:11:47]Read from MH i2c: E2 [00:11:47]MH_I2C_Read... [00:11:47]Read from MH i2c: E2 E2 00 [00:11:47]MH_I2C_Read... [00:11:47]Read from MH i2c: E2 E2 00 7F 1A 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [00:11:47]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:11:47]wFMCommunicate OK [00:11:47]SAM_PROTO_GetFMData done [00:11:47]requested_item fm.sale_refund.total is exist - process it [00:11:47]requested_item fm.buy.total is exist - process it [00:11:47]requested_item shift.sale.total is exist - process it [00:11:47]SAM_PROTO_GetShiftData [00:11:47]wFMCommunicate request_size=4 [00:11:47]MH_SAM_APDU [00:11:47]CAPDU: 80 13 02 00 [00:11:47]Write to MH i2c: E2 08 00 80 1A 80 13 02 00 00 00 00 00 18 [00:11:47]Write i2c OK [00:11:47]MH_I2C_Read... [00:11:47]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:11:47]Read from MH i2c: E2 [00:11:47]MH_I2C_Read... [00:11:47]Read from MH i2c: E2 FD 00 [00:11:47]MH_I2C_Read... [00:11:47]Read from MH i2c: E2 FD 00 80 1A 00 BB 04 AA 04 B7 04 6E 04 04 00 F3 00 00 00 69 04 9E 00 6F 04 04 00 F0 00 00 00 B1 04 04 00 6B 2A 58 02 70 04 04 00 C4 AA BC 01 72 04 03 00 A7 7F 9B 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 57 BF 3F 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 CE 4F 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 03 00 00 00 B1 04 03 00 CC C1 08 70 04 03 00 CC C1 08 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 1A EE EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 90 [00:11:47]RAPDU: BB 04 AA 04 B7 04 6E 04 04 00 F3 00 00 00 69 04 9E 00 6F 04 04 00 F0 00 00 00 B1 04 04 00 6B 2A 58 02 70 04 04 00 C4 AA BC 01 72 04 03 00 A7 7F 9B 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 57 BF 3F 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 CE 4F 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 03 00 00 00 B1 04 03 00 CC C1 08 70 04 03 00 CC C1 08 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 1A EE EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 [00:11:48]wFMCommunicate OK [00:11:48]wFMCommunicate request_size=4 [00:11:48]MH_SAM_APDU [00:11:48]CAPDU: 80 17 00 00 [00:11:48]Write to MH i2c: E2 08 00 81 1A 80 17 00 00 00 00 00 00 1B [00:11:48]Write i2c OK [00:11:48]MH_I2C_Read... [00:11:48]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:11:48]Read from MH i2c: E2 [00:11:48]MH_I2C_Read... [00:11:48]Read from MH i2c: E2 FD 00 [00:11:48]MH_I2C_Read... [00:11:48]Read from MH i2c: E2 FD 00 81 1A 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 D7 13 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 AF [00:11:48]RAPDU: 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 D7 13 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:11:48]wFMCommunicate OK [00:11:48]wFMCommunicate request_size=4 [00:11:48]MH_SAM_APDU [00:11:48]CAPDU: 80 17 00 00 [00:11:48]Write to MH i2c: E2 08 00 82 1A 80 17 00 00 00 00 00 00 1C [00:11:48]Write i2c OK [00:11:48]MH_I2C_Read... [00:11:48]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:11:48]Read from MH i2c: E2 [00:11:48]MH_I2C_Read... [00:11:48]Read from MH i2c: E2 FD 00 [00:11:48]MH_I2C_Read... [00:11:48]Read from MH i2c: E2 FD 00 82 1A 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 48 [00:11:49]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 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 90 00 [00:11:49]wFMCommunicate OK [00:11:49]wFMCommunicate request_size=4 [00:11:49]MH_SAM_APDU [00:11:49]CAPDU: 80 17 00 00 [00:11:49]Write to MH i2c: E2 08 00 83 1A 80 17 00 00 00 00 00 00 1D [00:11:49]Write i2c OK [00:11:49]MH_I2C_Read... [00:11:49]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:11:49]Read from MH i2c: E2 [00:11:49]MH_I2C_Read... [00:11:49]Read from MH i2c: E2 FD 00 [00:11:49]MH_I2C_Read... [00:11:49]Read from MH i2c: E2 FD 00 83 1A 00 00 00 EF 03 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 90 00 92 [00:11:49]RAPDU: 00 00 EF 03 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 90 00 [00:11:49]wFMCommunicate OK [00:11:49]wFMCommunicate request_size=4 [00:11:49]MH_SAM_APDU [00:11:49]CAPDU: 80 17 00 00 [00:11:49]Write to MH i2c: E2 08 00 84 1A 80 17 00 00 00 00 00 00 1E [00:11:49]Write i2c OK [00:11:49]MH_I2C_Read... [00:11:50]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 213! [00:11:50]Read from MH i2c: E2 [00:11:50]MH_I2C_Read... [00:11:50]Read from MH i2c: E2 D8 00 [00:11:50]MH_I2C_Read... [00:11:50]Read from MH i2c: E2 D8 00 84 1A 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 05 [00:11:50]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 OFD Sender: No OFD packet to send [00:11:50]EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:11:50]wFMCommunicate OK [00:11:50]SAM_PROTO_GetShiftData done [00:11:50]requested_item shift.sale.total_cash is exist - process it [00:11:50]requested_item shift.sale_refund.total is exist - process it [00:11:50]requested_item shift.sale_refund.total_cash is exist - process it [00:11:50]requested_item shift.buy.total is exist - process it [00:11:50]requested_item shift.buy.total_cash is exist - process it [00:11:50]produce_requested_data done [00:11:50]produce_requested_data return {"fm.sale.total":181972491.77,"fm.sale_refund.total":4036102.00,"fm.buy.total":0.00,"shift.sale.total":393324.59,"shift.sale.total_cash":291417.00,"shift.sale_refund.total":5739.00,"shift.sale_refund.total_cash":5739.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:11:50]process_action_free get_value [00:11:50]json_value_free [00:11:50]json_value_free done [00:11:50]process_json_proto returns [00:11:50]Send response to host [00:11:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":181972491.77,"fm.sale_refund.total":4036102.00,"fm.buy.total":0.00,"shift.sale.total":393324.59,"shift.sale.total_cash":291417.00,"shift.sale_refund.total":5739.00,"shift.sale_refund.total_cash":5739.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:11:50]free response buf [00:11:50]execute_script done [00:11:50]execute_script returns [00:11:50]free content buf [00:11:50]Sock 8.Close socket [00:11:50]Sock 8.Thread stoped [00:11:50]accept exits with 9 [00:11:50]New connection [00:11:50]New thread 3066940772 created [00:11:50]Thread 3066797412 joined [00:11:50]Waiting for new connection... [00:11:50] Sock 9.Parse request [00:11:50]Sock 9.Check first char [00:11:50]Sock 9.First char is OK [00:11:50]request: POST /json_proto HTTP/1.0 [00:11:50]Method: POST [00:11:50]URL: /json_proto [00:11:50]Method is POST - this is cgi request [00:11:50]url: /json_proto [00:11:50]query_string will be loaded in cgi processing [00:11:50]execute_cgi json_proto POST (null) [00:11:50]execute_cgi path=json_proto method=POST [00:11:50]POST find Content-Length [00:11:50]Host: 172.17.38.133:8080 [00:11:50]Content-Length: 272 [00:11:50]Content-Type: application/json [00:11:50] [00:11:50]POST finish read [00:11:50]Found Content-Length = 272 [00:11:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:11:50]execute_script... [00:11:50]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u0411\u0430\u0439\u0431\u0443\u0433\u0443\u0435\u0432\u0430 \u0413. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:11:50]POST & json_proto [00:11:50]process_json_proto [00:11:50]json parsed OK: [00:11:50]protocol is kg_v1.0 [00:11:50]action value=close_shift [00:11:50]process_action close_shift [00:11:50]cmd_close_shift [00:11:50]MH_GetDate [00:11:50]Write to MH i2c: F0 00 00 85 1A 8E [00:11:50]Write i2c OK [00:11:50]MH_I2C_Read... [00:11:50]Read from MH i2c: F0 [00:11:50]MH_I2C_Read... [00:11:50]Read from MH i2c: F0 09 00 [00:11:50]MH_I2C_Read... [00:11:50]Read from MH i2c: F0 09 00 85 1A 00 C8 73 73 66 BD 8F 7C 64 D7 [00:11:50]GetLastDocTimeStamp 1718842268 [00:11:50]current date 1718842312 [00:11:50]FM_GetShiftState [00:11:50]SAM_PROTO_GetShiftState [00:11:50]wFMCommunicate request_size=4 [00:11:50]MH_SAM_APDU [00:11:50]CAPDU: 80 13 01 00 [00:11:50]Write to MH i2c: E2 08 00 86 1A 80 13 01 00 00 00 00 00 1D [00:11:50]Write i2c OK [00:11:50]MH_I2C_Read... [00:11:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:11:50]Read from MH i2c: E2 [00:11:50]MH_I2C_Read... [00:11:50]Read from MH i2c: E2 0E 00 [00:11:50]MH_I2C_Read... [00:11:50]Read from MH i2c: E2 0E 00 86 1A 00 09 00 01 04 26 72 66 00 00 00 00 90 00 2B [00:11:50]RAPDU: 09 00 01 04 26 72 66 00 00 00 00 90 00 [00:11:50]wFMCommunicate OK [00:11:50]SAM_PROTO_GetShiftState done [00:11:50]FM_GetShiftState done [00:11:50]KKMCreateCloseShiftDocument [00:11:50]Load OK [00:11:50]Malloc new data [00:11:50]MH_GetDate [00:11:50]Write to MH i2c: F0 00 00 87 1A 90 [00:11:50]Write i2c OK [00:11:50]MH_I2C_Read... [00:11:50]Read from MH i2c: F0 [00:11:50]MH_I2C_Read... [00:11:50]Read from MH i2c: F0 09 00 [00:11:50]MH_I2C_Read... [00:11:50]Read from MH i2c: F0 09 00 87 1A 00 C8 73 73 66 BD 8F 7C 64 D9 [00:11:50]Malloc new data [00:11:50]Malloc new data [00:11:50]Malloc new data [00:11:50]Malloc new data [00:11:50]KKMCreateCloseShiftDocument OK [00:11:50]KKMSetCloseShiftData OK [00:11:50]ProcessDocumentItem done err = 0, tmpTLVsize=75 [00:11:50]tlvbuf is 01808790 [00:11:50]KKMLoadAndSignCloseShiftData [00:11:50]SAM_PROTO_ProcessDocument [00:11:50]wFMCommunicate request_size=9 [00:11:50]MH_SAM_APDU [00:11:50]CAPDU: 80 15 01 00 04 05 00 4B 00 [00:11:50]Write to MH i2c: E2 0C 00 88 1A 80 15 01 00 04 00 05 00 4B 00 00 00 79 [00:11:50]Write i2c OK [00:11:50]MH_I2C_Read... [00:11:50]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [00:11:50]Read from MH i2c: E2 [00:11:50]MH_I2C_Read... [00:11:50]Read from MH i2c: E2 03 00 [00:11:50]MH_I2C_Read... [00:11:50]Read from MH i2c: E2 03 00 88 1A 00 90 00 16 [00:11:50]RAPDU: 90 00 [00:11:50]wFMCommunicate OK [00:11:50]wFMCommunicate request_size=23 [00:11:50]MH_SAM_APDU [00:11:50]CAPDU: 80 15 02 00 12 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 [00:11:50]Write to MH i2c: E2 1A 00 89 1A 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 18 [00:11:50]Write i2c OK [00:11:50]MH_I2C_Read... [00:11:50]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:11:50]Read from MH i2c: E2 [00:11:50]MH_I2C_Read... [00:11:50]Read from MH i2c: E2 03 00 [00:11:50]MH_I2C_Read... [00:11:50]Read from MH i2c: E2 03 00 89 1A 00 90 00 17 [00:11:50]RAPDU: 90 00 [00:11:50]wFMCommunicate OK [00:11:50]wFMCommunicate request_size=34 [00:11:50]MH_SAM_APDU [00:11:50]CAPDU: 80 15 02 00 1D FD 03 19 00 D0 91 D0 B0 D0 B9 D0 B1 D1 83 D0 B3 D1 83 D0 B5 D0 B2 D0 B0 20 D0 93 2E 20 [00:11:50]Write to MH i2c: E2 25 00 8A 1A 80 15 02 00 1D 00 FD 03 19 00 D0 91 D0 B0 D0 B9 D0 B1 D1 83 D0 B3 D1 83 D0 B5 D0 B2 D0 B0 20 D0 93 2E 20 00 00 E5 [00:11:50]Write i2c OK [00:11:50]MH_I2C_Read... [00:11:51]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:11:51]Read from MH i2c: E2 [00:11:51]MH_I2C_Read... [00:11:51]Read from MH i2c: E2 03 00 [00:11:51]MH_I2C_Read... [00:11:51]Read from MH i2c: E2 03 00 8A 1A 00 90 00 18 [00:11:51]RAPDU: 90 00 [00:11:51]wFMCommunicate OK [00:11:51]wFMCommunicate request_size=13 [00:11:51]MH_SAM_APDU [00:11:51]CAPDU: 80 15 02 00 08 F4 03 04 00 C8 73 73 66 [00:11:51]Write to MH i2c: E2 10 00 8B 1A 80 15 02 00 08 00 F4 03 04 00 C8 73 73 66 00 00 44 [00:11:51]Write i2c OK [00:11:51]MH_I2C_Read... [00:11:51]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:11:51]Read from MH i2c: E2 [00:11:51]MH_I2C_Read... [00:11:51]Read from MH i2c: E2 03 00 [00:11:51]MH_I2C_Read... [00:11:51]Read from MH i2c: E2 03 00 8B 1A 00 90 00 19 [00:11:51]RAPDU: 90 00 [00:11:51]wFMCommunicate OK [00:11:51]wFMCommunicate request_size=25 [00:11:51]MH_SAM_APDU [00:11:51]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 [00:11:51]Write to MH i2c: E2 1C 00 8C 1A 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 00 00 8E [00:11:51]Write i2c OK [00:11:51]MH_I2C_Read... [00:11:51]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:11:51]Read from MH i2c: E2 [00:11:51]MH_I2C_Read... [00:11:51]Read from MH i2c: E2 03 00 [00:11:51]MH_I2C_Read... [00:11:51]Read from MH i2c: E2 03 00 8C 1A 00 90 00 1A [00:11:51]RAPDU: 90 00 [00:11:51]wFMCommunicate OK [00:11:51]wFMCommunicate request_size=4 [00:11:51]MH_SAM_APDU [00:11:51]CAPDU: 80 15 03 00 [00:11:51]Write to MH i2c: E2 08 00 8D 1A 80 15 03 00 00 00 00 00 28 [00:11:51]Write i2c OK [00:11:51]MH_I2C_Read... [00:11:51]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 250! [00:11:51]Read from MH i2c: E2 [00:11:51]MH_I2C_Read... [00:11:51]Read from MH i2c: E2 FD 00 [00:11:51]MH_I2C_Read... [00:11:51]Read from MH i2c: E2 FD 00 8D 1A 00 FE 04 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 86 95 01 00 0E 04 04 00 61 01 00 00 5E 04 04 00 F3 00 00 00 57 04 04 00 F5 00 00 00 AA 04 B7 04 6E 04 04 00 F3 00 00 00 69 04 9E 00 6F 04 04 00 F0 00 00 00 B1 04 04 00 6B 2A 58 02 70 04 04 00 C4 AA BC 01 72 04 03 00 A7 7F 9B 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 57 BF 3F 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 CE 4F 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 03 00 00 00 B1 04 03 00 CC 90 00 AD [00:11:51]RAPDU: FE 04 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 86 95 01 00 0E 04 04 00 61 01 00 00 5E 04 04 00 F3 00 00 00 57 04 04 00 F5 00 00 00 AA 04 B7 04 6E 04 04 00 F3 00 00 00 69 04 9E 00 6F 04 04 00 F0 00 00 00 B1 04 04 00 6B 2A 58 02 70 04 04 00 C4 AA BC 01 72 04 03 00 A7 7F 9B 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 57 BF 3F 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 CE 4F 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 03 00 00 00 B1 04 03 00 CC 90 00 [00:11:52]wFMCommunicate OK [00:11:52]SAM_PROTO_ProcessDocument answer len = 1278 [00:11:52]SAM_PROTO_ProcessDocument remain to read = 1030 [00:11:52]wFMCommunicate request_size=4 [00:11:52]MH_SAM_APDU [00:11:52]CAPDU: 80 17 00 00 [00:11:52]Write to MH i2c: E2 08 00 8E 1A 80 17 00 00 00 00 00 00 28 [00:11:52]Write i2c OK [00:11:52]MH_I2C_Read... [00:11:52]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:11:52]Read from MH i2c: E2 [00:11:52]MH_I2C_Read... [00:11:52]Read from MH i2c: E2 FD 00 [00:11:52]MH_I2C_Read... [00:11:52]Read from MH i2c: E2 FD 00 8E 1A 00 C1 08 70 04 03 00 CC C1 08 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 1A EE 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 D7 13 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 51 [00:11:52]RAPDU: C1 08 70 04 03 00 CC C1 08 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 1A EE 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 D7 13 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:11:52]wFMCommunicate OK [00:11:52]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:11:52]SAM_PROTO_ProcessDocument remain to read = 780 [00:11:52]wFMCommunicate request_size=4 [00:11:52]MH_SAM_APDU [00:11:52]CAPDU: 80 17 00 00 [00:11:52]Write to MH i2c: E2 08 00 8F 1A 80 17 00 00 00 00 00 00 29 [00:11:52]Write i2c OK [00:11:52]MH_I2C_Read... [00:11:52]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:11:52]Read from MH i2c: E2 [00:11:52]MH_I2C_Read... [00:11:52]Read from MH i2c: E2 FD 00 [00:11:52]MH_I2C_Read... [00:11:52]Read from MH i2c: E2 FD 00 8F 1A 00 01 00 04 F7 03 00 00 EF 03 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 90 00 8F [00:11:53]RAPDU: 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:11:53]wFMCommunicate OK [00:11:53]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:11:53]SAM_PROTO_ProcessDocument remain to read = 530 [00:11:53]wFMCommunicate request_size=4 [00:11:53]MH_SAM_APDU [00:11:53]CAPDU: 80 17 00 00 [00:11:53]Write to MH i2c: E2 08 00 90 1A 80 17 00 00 00 00 00 00 2A [00:11:53]Write i2c OK [00:11:53]MH_I2C_Read... [00:11:53]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:11:53]Read from MH i2c: E2 [00:11:53]MH_I2C_Read... [00:11:53]Read from MH i2c: E2 FD 00 [00:11:53]MH_I2C_Read... [00:11:53]Read from MH i2c: E2 FD 00 90 1A 00 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 C8 [00:11:53]RAPDU: 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:11:53]wFMCommunicate OK [00:11:53]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:11:53]SAM_PROTO_ProcessDocument remain to read = 280 [00:11:53]wFMCommunicate request_size=4 [00:11:53]MH_SAM_APDU [00:11:53]CAPDU: 80 17 00 00 [00:11:53]Write to MH i2c: E2 08 00 91 1A 80 17 00 00 00 00 00 00 2B [00:11:53]Write i2c OK [00:11:53]MH_I2C_Read... [00:11:54]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:11:54]Read from MH i2c: E2 [00:11:54]MH_I2C_Read... [00:11:54]Read from MH i2c: E2 FD 00 [00:11:54]MH_I2C_Read... [00:11:54]Read from MH i2c: E2 FD 00 91 1A 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 DA [00:11:54]RAPDU: 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:11:54]wFMCommunicate OK [00:11:54]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:11:54]SAM_PROTO_ProcessDocument remain to read = 30 [00:11:54]wFMCommunicate request_size=4 [00:11:54]MH_SAM_APDU [00:11:54]CAPDU: 80 17 00 00 [00:11:54]Write to MH i2c: E2 08 00 92 1A 80 17 00 00 00 00 00 00 2C [00:11:54]Write i2c OK [00:11:54]MH_I2C_Read... [00:11:54]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 30! [00:11:54]Read from MH i2c: E2 [00:11:54]MH_I2C_Read... [00:11:54]Read from MH i2c: E2 21 00 [00:11:54]MH_I2C_Read... [00:11:54]Read from MH i2c: E2 21 00 92 1A 00 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 35 04 06 00 6D C4 C3 45 81 94 90 00 C0 [00:11:54]RAPDU: 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 35 04 06 00 6D C4 C3 45 81 94 90 00 [00:11:54]wFMCommunicate OK [00:11:54]SAM_PROTO_ProcessDocument received (without SW) 30 bytes [00:11:54]SAM_PROTO_ProcessDocument done [00:11:54]1209 (1) - 1.0 - номер версии ФФД [00:11:54]1041 (16) - 0000000000875093 - номер ФМ [00:11:54]1040 (4) - 103814 - номер ФД [00:11:54]1038 (4) - 353 - номер смены [00:11:54]1118 (4) - 243 - количество кассовых чеков за смену [00:11:54]1111 (4) - 245 - общее количество ФД за смену [00:11:54]1194 (1207) - счетчики итогов смены [00:11:54] 1134 (4) - 243 - количество чеков со всеми признаками расчетов [00:11:54] 1129 (158) - счетчики операций «приход» [00:11:54] 1135 (4) - 240 - количество чеков по признаку расчетов [00:11:54] 1201 (4) - 393324.59 - общая итоговая сумма в чеках [00:11:54] 1136 (4) - 291417.00 - итоговая сумма в чеках наличными [00:11:54] 1138 (3) - 101907.59 - итоговая сумма в чеках безналичными [00:11:54] 1024 (123) - суммы налогов [00:11:54] 1006 (9) - суммы НДС [00:11:54] 1010 (1) - 0% - код ставки НДС [00:11:54] 1011 (0) - 0.00 - сумма НДС по ставке [00:11:54] 1006 (12) - суммы НДС [00:11:54] 1010 (1) - 12% - код ставки НДС [00:11:54] 1011 (3) - 41777.51 - сумма НДС по ставке [00:11:54] 1007 (9) - суммы НСП [00:11:54] 1014 (1) - 0% - код ставки НСП [00:11:54] 1015 (0) - 0.00 - сумма НСП по ставке [00:11:54] 1007 (12) - суммы НСП [00:11:54] 1014 (1) - 1% - код ставки НСП [00:11:54] 1015 (3) - 3481.10 - сумма НСП по ставке [00:11:54] 1007 (9) - суммы НСП [00:11:54] 1014 (1) - 2% - код ставки НСП [00:11:54] 1015 (0) - 0.00 - сумма НСП по ставке [00:11:54] 1007 (9) - суммы НСП [00:11:54] 1014 (1) - 3% - код ставки НСП [00:11:54] 1015 (0) - 0.00 - сумма НСП по ставке [00:11:54] 1007 (9) - суммы НСП [00:11:54] 1014 (1) - 5% - код ставки НСП [00:11:54] 1015 (0) - 0.00 - сумма НСП по ставке [00:11:54] 1007 (9) - суммы НСП [00:11:54] 1014 (1) - 0,50% - код ставки НСП [00:11:54] 1015 (0) - 0.00 - сумма НСП по ставке [00:11:54] 1007 (9) - суммы НСП [00:11:54] 1014 (1) - 1,50% - код ставки НСП [00:11:54] 1015 (0) - 0.00 - сумма НСП по ставке [00:11:54] 1130 (151) - счетчики операций «возврат прихода» [00:11:54] 1135 (4) - 3 - количество чеков по признаку расчетов [00:11:54] 1201 (3) - 5739.00 - общая итоговая сумма в чеках [00:11:54] 1136 (3) - 5739.00 - итоговая сумма в чеках наличными [00:11:54] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:11:54] 1024 (121) - суммы налогов [00:11:54] 1006 (9) - суммы НДС [00:11:54] 1010 (1) - 0% - код ставки НДС [00:11:54] 1011 (0) - 0.00 - сумма НДС по ставке [00:11:54] 1006 (11) - суммы НДС [00:11:54] 1010 (1) - 12% - код ставки НДС [00:11:54] 1011 (2) - 609.54 - сумма НДС по ставке [00:11:54] 1007 (9) - суммы НСП [00:11:54] 1014 (1) - 0% - код ставки НСП [00:11:54] 1015 (0) - 0.00 - сумма НСП по ставке [00:11:54] 1007 (11) - суммы НСП [00:11:54] 1014 (1) - 1% - код ставки НСП [00:11:54] 1015 (2) - 50.79 - сумма НСП по ставке [00:11:54] 1007 (9) - суммы НСП [00:11:54] 1014 (1) - 2% - код ставки НСП [00:11:54] 1015 (0) - 0.00 - сумма НСП по ставке [00:11:54] 1007 (9) - суммы НСП [00:11:54] 1014 (1) - 3% - код ставки НСП [00:11:54] 1015 (0) - 0.00 - сумма НСП по ставке [00:11:54] 1007 (9) - суммы НСП [00:11:54] 1014 (1) - 5% - код ставки НСП [00:11:54] 1015 (0) - 0.00 - сумма НСП по ставке [00:11:54] 1007 (9) - суммы НСП [00:11:54] 1014 (1) - 0,50% - код ставки НСП [00:11:54] 1015 (0) - 0.00 - сумма НСП по ставке [00:11:54] 1007 (9) - суммы НСП [00:11:54] 1014 (1) - 1,50% - код ставки НСП [00:11:54] 1015 (0) - 0.00 - сумма НСП по ставке [00:11:54] 1131 (141) - счетчики операций «расход» [00:11:54] 1135 (4) - 0 - количество чеков по признаку расчетов [00:11:54] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:11:54] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:11:54] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:11:54] 1024 (117) - суммы налогов [00:11:54] 1006 (9) - суммы НДС [00:11:54] 1010 (1) - 0% - код ставки НДС [00:11:54] 1011 (0) - 0.00 - сумма НДС по ставке [00:11:54] 1006 (9) - суммы НДС [00:11:54] 1010 (1) - 12% - код ставки НДС [00:11:54] 1011 (0) - 0.00 - сумма НДС по ставке [00:11:55] 1007 (9) - суммы НСП [00:11:55] 1014 (1) - 0% - код ставки НСП [00:11:55] 1015 (0) - 0.00 - сумма НСП по ставке [00:11:55] 1007 (9) - суммы НСП [00:11:55] 1014 (1) - 1% - код ставки НСП [00:11:55] 1015 (0) - 0.00 - сумма НСП по ставке [00:11:55] 1007 (9) - суммы НСП [00:11:55] 1014 (1) - 2% - код ставки НСП [00:11:55] 1015 (0) - 0.00 - сумма НСП по ставке [00:11:55] 1007 (9) - суммы НСП [00:11:55] 1014 (1) - 3% - код ставки НСП [00:11:55] 1015 (0) - 0.00 - сумма НСП по ставке [00:11:55] 1007 (9) - суммы НСП [00:11:55] 1014 (1) - 5% - код ставки НСП [00:11:55] 1015 (0) - 0.00 - сумма НСП по ставке [00:11:55] 1007 (9) - суммы НСП [00:11:55] 1014 (1) - 0,50% - код ставки НСП [00:11:55] 1015 (0) - 0.00 - сумма НСП по ставке [00:11:55] 1007 (9) - суммы НСП [00:11:55] 1014 (1) - 1,50% - код ставки НСП [00:11:55] 1015 (0) - 0.00 - сумма НСП по ставке [00:11:55] 1132 (141) - счетчики операций «возврат расхода» [00:11:55] 1135 (4) - 0 - количество чеков по признаку расчетов [00:11:55] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:11:55] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:11:55] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:11:55] 1024 (117) - суммы налогов [00:11:55] 1006 (9) - суммы НДС [00:11:55] 1010 (1) - 0% - код ставки НДС [00:11:55] 1011 (0) - 0.00 - сумма НДС по ставке [00:11:55] 1006 (9) - суммы НДС [00:11:55] 1010 (1) - 12% - код ставки НДС [00:11:55] 1011 (0) - 0.00 - сумма НДС по ставке [00:11:55] 1007 (9) - суммы НСП [00:11:55] 1014 (1) - 0% - код ставки НСП [00:11:55] 1015 (0) - 0.00 - сумма НСП по ставке [00:11:55] 1007 (9) - суммы НСП [00:11:55] 1014 (1) - 1% - код ставки НСП [00:11:55] 1015 (0) - 0.00 - сумма НСП по ставке [00:11:55] 1007 (9) - суммы НСП [00:11:55] 1014 (1) - 2% - код ставки НСП [00:11:55] 1015 (0) - 0.00 - сумма НСП по ставке [00:11:55] 1007 (9) - суммы НСП [00:11:55] 1014 (1) - 3% - код ставки НСП [00:11:55] 1015 (0) - 0.00 - сумма НСП по ставке [00:11:55] 1007 (9) - суммы НСП [00:11:55] 1014 (1) - 5% - код ставки НСП [00:11:55] 1015 (0) - 0.00 - сумма НСП по ставке [00:11:55] 1007 (9) - суммы НСП [00:11:55] 1014 (1) - 0,50% - код ставки НСП [00:11:55] 1015 (0) - 0.00 - сумма НСП по ставке [00:11:55] 1007 (9) - суммы НСП [00:11:55] 1014 (1) - 1,50% - код ставки НСП [00:11:55] 1015 (0) - 0.00 - сумма НСП по ставке [00:11:55] 1133 (588) - - счетчики коррекции - не используются [00:11:55]1077 (6) - 120691857129876 - ФПД [00:11:55]SetTLVBufToDocument [00:11:55]Processing tag 1209 (04B9) [00:11:55]Malloc new data [00:11:55]Processing tag 1041 (0411) [00:11:55]Processing tag 1040 (0410) [00:11:55]Malloc new data [00:11:55]Processing tag 1038 (040E) [00:11:55]Malloc new data [00:11:55]Processing tag 1118 (045E) [00:11:55]Malloc new data [00:11:55]Processing tag 1111 (0457) [00:11:55]Malloc new data [00:11:55]Processing tag 1194 (04AA) [00:11:55]Load OK [00:11:55]SetTLVBufToDocument [00:11:55]Processing tag 1134 (046E) [00:11:55]Malloc new data [00:11:55]Processing tag 1129 (0469) [00:11:55]Load OK [00:11:55]SetTLVBufToDocument [00:11:55]Processing tag 1135 (046F) [00:11:55]Malloc new data [00:11:55]Processing tag 1201 (04B1) [00:11:55]Malloc new data [00:11:55]Processing tag 1136 (0470) [00:11:55]Malloc new data [00:11:55]Processing tag 1138 (0472) [00:11:55]Malloc new data [00:11:55]Processing tag 1024 (0400) [00:11:55]Load OK [00:11:55]SetTLVBufToDocument [00:11:55]Processing tag 1006 (03EE) [00:11:55]Load OK [00:11:55]SetTLVBufToDocument [00:11:55]Processing tag 1010 (03F2) [00:11:55]Malloc new data [00:11:55]Processing tag 1011 (03F3) [00:11:55]Malloc new data [00:11:55]SetTLVBufToDocument err=0 [00:11:55]Processing tag 1006 (03EE) [00:11:55]Load OK [00:11:55]SetTLVBufToDocument [00:11:55]Processing tag 1010 (03F2) [00:11:55]Malloc new data [00:11:55]Processing tag 1011 (03F3) [00:11:55]Malloc new data [00:11:55]SetTLVBufToDocument err=0 [00:11:55]Processing tag 1007 (03EF) [00:11:55]Load OK [00:11:55]SetTLVBufToDocument [00:11:55]Processing tag 1014 (03F6) [00:11:55]Malloc new data [00:11:55]Processing tag 1015 (03F7) [00:11:55]Malloc new data [00:11:55]SetTLVBufToDocument err=0 [00:11:55]Processing tag 1007 (03EF) [00:11:55]Load OK [00:11:55]SetTLVBufToDocument [00:11:55]Processing tag 1014 (03F6) [00:11:55]Malloc new data [00:11:55]Processing tag 1015 (03F7) [00:11:55]Malloc new data [00:11:55]SetTLVBufToDocument err=0 [00:11:55]Processing tag 1007 (03EF) [00:11:55]Load OK [00:11:55]SetTLVBufToDocument [00:11:55]Processing tag 1014 (03F6) [00:11:55]Malloc new data [00:11:55]Processing tag 1015 (03F7) [00:11:55]Malloc new data [00:11:55]SetTLVBufToDocument err=0 [00:11:55]Processing tag 1007 (03EF) [00:11:55]Load OK [00:11:55]SetTLVBufToDocument [00:11:55]Processing tag 1014 (03F6) [00:11:55]Malloc new data [00:11:55]Processing tag 1015 (03F7) [00:11:55]Malloc new data [00:11:55]SetTLVBufToDocument err=0 [00:11:55]Processing tag 1007 (03EF) [00:11:55]Load OK [00:11:55]SetTLVBufToDocument [00:11:55]Processing tag 1014 (03F6) [00:11:55]Malloc new data [00:11:55]Processing tag 1015 (03F7) [00:11:55]Malloc new data [00:11:55]SetTLVBufToDocument err=0 [00:11:55]Processing tag 1007 (03EF) [00:11:55]Load OK [00:11:55]SetTLVBufToDocument [00:11:55]Processing tag 1014 (03F6) [00:11:55]Malloc new data [00:11:55]Processing tag 1015 (03F7) [00:11:55]Malloc new data [00:11:55]SetTLVBufToDocument err=0 [00:11:55]Processing tag 1007 (03EF) [00:11:55]Load OK [00:11:55]SetTLVBufToDocument [00:11:55]Processing tag 1014 (03F6) [00:11:55]Malloc new data [00:11:55]Processing tag 1015 (03F7) [00:11:55]Malloc new data [00:11:55]SetTLVBufToDocument err=0 [00:11:55]SetTLVBufToDocument err=0 [00:11:55]SetTLVBufToDocument err=0 [00:11:55]Processing tag 1130 (046A) [00:11:55]Load OK [00:11:55]SetTLVBufToDocument [00:11:55]Processing tag 1135 (046F) [00:11:55]Malloc new data [00:11:55]Processing tag 1201 (04B1) [00:11:55]Malloc new data [00:11:55]Processing tag 1136 (0470) [00:11:55]Malloc new data [00:11:55]Processing tag 1138 (0472) [00:11:55]Malloc new data [00:11:55]Processing tag 1024 (0400) [00:11:55]Load OK [00:11:55]SetTLVBufToDocument [00:11:55]Processing tag 1006 (03EE) [00:11:55]Load OK [00:11:55]SetTLVBufToDocument [00:11:55]Processing tag 1010 (03F2) [00:11:55]Malloc new data [00:11:55]Processing tag 1011 (03F3) [00:11:55]Malloc new data [00:11:55]SetTLVBufToDocument err=0 [00:11:55]Processing tag 1006 (03EE) [00:11:55]Load OK [00:11:55]SetTLVBufToDocument [00:11:55]Processing tag 1010 (03F2) [00:11:55]Malloc new data [00:11:55]Processing tag 1011 (03F3) [00:11:55]Malloc new data [00:11:55]SetTLVBufToDocument err=0 [00:11:55]Processing tag 1007 (03EF) [00:11:55]Load OK [00:11:55]SetTLVBufToDocument [00:11:55]Processing tag 1014 (03F6) [00:11:55]Malloc new data [00:11:55]Processing tag 1015 (03F7) [00:11:55]Malloc new data [00:11:55]SetTLVBufToDocument err=0 [00:11:55]Processing tag 1007 (03EF) [00:11:55]Load OK [00:11:55]SetTLVBufToDocument [00:11:55]Processing tag 1014 (03F6) [00:11:55]Malloc new data [00:11:55]Processing tag 1015 (03F7) [00:11:55]Malloc new data [00:11:55]SetTLVBufToDocument err=0 [00:11:55]Processing tag 1007 (03EF) [00:11:55]Load OK [00:11:55]SetTLVBufToDocument [00:11:55]Processing tag 1014 (03F6) [00:11:55]Malloc new data [00:11:55]Processing tag 1015 (03F7) [00:11:55]Malloc new data [00:11:55]SetTLVBufToDocument err=0 [00:11:55]Processing tag 1007 (03EF) [00:11:55]Load OK [00:11:55]SetTLVBufToDocument [00:11:55]Processing tag 1014 (03F6) [00:11:55]Malloc new data [00:11:55]Processing tag 1015 (03F7) [00:11:55]Malloc new data [00:11:55]SetTLVBufToDocument err=0 [00:11:55]Processing tag 1007 (03EF) [00:11:55]Load OK [00:11:55]SetTLVBufToDocument [00:11:55]Processing tag 1014 (03F6) [00:11:55]Malloc new data [00:11:55]Processing tag 1015 (03F7) [00:11:55]Malloc new data [00:11:55]SetTLVBufToDocument err=0 [00:11:55]Processing tag 1007 (03EF) [00:11:55]Load OK [00:11:55]SetTLVBufToDocument [00:11:55]Processing tag 1014 (03F6) [00:11:55]Malloc new data [00:11:55]Processing tag 1015 (03F7) [00:11:55]Malloc new data [00:11:55]SetTLVBufToDocument err=0 [00:11:55]Processing tag 1007 (03EF) [00:11:55]Load OK [00:11:55]SetTLVBufToDocument [00:11:55]Processing tag 1014 (03F6) [00:11:55]Malloc new data [00:11:55]Processing tag 1015 (03F7) [00:11:55]Malloc new data [00:11:55]SetTLVBufToDocument err=0 [00:11:55]SetTLVBufToDocument err=0 [00:11:55]SetTLVBufToDocument err=0 [00:11:55]Processing tag 1131 (046B) [00:11:55]Load OK [00:11:55]SetTLVBufToDocument [00:11:55]Processing tag 1135 (046F) [00:11:55]Malloc new data [00:11:55]Processing tag 1201 (04B1) [00:11:55]Malloc new data [00:11:55]Processing tag 1136 (0470) [00:11:55]Malloc new data [00:11:55]Processing tag 1138 (0472) [00:11:55]Malloc new data [00:11:55]Processing tag 1024 (0400) [00:11:55]Load OK [00:11:55]SetTLVBufToDocument [00:11:55]Processing tag 1006 (03EE) [00:11:55]Load OK [00:11:55]SetTLVBufToDocument [00:11:55]Processing tag 1010 (03F2) [00:11:55]Malloc new data [00:11:55]Processing tag 1011 (03F3) [00:11:55]Malloc new data [00:11:55]SetTLVBufToDocument err=0 [00:11:55]Processing tag 1006 (03EE) [00:11:55]Load OK [00:11:55]SetTLVBufToDocument [00:11:55]Processing tag 1010 (03F2) [00:11:55]Malloc new data [00:11:55]Processing tag 1011 (03F3) [00:11:55]Malloc new data [00:11:55]SetTLVBufToDocument err=0 [00:11:55]Processing tag 1007 (03EF) [00:11:55]Load OK [00:11:55]SetTLVBufToDocument [00:11:55]Processing tag 1014 (03F6) [00:11:55]Malloc new data [00:11:55]Processing tag 1015 (03F7) [00:11:55]Malloc new data [00:11:55]SetTLVBufToDocument err=0 [00:11:55]Processing tag 1007 (03EF) [00:11:55]Load OK [00:11:55]SetTLVBufToDocument [00:11:55]Processing tag 1014 (03F6) [00:11:55]Malloc new data [00:11:55]Processing tag 1015 (03F7) [00:11:55]Malloc new data [00:11:55]SetTLVBufToDocument err=0 [00:11:55]Processing tag 1007 (03EF) [00:11:55]Load OK [00:11:55]SetTLVBufToDocument [00:11:55]Processing tag 1014 (03F6) [00:11:55]Malloc new data [00:11:55]Processing tag 1015 (03F7) [00:11:55]Malloc new data [00:11:55]SetTLVBufToDocument err=0 [00:11:55]Processing tag 1007 (03EF) [00:11:55]Load OK [00:11:55]SetTLVBufToDocument [00:11:55]Processing tag 1014 (03F6) [00:11:55]Malloc new data [00:11:55]Processing tag 1015 (03F7) [00:11:55]Malloc new data [00:11:55]SetTLVBufToDocument err=0 [00:11:55]Processing tag 1007 (03EF) [00:11:55]Load OK [00:11:55]SetTLVBufToDocument [00:11:55]Processing tag 1014 (03F6) [00:11:55]Malloc new data [00:11:55]Processing tag 1015 (03F7) [00:11:55]Malloc new data [00:11:55]SetTLVBufToDocument err=0 [00:11:55]Processing tag 1007 (03EF) [00:11:55]Load OK [00:11:55]SetTLVBufToDocument [00:11:55]Processing tag 1014 (03F6) [00:11:55]Malloc new data [00:11:55]Processing tag 1015 (03F7) [00:11:55]Malloc new data [00:11:55]SetTLVBufToDocument err=0 [00:11:55]Processing tag 1007 (03EF) [00:11:55]Load OK [00:11:55]SetTLVBufToDocument [00:11:55]Processing tag 1014 (03F6) [00:11:55]Malloc new data [00:11:55]Processing tag 1015 (03F7) [00:11:55]Malloc new data [00:11:55]SetTLVBufToDocument err=0 [00:11:55]SetTLVBufToDocument err=0 [00:11:55]SetTLVBufToDocument err=0 [00:11:55]Processing tag 1132 (046C) [00:11:55]Load OK [00:11:55]SetTLVBufToDocument [00:11:55]Processing tag 1135 (046F) [00:11:55]Malloc new data [00:11:55]Processing tag 1201 (04B1) [00:11:55]Malloc new data [00:11:55]Processing tag 1136 (0470) [00:11:55]Malloc new data [00:11:55]OFD Sender: No OFD packet to send [00:11:55]Processing tag 1138 (0472) [00:11:55]Malloc new data [00:11:55]Processing tag 1024 (0400) [00:11:55]Load OK [00:11:55]SetTLVBufToDocument [00:11:55]Processing tag 1006 (03EE) [00:11:55]Load OK [00:11:55]SetTLVBufToDocument [00:11:55]Processing tag 1010 (03F2) [00:11:55]Malloc new data [00:11:55]Processing tag 1011 (03F3) [00:11:55]Malloc new data [00:11:55]SetTLVBufToDocument err=0 [00:11:55]Processing tag 1006 (03EE) [00:11:55]Load OK [00:11:55]SetTLVBufToDocument [00:11:55]Processing tag 1010 (03F2) [00:11:55]Malloc new data [00:11:55]Processing tag 1011 (03F3) [00:11:55]Malloc new data [00:11:55]SetTLVBufToDocument err=0 [00:11:55]Processing tag 1007 (03EF) [00:11:55]Load OK [00:11:55]SetTLVBufToDocument [00:11:55]Processing tag 1014 (03F6) [00:11:55]Malloc new data [00:11:55]Processing tag 1015 (03F7) [00:11:55]Malloc new data [00:11:55]SetTLVBufToDocument err=0 [00:11:55]Processing tag 1007 (03EF) [00:11:55]Load OK [00:11:55]SetTLVBufToDocument [00:11:55]Processing tag 1014 (03F6) [00:11:55]Malloc new data [00:11:55]Processing tag 1015 (03F7) [00:11:55]Malloc new data [00:11:55]SetTLVBufToDocument err=0 [00:11:55]Processing tag 1007 (03EF) [00:11:55]Load OK [00:11:55]SetTLVBufToDocument [00:11:55]Processing tag 1014 (03F6) [00:11:55]Malloc new data [00:11:55]Processing tag 1015 (03F7) [00:11:55]Malloc new data [00:11:55]SetTLVBufToDocument err=0 [00:11:55]Processing tag 1007 (03EF) [00:11:55]Load OK [00:11:55]SetTLVBufToDocument [00:11:55]Processing tag 1014 (03F6) [00:11:55]Malloc new data [00:11:55]Processing tag 1015 (03F7) [00:11:55]Malloc new data [00:11:55]SetTLVBufToDocument err=0 [00:11:55]Processing tag 1007 (03EF) [00:11:55]Load OK [00:11:55]SetTLVBufToDocument [00:11:55]Processing tag 1014 (03F6) [00:11:55]Malloc new data [00:11:55]Processing tag 1015 (03F7) [00:11:55]Malloc new data [00:11:55]SetTLVBufToDocument err=0 [00:11:55]Processing tag 1007 (03EF) [00:11:55]Load OK [00:11:55]SetTLVBufToDocument [00:11:55]Processing tag 1014 (03F6) [00:11:55]Malloc new data [00:11:55]Processing tag 1015 (03F7) [00:11:55]Malloc new data [00:11:55]SetTLVBufToDocument err=0 [00:11:55]Processing tag 1007 (03EF) [00:11:55]Load OK [00:11:55]SetTLVBufToDocument [00:11:55]Processing tag 1014 (03F6) [00:11:55]Malloc new data [00:11:55]Processing tag 1015 (03F7) [00:11:55]Malloc new data [00:11:55]SetTLVBufToDocument err=0 [00:11:55]SetTLVBufToDocument err=0 [00:11:55]SetTLVBufToDocument err=0 [00:11:55]Processing tag 1133 (046D) [00:11:55]Malloc new data [00:11:55]SetTLVBufToDocument err=0 [00:11:55]Processing tag 1077 (0435) [00:11:55]Malloc new data [00:11:55]SetTLVBufToDocument err=0 [00:11:55]Malloc new data [00:11:55]SAM_PROTO_GetFMData [00:11:55]wFMCommunicate request_size=4 [00:11:55]MH_SAM_APDU [00:11:55]CAPDU: 80 13 03 00 [00:11:55]Write to MH i2c: E2 08 00 93 1A 80 13 03 00 00 00 00 00 2C [00:11:55]Write i2c OK [00:11:55]MH_I2C_Read... [00:11:56]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:11:56]Read from MH i2c: E2 [00:11:56]MH_I2C_Read... [00:11:56]Read from MH i2c: E2 FD 00 [00:11:56]MH_I2C_Read... [00:11:56]Read from MH i2c: E2 FD 00 93 1A 00 C5 04 85 04 C1 04 6E 04 04 00 C3 92 01 00 69 04 A3 00 6F 04 04 00 6E 8E 01 00 B1 04 05 00 99 FC A3 3C 04 70 04 05 00 94 41 19 59 03 72 04 04 00 05 BB 8A E3 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 F7 D9 32 73 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 AB 70 99 09 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9C 00 6F 04 04 00 55 04 00 00 B1 04 04 00 58 9A 0E 18 70 04 04 00 58 9A 0E 18 72 04 00 00 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 06 0E 8E 02 EF 03 09 90 00 F1 [00:11:56]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 C3 92 01 00 69 04 A3 00 6F 04 04 00 6E 8E 01 00 B1 04 05 00 99 FC A3 3C 04 70 04 05 00 94 41 19 59 03 72 04 04 00 05 BB 8A E3 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 F7 D9 32 73 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 AB 70 99 09 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9C 00 6F 04 04 00 55 04 00 00 B1 04 04 00 58 9A 0E 18 70 04 04 00 58 9A 0E 18 72 04 00 00 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 06 0E 8E 02 EF 03 09 90 00 [00:11:56]wFMCommunicate OK [00:11:56]wFMCommunicate request_size=4 [00:11:56]MH_SAM_APDU [00:11:56]CAPDU: 80 17 00 00 [00:11:56]Write to MH i2c: E2 08 00 94 1A 80 17 00 00 00 00 00 00 2E [00:11:56]Write i2c OK [00:11:56]MH_I2C_Read... [00:11:57]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:11:57]Read from MH i2c: E2 [00:11:57]MH_I2C_Read... [00:11:57]Read from MH i2c: E2 FD 00 [00:11:57]MH_I2C_Read... [00:11:57]Read from MH i2c: E2 FD 00 94 1A 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 DB 80 36 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 75 [00:11:57]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 DB 80 36 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:11:57]wFMCommunicate OK [00:11:57]wFMCommunicate request_size=4 [00:11:57]MH_SAM_APDU [00:11:57]CAPDU: 80 17 00 00 [00:11:57]Write to MH i2c: E2 08 00 95 1A 80 17 00 00 00 00 00 00 2F [00:11:57]Write i2c OK [00:11:57]MH_I2C_Read... [00:11:57]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:11:57]Read from MH i2c: E2 [00:11:57]MH_I2C_Read... [00:11:57]Read from MH i2c: E2 FD 00 [00:11:57]MH_I2C_Read... [00:11:57]Read from MH i2c: E2 FD 00 95 1A 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 41 [00:11:57]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:11:58]wFMCommunicate OK [00:11:58]wFMCommunicate request_size=4 [00:11:58]MH_SAM_APDU [00:11:58]CAPDU: 80 17 00 00 [00:11:58]Write to MH i2c: E2 08 00 96 1A 80 17 00 00 00 00 00 00 30 [00:11:58]Write i2c OK [00:11:58]MH_I2C_Read... [00:11:58]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:11:58]Read from MH i2c: E2 [00:11:58]MH_I2C_Read... [00:11:58]Read from MH i2c: E2 FD 00 [00:11:58]MH_I2C_Read... [00:11:58]Read from MH i2c: E2 FD 00 96 1A 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 BC [00:11:58]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:11:58]wFMCommunicate OK [00:11:58]wFMCommunicate request_size=4 [00:11:58]MH_SAM_APDU [00:11:58]CAPDU: 80 17 00 00 [00:11:58]Write to MH i2c: E2 08 00 97 1A 80 17 00 00 00 00 00 00 31 [00:11:58]Write i2c OK [00:11:58]MH_I2C_Read... [00:11:59]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [00:11:59]Read from MH i2c: E2 [00:11:59]MH_I2C_Read... [00:11:59]Read from MH i2c: E2 E2 00 [00:11:59]MH_I2C_Read... [00:11:59]Read from MH i2c: E2 E2 00 97 1A 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 0F [00:11:59]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:11:59]wFMCommunicate OK [00:11:59]SAM_PROTO_GetFMData done [00:11:59]Malloc new data [00:11:59]Malloc new data [00:11:59]Malloc new data [00:11:59]Malloc new data [00:11:59]KKMLoadAndSignCloseShiftData err=0 [00:11:59]Отчет о закрытии смены ФФД: 1.0 ИНН: 02508201610067 Кассир: Байбугуева Г. 20.06.2024 00:11 Смена: 353 РНМ: 0000000000092785 ЗНМ: 0300000164 СНО: Общий режим Чеков за смену: 243 ФД за смену: 245 Всего чеков: 243 ИТОГИ ПРИХОД Чеков: 240 Общий итог: 393324.59 Итого наличными: 291417.00 Итого безнал.: 101907.59 НДС 0% : 0.00 НДС 12% : 41777.51 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 3481.10 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 3 Общий итог: 5739.00 Итого наличными: 5739.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 609.54 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 50.79 ИТОГИ РАСХОД Чеков: 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 Нал. в кассе: 285678.00 НС Приход: 181972491.77 НС Возвр.Прихода: 4036102.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФД: 103814 ФМ: 0000000000875093 ФПД: 120691857129876 [00:11:59]StoreToDocumentArchive [00:11:59]shift 353 fd 103814 [00:11:59]save to /storage/0353/doc_00103814 [00:11:59]save last doc name /storage/0353/doc_00103814 to /storage/kkm_last_doc_name [00:11:59]save OK [00:11:59]Clear old archive folders... [00:11:59]Remove dir /storage/0266 [00:11:59]opendir ok [00:11:59]file . [00:11:59]file .. [00:11:59]file doc_1718842276 [00:11:59]remove file /storage/0266/doc_1718842276 [00:11:59]remove dir /storage/0266 [00:11:59]NVStorageSaveData kkm_registers [00:11:59]File name is /storage/kkm_registers [00:11:59]Write 24 bytes [00:11:59]NVStorageSaveData done [00:11:59]NVStorageSaveData kkm_registers [00:11:59]File name is /storage/kkm_registers [00:11:59]Write 24 bytes [00:11:59]NVStorageSaveData done [00:11:59]ProcessDocumentItem done err = 0, tmpTLVsize=1392 [00:11:59]tlvbuf is 01828D70 [00:11:59]SAM_PROTO_ClearQueue [00:11:59]wFMCommunicate request_size=4 [00:11:59]MH_SAM_APDU [00:11:59]CAPDU: 80 09 00 00 [00:11:59]Write to MH i2c: E2 08 00 98 1A 80 09 00 00 00 00 00 00 24 [00:11:59]Write i2c OK [00:11:59]MH_I2C_Read... [00:11:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:11:59]Read from MH i2c: E2 [00:11:59]MH_I2C_Read... [00:11:59]Read from MH i2c: E2 03 00 [00:11:59]MH_I2C_Read... [00:11:59]Read from MH i2c: E2 03 00 98 1A 00 90 00 26 [00:11:59]RAPDU: 90 00 [00:11:59]wFMCommunicate OK [00:11:59]SAM_PROTO_ClearQueue done [00:11:59]KKMCreateOFDPacket [00:11:59]OFDProtocolAddRootSTLVToBuf [00:11:59]FM_MakeSignedData [00:11:59]FM_MakeSignedData [00:11:59]SAM_PROTO_SignData [00:11:59]wFMCommunicate request_size=4 [00:11:59]MH_SAM_APDU [00:11:59]CAPDU: 80 0D 01 02 [00:11:59]Write to MH i2c: E2 08 00 99 1A 80 0D 01 02 00 00 00 00 2C [00:11:59]Write i2c OK [00:11:59]MH_I2C_Read... [00:11:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:11:59]Read from MH i2c: E2 [00:11:59]MH_I2C_Read... [00:11:59]Read from MH i2c: E2 03 00 [00:11:59]MH_I2C_Read... [00:11:59]Read from MH i2c: E2 03 00 99 1A 00 90 00 27 [00:11:59]RAPDU: 90 00 [00:11:59]wFMCommunicate OK [00:11:59]wFMCommunicate request_size=255 [00:11:59]MH_SAM_APDU [00:11:59]CAPDU: 80 0D 02 02 FA 05 00 70 05 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 19 00 D0 91 D0 B0 D0 B9 D0 B1 D1 83 D0 B3 D1 83 D0 B5 D0 B2 D0 B0 20 D0 93 2E 20 F4 03 04 00 C8 73 73 66 0E 04 04 00 61 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 5E 04 04 00 F3 00 00 00 57 04 04 00 F5 00 00 00 AA 04 DE 04 6E 04 04 00 F3 00 00 00 69 04 A5 00 6F 04 04 00 F0 00 00 00 B1 04 04 00 6B 2A 58 02 70 04 04 00 C4 AA BC 01 72 04 03 00 A7 7F 9B 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 57 BF 3F EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 [00:11:59]Write to MH i2c: E2 02 01 9A 1A 80 0D 02 02 FA 00 05 00 70 05 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 19 00 D0 91 D0 B0 D0 B9 D0 B1 D1 83 D0 B3 D1 83 D0 B5 D0 B2 D0 B0 20 D0 93 2E 20 F4 03 04 00 C8 73 73 66 0E 04 04 00 61 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 5E 04 04 00 F3 00 00 00 57 04 04 00 F5 00 00 00 AA 04 DE 04 6E 04 04 00 F3 00 00 00 69 04 A5 00 6F 04 04 00 F0 00 00 00 B1 04 04 00 6B 2A 58 02 70 04 04 00 C4 AA BC 01 72 04 03 00 A7 7F 9B 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 57 BF 3F EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 00 00 94 [00:12:00]Write i2c OK [00:12:00]MH_I2C_Read... [00:12:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:12:00]Read from MH i2c: E2 [00:12:00]MH_I2C_Read... [00:12:00]Read from MH i2c: E2 03 00 [00:12:00]MH_I2C_Read... [00:12:00]Read from MH i2c: E2 03 00 9A 1A 00 90 00 28 [00:12:00]RAPDU: 90 00 [00:12:00]wFMCommunicate OK [00:12:00]wFMCommunicate request_size=255 [00:12:00]MH_SAM_APDU [00:12:00]CAPDU: 80 0D 02 02 FA 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 CE 4F 05 6A 04 9F 00 6F 04 04 00 03 00 00 00 B1 04 03 00 CC C1 08 70 04 03 00 CC C1 08 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 1A EE 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 D7 13 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:12:00]Write to MH i2c: E2 02 01 9B 1A 80 0D 02 02 FA 00 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 CE 4F 05 6A 04 9F 00 6F 04 04 00 03 00 00 00 B1 04 03 00 CC C1 08 70 04 03 00 CC C1 08 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 1A EE 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 D7 13 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 00 05 [00:12:00]Write i2c OK [00:12:00]MH_I2C_Read... [00:12:00]OFD Sender: No OFD packet to send [00:12:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:12:01]Read from MH i2c: E2 [00:12:01]MH_I2C_Read... [00:12:01]Read from MH i2c: E2 03 00 [00:12:01]MH_I2C_Read... [00:12:01]Read from MH i2c: E2 03 00 9B 1A 00 90 00 29 [00:12:01]RAPDU: 90 00 [00:12:01]wFMCommunicate OK [00:12:01]wFMCommunicate request_size=255 [00:12:01]MH_SAM_APDU [00:12:01]CAPDU: 80 0D 02 02 FA 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:12:01]Write to MH i2c: E2 02 01 9C 1A 80 0D 02 02 FA 00 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 EE [00:12:01]Write i2c OK [00:12:01]MH_I2C_Read... [00:12:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:12:01]Read from MH i2c: E2 [00:12:01]MH_I2C_Read... [00:12:01]Read from MH i2c: E2 03 00 [00:12:01]MH_I2C_Read... [00:12:01]Read from MH i2c: E2 03 00 9C 1A 00 90 00 2A [00:12:01]RAPDU: 90 00 [00:12:01]wFMCommunicate OK [00:12:01]wFMCommunicate request_size=255 [00:12:01]MH_SAM_APDU [00:12:01]CAPDU: 80 0D 02 02 FA 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 [00:12:02]Write to MH i2c: E2 02 01 9D 1A 80 0D 02 02 FA 00 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 00 00 F4 [00:12:02]Write i2c OK [00:12:02]MH_I2C_Read... [00:12:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:12:02]Read from MH i2c: E2 [00:12:02]MH_I2C_Read... [00:12:02]Read from MH i2c: E2 03 00 [00:12:02]MH_I2C_Read... [00:12:02]Read from MH i2c: E2 03 00 9D 1A 00 90 00 2B [00:12:02]RAPDU: 90 00 [00:12:02]wFMCommunicate OK [00:12:02]wFMCommunicate request_size=255 [00:12:02]MH_SAM_APDU [00:12:02]CAPDU: 80 0D 02 02 FA 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [00:12:02]Write to MH i2c: E2 02 01 9E 1A 80 0D 02 02 FA 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 00 00 CF [00:12:03]Write i2c OK [00:12:03]MH_I2C_Read... [00:12:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:12:03]Read from MH i2c: E2 [00:12:03]MH_I2C_Read... [00:12:03]Read from MH i2c: E2 03 00 [00:12:03]MH_I2C_Read... [00:12:03]Read from MH i2c: E2 03 00 9E 1A 00 90 00 2C [00:12:03]RAPDU: 90 00 [00:12:03]wFMCommunicate OK [00:12:03]wFMCommunicate request_size=151 [00:12:03]MH_SAM_APDU [00:12:03]CAPDU: 80 0D 02 02 92 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 86 95 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 35 04 06 00 6D C4 C3 45 81 94 [00:12:03]Write to MH i2c: E2 9A 00 9F 1A 80 0D 02 02 92 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 86 95 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 35 04 06 00 6D C4 C3 45 81 94 00 00 D8 [00:12:03]Write i2c OK [00:12:03]MH_I2C_Read... [00:12:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:12:03]Read from MH i2c: E2 [00:12:03]MH_I2C_Read... [00:12:03]Read from MH i2c: E2 03 00 [00:12:03]MH_I2C_Read... [00:12:03]Read from MH i2c: E2 03 00 9F 1A 00 90 00 2D [00:12:03]RAPDU: 90 00 [00:12:03]wFMCommunicate OK [00:12:03]wFMCommunicate request_size=4 [00:12:03]MH_SAM_APDU [00:12:03]CAPDU: 80 0D 03 02 [00:12:03]Write to MH i2c: E2 08 00 A0 1A 80 0D 03 02 00 00 00 00 35 [00:12:03]Write i2c OK [00:12:03]MH_I2C_Read... [00:12:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:12:03]Read from MH i2c: E2 [00:12:03]MH_I2C_Read... [00:12:03]Read from MH i2c: E2 0B 00 [00:12:03]MH_I2C_Read... [00:12:03]Read from MH i2c: E2 0B 00 A0 1A 00 E8 16 97 46 C5 A1 34 FB 90 00 A6 [00:12:03]RAPDU: E8 16 97 46 C5 A1 34 FB 90 00 [00:12:03]wFMCommunicate OK [00:12:03]SAM_PROTO_SignData done [00:12:03]FM_MakeSignedData done [00:12:03]CreateOFDProtocolMessage [00:12:03]wFMCommunicate request_size=4 [00:12:03]MH_SAM_APDU [00:12:03]CAPDU: 80 11 00 00 [00:12:03]Write to MH i2c: E2 08 00 A1 1A 80 11 00 00 00 00 00 00 35 [00:12:04]Write i2c OK [00:12:04]MH_I2C_Read... [00:12:04]Read from MH i2c: E2 [00:12:04]MH_I2C_Read... [00:12:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:12:04]Read from MH i2c: E2 17 00 [00:12:04]MH_I2C_Read... [00:12:04]Read from MH i2c: E2 17 00 A1 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 88 [00:12:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [00:12:04]wFMCommunicate OK [00:12:04]CreateOFDProtocolMessage done [00:12:04]OFDSenderStorePacket 103814 [00:12:04]StoreOFDPacket docnum=103814 [00:12:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 84 05 00 00 60 19 7C 05 A3 50 5A 05 01 00 05 00 70 05 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 19 00 D0 91 D0 B0 D0 B9 D0 B1 D1 83 D0 B3 D1 83 D0 B5 D0 B2 D0 B0 20 D0 93 2E 20 F4 03 04 00 C8 73 73 66 0E 04 04 00 61 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 5E 04 04 00 F3 00 00 00 57 04 04 00 F5 00 00 00 AA 04 DE 04 6E 04 04 00 F3 00 00 00 69 04 A5 00 6F 04 04 00 F0 00 00 00 B1 04 04 00 6B 2A 58 02 70 04 04 00 C4 AA BC 01 72 04 03 00 A7 7F 9B 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 57 BF 3F 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 CE 4F 05 6A 04 9F 00 6F 04 04 00 03 00 00 00 B1 04 03 00 CC C1 08 70 04 03 00 CC C1 08 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 1A EE 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 D7 13 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 86 95 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 35 04 06 00 6D C4 C3 45 81 94 E8 16 97 46 C5 A1 34 FB [00:12:04]CheckFolder [00:12:04]dirname=/storage/ofd_packets [00:12:04]CheckFolder done [00:12:04]ProducePacketName [00:12:04]name=ofd_packets/00103814 [00:12:04]NVStorageSaveData ofd_packets/00103814 [00:12:04]File name is /storage/ofd_packets/00103814 [00:12:04]Write 1442 bytes [00:12:04]NVStorageSaveData done [00:12:04]OFDSenderStorePacket done [00:12:04]KKMCreateOFDPacket done [00:12:04]NVStorageSaveData kkm_last_timestamp [00:12:04]File name is /storage/kkm_last_timestamp [00:12:04]Write 4 bytes [00:12:04]NVStorageSaveData done [00:12:04]ExternCall_PrintAddStr [00:12:04]wPrintStart [00:12:04]Write to MH i2c: 01 00 00 A2 1A BC [00:12:04]OFD Sender: Processing packet 103814 [packets to send 17, broken 16] [00:12:04]ProducePacketName [00:12:04]name=ofd_packets/00103814 [00:12:04]OFD Sender: To server: pG, [00:12:04]CommunicateWithHost lk.salyk.kg:30040 [00:12:04]ConnectInit lk.salyk.kg [00:12:04]Write i2c OK [00:12:04]MH_I2C_Read... [00:12:04]Read from MH i2c: 01 [00:12:04]MH_I2C_Read... [00:12:04]Read from MH i2c: 01 07 00 [00:12:04]MH_I2C_Read... [00:12:04]Read from MH i2c: 01 07 00 A2 1A 00 00 00 00 00 FF 0F D1 [00:12:04]RasterBufferAndPrint [00:12:04]line Отчет о закрытии смены [00:12:04]line ФФД: 1.0 [00:12:04]line ИНН: 02508201610067 [00:12:04]line Кассир: Байбугуева Г. [00:12:04]line 20.06.2024 00:11 [00:12:04]line Смена: 353 [00:12:04]line РНМ: 0000000000092785 [00:12:04]line ЗНМ: 0300000164 [00:12:04]line СНО: Общий режим [00:12:04]line Чеков за смену: 243 [00:12:04]line ФД за смену: 245 [00:12:04]line Всего чеков: 243 [00:12:04]line ИТОГИ ПРИХОД [00:12:04]line Чеков: 240 [00:12:04]line Общий итог: 393324.59 [00:12:04]line Итого наличными: 291417.00 [00:12:04]line Итого безнал.: 101907.59 [00:12:04]line НДС 0% : 0.00 [00:12:04]line НДС 12% : 41777.51 [00:12:04]line НСП 0% : 0.00 [00:12:04]line НСП 1,50% : 0.00 [00:12:04]line НСП 0,50% : 0.00 [00:12:04]line НСП 5% : 0.00 [00:12:04]line НСП 3% : 0.00 [00:12:04]line НСП 2% : 0.00 [00:12:04]line НСП 1% : 3481.10 [00:12:04]line ИТОГИ ВОЗВРАТ ПРИХОДА [00:12:04]line Чеков: 3 [00:12:04]line Общий итог: 5739.00 [00:12:04]line Итого наличными: 5739.00 [00:12:04]line Итого безнал.: 0.00 [00:12:04]line НДС 0% : 0.00 [00:12:04]line НДС 12% : 609.54 [00:12:04]line НСП 0% : 0.00 [00:12:04]line НСП 1,50% : 0.00 [00:12:04]line НСП 0,50% : 0.00 [00:12:04]line НСП 5% : 0.00 [00:12:04]line НСП 3% : 0.00 [00:12:04]line НСП 2% : 0.00 [00:12:04]line НСП 1% : 50.79 [00:12:04]line ИТОГИ РАСХОД [00:12:04]line Чеков: 0 [00:12:04]line Общий итог: 0.00 [00:12:04]line Итого наличными: 0.00 [00:12:04]line Итого безнал.: 0.00 [00:12:04]line НДС 0% : 0.00 [00:12:04]line НДС 12% : 0.00 [00:12:04]line НСП 0% : 0.00 [00:12:04]line НСП 1,50% : 0.00 [00:12:04]line НСП 0,50% : 0.00 [00:12:04]line НСП 5% : 0.00 [00:12:04]line НСП 3% : 0.00 [00:12:04]line НСП 2% : 0.00 [00:12:04]line НСП 1% : 0.00 [00:12:04]line ИТОГИ ВОЗВРАТ РАСХОДА [00:12:04]line Чеков: 0 [00:12:04]line Общий итог: 0.00 [00:12:04]line Итого наличными: 0.00 [00:12:04]line Итого безнал.: 0.00 [00:12:04]line НДС 0% : 0.00 [00:12:04]line НДС 12% : 0.00 [00:12:04]line НСП 0% : 0.00 [00:12:04]line НСП 1,50% : 0.00 [00:12:04]line НСП 0,50% : 0.00 [00:12:04]line НСП 5% : 0.00 [00:12:04]line НСП 3% : 0.00 [00:12:04]line НСП 2% : 0.00 [00:12:04]line НСП 1% : 0.00 [00:12:04]line Сумма внесений: 0.00 [00:12:04]line Сумма выплат: 0.00 [00:12:04]line Нал. в кассе: 285678.00 [00:12:04]line НС Приход: 181972491.77 [00:12:04]line НС Возвр.Прихода: 4036102.00 [00:12:04]line НС Расход: 0.00 [00:12:04]line НС Возвр.Расхода: 0.00 [00:12:04]line ФД: 103814 [00:12:04]line ФМ: 0000000000875093 [00:12:04]line ФПД: 120691857129876 [00:12:04]Connected sock=10 [00:12:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 84 05 00 00 60 19 7C 05 A3 50 5A 05 01 00 05 00 70 05 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 19 00 D0 91 D0 B0 D0 B9 D0 B1 D1 83 D0 B3 D1 83 D0 B5 D0 B2 D0 B0 20 D0 93 2E 20 F4 03 04 00 C8 73 73 66 0E 04 04 00 61 01 00 00 0D 04 10 00 30 30 30 30 30 written 0, free lines is 4095 [00:12:04]30 30 30 30 30 30 39 32 37 38 35 5E 04 04 00 F3 00 00 00 57 04 04 00 F5 00 00 00 AA 04 DE 04 6E 04 04 00 F3 00 00 00 69 04 A5 00 6F 04 04 00 F0 00 00 00 B1 04 04 00 6B 2A 58 02 70 04 04 00 C4 AA BC 01 72 04 03 00 A7 7F 9B 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 57 BF 3F 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 CE 4F 05 6A 04 9F 00 6F 04 04 00 03 00 00 00 B1 04 03 00 CC C1 08 70 04 03 00 CC C1 08 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 1A EE 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 D7 13 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 Write to MH i2c: F6 01 03 00 01 00 F2 1A 0C [00:12:05]00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 Write i2c OK [00:12:06]01 MH_I2C_Read... [00:12:06]F3 03 00 00 EF 03 09 Read from MH i2c: 00 01 F6 [00:12:06]03 MH_I2C_Read... [00:12:06]01 00 00 F7 Read from MH i2c: 03 01 00 07 00 00 EF [00:12:06]03 MH_I2C_Read... [00:12:06]09 00 F6 03 01 00 01 F7 03 00 00 EF 03 Read from MH i2c: 09 01 00 07 F6 00 03 F2 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 1A 00 00 EE 00 03 00 09 00 00 05 0C 24 [00:12:06]RasterBufferAndPrint [00:12:06]line [00:12:06]line [00:12:06]line [00:12:06]line [00:12:06]00 line [00:12:06]F2 03 01 00 00 F3 03 00 00 written 0, free lines is 3797 [00:12:06]EE 03 09 00 F2 03 01 00 01 F3 03 00 00 MH_Cut [00:12:06]EF Write to MH i2c: 03 D1 09 01 00 00 F6 F9 03 1A 01 01 E5 [00:12:06]00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 Write i2c OK [00:12:06]00 MH_I2C_Read... [00:12:06]00 D1 04 8D 00 6F 04 04 00 00 00 00 Read from MH i2c: 00 D1 B1 [00:12:06]04 MH_I2C_Read... [00:12:06]00 00 70 Read from MH i2c: 04 D1 00 01 00 00 72 [00:12:06]04 00 00 00 04 75 00 EE 03 09 00 F2 MH_I2C_Read... [00:12:06]03 Read from MH i2c: 01 D1 00 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 F9 00 1A 01 00 F3 E4 03 [00:12:06]00 00 EF 03 09 00 F6 03 01 00 00 F7 Write to MH i2c: 03 01 00 00 00 00 EF FA 03 09 00 F6 03 01 00 01 F7 03 00 00 1A EF 14 03 [00:12:06]09 00 F6 03 01 00 Write i2c OK [00:12:06]02 MH_I2C_Read... [00:12:06]F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 *** Cut start [00:12:06]F6 03 *** Partial cut [00:12:06]01 00 *** CUTSNS_PIN = 1 [00:12:06]06 F7 03 00 00 10 04 04 00 86 95 01 00 11 04 10 00 30 30 30 30 30 30 30 *** CUTSNS_PIN = 0 [00:12:06]30 30 30 38 37 35 30 39 33 35 04 06 00 6D C4 C3 45 81 94 E8 16 97 46 C5 A1 34 FB [00:12:07]*** Brake cut motor [00:12: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 39 33 4F 00 00 00 B1 69 47 00 34 71 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 86 95 01 00 F4 03 04 00 5E 1A 73 66 B6 04 01 00 00 57 06 BB D1 CE 8A 3C 08 [00:12:07]CommunicateWithHost err = 0 [00:12:07]CheckOFDResponse [00:12:07]1017 (14) - 77093643461234 [00:12:07]1041 (16) - 0000000000875093 [00:12:07]1040 (4) - 103814 [00:12:07]1012 (4) - 19.06.2024 17:50 [00:12:07]1206 (1) - 0 [00:12:07]OFD Sender: Remove packet 103814 [00:12:07]ProducePacketName [00:12:07]name=ofd_packets/00103814 [00:12:07]NVStorageDeleteData [00:12:07]*** Stop cut motor [00:12:07]*** Cut end [00:12:07]Read from MH i2c: 01 [00:12:07]MH_I2C_Read... [00:12:07]Read from MH i2c: 01 07 00 [00:12:07]MH_I2C_Read... [00:12:07]Read from MH i2c: 01 07 00 FA 1A 00 00 00 00 00 FF 0F 29 [00:12:07]process_action close_shift done [00:12:07]requested_data is exist [00:12:07]produce_requested_data [00:12:07]requested_item fd.num is exist - process it [00:12:07]SAM_PROTO_GetFieldsCounters [00:12:07]wFMCommunicate request_size=4 [00:12:07]MH_SAM_APDU [00:12:07]CAPDU: 80 13 00 00 [00:12:07]Write to MH i2c: E2 08 00 FB 1A 80 13 00 00 00 00 00 00 91 [00:12:07]Write i2c OK [00:12:07]MH_I2C_Read... [00:12:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:12:07]Read from MH i2c: E2 [00:12:07]MH_I2C_Read... [00:12:07]Read from MH i2c: E2 62 00 [00:12:07]MH_I2C_Read... [00:12:07]Read from MH i2c: E2 62 00 FB 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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 86 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 F3 00 00 00 5E 04 04 00 F3 00 00 00 57 04 04 00 F5 00 00 00 19 04 04 00 00 00 00 00 90 00 10 [00:12: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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 86 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 F3 00 00 00 5E 04 04 00 F3 00 00 00 57 04 04 00 F5 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:12:07]wFMCommunicate OK [00:12:07]SAM_PROTO_GetFieldsCounters done [00:12:07]requested_item shift.num is exist - process it [00:12:07]requested_item shift.opened is exist - process it [00:12:07]req_shift_opened [00:12:07]FM_GetShiftState [00:12:07]SAM_PROTO_GetShiftState [00:12:07]wFMCommunicate request_size=4 [00:12:07]MH_SAM_APDU [00:12:07]CAPDU: 80 13 01 00 [00:12:07]Write to MH i2c: E2 08 00 FC 1A 80 13 01 00 00 00 00 00 93 [00:12:07]Write i2c OK [00:12:07]MH_I2C_Read... [00:12:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:12:07]Read from MH i2c: E2 [00:12:07]MH_I2C_Read... [00:12:07]Read from MH i2c: E2 0E 00 [00:12:07]MH_I2C_Read... [00:12:07]OFD Sender: No OFD packet to send [00:12:07]Read from MH i2c: E2 0E 00 FC 1A 00 09 00 00 00 00 00 00 00 00 00 00 90 00 9E [00:12:07]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:12:08]wFMCommunicate OK [00:12:08]SAM_PROTO_GetShiftState done [00:12:08]FM_GetShiftState done [00:12:08]req_shift_opened done [00:12:08]requested_item shift.open_date is exist - process it [00:12:08]req_shift_open_date [00:12:08]FM_GetShiftState [00:12:08]SAM_PROTO_GetShiftState [00:12:08]wFMCommunicate request_size=4 [00:12:08]MH_SAM_APDU [00:12:08]CAPDU: 80 13 01 00 [00:12:08]Write to MH i2c: E2 08 00 FD 1A 80 13 01 00 00 00 00 00 94 [00:12:08]Write i2c OK [00:12:08]MH_I2C_Read... [00:12:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:12:08]Read from MH i2c: E2 [00:12:08]MH_I2C_Read... [00:12:08]Read from MH i2c: E2 0E 00 [00:12:08]MH_I2C_Read... [00:12:08]Read from MH i2c: E2 0E 00 FD 1A 00 09 00 00 00 00 00 00 00 00 00 00 90 00 9F [00:12:08]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:12:08]wFMCommunicate OK [00:12:08]SAM_PROTO_GetShiftState done [00:12:08]FM_GetShiftState done [00:12:08]req_shift_open_date done [00:12:08]produce_requested_data done [00:12:08]produce_requested_data return {"fd.num":103814,"shift.num":353,"shift.opened":0,"shift.open_date":0} [00:12:08]process_action_free close_shift [00:12:08]json_value_free [00:12:08]json_value_free done [00:12:08]process_json_proto returns [00:12:08]Send response to host [00:12:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":103814,"shift.num":353,"shift.opened":0,"shift.open_date":0}}} [00:12:08]free response buf [00:12:08]execute_script done [00:12:08]execute_script returns [00:12:08]free content buf [00:12:08]Sock 9.Close socket [00:12:08]Sock 9.Thread stoped [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:43]OFD Sender: No OFD packet to send [00:12:48]OFD Sender: No OFD packet to send [00:12:53]OFD Sender: No OFD packet to send [00:12:58]OFD Sender: No OFD packet to send [00:13:03]OFD Sender: No OFD packet to send [00:13:08]OFD Sender: No OFD packet to send [00:13:13]OFD Sender: No OFD packet to send [00:13:18]OFD Sender: No OFD packet to send [00:13:23]OFD Sender: No OFD packet to send [00:13:28]OFD Sender: No OFD packet to send [00:13:33]OFD Sender: No OFD packet to send [00:13:38]OFD Sender: No OFD packet to send [00:13:43]OFD Sender: No OFD packet to send [00:13:48]OFD Sender: No OFD packet to send [00:13:53]OFD Sender: No OFD packet to send [00:13:58]OFD Sender: No OFD packet to send [00:14:03]OFD Sender: No OFD packet to send [00:14:08]OFD Sender: No OFD packet to send [00:14:13]OFD Sender: No OFD packet to send [00:14:18]OFD Sender: No OFD packet to send [00:14:23]OFD Sender: No OFD packet to send [00:14:28]OFD Sender: No OFD packet to send [00:14:33]OFD Sender: No OFD packet to send [00:14:38]OFD Sender: No OFD packet to send [00:14:43]OFD Sender: No OFD packet to send [00:14:48]OFD Sender: No OFD packet to send [00:14:53]OFD Sender: No OFD packet to send [00:14:58]OFD Sender: No OFD packet to send [00:15:03]OFD Sender: No OFD packet to send [00:15:08]OFD Sender: No OFD packet to send [00:15:13]OFD Sender: No OFD packet to send [00:15:18]OFD Sender: No OFD packet to send [00:15:23]OFD Sender: No OFD packet to send [00:15:28]OFD Sender: No OFD packet to send [00:15:33]OFD Sender: No OFD packet to send [00:15:38]OFD Sender: No OFD packet to send [00:15:43]OFD Sender: No OFD packet to send [00:15:48]OFD Sender: No OFD packet to send [00:15:53]OFD Sender: No OFD packet to send [00:15:58]OFD Sender: No OFD packet to send [00:16:03]OFD Sender: No OFD packet to send [00:16:08]OFD Sender: No OFD packet to send [00:16:13]OFD Sender: No OFD packet to send [00:16:18]OFD Sender: No OFD packet to send [00:16:23]OFD Sender: No OFD packet to send [00:16:28]OFD Sender: No OFD packet to send [00:16:33]OFD Sender: No OFD packet to send [00:16:38]OFD Sender: No OFD packet to send [00:16:43]OFD Sender: No OFD packet to send [00:16:48]OFD Sender: No OFD packet to send [00:16:53]OFD Sender: No OFD packet to send [00:16:58]OFD Sender: No OFD packet to send [00:17:03]OFD Sender: No OFD packet to send [00:17:08]OFD Sender: No OFD packet to send [00:17:13]OFD Sender: No OFD packet to send [00:17:18]OFD Sender: No OFD packet to send [00:17:23]OFD Sender: No OFD packet to send [00:17:28]OFD Sender: No OFD packet to send [00:17:33]OFD Sender: No OFD packet to send [00:17:38]OFD Sender: No OFD packet to send [00:17:43]OFD Sender: No OFD packet to send [00:17:48]OFD Sender: No OFD packet to send [00:17:53]OFD Sender: No OFD packet to send [00:17:58]OFD Sender: No OFD packet to send [00:18:03]OFD Sender: No OFD packet to send [00:18:08]OFD Sender: No OFD packet to send [00:18:13]OFD Sender: No OFD packet to send [00:18:18]OFD Sender: No OFD packet to send [00:18:23]OFD Sender: No OFD packet to send [00:18:28]OFD Sender: No OFD packet to send [00:18:33]OFD Sender: No OFD packet to send [00:18:38]OFD Sender: No OFD packet to send [00:18:43]OFD Sender: No OFD packet to send [00:18:48]OFD Sender: No OFD packet to send [00:18:53]OFD Sender: No OFD packet to send [00:18:58]OFD Sender: No OFD packet to send [00:19:03]OFD Sender: No OFD packet to send [00:19:08]OFD Sender: No OFD packet to send [00:19:13]OFD Sender: No OFD packet to send [00:19:18]OFD Sender: No OFD packet to send [00:19:23]OFD Sender: No OFD packet to send [00:19:28]OFD Sender: No OFD packet to send [00:19:33]OFD Sender: No OFD packet to send [00:19:38]OFD Sender: No OFD packet to send [00:19:43]OFD Sender: No OFD packet to send [00:19:48]OFD Sender: No OFD packet to send [00:19:53]OFD Sender: No OFD packet to send [00:19:58]OFD Sender: No OFD packet to send [00:20:03]OFD Sender: No OFD packet to send [00:20:08]OFD Sender: No OFD packet to send [00:20:13]OFD Sender: No OFD packet to send [00:20:18]OFD Sender: No OFD packet to send [00:20:23]OFD Sender: No OFD packet to send [00:20:28]OFD Sender: No OFD packet to send [00:20:33]OFD Sender: No OFD packet to send [00:20:38]OFD Sender: No OFD packet to send [00:20:43]OFD Sender: No OFD packet to send [00:20:48]OFD Sender: No OFD packet to send [00:20:53]OFD Sender: No OFD packet to send [00:20:58]OFD Sender: No OFD packet to send [00:21:03]OFD Sender: No OFD packet to send [00:21:08]OFD Sender: No OFD packet to send [00:21:13]OFD Sender: No OFD packet to send [00:21:18]OFD Sender: No OFD packet to send [00:21:23]OFD Sender: No OFD packet to send [00:21:28]OFD Sender: No OFD packet to send [00:21:33]OFD Sender: No OFD packet to send [00:21:38]OFD Sender: No OFD packet to send [00:21:43]OFD Sender: No OFD packet to send [00:21:48]OFD Sender: No OFD packet to send [00:21:53]OFD Sender: No OFD packet to send [00:21:58]OFD Sender: No OFD packet to send [00:22:03]OFD Sender: No OFD packet to send [00:22:08]OFD Sender: No OFD packet to send [00:22:13]OFD Sender: No OFD packet to send [00:22:18]OFD Sender: No OFD packet to send [00:22:23]OFD Sender: No OFD packet to send [00:22:28]OFD Sender: No OFD packet to send [00:22:33]OFD Sender: No OFD packet to send [00:22:38]OFD Sender: No OFD packet to send [00:22:43]OFD Sender: No OFD packet to send [00:22:48]OFD Sender: No OFD packet to send [00:22:53]OFD Sender: No OFD packet to send [00:22:58]OFD Sender: No OFD packet to send [00:23:03]OFD Sender: No OFD packet to send [00:23:08]OFD Sender: No OFD packet to send [00:23:13]OFD Sender: No OFD packet to send [00:23:18]OFD Sender: No OFD packet to send [00:23:23]OFD Sender: No OFD packet to send [00:23:28]OFD Sender: No OFD packet to send [00:23:33]OFD Sender: No OFD packet to send [00:23:38]OFD Sender: No OFD packet to send [00:23:43]OFD Sender: No OFD packet to send [00:23:48]OFD Sender: No OFD packet to send [00:23:53]OFD Sender: No OFD packet to send [00:23:58]OFD Sender: No OFD packet to send [00:24:03]OFD Sender: No OFD packet to send [00:24:08]OFD Sender: No OFD packet to send [00:24:13]OFD Sender: No OFD packet to send [00:24:18]OFD Sender: No OFD packet to send [00:24:23]OFD Sender: No OFD packet to send [00:24:28]OFD Sender: No OFD packet to send [00:24:33]OFD Sender: No OFD packet to send [00:24:38]OFD Sender: No OFD packet to send [00:24:43]OFD Sender: No OFD packet to send [00:24:48]OFD Sender: No OFD packet to send [00:24:53]OFD Sender: No OFD packet to send [00:24:58]OFD Sender: No OFD packet to send [00:25:03]OFD Sender: No OFD packet to send [00:25:08]OFD Sender: No OFD packet to send [00:25:13]OFD Sender: No OFD packet to send [00:25:18]accept exits with 8 [00:25:18]New connection [00:25:18]New thread 3066797412 created [00:25:18]Thread 3066940772 joined [00:25:18]Waiting for new connection... [00:25:18] Sock 8.Parse request [00:25:18]Sock 8.Check first char [00:25:18]Sock 8.First char is OK [00:25:18]request: POST /json_proto HTTP/1.0 [00:25:18]Method: POST [00:25:18]URL: /json_proto [00:25:18]Method is POST - this is cgi request [00:25:18]url: /json_proto [00:25:18]query_string will be loaded in cgi processing [00:25:18]execute_cgi json_proto POST (null) [00:25:18]execute_cgi path=json_proto method=POST [00:25:18]POST find Content-Length [00:25:18]Host: 172.17.38.133:8080 [00:25:18]Content-Length: 215 [00:25:18]Content-Type: application/json [00:25:18] [00:25:18]POST finish read [00:25:18]Found Content-Length = 215 [00:25:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:25:18]execute_script... [00:25:18]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:25:18]POST & json_proto [00:25:18]process_json_proto [00:25:18]json parsed OK: [00:25:18]protocol is kg_v1.0 [00:25:18]action value=get_value [00:25:18]process_action get_value [00:25:18]cmd_get_value [00:25:18]process_action get_value done [00:25:18]requested_data is exist [00:25:18]produce_requested_data [00:25:18]requested_item kkm.sn is exist - process it [00:25:18]requested_item kkm.ver is exist - process it [00:25:18]requested_item fm.sn is exist - process it [00:25:18]wFMCommunicate request_size=4 [00:25:18]MH_SAM_APDU [00:25:18]CAPDU: 80 11 00 00 [00:25:18]Write to MH i2c: E2 08 00 FE 1A 80 11 00 00 00 00 00 00 92 [00:25:18]Write i2c OK [00:25:18]MH_I2C_Read... [00:25:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:25:18]Read from MH i2c: E2 [00:25:18]MH_I2C_Read... [00:25:18]Read from MH i2c: E2 17 00 [00:25:18]MH_I2C_Read... [00:25:18]Read from MH i2c: E2 17 00 FE 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 E5 [00:25:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [00:25:18]wFMCommunicate OK [00:25:18]requested_item fd.num is exist - process it [00:25:18]SAM_PROTO_GetFieldsCounters [00:25:18]wFMCommunicate request_size=4 [00:25:18]MH_SAM_APDU [00:25:18]CAPDU: 80 13 00 00 [00:25:18]Write to MH i2c: E2 08 00 FF 1A 80 13 00 00 00 00 00 00 95 [00:25:18]Write i2c OK [00:25:18]MH_I2C_Read... [00:25:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:25:18]Read from MH i2c: E2 [00:25:18]MH_I2C_Read... [00:25:18]Read from MH i2c: E2 62 00 [00:25:18]MH_I2C_Read... [00:25:18]Read from MH i2c: E2 62 00 FF 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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 86 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 F3 00 00 00 5E 04 04 00 F3 00 00 00 57 04 04 00 F5 00 00 00 19 04 04 00 00 00 00 00 90 00 14 [00:25: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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 86 95 01 00 0E 04 04 00 61 01 00 00 12 04 04 00 F3 00 00 00 5E 04 04 00 F3 00 00 00 57 04 04 00 F5 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:25:18]wFMCommunicate OK [00:25:18]SAM_PROTO_GetFieldsCounters done [00:25:18]requested_item shift.num is exist - process it [00:25:18]requested_item shift.opened is exist - process it [00:25:18]req_shift_opened [00:25:18]FM_GetShiftState [00:25:18]SAM_PROTO_GetShiftState [00:25:18]wFMCommunicate request_size=4 [00:25:18]MH_SAM_APDU [00:25:18]CAPDU: 80 13 01 00 [00:25:18]Write to MH i2c: E2 08 00 00 1B 80 13 01 00 00 00 00 00 98 [00:25:18]Write i2c OK [00:25:18]MH_I2C_Read... [00:25:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:25:18]Read from MH i2c: E2 [00:25:18]MH_I2C_Read... [00:25:18]Read from MH i2c: E2 0E 00 [00:25:18]MH_I2C_Read... [00:25:18]Read from MH i2c: E2 0E 00 00 1B 00 09 00 00 00 00 00 00 00 00 00 00 90 00 A3 [00:25:18]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:25:18]wFMCommunicate OK [00:25:18]SAM_PROTO_GetShiftState done [00:25:18]FM_GetShiftState done [00:25:18]req_shift_opened done [00:25:18]requested_item shift.open_date is exist - process it [00:25:18]req_shift_open_date [00:25:18]FM_GetShiftState [00:25:18]SAM_PROTO_GetShiftState [00:25:18]wFMCommunicate request_size=4 [00:25:18]MH_SAM_APDU [00:25:18]CAPDU: 80 13 01 00 [00:25:18]Write to MH i2c: E2 08 00 01 1B 80 13 01 00 00 00 00 00 99 [00:25:18]Write i2c OK [00:25:18]MH_I2C_Read... [00:25:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:25:18]Read from MH i2c: E2 [00:25:18]MH_I2C_Read... [00:25:18]Read from MH i2c: E2 0E 00 [00:25:18]MH_I2C_Read... [00:25:18]Read from MH i2c: E2 0E 00 01 1B 00 09 00 00 00 00 00 00 00 00 00 00 90 00 A4 [00:25:18]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:25:18]wFMCommunicate OK [00:25:18]SAM_PROTO_GetShiftState done [00:25:18]FM_GetShiftState done [00:25:18]req_shift_open_date done [00:25:18]produce_requested_data done [00:25:18]produce_requested_data return {"kkm.sn":"0300000164","kkm.ver":"001","fm.sn":"0000000000875093","fd.num":103814,"shift.num":353,"shift.opened":0,"shift.open_date":0} [00:25:18]process_action_free get_value [00:25:18]json_value_free [00:25:18]json_value_free done [00:25:18]process_json_proto returns [00:25:18]Send response to host [00:25:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000164","kkm.ver":"001","fm.sn":"0000000000875093","fd.num":103814,"shift.num":353,"shift.opened":0,"shift.open_date":0}}} [00:25:18]free response buf [00:25:18]execute_script done [00:25:18]execute_script returns [00:25:18]free content buf [00:25:18]Sock 8.Close socket [00:25:18]Sock 8.Thread stoped [00:25:18]accept exits with 9 [00:25:18]New connection [00:25:18]New thread 3066940772 created [00:25:18]Thread 3066797412 joined [00:25:18]Waiting for new connection... [00:25:18] Sock 9.Parse request [00:25:18]Sock 9.Check first char [00:25:18]Sock 9.First char is OK [00:25:18]request: POST /json_proto HTTP/1.0 [00:25:18]Method: POST [00:25:18]URL: /json_proto [00:25:18]Method is POST - this is cgi request [00:25:18]url: /json_proto [00:25:18]query_string will be loaded in cgi processing [00:25:18]execute_cgi json_proto POST (null) [00:25:18]execute_cgi path=json_proto method=POST [00:25:18]POST find Content-Length [00:25:18]Host: 172.17.38.133:8080 [00:25:18]Content-Length: 331 [00:25:18]Content-Type: application/json [00:25:18] [00:25:18]POST finish read [00:25:18]Found Content-Length = 331 [00:25:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:25:18]execute_script... [00:25:18]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:25:18]POST & json_proto [00:25:18]process_json_proto [00:25:18]json parsed OK: [00:25:18]protocol is kg_v1.0 [00:25:18]action value=get_value [00:25:18]process_action get_value [00:25:18]cmd_get_value [00:25:18]process_action get_value done [00:25:18]requested_data is exist [00:25:18]produce_requested_data [00:25:18]requested_item fm.sale.total is exist - process it [00:25:18]SAM_PROTO_GetFMData [00:25:18]wFMCommunicate request_size=4 [00:25:18]MH_SAM_APDU [00:25:18]CAPDU: 80 13 03 00 [00:25:18]Write to MH i2c: E2 08 00 02 1B 80 13 03 00 00 00 00 00 9C [00:25:18]OFD Sender: No OFD packet to send [00:25:18]Write i2c OK [00:25:18]MH_I2C_Read... [00:25:19]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:25:19]Read from MH i2c: E2 [00:25:19]MH_I2C_Read... [00:25:19]Read from MH i2c: E2 FD 00 [00:25:19]MH_I2C_Read... [00:25:19]Read from MH i2c: E2 FD 00 02 1B 00 C5 04 85 04 C1 04 6E 04 04 00 C3 92 01 00 69 04 A3 00 6F 04 04 00 6E 8E 01 00 B1 04 05 00 99 FC A3 3C 04 70 04 05 00 94 41 19 59 03 72 04 04 00 05 BB 8A E3 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 F7 D9 32 73 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 AB 70 99 09 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9C 00 6F 04 04 00 55 04 00 00 B1 04 04 00 58 9A 0E 18 70 04 04 00 58 9A 0E 18 72 04 00 00 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 06 0E 8E 02 EF 03 09 90 00 61 [00:25:19]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 C3 92 01 00 69 04 A3 00 6F 04 04 00 6E 8E 01 00 B1 04 05 00 99 FC A3 3C 04 70 04 05 00 94 41 19 59 03 72 04 04 00 05 BB 8A E3 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 F7 D9 32 73 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 AB 70 99 09 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9C 00 6F 04 04 00 55 04 00 00 B1 04 04 00 58 9A 0E 18 70 04 04 00 58 9A 0E 18 72 04 00 00 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 06 0E 8E 02 EF 03 09 90 00 [00:25:19]wFMCommunicate OK [00:25:19]wFMCommunicate request_size=4 [00:25:19]MH_SAM_APDU [00:25:19]CAPDU: 80 17 00 00 [00:25:19]Write to MH i2c: E2 08 00 03 1B 80 17 00 00 00 00 00 00 9E [00:25:19]Write i2c OK [00:25:19]MH_I2C_Read... [00:25:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:25:19]Read from MH i2c: E2 [00:25:19]MH_I2C_Read... [00:25:19]Read from MH i2c: E2 FD 00 [00:25:19]MH_I2C_Read... [00:25:19]Read from MH i2c: E2 FD 00 03 1B 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 DB 80 36 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 E5 [00:25:19]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 DB 80 36 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:25:19]wFMCommunicate OK [00:25:19]wFMCommunicate request_size=4 [00:25:19]MH_SAM_APDU [00:25:19]CAPDU: 80 17 00 00 [00:25:19]Write to MH i2c: E2 08 00 04 1B 80 17 00 00 00 00 00 00 9F [00:25:19]Write i2c OK [00:25:19]MH_I2C_Read... [00:25:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:25:19]Read from MH i2c: E2 [00:25:19]MH_I2C_Read... [00:25:19]Read from MH i2c: E2 FD 00 [00:25:19]MH_I2C_Read... [00:25:19]Read from MH i2c: E2 FD 00 04 1B 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 B1 [00:25:19]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:25:19]wFMCommunicate OK [00:25:19]wFMCommunicate request_size=4 [00:25:19]MH_SAM_APDU [00:25:19]CAPDU: 80 17 00 00 [00:25:19]Write to MH i2c: E2 08 00 05 1B 80 17 00 00 00 00 00 00 A0 [00:25:19]Write i2c OK [00:25:19]MH_I2C_Read... [00:25:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:25:20]Read from MH i2c: E2 [00:25:20]MH_I2C_Read... [00:25:20]Read from MH i2c: E2 FD 00 [00:25:20]MH_I2C_Read... [00:25:20]Read from MH i2c: E2 FD 00 05 1B 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 2C [00:25:20]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:25:20]wFMCommunicate OK [00:25:20]wFMCommunicate request_size=4 [00:25:20]MH_SAM_APDU [00:25:20]CAPDU: 80 17 00 00 [00:25:20]Write to MH i2c: E2 08 00 06 1B 80 17 00 00 00 00 00 00 A1 [00:25:20]Write i2c OK [00:25:20]MH_I2C_Read... [00:25:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [00:25:20]Read from MH i2c: E2 [00:25:20]MH_I2C_Read... [00:25:20]Read from MH i2c: E2 E2 00 [00:25:20]MH_I2C_Read... [00:25:20]Read from MH i2c: E2 E2 00 06 1B 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [00:25:20]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:25:20]wFMCommunicate OK [00:25:20]SAM_PROTO_GetFMData done [00:25:20]requested_item fm.sale_refund.total is exist - process it [00:25:20]requested_item fm.buy.total is exist - process it [00:25:20]requested_item shift.sale.total is exist - process it [00:25:20]SAM_PROTO_GetShiftData [00:25:20]wFMCommunicate request_size=4 [00:25:20]MH_SAM_APDU [00:25:20]CAPDU: 80 13 02 00 [00:25:20]Write to MH i2c: E2 08 00 07 1B 80 13 02 00 00 00 00 00 A0 [00:25:20]Write i2c OK [00:25:20]MH_I2C_Read... [00:25:20]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:25:20]Read from MH i2c: E2 [00:25:20]MH_I2C_Read... [00:25:20]Read from MH i2c: E2 FD 00 [00:25:20]MH_I2C_Read... [00:25:20]Read from MH i2c: E2 FD 00 07 1B 00 BB 04 AA 04 B7 04 6E 04 04 00 F3 00 00 00 69 04 9E 00 6F 04 04 00 F0 00 00 00 B1 04 04 00 6B 2A 58 02 70 04 04 00 C4 AA BC 01 72 04 03 00 A7 7F 9B 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 57 BF 3F 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 CE 4F 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 03 00 00 00 B1 04 03 00 CC C1 08 70 04 03 00 CC C1 08 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 1A EE EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 18 [00:25:20]RAPDU: BB 04 AA 04 B7 04 6E 04 04 00 F3 00 00 00 69 04 9E 00 6F 04 04 00 F0 00 00 00 B1 04 04 00 6B 2A 58 02 70 04 04 00 C4 AA BC 01 72 04 03 00 A7 7F 9B 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 57 BF 3F 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 CE 4F 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 03 00 00 00 B1 04 03 00 CC C1 08 70 04 03 00 CC C1 08 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 1A EE EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 [00:25:20]wFMCommunicate OK [00:25:20]wFMCommunicate request_size=4 [00:25:20]MH_SAM_APDU [00:25:20]CAPDU: 80 17 00 00 [00:25:20]Write to MH i2c: E2 08 00 08 1B 80 17 00 00 00 00 00 00 A3 [00:25:20]Write i2c OK [00:25:20]MH_I2C_Read... [00:25:21]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:25:21]Read from MH i2c: E2 [00:25:21]MH_I2C_Read... [00:25:21]Read from MH i2c: E2 FD 00 [00:25:21]MH_I2C_Read... [00:25:21]Read from MH i2c: E2 FD 00 08 1B 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 D7 13 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 37 [00:25:21]RAPDU: 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 D7 13 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:25:21]wFMCommunicate OK [00:25:21]wFMCommunicate request_size=4 [00:25:21]MH_SAM_APDU [00:25:21]CAPDU: 80 17 00 00 [00:25:21]Write to MH i2c: E2 08 00 09 1B 80 17 00 00 00 00 00 00 A4 [00:25:21]Write i2c OK [00:25:21]MH_I2C_Read... [00:25:21]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:25:21]Read from MH i2c: E2 [00:25:21]MH_I2C_Read... [00:25:21]Read from MH i2c: E2 FD 00 [00:25:21]MH_I2C_Read... [00:25:21]Read from MH i2c: E2 FD 00 09 1B 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 D0 [00:25:21]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 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 90 00 [00:25:21]wFMCommunicate OK [00:25:21]wFMCommunicate request_size=4 [00:25:21]MH_SAM_APDU [00:25:21]CAPDU: 80 17 00 00 [00:25:21]Write to MH i2c: E2 08 00 0A 1B 80 17 00 00 00 00 00 00 A5 [00:25:21]Write i2c OK [00:25:21]MH_I2C_Read... [00:25:21]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:25:21]Read from MH i2c: E2 [00:25:21]MH_I2C_Read... [00:25:21]Read from MH i2c: E2 FD 00 [00:25:21]MH_I2C_Read... [00:25:21]Read from MH i2c: E2 FD 00 0A 1B 00 00 00 EF 03 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 90 00 1A [00:25:21]RAPDU: 00 00 EF 03 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 90 00 [00:25:21]wFMCommunicate OK [00:25:21]wFMCommunicate request_size=4 [00:25:21]MH_SAM_APDU [00:25:21]CAPDU: 80 17 00 00 [00:25:21]Write to MH i2c: E2 08 00 0B 1B 80 17 00 00 00 00 00 00 A6 [00:25:21]Write i2c OK [00:25:21]MH_I2C_Read... [00:25:21]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 213! [00:25:21]Read from MH i2c: E2 [00:25:21]MH_I2C_Read... [00:25:21]Read from MH i2c: E2 D8 00 [00:25:21]MH_I2C_Read... [00:25:21]Read from MH i2c: E2 D8 00 0B 1B 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 [00:25:21]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:25:21]wFMCommunicate OK [00:25:21]SAM_PROTO_GetShiftData done [00:25:21]requested_item shift.sale.total_cash is exist - process it [00:25:21]requested_item shift.sale_refund.total is exist - process it [00:25:21]requested_item shift.sale_refund.total_cash is exist - process it [00:25:21]requested_item shift.buy.total is exist - process it [00:25:21]requested_item shift.buy.total_cash is exist - process it [00:25:21]produce_requested_data done [00:25:21]produce_requested_data return {"fm.sale.total":181972491.77,"fm.sale_refund.total":4036102.00,"fm.buy.total":0.00,"shift.sale.total":393324.59,"shift.sale.total_cash":291417.00,"shift.sale_refund.total":5739.00,"shift.sale_refund.total_cash":5739.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:25:21]process_action_free get_value [00:25:21]json_value_free [00:25:21]json_value_free done [00:25:21]process_json_proto returns [00:25:21]Send response to host [00:25:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":181972491.77,"fm.sale_refund.total":4036102.00,"fm.buy.total":0.00,"shift.sale.total":393324.59,"shift.sale.total_cash":291417.00,"shift.sale_refund.total":5739.00,"shift.sale_refund.total_cash":5739.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:25:21]free response buf [00:25:21]execute_script done [00:25:21]execute_script returns [00:25:21]free content buf [00:25:21]Sock 9.Close socket [00:25:21]Sock 9.Thread stoped [00:25:22]accept exits with 8 [00:25:22]New connection [00:25:22]New thread 3066797412 created [00:25:22]Thread 3066940772 joined [00:25:22]Waiting for new connection... [00:25:22] Sock 8.Parse request [00:25:22]Sock 8.Check first char [00:25:22]Sock 8.First char is OK [00:25:22]request: POST /json_proto HTTP/1.0 [00:25:22]Method: POST [00:25:22]URL: /json_proto [00:25:22]Method is POST - this is cgi request [00:25:22]url: /json_proto [00:25:22]query_string will be loaded in cgi processing [00:25:22]execute_cgi json_proto POST (null) [00:25:22]execute_cgi path=json_proto method=POST [00:25:22]POST find Content-Length [00:25:22]Host: 172.17.38.133:8080 [00:25:22]Content-Length: 271 [00:25:22]Content-Type: application/json [00:25:22] [00:25:22]POST finish read [00:25:22]Found Content-Length = 271 [00:25:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "open_shift", "params" : { "operator" : "\u0414\u0443\u0439\u0448\u0435\u043D\u0431\u0438\u0435\u0432 \u0410. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:25:22]execute_script... [00:25:22]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "open_shift", "params" : { "operator" : "\u0414\u0443\u0439\u0448\u0435\u043D\u0431\u0438\u0435\u0432 \u0410. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:25:22]POST & json_proto [00:25:22]process_json_proto [00:25:22]json parsed OK: [00:25:22]protocol is kg_v1.0 [00:25:22]action value=open_shift [00:25:22]process_action open_shift [00:25:22]cmd_open_shift [00:25:22]MH_GetDate [00:25:22]Write to MH i2c: F0 00 00 0C 1B 16 [00:25:22]Write i2c OK [00:25:22]MH_I2C_Read... [00:25:22]Read from MH i2c: F0 [00:25:22]MH_I2C_Read... [00:25:22]Read from MH i2c: F0 09 00 [00:25:22]MH_I2C_Read... [00:25:22]Read from MH i2c: F0 09 00 0C 1B 00 F4 76 73 66 BD 8F 7C 64 8E [00:25:22]GetLastDocTimeStamp 1718842312 [00:25:22]current date 1718843124 [00:25:22]FM_GetShiftState [00:25:22]SAM_PROTO_GetShiftState [00:25:22]wFMCommunicate request_size=4 [00:25:22]MH_SAM_APDU [00:25:22]CAPDU: 80 13 01 00 [00:25:22]Write to MH i2c: E2 08 00 0D 1B 80 13 01 00 00 00 00 00 A5 [00:25:22]Write i2c OK [00:25:22]MH_I2C_Read... [00:25:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:25:22]Read from MH i2c: E2 [00:25:22]MH_I2C_Read... [00:25:22]Read from MH i2c: E2 0E 00 [00:25:22]MH_I2C_Read... [00:25:22]Read from MH i2c: E2 0E 00 0D 1B 00 09 00 00 00 00 00 00 00 00 00 00 90 00 B0 [00:25:22]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:25:22]wFMCommunicate OK [00:25:22]SAM_PROTO_GetShiftState done [00:25:22]FM_GetShiftState done [00:25:22]KKMCreateOpenShiftDocument [00:25:22]Load OK [00:25:22]Malloc new data [00:25:22]MH_GetDate [00:25:22]Write to MH i2c: F0 00 00 0E 1B 18 [00:25:22]Write i2c OK [00:25:22]MH_I2C_Read... [00:25:22]Read from MH i2c: F0 [00:25:22]MH_I2C_Read... [00:25:22]Read from MH i2c: F0 09 00 [00:25:22]MH_I2C_Read... [00:25:22]Read from MH i2c: F0 09 00 0E 1B 00 F4 76 73 66 BD 8F 7C 64 90 [00:25:22]Malloc new data [00:25:22]KKMCreateOpenShiftDocument OK [00:25:22]KKMSetOpenShiftData OK [00:25:22]ProcessDocumentItem done err = 0, tmpTLVsize=203 [00:25:22]tlvbuf is 01751260 [00:25:22]KKMLoadAndSignOpenShiftData [00:25:22]SAM_PROTO_ProcessDocument [00:25:22]wFMCommunicate request_size=9 [00:25:22]MH_SAM_APDU [00:25:22]CAPDU: 80 15 01 00 04 02 00 CB 00 [00:25:22]Write to MH i2c: E2 0C 00 0F 1B 80 15 01 00 04 00 02 00 CB 00 00 00 7E [00:25:22]Write i2c OK [00:25:22]MH_I2C_Read... [00:25:22]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [00:25:22]Read from MH i2c: E2 [00:25:22]MH_I2C_Read... [00:25:22]Read from MH i2c: E2 03 00 [00:25:22]MH_I2C_Read... [00:25:22]Read from MH i2c: E2 03 00 0F 1B 00 90 00 9E [00:25:22]RAPDU: 90 00 [00:25:22]wFMCommunicate OK [00:25:22]wFMCommunicate request_size=23 [00:25:22]MH_SAM_APDU [00:25:22]CAPDU: 80 15 02 00 12 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 [00:25:22]Write to MH i2c: E2 1A 00 10 1B 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 A0 [00:25:22]Write i2c OK [00:25:22]MH_I2C_Read... [00:25:22]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:25:22]Read from MH i2c: E2 [00:25:22]MH_I2C_Read... [00:25:22]Read from MH i2c: E2 03 00 [00:25:22]MH_I2C_Read... [00:25:22]Read from MH i2c: E2 03 00 10 1B 00 90 00 9F [00:25:22]RAPDU: 90 00 [00:25:22]wFMCommunicate OK [00:25:22]wFMCommunicate request_size=34 [00:25:22]MH_SAM_APDU [00:25:22]CAPDU: 80 15 02 00 1D FD 03 19 00 D0 94 D1 83 D0 B9 D1 88 D0 B5 D0 BD D0 B1 D0 B8 D0 B5 D0 B2 20 D0 90 2E 20 [00:25:22]Write to MH i2c: E2 25 00 11 1B 80 15 02 00 1D 00 FD 03 19 00 D0 94 D1 83 D0 B9 D1 88 D0 B5 D0 BD D0 B1 D0 B8 D0 B5 D0 B2 20 D0 90 2E 20 00 00 89 [00:25:22]Write i2c OK [00:25:22]MH_I2C_Read... [00:25:22]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:25:22]Read from MH i2c: E2 [00:25:22]MH_I2C_Read... [00:25:22]Read from MH i2c: E2 03 00 [00:25:22]MH_I2C_Read... [00:25:22]Read from MH i2c: E2 03 00 11 1B 00 90 00 A0 [00:25:22]RAPDU: 90 00 [00:25:22]wFMCommunicate OK [00:25:22]wFMCommunicate request_size=87 [00:25:22]MH_SAM_APDU [00:25:22]CAPDU: 80 15 02 00 52 F1 03 4E 00 37 32 30 30 30 31 2C 20 D0 B3 2E 20 D0 9D D0 B0 D1 80 D1 8B D0 BD 2C 20 D1 83 D0 BB 2E 20 D0 96 2E 20 D0 A2 D1 83 D1 80 D0 B4 D1 83 D0 B1 D0 B0 D0 B5 D0 B2 D0 B0 20 31 2C 20 34 31 2E 34 32 31 32 33 32 2C 20 37 36 2E 30 30 39 32 37 35 [00:25:22]Write to MH i2c: E2 5A 00 12 1B 80 15 02 00 52 00 F1 03 4E 00 37 32 30 30 30 31 2C 20 D0 B3 2E 20 D0 9D D0 B0 D1 80 D1 8B D0 BD 2C 20 D1 83 D0 BB 2E 20 D0 96 2E 20 D0 A2 D1 83 D1 80 D0 B4 D1 83 D0 B1 D0 B0 D0 B5 D0 B2 D0 B0 20 31 2C 20 34 31 2E 34 32 31 32 33 32 2C 20 37 36 2E 30 30 39 32 37 35 00 00 21 [00:25:22]Write i2c OK [00:25:22]MH_I2C_Read... [00:25:22]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:25:22]Read from MH i2c: E2 [00:25:22]MH_I2C_Read... [00:25:22]Read from MH i2c: E2 03 00 [00:25:22]MH_I2C_Read... [00:25:22]Read from MH i2c: E2 03 00 12 1B 00 90 00 A1 [00:25:22]RAPDU: 90 00 [00:25:22]wFMCommunicate OK [00:25:22]wFMCommunicate request_size=51 [00:25:22]MH_SAM_APDU [00:25:22]CAPDU: 80 15 02 00 2E A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 32 30 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 [00:25:22]Write to MH i2c: E2 36 00 13 1B 80 15 02 00 2E 00 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 32 30 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 00 00 53 [00:25:22]Write i2c OK [00:25:22]MH_I2C_Read... [00:25:22]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:25:22]Read from MH i2c: E2 [00:25:22]MH_I2C_Read... [00:25:22]Read from MH i2c: E2 03 00 [00:25:22]MH_I2C_Read... [00:25:22]Read from MH i2c: E2 03 00 13 1B 00 90 00 A2 [00:25:22]RAPDU: 90 00 [00:25:22]wFMCommunicate OK [00:25:22]wFMCommunicate request_size=13 [00:25:22]MH_SAM_APDU [00:25:22]CAPDU: 80 15 02 00 08 F4 03 04 00 F4 76 73 66 [00:25:22]Write to MH i2c: E2 10 00 14 1B 80 15 02 00 08 00 F4 03 04 00 F4 76 73 66 00 00 FD [00:25:22]Write i2c OK [00:25:22]MH_I2C_Read... [00:25:22]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:25:22]Read from MH i2c: E2 [00:25:22]MH_I2C_Read... [00:25:22]Read from MH i2c: E2 03 00 [00:25:22]MH_I2C_Read... [00:25:22]Read from MH i2c: E2 03 00 14 1B 00 90 00 A3 [00:25:22]RAPDU: 90 00 [00:25:22]wFMCommunicate OK [00:25:22]wFMCommunicate request_size=25 [00:25:22]MH_SAM_APDU [00:25:22]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 [00:25:22]Write to MH i2c: E2 1C 00 15 1B 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 00 00 18 [00:25:22]Write i2c OK [00:25:22]MH_I2C_Read... [00:25:22]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:25:22]Read from MH i2c: E2 [00:25:22]MH_I2C_Read... [00:25:22]Read from MH i2c: E2 03 00 [00:25:22]MH_I2C_Read... [00:25:22]Read from MH i2c: E2 03 00 15 1B 00 90 00 A4 [00:25:22]RAPDU: 90 00 [00:25:22]wFMCommunicate OK [00:25:22]wFMCommunicate request_size=4 [00:25:22]MH_SAM_APDU [00:25:22]CAPDU: 80 15 03 00 [00:25:22]Write to MH i2c: E2 08 00 16 1B 80 15 03 00 00 00 00 00 B2 [00:25:22]Write i2c OK [00:25:22]MH_I2C_Read... [00:25:22]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 53! [00:25:22]Read from MH i2c: E2 [00:25:22]MH_I2C_Read... [00:25:22]Read from MH i2c: E2 38 00 [00:25:22]MH_I2C_Read... [00:25:22]Read from MH i2c: E2 38 00 16 1B 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 39 33 10 04 04 00 87 95 01 00 0E 04 04 00 62 01 00 00 35 04 06 00 E1 2F 63 30 47 16 90 00 FE [00:25:22]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 39 33 10 04 04 00 87 95 01 00 0E 04 04 00 62 01 00 00 35 04 06 00 E1 2F 63 30 47 16 90 00 [00:25:22]wFMCommunicate OK [00:25:22]SAM_PROTO_ProcessDocument answer len = 51 [00:25:22]SAM_PROTO_ProcessDocument done [00:25:22]SetTLVBufToDocument [00:25:22]Processing tag 1209 (04B9) [00:25:22]Malloc new data [00:25:22]Processing tag 1041 (0411) [00:25:22]Processing tag 1040 (0410) [00:25:22]Malloc new data [00:25:22]Processing tag 1038 (040E) [00:25:22]Malloc new data [00:25:22]Processing tag 1077 (0435) [00:25:22]Malloc new data [00:25:22]SetTLVBufToDocument err=0 [00:25:22]KKMLoadAndSignOpenShiftData store KKM data [00:25:22]KKMLoadAndSignOpenShiftData err=0 [00:25:22]Отчет об открытии смены ФФД: 1.0 ИНН: 02508201610067 Кассир: Дуйшенбиев А. Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 Место: АЗС № 120 "Партнер Нефть" 20.06.2024 00:25 Смена: 354 РНМ: 0000000000092785 ЗНМ: 0300000164 ФД: 103815 ФМ: 0000000000875093 ФПД: 247593643820822 [00:25:23]StoreToDocumentArchive [00:25:23]shift 354 fd 103815 [00:25:23]Create dir for shift 0354 [00:25:23]save to /storage/0354/doc_00103815 [00:25:23]save last doc name /storage/0354/doc_00103815 to /storage/kkm_last_doc_name [00:25:23]save OK [00:25:23]Clear old archive folders... [00:25:23]Remove dir /storage/0353 [00:25:23]opendir ok [00:25:23]file . [00:25:23]file .. [00:25:23]file doc_00103570 [00:25:23]remove file /storage/0353/doc_00103570 [00:25:23]file doc_00103571 [00:25:23]remove file /storage/0353/doc_00103571 [00:25:23]file doc_00103572 [00:25:23]remove file /storage/0353/doc_00103572 [00:25:23]file doc_00103573 [00:25:23]remove file /storage/0353/doc_00103573 [00:25:23]file doc_00103574 [00:25:23]remove file /storage/0353/doc_00103574 [00:25:23]file doc_00103575 [00:25:23]remove file /storage/0353/doc_00103575 [00:25:23]file doc_00103576 [00:25:23]remove file /storage/0353/doc_00103576 [00:25:23]file doc_00103577 [00:25:23]remove file /storage/0353/doc_00103577 [00:25:23]file doc_00103578 [00:25:23]remove file /storage/0353/doc_00103578 [00:25:23]file doc_00103579 [00:25:23]remove file /storage/0353/doc_00103579 [00:25:23]file doc_00103580 [00:25:23]remove file /storage/0353/doc_00103580 [00:25:23]file doc_00103581 [00:25:23]remove file /storage/0353/doc_00103581 [00:25:23]file doc_00103582 [00:25:23]remove file /storage/0353/doc_00103582 [00:25:23]file doc_00103583 [00:25:23]remove file /storage/0353/doc_00103583 [00:25:23]file doc_00103584 [00:25:23]remove file /storage/0353/doc_00103584 [00:25:23]file doc_00103585 [00:25:23]remove file /storage/0353/doc_00103585 [00:25:23]file doc_00103586 [00:25:23]remove file /storage/0353/doc_00103586 [00:25:23]file doc_00103587 [00:25:23]remove file /storage/0353/doc_00103587 [00:25:23]file doc_00103588 [00:25:23]remove file /storage/0353/doc_00103588 [00:25:23]file doc_00103589 [00:25:23]remove file /storage/0353/doc_00103589 [00:25:23]file doc_00103590 [00:25:23]remove file /storage/0353/doc_00103590 [00:25:23]file doc_00103591 [00:25:23]remove file /storage/0353/doc_00103591 [00:25:23]file doc_00103592 [00:25:23]remove file /storage/0353/doc_00103592 [00:25:23]file doc_00103593 [00:25:23]remove file /storage/0353/doc_00103593 [00:25:23]file doc_00103594 [00:25:23]remove file /storage/0353/doc_00103594 [00:25:23]file doc_00103595 [00:25:23]remove file /storage/0353/doc_00103595 [00:25:23]file doc_00103596 [00:25:23]remove file /storage/0353/doc_00103596 [00:25:23]file doc_00103597 [00:25:23]remove file /storage/0353/doc_00103597 [00:25:23]file doc_00103598 [00:25:23]remove file /storage/0353/doc_00103598 [00:25:23]file doc_00103599 [00:25:23]remove file /storage/0353/doc_00103599 [00:25:23]file doc_00103600 [00:25:23]remove file /storage/0353/doc_00103600 [00:25:23]file doc_00103601 [00:25:23]remove file /storage/0353/doc_00103601 [00:25:23]file doc_00103602 [00:25:23]remove file /storage/0353/doc_00103602 [00:25:23]file doc_00103603 [00:25:23]remove file /storage/0353/doc_00103603 [00:25:23]file doc_00103604 [00:25:23]remove file /storage/0353/doc_00103604 [00:25:23]file doc_00103605 [00:25:23]remove file /storage/0353/doc_00103605 [00:25:23]file doc_00103606 [00:25:23]remove file /storage/0353/doc_00103606 [00:25:23]file doc_00103607 [00:25:23]remove file /storage/0353/doc_00103607 [00:25:23]file doc_00103608 [00:25:23]remove file /storage/0353/doc_00103608 [00:25:23]file doc_00103609 [00:25:23]remove file /storage/0353/doc_00103609 [00:25:23]file doc_00103610 [00:25:23]remove file /storage/0353/doc_00103610 [00:25:23]file doc_00103611 [00:25:23]remove file /storage/0353/doc_00103611 [00:25:23]file doc_00103612 [00:25:23]remove file /storage/0353/doc_00103612 [00:25:23]file doc_00103613 [00:25:23]remove file /storage/0353/doc_00103613 [00:25:23]file doc_00103614 [00:25:23]remove file /storage/0353/doc_00103614 [00:25:23]file doc_00103615 [00:25:23]remove file /storage/0353/doc_00103615 [00:25:23]file doc_00103616 [00:25:23]remove file /storage/0353/doc_00103616 [00:25:23]file doc_00103617 [00:25:23]remove file /storage/0353/doc_00103617 [00:25:23]file doc_00103618 [00:25:23]remove file /storage/0353/doc_00103618 [00:25:23]file doc_00103619 [00:25:23]remove file /storage/0353/doc_00103619 [00:25:23]file doc_00103620 [00:25:23]remove file /storage/0353/doc_00103620 [00:25:23]file doc_00103621 [00:25:23]remove file /storage/0353/doc_00103621 [00:25:23]file doc_00103622 [00:25:23]remove file /storage/0353/doc_00103622 [00:25:23]file doc_00103623 [00:25:23]remove file /storage/0353/doc_00103623 [00:25:23]file doc_00103624 [00:25:23]remove file /storage/0353/doc_00103624 [00:25:23]file doc_00103625 [00:25:23]remove file /storage/0353/doc_00103625 [00:25:23]file doc_00103626 [00:25:23]remove file /storage/0353/doc_00103626 [00:25:23]file doc_00103627 [00:25:23]remove file /storage/0353/doc_00103627 [00:25:23]file doc_00103628 [00:25:23]remove file /storage/0353/doc_00103628 [00:25:23]file doc_00103629 [00:25:23]remove file /storage/0353/doc_00103629 [00:25:23]file doc_00103630 [00:25:23]remove file /storage/0353/doc_00103630 [00:25:23]file doc_00103631 [00:25:23]remove file /storage/0353/doc_00103631 [00:25:23]file doc_00103632 [00:25:23]remove file /storage/0353/doc_00103632 [00:25:23]file doc_00103633 [00:25:23]remove file /storage/0353/doc_00103633 [00:25:23]file doc_00103634 [00:25:23]remove file /storage/0353/doc_00103634 [00:25:23]file doc_00103635 [00:25:23]remove file /storage/0353/doc_00103635 [00:25:23]file doc_00103636 [00:25:23]remove file /storage/0353/doc_00103636 [00:25:23]file doc_00103637 [00:25:23]remove file /storage/0353/doc_00103637 [00:25:23]file doc_00103638 [00:25:23]remove file /storage/0353/doc_00103638 [00:25:23]file doc_00103639 [00:25:23]remove file /storage/0353/doc_00103639 [00:25:23]file doc_00103640 [00:25:23]remove file /storage/0353/doc_00103640 [00:25:23]file doc_00103641 [00:25:23]remove file /storage/0353/doc_00103641 [00:25:23]file doc_00103642 [00:25:23]remove file /storage/0353/doc_00103642 [00:25:23]file doc_00103643 [00:25:23]remove file /storage/0353/doc_00103643 [00:25:23]file doc_00103644 [00:25:23]remove file /storage/0353/doc_00103644 [00:25:23]file doc_00103645 [00:25:23]remove file /storage/0353/doc_00103645 [00:25:23]file doc_00103646 [00:25:23]remove file /storage/0353/doc_00103646 [00:25:23]file doc_00103647 [00:25:23]remove file /storage/0353/doc_00103647 [00:25:23]file doc_00103648 [00:25:23]remove file /storage/0353/doc_00103648 [00:25:23]file doc_00103649 [00:25:23]remove file /storage/0353/doc_00103649 [00:25:23]file doc_00103650 [00:25:23]remove file /storage/0353/doc_00103650 [00:25:23]file doc_00103651 [00:25:23]remove file /storage/0353/doc_00103651 [00:25:23]file doc_00103652 [00:25:23]remove file /storage/0353/doc_00103652 [00:25:23]file doc_00103653 [00:25:23]remove file /storage/0353/doc_00103653 [00:25:23]file doc_00103654 [00:25:23]remove file /storage/0353/doc_00103654 [00:25:23]file doc_00103655 [00:25:23]remove file /storage/0353/doc_00103655 [00:25:23]file doc_00103656 [00:25:23]remove file /storage/0353/doc_00103656 [00:25:23]file doc_00103657 [00:25:23]remove file /storage/0353/doc_00103657 [00:25:23]file doc_00103658 [00:25:23]remove file /storage/0353/doc_00103658 [00:25:23]file doc_00103659 [00:25:23]remove file /storage/0353/doc_00103659 [00:25:23]file doc_00103660 [00:25:23]remove file /storage/0353/doc_00103660 [00:25:23]file doc_00103661 [00:25:23]remove file /storage/0353/doc_00103661 [00:25:23]file doc_00103662 [00:25:23]remove file /storage/0353/doc_00103662 [00:25:23]file doc_00103663 [00:25:23]remove file /storage/0353/doc_00103663 [00:25:23]file doc_00103664 [00:25:23]remove file /storage/0353/doc_00103664 [00:25:23]file doc_00103665 [00:25:23]remove file /storage/0353/doc_00103665 [00:25:23]file doc_00103666 [00:25:23]remove file /storage/0353/doc_00103666 [00:25:23]file doc_00103667 [00:25:23]remove file /storage/0353/doc_00103667 [00:25:23]file doc_00103668 [00:25:23]remove file /storage/0353/doc_00103668 [00:25:23]file doc_00103669 [00:25:23]remove file /storage/0353/doc_00103669 [00:25:23]file doc_00103670 [00:25:23]remove file /storage/0353/doc_00103670 [00:25:23]file doc_00103671 [00:25:23]remove file /storage/0353/doc_00103671 [00:25:23]file doc_00103672 [00:25:23]remove file /storage/0353/doc_00103672 [00:25:23]file doc_00103673 [00:25:23]remove file /storage/0353/doc_00103673 [00:25:23]file doc_00103674 [00:25:23]remove file /storage/0353/doc_00103674 [00:25:23]file doc_00103675 [00:25:23]remove file /storage/0353/doc_00103675 [00:25:23]file doc_00103676 [00:25:23]remove file /storage/0353/doc_00103676 [00:25:23]file doc_00103677 [00:25:23]remove file /storage/0353/doc_00103677 [00:25:23]file doc_00103678 [00:25:23]remove file /storage/0353/doc_00103678 [00:25:23]file doc_00103679 [00:25:23]remove file /storage/0353/doc_00103679 [00:25:23]file doc_00103680 [00:25:23]remove file /storage/0353/doc_00103680 [00:25:23]file doc_00103681 [00:25:23]remove file /storage/0353/doc_00103681 [00:25:23]file doc_00103682 [00:25:23]remove file /storage/0353/doc_00103682 [00:25:23]file doc_00103683 [00:25:23]remove file /storage/0353/doc_00103683 [00:25:23]file doc_00103684 [00:25:23]remove file /storage/0353/doc_00103684 [00:25:23]file doc_00103685 [00:25:23]remove file /storage/0353/doc_00103685 [00:25:23]file doc_00103686 [00:25:23]remove file /storage/0353/doc_00103686 [00:25:23]file doc_00103687 [00:25:23]remove file /storage/0353/doc_00103687 [00:25:23]file doc_00103688 [00:25:23]remove file /storage/0353/doc_00103688 [00:25:23]file doc_00103689 [00:25:23]remove file /storage/0353/doc_00103689 [00:25:23]file doc_00103690 [00:25:23]remove file /storage/0353/doc_00103690 [00:25:23]file doc_00103691 [00:25:23]remove file /storage/0353/doc_00103691 [00:25:23]file doc_00103692 [00:25:23]remove file /storage/0353/doc_00103692 [00:25:23]file doc_00103693 [00:25:23]remove file /storage/0353/doc_00103693 [00:25:23]file doc_00103694 [00:25:23]remove file /storage/0353/doc_00103694 [00:25:23]file doc_00103695 [00:25:23]remove file /storage/0353/doc_00103695 [00:25:23]file doc_00103696 [00:25:23]remove file /storage/0353/doc_00103696 [00:25:23]file doc_00103697 [00:25:23]remove file /storage/0353/doc_00103697 [00:25:23]file doc_00103698 [00:25:23]remove file /storage/0353/doc_00103698 [00:25:23]file doc_00103699 [00:25:23]remove file /storage/0353/doc_00103699 [00:25:23]file doc_00103700 [00:25:23]remove file /storage/0353/doc_00103700 [00:25:23]file doc_00103701 [00:25:23]remove file /storage/0353/doc_00103701 [00:25:23]file doc_00103702 [00:25:23]remove file /storage/0353/doc_00103702 [00:25:23]file doc_00103703 [00:25:23]remove file /storage/0353/doc_00103703 [00:25:23]file doc_00103704 [00:25:23]remove file /storage/0353/doc_00103704 [00:25:23]file doc_00103705 [00:25:23]remove file /storage/0353/doc_00103705 [00:25:23]OFD Sender: No OFD packet to send [00:25:24]file doc_00103706 [00:25:24]remove file /storage/0353/doc_00103706 [00:25:24]file doc_00103707 [00:25:24]remove file /storage/0353/doc_00103707 [00:25:24]file doc_00103708 [00:25:24]remove file /storage/0353/doc_00103708 [00:25:24]file doc_00103709 [00:25:24]remove file /storage/0353/doc_00103709 [00:25:24]file doc_00103710 [00:25:24]remove file /storage/0353/doc_00103710 [00:25:24]file doc_00103711 [00:25:24]remove file /storage/0353/doc_00103711 [00:25:24]file doc_00103712 [00:25:24]remove file /storage/0353/doc_00103712 [00:25:24]file doc_00103713 [00:25:24]remove file /storage/0353/doc_00103713 [00:25:24]file doc_00103714 [00:25:24]remove file /storage/0353/doc_00103714 [00:25:24]file doc_00103715 [00:25:24]remove file /storage/0353/doc_00103715 [00:25:24]file doc_00103716 [00:25:24]remove file /storage/0353/doc_00103716 [00:25:24]file doc_00103717 [00:25:24]remove file /storage/0353/doc_00103717 [00:25:24]file doc_00103718 [00:25:24]remove file /storage/0353/doc_00103718 [00:25:24]file doc_00103719 [00:25:24]remove file /storage/0353/doc_00103719 [00:25:24]file doc_00103720 [00:25:24]remove file /storage/0353/doc_00103720 [00:25:24]file doc_00103721 [00:25:24]remove file /storage/0353/doc_00103721 [00:25:24]file doc_00103722 [00:25:24]remove file /storage/0353/doc_00103722 [00:25:24]file doc_00103723 [00:25:24]remove file /storage/0353/doc_00103723 [00:25:24]file doc_00103724 [00:25:24]remove file /storage/0353/doc_00103724 [00:25:24]file doc_00103725 [00:25:24]remove file /storage/0353/doc_00103725 [00:25:24]file doc_00103726 [00:25:24]remove file /storage/0353/doc_00103726 [00:25:24]file doc_00103727 [00:25:24]remove file /storage/0353/doc_00103727 [00:25:24]file doc_00103728 [00:25:24]remove file /storage/0353/doc_00103728 [00:25:24]file doc_00103729 [00:25:24]remove file /storage/0353/doc_00103729 [00:25:24]file doc_00103730 [00:25:24]remove file /storage/0353/doc_00103730 [00:25:24]file doc_00103731 [00:25:24]remove file /storage/0353/doc_00103731 [00:25:24]file doc_00103732 [00:25:24]remove file /storage/0353/doc_00103732 [00:25:24]file doc_00103733 [00:25:24]remove file /storage/0353/doc_00103733 [00:25:24]file doc_00103734 [00:25:24]remove file /storage/0353/doc_00103734 [00:25:24]file doc_00103735 [00:25:24]remove file /storage/0353/doc_00103735 [00:25:24]file doc_00103736 [00:25:24]remove file /storage/0353/doc_00103736 [00:25:24]file doc_00103737 [00:25:24]remove file /storage/0353/doc_00103737 [00:25:24]file doc_00103738 [00:25:24]remove file /storage/0353/doc_00103738 [00:25:24]file doc_00103739 [00:25:24]remove file /storage/0353/doc_00103739 [00:25:24]file doc_00103740 [00:25:24]remove file /storage/0353/doc_00103740 [00:25:24]file doc_00103741 [00:25:24]remove file /storage/0353/doc_00103741 [00:25:24]file doc_00103742 [00:25:24]remove file /storage/0353/doc_00103742 [00:25:24]file doc_00103743 [00:25:24]remove file /storage/0353/doc_00103743 [00:25:24]file doc_00103744 [00:25:24]remove file /storage/0353/doc_00103744 [00:25:24]file doc_00103745 [00:25:24]remove file /storage/0353/doc_00103745 [00:25:24]file doc_00103746 [00:25:24]remove file /storage/0353/doc_00103746 [00:25:24]file doc_00103747 [00:25:24]remove file /storage/0353/doc_00103747 [00:25:24]file doc_00103748 [00:25:24]remove file /storage/0353/doc_00103748 [00:25:24]file doc_00103749 [00:25:24]remove file /storage/0353/doc_00103749 [00:25:24]file doc_00103750 [00:25:24]remove file /storage/0353/doc_00103750 [00:25:24]file doc_00103751 [00:25:24]remove file /storage/0353/doc_00103751 [00:25:24]file doc_00103752 [00:25:24]remove file /storage/0353/doc_00103752 [00:25:24]file doc_00103753 [00:25:24]remove file /storage/0353/doc_00103753 [00:25:24]file doc_00103754 [00:25:24]remove file /storage/0353/doc_00103754 [00:25:24]file doc_00103755 [00:25:24]remove file /storage/0353/doc_00103755 [00:25:24]file doc_00103756 [00:25:24]remove file /storage/0353/doc_00103756 [00:25:24]file doc_00103757 [00:25:24]remove file /storage/0353/doc_00103757 [00:25:24]file doc_00103758 [00:25:24]remove file /storage/0353/doc_00103758 [00:25:24]file doc_00103759 [00:25:24]remove file /storage/0353/doc_00103759 [00:25:24]file doc_00103760 [00:25:24]remove file /storage/0353/doc_00103760 [00:25:24]file doc_00103761 [00:25:24]remove file /storage/0353/doc_00103761 [00:25:24]file doc_00103762 [00:25:24]remove file /storage/0353/doc_00103762 [00:25:24]file doc_00103763 [00:25:24]remove file /storage/0353/doc_00103763 [00:25:24]file doc_00103764 [00:25:24]remove file /storage/0353/doc_00103764 [00:25:24]file doc_00103765 [00:25:24]remove file /storage/0353/doc_00103765 [00:25:24]file doc_00103766 [00:25:24]remove file /storage/0353/doc_00103766 [00:25:24]file doc_00103767 [00:25:24]remove file /storage/0353/doc_00103767 [00:25:24]file doc_00103768 [00:25:24]remove file /storage/0353/doc_00103768 [00:25:24]file doc_00103769 [00:25:24]remove file /storage/0353/doc_00103769 [00:25:24]file doc_00103770 [00:25:24]remove file /storage/0353/doc_00103770 [00:25:24]file doc_00103771 [00:25:24]remove file /storage/0353/doc_00103771 [00:25:24]file doc_00103772 [00:25:24]remove file /storage/0353/doc_00103772 [00:25:24]file doc_00103773 [00:25:24]remove file /storage/0353/doc_00103773 [00:25:24]file doc_00103774 [00:25:24]remove file /storage/0353/doc_00103774 [00:25:24]file doc_00103775 [00:25:24]remove file /storage/0353/doc_00103775 [00:25:24]file doc_00103776 [00:25:24]remove file /storage/0353/doc_00103776 [00:25:24]file doc_00103777 [00:25:24]remove file /storage/0353/doc_00103777 [00:25:24]file doc_00103778 [00:25:24]remove file /storage/0353/doc_00103778 [00:25:24]file doc_00103779 [00:25:24]remove file /storage/0353/doc_00103779 [00:25:24]file doc_00103780 [00:25:24]remove file /storage/0353/doc_00103780 [00:25:24]file doc_00103781 [00:25:24]remove file /storage/0353/doc_00103781 [00:25:24]file doc_00103782 [00:25:24]remove file /storage/0353/doc_00103782 [00:25:24]file doc_00103783 [00:25:24]remove file /storage/0353/doc_00103783 [00:25:24]file doc_00103784 [00:25:24]remove file /storage/0353/doc_00103784 [00:25:24]file doc_00103785 [00:25:24]remove file /storage/0353/doc_00103785 [00:25:24]file doc_00103786 [00:25:24]remove file /storage/0353/doc_00103786 [00:25:24]file doc_00103787 [00:25:24]remove file /storage/0353/doc_00103787 [00:25:24]file doc_00103788 [00:25:24]remove file /storage/0353/doc_00103788 [00:25:24]file doc_00103789 [00:25:24]remove file /storage/0353/doc_00103789 [00:25:24]file doc_00103790 [00:25:24]remove file /storage/0353/doc_00103790 [00:25:24]file doc_00103791 [00:25:24]remove file /storage/0353/doc_00103791 [00:25:24]file doc_00103792 [00:25:24]remove file /storage/0353/doc_00103792 [00:25:24]file doc_00103793 [00:25:24]remove file /storage/0353/doc_00103793 [00:25:24]file doc_00103794 [00:25:24]remove file /storage/0353/doc_00103794 [00:25:24]file doc_00103795 [00:25:24]remove file /storage/0353/doc_00103795 [00:25:24]file doc_00103796 [00:25:24]remove file /storage/0353/doc_00103796 [00:25:24]file doc_00103797 [00:25:24]remove file /storage/0353/doc_00103797 [00:25:24]file doc_00103798 [00:25:24]remove file /storage/0353/doc_00103798 [00:25:24]file doc_00103799 [00:25:24]remove file /storage/0353/doc_00103799 [00:25:24]file doc_00103800 [00:25:24]remove file /storage/0353/doc_00103800 [00:25:24]file doc_00103801 [00:25:24]remove file /storage/0353/doc_00103801 [00:25:24]file doc_00103802 [00:25:24]remove file /storage/0353/doc_00103802 [00:25:24]file doc_00103803 [00:25:24]remove file /storage/0353/doc_00103803 [00:25:24]file doc_00103804 [00:25:24]remove file /storage/0353/doc_00103804 [00:25:24]file doc_00103805 [00:25:24]remove file /storage/0353/doc_00103805 [00:25:24]file doc_00103806 [00:25:24]remove file /storage/0353/doc_00103806 [00:25:24]file doc_00103807 [00:25:24]remove file /storage/0353/doc_00103807 [00:25:24]file doc_00103808 [00:25:24]remove file /storage/0353/doc_00103808 [00:25:24]file doc_00103809 [00:25:24]remove file /storage/0353/doc_00103809 [00:25:24]file doc_00103810 [00:25:24]remove file /storage/0353/doc_00103810 [00:25:24]file doc_00103811 [00:25:24]remove file /storage/0353/doc_00103811 [00:25:24]file doc_00103812 [00:25:24]remove file /storage/0353/doc_00103812 [00:25:24]file doc_00103813 [00:25:24]remove file /storage/0353/doc_00103813 [00:25:24]file doc_00103814 [00:25:24]remove file /storage/0353/doc_00103814 [00:25:24]remove dir /storage/0353 [00:25:24]ProcessDocumentItem done err = 0, tmpTLVsize=254 [00:25:24]tlvbuf is B6ED7EE0 [00:25:24]SAM_PROTO_ClearQueue [00:25:24]wFMCommunicate request_size=4 [00:25:24]MH_SAM_APDU [00:25:24]CAPDU: 80 09 00 00 [00:25:24]Write to MH i2c: E2 08 00 17 1B 80 09 00 00 00 00 00 00 A4 [00:25:24]Write i2c OK [00:25:24]MH_I2C_Read... [00:25:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:25:24]Read from MH i2c: E2 [00:25:24]MH_I2C_Read... [00:25:24]Read from MH i2c: E2 03 00 [00:25:24]MH_I2C_Read... [00:25:24]Read from MH i2c: E2 03 00 17 1B 00 90 00 A6 [00:25:24]RAPDU: 90 00 [00:25:24]wFMCommunicate OK [00:25:24]SAM_PROTO_ClearQueue done [00:25:24]KKMCreateOFDPacket [00:25:24]OFDProtocolAddRootSTLVToBuf [00:25:24]FM_MakeSignedData [00:25:24]FM_MakeSignedData [00:25:24]SAM_PROTO_SignData [00:25:24]wFMCommunicate request_size=4 [00:25:24]MH_SAM_APDU [00:25:24]CAPDU: 80 0D 01 02 [00:25:24]Write to MH i2c: E2 08 00 18 1B 80 0D 01 02 00 00 00 00 AC [00:25:24]Write i2c OK [00:25:24]MH_I2C_Read... [00:25:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:25:24]Read from MH i2c: E2 [00:25:24]MH_I2C_Read... [00:25:24]Read from MH i2c: E2 03 00 [00:25:24]MH_I2C_Read... [00:25:24]Read from MH i2c: E2 03 00 18 1B 00 90 00 A7 [00:25:24]RAPDU: 90 00 [00:25:24]wFMCommunicate OK [00:25:24]wFMCommunicate request_size=255 [00:25:24]MH_SAM_APDU [00:25:24]CAPDU: 80 0D 02 02 FA 02 00 FE 00 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 19 00 D0 94 D1 83 D0 B9 D1 88 D0 B5 D0 BD D0 B1 D0 B8 D0 B5 D0 B2 20 D0 90 2E 20 F1 03 4E 00 37 32 30 30 30 31 2C 20 D0 B3 2E 20 D0 9D D0 B0 D1 80 D1 8B D0 BD 2C 20 D1 83 D0 BB 2E 20 D0 96 2E 20 D0 A2 D1 83 D1 80 D0 B4 D1 83 D0 B1 D0 B0 D0 B5 D0 B2 D0 B0 20 31 2C 20 34 31 2E 34 32 31 32 33 32 2C 20 37 36 2E 30 30 39 32 37 35 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 32 30 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 F4 03 04 00 F4 76 73 66 0E 04 04 00 62 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 87 95 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 35 04 [00:25:24]Write to MH i2c: E2 02 01 19 1B 80 0D 02 02 FA 00 02 00 FE 00 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 19 00 D0 94 D1 83 D0 B9 D1 88 D0 B5 D0 BD D0 B1 D0 B8 D0 B5 D0 B2 20 D0 90 2E 20 F1 03 4E 00 37 32 30 30 30 31 2C 20 D0 B3 2E 20 D0 9D D0 B0 D1 80 D1 8B D0 BD 2C 20 D1 83 D0 BB 2E 20 D0 96 2E 20 D0 A2 D1 83 D1 80 D0 B4 D1 83 D0 B1 D0 B0 D0 B5 D0 B2 D0 B0 20 31 2C 20 34 31 2E 34 32 31 32 33 32 2C 20 37 36 2E 30 30 39 32 37 35 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 32 30 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 F4 03 04 00 F4 76 73 66 0E 04 04 00 62 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 87 95 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 35 04 00 00 99 [00:25:24]Write i2c OK [00:25:24]MH_I2C_Read... [00:25:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:25:24]Read from MH i2c: E2 [00:25:24]MH_I2C_Read... [00:25:24]Read from MH i2c: E2 03 00 [00:25:24]MH_I2C_Read... [00:25:24]Read from MH i2c: E2 03 00 19 1B 00 90 00 A8 [00:25:24]RAPDU: 90 00 [00:25:24]wFMCommunicate OK [00:25:24]wFMCommunicate request_size=13 [00:25:24]MH_SAM_APDU [00:25:24]CAPDU: 80 0D 02 02 08 06 00 E1 2F 63 30 47 16 [00:25:24]Write to MH i2c: E2 10 00 1A 1B 80 0D 02 02 08 00 06 00 E1 2F 63 30 47 16 00 00 C5 [00:25:24]Write i2c OK [00:25:24]MH_I2C_Read... [00:25:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:25:24]Read from MH i2c: E2 [00:25:24]MH_I2C_Read... [00:25:24]Read from MH i2c: E2 03 00 [00:25:24]MH_I2C_Read... [00:25:24]Read from MH i2c: E2 03 00 1A 1B 00 90 00 A9 [00:25:25]RAPDU: 90 00 [00:25:25]wFMCommunicate OK [00:25:25]wFMCommunicate request_size=4 [00:25:25]MH_SAM_APDU [00:25:25]CAPDU: 80 0D 03 02 [00:25:25]Write to MH i2c: E2 08 00 1B 1B 80 0D 03 02 00 00 00 00 B1 [00:25:25]Write i2c OK [00:25:25]MH_I2C_Read... [00:25:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:25:25]Read from MH i2c: E2 [00:25:25]MH_I2C_Read... [00:25:25]Read from MH i2c: E2 0B 00 [00:25:25]MH_I2C_Read... [00:25:25]Read from MH i2c: E2 0B 00 1B 1B 00 16 84 8C 02 6C E3 37 DD 90 00 3D [00:25:25]RAPDU: 16 84 8C 02 6C E3 37 DD 90 00 [00:25:25]wFMCommunicate OK [00:25:25]SAM_PROTO_SignData done [00:25:25]FM_MakeSignedData done [00:25:25]CreateOFDProtocolMessage [00:25:25]wFMCommunicate request_size=4 [00:25:25]MH_SAM_APDU [00:25:25]CAPDU: 80 11 00 00 [00:25:25]Write to MH i2c: E2 08 00 1C 1B 80 11 00 00 00 00 00 00 B1 [00:25:25]Write i2c OK [00:25:25]MH_I2C_Read... [00:25:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:25:25]Read from MH i2c: E2 [00:25:25]MH_I2C_Read... [00:25:25]Read from MH i2c: E2 17 00 [00:25:25]MH_I2C_Read... [00:25:25]Read from MH i2c: E2 17 00 1C 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 04 [00:25:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [00:25:25]wFMCommunicate OK [00:25:25]CreateOFDProtocolMessage done [00:25:25]OFDSenderStorePacket 103815 [00:25:25]StoreOFDPacket docnum=103815 [00:25:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 12 01 00 00 DB FA 0A 01 A9 A9 5A 02 01 00 02 00 FE 00 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 19 00 D0 94 D1 83 D0 B9 D1 88 D0 B5 D0 BD D0 B1 D0 B8 D0 B5 D0 B2 20 D0 90 2E 20 F1 03 4E 00 37 32 30 30 30 31 2C 20 D0 B3 2E 20 D0 9D D0 B0 D1 80 D1 8B D0 BD 2C 20 D1 83 D0 BB 2E 20 D0 96 2E 20 D0 A2 D1 83 D1 80 D0 B4 D1 83 D0 B1 D0 B0 D0 B5 D0 B2 D0 B0 20 31 2C 20 34 31 2E 34 32 31 32 33 32 2C 20 37 36 2E 30 30 39 32 37 35 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 32 30 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 F4 03 04 00 F4 76 73 66 0E 04 04 00 62 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 87 95 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 35 04 06 00 E1 2F 63 30 47 16 16 84 8C 02 6C E3 37 DD [00:25:25]CheckFolder [00:25:25]dirname=/storage/ofd_packets [00:25:25]CheckFolder done [00:25:25]ProducePacketName [00:25:25]name=ofd_packets/00103815 [00:25:25]NVStorageSaveData ofd_packets/00103815 [00:25:25]File name is /storage/ofd_packets/00103815 [00:25:25]Write 304 bytes [00:25:25]NVStorageSaveData done [00:25:25]OFDSenderStorePacket done [00:25:25]KKMCreateOFDPacket done [00:25:25]NVStorageSaveData kkm_last_timestamp [00:25:25]File name is /storage/kkm_last_timestamp [00:25:25]Write 4 bytes [00:25:25]NVStorageSaveData done [00:25:25]ExternCall_PrintAddStr [00:25:25]wPrintStart [00:25:25]Write to MH i2c: 01 00 00 1D 1B 38 [00:25:25]Write i2c OK [00:25:25]MH_I2C_Read... [00:25:25]Read from MH i2c: 01 [00:25:25]MH_I2C_Read... [00:25:25]Read from MH i2c: 01 07 00 [00:25:25]MH_I2C_Read... [00:25:25]Read from MH i2c: 01 07 00 1D 1B 00 00 00 00 00 FF 0F 4D [00:25:25]RasterBufferAndPrint [00:25:25]line Отчет об открытии смены [00:25:25]line ФФД: 1.0 [00:25:25]line ИНН: 02508201610067 [00:25:25]line Кассир: Дуйшенбиев А. [00:25:25]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [00:25:25]line Место: АЗС № 120 "Партнер Нефть" [00:25:25]line 20.06.2024 00:25 [00:25:25]line Смена: 354 [00:25:25]line РНМ: 0000000000092785 [00:25:25]line ЗНМ: 0300000164 [00:25:25]line ФД: 103815 [00:25:25]line ФМ: 0000000000875093 [00:25:25]line ФПД: 247593643820822 [00:25:25]written 0, free lines is 4095 [00:25:25]OFD Sender: Processing packet 103815 [packets to send 17, broken 16] [00:25:25]ProducePacketName [00:25:25]name=ofd_packets/00103815 [00:25:25]OFD Sender: To server: pG, [00:25:25]CommunicateWithHost lk.salyk.kg:30040 [00:25:25]ConnectInit lk.salyk.kg [00:25:25]Connected sock=10 [00:25: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 39 33 12 01 00 00 DB FA 0A 01 A9 A9 5A 02 01 00 02 00 FE 00 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 19 00 D0 94 D1 83 D0 B9 D1 88 D0 B5 D0 BD D0 B1 D0 B8 D0 B5 D0 B2 20 D0 90 2E 20 F1 03 4E 00 37 32 30 30 30 31 2C 20 D0 B3 2E 20 D0 9D D0 B0 D1 80 D1 8B D0 BD 2C 20 D1 83 D0 BB 2E 20 D0 96 2E 20 D0 A2 D1 83 D1 80 D0 B4 D1 83 D0 B1 D0 B0 D0 B5 D0 B2 D0 B0 20 31 2C 20 34 31 2E 34 32 31 32 33 32 2C 20 37 36 2E 30 30 39 32 37 35 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 32 30 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 F4 03 04 00 F4 76 73 66 0E 04 04 00 62 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 87 95 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 35 04 06 00 E1 2F 63 30 47 16 16 84 8C 02 6C E3 37 DD [00:25:25]Write to MH i2c: 01 00 00 2F 1B 4A [00:25:25]Write i2c OK [00:25:25]MH_I2C_Read... [00:25:25]Read from MH i2c: 01 [00:25:25]MH_I2C_Read... [00:25:25]Read from MH i2c: 01 07 00 [00:25:25]MH_I2C_Read... [00:25:25]Read from MH i2c: 01 07 00 2F 1B 00 00 00 00 00 D0 0E 2F [00:25:25]RasterBufferAndPrint [00:25:25]line [00:25:25]line [00:25:25]line [00:25:25]line [00:25:25]line [00:25:25]written 0, free lines is 3806 [00:25:25]MH_Cut [00:25:25]Write to MH i2c: D1 01 00 36 1B 01 23 [00:25:25]Write i2c OK [00:25:25]MH_I2C_Read... [00:25:25]Read from MH i2c: D1 [00:25:25]MH_I2C_Read... [00:25:25]Read from MH i2c: D1 01 00 [00:25:25]MH_I2C_Read... [00:25:25]Read from MH i2c: D1 01 00 36 1B 00 22 [00:25:25]Write to MH i2c: 01 00 00 37 1B 52 [00:25:25]Write i2c OK [00:25:25]MH_I2C_Read... [00:25: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 39 33 4F 00 00 00 4F 20 47 00 96 9F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 87 95 01 00 F4 03 04 00 7C 1D 73 66 B6 04 01 00 00 26 4E 88 90 27 EA 2A 4B [00:25:25]CommunicateWithHost err = 0 [00:25:25]CheckOFDResponse [00:25:25]1017 (14) - 77093643461234 [00:25:25]1041 (16) - 0000000000875093 [00:25:25]1040 (4) - 103815 [00:25:25]1012 (4) - 19.06.2024 18:03 [00:25:25]1206 (1) - 0 [00:25:25]OFD Sender: Remove packet 103815 [00:25:25]ProducePacketName [00:25:25]name=ofd_packets/00103815 [00:25:25]NVStorageDeleteData [00:25:25]*** Cut start [00:25:25]*** Partial cut [00:25:25]*** CUTSNS_PIN = 1 [00:25:25]*** CUTSNS_PIN = 0 [00:25:26]*** Brake cut motor [00:25:26]OFD Sender: No OFD packet to send [00:25:26]Read from MH i2c: 01 [00:25:26]MH_I2C_Read... [00:25:26]*** Stop cut motor [00:25:26]*** Cut end [00:25:26]Read from MH i2c: 01 07 00 [00:25:26]MH_I2C_Read... [00:25:26]Read from MH i2c: 01 07 00 37 1B 00 00 00 00 00 FF 0F 67 [00:25:26]process_action open_shift done [00:25:26]requested_data is exist [00:25:26]produce_requested_data [00:25:26]requested_item fd.num is exist - process it [00:25:26]SAM_PROTO_GetFieldsCounters [00:25:26]wFMCommunicate request_size=4 [00:25:26]MH_SAM_APDU [00:25:26]CAPDU: 80 13 00 00 [00:25:26]Write to MH i2c: E2 08 00 38 1B 80 13 00 00 00 00 00 00 CF [00:25:26]Write i2c OK [00:25:26]MH_I2C_Read... [00:25:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:25:26]Read from MH i2c: E2 [00:25:26]MH_I2C_Read... [00:25:26]Read from MH i2c: E2 62 00 [00:25:26]MH_I2C_Read... [00:25:26]Read from MH i2c: E2 62 00 38 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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 87 95 01 00 0E 04 04 00 62 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 76 [00:25: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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 87 95 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 00 00 00 00 5E 04 04 00 00 00 00 00 57 04 04 00 01 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:25:26]wFMCommunicate OK [00:25:26]SAM_PROTO_GetFieldsCounters done [00:25:26]requested_item shift.num is exist - process it [00:25:26]requested_item shift.opened is exist - process it [00:25:26]req_shift_opened [00:25:26]FM_GetShiftState [00:25:26]SAM_PROTO_GetShiftState [00:25:26]wFMCommunicate request_size=4 [00:25:26]MH_SAM_APDU [00:25:26]CAPDU: 80 13 01 00 [00:25:26]Write to MH i2c: E2 08 00 39 1B 80 13 01 00 00 00 00 00 D1 [00:25:26]Write i2c OK [00:25:26]MH_I2C_Read... [00:25:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:25:26]Read from MH i2c: E2 [00:25:26]MH_I2C_Read... [00:25:26]Read from MH i2c: E2 0E 00 [00:25:26]MH_I2C_Read... [00:25:26]Read from MH i2c: E2 0E 00 39 1B 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 20 [00:25:26]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [00:25:26]wFMCommunicate OK [00:25:26]SAM_PROTO_GetShiftState done [00:25:26]FM_GetShiftState done [00:25:26]req_shift_opened done [00:25:26]requested_item shift.open_date is exist - process it [00:25:26]req_shift_open_date [00:25:26]req_shift_open_date done [00:25:26]produce_requested_data done [00:25:26]produce_requested_data return {"fd.num":103815,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [00:25:26]process_action_free open_shift [00:25:26]json_value_free [00:25:26]json_value_free done [00:25:26]process_json_proto returns [00:25:26]Send response to host [00:25:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":103815,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [00:25:26]free response buf [00:25:26]execute_script done [00:25:26]execute_script returns [00:25:26]free content buf [00:25:26]Sock 8.Close socket [00:25:26]Sock 8.Thread stoped [00:25:26]accept exits with 9 [00:25:26]New connection [00:25:26]New thread 3066940772 created [00:25:26]Thread 3066797412 joined [00:25:26]Waiting for new connection... [00:25:26] Sock 9.Parse request [00:25:26]Sock 9.Check first char [00:25:26]Sock 9.First char is OK [00:25:26]request: POST /json_proto HTTP/1.0 [00:25:26]Method: POST [00:25:26]URL: /json_proto [00:25:26]Method is POST - this is cgi request [00:25:26]url: /json_proto [00:25:26]query_string will be loaded in cgi processing [00:25:26]execute_cgi json_proto POST (null) [00:25:26]execute_cgi path=json_proto method=POST [00:25:26]POST find Content-Length [00:25:26]Host: 172.17.38.133:8080 [00:25:26]Content-Length: 331 [00:25:26]Content-Type: application/json [00:25:26] [00:25:26]POST finish read [00:25:26]Found Content-Length = 331 [00:25:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:25:26]execute_script... [00:25:26]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:25:26]POST & json_proto [00:25:26]process_json_proto [00:25:26]json parsed OK: [00:25:26]protocol is kg_v1.0 [00:25:26]action value=get_value [00:25:26]process_action get_value [00:25:26]cmd_get_value [00:25:26]process_action get_value done [00:25:26]requested_data is exist [00:25:26]produce_requested_data [00:25:26]requested_item fm.sale.total is exist - process it [00:25:26]SAM_PROTO_GetFMData [00:25:26]wFMCommunicate request_size=4 [00:25:26]MH_SAM_APDU [00:25:26]CAPDU: 80 13 03 00 [00:25:26]Write to MH i2c: E2 08 00 3A 1B 80 13 03 00 00 00 00 00 D4 [00:25:26]Write i2c OK [00:25:26]MH_I2C_Read... [00:25:27]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:25:27]Read from MH i2c: E2 [00:25:27]MH_I2C_Read... [00:25:27]Read from MH i2c: E2 FD 00 [00:25:27]MH_I2C_Read... [00:25:27]Read from MH i2c: E2 FD 00 3A 1B 00 C5 04 85 04 C1 04 6E 04 04 00 C3 92 01 00 69 04 A3 00 6F 04 04 00 6E 8E 01 00 B1 04 05 00 99 FC A3 3C 04 70 04 05 00 94 41 19 59 03 72 04 04 00 05 BB 8A E3 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 F7 D9 32 73 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 AB 70 99 09 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9C 00 6F 04 04 00 55 04 00 00 B1 04 04 00 58 9A 0E 18 70 04 04 00 58 9A 0E 18 72 04 00 00 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 06 0E 8E 02 EF 03 09 90 00 99 [00:25:27]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 C3 92 01 00 69 04 A3 00 6F 04 04 00 6E 8E 01 00 B1 04 05 00 99 FC A3 3C 04 70 04 05 00 94 41 19 59 03 72 04 04 00 05 BB 8A E3 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 F7 D9 32 73 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 AB 70 99 09 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9C 00 6F 04 04 00 55 04 00 00 B1 04 04 00 58 9A 0E 18 70 04 04 00 58 9A 0E 18 72 04 00 00 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 06 0E 8E 02 EF 03 09 90 00 [00:25:27]wFMCommunicate OK [00:25:27]wFMCommunicate request_size=4 [00:25:27]MH_SAM_APDU [00:25:27]CAPDU: 80 17 00 00 [00:25:27]Write to MH i2c: E2 08 00 3B 1B 80 17 00 00 00 00 00 00 D6 [00:25:27]Write i2c OK [00:25:27]MH_I2C_Read... [00:25:27]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:25:27]Read from MH i2c: E2 [00:25:27]MH_I2C_Read... [00:25:27]Read from MH i2c: E2 FD 00 [00:25:27]MH_I2C_Read... [00:25:27]Read from MH i2c: E2 FD 00 3B 1B 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 DB 80 36 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 1D [00:25:27]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 DB 80 36 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:25:27]wFMCommunicate OK [00:25:27]wFMCommunicate request_size=4 [00:25:27]MH_SAM_APDU [00:25:27]CAPDU: 80 17 00 00 [00:25:27]Write to MH i2c: E2 08 00 3C 1B 80 17 00 00 00 00 00 00 D7 [00:25:27]Write i2c OK [00:25:27]MH_I2C_Read... [00:25:27]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:25:27]Read from MH i2c: E2 [00:25:27]MH_I2C_Read... [00:25:27]Read from MH i2c: E2 FD 00 [00:25:27]MH_I2C_Read... [00:25:27]Read from MH i2c: E2 FD 00 3C 1B 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 E9 [00:25:28]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:25:28]wFMCommunicate OK [00:25:28]wFMCommunicate request_size=4 [00:25:28]MH_SAM_APDU [00:25:28]CAPDU: 80 17 00 00 [00:25:28]Write to MH i2c: E2 08 00 3D 1B 80 17 00 00 00 00 00 00 D8 [00:25:28]Write i2c OK [00:25:28]MH_I2C_Read... [00:25:28]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:25:28]Read from MH i2c: E2 [00:25:28]MH_I2C_Read... [00:25:28]Read from MH i2c: E2 FD 00 [00:25:28]MH_I2C_Read... [00:25:28]Read from MH i2c: E2 FD 00 3D 1B 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 64 [00:25:28]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:25:28]wFMCommunicate OK [00:25:28]wFMCommunicate request_size=4 [00:25:28]MH_SAM_APDU [00:25:28]CAPDU: 80 17 00 00 [00:25:28]Write to MH i2c: E2 08 00 3E 1B 80 17 00 00 00 00 00 00 D9 [00:25:28]Write i2c OK [00:25:28]MH_I2C_Read... [00:25:28]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [00:25:28]Read from MH i2c: E2 [00:25:28]MH_I2C_Read... [00:25:28]Read from MH i2c: E2 E2 00 [00:25:28]MH_I2C_Read... [00:25:28]Read from MH i2c: E2 E2 00 3E 1B 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 B7 [00:25:28]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:25:28]wFMCommunicate OK [00:25:28]SAM_PROTO_GetFMData done [00:25:28]requested_item fm.sale_refund.total is exist - process it [00:25:28]requested_item fm.buy.total is exist - process it [00:25:28]requested_item shift.sale.total is exist - process it [00:25:28]SAM_PROTO_GetShiftData [00:25:28]wFMCommunicate request_size=4 [00:25:28]MH_SAM_APDU [00:25:28]CAPDU: 80 13 02 00 [00:25:28]Write to MH i2c: E2 08 00 3F 1B 80 13 02 00 00 00 00 00 D8 [00:25:29]Write i2c OK [00:25:29]MH_I2C_Read... [00:25:29]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:25:29]Read from MH i2c: E2 [00:25:29]MH_I2C_Read... [00:25:29]Read from MH i2c: E2 FD 00 [00:25:29]MH_I2C_Read... [00:25:29]Read from MH i2c: E2 FD 00 3F 1B 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 4B [00:25:29]RAPDU: A0 04 AA 04 9C 04 6E 04 04 00 00 00 00 00 69 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 90 00 [00:25:29]wFMCommunicate OK [00:25:29]wFMCommunicate request_size=4 [00:25:29]MH_SAM_APDU [00:25:29]CAPDU: 80 17 00 00 [00:25:29]Write to MH i2c: E2 08 00 40 1B 80 17 00 00 00 00 00 00 DB [00:25:29]Write i2c OK [00:25:29]MH_I2C_Read... [00:25:29]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:25:29]Read from MH i2c: E2 [00:25:29]MH_I2C_Read... [00:25:29]Read from MH i2c: E2 FD 00 [00:25:29]MH_I2C_Read... [00:25:29]Read from MH i2c: E2 FD 00 40 1B 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 E3 [00:25:30]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 90 00 [00:25:30]wFMCommunicate OK [00:25:30]wFMCommunicate request_size=4 [00:25:30]MH_SAM_APDU [00:25:30]CAPDU: 80 17 00 00 [00:25:30]Write to MH i2c: E2 08 00 41 1B 80 17 00 00 00 00 00 00 DC [00:25:30]Write i2c OK [00:25:30]MH_I2C_Read... [00:25:30]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:25:30]Read from MH i2c: E2 [00:25:30]MH_I2C_Read... [00:25:30]Read from MH i2c: E2 FD 00 [00:25:30]MH_I2C_Read... [00:25:30]Read from MH i2c: E2 FD 00 41 1B 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 AE [00:25:30]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 90 00 [00:25:30]wFMCommunicate OK [00:25:30]wFMCommunicate request_size=4 [00:25:30]MH_SAM_APDU [00:25:30]CAPDU: 80 17 00 00 [00:25:30]Write to MH i2c: E2 08 00 42 1B 80 17 00 00 00 00 00 00 DD [00:25:30]Write i2c OK [00:25:30]MH_I2C_Read... [00:25:30]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:25:30]Read from MH i2c: E2 [00:25:30]MH_I2C_Read... [00:25:30]Read from MH i2c: E2 FD 00 [00:25:30]MH_I2C_Read... [00:25:30]Read from MH i2c: E2 FD 00 42 1B 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 4F [00:25:30]RAPDU: 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 90 00 [00:25:30]wFMCommunicate OK [00:25:30]wFMCommunicate request_size=4 [00:25:30]MH_SAM_APDU [00:25:30]CAPDU: 80 17 00 00 [00:25:30]Write to MH i2c: E2 08 00 43 1B 80 17 00 00 00 00 00 00 DE [00:25:30]Write i2c OK [00:25:30]MH_I2C_Read... [00:25:31]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 186! [00:25:31]Read from MH i2c: E2 [00:25:31]MH_I2C_Read... [00:25:31]Read from MH i2c: E2 BD 00 [00:25:31]MH_I2C_Read... [00:25:31]Read from MH i2c: E2 BD 00 43 1B 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 C4 [00:25:31]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:25:31]wFMCommunicate OK [00:25:31]SAM_PROTO_GetShiftData done [00:25:31]requested_item shift.sale.total_cash is exist - process it [00:25:31]requested_item shift.sale_refund.total is exist - process it [00:25:31]requested_item shift.sale_refund.total_cash is exist - process it [00:25:31]requested_item shift.buy.total is exist - process it [00:25:31]requested_item shift.buy.total_cash is exist - process it [00:25:31]produce_requested_data done [00:25:31]produce_requested_data return {"fm.sale.total":181972491.77,"fm.sale_refund.total":4036102.00,"fm.buy.total":0.00,"shift.sale.total":0.00,"shift.sale.total_cash":0.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:25:31]OFD Sender: No OFD packet to send [00:25:31]process_action_free get_value [00:25:31]json_value_free [00:25:31]json_value_free done [00:25:31]process_json_proto returns [00:25:31]Send response to host [00:25:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":181972491.77,"fm.sale_refund.total":4036102.00,"fm.buy.total":0.00,"shift.sale.total":0.00,"shift.sale.total_cash":0.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:25:31]free response buf [00:25:31]execute_script done [00:25:31]execute_script returns [00:25:31]free content buf [00:25:31]Sock 9.Close socket [00:25:31]Sock 9.Thread stoped [00:25:36]OFD Sender: No OFD packet to send [00:25:41]OFD Sender: No OFD packet to send [00:25:46]OFD Sender: No OFD packet to send [00:25:51]OFD Sender: No OFD packet to send [00:25:56]OFD Sender: No OFD packet to send [00:26:01]OFD Sender: No OFD packet to send [00:26:06]OFD Sender: No OFD packet to send [00:26:11]OFD Sender: No OFD packet to send [00:26:16]OFD Sender: No OFD packet to send [00:26:21]OFD Sender: No OFD packet to send [00:26:26]OFD Sender: No OFD packet to send [00:26:31]OFD Sender: No OFD packet to send [00:26:36]OFD Sender: No OFD packet to send [00:26:41]OFD Sender: No OFD packet to send [00:26:46]OFD Sender: No OFD packet to send [00:26:51]OFD Sender: No OFD packet to send [00:26:56]OFD Sender: No OFD packet to send [00:27:01]OFD Sender: No OFD packet to send [00:27:06]OFD Sender: No OFD packet to send [00:27:11]OFD Sender: No OFD packet to send [00:27:16]OFD Sender: No OFD packet to send [00:27:21]OFD Sender: No OFD packet to send [00:27:26]OFD Sender: No OFD packet to send [00:27:31]OFD Sender: No OFD packet to send [00:27:36]OFD Sender: No OFD packet to send [00:27:41]OFD Sender: No OFD packet to send [00:27:46]OFD Sender: No OFD packet to send [00:27:51]OFD Sender: No OFD packet to send [00:27:56]OFD Sender: No OFD packet to send [00:28:01]OFD Sender: No OFD packet to send [00:28:06]OFD Sender: No OFD packet to send [00:28:11]OFD Sender: No OFD packet to send [00:28:16]OFD Sender: No OFD packet to send [00:28:21]OFD Sender: No OFD packet to send [00:28:26]OFD Sender: No OFD packet to send [00:28:31]OFD Sender: No OFD packet to send [00:28:36]OFD Sender: No OFD packet to send [00:28:41]OFD Sender: No OFD packet to send [00:28:46]OFD Sender: No OFD packet to send [00:28:51]OFD Sender: No OFD packet to send [00:28:56]OFD Sender: No OFD packet to send [00:29:01]OFD Sender: No OFD packet to send [00:29:06]OFD Sender: No OFD packet to send [00:29:11]OFD Sender: No OFD packet to send [00:29:16]OFD Sender: No OFD packet to send [00:29:21]OFD Sender: No OFD packet to send [00:29:26]OFD Sender: No OFD packet to send [00:29:31]OFD Sender: No OFD packet to send [00:29:36]OFD Sender: No OFD packet to send [00:29:41]OFD Sender: No OFD packet to send [00:29:46]OFD Sender: No OFD packet to send [00:29:51]OFD Sender: No OFD packet to send [00:29:56]OFD Sender: No OFD packet to send [00:30:01]OFD Sender: No OFD packet to send [00:30:06]OFD Sender: No OFD packet to send [00:30:11]OFD Sender: No OFD packet to send [00:30:16]OFD Sender: No OFD packet to send [00:30:21]OFD Sender: No OFD packet to send [00:30:26]OFD Sender: No OFD packet to send [00:30:31]OFD Sender: No OFD packet to send [00:30:36]OFD Sender: No OFD packet to send [00:30:41]OFD Sender: No OFD packet to send [00:30:46]OFD Sender: No OFD packet to send [00:30:51]OFD Sender: No OFD packet to send [00:30:56]OFD Sender: No OFD packet to send [00:31:01]OFD Sender: No OFD packet to send [00:31:06]OFD Sender: No OFD packet to send [00:31:11]OFD Sender: No OFD packet to send [00:31:16]OFD Sender: No OFD packet to send [00:31:21]OFD Sender: No OFD packet to send [00:31:26]OFD Sender: No OFD packet to send [00:31:31]OFD Sender: No OFD packet to send [00:31:36]OFD Sender: No OFD packet to send [00:31:41]OFD Sender: No OFD packet to send [00:31:46]OFD Sender: No OFD packet to send [00:31:51]OFD Sender: No OFD packet to send [00:31:56]OFD Sender: No OFD packet to send [00:32:01]OFD Sender: No OFD packet to send [00:32:06]OFD Sender: No OFD packet to send [00:32:11]OFD Sender: No OFD packet to send [00:32:16]OFD Sender: No OFD packet to send [00:32:21]OFD Sender: No OFD packet to send [00:32:26]OFD Sender: No OFD packet to send [00:32:31]OFD Sender: No OFD packet to send [00:32:36]OFD Sender: No OFD packet to send [00:32:41]OFD Sender: No OFD packet to send [00:32:46]OFD Sender: No OFD packet to send [00:32:51]OFD Sender: No OFD packet to send [00:32:56]OFD Sender: No OFD packet to send [00:33:01]OFD Sender: No OFD packet to send [00:33:06]OFD Sender: No OFD packet to send [00:33:11]OFD Sender: No OFD packet to send [00:33:16]OFD Sender: No OFD packet to send [00:33:21]OFD Sender: No OFD packet to send [00:33:26]OFD Sender: No OFD packet to send [00:33:31]OFD Sender: No OFD packet to send [00:33:36]OFD Sender: No OFD packet to send [00:33:41]OFD Sender: No OFD packet to send [00:33:46]OFD Sender: No OFD packet to send [00:33:51]OFD Sender: No OFD packet to send [00:33:56]OFD Sender: No OFD packet to send [00:34:01]OFD Sender: No OFD packet to send [00:34:06]OFD Sender: No OFD packet to send [00:34:11]OFD Sender: No OFD packet to send [00:34:16]OFD Sender: No OFD packet to send [00:34:21]OFD Sender: No OFD packet to send [00:34:26]OFD Sender: No OFD packet to send [00:34:31]OFD Sender: No OFD packet to send [00:34:36]OFD Sender: No OFD packet to send [00:34:41]OFD Sender: No OFD packet to send [00:34:46]OFD Sender: No OFD packet to send [00:34:51]OFD Sender: No OFD packet to send [00:34:56]OFD Sender: No OFD packet to send [00:35:01]OFD Sender: No OFD packet to send [00:35:06]OFD Sender: No OFD packet to send [00:35:11]OFD Sender: No OFD packet to send [00:35:16]OFD Sender: No OFD packet to send [00:35:21]OFD Sender: No OFD packet to send [00:35:26]OFD Sender: No OFD packet to send [00:35:31]OFD Sender: No OFD packet to send [00:35:36]OFD Sender: No OFD packet to send [00:35:41]OFD Sender: No OFD packet to send [00:35:46]OFD Sender: No OFD packet to send [00:35:51]OFD Sender: No OFD packet to send [00:35:56]OFD Sender: No OFD packet to send [00:36:01]OFD Sender: No OFD packet to send [00:36:06]OFD Sender: No OFD packet to send [00:36:11]OFD Sender: No OFD packet to send [00:36:16]OFD Sender: No OFD packet to send [00:36:21]OFD Sender: No OFD packet to send [00:36:26]OFD Sender: No OFD packet to send [00:36:31]OFD Sender: No OFD packet to send [00:36:36]OFD Sender: No OFD packet to send [00:36:41]OFD Sender: No OFD packet to send [00:36:46]OFD Sender: No OFD packet to send [00:36:51]OFD Sender: No OFD packet to send [00:36:56]OFD Sender: No OFD packet to send [00:37:01]OFD Sender: No OFD packet to send [00:37:06]OFD Sender: No OFD packet to send [00:37:11]OFD Sender: No OFD packet to send [00:37:16]OFD Sender: No OFD packet to send [00:37:21]OFD Sender: No OFD packet to send [00:37:26]OFD Sender: No OFD packet to send [00:37:31]OFD Sender: No OFD packet to send [00:37:36]OFD Sender: No OFD packet to send [00:37:41]OFD Sender: No OFD packet to send [00:37:46]OFD Sender: No OFD packet to send [00:37:51]OFD Sender: No OFD packet to send [00:37:56]OFD Sender: No OFD packet to send [00:38:01]OFD Sender: No OFD packet to send [00:38:06]OFD Sender: No OFD packet to send [00:38: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:41:02]OFD Sender: No OFD packet to send [00:41:07]OFD Sender: No OFD packet to send [00:41:12]OFD Sender: No OFD packet to send [00:41:17]OFD Sender: No OFD packet to send [00:41:22]OFD Sender: No OFD packet to send [00:41:27]OFD Sender: No OFD packet to send [00:41:32]OFD Sender: No OFD packet to send [00:41:37]OFD Sender: No OFD packet to send [00:41:42]OFD Sender: No OFD packet to send [00:41:47]OFD Sender: No OFD packet to send [00:41:52]OFD Sender: No OFD packet to send [00:41:57]OFD Sender: No OFD packet to send [00:42:02]OFD Sender: No OFD packet to send [00:42:07]OFD Sender: No OFD packet to send [00:42:12]OFD Sender: No OFD packet to send [00:42:17]OFD Sender: No OFD packet to send [00:42:22]OFD Sender: No OFD packet to send [00:42:27]OFD Sender: No OFD packet to send [00:42:32]OFD Sender: No OFD packet to send [00:42:37]OFD Sender: No OFD packet to send [00:42:42]OFD Sender: No OFD packet to send [00:42:47]OFD Sender: No OFD packet to send [00:42:52]OFD Sender: No OFD packet to send [00:42:57]OFD Sender: No OFD packet to send [00:43:02]OFD Sender: No OFD packet to send [00:43:07]OFD Sender: No OFD packet to send [00:43:12]OFD Sender: No OFD packet to send [00:43:17]OFD Sender: No OFD packet to send [00:43:22]OFD Sender: No OFD packet to send [00:43:27]OFD Sender: No OFD packet to send [00:43:32]OFD Sender: No OFD packet to send [00:43:37]OFD Sender: No OFD packet to send [00:43:42]OFD Sender: No OFD packet to send [00:43:47]OFD Sender: No OFD packet to send [00:43:52]OFD Sender: No OFD packet to send [00:43:57]OFD Sender: No OFD packet to send [00:44:02]OFD Sender: No OFD packet to send [00:44:07]OFD Sender: No OFD packet to send [00:44:12]OFD Sender: No OFD packet to send [00:44:17]OFD Sender: No OFD packet to send [00:44:22]OFD Sender: No OFD packet to send [00:44:27]OFD Sender: No OFD packet to send [00:44:32]OFD Sender: No OFD packet to send [00:44:37]OFD Sender: No OFD packet to send [00:44:42]OFD Sender: No OFD packet to send [00:44:47]OFD Sender: No OFD packet to send [00:44:52]OFD Sender: No OFD packet to send [00:44:57]OFD Sender: No OFD packet to send [00:45:02]OFD Sender: No OFD packet to send [00:45:07]OFD Sender: No OFD packet to send [00:45:12]OFD Sender: No OFD packet to send [00:45:17]OFD Sender: No OFD packet to send [00:45:22]OFD Sender: No OFD packet to send [00:45:27]OFD Sender: No OFD packet to send [00:45:32]OFD Sender: No OFD packet to send [00:45:37]OFD Sender: No OFD packet to send [00:45:42]OFD Sender: No OFD packet to send [00:45:47]OFD Sender: No OFD packet to send [00:45:52]OFD Sender: No OFD packet to send [00:45:57]OFD Sender: No OFD packet to send [00:46:02]OFD Sender: No OFD packet to send [00:46:07]OFD Sender: No OFD packet to send [00:46:09]accept exits with 8 [00:46:09]New connection [00:46:09]New thread 3066797412 created [00:46:09]Thread 3066940772 joined [00:46:09]Waiting for new connection... [00:46:09] Sock 8.Parse request [00:46:09]Sock 8.Check first char [00:46:09]Sock 8.First char is OK [00:46:09]request: POST /json_proto HTTP/1.0 [00:46:09]Method: POST [00:46:09]URL: /json_proto [00:46:09]Method is POST - this is cgi request [00:46:09]url: /json_proto [00:46:09]query_string will be loaded in cgi processing [00:46:09]execute_cgi json_proto POST (null) [00:46:09]execute_cgi path=json_proto method=POST [00:46:09]POST find Content-Length [00:46:09]Host: 172.17.38.133:8080 [00:46:09]Content-Length: 677 [00:46:09]Content-Type: application/json [00:46:09] [00:46:09]POST finish read [00:46:09]Found Content-Length = 677 [00:46:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673123", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 4.520, "sum" : 300.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:46:09]execute_script... [00: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)673123", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 4.520, "sum" : 300.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:46:09]POST & json_proto [00:46:09]process_json_proto [00:46:09]json parsed OK: [00:46:09]protocol is kg_v1.0 [00:46:09]action value=close_receipt [00:46:09]process_action close_receipt [00:46:09]cmd_close_receipt [00:46:09]MH_GetDate [00:46:09]Write to MH i2c: F0 00 00 44 1B 4E [00:46:09]Write i2c OK [00:46:09]MH_I2C_Read... [00:46:09]Read from MH i2c: F0 [00:46:09]MH_I2C_Read... [00:46:09]Read from MH i2c: F0 09 00 [00:46:09]MH_I2C_Read... [00:46:09]Read from MH i2c: F0 09 00 44 1B 00 D3 7B 73 66 BD 8F 7C 64 AA [00:46:09]GetLastDocTimeStamp 1718843124 [00:46:09]current date 1718844371 [00:46:09]FM_GetShiftState [00:46:09]SAM_PROTO_GetShiftState [00:46:09]wFMCommunicate request_size=4 [00:46:09]MH_SAM_APDU [00:46:09]CAPDU: 80 13 01 00 [00:46:09]Write to MH i2c: E2 08 00 45 1B 80 13 01 00 00 00 00 00 DD [00:46:09]Write i2c OK [00:46:09]MH_I2C_Read... [00:46:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:46:09]Read from MH i2c: E2 [00:46:09]MH_I2C_Read... [00:46:09]Read from MH i2c: E2 0E 00 [00:46:09]MH_I2C_Read... [00:46:09]Read from MH i2c: E2 0E 00 45 1B 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 2C [00:46:09]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [00:46:09]wFMCommunicate OK [00:46:09]SAM_PROTO_GetShiftState done [00:46:09]FM_GetShiftState done [00:46:09]opened in 1718843124 [00:46:09]opened+sec_in_day 1718929524 [00:46:09]quantity*price = 30012 [00:46:09]sum+1 = 30014 [00:46:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.13 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.87 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 1 20.06.2024 00:46 Смена: 354 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103816 ФПД: 117090167546743 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T004612&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103816&fm=117090167546743&tin=02508201610067®Number=0000000000092785&sum=30000 [00:46:10]StoreToDocumentArchive [00:46:10]shift 354 fd 103816 [00:46:10]save to /storage/0354/doc_00103816 [00:46:10]save last doc name /storage/0354/doc_00103816 to /storage/kkm_last_doc_name [00:46:10]save OK [00:46:10]Clear old archive folders... [00:46:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:46:10]tlvbuf is 017A9BC0 [00:46:10]SAM_PROTO_ClearQueue [00:46:10]wFMCommunicate request_size=4 [00:46:10]MH_SAM_APDU [00:46:10]CAPDU: 80 09 00 00 [00:46:10]Write to MH i2c: E2 08 00 52 1B 80 09 00 00 00 00 00 00 DF [00:46:10]Write i2c OK [00:46:10]MH_I2C_Read... [00:46:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:46:10]Read from MH i2c: E2 [00:46:10]MH_I2C_Read... [00:46:10]Read from MH i2c: E2 03 00 [00:46:10]MH_I2C_Read... [00:46:10]Read from MH i2c: E2 03 00 52 1B 00 90 00 E1 [00:46:10]RAPDU: 90 00 [00:46:10]wFMCommunicate OK [00:46:10]SAM_PROTO_ClearQueue done [00:46:10]KKMCreateOFDPacket [00:46:10]OFDProtocolAddRootSTLVToBuf [00:46:10]FM_MakeSignedData [00:46:10]FM_MakeSignedData [00:46:10]SAM_PROTO_SignData [00:46:10]wFMCommunicate request_size=4 [00:46:10]MH_SAM_APDU [00:46:10]CAPDU: 80 0D 01 02 [00:46:10]Write to MH i2c: E2 08 00 53 1B 80 0D 01 02 00 00 00 00 E7 [00:46:10]Write i2c OK [00:46:10]MH_I2C_Read... [00:46:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:46:11]Read from MH i2c: E2 [00:46:11]MH_I2C_Read... [00:46:11]Read from MH i2c: E2 03 00 [00:46:11]MH_I2C_Read... [00:46:11]Read from MH i2c: E2 03 00 53 1B 00 90 00 E2 [00:46:11]RAPDU: 90 00 [00:46:11]wFMCommunicate OK [00:46:11]wFMCommunicate request_size=255 [00:46:11]MH_SAM_APDU [00: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 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 D4 7B 73 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 88 95 01 00 35 04 06 00 6A [00:46:11]Write to MH i2c: E2 02 01 54 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 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 D4 7B 73 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 88 95 01 00 35 04 06 00 6A 00 00 53 [00:46:11]Write i2c OK [00:46:11]MH_I2C_Read... [00:46:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:46:11]Read from MH i2c: E2 [00:46:11]MH_I2C_Read... [00:46:11]Read from MH i2c: E2 03 00 [00:46:11]MH_I2C_Read... [00:46:11]Read from MH i2c: E2 03 00 54 1B 00 90 00 E3 [00:46:11]RAPDU: 90 00 [00:46:11]wFMCommunicate OK [00:46:11]wFMCommunicate request_size=10 [00:46:11]MH_SAM_APDU [00:46:11]CAPDU: 80 0D 02 02 05 7E 2D D7 E3 77 [00:46:11]Write to MH i2c: E2 0D 00 55 1B 80 0D 02 02 05 00 7E 2D D7 E3 77 00 00 D0 [00:46:11]Write i2c OK [00:46:11]MH_I2C_Read... [00:46:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:46:11]Read from MH i2c: E2 [00:46:11]MH_I2C_Read... [00:46:11]Read from MH i2c: E2 03 00 [00:46:11]MH_I2C_Read... [00:46:11]Read from MH i2c: E2 03 00 55 1B 00 90 00 E4 [00:46:11]RAPDU: 90 00 [00:46:11]wFMCommunicate OK [00:46:11]wFMCommunicate request_size=4 [00:46:11]MH_SAM_APDU [00:46:11]CAPDU: 80 0D 03 02 [00:46:11]Write to MH i2c: E2 08 00 56 1B 80 0D 03 02 00 00 00 00 EC [00:46:11]Write i2c OK [00:46:11]MH_I2C_Read... [00:46:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:46:11]Read from MH i2c: E2 [00:46:11]MH_I2C_Read... [00:46:11]Read from MH i2c: E2 0B 00 [00:46:11]MH_I2C_Read... [00:46:11]Read from MH i2c: E2 0B 00 56 1B 00 5B 70 A5 F1 FB BE E2 F2 90 00 DB [00:46:11]RAPDU: 5B 70 A5 F1 FB BE E2 F2 90 00 [00:46:11]wFMCommunicate OK [00:46:11]SAM_PROTO_SignData done [00:46:11]FM_MakeSignedData done [00:46:11]CreateOFDProtocolMessage [00:46:11]wFMCommunicate request_size=4 [00:46:11]MH_SAM_APDU [00:46:11]CAPDU: 80 11 00 00 [00:46:11]Write to MH i2c: E2 08 00 57 1B 80 11 00 00 00 00 00 00 EC [00:46:11]Write i2c OK [00:46:11]MH_I2C_Read... [00:46:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:46:11]Read from MH i2c: E2 [00:46:11]MH_I2C_Read... [00:46:11]Read from MH i2c: E2 17 00 [00:46:11]MH_I2C_Read... [00:46:11]Read from MH i2c: E2 17 00 57 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 3F [00:46:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [00:46:11]wFMCommunicate OK [00:46:11]CreateOFDProtocolMessage done [00:46:11]OFDSenderStorePacket 103816 [00:46:11]StoreOFDPacket docnum=103816 [00:46:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 30 A9 07 01 74 EB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 D4 7B 73 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 88 95 01 00 35 04 06 00 6A 7E 2D D7 E3 77 5B 70 A5 F1 FB BE E2 F2 [00:46:11]CheckFolder [00:46:11]dirname=/storage/ofd_packets [00:46:11]CheckFolder done [00:46:11]ProducePacketName [00:46:11]name=ofd_packets/00103816 [00:46:11]NVStorageSaveData ofd_packets/00103816 [00:46:11]File name is /storage/ofd_packets/00103816 [00:46:11]Write 301 bytes [00:46:11]NVStorageSaveData done [00:46:11]OFDSenderStorePacket done [00:46:11]KKMCreateOFDPacket done [00:46:11]NVStorageSaveData kkm_last_timestamp [00:46:11]File name is /storage/kkm_last_timestamp [00:46:11]Write 4 bytes [00:46:11]NVStorageSaveData done [00:46:11]ExternCall_PrintAddStr [00:46:11]wPrintStart [00:46:11]Write to MH i2c: 01 00 00 58 1B 73 [00:46:11]Write i2c OK [00:46:11]MH_I2C_Read... [00:46:11]Read from MH i2c: 01 [00:46:11]MH_I2C_Read... [00:46:11]Read from MH i2c: 01 07 00 [00:46:11]MH_I2C_Read... [00:46:11]Read from MH i2c: 01 07 00 58 1B 00 00 00 00 00 FF 0F 88 [00:46:11]RasterBufferAndPrint [00:46:11]line Счет N : (1)673123 [00:46:11]line ИНН: 02508201610067 [00:46:11]line Контрольно-Кассовый Чек [00:46:11]line ПРОДАЖА [00:46:11]line ТРК (МРК, ГНК) : 32 [00:46:11]line Товар: 2710124130 [00:46:11]line Аи-92-К-5 [00:46:11]line 4.520 * 66.40 [00:46:11]line = 300.13 [00:46:11]line НДС 12% НСП 1% [00:46:11]line > о реализуемом товаре [00:46:11]line ОКРУГЛЕНИЕ: -0.13 [00:46:11]line ИТОГО: 300.00 [00:46:11]line Внесено: 300.00 [00:46:11]line СДАЧА: 0.00 [00:46:11]line НСП 1% : 2.66 [00:46:11]line НДС 12% : 31.87 [00:46:11]line Наличными: 300.00 [00:46:11]line Безнал.: 0.00 [00:46:11]line Место: АЗС № 120 "Партнер Нефть" [00:46:11]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [00:46:11]line СНО: Общий режим [00:46:11]line Чек 1 20.06.2024 00:46 [00:46:11]line Смена: 354 ФФД: 1.0 [00:46:11]line ЗНМ: 0300000164 [00:46:11]line РНМ: 0000000000092785 [00:46:11]line Версия ККМ: 001 [00:46:11]line ФМ: 0000000000875093 [00:46:11]line ФД: 103816 [00:46:11]line ФПД: 117090167546743 [00:46:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T004612&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103816&fm=117090167546743&tin=02508201610067®Number=0000000000092785&sum=30000 [00:46:11]OFD Sender: Processing packet 103816 [packets to send 17, broken 16] [00:46:11]ProducePacketName [00:46:11]name=ofd_packets/00103816 [00:46:11]OFD Sender: To server: pG, [00:46:11]CommunicateWithHost lk.salyk.kg:30040 [00:46:11]ConnectInit lk.salyk.kg [00:46:11]written 0, free lines is 4095 [00:46:11]Connected sock=9 [00: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 39 33 0F 01 00 00 30 A9 07 01 74 EB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 D4 7B 73 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 88 95 01 00 35 04 06 00 6A 7E 2D D7 E3 77 5B 70 A5 F1 FB BE E2 F2 [00: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 39 33 4F 00 00 00 BA 8A 47 00 C4 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 39 33 10 04 04 00 88 95 01 00 F4 03 04 00 5B 22 73 66 B6 04 01 00 00 DA 87 F0 CD 8B C1 F7 07 [00:46:12]CommunicateWithHost err = 0 [00:46:12]CheckOFDResponse [00:46:12]1017 (14) - 77093643461234 [00:46:12]1041 (16) - 0000000000875093 [00:46:12]1040 (4) - 103816 [00:46:12]1012 (4) - 19.06.2024 18:24 [00:46:12]1206 (1) - 0 [00:46:12]OFD Sender: Remove packet 103816 [00:46:12]ProducePacketName [00:46:12]name=ofd_packets/00103816 [00:46:12]NVStorageDeleteData [00:46:12]Write to MH i2c: 01 00 00 83 1B 9E [00:46:12]Write i2c OK [00:46:12]MH_I2C_Read... [00:46:12]Read from MH i2c: 01 [00:46:12]MH_I2C_Read... [00:46:12]Read from MH i2c: 01 07 00 [00:46:12]MH_I2C_Read... [00:46:12]Read from MH i2c: 01 07 00 83 1B 00 00 00 00 00 CF 0C 80 [00:46:12]RasterBufferAndPrint [00:46:12]line [00:46:12]line [00:46:12]line [00:46:12]line [00:46:12]line [00:46:12]written 0, free lines is 3287 [00:46:12]MH_Cut [00:46:12]Write to MH i2c: D1 01 00 8A 1B 01 77 [00:46:12]Write i2c OK [00:46:12]MH_I2C_Read... [00:46:12]Read from MH i2c: D1 [00:46:12]MH_I2C_Read... [00:46:12]Read from MH i2c: D1 01 00 [00:46:12]MH_I2C_Read... [00:46:12]Read from MH i2c: D1 01 00 8A 1B 00 76 [00:46:12]Write to MH i2c: 01 00 00 8B 1B A6 [00:46:12]Write i2c OK [00:46:12]MH_I2C_Read... [00:46:12]OFD Sender: No OFD packet to send [00:46:13]*** Cut start [00:46:13]*** Partial cut [00:46:13]*** CUTSNS_PIN = 1 [00:46:13]*** CUTSNS_PIN = 0 [00:46:13]*** Brake cut motor [00:46:13]Read from MH i2c: 01 [00:46:13]MH_I2C_Read... [00:46:13]*** Stop cut motor [00:46:13]*** Cut end [00:46:13]Read from MH i2c: 01 07 00 [00:46:13]MH_I2C_Read... [00:46:13]Read from MH i2c: 01 07 00 8B 1B 00 00 00 00 00 FF 0F BB [00:46:13]process_action close_receipt done [00:46:13]requested_data is exist [00:46:13]produce_requested_data [00:46:13]requested_item fm.sn is exist - process it [00:46:13]wFMCommunicate request_size=4 [00:46:13]MH_SAM_APDU [00:46:13]CAPDU: 80 11 00 00 [00:46:13]Write to MH i2c: E2 08 00 8C 1B 80 11 00 00 00 00 00 00 21 [00:46:13]Write i2c OK [00:46:13]MH_I2C_Read... [00:46:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:46:13]Read from MH i2c: E2 [00:46:13]MH_I2C_Read... [00:46:13]Read from MH i2c: E2 17 00 [00:46:13]MH_I2C_Read... [00:46:13]Read from MH i2c: E2 17 00 8C 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 74 [00:46:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [00:46:13]wFMCommunicate OK [00:46:13]requested_item fd.num is exist - process it [00:46:13]SAM_PROTO_GetFieldsCounters [00:46:13]wFMCommunicate request_size=4 [00:46:13]MH_SAM_APDU [00:46:13]CAPDU: 80 13 00 00 [00:46:13]Write to MH i2c: E2 08 00 8D 1B 80 13 00 00 00 00 00 00 24 [00:46:13]Write i2c OK [00:46:13]MH_I2C_Read... [00:46:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:46:13]Read from MH i2c: E2 [00:46:13]MH_I2C_Read... [00:46:13]Read from MH i2c: E2 62 00 [00:46:13]MH_I2C_Read... [00:46:13]Read from MH i2c: E2 62 00 8D 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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 88 95 01 00 0E 04 04 00 62 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 CF [00: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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 88 95 01 00 0E 04 04 00 62 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:46:13]wFMCommunicate OK [00:46:13]SAM_PROTO_GetFieldsCounters done [00:46:13]requested_item shift.num is exist - process it [00:46:13]requested_item shift.opened is exist - process it [00:46:13]req_shift_opened [00:46:13]FM_GetShiftState [00:46:13]SAM_PROTO_GetShiftState [00:46:13]wFMCommunicate request_size=4 [00:46:13]MH_SAM_APDU [00:46:13]CAPDU: 80 13 01 00 [00:46:13]Write to MH i2c: E2 08 00 8E 1B 80 13 01 00 00 00 00 00 26 [00:46:13]Write i2c OK [00:46:13]MH_I2C_Read... [00:46:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:46:13]Read from MH i2c: E2 [00:46:13]MH_I2C_Read... [00:46:13]Read from MH i2c: E2 0E 00 [00:46:13]MH_I2C_Read... [00:46:13]Read from MH i2c: E2 0E 00 8E 1B 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 75 [00:46:13]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [00:46:13]wFMCommunicate OK [00:46:13]SAM_PROTO_GetShiftState done [00:46:13]FM_GetShiftState done [00:46:13]req_shift_opened done [00:46:13]requested_item shift.open_date is exist - process it [00:46:13]req_shift_open_date [00:46:13]req_shift_open_date done [00:46:13]produce_requested_data done [00:46:13]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103816,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [00:46:13]process_action_free close_receipt [00:46:13]json_value_free [00:46:13]json_value_free done [00:46:13]process_json_proto returns [00:46:13]Send response to host [00:46:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103816,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [00:46:13]free response buf [00:46:13]execute_script done [00:46:13]execute_script returns [00:46:13]free content buf [00:46:13]Sock 8.Close socket [00:46:13]Sock 8.Thread stoped [00:46:17]OFD Sender: No OFD packet to send [00:46:22]OFD Sender: No OFD packet to send [00:46:27]OFD Sender: No OFD packet to send [00:46:32]OFD Sender: No OFD packet to send [00:46:37]OFD Sender: No OFD packet to send [00:46:42]OFD Sender: No OFD packet to send [00:46:47]OFD Sender: No OFD packet to send [00:46:52]OFD Sender: No OFD packet to send [00:46:57]OFD Sender: No OFD packet to send [00:47:02]OFD Sender: No OFD packet to send [00:47:07]OFD Sender: No OFD packet to send [00:47:12]OFD Sender: No OFD packet to send [00:47:17]OFD Sender: No OFD packet to send [00:47:22]OFD Sender: No OFD packet to send [00:47:27]OFD Sender: No OFD packet to send [00:47:32]OFD Sender: No OFD packet to send [00:47:37]OFD Sender: No OFD packet to send [00:47:42]OFD Sender: No OFD packet to send [00:47:47]OFD Sender: No OFD packet to send [00:47:52]OFD Sender: No OFD packet to send [00:47:57]OFD Sender: No OFD packet to send [00:48:02]OFD Sender: No OFD packet to send [00:48:07]OFD Sender: No OFD packet to send [00:48:12]OFD Sender: No OFD packet to send [00:48:17]OFD Sender: No OFD packet to send [00:48:22]OFD Sender: No OFD packet to send [00:48:27]OFD Sender: No OFD packet to send [00:48:32]OFD Sender: No OFD packet to send [00:48:37]OFD Sender: No OFD packet to send [00:48:42]OFD Sender: No OFD packet to send [00:48:47]OFD Sender: No OFD packet to send [00:48:52]OFD Sender: No OFD packet to send [00:48:57]OFD Sender: No OFD packet to send [00:49:02]OFD Sender: No OFD packet to send [00:49:07]OFD Sender: No OFD packet to send [00:49:12]OFD Sender: No OFD packet to send [00:49:17]OFD Sender: No OFD packet to send [00:49:22]OFD Sender: No OFD packet to send [00:49:27]OFD Sender: No OFD packet to send [00:49:32]OFD Sender: No OFD packet to send [00:49:37]OFD Sender: No OFD packet to send [00:49:42]OFD Sender: No OFD packet to send [00:49:47]OFD Sender: No OFD packet to send [00:49:52]OFD Sender: No OFD packet to send [00:49:57]OFD Sender: No OFD packet to send [00:50:02]OFD Sender: No OFD packet to send [00:50:07]OFD Sender: No OFD packet to send [00:50:12]OFD Sender: No OFD packet to send [00:50:17]OFD Sender: No OFD packet to send [00:50:22]OFD Sender: No OFD packet to send [00:50:27]OFD Sender: No OFD packet to send [00:50:32]OFD Sender: No OFD packet to send [00:50:37]OFD Sender: No OFD packet to send [00:50:42]OFD Sender: No OFD packet to send [00:50:47]OFD Sender: No OFD packet to send [00:50:52]OFD Sender: No OFD packet to send [00:50:57]OFD Sender: No OFD packet to send [00:51:02]OFD Sender: No OFD packet to send [00:51:07]OFD Sender: No OFD packet to send [00:51:12]OFD Sender: No OFD packet to send [00:51:17]OFD Sender: No OFD packet to send [00:51:22]OFD Sender: No OFD packet to send [00:51:27]OFD Sender: No OFD packet to send [00:51:32]OFD Sender: No OFD packet to send [00:51:37]OFD Sender: No OFD packet to send [00:51:42]OFD Sender: No OFD packet to send [00:51:47]OFD Sender: No OFD packet to send [00:51:52]OFD Sender: No OFD packet to send [00:51:57]OFD Sender: No OFD packet to send [00:52:02]OFD Sender: No OFD packet to send [00:52:07]OFD Sender: No OFD packet to send [00:52:12]OFD Sender: No OFD packet to send [00:52:17]OFD Sender: No OFD packet to send [00:52:22]OFD Sender: No OFD packet to send [00:52:27]OFD Sender: No OFD packet to send [00:52:32]OFD Sender: No OFD packet to send [00:52:37]OFD Sender: No OFD packet to send [00:52:43]OFD Sender: No OFD packet to send [00:52:48]OFD Sender: No OFD packet to send [00:52:53]OFD Sender: No OFD packet to send [00:52:58]OFD Sender: No OFD packet to send [00:53:03]OFD Sender: No OFD packet to send [00:53:08]OFD Sender: No OFD packet to send [00:53:13]OFD Sender: No OFD packet to send [00:53:18]OFD Sender: No OFD packet to send [00:53:23]OFD Sender: No OFD packet to send [00:53:28]OFD Sender: No OFD packet to send [00:53:33]OFD Sender: No OFD packet to send [00:53:38]OFD Sender: No OFD packet to send [00:53:43]OFD Sender: No OFD packet to send [00:53:48]OFD Sender: No OFD packet to send [00:53:53]OFD Sender: No OFD packet to send [00:53:58]OFD Sender: No OFD packet to send [00:54:03]OFD Sender: No OFD packet to send [00:54:08]OFD Sender: No OFD packet to send [00:54:13]OFD Sender: No OFD packet to send [00:54:18]OFD Sender: No OFD packet to send [00:54:23]OFD Sender: No OFD packet to send [00:54:28]OFD Sender: No OFD packet to send [00:54:33]OFD Sender: No OFD packet to send [00:54:38]OFD Sender: No OFD packet to send [00:54:43]OFD Sender: No OFD packet to send [00:54:48]OFD Sender: No OFD packet to send [00:54:53]OFD Sender: No OFD packet to send [00:54:58]OFD Sender: No OFD packet to send [00:55:03]OFD Sender: No OFD packet to send [00:55:08]OFD Sender: No OFD packet to send [00:55:13]OFD Sender: No OFD packet to send [00:55:18]OFD Sender: No OFD packet to send [00:55:23]OFD Sender: No OFD packet to send [00:55:28]OFD Sender: No OFD packet to send [00:55:33]OFD Sender: No OFD packet to send [00:55:38]OFD Sender: No OFD packet to send [00:55:43]OFD Sender: No OFD packet to send [00:55:48]OFD Sender: No OFD packet to send [00:55:53]OFD Sender: No OFD packet to send [00:55:58]OFD Sender: No OFD packet to send [00:56:03]OFD Sender: No OFD packet to send [00:56:08]OFD Sender: No OFD packet to send [00:56:13]OFD Sender: No OFD packet to send [00:56:18]OFD Sender: No OFD packet to send [00:56:23]OFD Sender: No OFD packet to send [00:56:28]OFD Sender: No OFD packet to send [00:56:33]OFD Sender: No OFD packet to send [00:56:38]OFD Sender: No OFD packet to send [00:56:43]OFD Sender: No OFD packet to send [00:56:48]OFD Sender: No OFD packet to send [00:56:53]OFD Sender: No OFD packet to send [00:56:58]OFD Sender: No OFD packet to send [00:57:03]OFD Sender: No OFD packet to send [00:57:08]OFD Sender: No OFD packet to send [00:57:13]OFD Sender: No OFD packet to send [00:57:18]OFD Sender: No OFD packet to send [00:57:23]OFD Sender: No OFD packet to send [00:57:28]OFD Sender: No OFD packet to send [00:57:33]OFD Sender: No OFD packet to send [00:57:38]OFD Sender: No OFD packet to send [00:57:43]OFD Sender: No OFD packet to send [00:57:48]OFD Sender: No OFD packet to send [00:57:53]OFD Sender: No OFD packet to send [00:57:58]OFD Sender: No OFD packet to send [00:58:03]OFD Sender: No OFD packet to send [00:58:08]OFD Sender: No OFD packet to send [00:58:13]OFD Sender: No OFD packet to send [00:58:18]OFD Sender: No OFD packet to send [00:58:23]OFD Sender: No OFD packet to send [00:58:28]OFD Sender: No OFD packet to send [00:58:33]OFD Sender: No OFD packet to send [00:58:38]OFD Sender: No OFD packet to send [00:58:43]OFD Sender: No OFD packet to send [00:58:48]OFD Sender: No OFD packet to send [00:58:53]OFD Sender: No OFD packet to send [00:58:58]OFD Sender: No OFD packet to send [00:59:03]OFD Sender: No OFD packet to send [00:59:08]OFD Sender: No OFD packet to send [00:59:13]OFD Sender: No OFD packet to send [00:59:18]OFD Sender: No OFD packet to send [00:59:23]OFD Sender: No OFD packet to send [00:59:28]OFD Sender: No OFD packet to send [00:59:33]OFD Sender: No OFD packet to send [00:59:38]OFD Sender: No OFD packet to send [00:59:43]OFD Sender: No OFD packet to send [00:59:48]OFD Sender: No OFD packet to send [00:59:53]OFD Sender: No OFD packet to send [00:59:58]OFD Sender: No OFD packet to send [01:00:03]OFD Sender: No OFD packet to send [01:00:08]OFD Sender: No OFD packet to send [01:00:13]OFD Sender: No OFD packet to send [01:00:18]OFD Sender: No OFD packet to send [01:00:23]OFD Sender: No OFD packet to send [01:00:28]OFD Sender: No OFD packet to send [01:00:33]OFD Sender: No OFD packet to send [01:00:38]OFD Sender: No OFD packet to send [01:00:43]OFD Sender: No OFD packet to send [01:00:48]OFD Sender: No OFD packet to send [01:00:53]OFD Sender: No OFD packet to send [01:00:58]OFD Sender: No OFD packet to send [01:01:03]OFD Sender: No OFD packet to send [01:01:08]OFD Sender: No OFD packet to send [01:01:13]OFD Sender: No OFD packet to send [01:01:18]OFD Sender: No OFD packet to send [01:01:23]OFD Sender: No OFD packet to send [01:01:28]OFD Sender: No OFD packet to send [01:01:33]OFD Sender: No OFD packet to send [01:01:38]OFD Sender: No OFD packet to send [01:01:43]OFD Sender: No OFD packet to send [01:01:48]OFD Sender: No OFD packet to send [01:01:53]OFD Sender: No OFD packet to send [01:01:58]OFD Sender: No OFD packet to send [01:02:03]OFD Sender: No OFD packet to send [01:02:08]OFD Sender: No OFD packet to send [01:02:13]OFD Sender: No OFD packet to send [01:02:18]OFD Sender: No OFD packet to send [01:02:23]OFD Sender: No OFD packet to send [01:02:28]OFD Sender: No OFD packet to send [01:02:33]OFD Sender: No OFD packet to send [01:02:38]OFD Sender: No OFD packet to send [01:02:43]OFD Sender: No OFD packet to send [01:02:48]OFD Sender: No OFD packet to send [01:02:53]OFD Sender: No OFD packet to send [01:02:58]OFD Sender: No OFD packet to send [01:03:03]OFD Sender: No OFD packet to send [01:03:08]OFD Sender: No OFD packet to send [01:03:13]OFD Sender: No OFD packet to send [01:03:18]OFD Sender: No OFD packet to send [01:03:23]OFD Sender: No OFD packet to send [01:03:28]OFD Sender: No OFD packet to send [01:03:33]OFD Sender: No OFD packet to send [01:03:38]OFD Sender: No OFD packet to send [01:03:43]OFD Sender: No OFD packet to send [01:03:48]OFD Sender: No OFD packet to send [01:03:53]OFD Sender: No OFD packet to send [01:03:58]OFD Sender: No OFD packet to send [01:04:03]OFD Sender: No OFD packet to send [01:04:08]OFD Sender: No OFD packet to send [01:04:13]OFD Sender: No OFD packet to send [01:04:18]OFD Sender: No OFD packet to send [01:04:23]OFD Sender: No OFD packet to send [01:04:28]OFD Sender: No OFD packet to send [01:04:33]OFD Sender: No OFD packet to send [01:04:38]OFD Sender: No OFD packet to send [01:04:43]OFD Sender: No OFD packet to send [01:04:48]OFD Sender: No OFD packet to send [01:04:53]OFD Sender: No OFD packet to send [01:04:58]OFD Sender: No OFD packet to send [01:05:03]OFD Sender: No OFD packet to send [01:05:08]OFD Sender: No OFD packet to send [01:05:13]OFD Sender: No OFD packet to send [01:05:18]OFD Sender: No OFD packet to send [01:05:23]OFD Sender: No OFD packet to send [01:05:28]OFD Sender: No OFD packet to send [01:05:33]OFD Sender: No OFD packet to send [01:05:38]OFD Sender: No OFD packet to send [01:05:43]OFD Sender: No OFD packet to send [01:05:48]OFD Sender: No OFD packet to send [01:05:53]OFD Sender: No OFD packet to send [01:05:58]OFD Sender: No OFD packet to send [01:06:03]OFD Sender: No OFD packet to send [01:06:08]OFD Sender: No OFD packet to send [01:06:13]OFD Sender: No OFD packet to send [01:06:18]OFD Sender: No OFD packet to send [01:06:23]OFD Sender: No OFD packet to send [01:06:28]OFD Sender: No OFD packet to send [01:06:33]OFD Sender: No OFD packet to send [01:06:38]OFD Sender: No OFD packet to send [01:06:43]OFD Sender: No OFD packet to send [01:06:48]OFD Sender: No OFD packet to send [01:06:53]OFD Sender: No OFD packet to send [01:06:58]OFD Sender: No OFD packet to send [01:07:03]OFD Sender: No OFD packet to send [01:07:08]OFD Sender: No OFD packet to send [01:07:13]OFD Sender: No OFD packet to send [01:07:18]OFD Sender: No OFD packet to send [01:07:23]OFD Sender: No OFD packet to send [01:07:28]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:28]OFD Sender: No OFD packet to send [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:34]OFD Sender: No OFD packet to send [01:13:39]OFD Sender: No OFD packet to send [01:13:44]OFD Sender: No OFD packet to send [01:13:49]OFD Sender: No OFD packet to send [01:13:54]OFD Sender: No OFD packet to send [01:13:59]OFD Sender: No OFD packet to send [01:14:04]OFD Sender: No OFD packet to send [01:14:09]OFD Sender: No OFD packet to send [01:14:14]OFD Sender: No OFD packet to send [01:14:19]OFD Sender: No OFD packet to send [01:14:24]OFD Sender: No OFD packet to send [01:14:29]OFD Sender: No OFD packet to send [01:14:34]OFD Sender: No OFD packet to send [01:14:39]OFD Sender: No OFD packet to send [01:14:44]OFD Sender: No OFD packet to send [01:14:49]OFD Sender: No OFD packet to send [01:14:54]OFD Sender: No OFD packet to send [01:14:59]OFD Sender: No OFD packet to send [01:15:04]OFD Sender: No OFD packet to send [01:15:09]OFD Sender: No OFD packet to send [01:15:14]OFD Sender: No OFD packet to send [01:15:19]OFD Sender: No OFD packet to send [01:15:24]OFD Sender: No OFD packet to send [01:15:29]OFD Sender: No OFD packet to send [01:15:34]OFD Sender: No OFD packet to send [01:15:39]OFD Sender: No OFD packet to send [01:15:44]OFD Sender: No OFD packet to send [01:15:49]OFD Sender: No OFD packet to send [01:15:54]OFD Sender: No OFD packet to send [01:15:59]OFD Sender: No OFD packet to send [01:16:04]OFD Sender: No OFD packet to send [01:16:09]OFD Sender: No OFD packet to send [01:16:14]OFD Sender: No OFD packet to send [01:16:19]OFD Sender: No OFD packet to send [01:16:24]OFD Sender: No OFD packet to send [01:16:29]OFD Sender: No OFD packet to send [01:16:34]OFD Sender: No OFD packet to send [01:16:39]OFD Sender: No OFD packet to send [01:16:44]OFD Sender: No OFD packet to send [01:16:49]OFD Sender: No OFD packet to send [01:16:54]OFD Sender: No OFD packet to send [01:16:59]OFD Sender: No OFD packet to send [01:17:04]OFD Sender: No OFD packet to send [01:17:09]OFD Sender: No OFD packet to send [01:17:14]OFD Sender: No OFD packet to send [01:17:19]OFD Sender: No OFD packet to send [01:17:24]OFD Sender: No OFD packet to send [01:17:29]OFD Sender: No OFD packet to send [01:17:34]OFD Sender: No OFD packet to send [01:17:39]OFD Sender: No OFD packet to send [01:17:44]OFD Sender: No OFD packet to send [01:17:49]OFD Sender: No OFD packet to send [01:17:54]OFD Sender: No OFD packet to send [01:17:59]OFD Sender: No OFD packet to send [01:18:04]OFD Sender: No OFD packet to send [01:18:09]OFD Sender: No OFD packet to send [01:18:14]OFD Sender: No OFD packet to send [01:18:19]OFD Sender: No OFD packet to send [01:18:24]OFD Sender: No OFD packet to send [01:18:29]OFD Sender: No OFD packet to send [01:18:34]OFD Sender: No OFD packet to send [01:18:39]OFD Sender: No OFD packet to send [01:18:44]OFD Sender: No OFD packet to send [01:18:49]OFD Sender: No OFD packet to send [01:18:54]OFD Sender: No OFD packet to send [01:18:59]OFD Sender: No OFD packet to send [01:19:04]OFD Sender: No OFD packet to send [01:19:09]OFD Sender: No OFD packet to send [01:19:14]OFD Sender: No OFD packet to send [01:19:19]OFD Sender: No OFD packet to send [01:19:24]OFD Sender: No OFD packet to send [01:19:29]OFD Sender: No OFD packet to send [01:19:34]OFD Sender: No OFD packet to send [01:19:39]OFD Sender: No OFD packet to send [01:19:44]OFD Sender: No OFD packet to send [01:19:49]OFD Sender: No OFD packet to send [01:19:54]OFD Sender: No OFD packet to send [01:19:59]OFD Sender: No OFD packet to send [01:20:04]OFD Sender: No OFD packet to send [01:20:09]OFD Sender: No OFD packet to send [01:20:14]OFD Sender: No OFD packet to send [01:20:19]OFD Sender: No OFD packet to send [01:20:24]OFD Sender: No OFD packet to send [01:20:29]OFD Sender: No OFD packet to send [01:20:34]OFD Sender: No OFD packet to send [01:20:34]accept exits with 10 [01:20:34]New connection [01:20:34]New thread 3066940772 created [01:20:34]Thread 3066797412 joined [01:20:34]Waiting for new connection... [01:20:34] Sock 10.Parse request [01:20:34]Sock 10.Check first char [01:20:34]Sock 10.First char is OK [01:20:34]request: POST /json_proto HTTP/1.0 [01:20:34]Method: POST [01:20:34]URL: /json_proto [01:20:34]Method is POST - this is cgi request [01:20:34]url: /json_proto [01:20:34]query_string will be loaded in cgi processing [01:20:34]execute_cgi json_proto POST (null) [01:20:34]execute_cgi path=json_proto method=POST [01:20:34]POST find Content-Length [01:20:34]Host: 172.17.38.133:8080 [01:20:34]Content-Length: 678 [01:20:34]Content-Type: application/json [01:20:34] [01:20:34]POST finish read [01:20:34]Found Content-Length = 678 [01:20:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673124", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 10.550, "sum" : 700.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:20:34]execute_script... [01:20:34]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673124", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 10.550, "sum" : 700.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:20:34]POST & json_proto [01:20:34]process_json_proto [01:20:34]json parsed OK: [01:20:34]protocol is kg_v1.0 [01:20:34]action value=close_receipt [01:20:34]process_action close_receipt [01:20:34]cmd_close_receipt [01:20:34]MH_GetDate [01:20:34]Write to MH i2c: F0 00 00 8F 1B 99 [01:20:34]Write i2c OK [01:20:34]MH_I2C_Read... [01:20:34]Read from MH i2c: F0 [01:20:34]MH_I2C_Read... [01:20:34]Read from MH i2c: F0 09 00 [01:20:34]MH_I2C_Read... [01:20:34]Read from MH i2c: F0 09 00 8F 1B 00 E4 83 73 66 BD 8F 7C 64 0E [01:20:34]GetLastDocTimeStamp 1718844372 [01:20:34]current date 1718846436 [01:20:34]FM_GetShiftState [01:20:34]SAM_PROTO_GetShiftState [01:20:34]wFMCommunicate request_size=4 [01:20:34]MH_SAM_APDU [01:20:34]CAPDU: 80 13 01 00 [01:20:34]Write to MH i2c: E2 08 00 90 1B 80 13 01 00 00 00 00 00 28 [01:20:34]Write i2c OK [01:20:34]MH_I2C_Read... [01:20:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:20:34]Read from MH i2c: E2 [01:20:34]MH_I2C_Read... [01:20:34]Read from MH i2c: E2 0E 00 [01:20:34]MH_I2C_Read... [01:20:34]Read from MH i2c: E2 0E 00 90 1B 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 77 [01:20:34]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [01:20:34]wFMCommunicate OK [01:20:34]SAM_PROTO_GetShiftState done [01:20:34]FM_GetShiftState done [01:20:34]opened in 1718843124 [01:20:34]opened+sec_in_day 1718929524 [01:20:34]quantity*price = 70052 [01:20:34]sum+1 = 70053 [01:20:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.52 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.39 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 2 20.06.2024 01:20 Смена: 354 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103817 ФПД: 158786443360084 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T012036&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103817&fm=158786443360084&tin=02508201610067®Number=0000000000092785&sum=70000 [01:20:35]StoreToDocumentArchive [01:20:35]shift 354 fd 103817 [01:20:35]save to /storage/0354/doc_00103817 [01:20:35]save last doc name /storage/0354/doc_00103817 to /storage/kkm_last_doc_name [01:20:35]save OK [01:20:35]Clear old archive folders... [01:20:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [01:20:35]tlvbuf is 01755960 [01:20:35]SAM_PROTO_ClearQueue [01:20:35]wFMCommunicate request_size=4 [01:20:35]MH_SAM_APDU [01:20:35]CAPDU: 80 09 00 00 [01:20:35]Write to MH i2c: E2 08 00 9D 1B 80 09 00 00 00 00 00 00 2A [01:20:35]Write i2c OK [01:20:35]MH_I2C_Read... [01:20:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:20:35]Read from MH i2c: E2 [01:20:35]MH_I2C_Read... [01:20:35]Read from MH i2c: E2 03 00 [01:20:35]MH_I2C_Read... [01:20:35]Read from MH i2c: E2 03 00 9D 1B 00 90 00 2C [01:20:35]RAPDU: 90 00 [01:20:35]wFMCommunicate OK [01:20:35]SAM_PROTO_ClearQueue done [01:20:35]KKMCreateOFDPacket [01:20:35]OFDProtocolAddRootSTLVToBuf [01:20:35]FM_MakeSignedData [01:20:35]FM_MakeSignedData [01:20:35]SAM_PROTO_SignData [01:20:35]wFMCommunicate request_size=4 [01:20:35]MH_SAM_APDU [01:20:35]CAPDU: 80 0D 01 02 [01:20:35]Write to MH i2c: E2 08 00 9E 1B 80 0D 01 02 00 00 00 00 32 [01:20:35]Write i2c OK [01:20:35]MH_I2C_Read... [01:20:35]Read from MH i2c: E2 [01:20:35]MH_I2C_Read... [01:20:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:20:35]Read from MH i2c: E2 03 00 [01:20:35]MH_I2C_Read... [01:20:35]Read from MH i2c: E2 03 00 9E 1B 00 90 00 2D [01:20:35]RAPDU: 90 00 [01:20:35]wFMCommunicate OK [01:20:35]wFMCommunicate request_size=255 [01:20:35]MH_SAM_APDU [01:20:35]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 E4 83 73 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 89 95 01 00 35 04 06 00 90 [01:20:35]Write to MH i2c: E2 02 01 9F 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 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 E4 83 73 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 89 95 01 00 35 04 06 00 90 00 00 52 [01:20:35]Write i2c OK [01:20:35]MH_I2C_Read... [01:20:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:20:36]Read from MH i2c: E2 [01:20:36]MH_I2C_Read... [01:20:36]Read from MH i2c: E2 03 00 [01:20:36]MH_I2C_Read... [01:20:36]Read from MH i2c: E2 03 00 9F 1B 00 90 00 2E [01:20:36]RAPDU: 90 00 [01:20:36]wFMCommunicate OK [01:20:36]wFMCommunicate request_size=10 [01:20:36]MH_SAM_APDU [01:20:36]CAPDU: 80 0D 02 02 05 6A 59 8D 37 54 [01:20:36]Write to MH i2c: E2 0D 00 A0 1B 80 0D 02 02 05 00 6A 59 8D 37 54 00 00 1A [01:20:36]Write i2c OK [01:20:36]MH_I2C_Read... [01:20:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:20:36]Read from MH i2c: E2 [01:20:36]MH_I2C_Read... [01:20:36]Read from MH i2c: E2 03 00 [01:20:36]MH_I2C_Read... [01:20:36]Read from MH i2c: E2 03 00 A0 1B 00 90 00 2F [01:20:36]RAPDU: 90 00 [01:20:36]wFMCommunicate OK [01:20:36]wFMCommunicate request_size=4 [01:20:36]MH_SAM_APDU [01:20:36]CAPDU: 80 0D 03 02 [01:20:36]Write to MH i2c: E2 08 00 A1 1B 80 0D 03 02 00 00 00 00 37 [01:20:36]Write i2c OK [01:20:36]MH_I2C_Read... [01:20:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:20:36]Read from MH i2c: E2 [01:20:36]MH_I2C_Read... [01:20:36]Read from MH i2c: E2 0B 00 [01:20:36]MH_I2C_Read... [01:20:36]Read from MH i2c: E2 0B 00 A1 1B 00 3E 08 23 78 92 B8 C6 FB 90 00 24 [01:20:36]RAPDU: 3E 08 23 78 92 B8 C6 FB 90 00 [01:20:36]wFMCommunicate OK [01:20:36]SAM_PROTO_SignData done [01:20:36]FM_MakeSignedData done [01:20:36]CreateOFDProtocolMessage [01:20:36]wFMCommunicate request_size=4 [01:20:36]MH_SAM_APDU [01:20:36]CAPDU: 80 11 00 00 [01:20:36]Write to MH i2c: E2 08 00 A2 1B 80 11 00 00 00 00 00 00 37 [01:20:36]Write i2c OK [01:20:36]MH_I2C_Read... [01:20:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:20:36]Read from MH i2c: E2 [01:20:36]MH_I2C_Read... [01:20:36]Read from MH i2c: E2 17 00 [01:20:36]MH_I2C_Read... [01:20:36]Read from MH i2c: E2 17 00 A2 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 8A [01:20:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [01:20:36]wFMCommunicate OK [01:20:36]CreateOFDProtocolMessage done [01:20:36]OFDSenderStorePacket 103817 [01:20:36]StoreOFDPacket docnum=103817 [01:20:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 D6 9B 07 01 41 5C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 E4 83 73 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 89 95 01 00 35 04 06 00 90 6A 59 8D 37 54 3E 08 23 78 92 B8 C6 FB [01:20:36]CheckFolder [01:20:36]dirname=/storage/ofd_packets [01:20:36]CheckFolder done [01:20:36]ProducePacketName [01:20:36]name=ofd_packets/00103817 [01:20:36]NVStorageSaveData ofd_packets/00103817 [01:20:36]File name is /storage/ofd_packets/00103817 [01:20:36]Write 301 bytes [01:20:36]NVStorageSaveData done [01:20:36]OFDSenderStorePacket done [01:20:36]KKMCreateOFDPacket done [01:20:36]NVStorageSaveData kkm_last_timestamp [01:20:36]File name is /storage/kkm_last_timestamp [01:20:36]Write 4 bytes [01:20:36]NVStorageSaveData done [01:20:36]ExternCall_PrintAddStr [01:20:36]wPrintStart [01:20:36]Write to MH i2c: 01 00 00 A3 1B BE [01:20:36]Write i2c OK [01:20:36]MH_I2C_Read... [01:20:36]Read from MH i2c: 01 [01:20:36]MH_I2C_Read... [01:20:36]Read from MH i2c: 01 07 00 [01:20:36]MH_I2C_Read... [01:20:36]Read from MH i2c: 01 07 00 A3 1B 00 00 00 00 00 FF 0F D3 [01:20:36]RasterBufferAndPrint [01:20:36]line Счет N : (1)673124 [01:20:36]line ИНН: 02508201610067 [01:20:36]line Контрольно-Кассовый Чек [01:20:36]line ПРОДАЖА [01:20:36]line ТРК (МРК, ГНК) : 42 [01:20:36]line Товар: 2710124130 [01:20:36]line Аи-92-К-5 [01:20:36]line 10.550 * 66.40 [01:20:36]line = 700.52 [01:20:36]line НДС 12% НСП 1% [01:20:36]line > о реализуемом товаре [01:20:36]line ОКРУГЛЕНИЕ: -0.52 [01:20:36]line ИТОГО: 700.00 [01:20:36]line Внесено: 700.00 [01:20:36]line СДАЧА: 0.00 [01:20:36]line НСП 1% : 6.20 [01:20:36]line НДС 12% : 74.39 [01:20:36]line Наличными: 700.00 [01:20:36]line Безнал.: 0.00 [01:20:36]line Место: АЗС № 120 "Партнер Нефть" [01:20:36]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [01:20:36]line СНО: Общий режим [01:20:36]line Чек 2 20.06.2024 01:20 [01:20:36]line Смена: 354 ФФД: 1.0 [01:20:36]line ЗНМ: 0300000164 [01:20:36]line РНМ: 0000000000092785 [01:20:36]line Версия ККМ: 001 [01:20:36]line ФМ: 0000000000875093 [01:20:36]line ФД: 103817 [01:20:36]line ФПД: 158786443360084 [01:20:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T012036&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103817&fm=158786443360084&tin=02508201610067®Number=0000000000092785&sum=70000 [01:20:36]OFD Sender: Processing packet 103817 [packets to send 17, broken 16] [01:20:36]ProducePacketName [01:20:36]name=ofd_packets/00103817 [01:20:36]OFD Sender: To server: pG, [01:20:36]CommunicateWithHost lk.salyk.kg:30040 [01:20:36]ConnectInit lk.salyk.kg [01:20:36]written 0, free lines is 4095 [01:20:36]Connected sock=9 [01:20:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 D6 9B 07 01 41 5C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 E4 83 73 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 89 95 01 00 35 04 06 00 90 6A 59 8D 37 54 3E 08 23 78 92 B8 C6 FB [01:20:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 4D 65 47 00 B8 A0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 89 95 01 00 F4 03 04 00 6B 2A 73 66 B6 04 01 00 00 5A D8 A5 33 EA 4A 71 0E [01:20:36]CommunicateWithHost err = 0 [01:20:36]CheckOFDResponse [01:20:36]1017 (14) - 77093643461234 [01:20:36]1041 (16) - 0000000000875093 [01:20:36]1040 (4) - 103817 [01:20:36]1012 (4) - 19.06.2024 18:58 [01:20:36]1206 (1) - 0 [01:20:36]OFD Sender: Remove packet 103817 [01:20:36]ProducePacketName [01:20:36]name=ofd_packets/00103817 [01:20:36]NVStorageDeleteData [01:20:36]Write to MH i2c: 01 00 00 CE 1B E9 [01:20:36]Write i2c OK [01:20:36]MH_I2C_Read... [01:20:36]Read from MH i2c: 01 [01:20:36]MH_I2C_Read... [01:20:36]Read from MH i2c: 01 07 00 [01:20:36]MH_I2C_Read... [01:20:36]Read from MH i2c: 01 07 00 CE 1B 00 00 00 00 00 CD 0C C9 [01:20:36]RasterBufferAndPrint [01:20:36]line [01:20:36]line [01:20:36]line [01:20:36]line [01:20:36]line [01:20:36]written 0, free lines is 3283 [01:20:36]MH_Cut [01:20:36]Write to MH i2c: D1 01 00 D5 1B 01 C2 [01:20:36]Write i2c OK [01:20:36]MH_I2C_Read... [01:20:36]Read from MH i2c: D1 [01:20:36]MH_I2C_Read... [01:20:36]Read from MH i2c: D1 01 00 [01:20:36]MH_I2C_Read... [01:20:36]Read from MH i2c: D1 01 00 D5 1B 00 C1 [01:20:36]Write to MH i2c: 01 00 00 D6 1B F1 [01:20:36]Write i2c OK [01:20:36]MH_I2C_Read... [01:20:37]OFD Sender: No OFD packet to send [01:20:37]*** Cut start [01:20:37]*** Partial cut [01:20:37]*** CUTSNS_PIN = 1 [01:20:37]*** CUTSNS_PIN = 0 [01:20:37]*** Brake cut motor [01:20:38]Read from MH i2c: 01 [01:20:38]MH_I2C_Read... [01:20:38]*** Stop cut motor [01:20:38]*** Cut end [01:20:38]Read from MH i2c: 01 07 00 [01:20:38]MH_I2C_Read... [01:20:38]Read from MH i2c: 01 07 00 D6 1B 00 00 00 00 00 FF 0F 06 [01:20:38]process_action close_receipt done [01:20:38]requested_data is exist [01:20:38]produce_requested_data [01:20:38]requested_item fm.sn is exist - process it [01:20:38]wFMCommunicate request_size=4 [01:20:38]MH_SAM_APDU [01:20:38]CAPDU: 80 11 00 00 [01:20:38]Write to MH i2c: E2 08 00 D7 1B 80 11 00 00 00 00 00 00 6C [01:20:38]Write i2c OK [01:20:38]MH_I2C_Read... [01:20:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:20:38]Read from MH i2c: E2 [01:20:38]MH_I2C_Read... [01:20:38]Read from MH i2c: E2 17 00 [01:20:38]MH_I2C_Read... [01:20:38]Read from MH i2c: E2 17 00 D7 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 BF [01:20:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [01:20:38]wFMCommunicate OK [01:20:38]requested_item fd.num is exist - process it [01:20:38]SAM_PROTO_GetFieldsCounters [01:20:38]wFMCommunicate request_size=4 [01:20:38]MH_SAM_APDU [01:20:38]CAPDU: 80 13 00 00 [01:20:38]Write to MH i2c: E2 08 00 D8 1B 80 13 00 00 00 00 00 00 6F [01:20:38]Write i2c OK [01:20:38]MH_I2C_Read... [01:20:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:20:38]Read from MH i2c: E2 [01:20:38]MH_I2C_Read... [01:20:38]Read from MH i2c: E2 62 00 [01:20:38]MH_I2C_Read... [01:20:38]Read from MH i2c: E2 62 00 D8 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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 89 95 01 00 0E 04 04 00 62 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 1E [01:20:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 89 95 01 00 0E 04 04 00 62 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 [01:20:38]wFMCommunicate OK [01:20:38]SAM_PROTO_GetFieldsCounters done [01:20:38]requested_item shift.num is exist - process it [01:20:38]requested_item shift.opened is exist - process it [01:20:38]req_shift_opened [01:20:38]FM_GetShiftState [01:20:38]SAM_PROTO_GetShiftState [01:20:38]wFMCommunicate request_size=4 [01:20:38]MH_SAM_APDU [01:20:38]CAPDU: 80 13 01 00 [01:20:38]Write to MH i2c: E2 08 00 D9 1B 80 13 01 00 00 00 00 00 71 [01:20:38]Write i2c OK [01:20:38]MH_I2C_Read... [01:20:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:20:38]Read from MH i2c: E2 [01:20:38]MH_I2C_Read... [01:20:38]Read from MH i2c: E2 0E 00 [01:20:38]MH_I2C_Read... [01:20:38]Read from MH i2c: E2 0E 00 D9 1B 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 C0 [01:20:38]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [01:20:38]wFMCommunicate OK [01:20:38]SAM_PROTO_GetShiftState done [01:20:38]FM_GetShiftState done [01:20:38]req_shift_opened done [01:20:38]requested_item shift.open_date is exist - process it [01:20:38]req_shift_open_date [01:20:38]req_shift_open_date done [01:20:38]produce_requested_data done [01:20:38]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103817,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [01:20:38]process_action_free close_receipt [01:20:38]json_value_free [01:20:38]json_value_free done [01:20:38]process_json_proto returns [01:20:38]Send response to host [01:20:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103817,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [01:20:38]free response buf [01:20:38]execute_script done [01:20:38]execute_script returns [01:20:38]free content buf [01:20:38]Sock 10.Close socket [01:20:38]Sock 10.Thread stoped [01:20:42]OFD Sender: No OFD packet to send [01:20:47]OFD Sender: No OFD packet to send [01:20:52]OFD Sender: No OFD packet to send [01:20:57]OFD Sender: No OFD packet to send [01:21:02]OFD Sender: No OFD packet to send [01:21:07]OFD Sender: No OFD packet to send [01:21:12]OFD Sender: No OFD packet to send [01:21:17]OFD Sender: No OFD packet to send [01:21:22]OFD Sender: No OFD packet to send [01:21:27]OFD Sender: No OFD packet to send [01:21:32]OFD Sender: No OFD packet to send [01:21:37]OFD Sender: No OFD packet to send [01:21:42]OFD Sender: No OFD packet to send [01:21:47]OFD Sender: No OFD packet to send [01:21:52]OFD Sender: No OFD packet to send [01:21:57]OFD Sender: No OFD packet to send [01:22:02]OFD Sender: No OFD packet to send [01:22:07]OFD Sender: No OFD packet to send [01:22:12]OFD Sender: No OFD packet to send [01:22:17]OFD Sender: No OFD packet to send [01:22:22]OFD Sender: No OFD packet to send [01:22:27]OFD Sender: No OFD packet to send [01:22:32]OFD Sender: No OFD packet to send [01:22:37]OFD Sender: No OFD packet to send [01:22:42]OFD Sender: No OFD packet to send [01:22:47]OFD Sender: No OFD packet to send [01:22:52]OFD Sender: No OFD packet to send [01:22:57]OFD Sender: No OFD packet to send [01:23:02]OFD Sender: No OFD packet to send [01:23:07]OFD Sender: No OFD packet to send [01:23:12]OFD Sender: No OFD packet to send [01:23:17]OFD Sender: No OFD packet to send [01:23:22]OFD Sender: No OFD packet to send [01:23:27]OFD Sender: No OFD packet to send [01:23:32]OFD Sender: No OFD packet to send [01:23:37]OFD Sender: No OFD packet to send [01:23:42]OFD Sender: No OFD packet to send [01:23:47]OFD Sender: No OFD packet to send [01:23:52]OFD Sender: No OFD packet to send [01:23:57]OFD Sender: No OFD packet to send [01:24:02]OFD Sender: No OFD packet to send [01:24:07]OFD Sender: No OFD packet to send [01:24:12]OFD Sender: No OFD packet to send [01:24:17]OFD Sender: No OFD packet to send [01:24:22]OFD Sender: No OFD packet to send [01:24:27]OFD Sender: No OFD packet to send [01:24:32]OFD Sender: No OFD packet to send [01:24:37]OFD Sender: No OFD packet to send [01:24:42]OFD Sender: No OFD packet to send [01:24:47]OFD Sender: No OFD packet to send [01:24:52]OFD Sender: No OFD packet to send [01:24:57]OFD Sender: No OFD packet to send [01:25:02]OFD Sender: No OFD packet to send [01:25:07]OFD Sender: No OFD packet to send [01:25:12]OFD Sender: No OFD packet to send [01:25:17]OFD Sender: No OFD packet to send [01:25:22]OFD Sender: No OFD packet to send [01:25:27]OFD Sender: No OFD packet to send [01:25:32]OFD Sender: No OFD packet to send [01:25:37]OFD Sender: No OFD packet to send [01:25:42]OFD Sender: No OFD packet to send [01:25:47]OFD Sender: No OFD packet to send [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:54]accept exits with 8 [01:27:54]New connection [01:27:54]New thread 3066797412 created [01:27:54]Thread 3066940772 joined [01:27:54]Waiting for new connection... [01:27:54] Sock 8.Parse request [01:27:54]Sock 8.Check first char [01:27:54]Sock 8.First char is OK [01:27:54]request: POST /json_proto HTTP/1.0 [01:27:54]Method: POST [01:27:54]URL: /json_proto [01:27:54]Method is POST - this is cgi request [01:27:54]url: /json_proto [01:27:54]query_string will be loaded in cgi processing [01:27:54]execute_cgi json_proto POST (null) [01:27:54]execute_cgi path=json_proto method=POST [01:27:54]POST find Content-Length [01:27:54]Host: 172.17.38.133:8080 [01:27:54]Content-Length: 678 [01:27:54]Content-Type: application/json [01:27:54] [01:27:54]POST finish read [01:27:54]Found Content-Length = 678 [01:27:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673125", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 11.300, "sum" : 750.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 750.00, "total" : 750.00, "payments": [ { "type": 0, "sum" : 750.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:27:54]execute_script... [01:27: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)673125", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 11.300, "sum" : 750.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 750.00, "total" : 750.00, "payments": [ { "type": 0, "sum" : 750.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:27:54]POST & json_proto [01:27:54]process_json_proto [01:27:54]json parsed OK: [01:27:54]protocol is kg_v1.0 [01:27:54]action value=close_receipt [01:27:54]process_action close_receipt [01:27:54]cmd_close_receipt [01:27:54]MH_GetDate [01:27:54]Write to MH i2c: F0 00 00 DA 1B E4 [01:27:54]Write i2c OK [01:27:54]MH_I2C_Read... [01:27:54]Read from MH i2c: F0 [01:27:54]MH_I2C_Read... [01:27:54]Read from MH i2c: F0 09 00 [01:27:54]MH_I2C_Read... [01:27:54]Read from MH i2c: F0 09 00 DA 1B 00 9C 85 73 66 BD 8F 7C 64 13 [01:27:54]GetLastDocTimeStamp 1718846436 [01:27:54]current date 1718846876 [01:27:54]FM_GetShiftState [01:27:54]SAM_PROTO_GetShiftState [01:27:54]wFMCommunicate request_size=4 [01:27:54]MH_SAM_APDU [01:27:54]CAPDU: 80 13 01 00 [01:27:54]Write to MH i2c: E2 08 00 DB 1B 80 13 01 00 00 00 00 00 73 [01:27:54]Write i2c OK [01:27:54]MH_I2C_Read... [01:27:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:27:54]Read from MH i2c: E2 [01:27:54]MH_I2C_Read... [01:27:54]Read from MH i2c: E2 0E 00 [01:27:54]MH_I2C_Read... [01:27:54]Read from MH i2c: E2 0E 00 DB 1B 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 C2 [01:27:54]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [01:27:54]wFMCommunicate OK [01:27:54]SAM_PROTO_GetShiftState done [01:27:54]FM_GetShiftState done [01:27:54]opened in 1718843124 [01:27:54]opened+sec_in_day 1718929524 [01:27:54]quantity*price = 75032 [01:27:54]sum+1 = 75033 [01:27:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.32 ИТОГО: 750.00 Внесено: 750.00 СДАЧА: 0.00 НСП 1% : 6.64 НДС 12% : 79.68 Наличными: 750.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 3 20.06.2024 01:27 Смена: 354 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103818 ФПД: 179479500551040 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T012756&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103818&fm=179479500551040&tin=02508201610067®Number=0000000000092785&sum=75000 [01:27:55]StoreToDocumentArchive [01:27:55]shift 354 fd 103818 [01:27:55]save to /storage/0354/doc_00103818 [01:27:55]save last doc name /storage/0354/doc_00103818 to /storage/kkm_last_doc_name [01:27:55]save OK [01:27:55]Clear old archive folders... [01:27:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [01:27:55]tlvbuf is B6F552E0 [01:27:55]SAM_PROTO_ClearQueue [01:27:55]wFMCommunicate request_size=4 [01:27:55]MH_SAM_APDU [01:27:55]CAPDU: 80 09 00 00 [01:27:55]Write to MH i2c: E2 08 00 E8 1B 80 09 00 00 00 00 00 00 75 [01:27:55]Write i2c OK [01:27:55]MH_I2C_Read... [01:27:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:27:55]Read from MH i2c: E2 [01:27:55]MH_I2C_Read... [01:27:55]Read from MH i2c: E2 03 00 [01:27:55]MH_I2C_Read... [01:27:55]Read from MH i2c: E2 03 00 E8 1B 00 90 00 77 [01:27:55]RAPDU: 90 00 [01:27:55]wFMCommunicate OK [01:27:55]SAM_PROTO_ClearQueue done [01:27:55]KKMCreateOFDPacket [01:27:55]OFDProtocolAddRootSTLVToBuf [01:27:55]FM_MakeSignedData [01:27:55]FM_MakeSignedData [01:27:55]SAM_PROTO_SignData [01:27:55]wFMCommunicate request_size=4 [01:27:55]MH_SAM_APDU [01:27:55]CAPDU: 80 0D 01 02 [01:27:55]Write to MH i2c: E2 08 00 E9 1B 80 0D 01 02 00 00 00 00 7D [01:27:55]Write i2c OK [01:27:55]MH_I2C_Read... [01:27:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:27:55]Read from MH i2c: E2 [01:27:55]MH_I2C_Read... [01:27:55]Read from MH i2c: E2 03 00 [01:27:55]MH_I2C_Read... [01:27:55]Read from MH i2c: E2 03 00 E9 1B 00 90 00 78 [01:27:55]RAPDU: 90 00 [01:27:55]wFMCommunicate OK [01:27:55]wFMCommunicate request_size=255 [01:27:55]MH_SAM_APDU [01:27: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 24 2C 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 18 25 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 24 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 98 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 20 1F 00 00 00 00 07 04 06 00 F8 24 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 9C 85 73 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 8A 95 01 00 35 04 06 00 A3 [01:27:55]Write to MH i2c: E2 02 01 EA 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 24 2C 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 18 25 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 24 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 98 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 20 1F 00 00 00 00 07 04 06 00 F8 24 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 9C 85 73 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 8A 95 01 00 35 04 06 00 A3 00 00 5A [01:27:55]Write i2c OK [01:27:55]MH_I2C_Read... [01:27:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:27:55]Read from MH i2c: E2 [01:27:55]MH_I2C_Read... [01:27:55]Read from MH i2c: E2 03 00 [01:27:55]MH_I2C_Read... [01:27:55]Read from MH i2c: E2 03 00 EA 1B 00 90 00 79 [01:27:55]RAPDU: 90 00 [01:27:55]wFMCommunicate OK [01:27:55]wFMCommunicate request_size=10 [01:27:55]MH_SAM_APDU [01:27:55]CAPDU: 80 0D 02 02 05 3C 53 DF F3 80 [01:27:55]Write to MH i2c: E2 0D 00 EB 1B 80 0D 02 02 05 00 3C 53 DF F3 80 00 00 6B [01:27:55]Write i2c OK [01:27:55]MH_I2C_Read... [01:27:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:27:56]Read from MH i2c: E2 [01:27:56]MH_I2C_Read... [01:27:56]Read from MH i2c: E2 03 00 [01:27:56]MH_I2C_Read... [01:27:56]Read from MH i2c: E2 03 00 EB 1B 00 90 00 7A [01:27:56]RAPDU: 90 00 [01:27:56]wFMCommunicate OK [01:27:56]wFMCommunicate request_size=4 [01:27:56]MH_SAM_APDU [01:27:56]CAPDU: 80 0D 03 02 [01:27:56]Write to MH i2c: E2 08 00 EC 1B 80 0D 03 02 00 00 00 00 82 [01:27:56]Write i2c OK [01:27:56]MH_I2C_Read... [01:27:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:27:56]Read from MH i2c: E2 [01:27:56]MH_I2C_Read... [01:27:56]Read from MH i2c: E2 0B 00 [01:27:56]MH_I2C_Read... [01:27:56]Read from MH i2c: E2 0B 00 EC 1B 00 D0 87 79 55 00 77 F3 AC 90 00 BE [01:27:56]RAPDU: D0 87 79 55 00 77 F3 AC 90 00 [01:27:56]wFMCommunicate OK [01:27:56]SAM_PROTO_SignData done [01:27:56]FM_MakeSignedData done [01:27:56]CreateOFDProtocolMessage [01:27:56]wFMCommunicate request_size=4 [01:27:56]MH_SAM_APDU [01:27:56]CAPDU: 80 11 00 00 [01:27:56]Write to MH i2c: E2 08 00 ED 1B 80 11 00 00 00 00 00 00 82 [01:27:56]Write i2c OK [01:27:56]MH_I2C_Read... [01:27:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:27:56]Read from MH i2c: E2 [01:27:56]MH_I2C_Read... [01:27:56]Read from MH i2c: E2 17 00 [01:27:56]MH_I2C_Read... [01:27:56]Read from MH i2c: E2 17 00 ED 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 D5 [01:27:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [01:27:56]wFMCommunicate OK [01:27:56]CreateOFDProtocolMessage done [01:27:56]OFDSenderStorePacket 103818 [01:27:56]StoreOFDPacket docnum=103818 [01:27:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 CB 37 07 01 19 9A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 24 2C 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 18 25 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 24 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 98 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 20 1F 00 00 00 00 07 04 06 00 F8 24 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 9C 85 73 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 8A 95 01 00 35 04 06 00 A3 3C 53 DF F3 80 D0 87 79 55 00 77 F3 AC [01:27:56]CheckFolder [01:27:56]dirname=/storage/ofd_packets [01:27:56]CheckFolder done [01:27:56]ProducePacketName [01:27:56]name=ofd_packets/00103818 [01:27:56]NVStorageSaveData ofd_packets/00103818 [01:27:56]File name is /storage/ofd_packets/00103818 [01:27:56]Write 301 bytes [01:27:56]NVStorageSaveData done [01:27:56]OFDSenderStorePacket done [01:27:56]KKMCreateOFDPacket done [01:27:56]NVStorageSaveData kkm_last_timestamp [01:27:56]File name is /storage/kkm_last_timestamp [01:27:56]Write 4 bytes [01:27:56]NVStorageSaveData done [01:27:56]ExternCall_PrintAddStr [01:27:56]wPrintStart [01:27:56]Write to MH i2c: 01 00 00 EE 1B 09 [01:27:56]Write i2c OK [01:27:56]MH_I2C_Read... [01:27:56]Read from MH i2c: 01 [01:27:56]MH_I2C_Read... [01:27:56]Read from MH i2c: 01 07 00 [01:27:56]MH_I2C_Read... [01:27:56]Read from MH i2c: 01 07 00 EE 1B 00 00 00 00 00 FF 0F 1E [01:27:56]RasterBufferAndPrint [01:27:56]line Счет N : (1)673125 [01:27:56]line ИНН: 02508201610067 [01:27:56]line Контрольно-Кассовый Чек [01:27:56]line ПРОДАЖА [01:27:56]line ТРК (МРК, ГНК) : 32 [01:27:56]line Товар: 2710124130 [01:27:56]line Аи-92-К-5 [01:27:56]line 11.300 * 66.40 [01:27:56]line = 750.32 [01:27:56]line НДС 12% НСП 1% [01:27:56]line > о реализуемом товаре [01:27:56]line ОКРУГЛЕНИЕ: -0.32 [01:27:56]line ИТОГО: 750.00 [01:27:56]line Внесено: 750.00 [01:27:56]line СДАЧА: 0.00 [01:27:56]line НСП 1% : 6.64 [01:27:56]line НДС 12% : 79.68 [01:27:56]line Наличными: 750.00 [01:27:56]line Безнал.: 0.00 [01:27:56]line Место: АЗС № 120 "Партнер Нефть" [01:27:56]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [01:27:56]line СНО: Общий режим [01:27:56]line Чек 3 20.06.2024 01:27 [01:27:56]line Смена: 354 ФФД: 1.0 [01:27:56]line ЗНМ: 0300000164 [01:27:56]line РНМ: 0000000000092785 [01:27:56]line Версия ККМ: 001 [01:27:56]line ФМ: 0000000000875093 [01:27:56]line ФД: 103818 [01:27:56]line ФПД: 179479500551040 [01:27:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T012756&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103818&fm=179479500551040&tin=02508201610067®Number=0000000000092785&sum=75000 [01:27:56]OFD Sender: Processing packet 103818 [packets to send 17, broken 16] [01:27:56]ProducePacketName [01:27:56]name=ofd_packets/00103818 [01:27:56]OFD Sender: To server: pG, [01:27:56]CommunicateWithHost lk.salyk.kg:30040 [01:27:56]ConnectInit lk.salyk.kg [01:27:56]written 0, free lines is 4095 [01:27:56]Connected sock=10 [01:27: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 39 33 0F 01 00 00 CB 37 07 01 19 9A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 24 2C 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 18 25 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 24 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 98 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 20 1F 00 00 00 00 07 04 06 00 F8 24 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 9C 85 73 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 8A 95 01 00 35 04 06 00 A3 3C 53 DF F3 80 D0 87 79 55 00 77 F3 AC [01:27: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 39 33 4F 00 00 00 13 1A 47 00 58 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 39 33 10 04 04 00 8A 95 01 00 F4 03 04 00 23 2C 73 66 B6 04 01 00 00 29 58 BF 7D 9F 42 30 16 [01:27:56]CommunicateWithHost err = 0 [01:27:56]CheckOFDResponse [01:27:56]1017 (14) - 77093643461234 [01:27:56]1041 (16) - 0000000000875093 [01:27:56]1040 (4) - 103818 [01:27:56]1012 (4) - 19.06.2024 19:06 [01:27:56]1206 (1) - 0 [01:27:56]OFD Sender: Remove packet 103818 [01:27:56]ProducePacketName [01:27:56]name=ofd_packets/00103818 [01:27:56]NVStorageDeleteData [01:27:56]Write to MH i2c: 01 00 00 19 1C 35 [01:27:56]Write i2c OK [01:27:56]MH_I2C_Read... [01:27:56]Read from MH i2c: 01 [01:27:56]MH_I2C_Read... [01:27:56]Read from MH i2c: 01 07 00 [01:27:56]MH_I2C_Read... [01:27:56]Read from MH i2c: 01 07 00 19 1C 00 00 00 00 00 C6 0C 0E [01:27:56]RasterBufferAndPrint [01:27:56]line [01:27:56]line [01:27:56]line [01:27:56]line [01:27:56]line [01:27:56]written 0, free lines is 3276 [01:27:56]MH_Cut [01:27:56]Write to MH i2c: D1 01 00 20 1C 01 0E [01:27:56]Write i2c OK [01:27:56]MH_I2C_Read... [01:27:56]Read from MH i2c: D1 [01:27:56]MH_I2C_Read... [01:27:56]Read from MH i2c: D1 01 00 [01:27:56]MH_I2C_Read... [01:27:56]Read from MH i2c: D1 01 00 20 1C 00 0D [01:27:56]Write to MH i2c: 01 00 00 21 1C 3D [01:27:56]Write i2c OK [01:27:56]MH_I2C_Read... [01:27:57]OFD Sender: No OFD packet to send [01:27:57]*** Cut start [01:27:57]*** Partial cut [01:27:57]*** CUTSNS_PIN = 1 [01:27:57]*** CUTSNS_PIN = 0 [01:27:57]*** Brake cut motor [01:27:58]Read from MH i2c: 01 [01:27:58]MH_I2C_Read... [01:27:58]*** Stop cut motor [01:27:58]*** Cut end [01:27:58]Read from MH i2c: 01 07 00 [01:27:58]MH_I2C_Read... [01:27:58]Read from MH i2c: 01 07 00 21 1C 00 00 00 00 00 FF 0F 52 [01:27:58]process_action close_receipt done [01:27:58]requested_data is exist [01:27:58]produce_requested_data [01:27:58]requested_item fm.sn is exist - process it [01:27:58]wFMCommunicate request_size=4 [01:27:58]MH_SAM_APDU [01:27:58]CAPDU: 80 11 00 00 [01:27:58]Write to MH i2c: E2 08 00 22 1C 80 11 00 00 00 00 00 00 B8 [01:27:58]Write i2c OK [01:27:58]MH_I2C_Read... [01:27:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:27:58]Read from MH i2c: E2 [01:27:58]MH_I2C_Read... [01:27:58]Read from MH i2c: E2 17 00 [01:27:58]MH_I2C_Read... [01:27:58]Read from MH i2c: E2 17 00 22 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 0B [01:27:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [01:27:58]wFMCommunicate OK [01:27:58]requested_item fd.num is exist - process it [01:27:58]SAM_PROTO_GetFieldsCounters [01:27:58]wFMCommunicate request_size=4 [01:27:58]MH_SAM_APDU [01:27:58]CAPDU: 80 13 00 00 [01:27:58]Write to MH i2c: E2 08 00 23 1C 80 13 00 00 00 00 00 00 BB [01:27:58]Write i2c OK [01:27:58]MH_I2C_Read... [01:27:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:27:58]Read from MH i2c: E2 [01:27:58]MH_I2C_Read... [01:27:58]Read from MH i2c: E2 62 00 [01:27:58]MH_I2C_Read... [01:27:58]Read from MH i2c: E2 62 00 23 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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 8A 95 01 00 0E 04 04 00 62 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 6E [01: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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 8A 95 01 00 0E 04 04 00 62 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 [01:27:58]wFMCommunicate OK [01:27:58]SAM_PROTO_GetFieldsCounters done [01:27:58]requested_item shift.num is exist - process it [01:27:58]requested_item shift.opened is exist - process it [01:27:58]req_shift_opened [01:27:58]FM_GetShiftState [01:27:58]SAM_PROTO_GetShiftState [01:27:58]wFMCommunicate request_size=4 [01:27:58]MH_SAM_APDU [01:27:58]CAPDU: 80 13 01 00 [01:27:58]Write to MH i2c: E2 08 00 24 1C 80 13 01 00 00 00 00 00 BD [01:27:58]Write i2c OK [01:27:58]MH_I2C_Read... [01:27:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:27:58]Read from MH i2c: E2 [01:27:58]MH_I2C_Read... [01:27:58]Read from MH i2c: E2 0E 00 [01:27:58]MH_I2C_Read... [01:27:58]Read from MH i2c: E2 0E 00 24 1C 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 0C [01:27:58]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [01:27:58]wFMCommunicate OK [01:27:58]SAM_PROTO_GetShiftState done [01:27:58]FM_GetShiftState done [01:27:58]req_shift_opened done [01:27:58]requested_item shift.open_date is exist - process it [01:27:58]req_shift_open_date [01:27:58]req_shift_open_date done [01:27:58]produce_requested_data done [01:27:58]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103818,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [01:27:58]process_action_free close_receipt [01:27:58]json_value_free [01:27:58]json_value_free done [01:27:58]process_json_proto returns [01:27:58]Send response to host [01:27:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103818,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [01:27:58]free response buf [01:27:58]execute_script done [01:27:58]execute_script returns [01:27:58]free content buf [01:27:58]Sock 8.Close socket [01:27:58]Sock 8.Thread stoped [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:27]OFD Sender: No OFD packet to send [01:30:32]OFD Sender: No OFD packet to send [01:30:37]OFD Sender: No OFD packet to send [01:30:37]accept exits with 9 [01:30:37]New connection [01:30:37]New thread 3066940772 created [01:30:37]Thread 3066797412 joined [01:30:37]Waiting for new connection... [01:30:37] Sock 9.Parse request [01:30:37]Sock 9.Check first char [01:30:37]Sock 9.First char is OK [01:30:37]request: POST /json_proto HTTP/1.0 [01:30:37]Method: POST [01:30:37]URL: /json_proto [01:30:37]Method is POST - this is cgi request [01:30:37]url: /json_proto [01:30:37]query_string will be loaded in cgi processing [01:30:37]execute_cgi json_proto POST (null) [01:30:37]execute_cgi path=json_proto method=POST [01:30:37]POST find Content-Length [01:30:37]Host: 172.17.38.133:8080 [01:30:37]Content-Length: 677 [01:30:37]Content-Type: application/json [01:30:37] [01:30:37]POST finish read [01:30:37]Found Content-Length = 677 [01:30:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673126", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:30:37]execute_script... [01:30: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)673126", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:30:37]POST & json_proto [01:30:37]process_json_proto [01:30:37]json parsed OK: [01:30:37]protocol is kg_v1.0 [01:30:37]action value=close_receipt [01:30:37]process_action close_receipt [01:30:37]cmd_close_receipt [01:30:37]MH_GetDate [01:30:37]Write to MH i2c: F0 00 00 25 1C 30 [01:30:37]Write i2c OK [01:30:37]MH_I2C_Read... [01:30:37]Read from MH i2c: F0 [01:30:37]MH_I2C_Read... [01:30:37]Read from MH i2c: F0 09 00 [01:30:37]MH_I2C_Read... [01:30:37]Read from MH i2c: F0 09 00 25 1C 00 40 86 73 66 BD 8F 7C 64 04 [01:30:37]GetLastDocTimeStamp 1718846876 [01:30:37]current date 1718847040 [01:30:37]FM_GetShiftState [01:30:37]SAM_PROTO_GetShiftState [01:30:37]wFMCommunicate request_size=4 [01:30:37]MH_SAM_APDU [01:30:37]CAPDU: 80 13 01 00 [01:30:37]Write to MH i2c: E2 08 00 26 1C 80 13 01 00 00 00 00 00 BF [01:30:37]Write i2c OK [01:30:37]MH_I2C_Read... [01:30:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:30:37]Read from MH i2c: E2 [01:30:37]MH_I2C_Read... [01:30:37]Read from MH i2c: E2 0E 00 [01:30:37]MH_I2C_Read... [01:30:37]Read from MH i2c: E2 0E 00 26 1C 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 0E [01:30:37]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [01:30:37]wFMCommunicate OK [01:30:37]SAM_PROTO_GetShiftState done [01:30:37]FM_GetShiftState done [01:30:37]opened in 1718843124 [01:30:37]opened+sec_in_day 1718929524 [01:30:37]quantity*price = 50065 [01:30:37]sum+1 = 50067 [01:30:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.17 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 4 20.06.2024 01:30 Смена: 354 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103819 ФПД: 155707292706863 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T013040&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103819&fm=155707292706863&tin=02508201610067®Number=0000000000092785&sum=50000 [01:30:38]StoreToDocumentArchive [01:30:38]shift 354 fd 103819 [01:30:38]save to /storage/0354/doc_00103819 [01:30:38]save last doc name /storage/0354/doc_00103819 to /storage/kkm_last_doc_name [01:30:38]save OK [01:30:38]Clear old archive folders... [01:30:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [01:30:38]tlvbuf is 016D1860 [01:30:38]SAM_PROTO_ClearQueue [01:30:38]wFMCommunicate request_size=4 [01:30:38]MH_SAM_APDU [01:30:38]CAPDU: 80 09 00 00 [01:30:38]Write to MH i2c: E2 08 00 33 1C 80 09 00 00 00 00 00 00 C1 [01:30:38]Write i2c OK [01:30:38]MH_I2C_Read... [01:30:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:30:39]Read from MH i2c: E2 [01:30:39]MH_I2C_Read... [01:30:39]Read from MH i2c: E2 03 00 [01:30:39]MH_I2C_Read... [01:30:39]Read from MH i2c: E2 03 00 33 1C 00 90 00 C3 [01:30:39]RAPDU: 90 00 [01:30:39]wFMCommunicate OK [01:30:39]SAM_PROTO_ClearQueue done [01:30:39]KKMCreateOFDPacket [01:30:39]OFDProtocolAddRootSTLVToBuf [01:30:39]FM_MakeSignedData [01:30:39]FM_MakeSignedData [01:30:39]SAM_PROTO_SignData [01:30:39]wFMCommunicate request_size=4 [01:30:39]MH_SAM_APDU [01:30:39]CAPDU: 80 0D 01 02 [01:30:39]Write to MH i2c: E2 08 00 34 1C 80 0D 01 02 00 00 00 00 C9 [01:30:39]Write i2c OK [01:30:39]MH_I2C_Read... [01:30:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:30:39]Read from MH i2c: E2 [01:30:39]MH_I2C_Read... [01:30:39]Read from MH i2c: E2 03 00 [01:30:39]MH_I2C_Read... [01:30:39]Read from MH i2c: E2 03 00 34 1C 00 90 00 C4 [01:30:39]RAPDU: 90 00 [01:30:39]wFMCommunicate OK [01:30:39]wFMCommunicate request_size=255 [01:30:39]MH_SAM_APDU [01:30:39]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 40 86 73 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 8B 95 01 00 35 04 06 00 8D [01:30:39]Write to MH i2c: E2 02 01 35 1C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 40 86 73 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 8B 95 01 00 35 04 06 00 8D 00 00 37 [01:30:39]Write i2c OK [01:30:39]MH_I2C_Read... [01:30:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:30:39]Read from MH i2c: E2 [01:30:39]MH_I2C_Read... [01:30:39]Read from MH i2c: E2 03 00 [01:30:39]MH_I2C_Read... [01:30:39]Read from MH i2c: E2 03 00 35 1C 00 90 00 C5 [01:30:39]RAPDU: 90 00 [01:30:39]wFMCommunicate OK [01:30:39]wFMCommunicate request_size=10 [01:30:39]MH_SAM_APDU [01:30:39]CAPDU: 80 0D 02 02 05 9D 6D DE E8 2F [01:30:39]Write to MH i2c: E2 0D 00 36 1C 80 0D 02 02 05 00 9D 6D DE E8 2F 00 00 D5 [01:30:39]Write i2c OK [01:30:39]MH_I2C_Read... [01:30:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:30:39]Read from MH i2c: E2 [01:30:39]MH_I2C_Read... [01:30:39]Read from MH i2c: E2 03 00 [01:30:39]MH_I2C_Read... [01:30:39]Read from MH i2c: E2 03 00 36 1C 00 90 00 C6 [01:30:39]RAPDU: 90 00 [01:30:39]wFMCommunicate OK [01:30:39]wFMCommunicate request_size=4 [01:30:39]MH_SAM_APDU [01:30:39]CAPDU: 80 0D 03 02 [01:30:39]Write to MH i2c: E2 08 00 37 1C 80 0D 03 02 00 00 00 00 CE [01:30:39]Write i2c OK [01:30:39]MH_I2C_Read... [01:30:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:30:39]Read from MH i2c: E2 [01:30:39]MH_I2C_Read... [01:30:39]Read from MH i2c: E2 0B 00 [01:30:39]MH_I2C_Read... [01:30:39]Read from MH i2c: E2 0B 00 37 1C 00 38 8A 7F 22 ED D6 C1 35 90 00 EB [01:30:39]RAPDU: 38 8A 7F 22 ED D6 C1 35 90 00 [01:30:39]wFMCommunicate OK [01:30:39]SAM_PROTO_SignData done [01:30:39]FM_MakeSignedData done [01:30:39]CreateOFDProtocolMessage [01:30:39]wFMCommunicate request_size=4 [01:30:39]MH_SAM_APDU [01:30:39]CAPDU: 80 11 00 00 [01:30:39]Write to MH i2c: E2 08 00 38 1C 80 11 00 00 00 00 00 00 CE [01:30:39]Write i2c OK [01:30:39]MH_I2C_Read... [01:30:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:30:39]Read from MH i2c: E2 [01:30:39]MH_I2C_Read... [01:30:39]Read from MH i2c: E2 17 00 [01:30:39]MH_I2C_Read... [01:30:39]Read from MH i2c: E2 17 00 38 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 21 [01:30:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [01:30:39]wFMCommunicate OK [01:30:39]CreateOFDProtocolMessage done [01:30:39]OFDSenderStorePacket 103819 [01:30:39]StoreOFDPacket docnum=103819 [01:30:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 ED F5 07 01 39 D5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 40 86 73 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 8B 95 01 00 35 04 06 00 8D 9D 6D DE E8 2F 38 8A 7F 22 ED D6 C1 35 [01:30:39]CheckFolder [01:30:39]dirname=/storage/ofd_packets [01:30:39]CheckFolder done [01:30:39]ProducePacketName [01:30:39]name=ofd_packets/00103819 [01:30:39]NVStorageSaveData ofd_packets/00103819 [01:30:39]File name is /storage/ofd_packets/00103819 [01:30:39]Write 301 bytes [01:30:39]NVStorageSaveData done [01:30:39]OFDSenderStorePacket done [01:30:39]KKMCreateOFDPacket done [01:30:39]NVStorageSaveData kkm_last_timestamp [01:30:39]File name is /storage/kkm_last_timestamp [01:30:39]Write 4 bytes [01:30:39]NVStorageSaveData done [01:30:39]ExternCall_PrintAddStr [01:30:39]wPrintStart [01:30:39]Write to MH i2c: 01 00 00 39 1C 55 [01:30:39]Write i2c OK [01:30:39]MH_I2C_Read... [01:30:39]Read from MH i2c: 01 [01:30:39]MH_I2C_Read... [01:30:39]Read from MH i2c: 01 07 00 [01:30:39]MH_I2C_Read... [01:30:39]Read from MH i2c: 01 07 00 39 1C 00 00 00 00 00 FF 0F 6A [01:30:39]RasterBufferAndPrint [01:30:39]line Счет N : (1)673126 [01:30:39]line ИНН: 02508201610067 [01:30:39]line Контрольно-Кассовый Чек [01:30:39]line ПРОДАЖА [01:30:39]line ТРК (МРК, ГНК) : 32 [01:30:39]line Товар: 2710124130 [01:30:39]line Аи-92-К-5 [01:30:39]line 7.540 * 66.40 [01:30:39]line = 500.66 [01:30:39]line НДС 12% НСП 1% [01:30:39]line > о реализуемом товаре [01:30:39]line ОКРУГЛЕНИЕ: -0.66 [01:30:39]line ИТОГО: 500.00 [01:30:39]line Внесено: 500.00 [01:30:39]line СДАЧА: 0.00 [01:30:39]line НСП 1% : 4.43 [01:30:39]line НДС 12% : 53.17 [01:30:39]line Наличными: 500.00 [01:30:39]line Безнал.: 0.00 [01:30:39]line Место: АЗС № 120 "Партнер Нефть" [01:30:39]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [01:30:39]line СНО: Общий режим [01:30:39]line Чек 4 20.06.2024 01:30 [01:30:39]line Смена: 354 ФФД: 1.0 [01:30:39]line ЗНМ: 0300000164 [01:30:39]line РНМ: 0000000000092785 [01:30:39]line Версия ККМ: 001 [01:30:39]line ФМ: 0000000000875093 [01:30:39]line ФД: 103819 [01:30:39]line ФПД: 155707292706863 [01:30:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T013040&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103819&fm=155707292706863&tin=02508201610067®Number=0000000000092785&sum=50000 [01:30:39]written 0, free lines is 4095 [01:30:39]OFD Sender: Processing packet 103819 [packets to send 17, broken 16] [01:30:39]ProducePacketName [01:30:39]name=ofd_packets/00103819 [01:30:39]OFD Sender: To server: pG, [01:30:39]CommunicateWithHost lk.salyk.kg:30040 [01:30:39]ConnectInit lk.salyk.kg [01:30:39]Connected sock=10 [01:30: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 39 33 0F 01 00 00 ED F5 07 01 39 D5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 40 86 73 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 8B 95 01 00 35 04 06 00 8D 9D 6D DE E8 2F 38 8A 7F 22 ED D6 C1 35 [01:30:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 EA 67 47 00 97 8C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 8B 95 01 00 F4 03 04 00 C7 2C 73 66 B6 04 01 00 00 89 B0 37 55 2A 5C B1 2B [01:30:39]CommunicateWithHost err = 0 [01:30:39]CheckOFDResponse [01:30:39]1017 (14) - 77093643461234 [01:30:39]1041 (16) - 0000000000875093 [01:30:39]1040 (4) - 103819 [01:30:39]1012 (4) - 19.06.2024 19:08 [01:30:39]1206 (1) - 0 [01:30:39]OFD Sender: Remove packet 103819 [01:30:39]ProducePacketName [01:30:39]name=ofd_packets/00103819 [01:30:39]NVStorageDeleteData [01:30:39]Write to MH i2c: 01 00 00 64 1C 80 [01:30:39]Write i2c OK [01:30:39]MH_I2C_Read... [01:30:39]Read from MH i2c: 01 [01:30:39]MH_I2C_Read... [01:30:39]Read from MH i2c: 01 07 00 [01:30:39]MH_I2C_Read... [01:30:39]Read from MH i2c: 01 07 00 64 1C 00 00 00 00 00 CD 0C 60 [01:30:39]RasterBufferAndPrint [01:30:39]line [01:30:39]line [01:30:39]line [01:30:39]line [01:30:39]line [01:30:39]written 0, free lines is 3284 [01:30:39]MH_Cut [01:30:39]Write to MH i2c: D1 01 00 6B 1C 01 59 [01:30:39]Write i2c OK [01:30:39]MH_I2C_Read... [01:30:39]Read from MH i2c: D1 [01:30:39]MH_I2C_Read... [01:30:39]Read from MH i2c: D1 01 00 [01:30:39]MH_I2C_Read... [01:30:39]Read from MH i2c: D1 01 00 6B 1C 00 58 [01:30:39]Write to MH i2c: 01 00 00 6C 1C 88 [01:30:39]Write i2c OK [01:30:39]MH_I2C_Read... [01:30:40]OFD Sender: No OFD packet to send [01:30:40]*** Cut start [01:30:40]*** Partial cut [01:30:40]*** CUTSNS_PIN = 1 [01:30:40]*** CUTSNS_PIN = 0 [01:30:40]*** Brake cut motor [01:30:41]Read from MH i2c: 01 [01:30:41]MH_I2C_Read... [01:30:41]*** Stop cut motor [01:30:41]*** Cut end [01:30:41]Read from MH i2c: 01 07 00 [01:30:41]MH_I2C_Read... [01:30:41]Read from MH i2c: 01 07 00 6C 1C 00 00 00 00 00 FF 0F 9D [01:30:41]process_action close_receipt done [01:30:41]requested_data is exist [01:30:41]produce_requested_data [01:30:41]requested_item fm.sn is exist - process it [01:30:41]wFMCommunicate request_size=4 [01:30:41]MH_SAM_APDU [01:30:41]CAPDU: 80 11 00 00 [01:30:41]Write to MH i2c: E2 08 00 6D 1C 80 11 00 00 00 00 00 00 03 [01:30:41]Write i2c OK [01:30:41]MH_I2C_Read... [01:30:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:30:41]Read from MH i2c: E2 [01:30:41]MH_I2C_Read... [01:30:41]Read from MH i2c: E2 17 00 [01:30:41]MH_I2C_Read... [01:30:41]Read from MH i2c: E2 17 00 6D 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 56 [01:30:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [01:30:41]wFMCommunicate OK [01:30:41]requested_item fd.num is exist - process it [01:30:41]SAM_PROTO_GetFieldsCounters [01:30:41]wFMCommunicate request_size=4 [01:30:41]MH_SAM_APDU [01:30:41]CAPDU: 80 13 00 00 [01:30:41]Write to MH i2c: E2 08 00 6E 1C 80 13 00 00 00 00 00 00 06 [01:30:41]Write i2c OK [01:30:41]MH_I2C_Read... [01:30:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:30:41]Read from MH i2c: E2 [01:30:41]MH_I2C_Read... [01:30:41]Read from MH i2c: E2 62 00 [01:30:41]MH_I2C_Read... [01:30:41]Read from MH i2c: E2 62 00 6E 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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 8B 95 01 00 0E 04 04 00 62 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 BD [01:30: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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 8B 95 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 04 00 00 00 5E 04 04 00 04 00 00 00 57 04 04 00 05 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:30:41]wFMCommunicate OK [01:30:41]SAM_PROTO_GetFieldsCounters done [01:30:41]requested_item shift.num is exist - process it [01:30:41]requested_item shift.opened is exist - process it [01:30:41]req_shift_opened [01:30:41]FM_GetShiftState [01:30:41]SAM_PROTO_GetShiftState [01:30:41]wFMCommunicate request_size=4 [01:30:41]MH_SAM_APDU [01:30:41]CAPDU: 80 13 01 00 [01:30:41]Write to MH i2c: E2 08 00 6F 1C 80 13 01 00 00 00 00 00 08 [01:30:41]Write i2c OK [01:30:41]MH_I2C_Read... [01:30:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:30:41]Read from MH i2c: E2 [01:30:41]MH_I2C_Read... [01:30:41]Read from MH i2c: E2 0E 00 [01:30:41]MH_I2C_Read... [01:30:41]Read from MH i2c: E2 0E 00 6F 1C 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 57 [01:30:41]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [01:30:41]wFMCommunicate OK [01:30:41]SAM_PROTO_GetShiftState done [01:30:41]FM_GetShiftState done [01:30:41]req_shift_opened done [01:30:41]requested_item shift.open_date is exist - process it [01:30:41]req_shift_open_date [01:30:41]req_shift_open_date done [01:30:41]produce_requested_data done [01:30:41]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103819,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [01:30:41]process_action_free close_receipt [01:30:41]json_value_free [01:30:41]json_value_free done [01:30:41]process_json_proto returns [01:30:41]Send response to host [01:30:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103819,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [01:30:41]free response buf [01:30:41]execute_script done [01:30:41]execute_script returns [01:30:41]free content buf [01:30:41]Sock 9.Close socket [01:30:41]Sock 9.Thread stoped [01:30:45]OFD Sender: No OFD packet to send [01:30:50]OFD Sender: No OFD packet to send [01:30:55]OFD Sender: No OFD packet to send [01:31:00]OFD Sender: No OFD packet to send [01:31:05]OFD Sender: No OFD packet to send [01:31:10]OFD Sender: No OFD packet to send [01:31:15]OFD Sender: No OFD packet to send [01:31:20]OFD Sender: No OFD packet to send [01:31:25]OFD Sender: No OFD packet to send [01:31:30]OFD Sender: No OFD packet to send [01:31:35]OFD Sender: No OFD packet to send [01:31:40]OFD Sender: No OFD packet to send [01:31:45]OFD Sender: No OFD packet to send [01:31:50]OFD Sender: No OFD packet to send [01:31:55]OFD Sender: No OFD packet to send [01:32:00]OFD Sender: No OFD packet to send [01:32:05]OFD Sender: No OFD packet to send [01:32:10]OFD Sender: No OFD packet to send [01:32:15]OFD Sender: No OFD packet to send [01:32:20]OFD Sender: No OFD packet to send [01:32:25]OFD Sender: No OFD packet to send [01:32:30]OFD Sender: No OFD packet to send [01:32:35]OFD Sender: No OFD packet to send [01:32:40]OFD Sender: No OFD packet to send [01:32:45]OFD Sender: No OFD packet to send [01:32:50]OFD Sender: No OFD packet to send [01:32:55]OFD Sender: No OFD packet to send [01:33:00]OFD Sender: No OFD packet to send [01:33:05]OFD Sender: No OFD packet to send [01:33:10]OFD Sender: No OFD packet to send [01:33:15]OFD Sender: No OFD packet to send [01:33:20]OFD Sender: No OFD packet to send [01:33:25]OFD Sender: No OFD packet to send [01:33:30]OFD Sender: No OFD packet to send [01:33:35]OFD Sender: No OFD packet to send [01:33:40]OFD Sender: No OFD packet to send [01:33:45]OFD Sender: No OFD packet to send [01:33:50]OFD Sender: No OFD packet to send [01:33:55]OFD Sender: No OFD packet to send [01:34:00]OFD Sender: No OFD packet to send [01:34:05]OFD Sender: No OFD packet to send [01:34:10]OFD Sender: No OFD packet to send [01:34:15]OFD Sender: No OFD packet to send [01:34:20]OFD Sender: No OFD packet to send [01:34:25]OFD Sender: No OFD packet to send [01:34:30]OFD Sender: No OFD packet to send [01:34:35]OFD Sender: No OFD packet to send [01:34:40]OFD Sender: No OFD packet to send [01:34:45]OFD Sender: No OFD packet to send [01:34:50]OFD Sender: No OFD packet to send [01:34:55]OFD Sender: No OFD packet to send [01:35:00]OFD Sender: No OFD packet to send [01:35:05]OFD Sender: No OFD packet to send [01:35:10]OFD Sender: No OFD packet to send [01:35:15]OFD Sender: No OFD packet to send [01:35:20]OFD Sender: No OFD packet to send [01:35:25]OFD Sender: No OFD packet to send [01:35:30]OFD Sender: No OFD packet to send [01:35:35]OFD Sender: No OFD packet to send [01:35:40]OFD Sender: No OFD packet to send [01:35:45]OFD Sender: No OFD packet to send [01:35:50]OFD Sender: No OFD packet to send [01:35:55]OFD Sender: No OFD packet to send [01:36:00]OFD Sender: No OFD packet to send [01:36:05]OFD Sender: No OFD packet to send [01:36:10]OFD Sender: No OFD packet to send [01:36:15]OFD Sender: No OFD packet to send [01:36:20]OFD Sender: No OFD packet to send [01:36:25]OFD Sender: No OFD packet to send [01:36:30]OFD Sender: No OFD packet to send [01:36:35]OFD Sender: No OFD packet to send [01:36:40]OFD Sender: No OFD packet to send [01:36:45]OFD Sender: No OFD packet to send [01:36:50]OFD Sender: No OFD packet to send [01:36:55]OFD Sender: No OFD packet to send [01:37:00]OFD Sender: No OFD packet to send [01:37:05]OFD Sender: No OFD packet to send [01:37:10]OFD Sender: No OFD packet to send [01:37:15]OFD Sender: No OFD packet to send [01:37:20]OFD Sender: No OFD packet to send [01:37:25]OFD Sender: No OFD packet to send [01:37:30]OFD Sender: No OFD packet to send [01:37:35]OFD Sender: No OFD packet to send [01:37:40]OFD Sender: No OFD packet to send [01:37:45]OFD Sender: No OFD packet to send [01:37:50]OFD Sender: No OFD packet to send [01:37:55]OFD Sender: No OFD packet to send [01:38:00]OFD Sender: No OFD packet to send [01:38:05]OFD Sender: No OFD packet to send [01:38:10]OFD Sender: No OFD packet to send [01:38:15]OFD Sender: No OFD packet to send [01:38:20]OFD Sender: No OFD packet to send [01:38:25]OFD Sender: No OFD packet to send [01:38:30]OFD Sender: No OFD packet to send [01:38:35]OFD Sender: No OFD packet to send [01:38:40]OFD Sender: No OFD packet to send [01:38:45]OFD Sender: No OFD packet to send [01:38:50]OFD Sender: No OFD packet to send [01:38:55]OFD Sender: No OFD packet to send [01:39:00]OFD Sender: No OFD packet to send [01:39:05]OFD Sender: No OFD packet to send [01:39:10]OFD Sender: No OFD packet to send [01:39:15]OFD Sender: No OFD packet to send [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:43]accept exits with 8 [01:39:43]New connection [01:39:43]New thread 3066797412 created [01:39:43]Thread 3066940772 joined [01:39:43]Waiting for new connection... [01:39:43] Sock 8.Parse request [01:39:43]Sock 8.Check first char [01:39:43]Sock 8.First char is OK [01:39:43]request: POST /json_proto HTTP/1.0 [01:39:43]Method: POST [01:39:43]URL: /json_proto [01:39:43]Method is POST - this is cgi request [01:39:43]url: /json_proto [01:39:43]query_string will be loaded in cgi processing [01:39:43]execute_cgi json_proto POST (null) [01:39:43]execute_cgi path=json_proto method=POST [01:39:43]POST find Content-Length [01:39:43]Host: 172.17.38.133:8080 [01:39:43]Content-Length: 1206 [01:39:43]Content-Type: application/json [01:39:43] [01:39:43]POST finish read [01:39:43]Found Content-Length = 1206 [01:39:43]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 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0443\u0439\u0448\u0435\u043D\u0431\u0438\u0435\u0432 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)673128\u000A20.06.2024 01:17\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 42\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 15.050 x 66.40\u000A\u0418\u0422\u041E\u0413: 999.32\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\u000A76487\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:39:43]execute_script... [01:39:43]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 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0443\u0439\u0448\u0435\u043D\u0431\u0438\u0435\u0432 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)673128\u000A20.06.2024 01:17\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 42\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 15.050 x 66.40\u000A\u0418\u0422\u041E\u0413: 999.32\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\u000A76487\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:39:43]POST & json_proto [01:39:43]process_json_proto [01:39:43]json parsed OK: [01:39:43]protocol is kg_v1.0 [01:39:43]action value=print_text [01:39:43]process_action print_text [01:39:43]cmd_print_text [01:39:43]ExternCall_PrintAddStr [01:39:43]wPrintStart [01:39:43]Write to MH i2c: 01 00 00 70 1C 8C [01:39:43]Write i2c OK [01:39:43]MH_I2C_Read... [01:39:43]Read from MH i2c: 01 [01:39:43]MH_I2C_Read... [01:39:43]Read from MH i2c: 01 07 00 [01:39:43]MH_I2C_Read... [01:39:43]Read from MH i2c: 01 07 00 70 1C 00 00 00 00 00 FF 0F A1 [01:39:43]RasterBufferAndPrint [01:39:43]line *****ТОВАРНЫЙ ЧЕК***** [01:39:43]line АЗС 120 [01:39:43]line Партнер нефть [01:39:43]line 02508201610067 [01:39:43]line Кассир : Дуйшенбиев А. [01:39:43]line Счет N : (1)673128 [01:39:43]line 20.06.2024 01:17 [01:39:43]line ПРОДАЖА [01:39:43]line ТРК (МРК, ГНК): 42 [01:39:43]line Вид ГСМ : 2710124130 [01:39:43]line Аи-92-К-5 [01:39:43]line 15.050 x 66.40 [01:39:43]line ИТОГ: 999.32 [01:39:43]line Тип оплаты: Талоны: Топливная Карта [01:39:43]line 76487 [01:39:43]line ______________________ [01:39:43]line (подпись) [01:39:43]written 0, free lines is 4095 [01:39:44]Write to MH i2c: 01 00 00 84 1C A0 [01:39:44]Write i2c OK [01:39:44]MH_I2C_Read... [01:39:44]Read from MH i2c: 01 [01:39:44]MH_I2C_Read... [01:39:44]Read from MH i2c: 01 07 00 [01:39:44]MH_I2C_Read... [01:39:44]Read from MH i2c: 01 07 00 84 1C 00 00 00 00 00 11 0E C6 [01:39:44]RasterBufferAndPrint [01:39:44]line [01:39:44]line [01:39:44]line [01:39:44]line [01:39:44]line [01:39:44]written 0, free lines is 3602 [01:39:44]MH_Cut [01:39:44]Write to MH i2c: D1 01 00 8B 1C 01 79 [01:39:44]Write i2c OK [01:39:44]MH_I2C_Read... [01:39:44]Read from MH i2c: D1 [01:39:44]MH_I2C_Read... [01:39:44]Read from MH i2c: D1 01 00 [01:39:44]MH_I2C_Read... [01:39:44]Read from MH i2c: D1 01 00 8B 1C 00 78 [01:39:44]Write to MH i2c: 01 00 00 8C 1C A8 [01:39:44]Write i2c OK [01:39:44]MH_I2C_Read... [01:39:44]*** Cut start [01:39:44]*** Partial cut [01:39:44]*** CUTSNS_PIN = 1 [01:39:44]*** CUTSNS_PIN = 0 [01:39:44]*** Brake cut motor [01:39:45]Read from MH i2c: 01 [01:39:45]MH_I2C_Read... [01:39:45]Read from MH i2c: 01 07 00 [01:39:45]MH_I2C_Read... [01:39:45]*** Stop cut motor [01:39:45]*** Cut end [01:39:45]Read from MH i2c: 01 07 00 8C 1C 00 00 00 00 00 FF 0F BD [01:39:45]process_action print_text done [01:39:45]requested_data is exist [01:39:45]produce_requested_data [01:39:45]requested_item fm.sn is exist - process it [01:39:45]wFMCommunicate request_size=4 [01:39:45]MH_SAM_APDU [01:39:45]CAPDU: 80 11 00 00 [01:39:45]Write to MH i2c: E2 08 00 8D 1C 80 11 00 00 00 00 00 00 23 [01:39:45]Write i2c OK [01:39:45]MH_I2C_Read... [01:39:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:39:45]Read from MH i2c: E2 [01:39:45]MH_I2C_Read... [01:39:45]Read from MH i2c: E2 17 00 [01:39:45]MH_I2C_Read... [01:39:45]Read from MH i2c: E2 17 00 8D 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 76 [01:39:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [01:39:45]wFMCommunicate OK [01:39:45]requested_item fd.num is exist - process it [01:39:45]SAM_PROTO_GetFieldsCounters [01:39:45]wFMCommunicate request_size=4 [01:39:45]MH_SAM_APDU [01:39:45]CAPDU: 80 13 00 00 [01:39:45]Write to MH i2c: E2 08 00 8E 1C 80 13 00 00 00 00 00 00 26 [01:39:45]Write i2c OK [01:39:45]MH_I2C_Read... [01:39:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:39:45]Read from MH i2c: E2 [01:39:45]MH_I2C_Read... [01:39:45]Read from MH i2c: E2 62 00 [01:39:45]MH_I2C_Read... [01:39:45]Read from MH i2c: E2 62 00 8E 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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 8B 95 01 00 0E 04 04 00 62 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 DD [01:39: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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 8B 95 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 04 00 00 00 5E 04 04 00 04 00 00 00 57 04 04 00 05 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:39:45]wFMCommunicate OK [01:39:45]SAM_PROTO_GetFieldsCounters done [01:39:45]requested_item shift.num is exist - process it [01:39:45]requested_item shift.opened is exist - process it [01:39:45]req_shift_opened [01:39:45]FM_GetShiftState [01:39:45]SAM_PROTO_GetShiftState [01:39:45]wFMCommunicate request_size=4 [01:39:45]MH_SAM_APDU [01:39:45]CAPDU: 80 13 01 00 [01:39:45]Write to MH i2c: E2 08 00 8F 1C 80 13 01 00 00 00 00 00 28 [01:39:45]Write i2c OK [01:39:45]MH_I2C_Read... [01:39:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:39:45]Read from MH i2c: E2 [01:39:45]MH_I2C_Read... [01:39:45]Read from MH i2c: E2 0E 00 [01:39:45]MH_I2C_Read... [01:39:45]Read from MH i2c: E2 0E 00 8F 1C 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 77 [01:39:45]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [01:39:45]wFMCommunicate OK [01:39:45]SAM_PROTO_GetShiftState done [01:39:45]FM_GetShiftState done [01:39:45]req_shift_opened done [01:39:45]requested_item shift.open_date is exist - process it [01:39:45]req_shift_open_date [01:39:45]req_shift_open_date done [01:39:45]produce_requested_data done [01:39:45]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103819,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [01:39:45]process_action_free print_text [01:39:45]json_value_free [01:39:45]json_value_free done [01:39:45]process_json_proto returns [01:39:45]Send response to host [01:39:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103819,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [01:39:45]free response buf [01:39:45]execute_script done [01:39:45]execute_script returns [01:39:45]free content buf [01:39:45]Sock 8.Close socket [01:39:45]Sock 8.Thread stoped [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:01]OFD Sender: No OFD packet to send [01:43:06]OFD Sender: No OFD packet to send [01:43:11]OFD Sender: No OFD packet to send [01:43:16]OFD Sender: No OFD packet to send [01:43:21]OFD Sender: No OFD packet to send [01:43:26]OFD Sender: No OFD packet to send [01:43:31]OFD Sender: No OFD packet to send [01:43:36]OFD Sender: No OFD packet to send [01:43:41]OFD Sender: No OFD packet to send [01:43:46]OFD Sender: No OFD packet to send [01:43:51]OFD Sender: No OFD packet to send [01:43:56]OFD Sender: No OFD packet to send [01:44:01]OFD Sender: No OFD packet to send [01:44:06]OFD Sender: No OFD packet to send [01:44:11]OFD Sender: No OFD packet to send [01:44:16]OFD Sender: No OFD packet to send [01:44:21]OFD Sender: No OFD packet to send [01:44:26]OFD Sender: No OFD packet to send [01:44:31]OFD Sender: No OFD packet to send [01:44:36]OFD Sender: No OFD packet to send [01:44:39]accept exits with 9 [01:44:39]New connection [01:44:39]New thread 3066940772 created [01:44:39]Thread 3066797412 joined [01:44:39]Waiting for new connection... [01:44:39] Sock 9.Parse request [01:44:39]Sock 9.Check first char [01:44:39]Sock 9.First char is OK [01:44:39]request: POST /json_proto HTTP/1.0 [01:44:39]Method: POST [01:44:39]URL: /json_proto [01:44:39]Method is POST - this is cgi request [01:44:39]url: /json_proto [01:44:39]query_string will be loaded in cgi processing [01:44:39]execute_cgi json_proto POST (null) [01:44:39]execute_cgi path=json_proto method=POST [01:44:39]POST find Content-Length [01:44:39]Host: 172.17.38.133:8080 [01:44:39]Content-Length: 692 [01:44:39]Content-Type: application/json [01:44:39] [01:44:39]POST finish read [01:44:39]Found Content-Length = 692 [01:44:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673127", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 137.180, "sum" : 10000.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 10000.00, "total" : 10000.00, "payments": [ { "type": 0, "sum" : 10000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:44:39]execute_script... [01:44: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)673127", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 137.180, "sum" : 10000.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 10000.00, "total" : 10000.00, "payments": [ { "type": 0, "sum" : 10000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:44:39]POST & json_proto [01:44:39]process_json_proto [01:44:39]json parsed OK: [01:44:39]protocol is kg_v1.0 [01:44:39]action value=close_receipt [01:44:39]process_action close_receipt [01:44:39]cmd_close_receipt [01:44:39]MH_GetDate [01:44:39]Write to MH i2c: F0 00 00 90 1C 9B [01:44:39]Write i2c OK [01:44:39]MH_I2C_Read... [01:44:39]Read from MH i2c: F0 [01:44:39]MH_I2C_Read... [01:44:39]Read from MH i2c: F0 09 00 [01:44:39]MH_I2C_Read... [01:44:40]Read from MH i2c: F0 09 00 90 1C 00 8A 89 73 66 BD 8F 7C 64 BC [01:44:40]GetLastDocTimeStamp 1718847040 [01:44:40]current date 1718847882 [01:44:40]FM_GetShiftState [01:44:40]SAM_PROTO_GetShiftState [01:44:40]wFMCommunicate request_size=4 [01:44:40]MH_SAM_APDU [01:44:40]CAPDU: 80 13 01 00 [01:44:40]Write to MH i2c: E2 08 00 91 1C 80 13 01 00 00 00 00 00 2A [01:44:40]Write i2c OK [01:44:40]MH_I2C_Read... [01:44:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:44:40]Read from MH i2c: E2 [01:44:40]MH_I2C_Read... [01:44:40]Read from MH i2c: E2 0E 00 [01:44:40]MH_I2C_Read... [01:44:40]Read from MH i2c: E2 0E 00 91 1C 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 79 [01:44:40]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [01:44:40]wFMCommunicate OK [01:44:40]SAM_PROTO_GetShiftState done [01:44:40]FM_GetShiftState done [01:44:40]opened in 1718843124 [01:44:40]opened+sec_in_day 1718929524 [01:44:40]quantity*price = 1000042 [01:44:40]sum+1 = 1000043 [01:44:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.42 ИТОГО: 10000.00 Внесено: 10000.00 СДАЧА: 0.00 НСП 1% : 88.50 НДС 12% : 1061.99 Наличными: 10000.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 5 20.06.2024 01:44 Смена: 354 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103820 ФПД: 141194009539930 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T014442&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103820&fm=141194009539930&tin=02508201610067®Number=0000000000092785&sum=1000000 [01:44:41]StoreToDocumentArchive [01:44:41]shift 354 fd 103820 [01:44:41]save to /storage/0354/doc_00103820 [01:44:41]save last doc name /storage/0354/doc_00103820 to /storage/kkm_last_doc_name [01:44:41]save OK [01:44:41]Clear old archive folders... [01:44:41]ProcessDocumentItem done err = 0, tmpTLVsize=252 [01:44:41]tlvbuf is 017362E0 [01:44:41]SAM_PROTO_ClearQueue [01:44:41]wFMCommunicate request_size=4 [01:44:41]MH_SAM_APDU [01:44:41]CAPDU: 80 09 00 00 [01:44:41]Write to MH i2c: E2 08 00 9E 1C 80 09 00 00 00 00 00 00 2C [01:44:41]Write i2c OK [01:44:41]MH_I2C_Read... [01:44:41]Read from MH i2c: E2 [01:44:41]MH_I2C_Read... [01:44:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:44:41]Read from MH i2c: E2 03 00 [01:44:41]MH_I2C_Read... [01:44:41]Read from MH i2c: E2 03 00 9E 1C 00 90 00 2E [01:44:41]RAPDU: 90 00 [01:44:41]wFMCommunicate OK [01:44:41]SAM_PROTO_ClearQueue done [01:44:41]KKMCreateOFDPacket [01:44:41]OFDProtocolAddRootSTLVToBuf [01:44:41]FM_MakeSignedData [01:44:41]FM_MakeSignedData [01:44:41]SAM_PROTO_SignData [01:44:41]wFMCommunicate request_size=4 [01:44:41]MH_SAM_APDU [01:44:41]CAPDU: 80 0D 01 02 [01:44:41]Write to MH i2c: E2 08 00 9F 1C 80 0D 01 02 00 00 00 00 34 [01:44:41]Write i2c OK [01:44:41]MH_I2C_Read... [01:44:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:44:41]Read from MH i2c: E2 [01:44:41]MH_I2C_Read... [01:44:41]Read from MH i2c: E2 03 00 [01:44:41]MH_I2C_Read... [01:44:41]Read from MH i2c: E2 03 00 9F 1C 00 90 00 2F [01:44:41]RAPDU: 90 00 [01:44:41]wFMCommunicate OK [01:44:41]wFMCommunicate request_size=255 [01:44:41]MH_SAM_APDU [01:44:41]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 DC 17 02 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 6A 42 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 42 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 92 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D7 9E 01 00 00 00 07 04 06 00 40 42 0F 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 8A 89 73 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 8C 95 01 00 35 04 06 00 [01:44:41]Write to MH i2c: E2 02 01 A0 1C 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 DC 17 02 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 6A 42 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 42 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 92 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D7 9E 01 00 00 00 07 04 06 00 40 42 0F 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 8A 89 73 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 8C 95 01 00 35 04 06 00 00 00 87 [01:44:41]Write i2c OK [01:44:41]MH_I2C_Read... [01:44:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:44:41]Read from MH i2c: E2 [01:44:41]MH_I2C_Read... [01:44:41]Read from MH i2c: E2 03 00 [01:44:41]MH_I2C_Read... [01:44:41]Read from MH i2c: E2 03 00 A0 1C 00 90 00 30 [01:44:41]RAPDU: 90 00 [01:44:41]wFMCommunicate OK [01:44:41]wFMCommunicate request_size=11 [01:44:41]MH_SAM_APDU [01:44:41]CAPDU: 80 0D 02 02 06 80 6A 4A C8 75 5A [01:44:41]Write to MH i2c: E2 0E 00 A1 1C 80 0D 02 02 06 00 80 6A 4A C8 75 5A 00 00 0E [01:44:41]Write i2c OK [01:44:41]MH_I2C_Read... [01:44:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:44:41]Read from MH i2c: E2 [01:44:41]MH_I2C_Read... [01:44:41]Read from MH i2c: E2 03 00 [01:44:41]MH_I2C_Read... [01:44:41]Read from MH i2c: E2 03 00 A1 1C 00 90 00 31 [01:44:41]RAPDU: 90 00 [01:44:41]wFMCommunicate OK [01:44:41]wFMCommunicate request_size=4 [01:44:41]MH_SAM_APDU [01:44:41]CAPDU: 80 0D 03 02 [01:44:41]Write to MH i2c: E2 08 00 A2 1C 80 0D 03 02 00 00 00 00 39 [01:44:41]Write i2c OK [01:44:41]MH_I2C_Read... [01:44:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:44:41]Read from MH i2c: E2 [01:44:41]MH_I2C_Read... [01:44:41]Read from MH i2c: E2 0B 00 [01:44:41]MH_I2C_Read... [01:44:41]Read from MH i2c: E2 0B 00 A2 1C 00 05 04 FE 42 EA 2B 79 95 90 00 A6 [01:44:41]RAPDU: 05 04 FE 42 EA 2B 79 95 90 00 [01:44:41]wFMCommunicate OK [01:44:41]SAM_PROTO_SignData done [01:44:41]FM_MakeSignedData done [01:44:41]CreateOFDProtocolMessage [01:44:41]wFMCommunicate request_size=4 [01:44:41]MH_SAM_APDU [01:44:41]CAPDU: 80 11 00 00 [01:44:41]Write to MH i2c: E2 08 00 A3 1C 80 11 00 00 00 00 00 00 39 [01:44:41]Write i2c OK [01:44:41]MH_I2C_Read... [01:44:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:44:41]Read from MH i2c: E2 [01:44:41]MH_I2C_Read... [01:44:41]Read from MH i2c: E2 17 00 [01:44:41]MH_I2C_Read... [01:44:41]Read from MH i2c: E2 17 00 A3 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 8C [01:44:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [01:44:41]wFMCommunicate OK [01:44:41]CreateOFDProtocolMessage done [01:44:41]OFDSenderStorePacket 103820 [01:44:41]StoreOFDPacket docnum=103820 [01:44:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 FA 62 08 01 29 51 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 DC 17 02 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 6A 42 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 42 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 92 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D7 9E 01 00 00 00 07 04 06 00 40 42 0F 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 8A 89 73 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 8C 95 01 00 35 04 06 00 80 6A 4A C8 75 5A 05 04 FE 42 EA 2B 79 95 [01:44:41]CheckFolder [01:44:41]dirname=/storage/ofd_packets [01:44:41]CheckFolder done [01:44:41]ProducePacketName [01:44:41]name=ofd_packets/00103820 [01:44:41]NVStorageSaveData ofd_packets/00103820 [01:44:41]File name is /storage/ofd_packets/00103820 [01:44:41]Write 302 bytes [01:44:41]NVStorageSaveData done [01:44:41]OFDSenderStorePacket done [01:44:41]KKMCreateOFDPacket done [01:44:41]NVStorageSaveData kkm_last_timestamp [01:44:41]File name is /storage/kkm_last_timestamp [01:44:41]Write 4 bytes [01:44:41]NVStorageSaveData done [01:44:41]ExternCall_PrintAddStr [01:44:41]wPrintStart [01:44:41]Write to MH i2c: 01 00 00 A4 1C C0 [01:44:41]Write i2c OK [01:44:41]MH_I2C_Read... [01:44:41]Read from MH i2c: 01 [01:44:41]MH_I2C_Read... [01:44:41]Read from MH i2c: 01 07 00 [01:44:41]MH_I2C_Read... [01:44:41]Read from MH i2c: 01 07 00 A4 1C 00 00 00 00 00 FF 0F D5 [01:44:41]RasterBufferAndPrint [01:44:41]line Счет N : (1)673127 [01:44:41]line ИНН: 02508201610067 [01:44:41]line Контрольно-Кассовый Чек [01:44:41]line ПРОДАЖА [01:44:41]line ТРК (МРК, ГНК) : 11 [01:44:41]line Товар: 2710194210 [01:44:41]line ДТ(л)-К-5 [01:44:41]line 137.180 * 72.90 [01:44:41]line = 10000.42 [01:44:41]line НДС 12% НСП 1% [01:44:41]line > о реализуемом товаре [01:44:41]line ОКРУГЛЕНИЕ: -0.42 [01:44:41]line ИТОГО: 10000.00 [01:44:41]line Внесено: 10000.00 [01:44:41]line СДАЧА: 0.00 [01:44:41]line НСП 1% : 88.50 [01:44:41]line НДС 12% : 1061.99 [01:44:41]line Наличными: 10000.00 [01:44:41]line Безнал.: 0.00 [01:44:41]line Место: АЗС № 120 "Партнер Нефть" [01:44:41]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [01:44:41]line СНО: Общий режим [01:44:41]line Чек 5 20.06.2024 01:44 [01:44:41]line Смена: 354 ФФД: 1.0 [01:44:41]line ЗНМ: 0300000164 [01:44:41]line РНМ: 0000000000092785 [01:44:41]line Версия ККМ: 001 [01:44:41]line ФМ: 0000000000875093 [01:44:41]line ФД: 103820 [01:44:41]line ФПД: 141194009539930 [01:44:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T014442&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103820&fm=141194009539930&tin=02508201610067®Number=0000000000092785&sum=1000000 [01:44:42]OFD Sender: Processing packet 103820 [packets to send 17, broken 16] [01:44:42]ProducePacketName [01:44:42]name=ofd_packets/00103820 [01:44:42]OFD Sender: To server: pG, [01:44:42]CommunicateWithHost lk.salyk.kg:30040 [01:44:42]ConnectInit lk.salyk.kg [01:44:42]written 0, free lines is 4095 [01:44:42]Connected sock=11 [01:44: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 39 33 10 01 00 00 FA 62 08 01 29 51 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 DC 17 02 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 6A 42 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 42 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 92 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D7 9E 01 00 00 00 07 04 06 00 40 42 0F 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 8A 89 73 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 8C 95 01 00 35 04 06 00 80 6A 4A C8 75 5A 05 04 FE 42 EA 2B 79 95 [01:44:42]Write to MH i2c: 01 00 00 CF 1C EB [01:44:42]Write i2c OK [01:44:42]MH_I2C_Read... [01:44:42]Read from MH i2c: 01 [01:44:42]MH_I2C_Read... [01:44:42]Read from MH i2c: 01 07 00 [01:44:42]MH_I2C_Read... [01:44:42]Read from MH i2c: 01 07 00 CF 1C 00 00 00 00 00 E2 0C E0 [01:44:42]RasterBufferAndPrint [01:44:42]line [01:44:42]line [01:44:42]line [01:44:42]line [01:44:42]line [01:44:42]written 0, free lines is 3304 [01:44:42]MH_Cut [01:44:42]Write to MH i2c: D1 01 00 D6 1C 01 C4 [01:44:42]Write i2c OK [01:44:42]MH_I2C_Read... [01:44:42]Read from MH i2c: D1 [01:44:42]MH_I2C_Read... [01:44:42]Read from MH i2c: D1 01 00 [01:44:42]MH_I2C_Read... [01:44:42]Read from MH i2c: D1 01 00 D6 1C 00 C3 [01:44:42]Write to MH i2c: 01 00 00 D7 1C F3 [01:44:42]Write i2c OK [01:44:42]MH_I2C_Read... [01:44: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 39 33 4F 00 00 00 0F 9F 47 00 02 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 39 33 10 04 04 00 8C 95 01 00 F4 03 04 00 11 30 73 66 B6 04 01 00 00 C0 D1 A1 12 14 5A 19 75 [01:44:42]CommunicateWithHost err = 0 [01:44:42]CheckOFDResponse [01:44:42]1017 (14) - 77093643461234 [01:44:42]1041 (16) - 0000000000875093 [01:44:42]1040 (4) - 103820 [01:44:42]1012 (4) - 19.06.2024 19:22 [01:44:42]1206 (1) - 0 [01:44:42]OFD Sender: Remove packet 103820 [01:44:42]ProducePacketName [01:44:42]name=ofd_packets/00103820 [01:44:42]NVStorageDeleteData [01:44:43]OFD Sender: No OFD packet to send [01:44:43]*** Cut start [01:44:43]*** Partial cut [01:44:43]*** CUTSNS_PIN = 1 [01:44:43]*** CUTSNS_PIN = 0 [01:44:43]*** Brake cut motor [01:44:43]Read from MH i2c: 01 [01:44:43]MH_I2C_Read... [01:44:43]*** Stop cut motor [01:44:43]*** Cut end [01:44:43]Read from MH i2c: 01 07 00 [01:44:43]MH_I2C_Read... [01:44:43]Read from MH i2c: 01 07 00 D7 1C 00 00 00 00 00 FF 0F 08 [01:44:43]process_action close_receipt done [01:44:43]requested_data is exist [01:44:43]produce_requested_data [01:44:43]requested_item fm.sn is exist - process it [01:44:43]wFMCommunicate request_size=4 [01:44:43]MH_SAM_APDU [01:44:43]CAPDU: 80 11 00 00 [01:44:43]Write to MH i2c: E2 08 00 D8 1C 80 11 00 00 00 00 00 00 6E [01:44:43]Write i2c OK [01:44:43]MH_I2C_Read... [01:44:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:44:43]Read from MH i2c: E2 [01:44:43]MH_I2C_Read... [01:44:43]Read from MH i2c: E2 17 00 [01:44:43]MH_I2C_Read... [01:44:43]Read from MH i2c: E2 17 00 D8 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 C1 [01:44:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [01:44:43]wFMCommunicate OK [01:44:43]requested_item fd.num is exist - process it [01:44:43]SAM_PROTO_GetFieldsCounters [01:44:43]wFMCommunicate request_size=4 [01:44:43]MH_SAM_APDU [01:44:43]CAPDU: 80 13 00 00 [01:44:43]Write to MH i2c: E2 08 00 D9 1C 80 13 00 00 00 00 00 00 71 [01:44:43]Write i2c OK [01:44:43]MH_I2C_Read... [01:44:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:44:44]Read from MH i2c: E2 [01:44:44]MH_I2C_Read... [01:44:44]Read from MH i2c: E2 62 00 [01:44:44]MH_I2C_Read... [01:44:44]Read from MH i2c: E2 62 00 D9 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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 8C 95 01 00 0E 04 04 00 62 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 2C [01:44: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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 8C 95 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 05 00 00 00 5E 04 04 00 05 00 00 00 57 04 04 00 06 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:44:44]wFMCommunicate OK [01:44:44]SAM_PROTO_GetFieldsCounters done [01:44:44]requested_item shift.num is exist - process it [01:44:44]requested_item shift.opened is exist - process it [01:44:44]req_shift_opened [01:44:44]FM_GetShiftState [01:44:44]SAM_PROTO_GetShiftState [01:44:44]wFMCommunicate request_size=4 [01:44:44]MH_SAM_APDU [01:44:44]CAPDU: 80 13 01 00 [01:44:44]Write to MH i2c: E2 08 00 DA 1C 80 13 01 00 00 00 00 00 73 [01:44:44]Write i2c OK [01:44:44]MH_I2C_Read... [01:44:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:44:44]Read from MH i2c: E2 [01:44:44]MH_I2C_Read... [01:44:44]Read from MH i2c: E2 0E 00 [01:44:44]MH_I2C_Read... [01:44:44]Read from MH i2c: E2 0E 00 DA 1C 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 C2 [01:44:44]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [01:44:44]wFMCommunicate OK [01:44:44]SAM_PROTO_GetShiftState done [01:44:44]FM_GetShiftState done [01:44:44]req_shift_opened done [01:44:44]requested_item shift.open_date is exist - process it [01:44:44]req_shift_open_date [01:44:44]req_shift_open_date done [01:44:44]produce_requested_data done [01:44:44]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103820,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [01:44:44]process_action_free close_receipt [01:44:44]json_value_free [01:44:44]json_value_free done [01:44:44]process_json_proto returns [01:44:44]Send response to host [01:44:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103820,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [01:44:44]free response buf [01:44:44]execute_script done [01:44:44]execute_script returns [01:44:44]free content buf [01:44:44]Sock 9.Close socket [01:44:44]Sock 9.Thread stoped [01:44:48]OFD Sender: No OFD packet to send [01:44:53]OFD Sender: No OFD packet to send [01:44:58]OFD Sender: No OFD packet to send [01:45:03]OFD Sender: No OFD packet to send [01:45:08]OFD Sender: No OFD packet to send [01:45:13]OFD Sender: No OFD packet to send [01:45:18]OFD Sender: No OFD packet to send [01:45:23]OFD Sender: No OFD packet to send [01:45:28]OFD Sender: No OFD packet to send [01:45:33]OFD Sender: No OFD packet to send [01:45:38]OFD Sender: No OFD packet to send [01:45:43]OFD Sender: No OFD packet to send [01:45:48]OFD Sender: No OFD packet to send [01:45:53]OFD Sender: No OFD packet to send [01:45:58]OFD Sender: No OFD packet to send [01:46:03]OFD Sender: No OFD packet to send [01:46:08]OFD Sender: No OFD packet to send [01:46:13]OFD Sender: No OFD packet to send [01:46:18]OFD Sender: No OFD packet to send [01:46:23]OFD Sender: No OFD packet to send [01:46:28]OFD Sender: No OFD packet to send [01:46:33]OFD Sender: No OFD packet to send [01:46:38]OFD Sender: No OFD packet to send [01:46:43]OFD Sender: No OFD packet to send [01:46:48]OFD Sender: No OFD packet to send [01:46:53]OFD Sender: No OFD packet to send [01:46:58]OFD Sender: No OFD packet to send [01:47:03]OFD Sender: No OFD packet to send [01:47:08]OFD Sender: No OFD packet to send [01:47:13]OFD Sender: No OFD packet to send [01:47:18]OFD Sender: No OFD packet to send [01:47:23]OFD Sender: No OFD packet to send [01:47:28]OFD Sender: No OFD packet to send [01:47:33]OFD Sender: No OFD packet to send [01:47:38]OFD Sender: No OFD packet to send [01:47:43]OFD Sender: No OFD packet to send [01:47:48]OFD Sender: No OFD packet to send [01:47:53]OFD Sender: No OFD packet to send [01:47:58]OFD Sender: No OFD packet to send [01:48:03]OFD Sender: No OFD packet to send [01:48:08]OFD Sender: No OFD packet to send [01:48:13]OFD Sender: No OFD packet to send [01:48:18]OFD Sender: No OFD packet to send [01:48:23]OFD Sender: No OFD packet to send [01:48:28]OFD Sender: No OFD packet to send [01:48:33]OFD Sender: No OFD packet to send [01:48:38]OFD Sender: No OFD packet to send [01:48:43]OFD Sender: No OFD packet to send [01:48:48]OFD Sender: No OFD packet to send [01:48:53]OFD Sender: No OFD packet to send [01:48:58]OFD Sender: No OFD packet to send [01:49:03]OFD Sender: No OFD packet to send [01:49:08]OFD Sender: No OFD packet to send [01:49:13]OFD Sender: No OFD packet to send [01:49:18]OFD Sender: No OFD packet to send [01:49:23]OFD Sender: No OFD packet to send [01:49:28]OFD Sender: No OFD packet to send [01:49:33]OFD Sender: No OFD packet to send [01:49:38]OFD Sender: No OFD packet to send [01:49:43]OFD Sender: No OFD packet to send [01:49:48]OFD Sender: No OFD packet to send [01:49:53]OFD Sender: No OFD packet to send [01:49:58]OFD Sender: No OFD packet to send [01:50:03]OFD Sender: No OFD packet to send [01:50:08]OFD Sender: No OFD packet to send [01:50:13]OFD Sender: No OFD packet to send [01:50:18]OFD Sender: No OFD packet to send [01:50:23]OFD Sender: No OFD packet to send [01:50:28]OFD Sender: No OFD packet to send [01:50:33]OFD Sender: No OFD packet to send [01:50:38]OFD Sender: No OFD packet to send [01:50:43]OFD Sender: No OFD packet to send [01:50:48]OFD Sender: No OFD packet to send [01:50:53]OFD Sender: No OFD packet to send [01:50:58]OFD Sender: No OFD packet to send [01:51:03]OFD Sender: No OFD packet to send [01:51:08]OFD Sender: No OFD packet to send [01:51:13]OFD Sender: No OFD packet to send [01:51:18]OFD Sender: No OFD packet to send [01:51:20]accept exits with 8 [01:51:20]New connection [01:51:20]New thread 3066797412 created [01:51:20]Thread 3066940772 joined [01:51:20]Waiting for new connection... [01:51:20] Sock 8.Parse request [01:51:20]Sock 8.Check first char [01:51:20]Sock 8.First char is OK [01:51:20]request: POST /json_proto HTTP/1.0 [01:51:20]Method: POST [01:51:20]URL: /json_proto [01:51:20]Method is POST - this is cgi request [01:51:20]url: /json_proto [01:51:20]query_string will be loaded in cgi processing [01:51:20]execute_cgi json_proto POST (null) [01:51:20]execute_cgi path=json_proto method=POST [01:51:20]POST find Content-Length [01:51:20]Host: 172.17.38.133:8080 [01:51:20]Content-Length: 692 [01:51:20]Content-Type: application/json [01:51:20] [01:51:20]POST finish read [01:51:20]Found Content-Length = 692 [01:51:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673129", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 137.180, "sum" : 10000.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 10000.00, "total" : 10000.00, "payments": [ { "type": 0, "sum" : 10000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:51:20]execute_script... [01:51: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)673129", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 137.180, "sum" : 10000.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 10000.00, "total" : 10000.00, "payments": [ { "type": 0, "sum" : 10000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:51:20]POST & json_proto [01:51:20]process_json_proto [01:51:20]json parsed OK: [01:51:20]protocol is kg_v1.0 [01:51:20]action value=close_receipt [01:51:20]process_action close_receipt [01:51:20]cmd_close_receipt [01:51:20]MH_GetDate [01:51:20]Write to MH i2c: F0 00 00 DB 1C E6 [01:51:20]Write i2c OK [01:51:20]MH_I2C_Read... [01:51:20]Read from MH i2c: F0 [01:51:20]MH_I2C_Read... [01:51:20]Read from MH i2c: F0 09 00 [01:51:20]MH_I2C_Read... [01:51:20]Read from MH i2c: F0 09 00 DB 1C 00 1A 8B 73 66 BD 8F 7C 64 99 [01:51:20]GetLastDocTimeStamp 1718847882 [01:51:20]current date 1718848282 [01:51:20]FM_GetShiftState [01:51:20]SAM_PROTO_GetShiftState [01:51:20]wFMCommunicate request_size=4 [01:51:20]MH_SAM_APDU [01:51:20]CAPDU: 80 13 01 00 [01:51:20]Write to MH i2c: E2 08 00 DC 1C 80 13 01 00 00 00 00 00 75 [01:51:20]Write i2c OK [01:51:20]MH_I2C_Read... [01:51:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:51:20]Read from MH i2c: E2 [01:51:20]MH_I2C_Read... [01:51:20]Read from MH i2c: E2 0E 00 [01:51:20]MH_I2C_Read... [01:51:20]Read from MH i2c: E2 0E 00 DC 1C 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 C4 [01:51:20]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [01:51:20]wFMCommunicate OK [01:51:20]SAM_PROTO_GetShiftState done [01:51:20]FM_GetShiftState done [01:51:20]opened in 1718843124 [01:51:20]opened+sec_in_day 1718929524 [01:51:20]quantity*price = 1000042 [01:51:20]sum+1 = 1000043 [01:51:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.42 ИТОГО: 10000.00 Внесено: 10000.00 СДАЧА: 0.00 НСП 1% : 88.50 НДС 12% : 1061.99 Наличными: 10000.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 6 20.06.2024 01:51 Смена: 354 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103821 ФПД: 224653856908418 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T015122&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103821&fm=224653856908418&tin=02508201610067®Number=0000000000092785&sum=1000000 [01:51:21]StoreToDocumentArchive [01:51:21]shift 354 fd 103821 [01:51:21]save to /storage/0354/doc_00103821 [01:51:21]save last doc name /storage/0354/doc_00103821 to /storage/kkm_last_doc_name [01:51:21]save OK [01:51:21]Clear old archive folders... [01:51:21]ProcessDocumentItem done err = 0, tmpTLVsize=252 [01:51:21]tlvbuf is B6F523F0 [01:51:21]SAM_PROTO_ClearQueue [01:51:21]wFMCommunicate request_size=4 [01:51:21]MH_SAM_APDU [01:51:21]CAPDU: 80 09 00 00 [01:51:21]Write to MH i2c: E2 08 00 E9 1C 80 09 00 00 00 00 00 00 77 [01:51:21]Write i2c OK [01:51:21]MH_I2C_Read... [01:51:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:51:21]Read from MH i2c: E2 [01:51:21]MH_I2C_Read... [01:51:21]Read from MH i2c: E2 03 00 [01:51:21]MH_I2C_Read... [01:51:21]Read from MH i2c: E2 03 00 E9 1C 00 90 00 79 [01:51:21]RAPDU: 90 00 [01:51:21]wFMCommunicate OK [01:51:21]SAM_PROTO_ClearQueue done [01:51:21]KKMCreateOFDPacket [01:51:21]OFDProtocolAddRootSTLVToBuf [01:51:21]FM_MakeSignedData [01:51:21]FM_MakeSignedData [01:51:21]SAM_PROTO_SignData [01:51:21]wFMCommunicate request_size=4 [01:51:21]MH_SAM_APDU [01:51:21]CAPDU: 80 0D 01 02 [01:51:21]Write to MH i2c: E2 08 00 EA 1C 80 0D 01 02 00 00 00 00 7F [01:51:21]Write i2c OK [01:51:21]MH_I2C_Read... [01:51:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:51:21]Read from MH i2c: E2 [01:51:21]MH_I2C_Read... [01:51:21]Read from MH i2c: E2 03 00 [01:51:21]MH_I2C_Read... [01:51:21]Read from MH i2c: E2 03 00 EA 1C 00 90 00 7A [01:51:21]RAPDU: 90 00 [01:51:21]wFMCommunicate OK [01:51:21]wFMCommunicate request_size=255 [01:51:21]MH_SAM_APDU [01:51:21]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 DC 17 02 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 6A 42 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 42 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 92 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D7 9E 01 00 00 00 07 04 06 00 40 42 0F 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 1A 8B 73 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 8D 95 01 00 35 04 06 00 [01:51:21]Write to MH i2c: E2 02 01 EB 1C 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 DC 17 02 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 6A 42 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 42 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 92 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D7 9E 01 00 00 00 07 04 06 00 40 42 0F 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 1A 8B 73 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 8D 95 01 00 35 04 06 00 00 00 66 [01:51:21]Write i2c OK [01:51:21]MH_I2C_Read... [01:51:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:51:21]Read from MH i2c: E2 [01:51:21]MH_I2C_Read... [01:51:21]Read from MH i2c: E2 03 00 [01:51:21]MH_I2C_Read... [01:51:21]Read from MH i2c: E2 03 00 EB 1C 00 90 00 7B [01:51:21]RAPDU: 90 00 [01:51:21]wFMCommunicate OK [01:51:21]wFMCommunicate request_size=11 [01:51:21]MH_SAM_APDU [01:51:21]CAPDU: 80 0D 02 02 06 CC 52 4D 56 A4 82 [01:51:21]Write to MH i2c: E2 0E 00 EC 1C 80 0D 02 02 06 00 CC 52 4D 56 A4 82 00 00 75 [01:51:21]Write i2c OK [01:51:21]MH_I2C_Read... [01:51:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:51:22]Read from MH i2c: E2 [01:51:22]MH_I2C_Read... [01:51:22]Read from MH i2c: E2 03 00 [01:51:22]MH_I2C_Read... [01:51:22]Read from MH i2c: E2 03 00 EC 1C 00 90 00 7C [01:51:22]RAPDU: 90 00 [01:51:22]wFMCommunicate OK [01:51:22]wFMCommunicate request_size=4 [01:51:22]MH_SAM_APDU [01:51:22]CAPDU: 80 0D 03 02 [01:51:22]Write to MH i2c: E2 08 00 ED 1C 80 0D 03 02 00 00 00 00 84 [01:51:22]Write i2c OK [01:51:22]MH_I2C_Read... [01:51:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:51:22]Read from MH i2c: E2 [01:51:22]MH_I2C_Read... [01:51:22]Read from MH i2c: E2 0B 00 [01:51:22]MH_I2C_Read... [01:51:22]Read from MH i2c: E2 0B 00 ED 1C 00 69 B4 6D 17 D1 59 3C 9F 90 00 2B [01:51:22]RAPDU: 69 B4 6D 17 D1 59 3C 9F 90 00 [01:51:22]wFMCommunicate OK [01:51:22]SAM_PROTO_SignData done [01:51:22]FM_MakeSignedData done [01:51:22]CreateOFDProtocolMessage [01:51:22]wFMCommunicate request_size=4 [01:51:22]MH_SAM_APDU [01:51:22]CAPDU: 80 11 00 00 [01:51:22]Write to MH i2c: E2 08 00 EE 1C 80 11 00 00 00 00 00 00 84 [01:51:22]Write i2c OK [01:51:22]MH_I2C_Read... [01:51:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:51:22]Read from MH i2c: E2 [01:51:22]MH_I2C_Read... [01:51:22]Read from MH i2c: E2 17 00 [01:51:22]MH_I2C_Read... [01:51:22]Read from MH i2c: E2 17 00 EE 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 D7 [01:51:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [01:51:22]wFMCommunicate OK [01:51:22]CreateOFDProtocolMessage done [01:51:22]OFDSenderStorePacket 103821 [01:51:22]StoreOFDPacket docnum=103821 [01:51:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 8D 9D 08 01 CA 7C 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 DC 17 02 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 6A 42 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 42 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 92 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D7 9E 01 00 00 00 07 04 06 00 40 42 0F 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 1A 8B 73 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 8D 95 01 00 35 04 06 00 CC 52 4D 56 A4 82 69 B4 6D 17 D1 59 3C 9F [01:51:22]CheckFolder [01:51:22]dirname=/storage/ofd_packets [01:51:22]CheckFolder done [01:51:22]ProducePacketName [01:51:22]name=ofd_packets/00103821 [01:51:22]NVStorageSaveData ofd_packets/00103821 [01:51:22]File name is /storage/ofd_packets/00103821 [01:51:22]Write 302 bytes [01:51:22]NVStorageSaveData done [01:51:22]OFDSenderStorePacket done [01:51:22]KKMCreateOFDPacket done [01:51:22]NVStorageSaveData kkm_last_timestamp [01:51:22]File name is /storage/kkm_last_timestamp [01:51:22]Write 4 bytes [01:51:22]NVStorageSaveData done [01:51:22]ExternCall_PrintAddStr [01:51:22]wPrintStart [01:51:22]Write to MH i2c: 01 00 00 EF 1C 0B [01:51:22]Write i2c OK [01:51:22]MH_I2C_Read... [01:51:22]Read from MH i2c: 01 [01:51:22]MH_I2C_Read... [01:51:22]Read from MH i2c: 01 07 00 [01:51:22]MH_I2C_Read... [01:51:22]Read from MH i2c: 01 07 00 EF 1C 00 00 00 00 00 FF 0F 20 [01:51:22]RasterBufferAndPrint [01:51:22]line Счет N : (1)673129 [01:51:22]line ИНН: 02508201610067 [01:51:22]line Контрольно-Кассовый Чек [01:51:22]line ПРОДАЖА [01:51:22]line ТРК (МРК, ГНК) : 11 [01:51:22]line Товар: 2710194210 [01:51:22]line ДТ(л)-К-5 [01:51:22]line 137.180 * 72.90 [01:51:22]line = 10000.42 [01:51:22]line НДС 12% НСП 1% [01:51:22]line > о реализуемом товаре [01:51:22]line ОКРУГЛЕНИЕ: -0.42 [01:51:22]line ИТОГО: 10000.00 [01:51:22]line Внесено: 10000.00 [01:51:22]line СДАЧА: 0.00 [01:51:22]line НСП 1% : 88.50 [01:51:22]line НДС 12% : 1061.99 [01:51:22]line Наличными: 10000.00 [01:51:22]line Безнал.: 0.00 [01:51:22]line Место: АЗС № 120 "Партнер Нефть" [01:51:22]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [01:51:22]line СНО: Общий режим [01:51:22]line Чек 6 20.06.2024 01:51 [01:51:22]line Смена: 354 ФФД: 1.0 [01:51:22]line ЗНМ: 0300000164 [01:51:22]line РНМ: 0000000000092785 [01:51:22]line Версия ККМ: 001 [01:51:22]line ФМ: 0000000000875093 [01:51:22]line ФД: 103821 [01:51:22]line ФПД: 224653856908418 [01:51:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T015122&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103821&fm=224653856908418&tin=02508201610067®Number=0000000000092785&sum=1000000 [01:51:22]OFD Sender: Processing packet 103821 [packets to send 17, broken 16] [01:51:22]ProducePacketName [01:51:22]name=ofd_packets/00103821 [01:51:22]OFD Sender: To server: pG, [01:51:22]CommunicateWithHost lk.salyk.kg:30040 [01:51:22]ConnectInit lk.salyk.kg [01:51:22]written 0, free lines is 4095 [01:51:22]Connected sock=10 [01:51: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 39 33 10 01 00 00 8D 9D 08 01 CA 7C 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 DC 17 02 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 6A 42 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 42 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 92 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D7 9E 01 00 00 00 07 04 06 00 40 42 0F 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 1A 8B 73 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 8D 95 01 00 35 04 06 00 CC 52 4D 56 A4 82 69 B4 6D 17 D1 59 3C 9F [01:51: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 39 33 4F 00 00 00 B6 25 47 00 F1 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 39 33 10 04 04 00 8D 95 01 00 F4 03 04 00 A2 31 73 66 B6 04 01 00 00 C0 02 A4 0F A5 65 13 E5 [01:51:22]CommunicateWithHost err = 0 [01:51:22]CheckOFDResponse [01:51:22]1017 (14) - 77093643461234 [01:51:22]1041 (16) - 0000000000875093 [01:51:22]1040 (4) - 103821 [01:51:22]1012 (4) - 19.06.2024 19:29 [01:51:22]1206 (1) - 0 [01:51:22]OFD Sender: Remove packet 103821 [01:51:22]ProducePacketName [01:51:22]name=ofd_packets/00103821 [01:51:22]NVStorageDeleteData [01:51:22]Write to MH i2c: 01 00 00 1A 1D 37 [01:51:22]Write i2c OK [01:51:22]MH_I2C_Read... [01:51:22]Read from MH i2c: 01 [01:51:22]MH_I2C_Read... [01:51:22]Read from MH i2c: 01 07 00 [01:51:22]MH_I2C_Read... [01:51:22]Read from MH i2c: 01 07 00 1A 1D 00 00 00 00 00 DE 0C 28 [01:51:22]RasterBufferAndPrint [01:51:22]line [01:51:22]line [01:51:22]line [01:51:22]line [01:51:22]line [01:51:22]written 0, free lines is 3300 [01:51:22]MH_Cut [01:51:22]Write to MH i2c: D1 01 00 21 1D 01 10 [01:51:22]Write i2c OK [01:51:22]MH_I2C_Read... [01:51:22]Read from MH i2c: D1 [01:51:22]MH_I2C_Read... [01:51:22]Read from MH i2c: D1 01 00 [01:51:22]MH_I2C_Read... [01:51:22]Read from MH i2c: D1 01 00 21 1D 00 0F [01:51:22]Write to MH i2c: 01 00 00 22 1D 3F [01:51:22]Write i2c OK [01:51:22]MH_I2C_Read... [01:51:23]OFD Sender: No OFD packet to send [01:51:23]*** Cut start [01:51:23]*** Partial cut [01:51:23]*** CUTSNS_PIN = 1 [01:51:23]*** CUTSNS_PIN = 0 [01:51:23]*** Brake cut motor [01:51:24]Read from MH i2c: 01 [01:51:24]MH_I2C_Read... [01:51:24]*** Stop cut motor [01:51:24]*** Cut end [01:51:24]Read from MH i2c: 01 07 00 [01:51:24]MH_I2C_Read... [01:51:24]Read from MH i2c: 01 07 00 22 1D 00 00 00 00 00 FF 0F 54 [01:51:24]process_action close_receipt done [01:51:24]requested_data is exist [01:51:24]produce_requested_data [01:51:24]requested_item fm.sn is exist - process it [01:51:24]wFMCommunicate request_size=4 [01:51:24]MH_SAM_APDU [01:51:24]CAPDU: 80 11 00 00 [01:51:24]Write to MH i2c: E2 08 00 23 1D 80 11 00 00 00 00 00 00 BA [01:51:24]Write i2c OK [01:51:24]MH_I2C_Read... [01:51:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:51:24]Read from MH i2c: E2 [01:51:24]MH_I2C_Read... [01:51:24]Read from MH i2c: E2 17 00 [01:51:24]MH_I2C_Read... [01:51:24]Read from MH i2c: E2 17 00 23 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 0D [01:51:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [01:51:24]wFMCommunicate OK [01:51:24]requested_item fd.num is exist - process it [01:51:24]SAM_PROTO_GetFieldsCounters [01:51:24]wFMCommunicate request_size=4 [01:51:24]MH_SAM_APDU [01:51:24]CAPDU: 80 13 00 00 [01:51:24]Write to MH i2c: E2 08 00 24 1D 80 13 00 00 00 00 00 00 BD [01:51:24]Write i2c OK [01:51:24]MH_I2C_Read... [01:51:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:51:24]Read from MH i2c: E2 [01:51:24]MH_I2C_Read... [01:51:24]Read from MH i2c: E2 62 00 [01:51:24]MH_I2C_Read... [01:51:24]Read from MH i2c: E2 62 00 24 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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 8D 95 01 00 0E 04 04 00 62 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 7C [01:51: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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 8D 95 01 00 0E 04 04 00 62 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 [01:51:24]wFMCommunicate OK [01:51:24]SAM_PROTO_GetFieldsCounters done [01:51:24]requested_item shift.num is exist - process it [01:51:24]requested_item shift.opened is exist - process it [01:51:24]req_shift_opened [01:51:24]FM_GetShiftState [01:51:24]SAM_PROTO_GetShiftState [01:51:24]wFMCommunicate request_size=4 [01:51:24]MH_SAM_APDU [01:51:24]CAPDU: 80 13 01 00 [01:51:24]Write to MH i2c: E2 08 00 25 1D 80 13 01 00 00 00 00 00 BF [01:51:24]Write i2c OK [01:51:24]MH_I2C_Read... [01:51:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:51:24]Read from MH i2c: E2 [01:51:24]MH_I2C_Read... [01:51:24]Read from MH i2c: E2 0E 00 [01:51:24]MH_I2C_Read... [01:51:24]Read from MH i2c: E2 0E 00 25 1D 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 0E [01:51:24]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [01:51:24]wFMCommunicate OK [01:51:24]SAM_PROTO_GetShiftState done [01:51:24]FM_GetShiftState done [01:51:24]req_shift_opened done [01:51:24]requested_item shift.open_date is exist - process it [01:51:24]req_shift_open_date [01:51:24]req_shift_open_date done [01:51:24]produce_requested_data done [01:51:24]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103821,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [01:51:24]process_action_free close_receipt [01:51:24]json_value_free [01:51:24]json_value_free done [01:51:24]process_json_proto returns [01:51:24]Send response to host [01:51:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103821,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [01:51:24]free response buf [01:51:24]execute_script done [01:51:24]execute_script returns [01:51:24]free content buf [01:51:24]Sock 8.Close socket [01:51:24]Sock 8.Thread stoped [01:51:28]OFD Sender: No OFD packet to send [01:51:33]OFD Sender: No OFD packet to send [01:51:38]OFD Sender: No OFD packet to send [01:51:43]OFD Sender: No OFD packet to send [01:51:48]OFD Sender: No OFD packet to send [01:51:53]OFD Sender: No OFD packet to send [01:51:58]OFD Sender: No OFD packet to send [01:52:03]OFD Sender: No OFD packet to send [01:52:08]OFD Sender: No OFD packet to send [01:52:13]OFD Sender: No OFD packet to send [01:52:18]OFD Sender: No OFD packet to send [01:52:23]OFD Sender: No OFD packet to send [01:52:28]OFD Sender: No OFD packet to send [01:52:33]OFD Sender: No OFD packet to send [01:52:38]OFD Sender: No OFD packet to send [01:52:43]OFD Sender: No OFD packet to send [01:52:48]OFD Sender: No OFD packet to send [01:52:53]OFD Sender: No OFD packet to send [01:52:58]OFD Sender: No OFD packet to send [01:53:03]OFD Sender: No OFD packet to send [01:53:08]OFD Sender: No OFD packet to send [01:53:13]OFD Sender: No OFD packet to send [01:53:18]OFD Sender: No OFD packet to send [01:53:23]OFD Sender: No OFD packet to send [01:53:28]OFD Sender: No OFD packet to send [01:53:33]OFD Sender: No OFD packet to send [01:53:38]OFD Sender: No OFD packet to send [01:53:43]OFD Sender: No OFD packet to send [01:53:48]OFD Sender: No OFD packet to send [01:53:53]OFD Sender: No OFD packet to send [01:53:58]OFD Sender: No OFD packet to send [01:54:03]OFD Sender: No OFD packet to send [01:54:08]OFD Sender: No OFD packet to send [01:54:13]OFD Sender: No OFD packet to send [01:54:18]OFD Sender: No OFD packet to send [01:54:23]OFD Sender: No OFD packet to send [01:54:28]OFD Sender: No OFD packet to send [01:54:33]OFD Sender: No OFD packet to send [01:54:38]OFD Sender: No OFD packet to send [01:54:43]OFD Sender: No OFD packet to send [01:54:48]OFD Sender: No OFD packet to send [01:54:53]OFD Sender: No OFD packet to send [01:54:58]OFD Sender: No OFD packet to send [01:55:03]OFD Sender: No OFD packet to send [01:55:08]OFD Sender: No OFD packet to send [01:55:13]OFD Sender: No OFD packet to send [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]accept exits with 9 [01:59:58]New connection [01:59:58]New thread 3066940772 created [01:59:58]Thread 3066797412 joined [01:59:58]Waiting for new connection... [01:59:58] Sock 9.Parse request [01:59:58]Sock 9.Check first char [01:59:58]Sock 9.First char is OK [01:59:58]request: POST /json_proto HTTP/1.0 [01:59:58]Method: POST [01:59:58]URL: /json_proto [01:59:58]Method is POST - this is cgi request [01:59:58]url: /json_proto [01:59:58]query_string will be loaded in cgi processing [01:59:58]execute_cgi json_proto POST (null) [01:59:58]execute_cgi path=json_proto method=POST [01:59:58]POST find Content-Length [01:59:58]Host: 172.17.38.133:8080 [01:59:58]Content-Length: 692 [01:59:58]Content-Type: application/json [01:59:58] [01:59:58]POST finish read [01:59:58]Found Content-Length = 692 [01:59:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673133", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 137.180, "sum" : 10000.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 10000.00, "total" : 10000.00, "payments": [ { "type": 0, "sum" : 10000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:59:58]execute_script... [01:59: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)673133", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 137.180, "sum" : 10000.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 10000.00, "total" : 10000.00, "payments": [ { "type": 0, "sum" : 10000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:59:58]POST & json_proto [01:59:58]process_json_proto [01:59:58]json parsed OK: [01:59:58]protocol is kg_v1.0 [01:59:58]action value=close_receipt [01:59:58]process_action close_receipt [01:59:58]cmd_close_receipt [01:59:58]MH_GetDate [01:59:58]Write to MH i2c: F0 00 00 26 1D 32 [01:59:58]Write i2c OK [01:59:58]MH_I2C_Read... [01:59:58]Read from MH i2c: F0 [01:59:58]MH_I2C_Read... [01:59:58]Read from MH i2c: F0 09 00 [01:59:58]MH_I2C_Read... [01:59:58]Read from MH i2c: F0 09 00 26 1D 00 20 8D 73 66 BD 8F 7C 64 ED [01:59:58]GetLastDocTimeStamp 1718848282 [01:59:58]current date 1718848800 [01:59:58]FM_GetShiftState [01:59:58]SAM_PROTO_GetShiftState [01:59:58]wFMCommunicate request_size=4 [01:59:58]MH_SAM_APDU [01:59:58]CAPDU: 80 13 01 00 [01:59:58]Write to MH i2c: E2 08 00 27 1D 80 13 01 00 00 00 00 00 C1 [01:59:58]Write i2c OK [01:59:58]MH_I2C_Read... [01:59:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:59:58]Read from MH i2c: E2 [01:59:58]MH_I2C_Read... [01:59:58]Read from MH i2c: E2 0E 00 [01:59:58]MH_I2C_Read... [01:59:58]Read from MH i2c: E2 0E 00 27 1D 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 10 [01:59:58]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [01:59:58]wFMCommunicate OK [01:59:58]SAM_PROTO_GetShiftState done [01:59:58]FM_GetShiftState done [01:59:58]opened in 1718843124 [01:59:58]opened+sec_in_day 1718929524 [01:59:58]quantity*price = 1000042 [01:59:58]sum+1 = 1000043 [01:59:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.42 ИТОГО: 10000.00 Внесено: 10000.00 СДАЧА: 0.00 НСП 1% : 88.50 НДС 12% : 1061.99 Наличными: 10000.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 7 20.06.2024 02:00 Смена: 354 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103822 ФПД: 271370979340598 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T020000&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103822&fm=271370979340598&tin=02508201610067®Number=0000000000092785&sum=1000000 [01:59:59]StoreToDocumentArchive [01:59:59]shift 354 fd 103822 [01:59:59]save to /storage/0354/doc_00103822 [01:59:59]save last doc name /storage/0354/doc_00103822 to /storage/kkm_last_doc_name [01:59:59]save OK [01:59:59]Clear old archive folders... [01:59:59]ProcessDocumentItem done err = 0, tmpTLVsize=252 [01:59:59]tlvbuf is B6DA55B0 [01:59:59]SAM_PROTO_ClearQueue [01:59:59]wFMCommunicate request_size=4 [01:59:59]MH_SAM_APDU [01:59:59]CAPDU: 80 09 00 00 [01:59:59]Write to MH i2c: E2 08 00 34 1D 80 09 00 00 00 00 00 00 C3 [01:59:59]Write i2c OK [01:59:59]MH_I2C_Read... [01:59:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:59:59]Read from MH i2c: E2 [01:59:59]MH_I2C_Read... [01:59:59]Read from MH i2c: E2 03 00 [01:59:59]MH_I2C_Read... [01:59:59]Read from MH i2c: E2 03 00 34 1D 00 90 00 C5 [01:59:59]RAPDU: 90 00 [01:59:59]wFMCommunicate OK [01:59:59]SAM_PROTO_ClearQueue done [01:59:59]KKMCreateOFDPacket [01:59:59]OFDProtocolAddRootSTLVToBuf [01:59:59]FM_MakeSignedData [01:59:59]FM_MakeSignedData [01:59:59]SAM_PROTO_SignData [01:59:59]wFMCommunicate request_size=4 [01:59:59]MH_SAM_APDU [01:59:59]CAPDU: 80 0D 01 02 [01:59:59]Write to MH i2c: E2 08 00 35 1D 80 0D 01 02 00 00 00 00 CB [01:59:59]Write i2c OK [01:59:59]MH_I2C_Read... [01:59:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:59:59]Read from MH i2c: E2 [01:59:59]MH_I2C_Read... [01:59:59]Read from MH i2c: E2 03 00 [01:59:59]MH_I2C_Read... [01:59:59]Read from MH i2c: E2 03 00 35 1D 00 90 00 C6 [01:59:59]RAPDU: 90 00 [01:59:59]wFMCommunicate OK [01:59:59]wFMCommunicate request_size=255 [01:59:59]MH_SAM_APDU [01:59:59]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 DC 17 02 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 6A 42 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 42 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 92 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D7 9E 01 00 00 00 07 04 06 00 40 42 0F 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 20 8D 73 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 8E 95 01 00 35 04 06 00 [01:59:59]Write to MH i2c: E2 02 01 36 1D 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 DC 17 02 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 6A 42 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 42 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 92 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D7 9E 01 00 00 00 07 04 06 00 40 42 0F 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 20 8D 73 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 8E 95 01 00 35 04 06 00 00 00 BC [01:59:59]Write i2c OK [01:59:59]MH_I2C_Read... [01:59:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:59:59]Read from MH i2c: E2 [01:59:59]MH_I2C_Read... [01:59:59]Read from MH i2c: E2 03 00 [01:59:59]MH_I2C_Read... [01:59:59]Read from MH i2c: E2 03 00 36 1D 00 90 00 C7 [01:59:59]RAPDU: 90 00 [01:59:59]wFMCommunicate OK [01:59:59]wFMCommunicate request_size=11 [01:59:59]MH_SAM_APDU [01:59:59]CAPDU: 80 0D 02 02 06 F6 CF 7A D3 71 36 [01:59:59]Write to MH i2c: E2 0E 00 37 1D 80 0D 02 02 06 00 F6 CF 7A D3 71 36 00 00 93 [01:59:59]Write i2c OK [01:59:59]MH_I2C_Read... [01:59:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:59:59]Read from MH i2c: E2 [01:59:59]MH_I2C_Read... [01:59:59]Read from MH i2c: E2 03 00 [01:59:59]MH_I2C_Read... [01:59:59]Read from MH i2c: E2 03 00 37 1D 00 90 00 C8 [01:59:59]RAPDU: 90 00 [01:59:59]wFMCommunicate OK [01:59:59]wFMCommunicate request_size=4 [01:59:59]MH_SAM_APDU [01:59:59]CAPDU: 80 0D 03 02 [01:59:59]Write to MH i2c: E2 08 00 38 1D 80 0D 03 02 00 00 00 00 D0 [01:59:59]Write i2c OK [01:59:59]MH_I2C_Read... [01:59:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:59:59]Read from MH i2c: E2 [01:59:59]MH_I2C_Read... [01:59:59]Read from MH i2c: E2 0B 00 [01:59:59]MH_I2C_Read... [01:59:59]Read from MH i2c: E2 0B 00 38 1D 00 0D 69 67 E0 1B 0B 34 FF 90 00 E7 [01:59:59]RAPDU: 0D 69 67 E0 1B 0B 34 FF 90 00 [01:59:59]wFMCommunicate OK [01:59:59]SAM_PROTO_SignData done [01:59:59]FM_MakeSignedData done [01:59:59]CreateOFDProtocolMessage [01:59:59]wFMCommunicate request_size=4 [01:59:59]MH_SAM_APDU [01:59:59]CAPDU: 80 11 00 00 [01:59:59]Write to MH i2c: E2 08 00 39 1D 80 11 00 00 00 00 00 00 D0 [01:59:59]Write i2c OK [01:59:59]MH_I2C_Read... [01:59:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:59:59]Read from MH i2c: E2 [01:59:59]MH_I2C_Read... [01:59:59]Read from MH i2c: E2 17 00 [01:59:59]MH_I2C_Read... [01:59:59]Read from MH i2c: E2 17 00 39 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 23 [01:59:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [01:59:59]wFMCommunicate OK [01:59:59]CreateOFDProtocolMessage done [01:59:59]OFDSenderStorePacket 103822 [01:59:59]StoreOFDPacket docnum=103822 [01:59:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 32 B7 08 01 77 E8 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 DC 17 02 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 6A 42 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 42 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 92 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D7 9E 01 00 00 00 07 04 06 00 40 42 0F 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 20 8D 73 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 8E 95 01 00 35 04 06 00 F6 CF 7A D3 71 36 0D 69 67 E0 1B 0B 34 FF [01:59:59]CheckFolder [01:59:59]dirname=/storage/ofd_packets [01:59:59]CheckFolder done [01:59:59]ProducePacketName [01:59:59]name=ofd_packets/00103822 [01:59:59]NVStorageSaveData ofd_packets/00103822 [01:59:59]File name is /storage/ofd_packets/00103822 [01:59:59]Write 302 bytes [01:59:59]NVStorageSaveData done [01:59:59]OFDSenderStorePacket done [01:59:59]KKMCreateOFDPacket done [01:59:59]NVStorageSaveData kkm_last_timestamp [01:59:59]File name is /storage/kkm_last_timestamp [01:59:59]Write 4 bytes [01:59:59]NVStorageSaveData done [01:59:59]ExternCall_PrintAddStr [01:59:59]wPrintStart [01:59:59]Write to MH i2c: 01 00 00 3A 1D 57 [01:59:59]Write i2c OK [01:59:59]MH_I2C_Read... [01:59:59]Read from MH i2c: 01 [01:59:59]MH_I2C_Read... [01:59:59]Read from MH i2c: 01 07 00 [01:59:59]MH_I2C_Read... [01:59:59]Read from MH i2c: 01 07 00 3A 1D 00 00 00 00 00 FF 0F 6C [01:59:59]RasterBufferAndPrint [01:59:59]line Счет N : (1)673133 [01:59:59]line ИНН: 02508201610067 [01:59:59]line Контрольно-Кассовый Чек [01:59:59]line ПРОДАЖА [01:59:59]line ТРК (МРК, ГНК) : 11 [01:59:59]line Товар: 2710194210 [01:59:59]line ДТ(л)-К-5 [01:59:59]line 137.180 * 72.90 [01:59:59]line = 10000.42 [01:59:59]line НДС 12% НСП 1% [01:59:59]line > о реализуемом товаре [01:59:59]line ОКРУГЛЕНИЕ: -0.42 [01:59:59]line ИТОГО: 10000.00 [01:59:59]line Внесено: 10000.00 [01:59:59]line СДАЧА: 0.00 [01:59:59]line НСП 1% : 88.50 [01:59:59]line НДС 12% : 1061.99 [01:59:59]line Наличными: 10000.00 [01:59:59]line Безнал.: 0.00 [01:59:59]line Место: АЗС № 120 "Партнер Нефть" [01:59:59]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [01:59:59]line СНО: Общий режим [01:59:59]line Чек 7 20.06.2024 02:00 [01:59:59]line Смена: 354 ФФД: 1.0 [01:59:59]line ЗНМ: 0300000164 [01:59:59]line РНМ: 0000000000092785 [01:59:59]line Версия ККМ: 001 [01:59:59]line ФМ: 0000000000875093 [01:59:59]line ФД: 103822 [01:59:59]line ФПД: 271370979340598 [02:00:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T020000&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103822&fm=271370979340598&tin=02508201610067®Number=0000000000092785&sum=1000000 [02:00:00]OFD Sender: Processing packet 103822 [packets to send 17, broken 16] [02:00:00]ProducePacketName [02:00:00]name=ofd_packets/00103822 [02:00:00]OFD Sender: To server: pG, [02:00:00]CommunicateWithHost lk.salyk.kg:30040 [02:00:00]ConnectInit lk.salyk.kg [02:00:00]written 0, free lines is 4095 [02:00:00]Connected sock=10 [02:00: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 39 33 10 01 00 00 32 B7 08 01 77 E8 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 DC 17 02 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 6A 42 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 42 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 92 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D7 9E 01 00 00 00 07 04 06 00 40 42 0F 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 20 8D 73 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 8E 95 01 00 35 04 06 00 F6 CF 7A D3 71 36 0D 69 67 E0 1B 0B 34 FF [02:00: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 39 33 4F 00 00 00 34 94 47 00 65 BC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 8E 95 01 00 F4 03 04 00 A7 33 73 66 B6 04 01 00 00 55 76 0C 9A F4 DB CE 76 [02:00:00]CommunicateWithHost err = 0 [02:00:00]CheckOFDResponse [02:00:00]1017 (14) - 77093643461234 [02:00:00]1041 (16) - 0000000000875093 [02:00:00]1040 (4) - 103822 [02:00:00]1012 (4) - 19.06.2024 19:38 [02:00:00]1206 (1) - 0 [02:00:00]OFD Sender: Remove packet 103822 [02:00:00]ProducePacketName [02:00:00]name=ofd_packets/00103822 [02:00:00]NVStorageDeleteData [02:00:00]Write to MH i2c: 01 00 00 65 1D 82 [02:00:00]Write i2c OK [02:00:00]MH_I2C_Read... [02:00:00]Read from MH i2c: 01 [02:00:00]MH_I2C_Read... [02:00:00]Read from MH i2c: 01 07 00 [02:00:00]MH_I2C_Read... [02:00:00]Read from MH i2c: 01 07 00 65 1D 00 00 00 00 00 D5 0C 6A [02:00:00]RasterBufferAndPrint [02:00:00]line [02:00:00]line [02:00:00]line [02:00:00]line [02:00:00]line [02:00:00]written 0, free lines is 3294 [02:00:00]MH_Cut [02:00:00]Write to MH i2c: D1 01 00 6C 1D 01 5B [02:00:00]Write i2c OK [02:00:00]MH_I2C_Read... [02:00:00]Read from MH i2c: D1 [02:00:00]MH_I2C_Read... [02:00:00]Read from MH i2c: D1 01 00 [02:00:00]MH_I2C_Read... [02:00:00]Read from MH i2c: D1 01 00 6C 1D 00 5A [02:00:00]Write to MH i2c: 01 00 00 6D 1D 8A [02:00:00]Write i2c OK [02:00:00]MH_I2C_Read... [02:00:00]OFD Sender: No OFD packet to send [02:00:01]*** Cut start [02:00:01]*** Partial cut [02:00:01]*** CUTSNS_PIN = 1 [02:00:01]*** CUTSNS_PIN = 0 [02:00:01]*** Brake cut motor [02:00:01]Read from MH i2c: 01 [02:00:01]MH_I2C_Read... [02:00:01]*** Stop cut motor [02:00:01]*** Cut end [02:00:01]Read from MH i2c: 01 07 00 [02:00:01]MH_I2C_Read... [02:00:01]Read from MH i2c: 01 07 00 6D 1D 00 00 00 00 00 FF 0F 9F [02:00:01]process_action close_receipt done [02:00:01]requested_data is exist [02:00:01]produce_requested_data [02:00:01]requested_item fm.sn is exist - process it [02:00:01]wFMCommunicate request_size=4 [02:00:01]MH_SAM_APDU [02:00:01]CAPDU: 80 11 00 00 [02:00:01]Write to MH i2c: E2 08 00 6E 1D 80 11 00 00 00 00 00 00 05 [02:00:01]Write i2c OK [02:00:01]MH_I2C_Read... [02:00:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:00:01]Read from MH i2c: E2 [02:00:01]MH_I2C_Read... [02:00:01]Read from MH i2c: E2 17 00 [02:00:01]MH_I2C_Read... [02:00:01]Read from MH i2c: E2 17 00 6E 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 58 [02:00:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [02:00:01]wFMCommunicate OK [02:00:01]requested_item fd.num is exist - process it [02:00:01]SAM_PROTO_GetFieldsCounters [02:00:01]wFMCommunicate request_size=4 [02:00:01]MH_SAM_APDU [02:00:01]CAPDU: 80 13 00 00 [02:00:01]Write to MH i2c: E2 08 00 6F 1D 80 13 00 00 00 00 00 00 08 [02:00:01]Write i2c OK [02:00:01]MH_I2C_Read... [02:00:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:00:02]Read from MH i2c: E2 [02:00:02]MH_I2C_Read... [02:00:02]Read from MH i2c: E2 62 00 [02:00:02]MH_I2C_Read... [02:00:02]Read from MH i2c: E2 62 00 6F 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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 8E 95 01 00 0E 04 04 00 62 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 CB [02:00:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 8E 95 01 00 0E 04 04 00 62 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 [02:00:02]wFMCommunicate OK [02:00:02]SAM_PROTO_GetFieldsCounters done [02:00:02]requested_item shift.num is exist - process it [02:00:02]requested_item shift.opened is exist - process it [02:00:02]req_shift_opened [02:00:02]FM_GetShiftState [02:00:02]SAM_PROTO_GetShiftState [02:00:02]wFMCommunicate request_size=4 [02:00:02]MH_SAM_APDU [02:00:02]CAPDU: 80 13 01 00 [02:00:02]Write to MH i2c: E2 08 00 70 1D 80 13 01 00 00 00 00 00 0A [02:00:02]Write i2c OK [02:00:02]MH_I2C_Read... [02:00:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:00:02]Read from MH i2c: E2 [02:00:02]MH_I2C_Read... [02:00:02]Read from MH i2c: E2 0E 00 [02:00:02]MH_I2C_Read... [02:00:02]Read from MH i2c: E2 0E 00 70 1D 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 59 [02:00:02]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [02:00:02]wFMCommunicate OK [02:00:02]SAM_PROTO_GetShiftState done [02:00:02]FM_GetShiftState done [02:00:02]req_shift_opened done [02:00:02]requested_item shift.open_date is exist - process it [02:00:02]req_shift_open_date [02:00:02]req_shift_open_date done [02:00:02]produce_requested_data done [02:00:02]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103822,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [02:00:02]process_action_free close_receipt [02:00:02]json_value_free [02:00:02]json_value_free done [02:00:02]process_json_proto returns [02:00:02]Send response to host [02:00:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103822,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [02:00:02]free response buf [02:00:02]execute_script done [02:00:02]execute_script returns [02:00:02]free content buf [02:00:02]Sock 9.Close socket [02:00:02]Sock 9.Thread stoped [02:00:05]OFD Sender: No OFD packet to send [02:00:10]OFD Sender: No OFD packet to send [02:00:15]OFD Sender: No OFD packet to send [02:00:20]OFD Sender: No OFD packet to send [02:00:25]OFD Sender: No OFD packet to send [02:00:30]OFD Sender: No OFD packet to send [02:00:35]OFD Sender: No OFD packet to send [02:00:40]OFD Sender: No OFD packet to send [02:00:45]OFD Sender: No OFD packet to send [02:00:50]OFD Sender: No OFD packet to send [02:00:55]OFD Sender: No OFD packet to send [02:01:01]OFD Sender: No OFD packet to send [02:01:06]OFD Sender: No OFD packet to send [02:01:11]OFD Sender: No OFD packet to send [02:01:16]OFD Sender: No OFD packet to send [02:01:21]OFD Sender: No OFD packet to send [02:01:26]OFD Sender: No OFD packet to send [02:01:31]OFD Sender: No OFD packet to send [02:01:36]OFD Sender: No OFD packet to send [02:01:41]OFD Sender: No OFD packet to send [02:01:46]OFD Sender: No OFD packet to send [02:01:51]OFD Sender: No OFD packet to send [02:01:56]OFD Sender: No OFD packet to send [02:02:01]OFD Sender: No OFD packet to send [02:02:06]OFD Sender: No OFD packet to send [02:02:11]OFD Sender: No OFD packet to send [02:02:16]OFD Sender: No OFD packet to send [02:02:21]OFD Sender: No OFD packet to send [02:02:26]OFD Sender: No OFD packet to send [02:02:31]OFD Sender: No OFD packet to send [02:02:36]OFD Sender: No OFD packet to send [02:02:41]OFD Sender: No OFD packet to send [02:02:46]OFD Sender: No OFD packet to send [02:02:51]OFD Sender: No OFD packet to send [02:02:56]OFD Sender: No OFD packet to send [02:03:01]OFD Sender: No OFD packet to send [02:03:06]OFD Sender: No OFD packet to send [02:03:11]OFD Sender: No OFD packet to send [02:03:16]OFD Sender: No OFD packet to send [02:03:21]OFD Sender: No OFD packet to send [02:03:26]OFD Sender: No OFD packet to send [02:03:31]OFD Sender: No OFD packet to send [02:03:36]OFD Sender: No OFD packet to send [02:03:41]OFD Sender: No OFD packet to send [02:03:46]OFD Sender: No OFD packet to send [02:03:51]OFD Sender: No OFD packet to send [02:03:56]OFD Sender: No OFD packet to send [02:04:01]OFD Sender: No OFD packet to send [02:04:06]OFD Sender: No OFD packet to send [02:04:11]OFD Sender: No OFD packet to send [02:04:16]OFD Sender: No OFD packet to send [02:04:21]OFD Sender: No OFD packet to send [02:04:26]OFD Sender: No OFD packet to send [02:04:31]OFD Sender: No OFD packet to send [02:04:36]OFD Sender: No OFD packet to send [02:04:41]OFD Sender: No OFD packet to send [02:04:46]OFD Sender: No OFD packet to send [02:04:51]OFD Sender: No OFD packet to send [02:04:56]OFD Sender: No OFD packet to send [02:05:01]OFD Sender: No OFD packet to send [02:05:06]OFD Sender: No OFD packet to send [02:05:11]OFD Sender: No OFD packet to send [02:05:16]OFD Sender: No OFD packet to send [02:05:21]OFD Sender: No OFD packet to send [02:05:26]OFD Sender: No OFD packet to send [02:05:31]OFD Sender: No OFD packet to send [02:05:36]OFD Sender: No OFD packet to send [02:05:41]OFD Sender: No OFD packet to send [02:05:46]OFD Sender: No OFD packet to send [02:05:51]OFD Sender: No OFD packet to send [02:05:56]OFD Sender: No OFD packet to send [02:06:01]OFD Sender: No OFD packet to send [02:06:06]OFD Sender: No OFD packet to send [02:06:11]OFD Sender: No OFD packet to send [02:06:16]OFD Sender: No OFD packet to send [02:06:21]OFD Sender: No OFD packet to send [02:06:26]OFD Sender: No OFD packet to send [02:06:31]OFD Sender: No OFD packet to send [02:06:36]OFD Sender: No OFD packet to send [02:06:41]OFD Sender: No OFD packet to send [02:06:46]OFD Sender: No OFD packet to send [02:06:51]OFD Sender: No OFD packet to send [02:06:56]OFD Sender: No OFD packet to send [02:07:01]OFD Sender: No OFD packet to send [02:07:06]OFD Sender: No OFD packet to send [02:07:11]OFD Sender: No OFD packet to send [02:07:16]OFD Sender: No OFD packet to send [02:07:21]OFD Sender: No OFD packet to send [02:07:26]OFD Sender: No OFD packet to send [02:07:31]OFD Sender: No OFD packet to send [02:07:36]OFD Sender: No OFD packet to send [02:07:41]OFD Sender: No OFD packet to send [02:07:46]OFD Sender: No OFD packet to send [02:07:51]OFD Sender: No OFD packet to send [02:07:56]OFD Sender: No OFD packet to send [02:08:01]OFD Sender: No OFD packet to send [02:08:06]OFD Sender: No OFD packet to send [02:08:11]OFD Sender: No OFD packet to send [02:08:16]OFD Sender: No OFD packet to send [02:08:21]OFD Sender: No OFD packet to send [02:08:26]OFD Sender: No OFD packet to send [02:08:31]OFD Sender: No OFD packet to send [02:08:36]OFD Sender: No OFD packet to send [02:08:41]OFD Sender: No OFD packet to send [02:08:46]OFD Sender: No OFD packet to send [02:08:51]OFD Sender: No OFD packet to send [02:08:56]OFD Sender: No OFD packet to send [02:09:01]OFD Sender: No OFD packet to send [02:09:06]OFD Sender: No OFD packet to send [02:09:11]OFD Sender: No OFD packet to send [02:09:16]OFD Sender: No OFD packet to send [02:09:21]OFD Sender: No OFD packet to send [02:09:26]OFD Sender: No OFD packet to send [02:09:31]OFD Sender: No OFD packet to send [02:09:36]OFD Sender: No OFD packet to send [02:09:41]OFD Sender: No OFD packet to send [02:09:46]OFD Sender: No OFD packet to send [02:09:51]OFD Sender: No OFD packet to send [02:09:56]OFD Sender: No OFD packet to send [02:10:01]OFD Sender: No OFD packet to send [02:10:06]OFD Sender: No OFD packet to send [02:10:11]OFD Sender: No OFD packet to send [02:10:16]OFD Sender: No OFD packet to send [02:10:21]OFD Sender: No OFD packet to send [02:10:26]OFD Sender: No OFD packet to send [02:10:31]OFD Sender: No OFD packet to send [02:10:36]OFD Sender: No OFD packet to send [02:10:41]OFD Sender: No OFD packet to send [02:10:46]OFD Sender: No OFD packet to send [02:10:51]OFD Sender: No OFD packet to send [02:10:56]OFD Sender: No OFD packet to send [02:11:01]OFD Sender: No OFD packet to send [02:11:06]OFD Sender: No OFD packet to send [02:11:11]OFD Sender: No OFD packet to send [02:11:16]OFD Sender: No OFD packet to send [02:11:21]OFD Sender: No OFD packet to send [02:11:26]OFD Sender: No OFD packet to send [02:11:31]OFD Sender: No OFD packet to send [02:11:36]OFD Sender: No OFD packet to send [02:11:41]OFD Sender: No OFD packet to send [02:11:46]OFD Sender: No OFD packet to send [02:11:51]OFD Sender: No OFD packet to send [02:11:56]OFD Sender: No OFD packet to send [02:12:01]OFD Sender: No OFD packet to send [02:12:06]OFD Sender: No OFD packet to send [02:12:11]OFD Sender: No OFD packet to send [02:12:16]OFD Sender: No OFD packet to send [02:12:21]OFD Sender: No OFD packet to send [02:12:26]OFD Sender: No OFD packet to send [02:12:31]OFD Sender: No OFD packet to send [02:12:36]OFD Sender: No OFD packet to send [02:12:41]OFD Sender: No OFD packet to send [02:12:46]OFD Sender: No OFD packet to send [02:12:51]OFD Sender: No OFD packet to send [02:12:56]OFD Sender: No OFD packet to send [02:13:01]OFD Sender: No OFD packet to send [02:13:06]OFD Sender: No OFD packet to send [02:13:11]OFD Sender: No OFD packet to send [02:13:16]OFD Sender: No OFD packet to send [02:13:21]OFD Sender: No OFD packet to send [02:13:26]OFD Sender: No OFD packet to send [02:13:31]OFD Sender: No OFD packet to send [02:13:36]OFD Sender: No OFD packet to send [02:13:41]OFD Sender: No OFD packet to send [02:13:46]OFD Sender: No OFD packet to send [02:13:51]OFD Sender: No OFD packet to send [02:13:56]OFD Sender: No OFD packet to send [02:14:01]OFD Sender: No OFD packet to send [02:14:06]OFD Sender: No OFD packet to send [02:14:11]OFD Sender: No OFD packet to send [02:14:16]OFD Sender: No OFD packet to send [02:14:21]OFD Sender: No OFD packet to send [02:14:26]OFD Sender: No OFD packet to send [02:14:31]OFD Sender: No OFD packet to send [02:14:36]OFD Sender: No OFD packet to send [02:14:41]OFD Sender: No OFD packet to send [02:14:46]OFD Sender: No OFD packet to send [02:14:51]OFD Sender: No OFD packet to send [02:14:56]OFD Sender: No OFD packet to send [02:15:01]OFD Sender: No OFD packet to send [02:15:06]OFD Sender: No OFD packet to send [02:15:11]OFD Sender: No OFD packet to send [02:15:16]OFD Sender: No OFD packet to send [02:15:21]OFD Sender: No OFD packet to send [02:15:26]OFD Sender: No OFD packet to send [02:15:31]OFD Sender: No OFD packet to send [02:15:36]OFD Sender: No OFD packet to send [02:15:41]OFD Sender: No OFD packet to send [02:15:46]OFD Sender: No OFD packet to send [02:15:51]OFD Sender: No OFD packet to send [02:15:56]OFD Sender: No OFD packet to send [02:16:01]OFD Sender: No OFD packet to send [02:16:06]OFD Sender: No OFD packet to send [02:16:11]OFD Sender: No OFD packet to send [02:16:16]OFD Sender: No OFD packet to send [02:16:21]OFD Sender: No OFD packet to send [02:16:26]OFD Sender: No OFD packet to send [02:16:31]OFD Sender: No OFD packet to send [02:16:36]OFD Sender: No OFD packet to send [02:16:41]OFD Sender: No OFD packet to send [02:16:46]OFD Sender: No OFD packet to send [02:16:51]OFD Sender: No OFD packet to send [02:16:56]OFD Sender: No OFD packet to send [02:17:01]OFD Sender: No OFD packet to send [02:17:06]OFD Sender: No OFD packet to send [02:17:11]OFD Sender: No OFD packet to send [02:17:16]OFD Sender: No OFD packet to send [02:17:21]OFD Sender: No OFD packet to send [02:17:26]OFD Sender: No OFD packet to send [02:17:31]OFD Sender: No OFD packet to send [02:17:36]OFD Sender: No OFD packet to send [02:17:41]OFD Sender: No OFD packet to send [02:17:46]OFD Sender: No OFD packet to send [02:17:51]OFD Sender: No OFD packet to send [02:17:56]OFD Sender: No OFD packet to send [02:18:01]OFD Sender: No OFD packet to send [02:18:06]OFD Sender: No OFD packet to send [02:18:11]OFD Sender: No OFD packet to send [02:18:16]OFD Sender: No OFD packet to send [02:18:21]OFD Sender: No OFD packet to send [02:18:26]OFD Sender: No OFD packet to send [02:18:31]OFD Sender: No OFD packet to send [02:18:36]OFD Sender: No OFD packet to send [02:18:41]OFD Sender: No OFD packet to send [02:18:46]OFD Sender: No OFD packet to send [02:18:51]OFD Sender: No OFD packet to send [02:18:56]OFD Sender: No OFD packet to send [02:19:01]OFD Sender: No OFD packet to send [02:19:06]OFD Sender: No OFD packet to send [02:19:11]OFD Sender: No OFD packet to send [02:19:16]OFD Sender: No OFD packet to send [02:19:21]OFD Sender: No OFD packet to send [02:19:26]OFD Sender: No OFD packet to send [02:19:31]OFD Sender: No OFD packet to send [02:19:36]OFD Sender: No OFD packet to send [02:19:41]OFD Sender: No OFD packet to send [02:19:46]OFD Sender: No OFD packet to send [02:19:51]OFD Sender: No OFD packet to send [02:19:56]OFD Sender: No OFD packet to send [02:20:01]OFD Sender: No OFD packet to send [02:20:06]OFD Sender: No OFD packet to send [02:20:11]OFD Sender: No OFD packet to send [02:20:16]OFD Sender: No OFD packet to send [02:20:21]OFD Sender: No OFD packet to send [02:20:26]OFD Sender: No OFD packet to send [02:20:31]OFD Sender: No OFD packet to send [02:20:36]OFD Sender: No OFD packet to send [02:20:41]OFD Sender: No OFD packet to send [02:20:46]OFD Sender: No OFD packet to send [02:20:51]OFD Sender: No OFD packet to send [02:20:56]OFD Sender: No OFD packet to send [02:21:01]OFD Sender: No OFD packet to send [02:21:06]OFD Sender: No OFD packet to send [02:21:11]OFD Sender: No OFD packet to send [02:21:16]OFD Sender: No OFD packet to send [02:21:21]OFD Sender: No OFD packet to send [02:21:26]OFD Sender: No OFD packet to send [02:21:31]OFD Sender: No OFD packet to send [02:21:36]OFD Sender: No OFD packet to send [02:21:41]OFD Sender: No OFD packet to send [02:21:46]OFD Sender: No OFD packet to send [02:21:52]OFD Sender: No OFD packet to send [02:21:57]OFD Sender: No OFD packet to send [02:22:02]OFD Sender: No OFD packet to send [02:22:07]OFD Sender: No OFD packet to send [02:22:12]OFD Sender: No OFD packet to send [02:22:17]OFD Sender: No OFD packet to send [02:22:22]OFD Sender: No OFD packet to send [02:22:27]OFD Sender: No OFD packet to send [02:22:32]OFD Sender: No OFD packet to send [02:22:37]OFD Sender: No OFD packet to send [02:22:42]OFD Sender: No OFD packet to send [02:22:47]OFD Sender: No OFD packet to send [02:22:52]OFD Sender: No OFD packet to send [02:22:57]OFD Sender: No OFD packet to send [02:23:02]OFD Sender: No OFD packet to send [02:23:07]OFD Sender: No OFD packet to send [02:23:12]OFD Sender: No OFD packet to send [02:23:17]OFD Sender: No OFD packet to send [02:23:22]OFD Sender: No OFD packet to send [02:23:27]OFD Sender: No OFD packet to send [02:23:32]OFD Sender: No OFD packet to send [02:23:37]OFD Sender: No OFD packet to send [02:23:42]OFD Sender: No OFD packet to send [02:23:47]OFD Sender: No OFD packet to send [02:23:52]OFD Sender: No OFD packet to send [02:23:57]OFD Sender: No OFD packet to send [02:24:02]OFD Sender: No OFD packet to send [02:24:07]OFD Sender: No OFD packet to send [02:24:12]OFD Sender: No OFD packet to send [02:24:17]OFD Sender: No OFD packet to send [02:24:22]OFD Sender: No OFD packet to send [02:24:27]OFD Sender: No OFD packet to send [02:24:32]OFD Sender: No OFD packet to send [02:24:37]OFD Sender: No OFD packet to send [02:24:42]OFD Sender: No OFD packet to send [02:24:47]OFD Sender: No OFD packet to send [02:24:52]OFD Sender: No OFD packet to send [02:24:57]OFD Sender: No OFD packet to send [02:25:02]OFD Sender: No OFD packet to send [02:25:07]OFD Sender: No OFD packet to send [02:25:12]OFD Sender: No OFD packet to send [02:25:17]OFD Sender: No OFD packet to send [02:25:22]OFD Sender: No OFD packet to send [02:25:27]OFD Sender: No OFD packet to send [02:25:32]OFD Sender: No OFD packet to send [02:25:37]OFD Sender: No OFD packet to send [02:25:42]OFD Sender: No OFD packet to send [02:25:47]OFD Sender: No OFD packet to send [02:25:52]OFD Sender: No OFD packet to send [02:25:57]OFD Sender: No OFD packet to send [02:26:02]OFD Sender: No OFD packet to send [02:26:07]OFD Sender: No OFD packet to send [02:26:12]OFD Sender: No OFD packet to send [02:26:17]OFD Sender: No OFD packet to send [02:26:22]OFD Sender: No OFD packet to send [02:26:27]OFD Sender: No OFD packet to send [02:26:32]OFD Sender: No OFD packet to send [02:26:37]OFD Sender: No OFD packet to send [02:26:42]OFD Sender: No OFD packet to send [02:26:47]OFD Sender: No OFD packet to send [02:26:52]OFD Sender: No OFD packet to send [02:26:57]OFD Sender: No OFD packet to send [02:27:02]OFD Sender: No OFD packet to send [02:27:07]OFD Sender: No OFD packet to send [02:27:12]OFD Sender: No OFD packet to send [02:27:17]OFD Sender: No OFD packet to send [02:27:22]OFD Sender: No OFD packet to send [02:27:27]OFD Sender: No OFD packet to send [02:27:32]OFD Sender: No OFD packet to send [02:27:37]OFD Sender: No OFD packet to send [02:27:42]OFD Sender: No OFD packet to send [02:27:47]OFD Sender: No OFD packet to send [02:27:52]OFD Sender: No OFD packet to send [02:27:57]OFD Sender: No OFD packet to send [02:28:02]OFD Sender: No OFD packet to send [02:28:07]OFD Sender: No OFD packet to send [02:28:12]OFD Sender: No OFD packet to send [02:28:17]OFD Sender: No OFD packet to send [02:28:22]OFD Sender: No OFD packet to send [02:28:27]OFD Sender: No OFD packet to send [02:28:32]OFD Sender: No OFD packet to send [02:28:37]OFD Sender: No OFD packet to send [02:28:42]OFD Sender: No OFD packet to send [02:28:47]OFD Sender: No OFD packet to send [02:28:52]OFD Sender: No OFD packet to send [02:28:57]OFD Sender: No OFD packet to send [02:29:02]OFD Sender: No OFD packet to send [02:29:07]OFD Sender: No OFD packet to send [02:29:12]OFD Sender: No OFD packet to send [02:29:17]OFD Sender: No OFD packet to send [02:29:22]OFD Sender: No OFD packet to send [02:29:27]OFD Sender: No OFD packet to send [02:29:32]OFD Sender: No OFD packet to send [02:29:37]OFD Sender: No OFD packet to send [02:29:42]OFD Sender: No OFD packet to send [02:29:47]OFD Sender: No OFD packet to send [02:29:52]OFD Sender: No OFD packet to send [02:29:57]OFD Sender: No OFD packet to send [02:30:02]OFD Sender: No OFD packet to send [02:30:07]OFD Sender: No OFD packet to send [02:30:12]OFD Sender: No OFD packet to send [02:30:17]OFD Sender: No OFD packet to send [02:30:22]OFD Sender: No OFD packet to send [02:30:27]OFD Sender: No OFD packet to send [02:30:32]OFD Sender: No OFD packet to send [02:30:37]OFD Sender: No OFD packet to send [02:30:42]OFD Sender: No OFD packet to send [02:30:47]OFD Sender: No OFD packet to send [02:30:52]OFD Sender: No OFD packet to send [02:30:57]OFD Sender: No OFD packet to send [02:31:02]OFD Sender: No OFD packet to send [02:31:07]OFD Sender: No OFD packet to send [02:31:12]OFD Sender: No OFD packet to send [02:31:17]OFD Sender: No OFD packet to send [02:31:22]OFD Sender: No OFD packet to send [02:31:27]OFD Sender: No OFD packet to send [02:31:32]OFD Sender: No OFD packet to send [02:31:37]OFD Sender: No OFD packet to send [02:31:42]OFD Sender: No OFD packet to send [02:31:47]OFD Sender: No OFD packet to send [02:31:52]OFD Sender: No OFD packet to send [02:31:57]OFD Sender: No OFD packet to send [02:32:02]OFD Sender: No OFD packet to send [02:32:07]OFD Sender: No OFD packet to send [02:32:12]OFD Sender: No OFD packet to send [02:32:17]OFD Sender: No OFD packet to send [02:32:22]OFD Sender: No OFD packet to send [02:32:27]OFD Sender: No OFD packet to send [02:32:32]OFD Sender: No OFD packet to send [02:32:37]OFD Sender: No OFD packet to send [02:32:42]OFD Sender: No OFD packet to send [02:32:47]OFD Sender: No OFD packet to send [02:32:52]OFD Sender: No OFD packet to send [02:32:57]OFD Sender: No OFD packet to send [02:33:02]OFD Sender: No OFD packet to send [02:33:07]OFD Sender: No OFD packet to send [02:33:12]OFD Sender: No OFD packet to send [02:33:17]OFD Sender: No OFD packet to send [02:33:22]OFD Sender: No OFD packet to send [02:33:27]OFD Sender: No OFD packet to send [02:33:32]OFD Sender: No OFD packet to send [02:33:37]OFD Sender: No OFD packet to send [02:33:42]OFD Sender: No OFD packet to send [02:33:47]OFD Sender: No OFD packet to send [02:33:52]OFD Sender: No OFD packet to send [02:33:57]OFD Sender: No OFD packet to send [02:34:02]OFD Sender: No OFD packet to send [02:34:07]OFD Sender: No OFD packet to send [02:34:12]OFD Sender: No OFD packet to send [02:34:17]OFD Sender: No OFD packet to send [02:34:22]OFD Sender: No OFD packet to send [02:34:27]OFD Sender: No OFD packet to send [02:34:32]OFD Sender: No OFD packet to send [02:34:37]OFD Sender: No OFD packet to send [02:34:42]OFD Sender: No OFD packet to send [02:34:47]OFD Sender: No OFD packet to send [02:34:52]OFD Sender: No OFD packet to send [02:34:57]OFD Sender: No OFD packet to send [02:35:02]OFD Sender: No OFD packet to send [02:35:07]OFD Sender: No OFD packet to send [02:35:12]OFD Sender: No OFD packet to send [02:35:17]OFD Sender: No OFD packet to send [02:35:22]OFD Sender: No OFD packet to send [02:35:27]OFD Sender: No OFD packet to send [02:35:32]OFD Sender: No OFD packet to send [02:35:37]OFD Sender: No OFD packet to send [02:35:42]OFD Sender: No OFD packet to send [02:35:47]OFD Sender: No OFD packet to send [02:35:52]OFD Sender: No OFD packet to send [02:35:57]OFD Sender: No OFD packet to send [02:36:02]OFD Sender: No OFD packet to send [02:36:07]OFD Sender: No OFD packet to send [02:36:12]OFD Sender: No OFD packet to send [02:36:17]OFD Sender: No OFD packet to send [02:36:22]OFD Sender: No OFD packet to send [02:36:27]OFD Sender: No OFD packet to send [02:36:32]OFD Sender: No OFD packet to send [02:36:37]OFD Sender: No OFD packet to send [02:36:42]OFD Sender: No OFD packet to send [02:36:47]OFD Sender: No OFD packet to send [02:36:52]OFD Sender: No OFD packet to send [02:36:57]OFD Sender: No OFD packet to send [02:37:02]OFD Sender: No OFD packet to send [02:37:07]OFD Sender: No OFD packet to send [02:37:12]OFD Sender: No OFD packet to send [02:37:17]OFD Sender: No OFD packet to send [02:37:22]OFD Sender: No OFD packet to send [02:37:27]OFD Sender: No OFD packet to send [02:37:32]OFD Sender: No OFD packet to send [02:37:37]OFD Sender: No OFD packet to send [02:37:42]OFD Sender: No OFD packet to send [02:37:47]OFD Sender: No OFD packet to send [02:37:52]OFD Sender: No OFD packet to send [02:37:57]OFD Sender: No OFD packet to send [02:38:02]OFD Sender: No OFD packet to send [02:38:07]OFD Sender: No OFD packet to send [02:38:12]OFD Sender: No OFD packet to send [02:38:17]OFD Sender: No OFD packet to send [02:38:22]OFD Sender: No OFD packet to send [02:38:27]OFD Sender: No OFD packet to send [02:38:32]OFD Sender: No OFD packet to send [02:38:37]OFD Sender: No OFD packet to send [02:38:42]OFD Sender: No OFD packet to send [02:38:47]OFD Sender: No OFD packet to send [02:38:52]OFD Sender: No OFD packet to send [02:38:57]OFD Sender: No OFD packet to send [02:39:02]OFD Sender: No OFD packet to send [02:39:07]OFD Sender: No OFD packet to send [02:39:12]OFD Sender: No OFD packet to send [02:39:17]OFD Sender: No OFD packet to send [02:39:22]OFD Sender: No OFD packet to send [02:39:27]OFD Sender: No OFD packet to send [02:39:32]OFD Sender: No OFD packet to send [02:39:37]OFD Sender: No OFD packet to send [02:39:42]OFD Sender: No OFD packet to send [02:39:47]OFD Sender: No OFD packet to send [02:39:52]OFD Sender: No OFD packet to send [02:39:57]OFD Sender: No OFD packet to send [02:40:02]OFD Sender: No OFD packet to send [02:40:07]OFD Sender: No OFD packet to send [02:40:12]OFD Sender: No OFD packet to send [02:40:17]OFD Sender: No OFD packet to send [02:40:22]OFD Sender: No OFD packet to send [02:40:27]OFD Sender: No OFD packet to send [02:40:32]OFD Sender: No OFD packet to send [02:40:37]OFD Sender: No OFD packet to send [02:40:42]OFD Sender: No OFD packet to send [02:40:47]OFD Sender: No OFD packet to send [02:40:52]OFD Sender: No OFD packet to send [02:40:57]OFD Sender: No OFD packet to send [02:41:02]OFD Sender: No OFD packet to send [02:41:07]OFD Sender: No OFD packet to send [02:41:12]OFD Sender: No OFD packet to send [02:41:17]OFD Sender: No OFD packet to send [02:41:22]OFD Sender: No OFD packet to send [02:41:27]OFD Sender: No OFD packet to send [02:41:32]OFD Sender: No OFD packet to send [02:41:37]OFD Sender: No OFD packet to send [02:41:42]OFD Sender: No OFD packet to send [02:41:47]OFD Sender: No OFD packet to send [02:41:52]OFD Sender: No OFD packet to send [02:41:57]OFD Sender: No OFD packet to send [02:42:02]OFD Sender: No OFD packet to send [02:42:07]OFD Sender: No OFD packet to send [02:42:12]OFD Sender: No OFD packet to send [02:42:18]OFD Sender: No OFD packet to send [02:42:23]OFD Sender: No OFD packet to send [02:42:28]OFD Sender: No OFD packet to send [02:42:33]OFD Sender: No OFD packet to send [02:42:38]OFD Sender: No OFD packet to send [02:42:43]OFD Sender: No OFD packet to send [02:42:48]OFD Sender: No OFD packet to send [02:42:53]OFD Sender: No OFD packet to send [02:42:58]OFD Sender: No OFD packet to send [02:43:03]OFD Sender: No OFD packet to send [02:43:08]OFD Sender: No OFD packet to send [02:43:13]OFD Sender: No OFD packet to send [02:43:18]OFD Sender: No OFD packet to send [02:43:23]OFD Sender: No OFD packet to send [02:43:28]OFD Sender: No OFD packet to send [02:43:33]OFD Sender: No OFD packet to send [02:43:38]OFD Sender: No OFD packet to send [02:43:43]OFD Sender: No OFD packet to send [02:43:48]OFD Sender: No OFD packet to send [02:43:53]OFD Sender: No OFD packet to send [02:43:58]OFD Sender: No OFD packet to send [02:44:03]OFD Sender: No OFD packet to send [02:44:08]OFD Sender: No OFD packet to send [02:44:13]OFD Sender: No OFD packet to send [02:44:18]OFD Sender: No OFD packet to send [02:44:23]OFD Sender: No OFD packet to send [02:44:28]OFD Sender: No OFD packet to send [02:44:33]OFD Sender: No OFD packet to send [02:44:38]OFD Sender: No OFD packet to send [02:44:43]OFD Sender: No OFD packet to send [02:44:48]OFD Sender: No OFD packet to send [02:44:53]OFD Sender: No OFD packet to send [02:44:58]OFD Sender: No OFD packet to send [02:45:03]OFD Sender: No OFD packet to send [02:45:08]OFD Sender: No OFD packet to send [02:45:13]OFD Sender: No OFD packet to send [02:45:18]OFD Sender: No OFD packet to send [02:45:23]OFD Sender: No OFD packet to send [02:45:28]OFD Sender: No OFD packet to send [02:45:33]OFD Sender: No OFD packet to send [02:45:38]OFD Sender: No OFD packet to send [02:45:43]OFD Sender: No OFD packet to send [02:45:48]OFD Sender: No OFD packet to send [02:45:53]OFD Sender: No OFD packet to send [02:45:58]OFD Sender: No OFD packet to send [02:46:03]OFD Sender: No OFD packet to send [02:46:08]OFD Sender: No OFD packet to send [02:46:13]OFD Sender: No OFD packet to send [02:46:18]OFD Sender: No OFD packet to send [02:46:23]OFD Sender: No OFD packet to send [02:46:28]OFD Sender: No OFD packet to send [02:46:33]OFD Sender: No OFD packet to send [02:46:38]OFD Sender: No OFD packet to send [02:46:43]OFD Sender: No OFD packet to send [02:46:48]OFD Sender: No OFD packet to send [02:46:53]OFD Sender: No OFD packet to send [02:46:58]OFD Sender: No OFD packet to send [02:47:03]OFD Sender: No OFD packet to send [02:47:08]OFD Sender: No OFD packet to send [02:47:13]OFD Sender: No OFD packet to send [02:47:18]OFD Sender: No OFD packet to send [02:47:23]OFD Sender: No OFD packet to send [02:47:28]OFD Sender: No OFD packet to send [02:47:33]OFD Sender: No OFD packet to send [02:47:38]OFD Sender: No OFD packet to send [02:47:43]OFD Sender: No OFD packet to send [02:47:48]OFD Sender: No OFD packet to send [02:47:53]OFD Sender: No OFD packet to send [02:47:58]OFD Sender: No OFD packet to send [02:48:03]OFD Sender: No OFD packet to send [02:48:08]OFD Sender: No OFD packet to send [02:48:13]OFD Sender: No OFD packet to send [02:48:18]OFD Sender: No OFD packet to send [02:48:23]OFD Sender: No OFD packet to send [02:48:28]OFD Sender: No OFD packet to send [02:48:33]OFD Sender: No OFD packet to send [02:48:38]OFD Sender: No OFD packet to send [02:48:43]OFD Sender: No OFD packet to send [02:48:48]OFD Sender: No OFD packet to send [02:48:53]OFD Sender: No OFD packet to send [02:48:58]OFD Sender: No OFD packet to send [02:49:03]OFD Sender: No OFD packet to send [02:49:08]OFD Sender: No OFD packet to send [02:49:13]OFD Sender: No OFD packet to send [02:49:18]OFD Sender: No OFD packet to send [02:49:23]OFD Sender: No OFD packet to send [02:49:28]OFD Sender: No OFD packet to send [02:49:33]OFD Sender: No OFD packet to send [02:49:38]OFD Sender: No OFD packet to send [02:49:43]OFD Sender: No OFD packet to send [02:49:48]OFD Sender: No OFD packet to send [02:49:53]OFD Sender: No OFD packet to send [02:49:58]OFD Sender: No OFD packet to send [02:50:03]OFD Sender: No OFD packet to send [02:50:08]OFD Sender: No OFD packet to send [02:50:13]OFD Sender: No OFD packet to send [02:50:18]OFD Sender: No OFD packet to send [02:50:23]OFD Sender: No OFD packet to send [02:50:28]OFD Sender: No OFD packet to send [02:50:33]OFD Sender: No OFD packet to send [02:50:38]OFD Sender: No OFD packet to send [02:50:43]OFD Sender: No OFD packet to send [02:50:48]OFD Sender: No OFD packet to send [02:50:53]OFD Sender: No OFD packet to send [02:50:58]OFD Sender: No OFD packet to send [02:51:03]OFD Sender: No OFD packet to send [02:51:08]OFD Sender: No OFD packet to send [02:51:13]OFD Sender: No OFD packet to send [02:51:18]OFD Sender: No OFD packet to send [02:51:23]OFD Sender: No OFD packet to send [02:51:28]OFD Sender: No OFD packet to send [02:51:33]OFD Sender: No OFD packet to send [02:51:38]OFD Sender: No OFD packet to send [02:51:43]OFD Sender: No OFD packet to send [02:51:48]OFD Sender: No OFD packet to send [02:51:53]OFD Sender: No OFD packet to send [02:51:58]OFD Sender: No OFD packet to send [02:52:03]OFD Sender: No OFD packet to send [02:52:08]OFD Sender: No OFD packet to send [02:52:13]OFD Sender: No OFD packet to send [02:52:18]OFD Sender: No OFD packet to send [02:52:23]OFD Sender: No OFD packet to send [02:52:28]OFD Sender: No OFD packet to send [02:52:33]OFD Sender: No OFD packet to send [02:52:38]OFD Sender: No OFD packet to send [02:52:43]OFD Sender: No OFD packet to send [02:52:48]OFD Sender: No OFD packet to send [02:52:53]OFD Sender: No OFD packet to send [02:52:58]OFD Sender: No OFD packet to send [02:53:03]OFD Sender: No OFD packet to send [02:53:08]OFD Sender: No OFD packet to send [02:53:13]OFD Sender: No OFD packet to send [02:53:18]OFD Sender: No OFD packet to send [02:53:23]OFD Sender: No OFD packet to send [02:53:28]OFD Sender: No OFD packet to send [02:53:33]OFD Sender: No OFD packet to send [02:53:38]OFD Sender: No OFD packet to send [02:53:43]OFD Sender: No OFD packet to send [02:53:48]OFD Sender: No OFD packet to send [02:53:53]OFD Sender: No OFD packet to send [02:53:58]OFD Sender: No OFD packet to send [02:54:03]OFD Sender: No OFD packet to send [02:54:08]OFD Sender: No OFD packet to send [02:54:13]OFD Sender: No OFD packet to send [02:54:18]OFD Sender: No OFD packet to send [02:54:23]OFD Sender: No OFD packet to send [02:54:28]OFD Sender: No OFD packet to send [02:54:33]OFD Sender: No OFD packet to send [02:54:38]OFD Sender: No OFD packet to send [02:54:43]OFD Sender: No OFD packet to send [02:54:48]OFD Sender: No OFD packet to send [02:54:53]OFD Sender: No OFD packet to send [02:54:58]OFD Sender: No OFD packet to send [02:55:03]OFD Sender: No OFD packet to send [02:55:08]OFD Sender: No OFD packet to send [02:55:13]OFD Sender: No OFD packet to send [02:55:18]OFD Sender: No OFD packet to send [02:55:23]OFD Sender: No OFD packet to send [02:55:28]OFD Sender: No OFD packet to send [02:55:33]OFD Sender: No OFD packet to send [02:55:38]OFD Sender: No OFD packet to send [02:55:43]OFD Sender: No OFD packet to send [02:55:48]OFD Sender: No OFD packet to send [02:55:53]OFD Sender: No OFD packet to send [02:55:58]OFD Sender: No OFD packet to send [02:56:03]OFD Sender: No OFD packet to send [02:56:08]OFD Sender: No OFD packet to send [02:56:13]OFD Sender: No OFD packet to send [02:56:18]OFD Sender: No OFD packet to send [02:56:23]OFD Sender: No OFD packet to send [02:56:28]OFD Sender: No OFD packet to send [02:56:33]OFD Sender: No OFD packet to send [02:56:38]OFD Sender: No OFD packet to send [02:56:43]OFD Sender: No OFD packet to send [02:56:48]OFD Sender: No OFD packet to send [02:56:53]OFD Sender: No OFD packet to send [02:56:58]OFD Sender: No OFD packet to send [02:57:03]OFD Sender: No OFD packet to send [02:57:08]OFD Sender: No OFD packet to send [02:57:13]OFD Sender: No OFD packet to send [02:57:18]OFD Sender: No OFD packet to send [02:57:23]OFD Sender: No OFD packet to send [02:57:28]OFD Sender: No OFD packet to send [02:57:33]OFD Sender: No OFD packet to send [02:57:38]OFD Sender: No OFD packet to send [02:57:43]OFD Sender: No OFD packet to send [02:57:48]OFD Sender: No OFD packet to send [02:57:53]OFD Sender: No OFD packet to send [02:57:58]OFD Sender: No OFD packet to send [02:58:03]OFD Sender: No OFD packet to send [02:58:08]OFD Sender: No OFD packet to send [02:58:13]OFD Sender: No OFD packet to send [02:58:18]OFD Sender: No OFD packet to send [02:58:23]OFD Sender: No OFD packet to send [02:58:28]OFD Sender: No OFD packet to send [02:58:33]OFD Sender: No OFD packet to send [02:58:38]OFD Sender: No OFD packet to send [02:58:43]OFD Sender: No OFD packet to send [02:58:48]OFD Sender: No OFD packet to send [02:58:53]OFD Sender: No OFD packet to send [02:58:58]OFD Sender: No OFD packet to send [02:59:03]OFD Sender: No OFD packet to send [02:59:08]OFD Sender: No OFD packet to send [02:59:13]OFD Sender: No OFD packet to send [02:59:18]OFD Sender: No OFD packet to send [02:59:23]OFD Sender: No OFD packet to send [02:59:28]OFD Sender: No OFD packet to send [02:59:33]OFD Sender: No OFD packet to send [02:59:38]OFD Sender: No OFD packet to send [02:59:43]OFD Sender: No OFD packet to send [02:59:48]OFD Sender: No OFD packet to send [02:59:53]OFD Sender: No OFD packet to send [02:59:58]OFD Sender: No OFD packet to send [03:00:03]OFD Sender: No OFD packet to send [03:00:08]OFD Sender: No OFD packet to send [03:00:13]OFD Sender: No OFD packet to send [03:00:18]OFD Sender: No OFD packet to send [03:00:23]OFD Sender: No OFD packet to send [03:00:28]OFD Sender: No OFD packet to send [03:00:33]OFD Sender: No OFD packet to send [03:00:38]OFD Sender: No OFD packet to send [03:00:43]OFD Sender: No OFD packet to send [03:00:48]OFD Sender: No OFD packet to send [03:00:53]OFD Sender: No OFD packet to send [03:00:58]OFD Sender: No OFD packet to send [03:01:03]OFD Sender: No OFD packet to send [03:01:08]OFD Sender: No OFD packet to send [03:01:13]OFD Sender: No OFD packet to send [03:01:18]OFD Sender: No OFD packet to send [03:01:23]OFD Sender: No OFD packet to send [03:01:28]OFD Sender: No OFD packet to send [03:01:33]OFD Sender: No OFD packet to send [03:01:38]OFD Sender: No OFD packet to send [03:01:43]OFD Sender: No OFD packet to send [03:01:48]OFD Sender: No OFD packet to send [03:01:53]OFD Sender: No OFD packet to send [03:01:58]OFD Sender: No OFD packet to send [03:02:03]OFD Sender: No OFD packet to send [03:02:08]OFD Sender: No OFD packet to send [03:02:13]OFD Sender: No OFD packet to send [03:02:18]OFD Sender: No OFD packet to send [03:02:23]OFD Sender: No OFD packet to send [03:02:28]OFD Sender: No OFD packet to send [03:02:33]OFD Sender: No OFD packet to send [03:02:38]OFD Sender: No OFD packet to send [03:02:43]OFD Sender: No OFD packet to send [03:02:48]OFD Sender: No OFD packet to send [03:02:54]OFD Sender: No OFD packet to send [03:02:59]OFD Sender: No OFD packet to send [03:03:04]OFD Sender: No OFD packet to send [03:03:09]OFD Sender: No OFD packet to send [03:03:14]OFD Sender: No OFD packet to send [03:03:19]OFD Sender: No OFD packet to send [03:03:24]OFD Sender: No OFD packet to send [03:03:29]OFD Sender: No OFD packet to send [03:03:34]OFD Sender: No OFD packet to send [03:03:39]OFD Sender: No OFD packet to send [03:03:44]OFD Sender: No OFD packet to send [03:03:49]OFD Sender: No OFD packet to send [03:03:54]OFD Sender: No OFD packet to send [03:03:59]OFD Sender: No OFD packet to send [03:04:04]OFD Sender: No OFD packet to send [03:04:09]OFD Sender: No OFD packet to send [03:04:14]OFD Sender: No OFD packet to send [03:04:19]OFD Sender: No OFD packet to send [03:04:24]OFD Sender: No OFD packet to send [03:04:29]OFD Sender: No OFD packet to send [03:04:34]OFD Sender: No OFD packet to send [03:04:39]OFD Sender: No OFD packet to send [03:04:44]OFD Sender: No OFD packet to send [03:04:49]OFD Sender: No OFD packet to send [03:04:54]OFD Sender: No OFD packet to send [03:04:59]OFD Sender: No OFD packet to send [03:05:04]OFD Sender: No OFD packet to send [03:05:09]OFD Sender: No OFD packet to send [03:05:14]OFD Sender: No OFD packet to send [03:05:19]OFD Sender: No OFD packet to send [03:05:24]OFD Sender: No OFD packet to send [03:05:29]OFD Sender: No OFD packet to send [03:05:34]OFD Sender: No OFD packet to send [03:05:39]OFD Sender: No OFD packet to send [03:05:44]OFD Sender: No OFD packet to send [03:05:49]OFD Sender: No OFD packet to send [03:05:54]OFD Sender: No OFD packet to send [03:05:59]OFD Sender: No OFD packet to send [03:06:04]OFD Sender: No OFD packet to send [03:06:09]OFD Sender: No OFD packet to send [03:06:14]OFD Sender: No OFD packet to send [03:06:19]OFD Sender: No OFD packet to send [03:06:24]OFD Sender: No OFD packet to send [03:06:29]OFD Sender: No OFD packet to send [03:06:34]OFD Sender: No OFD packet to send [03:06:39]OFD Sender: No OFD packet to send [03:06:44]OFD Sender: No OFD packet to send [03:06:49]OFD Sender: No OFD packet to send [03:06:54]OFD Sender: No OFD packet to send [03:06:59]OFD Sender: No OFD packet to send [03:07:04]OFD Sender: No OFD packet to send [03:07:09]OFD Sender: No OFD packet to send [03:07:14]OFD Sender: No OFD packet to send [03:07:19]OFD Sender: No OFD packet to send [03:07:24]OFD Sender: No OFD packet to send [03:07:29]OFD Sender: No OFD packet to send [03:07:34]OFD Sender: No OFD packet to send [03:07:39]OFD Sender: No OFD packet to send [03:07:44]OFD Sender: No OFD packet to send [03:07:49]OFD Sender: No OFD packet to send [03:07:54]OFD Sender: No OFD packet to send [03:07:59]OFD Sender: No OFD packet to send [03:08:04]OFD Sender: No OFD packet to send [03:08:09]OFD Sender: No OFD packet to send [03:08:14]OFD Sender: No OFD packet to send [03:08:19]OFD Sender: No OFD packet to send [03:08:24]OFD Sender: No OFD packet to send [03:08:29]OFD Sender: No OFD packet to send [03:08:34]OFD Sender: No OFD packet to send [03:08:39]OFD Sender: No OFD packet to send [03:08:44]OFD Sender: No OFD packet to send [03:08:49]OFD Sender: No OFD packet to send [03:08:54]OFD Sender: No OFD packet to send [03:08:59]OFD Sender: No OFD packet to send [03:09:04]OFD Sender: No OFD packet to send [03:09:09]OFD Sender: No OFD packet to send [03:09:14]OFD Sender: No OFD packet to send [03:09:19]OFD Sender: No OFD packet to send [03:09:24]OFD Sender: No OFD packet to send [03:09:29]OFD Sender: No OFD packet to send [03:09:34]OFD Sender: No OFD packet to send [03:09:39]OFD Sender: No OFD packet to send [03:09:44]OFD Sender: No OFD packet to send [03:09:49]OFD Sender: No OFD packet to send [03:09:54]OFD Sender: No OFD packet to send [03:09:59]OFD Sender: No OFD packet to send [03:10:04]OFD Sender: No OFD packet to send [03:10:09]OFD Sender: No OFD packet to send [03:10:14]OFD Sender: No OFD packet to send [03:10:19]OFD Sender: No OFD packet to send [03:10:24]OFD Sender: No OFD packet to send [03:10:29]OFD Sender: No OFD packet to send [03:10:34]OFD Sender: No OFD packet to send [03:10:39]OFD Sender: No OFD packet to send [03:10:44]OFD Sender: No OFD packet to send [03:10:49]OFD Sender: No OFD packet to send [03:10:54]OFD Sender: No OFD packet to send [03:10:59]OFD Sender: No OFD packet to send [03:11:04]OFD Sender: No OFD packet to send [03:11:09]OFD Sender: No OFD packet to send [03:11:14]OFD Sender: No OFD packet to send [03:11:19]OFD Sender: No OFD packet to send [03:11:24]OFD Sender: No OFD packet to send [03:11:29]OFD Sender: No OFD packet to send [03:11:34]OFD Sender: No OFD packet to send [03:11:39]OFD Sender: No OFD packet to send [03:11:44]OFD Sender: No OFD packet to send [03:11:49]OFD Sender: No OFD packet to send [03:11:54]OFD Sender: No OFD packet to send [03:11:59]OFD Sender: No OFD packet to send [03:12:04]OFD Sender: No OFD packet to send [03:12:09]OFD Sender: No OFD packet to send [03:12:14]OFD Sender: No OFD packet to send [03:12:19]OFD Sender: No OFD packet to send [03:12:24]OFD Sender: No OFD packet to send [03:12:29]OFD Sender: No OFD packet to send [03:12:34]OFD Sender: No OFD packet to send [03:12:39]OFD Sender: No OFD packet to send [03:12:44]OFD Sender: No OFD packet to send [03:12:49]OFD Sender: No OFD packet to send [03:12:54]OFD Sender: No OFD packet to send [03:12:59]OFD Sender: No OFD packet to send [03:13:04]OFD Sender: No OFD packet to send [03:13:09]OFD Sender: No OFD packet to send [03:13:14]OFD Sender: No OFD packet to send [03:13:19]OFD Sender: No OFD packet to send [03:13:24]OFD Sender: No OFD packet to send [03:13:29]OFD Sender: No OFD packet to send [03:13:34]OFD Sender: No OFD packet to send [03:13:39]OFD Sender: No OFD packet to send [03:13:44]OFD Sender: No OFD packet to send [03:13:49]OFD Sender: No OFD packet to send [03:13:54]OFD Sender: No OFD packet to send [03:13:59]OFD Sender: No OFD packet to send [03:14:04]OFD Sender: No OFD packet to send [03:14:09]OFD Sender: No OFD packet to send [03:14:14]OFD Sender: No OFD packet to send [03:14:19]OFD Sender: No OFD packet to send [03:14:24]OFD Sender: No OFD packet to send [03:14:29]OFD Sender: No OFD packet to send [03:14:34]OFD Sender: No OFD packet to send [03:14:39]OFD Sender: No OFD packet to send [03:14:44]OFD Sender: No OFD packet to send [03:14:49]OFD Sender: No OFD packet to send [03:14:54]OFD Sender: No OFD packet to send [03:14:59]OFD Sender: No OFD packet to send [03:15:04]OFD Sender: No OFD packet to send [03:15:09]OFD Sender: No OFD packet to send [03:15:14]OFD Sender: No OFD packet to send [03:15:19]OFD Sender: No OFD packet to send [03:15:24]OFD Sender: No OFD packet to send [03:15:29]OFD Sender: No OFD packet to send [03:15:34]OFD Sender: No OFD packet to send [03:15:39]OFD Sender: No OFD packet to send [03:15:44]OFD Sender: No OFD packet to send [03:15:49]OFD Sender: No OFD packet to send [03:15:54]OFD Sender: No OFD packet to send [03:15:59]OFD Sender: No OFD packet to send [03:16:04]OFD Sender: No OFD packet to send [03:16:09]OFD Sender: No OFD packet to send [03:16:14]OFD Sender: No OFD packet to send [03:16:19]OFD Sender: No OFD packet to send [03:16:24]OFD Sender: No OFD packet to send [03:16:29]OFD Sender: No OFD packet to send [03:16:34]OFD Sender: No OFD packet to send [03:16:39]OFD Sender: No OFD packet to send [03:16:44]OFD Sender: No OFD packet to send [03:16:49]OFD Sender: No OFD packet to send [03:16:54]OFD Sender: No OFD packet to send [03:16:59]OFD Sender: No OFD packet to send [03:17:04]OFD Sender: No OFD packet to send [03:17:09]OFD Sender: No OFD packet to send [03:17:14]OFD Sender: No OFD packet to send [03:17:19]OFD Sender: No OFD packet to send [03:17:24]OFD Sender: No OFD packet to send [03:17:29]OFD Sender: No OFD packet to send [03:17:34]OFD Sender: No OFD packet to send [03:17:39]OFD Sender: No OFD packet to send [03:17:44]OFD Sender: No OFD packet to send [03:17:49]OFD Sender: No OFD packet to send [03:17:54]OFD Sender: No OFD packet to send [03:17:59]OFD Sender: No OFD packet to send [03:18:04]OFD Sender: No OFD packet to send [03:18:09]OFD Sender: No OFD packet to send [03:18:14]OFD Sender: No OFD packet to send [03:18:19]OFD Sender: No OFD packet to send [03:18:24]OFD Sender: No OFD packet to send [03:18:29]OFD Sender: No OFD packet to send [03:18:34]OFD Sender: No OFD packet to send [03:18:39]OFD Sender: No OFD packet to send [03:18:44]OFD Sender: No OFD packet to send [03:18:49]OFD Sender: No OFD packet to send [03:18:53]accept exits with 8 [03:18:53]New connection [03:18:53]New thread 3066797412 created [03:18:53] Sock 8.Parse request [03:18:53]Thread 3066940772 joined [03:18:53]Sock 8.Check first char [03:18:53]Waiting for new connection... [03:18:53]Sock 8.First char is OK [03:18:53]request: POST /json_proto HTTP/1.0 [03:18:53]Method: POST [03:18:53]URL: /json_proto [03:18:53]Method is POST - this is cgi request [03:18:53]url: /json_proto [03:18:53]query_string will be loaded in cgi processing [03:18:53]execute_cgi json_proto POST (null) [03:18:53]execute_cgi path=json_proto method=POST [03:18:53]POST find Content-Length [03:18:53]Host: 172.17.38.133:8080 [03:18:53]Content-Length: 692 [03:18:53]Content-Type: application/json [03:18:53] [03:18:53]POST finish read [03:18:53]Found Content-Length = 692 [03:18:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673134", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 150.900, "sum" : 11000.61, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 11000.00, "total" : 11000.00, "payments": [ { "type": 0, "sum" : 11000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:18:53]execute_script... [03:18: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)673134", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 150.900, "sum" : 11000.61, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 11000.00, "total" : 11000.00, "payments": [ { "type": 0, "sum" : 11000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:18:53]POST & json_proto [03:18:53]process_json_proto [03:18:53]json parsed OK: [03:18:53]protocol is kg_v1.0 [03:18:53]action value=close_receipt [03:18:53]process_action close_receipt [03:18:53]cmd_close_receipt [03:18:53]MH_GetDate [03:18:53]Write to MH i2c: F0 00 00 71 1D 7D [03:18:53]Write i2c OK [03:18:53]MH_I2C_Read... [03:18:53]Read from MH i2c: F0 [03:18:53]MH_I2C_Read... [03:18:53]Read from MH i2c: F0 09 00 [03:18:53]MH_I2C_Read... [03:18:53]Read from MH i2c: F0 09 00 71 1D 00 A0 9F 73 66 BD 8F 7C 64 CA [03:18:53]GetLastDocTimeStamp 1718848800 [03:18:53]current date 1718853536 [03:18:53]FM_GetShiftState [03:18:53]SAM_PROTO_GetShiftState [03:18:53]wFMCommunicate request_size=4 [03:18:53]MH_SAM_APDU [03:18:53]CAPDU: 80 13 01 00 [03:18:53]Write to MH i2c: E2 08 00 72 1D 80 13 01 00 00 00 00 00 0C [03:18:53]Write i2c OK [03:18:53]MH_I2C_Read... [03:18:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:18:53]Read from MH i2c: E2 [03:18:53]MH_I2C_Read... [03:18:53]Read from MH i2c: E2 0E 00 [03:18:53]MH_I2C_Read... [03:18:53]Read from MH i2c: E2 0E 00 72 1D 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 5B [03:18:53]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [03:18:53]wFMCommunicate OK [03:18:53]SAM_PROTO_GetShiftState done [03:18:53]FM_GetShiftState done [03:18:53]opened in 1718843124 [03:18:53]opened+sec_in_day 1718929524 [03:18:53]quantity*price = 1100061 [03:18:53]sum+1 = 1100062 [03:18:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.61 ИТОГО: 11000.00 Внесено: 11000.00 СДАЧА: 0.00 НСП 1% : 97.35 НДС 12% : 1168.21 Наличными: 11000.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 8 20.06.2024 03:18 Смена: 354 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103823 ФПД: 107151495625453 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T031856&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103823&fm=107151495625453&tin=02508201610067®Number=0000000000092785&sum=1100000 [03:18:55]StoreToDocumentArchive [03:18:55]shift 354 fd 103823 [03:18:55]save to /storage/0354/doc_00103823 [03:18:55]save last doc name /storage/0354/doc_00103823 to /storage/kkm_last_doc_name [03:18:55]save OK [03:18:55]Clear old archive folders... [03:18:55]ProcessDocumentItem done err = 0, tmpTLVsize=252 [03:18:55]tlvbuf is B6F52670 [03:18:55]SAM_PROTO_ClearQueue [03:18:55]wFMCommunicate request_size=4 [03:18:55]MH_SAM_APDU [03:18:55]CAPDU: 80 09 00 00 [03:18:55]Write to MH i2c: E2 08 00 7F 1D 80 09 00 00 00 00 00 00 0E [03:18:55]Write i2c OK [03:18:55]MH_I2C_Read... [03:18:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [03:18:55]Read from MH i2c: E2 [03:18:55]MH_I2C_Read... [03:18:55]Read from MH i2c: E2 03 00 [03:18:55]MH_I2C_Read... [03:18:55]Read from MH i2c: E2 03 00 7F 1D 00 90 00 10 [03:18:55]RAPDU: 90 00 [03:18:55]wFMCommunicate OK [03:18:55]SAM_PROTO_ClearQueue done [03:18:55]KKMCreateOFDPacket [03:18:55]OFDProtocolAddRootSTLVToBuf [03:18:55]FM_MakeSignedData [03:18:55]FM_MakeSignedData [03:18:55]SAM_PROTO_SignData [03:18:55]wFMCommunicate request_size=4 [03:18:55]MH_SAM_APDU [03:18:55]CAPDU: 80 0D 01 02 [03:18:55]Write to MH i2c: E2 08 00 80 1D 80 0D 01 02 00 00 00 00 16 [03:18:55]Write i2c OK [03:18:55]MH_I2C_Read... [03:18:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [03:18:55]Read from MH i2c: E2 [03:18:55]MH_I2C_Read... [03:18:55]Read from MH i2c: E2 03 00 [03:18:55]MH_I2C_Read... [03:18:55]Read from MH i2c: E2 03 00 80 1D 00 90 00 11 [03:18:55]RAPDU: 90 00 [03:18:55]wFMCommunicate OK [03:18:55]wFMCommunicate request_size=255 [03:18:55]MH_SAM_APDU [03:18:55]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 74 4D 02 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 1D C9 10 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 C8 10 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 07 26 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 55 C8 01 00 00 00 07 04 06 00 E0 C8 10 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 A0 9F 73 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 8F 95 01 00 35 04 06 00 [03:18:55]Write to MH i2c: E2 02 01 81 1D 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 74 4D 02 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 1D C9 10 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 C8 10 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 07 26 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 55 C8 01 00 00 00 07 04 06 00 E0 C8 10 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 A0 9F 73 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 8F 95 01 00 35 04 06 00 00 00 13 [03:18:55]Write i2c OK [03:18:55]MH_I2C_Read... [03:18:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:18:55]Read from MH i2c: E2 [03:18:55]MH_I2C_Read... [03:18:55]Read from MH i2c: E2 03 00 [03:18:55]MH_I2C_Read... [03:18:55]Read from MH i2c: E2 03 00 81 1D 00 90 00 12 [03:18:55]RAPDU: 90 00 [03:18:55]wFMCommunicate OK [03:18:55]wFMCommunicate request_size=11 [03:18:55]MH_SAM_APDU [03:18:55]CAPDU: 80 0D 02 02 06 61 74 26 D5 7A ED [03:18:55]Write to MH i2c: E2 0E 00 82 1D 80 0D 02 02 06 00 61 74 26 D5 7A ED 00 00 5C [03:18:55]Write i2c OK [03:18:55]MH_I2C_Read... [03:18:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:18:55]Read from MH i2c: E2 [03:18:55]MH_I2C_Read... [03:18:55]Read from MH i2c: E2 03 00 [03:18:55]MH_I2C_Read... [03:18:55]Read from MH i2c: E2 03 00 82 1D 00 90 00 13 [03:18:55]RAPDU: 90 00 [03:18:55]wFMCommunicate OK [03:18:55]wFMCommunicate request_size=4 [03:18:55]MH_SAM_APDU [03:18:55]CAPDU: 80 0D 03 02 [03:18:55]Write to MH i2c: E2 08 00 83 1D 80 0D 03 02 00 00 00 00 1B [03:18:55]Write i2c OK [03:18:55]MH_I2C_Read... [03:18:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [03:18:55]Read from MH i2c: E2 [03:18:55]MH_I2C_Read... [03:18:55]Read from MH i2c: E2 0B 00 [03:18:55]MH_I2C_Read... [03:18:55]Read from MH i2c: E2 0B 00 83 1D 00 17 88 E1 E7 D5 93 9C DD 90 00 64 [03:18:55]RAPDU: 17 88 E1 E7 D5 93 9C DD 90 00 [03:18:55]wFMCommunicate OK [03:18:55]SAM_PROTO_SignData done [03:18:55]FM_MakeSignedData done [03:18:55]CreateOFDProtocolMessage [03:18:55]wFMCommunicate request_size=4 [03:18:55]MH_SAM_APDU [03:18:55]CAPDU: 80 11 00 00 [03:18:55]Write to MH i2c: E2 08 00 84 1D 80 11 00 00 00 00 00 00 1B [03:18:55]Write i2c OK [03:18:55]MH_I2C_Read... [03:18:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:18:55]Read from MH i2c: E2 [03:18:55]MH_I2C_Read... [03:18:55]Read from MH i2c: E2 17 00 [03:18:55]MH_I2C_Read... [03:18:55]Read from MH i2c: E2 17 00 84 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 6E [03:18:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [03:18:55]wFMCommunicate OK [03:18:55]CreateOFDProtocolMessage done [03:18:55]OFDSenderStorePacket 103823 [03:18:55]StoreOFDPacket docnum=103823 [03:18:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 39 52 08 01 45 14 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 74 4D 02 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 1D C9 10 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 C8 10 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 07 26 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 55 C8 01 00 00 00 07 04 06 00 E0 C8 10 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 A0 9F 73 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 8F 95 01 00 35 04 06 00 61 74 26 D5 7A ED 17 88 E1 E7 D5 93 9C DD [03:18:55]CheckFolder [03:18:55]dirname=/storage/ofd_packets [03:18:55]CheckFolder done [03:18:55]ProducePacketName [03:18:55]name=ofd_packets/00103823 [03:18:55]NVStorageSaveData ofd_packets/00103823 [03:18:55]File name is /storage/ofd_packets/00103823 [03:18:55]Write 302 bytes [03:18:55]NVStorageSaveData done [03:18:55]OFDSenderStorePacket done [03:18:55]KKMCreateOFDPacket done [03:18:55]NVStorageSaveData kkm_last_timestamp [03:18:55]File name is /storage/kkm_last_timestamp [03:18:55]Write 4 bytes [03:18:55]NVStorageSaveData done [03:18:55]ExternCall_PrintAddStr [03:18:55]wPrintStart [03:18:55]Write to MH i2c: 01 00 00 85 1D A2 [03:18:55]Write i2c OK [03:18:55]MH_I2C_Read... [03:18:55]Read from MH i2c: 01 [03:18:55]MH_I2C_Read... [03:18:55]Read from MH i2c: 01 07 00 [03:18:55]MH_I2C_Read... [03:18:55]Read from MH i2c: 01 07 00 85 1D 00 00 00 00 00 FF 0F B7 [03:18:55]RasterBufferAndPrint [03:18:55]line Счет N : (1)673134 [03:18:55]line ИНН: 02508201610067 [03:18:55]line Контрольно-Кассовый Чек [03:18:55]line ПРОДАЖА [03:18:55]line ТРК (МРК, ГНК) : 21 [03:18:55]line Товар: 2710194210 [03:18:55]line ДТ(л)-К-5 [03:18:55]line 150.900 * 72.90 [03:18:55]line = 11000.61 [03:18:55]line НДС 12% НСП 1% [03:18:55]line > о реализуемом товаре [03:18:55]line ОКРУГЛЕНИЕ: -0.61 [03:18:55]line ИТОГО: 11000.00 [03:18:55]line Внесено: 11000.00 [03:18:55]line СДАЧА: 0.00 [03:18:55]line НСП 1% : 97.35 [03:18:55]line НДС 12% : 1168.21 [03:18:55]line Наличными: 11000.00 [03:18:55]line Безнал.: 0.00 [03:18:55]line Место: АЗС № 120 "Партнер Нефть" [03:18:55]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [03:18:55]line СНО: Общий режим [03:18:55]line Чек 8 20.06.2024 03:18 [03:18:55]line Смена: 354 ФФД: 1.0 [03:18:55]line ЗНМ: 0300000164 [03:18:55]line РНМ: 0000000000092785 [03:18:55]line Версия ККМ: 001 [03:18:55]line ФМ: 0000000000875093 [03:18:55]line ФД: 103823 [03:18:55]line ФПД: 107151495625453 [03:18:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T031856&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103823&fm=107151495625453&tin=02508201610067®Number=0000000000092785&sum=1100000 [03:18:55]OFD Sender: Processing packet 103823 [packets to send 17, broken 16] [03:18:55]ProducePacketName [03:18:55]name=ofd_packets/00103823 [03:18:55]OFD Sender: To server: pG, [03:18:55]CommunicateWithHost lk.salyk.kg:30040 [03:18:55]ConnectInit lk.salyk.kg [03:18:55]written 0, free lines is 4095 [03:18:56]Connected sock=10 [03:18: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 39 33 10 01 00 00 39 52 08 01 45 14 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 74 4D 02 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 1D C9 10 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 C8 10 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 07 26 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 55 C8 01 00 00 00 07 04 06 00 E0 C8 10 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 A0 9F 73 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 8F 95 01 00 35 04 06 00 61 74 26 D5 7A ED 17 88 E1 E7 D5 93 9C DD [03:18: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 39 33 4F 00 00 00 EE 6F 47 00 6F C5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 8F 95 01 00 F4 03 04 00 27 46 73 66 B6 04 01 00 00 2A 12 BC AE A9 84 FF 70 [03:18:56]CommunicateWithHost err = 0 [03:18:56]CheckOFDResponse [03:18:56]1017 (14) - 77093643461234 [03:18:56]1041 (16) - 0000000000875093 [03:18:56]1040 (4) - 103823 [03:18:56]1012 (4) - 19.06.2024 20:57 [03:18:56]1206 (1) - 0 [03:18:56]OFD Sender: Remove packet 103823 [03:18:56]ProducePacketName [03:18:56]name=ofd_packets/00103823 [03:18:56]NVStorageDeleteData [03:18:56]Write to MH i2c: 01 00 00 B0 1D CD [03:18:56]Write i2c OK [03:18:56]MH_I2C_Read... [03:18:56]Read from MH i2c: 01 [03:18:56]MH_I2C_Read... [03:18:56]Read from MH i2c: 01 07 00 [03:18:56]MH_I2C_Read... [03:18:56]Read from MH i2c: 01 07 00 B0 1D 00 00 00 00 00 EB 0C CB [03:18:56]RasterBufferAndPrint [03:18:56]line [03:18:56]line [03:18:56]line [03:18:56]line [03:18:56]line [03:18:56]written 0, free lines is 3313 [03:18:56]MH_Cut [03:18:56]Write to MH i2c: D1 01 00 B7 1D 01 A6 [03:18:56]Write i2c OK [03:18:56]MH_I2C_Read... [03:18:56]Read from MH i2c: D1 [03:18:56]MH_I2C_Read... [03:18:56]Read from MH i2c: D1 01 00 [03:18:56]MH_I2C_Read... [03:18:56]Read from MH i2c: D1 01 00 B7 1D 00 A5 [03:18:56]Write to MH i2c: 01 00 00 B8 1D D5 [03:18:56]Write i2c OK [03:18:56]MH_I2C_Read... [03:18:56]OFD Sender: No OFD packet to send [03:18:57]*** Cut start [03:18:57]*** Partial cut [03:18:57]*** CUTSNS_PIN = 1 [03:18:57]*** CUTSNS_PIN = 0 [03:18:57]*** Brake cut motor [03:18:57]Read from MH i2c: 01 [03:18:57]MH_I2C_Read... [03:18:57]*** Stop cut motor [03:18:57]*** Cut end [03:18:57]Read from MH i2c: 01 07 00 [03:18:57]MH_I2C_Read... [03:18:57]Read from MH i2c: 01 07 00 B8 1D 00 00 00 00 00 FF 0F EA [03:18:57]process_action close_receipt done [03:18:57]requested_data is exist [03:18:57]produce_requested_data [03:18:57]requested_item fm.sn is exist - process it [03:18:57]wFMCommunicate request_size=4 [03:18:57]MH_SAM_APDU [03:18:57]CAPDU: 80 11 00 00 [03:18:57]Write to MH i2c: E2 08 00 B9 1D 80 11 00 00 00 00 00 00 50 [03:18:57]Write i2c OK [03:18:57]MH_I2C_Read... [03:18:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:18:57]Read from MH i2c: E2 [03:18:57]MH_I2C_Read... [03:18:57]Read from MH i2c: E2 17 00 [03:18:57]MH_I2C_Read... [03:18:57]Read from MH i2c: E2 17 00 B9 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 A3 [03:18:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [03:18:57]wFMCommunicate OK [03:18:57]requested_item fd.num is exist - process it [03:18:57]SAM_PROTO_GetFieldsCounters [03:18:57]wFMCommunicate request_size=4 [03:18:57]MH_SAM_APDU [03:18:57]CAPDU: 80 13 00 00 [03:18:57]Write to MH i2c: E2 08 00 BA 1D 80 13 00 00 00 00 00 00 53 [03:18:57]Write i2c OK [03:18:57]MH_I2C_Read... [03:18:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:18:58]Read from MH i2c: E2 [03:18:58]MH_I2C_Read... [03:18:58]Read from MH i2c: E2 62 00 [03:18:58]MH_I2C_Read... [03:18:58]Read from MH i2c: E2 62 00 BA 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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 8F 95 01 00 0E 04 04 00 62 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 1A [03:18: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 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 8F 95 01 00 0E 04 04 00 62 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 [03:18:58]wFMCommunicate OK [03:18:58]SAM_PROTO_GetFieldsCounters done [03:18:58]requested_item shift.num is exist - process it [03:18:58]requested_item shift.opened is exist - process it [03:18:58]req_shift_opened [03:18:58]FM_GetShiftState [03:18:58]SAM_PROTO_GetShiftState [03:18:58]wFMCommunicate request_size=4 [03:18:58]MH_SAM_APDU [03:18:58]CAPDU: 80 13 01 00 [03:18:58]Write to MH i2c: E2 08 00 BB 1D 80 13 01 00 00 00 00 00 55 [03:18:58]Write i2c OK [03:18:58]MH_I2C_Read... [03:18:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:18:58]Read from MH i2c: E2 [03:18:58]MH_I2C_Read... [03:18:58]Read from MH i2c: E2 0E 00 [03:18:58]MH_I2C_Read... [03:18:58]Read from MH i2c: E2 0E 00 BB 1D 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 A4 [03:18:58]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [03:18:58]wFMCommunicate OK [03:18:58]SAM_PROTO_GetShiftState done [03:18:58]FM_GetShiftState done [03:18:58]req_shift_opened done [03:18:58]requested_item shift.open_date is exist - process it [03:18:58]req_shift_open_date [03:18:58]req_shift_open_date done [03:18:58]produce_requested_data done [03:18:58]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103823,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [03:18:58]process_action_free close_receipt [03:18:58]json_value_free [03:18:58]json_value_free done [03:18:58]process_json_proto returns [03:18:58]Send response to host [03:18:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103823,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [03:18:58]free response buf [03:18:58]execute_script done [03:18:58]execute_script returns [03:18:58]free content buf [03:18:58]Sock 8.Close socket [03:18:58]Sock 8.Thread stoped [03:19:01]OFD Sender: No OFD packet to send [03:19:06]OFD Sender: No OFD packet to send [03:19:11]OFD Sender: No OFD packet to send [03:19:16]OFD Sender: No OFD packet to send [03:19:21]OFD Sender: No OFD packet to send [03:19:26]OFD Sender: No OFD packet to send [03:19:31]OFD Sender: No OFD packet to send [03:19:36]OFD Sender: No OFD packet to send [03:19:41]OFD Sender: No OFD packet to send [03:19:46]OFD Sender: No OFD packet to send [03:19:51]OFD Sender: No OFD packet to send [03:19:56]OFD Sender: No OFD packet to send [03:20:01]OFD Sender: No OFD packet to send [03:20:06]OFD Sender: No OFD packet to send [03:20:11]OFD Sender: No OFD packet to send [03:20:16]OFD Sender: No OFD packet to send [03:20:21]OFD Sender: No OFD packet to send [03:20:26]OFD Sender: No OFD packet to send [03:20:31]OFD Sender: No OFD packet to send [03:20:36]OFD Sender: No OFD packet to send [03:20:41]OFD Sender: No OFD packet to send [03:20:46]OFD Sender: No OFD packet to send [03:20:51]OFD Sender: No OFD packet to send [03:20:56]OFD Sender: No OFD packet to send [03:21:01]OFD Sender: No OFD packet to send [03:21:06]OFD Sender: No OFD packet to send [03:21:11]OFD Sender: No OFD packet to send [03:21:16]OFD Sender: No OFD packet to send [03:21:21]OFD Sender: No OFD packet to send [03:21:26]OFD Sender: No OFD packet to send [03:21:31]OFD Sender: No OFD packet to send [03:21:37]OFD Sender: No OFD packet to send [03:21:42]OFD Sender: No OFD packet to send